public abstract class PropertyValue extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
PropertyValue()
Default constructor for Jackson
|
protected |
PropertyValue(PropertyValue template)
Copy/clone constructor initializes the instance property value from the supplied template.
|
| Modifier and Type | Method and Description |
|---|---|
abstract PropertyValue |
cloneFromSubclass()
Delegate the process of cloning to the subclass.
|
boolean |
equals(Object objectToCompare)
Validate that an object is equal depending on their stored values.
|
String |
getTypeName()
Return the name of the type.
|
int |
hashCode()
Return a hash code based on the property values
|
protected <K,V extends PropertyValue> |
mapValuesAsObject(Map<K,V> valMap)
Default method for "valueAsString".
|
protected <K,V extends PropertyValue> |
mapValuesAsString(Map<K,V> valMap)
Default method for "valueAsObject".
|
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 PropertyValue()
protected PropertyValue(PropertyValue template)
template - PropertyValuepublic abstract PropertyValue cloneFromSubclass()
public abstract String valueAsString()
public abstract Object valueAsObject()
protected <K,V extends PropertyValue> Map<K,Object> mapValuesAsObject(Map<K,V> valMap)
K - keyV - valuevalMap - mappingprotected <K,V extends PropertyValue> Map<K,String> mapValuesAsString(Map<K,V> valMap)
K - keyV - valuevalMap - mappingpublic 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.