Class StructTypePropertyValue
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.search.PropertyValue
org.odpi.openmetadata.frameworks.governanceaction.search.StructTypePropertyValue
StructTypePropertyValue supports the value part of property that is defined as a complex structure.
It manages a list of properties that cover the fields in the structure.
-
Constructor Summary
ConstructorDescriptionDefault constructor set StructTypePropertyValue to null.Copy/clone constructor sets up the values based on the template. -
Method Summary
Modifier and TypeMethodDescriptionDelegate the process of cloning to the subclass.boolean
Validate that an object is equal depending on their stored values.Return the attributes that make up the fields of the struct.int
hashCode()
Return a hash code based on the property valuesvoid
setAttributes
(ElementProperties attributes) Set up the attributes that make up the fields of the struct.toString()
Standard toString method.Return the object version of the value - used for comparisons.Return the string version of the value - used for error logging.Methods inherited from class org.odpi.openmetadata.frameworks.governanceaction.search.PropertyValue
getTypeName, mapValuesAsObject, mapValuesAsString, setTypeName
-
Constructor Details
-
StructTypePropertyValue
public StructTypePropertyValue()Default constructor set StructTypePropertyValue to null. -
StructTypePropertyValue
Copy/clone constructor sets up the values based on the template.- Parameters:
template
- StructTypePropertyValue to copy.
-
-
Method Details
-
cloneFromSubclass
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclass
in classPropertyValue
- Returns:
- subclass of PropertyValue
-
valueAsString
Return the string version of the value - used for error logging.- Specified by:
valueAsString
in classPropertyValue
- Returns:
- string value
-
valueAsObject
Return the object version of the value - used for comparisons.- Specified by:
valueAsObject
in classPropertyValue
- Returns:
- object value
-
getAttributes
Return the attributes that make up the fields of the struct.- Returns:
- attributes ElementProperties iterator
-
setAttributes
Set up the attributes that make up the fields of the struct.- Parameters:
attributes
- ElementProperties iterator
-
toString
Standard toString method.- Overrides:
toString
in classPropertyValue
- Returns:
- JSON style description of variables.
-
equals
Validate that an object is equal depending on their stored values.- Overrides:
equals
in classPropertyValue
- Parameters:
objectToCompare
- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the property values- Overrides:
hashCode
in classPropertyValue
- Returns:
- int hash code
-