Class StructPropertyValue
- java.lang.Object
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceElementHeader
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.StructPropertyValue
-
- All Implemented Interfaces:
Serializable
public class StructPropertyValue extends InstancePropertyValue
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 InstancePropertyValuecloneFromSubclass()Delegate the process of cloning to the subclass.booleanequals(Object objectToCompare)Validate that an object is equal depending on their stored values.InstancePropertiesgetAttributes()Return the attributes that make up the fields of the struct.inthashCode()Return a hash code based on the property valuesvoidsetAttributes(InstanceProperties 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.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue
getInstancePropertyCategory, getTypeGUID, getTypeName, mapValuesAsObject, mapValuesAsString, setInstancePropertyCategory, setTypeGUID, 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 InstancePropertyValue cloneFromSubclass()
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclassin classInstancePropertyValue- Returns:
- subclass of InstancePropertyValue
-
valueAsString
public String valueAsString()
Return the string version of the value - used for error logging.- Specified by:
valueAsStringin classInstancePropertyValue- Returns:
- string value
-
valueAsObject
public Object valueAsObject()
Return the object version of the value - used for comparisons.- Specified by:
valueAsObjectin classInstancePropertyValue- Returns:
- object value
-
getAttributes
public InstanceProperties getAttributes()
Return the attributes that make up the fields of the struct.- Returns:
- attributes InstanceProperties iterator
-
setAttributes
public void setAttributes(InstanceProperties attributes)
Set up the attributes that make up the fields of the struct.- Parameters:
attributes- InstanceProperties iterator
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classInstancePropertyValue- 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 classInstancePropertyValue- Parameters:
objectToCompare- object- Returns:
- boolean result
-
hashCode
public int hashCode()
Return a hash code based on the property values- Overrides:
hashCodein classInstancePropertyValue- Returns:
- int hash code
-
-