Class ValidValueElement
java.lang.Object
org.odpi.openmetadata.accessservices.assetowner.metadataelements.ValidValueElement
- All Implemented Interfaces:
MetadataElement
ValidValueElement contains the properties and header for a valid value definition or set entity retrieved from the metadata repository.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorValidValueElement
(ValidValueElement template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return comparison result based on the content of the properties.Return the element header associated with the properties.boolean
Return whether this valid value is the default of the setGUID (if supplied)Return the set unique identifier if the valid value is retrieved via a set.Return the properties for the valid value definition or set.int
hashCode()
Return hash code for this objectvoid
setElementHeader
(ElementHeader elementHeader) Set up the element header associated with the properties.void
setIsDefaultValue
(boolean defaultValue) Set up whether this valid value is the default of the setGUID (if supplied).void
setSetGUID
(String setGUID) Set up the set unique identifier if the valid value is retrieved via a set.void
setValidValueProperties
(ValidValueProperties validValueProperties) Set up the properties for the valid value definition or set.toString()
JSON-style toString
-
Constructor Details
-
ValidValueElement
public ValidValueElement()Default constructor -
ValidValueElement
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getElementHeader
Return the element header associated with the properties.- Specified by:
getElementHeader
in interfaceMetadataElement
- Returns:
- element header object
-
setElementHeader
Set up the element header associated with the properties.- Specified by:
setElementHeader
in interfaceMetadataElement
- Parameters:
elementHeader
- element header object
-
getValidValueProperties
Return the properties for the valid value definition or set.- Returns:
- properties bean
-
setValidValueProperties
Set up the properties for the valid value definition or set.- Parameters:
validValueProperties
- properties bean
-
getSetGUID
Return the set unique identifier if the valid value is retrieved via a set.- Returns:
- string identifier
-
setSetGUID
Set up the set unique identifier if the valid value is retrieved via a set.- Parameters:
setGUID
- string identifier
-
getIsDefaultValue
public boolean getIsDefaultValue()Return whether this valid value is the default of the setGUID (if supplied)- Returns:
- flag
-
setIsDefaultValue
public void setIsDefaultValue(boolean defaultValue) Set up whether this valid value is the default of the setGUID (if supplied).- Parameters:
defaultValue
- flag
-
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
-