Class RelatedMetadataElement
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.governanceaction.properties.RelatedMetadataElement
public class RelatedMetadataElement
extends org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
This property header implements any common mechanisms that all property objects need.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionTypical ConstructorRelatedMetadataElement(RelatedMetadataElement template) Copy/clone Constructor the resulting object will return true if tested with this.equals(template) as long as the template object is not null; -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the date/time that this instance should start to be used (null means it can be used from creationTime).Return the date/time that this instance should no longer be used.Return the properties of the related element.Return the unique id for the relationship .Return the properties associated with the relationship.inthashCode()Create a hash code for this element type.voidsetEffectiveFromTime(Date effectiveFromTime) Set up the date/time that this instance should start to be used (null means it can be used from creationTime).voidsetEffectiveToTime(Date effectiveToTime) Set up the date/time that this instance should no longer be used.voidsetElement(OpenMetadataElement element) Set up the properties of the related element.voidsetRelationshipGUID(String guid) Set up the unique id for the relationship.voidsetRelationshipProperties(ElementProperties relationshipProperties) Set up the properties associated with the relationship.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
getHeaderVersion, getOrigin, getStatus, getType, getVersions, setHeaderVersion, setOrigin, setStatus, setType, setVersions
-
Constructor Details
-
RelatedMetadataElement
public RelatedMetadataElement()Typical Constructor -
RelatedMetadataElement
Copy/clone Constructor the resulting object will return true if tested with this.equals(template) as long as the template object is not null;- Parameters:
template- object being copied
-
-
Method Details
-
getRelationshipGUID
Return the unique id for the relationship .- Returns:
- String unique id
-
setRelationshipGUID
Set up the unique id for the relationship.- Parameters:
guid- String unique identifier
-
getEffectiveFromTime
Return the date/time that this instance should start to be used (null means it can be used from creationTime).- Returns:
- Date object
-
setEffectiveFromTime
Set up the date/time that this instance should start to be used (null means it can be used from creationTime).- Parameters:
effectiveFromTime- Date object
-
getEffectiveToTime
Return the date/time that this instance should no longer be used.- Returns:
- Date object
-
setEffectiveToTime
Set up the date/time that this instance should no longer be used.- Parameters:
effectiveToTime- Date object
-
getRelationshipProperties
Return the properties associated with the relationship.- Returns:
- property names and values
-
setRelationshipProperties
Set up the properties associated with the relationship.- Parameters:
relationshipProperties- property names and values
-
getElement
Return the properties of the related element.- Returns:
- related element
-
setElement
Set up the properties of the related element.- Parameters:
element- related element
-
toString
Standard toString method.- Overrides:
toStringin classorg.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classorg.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCodein classorg.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader- Returns:
- int hash code
-