public class ArrayPropertyValue extends PropertyValue
| Constructor and Description |
|---|
ArrayPropertyValue()
Default constructor sets the array to empty.
|
ArrayPropertyValue(ArrayPropertyValue template)
Copy/clone constructor set up the array 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 |
getArrayCount()
Return the number of elements in the array.
|
ElementProperties |
getArrayValues()
Return a copy of the array elements.
|
int |
hashCode()
Return a hash code based on the property values
|
void |
setArrayCount(int arrayCount)
Set up the number of elements in the array.
|
void |
setArrayValue(int elementNumber,
PropertyValue propertyValue)
Add or update an element in the array.
|
void |
setArrayValues(ElementProperties arrayValues)
Set up the array 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 ArrayPropertyValue()
public ArrayPropertyValue(ArrayPropertyValue template)
template - ArrayPropertyValuepublic PropertyValue cloneFromSubclass()
cloneFromSubclass in class PropertyValuepublic String valueAsString()
valueAsString in class PropertyValuepublic Object valueAsObject()
valueAsObject in class PropertyValuepublic int getArrayCount()
public void setArrayCount(int arrayCount)
arrayCount - int array sizepublic ElementProperties getArrayValues()
public void setArrayValue(int elementNumber,
PropertyValue propertyValue)
elementNumber - index number of the element in the arraypropertyValue - value to storepublic void setArrayValues(ElementProperties arrayValues)
arrayValues - 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.