Class Reference
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.Reference
-
- All Implemented Interfaces:
Serializable
public class Reference extends Object implements Serializable
This is a view of a relationship from the perspective of one of the ends.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_RELATED_END_GUIDstatic StringKEY_RELATIONSHIP_GUIDstatic StringKEY_TYPENAMEstatic StringKEY_UNIQUE_ATTRIBUTESprotected StringreferenceNameprotected StringrelatedEndGuidprotected StringrelatedEndTypeprotected Stringrelationship_Typeprotected StringrelationshipGuidprotected Map<String,Object>uniqueAttributes
-
Constructor Summary
Constructors Constructor Description Reference()Reference(String guid)Reference(String guid, String relatedEndType)Reference(String guid, String relatedEndType, Map<String,Object> uniqueAttributes)Reference(String relatedEndType, Map<String,Object> uniqueAttributes)Reference(Map<String,Object> objIdMap)Reference(Reference other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetReferenceName()get the name of the referenceStringgetRelatedEndGuid()This guid of the related end of this referenceStringgetRelatedEndType()This is the related ends type nameStringgetRelationship_Type()the type of relationshipMap<String,Object>getRelationshipAttributes()Attributes associated with the relationship itselfStringgetRelationshipGuid()This is the relationship guid associated with this referenceMap<String,Object>getUniqueAttributes()Get a map of the unique attributes.inthashCode()voidsetReferenceName(String referenceName)voidsetRelatedEndGuid(String relatedEndGuid)voidsetRelatedEndType(String relatedEndType)voidsetRelationship_Type(String relationship_Type)voidsetRelationshipAttributes(Map<String,Object> relationshipAttributes)voidsetRelationshipGuid(String relationshipGuid)voidsetUniqueAttributes(Map<String,Object> uniqueAttributes)StringtoString()StringBuildertoString(StringBuilder sb)
-
-
-
Field Detail
-
KEY_RELATED_END_GUID
public static final String KEY_RELATED_END_GUID
- See Also:
- Constant Field Values
-
KEY_RELATIONSHIP_GUID
public static final String KEY_RELATIONSHIP_GUID
- See Also:
- Constant Field Values
-
KEY_TYPENAME
public static final String KEY_TYPENAME
- See Also:
- Constant Field Values
-
KEY_UNIQUE_ATTRIBUTES
public static final String KEY_UNIQUE_ATTRIBUTES
- See Also:
- Constant Field Values
-
relationship_Type
protected String relationship_Type
-
relationshipGuid
protected String relationshipGuid
-
relatedEndGuid
protected String relatedEndGuid
-
relatedEndType
protected String relatedEndType
-
referenceName
protected String referenceName
-
-
Method Detail
-
getRelationship_Type
public String getRelationship_Type()
the type of relationship- Returns:
- relationship type
-
setRelationship_Type
public void setRelationship_Type(String relationship_Type)
-
getRelationshipAttributes
public Map<String,Object> getRelationshipAttributes()
Attributes associated with the relationship itself- Returns:
- relationship attributes
-
setRelationshipAttributes
public void setRelationshipAttributes(Map<String,Object> relationshipAttributes)
-
getRelatedEndGuid
public String getRelatedEndGuid()
This guid of the related end of this reference- Returns:
- related end guid
-
setRelatedEndGuid
public void setRelatedEndGuid(String relatedEndGuid)
-
getRelationshipGuid
public String getRelationshipGuid()
This is the relationship guid associated with this reference- Returns:
- relationship guid
-
setRelationshipGuid
public void setRelationshipGuid(String relationshipGuid)
-
getRelatedEndType
public String getRelatedEndType()
This is the related ends type name- Returns:
- related ends type name
-
setRelatedEndType
public void setRelatedEndType(String relatedEndType)
-
getUniqueAttributes
public Map<String,Object> getUniqueAttributes()
Get a map of the unique attributes. i.e. the attributes whose values must are all different.- Returns:
Map<String,Object>
-
toString
public StringBuilder toString(StringBuilder sb)
-
getReferenceName
public String getReferenceName()
get the name of the reference- Returns:
- reference name
-
setReferenceName
public void setReferenceName(String referenceName)
-
-