public class MapPropertyValue extends InstancePropertyValue
| Constructor and Description |
|---|
MapPropertyValue()
Default constructor sets the map to empty.
|
MapPropertyValue(MapPropertyValue template)
Copy/clone constructor set up the map using 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.
|
int |
getMapElementCount()
Return the number of elements in the map.
|
InstanceProperties |
getMapValues()
Return a copy of the map elements.
|
int |
hashCode()
Return a hash code based on the property values
|
void |
setMapValue(String propertyName,
InstancePropertyValue propertyValue)
Add or update an element in the map.
|
void |
setMapValues(InstanceProperties mapValues)
Set up the map elements in one call.
|
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 MapPropertyValue()
public MapPropertyValue(MapPropertyValue template)
template - ArrayPropertyValuepublic InstancePropertyValue cloneFromSubclass()
cloneFromSubclass in class InstancePropertyValuepublic String valueAsString()
valueAsString in class InstancePropertyValuepublic Object valueAsObject()
valueAsObject in class InstancePropertyValuepublic int getMapElementCount()
public InstanceProperties getMapValues()
public void setMapValue(String propertyName, InstancePropertyValue propertyValue)
propertyName - String namepropertyValue - InstancePropertyValue value to storepublic void setMapValues(InstanceProperties mapValues)
mapValues - InstanceProperties containing the array elementspublic String toString()
toString in class InstancePropertyValuepublic boolean equals(Object objectToCompare)
equals in class InstancePropertyValueobjectToCompare - objectpublic int hashCode()
hashCode in class InstancePropertyValueCopyright © 2018–2019 ODPi. All rights reserved.