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
ConstructorsConstructorDescriptionDefault 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.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(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, setInstancePropertyCategory, setTypeGUID, setTypeNameMethods 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:
cloneFromSubclassin classInstancePropertyValue- Returns:
- subclass of InstancePropertyValue
-
valueAsString
Return the string version of the value - used for error logging.- Specified by:
valueAsStringin classInstancePropertyValue- Returns:
- string value
-
valueAsObject
Return the object version of the value - used for comparisons.- Specified by:
valueAsObjectin 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:
toStringin classInstancePropertyValue- Returns:
- JSON style description of variables.
-
equals
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
-