Class RelatedAssetElement
java.lang.Object
org.odpi.openmetadata.accessservices.itinfrastructure.metadataelements.RelatedAssetElement
- All Implemented Interfaces:
Serializable
,MetadataElement
RelatedAssetElement contains the properties and header for a relationship to an asset retrieved from the metadata repository.
The related asset is returned as well.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorRelatedAssetElement
(RelatedAssetElement template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return 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).Return the element header associated with the relationship.Return the properties for the relationship.Return the properties for the related asset.int
hashCode()
Return hash code for this objectvoid
setEffectiveFrom
(Date effectiveFrom) Set up the date/time that this element is effective from (null means effective from the epoch).void
setEffectiveTo
(Date effectiveTo) Set the date/time that element is effective to (null means that it is effective indefinitely into the future).void
setElementHeader
(ElementHeader elementHeader) Set up the element header associated with the relationship.void
setProperties
(Map<String, Object> properties) Set up the properties for the relationship.void
setRelatedAsset
(AssetElement relatedAsset) Set up the properties for the related asset.toString()
JSON-style toString
-
Constructor Details
-
RelatedAssetElement
public RelatedAssetElement()Default constructor -
RelatedAssetElement
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getElementHeader
Return the element header associated with the relationship.- Specified by:
getElementHeader
in interfaceMetadataElement
- Returns:
- element header object
-
setElementHeader
Set up the element header associated with the relationship.- Specified by:
setElementHeader
in interfaceMetadataElement
- Parameters:
elementHeader
- element header object
-
getProperties
Return the properties for the relationship.- Returns:
- relationship properties (using appropriate subclass)
-
setProperties
Set up the properties for the relationship.- Parameters:
properties
- asset properties
-
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
-
getRelatedAsset
Return the properties for the related asset.- Returns:
- asset properties (using appropriate subclass)
-
setRelatedAsset
Set up the properties for the related asset.- Parameters:
relatedAsset
- asset properties
-
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
-