Class ValidValueSetProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.validvalues.ValidValueSetProperties
ValidValueSetProperties provides the class for ValidValueSet.
-
Constructor Summary
ConstructorDescriptionConstructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the category of reference data for this valid value.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.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)getScope()
Return the scope of values that this valid value covers (normally used with sets)getUsage()
Return the description of how this valid value should be used.int
hashCode()
Return hash code based on properties.void
setCategory
(String category) Set up the category of reference data for this valid value.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
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)void
Set up the scope of values that this valid value covers (normally used with sets)void
Set up the description of how this valid value should be used.toString()
Generate a string containing the properties.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
getAdditionalProperties, getQualifiedName, getVendorProperties, setAdditionalProperties, setQualifiedName, setVendorProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, getTypeName, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setTypeName
-
Constructor Details
-
ValidValueSetProperties
public ValidValueSetProperties()Constructor -
ValidValueSetProperties
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
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
-
getCategory
Return the category of reference data for this valid value.- Returns:
- String name
-
setCategory
Set up the category of reference data for this valid value.- Parameters:
category
- String name
-
getUsage
Return the description of how this valid value should be used.- Returns:
- String text
-
setUsage
Set up the description of how this valid value should be used.- Parameters:
usage
- String text
-
getScope
Return the scope of values that this valid value covers (normally used with sets)- Returns:
- String text
-
setScope
Set up the scope of values that this valid value covers (normally used with sets)- Parameters:
scope
- 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
-
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
-
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
-
toString
Generate a string containing the properties.- Overrides:
toString
in classReferenceableProperties
- Returns:
- string value
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classReferenceableProperties
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classReferenceableProperties
- Returns:
- int
-