public class PrimitivePropertyValue extends InstancePropertyValue
| Constructor and Description |
|---|
PrimitivePropertyValue()
Default constructor sets the primitive property value to null.
|
PrimitivePropertyValue(PrimitivePropertyValue template)
Copy/clone constructor copies the values from the supplied template.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
PrimitiveDefCategory |
getPrimitiveDefCategory()
Return the the category of the primitive's type.
|
Object |
getPrimitiveValue()
Return the primitive value.
|
int |
hashCode()
Return a hash code based on the property values
|
void |
setPrimitiveDefCategory(PrimitiveDefCategory primitiveDefCategory)
Set up the category of the primitive type.
|
void |
setPrimitiveValue(Object primitiveValue)
Set up the primitive value.
|
String |
toString()
Standard toString method.
|
Object |
valueAsObject()
Return the object version of the value - used for comparisons.
|
String |
valueAsString()
Return the string version of the value - used for error logging.
|
getInstancePropertyCategory, getTypeGUID, getTypeName, mapValuesAsObject, mapValuesAsString, setInstancePropertyCategory, setTypeGUID, setTypeNamepublic PrimitivePropertyValue()
public PrimitivePropertyValue(PrimitivePropertyValue template)
template - PrimitivePropertyValuepublic InstancePropertyValue cloneFromSubclass()
cloneFromSubclass in class InstancePropertyValuepublic String valueAsString()
valueAsString in class InstancePropertyValuepublic Object valueAsObject()
valueAsObject in class InstancePropertyValuepublic PrimitiveDefCategory getPrimitiveDefCategory()
public void setPrimitiveDefCategory(PrimitiveDefCategory primitiveDefCategory)
primitiveDefCategory - PrimitiveDefCategory enumpublic Object getPrimitiveValue()
public void setPrimitiveValue(Object primitiveValue)
primitiveValue - object contain the primitive valuepublic String toString()
toString in class InstancePropertyValuepublic boolean equals(Object objectToCompare)
equals in class InstancePropertyValueobjectToCompare - objectpublic int hashCode()
hashCode in class InstancePropertyValueCopyright © 2018–2020 ODPi. All rights reserved.