public class MapPropertyValue extends PropertyValue
| 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 |
|---|---|
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.
|
int |
getMapElementCount()
Return the number of elements in the map.
|
ElementProperties |
getMapValues()
Return a copy of the map elements.
|
int |
hashCode()
Return a hash code based on the property values
|
void |
setMapValue(String propertyName,
PropertyValue propertyValue)
Add or update an element in the map.
|
void |
setMapValues(ElementProperties 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.
|
getTypeName, mapValuesAsObject, mapValuesAsString, setTypeNamepublic MapPropertyValue()
public MapPropertyValue(MapPropertyValue template)
template - ArrayPropertyValuepublic PropertyValue cloneFromSubclass()
cloneFromSubclass in class PropertyValuepublic String valueAsString()
valueAsString in class PropertyValuepublic Object valueAsObject()
valueAsObject in class PropertyValuepublic int getMapElementCount()
public ElementProperties getMapValues()
public void setMapValue(String propertyName, PropertyValue propertyValue)
propertyName - String namepropertyValue - PropertyValue value to storepublic void setMapValues(ElementProperties mapValues)
mapValues - ElementProperties containing the array elementspublic String toString()
toString in class PropertyValuepublic boolean equals(Object objectToCompare)
equals in class PropertyValueobjectToCompare - objectpublic int hashCode()
hashCode in class PropertyValueCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.