Class ElementControlHeader
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.metadataelements.ElementControlHeader
- Direct Known Subclasses:
ElementClassificationHeader
,ElementHeader
,OpenMetadataElement
,OpenMetadataRelationship
,RelatedMetadataElement
The ElementControlHeader bean provides details of the origin and changes associated with the element.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final long
Version identifier -
Constructor Summary
ConstructorDescriptionDefault constructor used by subclassesElementControlHeader
(ElementControlHeader template) Copy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.long
Return the version of this header.Return information about the origin of the element.Return the current status of the element - typically ACTIVE.getType()
Return the element type properties for this properties object.Return detail of the element's current version and the users responsible for maintaining it.int
hashCode()
Create a hash code for this element type.void
setHeaderVersion
(long headerVersion) Return the version of this header.void
setOrigin
(ElementOrigin origin) Set up information about the origin of the element.void
setStatus
(ElementStatus status) Set up the current status of the element - typically ACTIVE.void
setType
(ElementType type) Set up the type of this element.void
setVersions
(ElementVersions versions) Set up detail of the element's current version and the users responsible for maintaining it.toString()
Standard toString method.
-
Field Details
-
CURRENT_AUDIT_HEADER_VERSION
public static final long CURRENT_AUDIT_HEADER_VERSIONVersion identifier- See Also:
-
-
Constructor Details
-
ElementControlHeader
public ElementControlHeader()Default constructor used by subclasses -
ElementControlHeader
Copy/clone constructor.- Parameters:
template
- element to copy
-
-
Method Details
-
getHeaderVersion
public long getHeaderVersion()Return the version of this header. This is used by the OMRS to determine if it is back level and should not process events from a source that is more advanced because it does not have the ability to receive all the header properties.- Returns:
- long version number - the value is incremented each time a new non-informational field is added to the audit header.
-
setHeaderVersion
public void setHeaderVersion(long headerVersion) Return the version of this header. This is used by the OMRS to determine if it is back level and should not process events from a source that is more advanced because it does not have the ability to receive all the header properties.- Parameters:
headerVersion
- long version number - the value is incremented each time a new non-informational field is added to the audit header.
-
getStatus
Return the current status of the element - typically ACTIVE.- Returns:
- status enum
-
setStatus
Set up the current status of the element - typically ACTIVE.- Parameters:
status
- status enum
-
getType
Return the element type properties for this properties object. These values are set up by the metadata repository and define details to the metadata entity used to represent this element.- Returns:
- ElementType type information.
-
setType
Set up the type of this element.- Parameters:
type
- element type properties
-
getOrigin
Return information about the origin of the element. This includes the metadata collection and license.- Returns:
- element origin object
-
setOrigin
Set up information about the origin of the element. This includes the metadata collection and license.- Parameters:
origin
- element origin object
-
getVersions
Return detail of the element's current version and the users responsible for maintaining it.- Returns:
- ElementVersion object
-
setVersions
Set up detail of the element's current version and the users responsible for maintaining it.- Parameters:
versions
- ElementVersion object
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Create a hash code for this element type.
-