public class Relationship extends InstanceHeader
CURRENT_AUDIT_HEADER_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.
|
EntityProxy |
getEntityOneProxy()
Return details of the entity at the first end of the relationship.
|
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 |
setEntityOneProxy(EntityProxy entityOneProxy)
Set up details of the entity at the first end of the relationship.
|
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, getInstanceURL, setGUID, setInstanceURLgetCreatedBy, getCreateTime, getHeaderVersion, getInstanceLicense, getInstanceProvenanceType, getMaintainedBy, getMappingProperties, getMetadataCollectionId, getMetadataCollectionName, getReplicatedBy, getStatus, getStatusOnDelete, getType, getUpdatedBy, getUpdateTime, getVersion, setCreatedBy, setCreateTime, setHeaderVersion, setInstanceLicense, setInstanceProvenanceType, setMaintainedBy, setMappingProperties, setMetadataCollectionId, setMetadataCollectionName, setReplicatedBy, 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 objectpublic EntityProxy getEntityOneProxy()
public void setEntityOneProxy(EntityProxy entityOneProxy)
entityOneProxy - EntityProxy object for the first end of the relationship.public 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 © 2018–2020 ODPi. All rights reserved.