public class ArrayValueObject extends ValueObject implements java.util.List<ValueObjectInterface>
defaultTTL, locale, traceDefault, valueForTrue
ANYTYPE, ARRAYTYPE, BINARYTYPE, BOOLEANTYPE, BYTETYPE, CHARTYPE, DISPLAYVALUE, DOUBLETYPE, FLOATTYPE, GROUP_NAME, INITIALVALUE, INTTYPE, LOG_MESSAGE, LONGTYPE, NAME, OBJECTTYPE, ORDER, PASSWORD_DIGEST, PROPERTYTYPE, QUALITY_BAD, QUALITY_COMM_FAILURE, QUALITY_DEVICE_FAILURE, QUALITY_EGU_EXCEEDED, QUALITY_EVALUATION_EXPIRED, QUALITY_GOOD, QUALITY_IMPOSSIBLE, QUALITY_INITIAL, QUALITY_LAST_USABLE, QUALITY_OUT_OF_SERVICE, QUALITY_PROPERTYONLY, QUALITY_REMOTE_PROXY_INIT, QUALITY_SIMULATED, QUALITY_SOURCE_REMOVED, QUALITY_TRANSITIONAL, QUALITY_UNKNOWN, QUALITY_WARNING, QUALITY_WORST, QUALITY_WRITE_IN_PROGRESS, REQUESTCURRENTVALUE, REQUESTHISTORICAL, SHORTTYPE, STRINGTYPE, TRACE, TWODTYPE, UNSIGNEDBYTETYPE, UNSIGNEDINTTYPE, UNSIGNEDLONGTYPE, UNSIGNEDSHORTTYPE, USER_NAME
Constructor and Description |
---|
ArrayValueObject() |
ArrayValueObject(int size)
Create an object with a given size in the default locale.
|
ArrayValueObject(int size,
java.util.Locale locale)
Create an object with a given size and in a particular locale.
|
ArrayValueObject(java.lang.Object[] array)
Create a new object from a vector.
|
ArrayValueObject(java.lang.Object[] array,
java.util.Locale locale)
Create a new object from a vector.
|
ArrayValueObject(java.util.Vector<ValueObjectInterface> values) |
ArrayValueObject(java.util.Vector<ValueObjectInterface> values,
java.util.Locale locale)
Create an object from a vector in a given locale.
|
Modifier and Type | Method and Description |
---|---|
void |
acquirePropertiesFrom(ValueObjectInterface source)
Copies many of the attributes from this object to the target object.
|
void |
add(int index,
ValueObjectInterface element) |
boolean |
add(ValueObjectInterface e) |
boolean |
addAll(java.util.Collection<? extends ValueObjectInterface> c) |
boolean |
addAll(int index,
java.util.Collection<? extends ValueObjectInterface> c) |
void |
addElement(ValueObjectInterface newValue)
Adds a value to the array.
|
void |
clear()
This clears the Vector using removeAllElements.
|
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
ValueObjectInterface |
copy()
This will return a full copy of the ValueObject.
|
ValueObjectInterface |
elementAt(int location)
Returns the element at the given location in the array.
|
boolean |
equals(java.lang.Object obj)
This method is in every subclass of Object.
|
ValueObjectInterface |
get(int location)
Returns the element at the given location in the array.
|
byte[] |
getBinaryValue()
This will return the current value of the ValueObject as a byte array by calling getByteValue on each element of the array.
|
boolean |
getBoolValue()
This will return the current value of the ValueObject as a boolean.
|
byte |
getByteValue()
This will return the current value of the ValueObject as a byte.
|
char |
getCharValue()
This will return the current value of the ValueObject as a char.
|
double |
getDoubleValue()
This will return the current value of the ValueObject as a double.
|
char |
getElementType() |
float |
getFloatValue()
This will return the current value of the ValueObject as a float.
|
int |
getIntValue()
This will return the current value of the ValueObject as a int.
|
java.util.Locale |
getLocale()
This method returns the Locale that this object was created in.
|
long |
getLongValue()
This will return the current value of the ValueObject as a long.
|
double |
getNumericValue()
This will return the current value as a double.
|
java.lang.Object |
getObjectValue()
This will return the current value of the ValueObject as a Object.
|
short |
getShortValue()
This will return the current value of the ValueObject as a short.
|
java.lang.String |
getStringValue()
This will return the current value of the ValueObject as a String.
|
ValueObjectInterface |
getValue(int loc)
This returns the ValueObject at the requested index
|
java.util.Vector<ValueObjectInterface> |
getValues()
Returns the vector of the array.
|
int |
hashCode() |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator<ValueObjectInterface> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<ValueObjectInterface> |
listIterator() |
java.util.ListIterator<ValueObjectInterface> |
listIterator(int index) |
ValueObjectInterface |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
ValueObjectInterface |
set(int index,
ValueObjectInterface element) |
void |
setElementType(char elementType) |
void |
setQuality(int newValue)
Changing the quality of the array will change the quality of the
components in the array such that all values are at least as bad as the
array.
|
void |
setTTL(int ttl)
Set the TTLs of all the value objects in the array.
|
void |
setValue(ValueObjectInterface newValue) |
void |
setValues(java.util.Vector<ValueObjectInterface> values)
sets the elements of the array from a vector
|
int |
size()
This returns the size
|
java.util.List<ValueObjectInterface> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toJSON(boolean incFormatted,
boolean stringDate)
Creates a json array.
|
acquireLatestPropertiesFrom, attributeNames, compareTo, convertToLowestPrecisionNumber, decrementTTL, escapeJSON, getAlwaysSend, getColor, getDate, getLowestPrecisionValueObject, getProperties, getProperty, getQuality, getQualityString, getTime, getTimeMillis, getTTL, getType, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, replaces, setAlwaysSend, setColor, setDate, setLocale, setProperty, setTimeMillis, setType, setValueForTrue, shouldTrace, toJSON, toJSON, toString
public ArrayValueObject()
public ArrayValueObject(int size)
public ArrayValueObject(int size, java.util.Locale locale)
public ArrayValueObject(java.lang.Object[] array)
public ArrayValueObject(java.lang.Object[] array, java.util.Locale locale)
public ArrayValueObject(java.util.Vector<ValueObjectInterface> values)
public ArrayValueObject(java.util.Vector<ValueObjectInterface> values, java.util.Locale locale)
public void acquirePropertiesFrom(ValueObjectInterface source)
ValueObject
acquirePropertiesFrom
in interface ValueObjectInterface
acquirePropertiesFrom
in class ValueObject
public void add(int index, ValueObjectInterface element)
add
in interface java.util.List<ValueObjectInterface>
public boolean add(ValueObjectInterface e)
add
in interface java.util.Collection<ValueObjectInterface>
add
in interface java.util.List<ValueObjectInterface>
public boolean addAll(java.util.Collection<? extends ValueObjectInterface> c)
addAll
in interface java.util.Collection<ValueObjectInterface>
addAll
in interface java.util.List<ValueObjectInterface>
public boolean addAll(int index, java.util.Collection<? extends ValueObjectInterface> c)
addAll
in interface java.util.List<ValueObjectInterface>
public void addElement(ValueObjectInterface newValue)
public void clear()
clear
in interface java.util.Collection<ValueObjectInterface>
clear
in interface java.util.List<ValueObjectInterface>
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<ValueObjectInterface>
contains
in interface java.util.List<ValueObjectInterface>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<ValueObjectInterface>
containsAll
in interface java.util.List<ValueObjectInterface>
public ValueObjectInterface copy()
copy
in interface ValueObjectInterface
public ValueObjectInterface elementAt(int location)
public boolean equals(java.lang.Object obj)
equals
in interface ValueObjectInterface
equals
in interface java.util.Collection<ValueObjectInterface>
equals
in interface java.util.List<ValueObjectInterface>
equals
in class ValueObject
public ValueObjectInterface get(int location)
get
in interface java.util.List<ValueObjectInterface>
public byte[] getBinaryValue()
getBinaryValue
in interface ValueObjectInterface
getBinaryValue
in class ValueObject
public boolean getBoolValue()
getBoolValue
in interface ValueObjectInterface
public byte getByteValue()
getByteValue
in interface ValueObjectInterface
public char getCharValue()
public double getDoubleValue()
getDoubleValue
in interface ValueObjectInterface
ValueObjectInterface.getNumericValue()
public char getElementType()
public float getFloatValue()
getFloatValue
in interface ValueObjectInterface
public int getIntValue()
getIntValue
in interface ValueObjectInterface
public java.util.Locale getLocale()
getLocale
in interface ValueObjectInterface
getLocale
in class ValueObject
public long getLongValue()
getLongValue
in interface ValueObjectInterface
public double getNumericValue() throws java.lang.NumberFormatException
getNumericValue
in interface ValueObjectInterface
java.lang.NumberFormatException
ValueObjectInterface.getDoubleValue()
public java.lang.Object getObjectValue()
getObjectValue
in interface ValueObjectInterface
public short getShortValue()
getShortValue
in interface ValueObjectInterface
public java.lang.String getStringValue()
getStringValue
in interface ValueObjectInterface
public ValueObjectInterface getValue(int loc)
public java.util.Vector<ValueObjectInterface> getValues()
public int hashCode()
hashCode
in interface java.util.Collection<ValueObjectInterface>
hashCode
in interface java.util.List<ValueObjectInterface>
hashCode
in class ValueObject
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<ValueObjectInterface>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<ValueObjectInterface>
isEmpty
in interface java.util.List<ValueObjectInterface>
public java.util.Iterator<ValueObjectInterface> iterator()
iterator
in interface java.lang.Iterable<ValueObjectInterface>
iterator
in interface java.util.Collection<ValueObjectInterface>
iterator
in interface java.util.List<ValueObjectInterface>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<ValueObjectInterface>
public java.util.ListIterator<ValueObjectInterface> listIterator()
listIterator
in interface java.util.List<ValueObjectInterface>
public java.util.ListIterator<ValueObjectInterface> listIterator(int index)
listIterator
in interface java.util.List<ValueObjectInterface>
public ValueObjectInterface remove(int index)
remove
in interface java.util.List<ValueObjectInterface>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<ValueObjectInterface>
remove
in interface java.util.List<ValueObjectInterface>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<ValueObjectInterface>
removeAll
in interface java.util.List<ValueObjectInterface>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<ValueObjectInterface>
retainAll
in interface java.util.List<ValueObjectInterface>
public ValueObjectInterface set(int index, ValueObjectInterface element)
set
in interface java.util.List<ValueObjectInterface>
public void setElementType(char elementType)
elementType
- the elementType to setpublic void setQuality(int newValue)
setQuality
in interface ValueObjectInterface
setQuality
in class ValueObject
newValue
- the data qualityValueObjectInterface.setQuality(int)
public void setTTL(int ttl)
setTTL
in interface ValueObjectInterface
setTTL
in class ValueObject
ttl
- The ttl to set.public void setValue(ValueObjectInterface newValue)
public void setValues(java.util.Vector<ValueObjectInterface> values)
public int size()
size
in interface java.util.Collection<ValueObjectInterface>
size
in interface java.util.List<ValueObjectInterface>
public java.util.List<ValueObjectInterface> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<ValueObjectInterface>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<ValueObjectInterface>
toArray
in interface java.util.List<ValueObjectInterface>
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<ValueObjectInterface>
toArray
in interface java.util.List<ValueObjectInterface>
public java.lang.String toJSON(boolean incFormatted, boolean stringDate)
toJSON
in class ValueObject
incFormatted
- true if the string value of this value object is to be provided under the "formattedValue" keystringDate
- if true, the "timestamp" key will be a String of the form "yyyy-MM-dd HH:mm:ss.zzz"Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.