Class ValidMetadataValue
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.properties.ValidMetadataValue
- Direct Known Subclasses:
ValidMetadataValueDetail
ValidMetadataValue provides the properties for a valid metadata value. The preferredValue is the
value that is used in the open metadata property.
-
Constructor Summary
ConstructorDescriptionConstructorValidMetadataValue
(ValidMetadataValue template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return a copy of the additional properties.Return the category of reference data.Returns the data type of the preferred value.Returns the stored description property for the valid value.Returns the stored display name property for the valid value.Return the date/time that this element is effective from (null means effective from the epoch).Return the date/time that element is effective to (null means that it is effective indefinitely into the future).boolean
Return whether this valid value is case-sensitive, or will match irrespective of case.boolean
Is the valid value deprecated?Return the preferred values to use in implementations (normally used with definitions)int
hashCode()
Return hash code based on properties.void
setAdditionalProperties
(Map<String, String> additionalProperties) Set up additional properties.void
setCategory
(String category) Set up the category of reference data.void
setDataType
(String dataType) Set up the data type of the preferred value.void
setDescription
(String description) Set up the stored description property associated with the valid value.void
setDisplayName
(String displayName) Set up the stored display name property for the valid value.void
setEffectiveFrom
(Date effectiveFrom) Set up the date/time that this element is effective from (null means effective from the epoch).void
setEffectiveTo
(Date effectiveTo) Set the date/time that element is effective to (null means that it is effective indefinitely into the future).void
setIsCaseSensitive
(boolean caseSensitive) Set up whether this valid value is case-sensitive, or will match irrespective of case.void
setIsDeprecated
(boolean deprecated) Set whether the valid value is deprecated or not.void
setPreferredValue
(String preferredValue) Set up the preferred values to use in implementations (normally used with definitions)toString()
Generate a string containing the properties.
-
Constructor Details
-
ValidMetadataValue
public ValidMetadataValue()Constructor -
ValidMetadataValue
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getCategory
Return the category of reference data.- Returns:
- string name
-
setCategory
Set up the category of reference data.- Parameters:
category
- string name
-
getDisplayName
Returns the stored display name property for the valid value. If no display name is available then null is returned.- Returns:
- String name
-
setDisplayName
Set up the stored display name property for the valid value.- Parameters:
displayName
- String name
-
getDescription
Returns the stored description property for the valid value. If no description is provided then null is returned.- Returns:
- description String text
-
setDescription
Set up the stored description property associated with the valid value.- Parameters:
description
- String text
-
getPreferredValue
Return the preferred values to use in implementations (normally used with definitions)- Returns:
- String value
-
setPreferredValue
Set up the preferred values to use in implementations (normally used with definitions)- Parameters:
preferredValue
- String value
-
getDataType
Returns the data type of the preferred value.- Returns:
- string
-
setDataType
Set up the data type of the preferred value.- Parameters:
dataType
- string
-
getIsDeprecated
public boolean getIsDeprecated()Is the valid value deprecated?- Returns:
- boolean flag
-
setIsDeprecated
public void setIsDeprecated(boolean deprecated) Set whether the valid value is deprecated or not. Default is false.- Parameters:
deprecated
- boolean flag
-
getIsCaseSensitive
public boolean getIsCaseSensitive()Return whether this valid value is case-sensitive, or will match irrespective of case.- Returns:
- boolean flag
-
setIsCaseSensitive
public void setIsCaseSensitive(boolean caseSensitive) Set up whether this valid value is case-sensitive, or will match irrespective of case.- Parameters:
caseSensitive
- boolean flag
-
setAdditionalProperties
Set up additional properties.- Parameters:
additionalProperties
- Additional properties object
-
getAdditionalProperties
Return a copy of the additional properties. Null means no additional properties are available.- Returns:
- AdditionalProperties
-
getEffectiveFrom
Return the date/time that this element is effective from (null means effective from the epoch).- Returns:
- date object
-
setEffectiveFrom
Set up the date/time that this element is effective from (null means effective from the epoch).- Parameters:
effectiveFrom
- date object
-
getEffectiveTo
Return the date/time that element is effective to (null means that it is effective indefinitely into the future).- Returns:
- date object
-
setEffectiveTo
Set the date/time that element is effective to (null means that it is effective indefinitely into the future).- Parameters:
effectiveTo
- date object
-
toString
Generate a string containing the properties. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code based on properties.
-