Class StructPropertyValue
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.governanceaction.search.PropertyValue
-
- org.odpi.openmetadata.frameworks.governanceaction.search.StructPropertyValue
-
- All Implemented Interfaces:
Serializable
public class StructPropertyValue extends PropertyValue
StructPropertyValue 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StructPropertyValue()Default constructor set StructPropertyValue to null.StructPropertyValue(StructPropertyValue template)Copy/clone constructor sets up the values based on the template.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyValuecloneFromSubclass()Delegate the process of cloning to the subclass.booleanequals(Object objectToCompare)Validate that an object is equal depending on their stored values.ElementPropertiesgetAttributes()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.StringtoString()Standard toString method.ObjectvalueAsObject()Return the object version of the value - used for comparisons.StringvalueAsString()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 Detail
-
StructPropertyValue
public StructPropertyValue()
Default constructor set StructPropertyValue to null.
-
StructPropertyValue
public StructPropertyValue(StructPropertyValue template)
Copy/clone constructor sets up the values based on the template.- Parameters:
template- StructPropertyValue to copy.
-
-
Method Detail
-
cloneFromSubclass
public PropertyValue cloneFromSubclass()
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclassin classPropertyValue- Returns:
- subclass of PropertyValue
-
valueAsString
public String valueAsString()
Return the string version of the value - used for error logging.- Specified by:
valueAsStringin classPropertyValue- Returns:
- string value
-
valueAsObject
public Object valueAsObject()
Return the object version of the value - used for comparisons.- Specified by:
valueAsObjectin classPropertyValue- Returns:
- object value
-
getAttributes
public ElementProperties getAttributes()
Return the attributes that make up the fields of the struct.- Returns:
- attributes ElementProperties iterator
-
setAttributes
public void setAttributes(ElementProperties attributes)
Set up the attributes that make up the fields of the struct.- Parameters:
attributes- ElementProperties iterator
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classPropertyValue- Returns:
- JSON style description of variables.
-
equals
public boolean equals(Object objectToCompare)
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
-
-