Class PropertyValue
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.search.PropertyValue
- Direct Known Subclasses:
ArrayTypePropertyValue
,EnumTypePropertyValue
,MapTypePropertyValue
,PrimitiveTypePropertyValue
,StructTypePropertyValue
PropertyValue provides a common class for holding an instance type and value.
-
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor for Jacksonprotected
PropertyValue
(PropertyValue template) Copy/clone constructor initializes the instance property value from the supplied template. -
Method Summary
Modifier and TypeMethodDescriptionabstract PropertyValue
Delegate the process of cloning to the subclass.boolean
Validate that an object is equal depending on their stored values.Return the name of the type.int
hashCode()
Return a hash code based on the property valuesprotected <K,
V extends PropertyValue>
Map<K,Object> mapValuesAsObject
(Map<K, V> valMap) Default method for "valueAsString".protected <K,
V extends PropertyValue>
Map<K,String> mapValuesAsString
(Map<K, V> valMap) Default method for "valueAsObject".void
setTypeName
(String typeName) Set up the name of the type.toString()
Standard toString method.abstract Object
Return the object version of the value - used for comparisons.abstract String
Return the string version of the value - used for error logging.
-
Constructor Details
-
PropertyValue
protected PropertyValue()Default constructor for Jackson -
PropertyValue
Copy/clone constructor initializes the instance property value from the supplied template.- Parameters:
template
- PropertyValue
-
-
Method Details
-
cloneFromSubclass
Delegate the process of cloning to the subclass.- Returns:
- subclass of PropertyValue
-
valueAsString
Return the string version of the value - used for error logging.- Returns:
- string value
-
valueAsObject
Return the object version of the value - used for comparisons.- Returns:
- object value
-
mapValuesAsObject
Default method for "valueAsString". Return the object version of the value - used for comparisons.- Type Parameters:
K
- keyV
- value- Parameters:
valMap
- mapping- Returns:
- Map object values
-
mapValuesAsString
Default method for "valueAsObject". Return the object version of the value - used for comparisons.- Type Parameters:
K
- keyV
- value- Parameters:
valMap
- mapping- Returns:
- Map string values
-
getTypeName
Return the name of the type.- Returns:
- String type name
-
setTypeName
Set up the name of the type.- Parameters:
typeName
- String type name
-
toString
Standard toString method. -
equals
Validate that an object is equal depending on their stored values. -
hashCode
public int hashCode()Return a hash code based on the property values
-