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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RelationshipEnd
protected RelationshipEnd
protected String
protected RelationshipType
protected static final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Relationship
(String name, RelationshipEnd end1, RelationshipEnd end2) -
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()
protected void
boolean
The relationship is readOnlyvoid
setAdditionalProperties
(Map<String, String> additionalProperties) void
setEffectiveFromTime
(Long effectiveFromTime) void
setEffectiveToTime
(Long effectiveToTime) void
setEnd1
(RelationshipEnd end1) void
setEnd2
(RelationshipEnd end2) void
void
setReadOnly
(boolean readOnly) set whether the relationship is readOnlyvoid
setRelationshipType
(RelationshipType relationshipType) void
setSystemAttributes
(SystemAttributes systemAttributes) toString()
-
Field Details
-
serialVersionUID
protected static final long serialVersionUID- See Also:
-
relationshipType
-
name
-
end1
-
end2
-
-
Constructor Details
-
Relationship
-
-
Method Details
-
initialise
protected void initialise() -
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
-