Class StructPropertyValue
java.lang.Object
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
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
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:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue
CURRENT_INSTANCE_PROPERTY_VALUE_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructor set StructPropertyValue to null.StructPropertyValue
(StructPropertyValue template) 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
(InstanceProperties 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.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue
getInstancePropertyCategory, getTypeGUID, getTypeName, mapValuesAsObject, mapValuesAsString, setInstancePropertyCategory, setTypeGUID, setTypeName
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
getHeaderVersion, setHeaderVersion
-
Constructor Details
-
StructPropertyValue
public StructPropertyValue()Default constructor set StructPropertyValue to null. -
StructPropertyValue
Copy/clone constructor sets up the values based on the template.- Parameters:
template
- StructPropertyValue to copy.
-
-
Method Details
-
cloneFromSubclass
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclass
in classInstancePropertyValue
- Returns:
- subclass of InstancePropertyValue
-
valueAsString
Return the string version of the value - used for error logging.- Specified by:
valueAsString
in classInstancePropertyValue
- Returns:
- string value
-
valueAsObject
Return the object version of the value - used for comparisons.- Specified by:
valueAsObject
in classInstancePropertyValue
- Returns:
- object value
-
getAttributes
Return the attributes that make up the fields of the struct.- Returns:
- attributes InstanceProperties iterator
-
setAttributes
Set up the attributes that make up the fields of the struct.- Parameters:
attributes
- InstanceProperties iterator
-
toString
Standard toString method.- Overrides:
toString
in classInstancePropertyValue
- Returns:
- JSON style description of variables.
-
equals
Validate that an object is equal depending on their stored values.- Overrides:
equals
in classInstancePropertyValue
- Parameters:
objectToCompare
- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the property values- Overrides:
hashCode
in classInstancePropertyValue
- Returns:
- int hash code
-