Class OpenMetadataElement
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataElement
OpenMetadataElement describes an entity in an open metadata repository.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionTypical ConstructorOpenMetadataElement
(OpenMetadataElement 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 TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the list of classifications associated with the metadata element.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 unique id for the metadata element.Return the properties that are stored with the metadata element.int
hashCode()
Create a hash code for this element type.void
setClassifications
(List<AttachedClassification> classifications) Set up the list of classifications associated with the metadata element.void
setEffectiveFromTime
(Date effectiveFromTime) Set up the date/time that this instance should start to be used (null means it can be used from creationTime).void
setEffectiveToTime
(Date effectiveToTime) Set up the date/time that this instance should no longer be used.void
setElementGUID
(String guid) Set up the unique id for the metadata element.void
setElementProperties
(ElementProperties elementProperties) Set up the properties that are stored with the metadata element.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
-
OpenMetadataElement
public OpenMetadataElement()Typical Constructor -
OpenMetadataElement
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
-
getElementGUID
Return the unique id for the metadata element.- Returns:
- String unique identifier
-
setElementGUID
Set up the unique id for the metadata element.- 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
-
getClassifications
Return the list of classifications associated with the metadata element.- Returns:
- Classifications list of classifications
-
setClassifications
Set up the list of classifications associated with the metadata element.- Parameters:
classifications
- list of classifications
-
getElementProperties
Return the properties that are stored with the metadata element. The ElementType includes the list of valid property names.- Returns:
- property map
-
setElementProperties
Set up the properties that are stored with the metadata element. The ElementType includes the list of valid property names.- Parameters:
elementProperties
- property map
-
toString
Standard toString method.- Overrides:
toString
in classElementControlHeader
- 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:
equals
in classElementControlHeader
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCode
in classElementControlHeader
- Returns:
- int hash code
-