Class Relationship
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.properties.objects.graph.Relationship
- All Implemented Interfaces:
Serializable,OmasObject
- Direct Known Subclasses:
Antonym,Categorization,CategoryAnchor,CategoryHierarchyLink,HasA,IsA,IsATypeOf,IsATypeOfDeprecated,Leadership,LibraryCategoryReference,LibraryTermReference,MediaReference,PreferredTerm,ProjectScope,RelatedTerm,ReplacementTerm,SemanticAssignment,Synonym,TermAnchor,Translation,TypedBy,UsedInContext,ValidValue
A relationship between 2 subject area OMAS Nodes. It is contains named attributes and has 2 relationship ends.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet the extra attributes - ones that are in addition to the standard types.Return the date/time that this relationship should start to be used (null means it can be used from creationTime).Return the date/time that this relationship should no longer be used.getEnd1()Get relationship end 1.getEnd2()Get relationship end 1.getGuid()getName()booleanThe relationship is readOnlyvoidsetAdditionalProperties(Map<String, String> additionalProperties) voidsetEffectiveFromTime(Long effectiveFromTime) voidsetEffectiveToTime(Long effectiveToTime) voidsetEnd1(RelationshipEnd end1) voidsetEnd2(RelationshipEnd end2) voidvoidsetReadOnly(boolean readOnly) set whether the relationship is readOnlyvoidsetRelationshipType(RelationshipType relationshipType) voidsetSystemAttributes(SystemAttributes systemAttributes) toString()
-
Method Details
-
getRelationshipType
-
setRelationshipType
-
getSystemAttributes
-
setSystemAttributes
-
getEffectiveFromTime
Return the date/time that this relationship should start to be used (null means it can be used from creationTime).- Returns:
- Date the relationship becomes effective.
-
setEffectiveFromTime
-
getEffectiveToTime
Return the date/time that this relationship should no longer be used.- Returns:
- Date the relationship stops being effective.
-
setEffectiveToTime
-
getGuid
-
setGuid
-
getName
-
getAdditionalProperties
Get the extra attributes - ones that are in addition to the standard types.- Returns:
- extra attributes
-
setAdditionalProperties
-
getEnd1
Get relationship end 1. The child relationship sets the appropriate values for its relationship end 1- Returns:
- RelationshipEnd relationship end 1
-
setEnd1
-
getEnd2
Get relationship end 1. The child relationship sets the appropriate values for its relationship end 1- Returns:
- RelationshipEnd relationship end 1
-
setEnd2
-
isReadOnly
public boolean isReadOnly()The relationship is readOnly- Returns:
- whether read only
-
setReadOnly
public void setReadOnly(boolean readOnly) set whether the relationship is readOnly- Parameters:
readOnly- readonly flag
-
toString
-
toString
-