public class Relationship extends InstanceHeader
createdBy, createTime, currentStatus, statusOnDelete, type, updatedBy, updateTime, version| Constructor and Description |
|---|
Relationship()
Default constructor creates an empty relationship linked to nothing.
|
Relationship(Relationship templateElement)
Copy/clone constructor builds a relationship from the supplied template.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Validate that an object is equal depending on their stored values.
|
String |
getEntityOnePropertyName()
Deprecated.
|
EntityProxy |
getEntityOneProxy()
Return details of the entity at the first end of the relationship.
|
String |
getEntityTwoPropertyName()
Deprecated.
|
EntityProxy |
getEntityTwoProxy()
Return details of the entity at second end of the relationship.
|
InstanceProperties |
getProperties()
Return a copy of all of the properties for this relationship.
|
int |
hashCode()
Return a hash code based on the values of this object.
|
boolean |
relatedToEntity(String entityGUID)
Test to determine if the supplied entity is linked by this relationship.
|
String |
returnLinkedEntity(String entityGUID)
Return the GUID at the other end of the relationship to the supplied entity.
|
void |
setEntityOnePropertyName(String entityOnePropertyName)
Deprecated.
|
void |
setEntityOneProxy(EntityProxy entityOneProxy)
Set up details of the entity at the first end of the relationship.
|
void |
setEntityTwoPropertyName(String entityTwoPropertyName)
Deprecated.
|
void |
setEntityTwoProxy(EntityProxy entityTwoProxy)
Set up the identity of the proxy at the other end of the relationship.
|
void |
setProperties(InstanceProperties newProperties)
Set up the properties for this relationship.
|
String |
toString()
Standard toString method.
|
getGUID, getInstanceProvenanceType, getInstanceURL, getMetadataCollectionId, setGUID, setInstanceProvenanceType, setInstanceURL, setMetadataCollectionIdgetCreatedBy, getCreateTime, getStatus, getStatusOnDelete, getType, getUpdatedBy, getUpdateTime, getVersion, setCreatedBy, setCreateTime, setStatus, setStatusOnDelete, setType, setUpdatedBy, setUpdateTime, setVersionpublic Relationship()
public Relationship(Relationship templateElement)
templateElement - template relationship to copypublic boolean relatedToEntity(String entityGUID)
entityGUID - unique identifier for the entity to test.public String returnLinkedEntity(String entityGUID)
entityGUID - unique identifier for the entity to test.public InstanceProperties getProperties()
public void setProperties(InstanceProperties newProperties)
newProperties - InstanceProperties object@Deprecated public String getEntityOnePropertyName()
@Deprecated public void setEntityOnePropertyName(String entityOnePropertyName)
entityOnePropertyName - String property namepublic EntityProxy getEntityOneProxy()
public void setEntityOneProxy(EntityProxy entityOneProxy)
entityOneProxy - EntityProxy object for the first end of the relationship.@Deprecated public String getEntityTwoPropertyName()
@Deprecated public void setEntityTwoPropertyName(String entityTwoPropertyName)
entityTwoPropertyName - String property namepublic EntityProxy getEntityTwoProxy()
public void setEntityTwoProxy(EntityProxy entityTwoProxy)
entityTwoProxy - EntityProxypublic String toString()
toString in class InstanceHeaderpublic boolean equals(Object objectToCompare)
equals in class InstanceHeaderobjectToCompare - objectpublic int hashCode()
hashCode in class InstanceHeaderCopyright © 2017–2018 ODPi. All rights reserved.