Class ElementControlHeader
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
-
- org.odpi.openmetadata.frameworks.connectors.properties.beans.ElementControlHeader
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ElementClassificationHeader,ElementHeader
public class ElementControlHeader extends PropertyBase
The ElementControlHeader bean provides details of the origin and changes associated with the element.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description ElementControlHeader()Default constructor used by subclassesElementControlHeader(ElementControlHeader template)Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.ElementOrigingetOrigin()Return information about the origin of the element.ElementStatusgetStatus()Return the current status of the element - typically ACTIVE.ElementTypegetType()Return the element type properties for this properties object.ElementVersionsgetVersions()Return detail of the element's current version and the users responsible for maintaining it.inthashCode()Create a hash code for this element type.voidsetOrigin(ElementOrigin origin)Set up information about the origin of the element.voidsetStatus(ElementStatus status)Set up the current status of the element - typically ACTIVE.voidsetType(ElementType type)Set up the type of this element.voidsetVersions(ElementVersions versions)Set up detail of the element's current version and the users responsible for maintaining it.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
getHeaderVersion, setHeaderVersion
-
-
-
-
Constructor Detail
-
ElementControlHeader
public ElementControlHeader()
Default constructor used by subclasses
-
ElementControlHeader
public ElementControlHeader(ElementControlHeader template)
Copy/clone constructor.- Parameters:
template- element to copy
-
-
Method Detail
-
getStatus
public ElementStatus getStatus()
Return the current status of the element - typically ACTIVE.- Returns:
- status enum
-
setStatus
public void setStatus(ElementStatus status)
Set up the current status of the element - typically ACTIVE.- Parameters:
status- status enum
-
getType
public ElementType 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
public void setType(ElementType type)
Set up the type of this element.- Parameters:
type- element type properties
-
getOrigin
public ElementOrigin getOrigin()
Return information about the origin of the element. This includes the metadata collection and license.- Returns:
- element origin object
-
setOrigin
public void setOrigin(ElementOrigin origin)
Set up information about the origin of the element. This includes the metadata collection and license.- Parameters:
origin- element origin object
-
getVersions
public ElementVersions getVersions()
Return detail of the element's current version and the users responsible for maintaining it.- Returns:
- ElementVersion object
-
setVersions
public void setVersions(ElementVersions versions)
Set up detail of the element's current version and the users responsible for maintaining it.- Parameters:
versions- ElementVersion object
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classPropertyBase- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classPropertyBase- Returns:
- int hash code
-
-