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
ConstructorsConstructorDescriptionDefault 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.booleanValidate that an object is equal depending on their stored values.Return the attributes that make up the fields of the struct.inthashCode()Return a hash code based on the property valuesvoidsetAttributes(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, 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:
cloneFromSubclassin classPropertyValue- Returns:
- subclass of PropertyValue
-
valueAsString
Return the string version of the value - used for error logging.- Specified by:
valueAsStringin classPropertyValue- Returns:
- string value
-
valueAsObject
Return the object version of the value - used for comparisons.- Specified by:
valueAsObjectin 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:
toStringin classPropertyValue- Returns:
- JSON style description of variables.
-
equals
Validate that an object is equal depending on their stored values.- Overrides:
equalsin classPropertyValue- Parameters:
objectToCompare- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the property values- Overrides:
hashCodein classPropertyValue- Returns:
- int hash code
-