public abstract class InstancePropertyValue extends InstanceElementHeader
| Modifier | Constructor and Description |
|---|---|
protected |
InstancePropertyValue()
Default constructor for Jackson
|
protected |
InstancePropertyValue(InstancePropertyCategory instancePropertyCategory)
Typical constructor initializes the instance property value to nulls.
|
protected |
InstancePropertyValue(InstancePropertyValue template)
Copy/clone constructor initializes the instance property value from the supplied template.
|
| Modifier and Type | Method and Description |
|---|---|
abstract InstancePropertyValue |
cloneFromSubclass()
Delegate the process of cloning to the subclass.
|
boolean |
equals(Object objectToCompare)
Validate that an object is equal depending on their stored values.
|
InstancePropertyCategory |
getInstancePropertyCategory()
Return the category of this instance property's type.
|
String |
getTypeGUID()
Return the unique GUID for the type.
|
String |
getTypeName()
Return the name of the type.
|
int |
hashCode()
Return a hash code based on the property values
|
protected <K,V extends InstancePropertyValue> |
mapValuesAsObject(Map<K,V> valMap)
Default method for "valueAsString".
|
protected <K,V extends InstancePropertyValue> |
mapValuesAsString(Map<K,V> valMap)
Default method for "valueAsObject".
|
void |
setInstancePropertyCategory(InstancePropertyCategory instancePropertyCategory)
Set up the category for this instance property.
|
void |
setTypeGUID(String typeGUID)
Set up the unique GUID of the type.
|
void |
setTypeName(String typeName)
Set up the name of the type.
|
String |
toString()
Standard toString method.
|
abstract Object |
valueAsObject()
Return the object version of the value - used for comparisons.
|
abstract String |
valueAsString()
Return the string version of the value - used for error logging.
|
protected InstancePropertyValue()
protected InstancePropertyValue(InstancePropertyCategory instancePropertyCategory)
instancePropertyCategory - InstancePropertyCategory Enumprotected InstancePropertyValue(InstancePropertyValue template)
template - InstancePropertyValuepublic abstract InstancePropertyValue cloneFromSubclass()
public abstract String valueAsString()
public abstract Object valueAsObject()
protected <K,V extends InstancePropertyValue> Map<K,Object> mapValuesAsObject(Map<K,V> valMap)
K - keyV - valuevalMap - mappingprotected <K,V extends InstancePropertyValue> Map<K,String> mapValuesAsString(Map<K,V> valMap)
K - keyV - valuevalMap - mappingpublic InstancePropertyCategory getInstancePropertyCategory()
public void setInstancePropertyCategory(InstancePropertyCategory instancePropertyCategory)
instancePropertyCategory - new categorypublic String getTypeGUID()
public void setTypeGUID(String typeGUID)
typeGUID - String unique identifierpublic String getTypeName()
public void setTypeName(String typeName)
typeName - String type namepublic String toString()
public boolean equals(Object objectToCompare)
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.