public class ArrayPropertyValue extends InstancePropertyValue
| 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 |
|---|---|
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 |
getArrayCount()
Return the number of elements in the array.
|
InstanceProperties |
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,
InstancePropertyValue propertyValue)
Add or update an element in the array.
|
void |
setArrayValues(InstanceProperties 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.
|
getInstancePropertyCategory, getTypeGUID, getTypeName, mapValuesAsObject, mapValuesAsString, setInstancePropertyCategory, setTypeGUID, setTypeNamepublic ArrayPropertyValue()
public ArrayPropertyValue(ArrayPropertyValue template)
template - ArrayPropertyValuepublic InstancePropertyValue cloneFromSubclass()
cloneFromSubclass in class InstancePropertyValuepublic String valueAsString()
valueAsString in class InstancePropertyValuepublic Object valueAsObject()
valueAsObject in class InstancePropertyValuepublic int getArrayCount()
public void setArrayCount(int arrayCount)
arrayCount - int array sizepublic InstanceProperties getArrayValues()
public void setArrayValue(int elementNumber,
InstancePropertyValue propertyValue)
elementNumber - index number of the element in the arraypropertyValue - value to storepublic void setArrayValues(InstanceProperties arrayValues)
arrayValues - 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–2020 ODPi. All rights reserved.