Class AssetRelationshipElement
java.lang.Object
org.odpi.openmetadata.accessservices.itinfrastructure.metadataelements.AssetRelationshipElement
- All Implemented Interfaces:
MetadataElement
AssetRelationshipElement contains the properties and header for a relationship retrieved from the repository.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn comparison result based on the content of the properties.Return the date/time that this element is effective from (null means effective from the epoch).Return the date/time that element is effective to (null means that it is effective indefinitely into the future).org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeaderReturn the element header associated with the relationship.org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStubReturn the header of the end 1 entity.org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStubReturn the header of the end 2 entity.Return the properties from the relationship.inthashCode()Return hash code for this objectvoidsetEffectiveFrom(Date effectiveFrom) Set up the date/time that this element is effective from (null means effective from the epoch).voidsetEffectiveTo(Date effectiveTo) Set the date/time that element is effective to (null means that it is effective indefinitely into the future).voidsetElementHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader elementHeader) Set up the element header associated with the relationship.voidsetEnd1Element(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub end1Element) Set up the header of the end 1 entity.voidsetEnd2Element(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub platformElement) Set up the header of the end 2 entity.voidsetProperties(Map<String, Object> properties) Set up the properties from the relationship.toString()JSON-style toString
-
Constructor Details
-
AssetRelationshipElement
public AssetRelationshipElement()Default constructor -
AssetRelationshipElement
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getElementHeader
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader getElementHeader()Return the element header associated with the relationship.- Specified by:
getElementHeaderin interfaceMetadataElement- Returns:
- element header object
-
setElementHeader
public void setElementHeader(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementHeader elementHeader) Set up the element header associated with the relationship.- Specified by:
setElementHeaderin interfaceMetadataElement- Parameters:
elementHeader- element header object
-
getProperties
Return the properties from the relationship.- Returns:
- properties
-
setProperties
Set up the properties from the relationship.- Parameters:
properties- property map
-
getEffectiveFrom
Return the date/time that this element is effective from (null means effective from the epoch).- Returns:
- date object
-
setEffectiveFrom
Set up the date/time that this element is effective from (null means effective from the epoch).- Parameters:
effectiveFrom- date object
-
getEffectiveTo
Return the date/time that element is effective to (null means that it is effective indefinitely into the future).- Returns:
- date object
-
setEffectiveTo
Set the date/time that element is effective to (null means that it is effective indefinitely into the future).- Parameters:
effectiveTo- date object
-
getEnd1Element
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub getEnd1Element()Return the header of the end 1 entity.- Returns:
- header
-
setEnd1Element
public void setEnd1Element(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub end1Element) Set up the header of the end 1 entity.- Parameters:
end1Element- header
-
getEnd2Element
public org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub getEnd2Element()Return the header of the end 2 entity.- Returns:
- header
-
setEnd2Element
public void setEnd2Element(org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementStub platformElement) Set up the header of the end 2 entity.- Parameters:
platformElement- header
-
toString
JSON-style toString -
equals
Return comparison result based on the content of the properties. -
hashCode
public int hashCode()Return hash code for this object
-