LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.data
Class LyArrayValue

java.lang.Object
  extended by leon.data.LyValue
      extended by leon.data.LyFieldInfoValue
          extended by leon.data.LyArrayValue

public final class LyArrayValue
extends LyFieldInfoValue

This class offers methods for constructing, accessing and modifying values corresponding to a LyArrayFieldInfo.

See Also:
LyArrayFieldInfo, LyObject

Field Summary
static java.lang.String __VERSION
          File version
 
Constructor Summary
LyArrayValue(LyArrayFieldInfo arrayFieldInfo)
          Constructs an empty array value for the given array field.
LyArrayValue(LyArrayFieldInfo arrayFieldInfo, LyObjectList list)
          Constructs an array value for the given array field from an objects list.
LyArrayValue(LyArrayFieldInfo arrayFieldInfo, java.lang.Object value)
          Constructs an array value for the given array field from an object.
LyArrayValue(LyArrayFieldInfo arrayFieldInfo, java.lang.Object[] value)
          Constructs an array value for the given array field from an array.
 
Method Summary
 LyFieldInfoValue[] getArrayFieldValue()
          Gets value of this array as an array of LyFieldInfoValue.
 java.lang.Object[] getArrayValue()
          Gets value of this array value as an array.
 LyFieldInfoValue getFieldValue(int index)
          Get the field info value at given index fron value table.
 java.lang.Object getValue(int index)
          Get the value at given index from value table.
 int getValueCount()
          Get the number of values found in this array value.
 
Methods inherited from class leon.data.LyFieldInfoValue
compare, contains, equals, equals, getFieldInfo, getName, getName, getShortName, getString
 
Methods inherited from class leon.data.LyValue
getField, getValue, isNull, setValue, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
File version

See Also:
Constant Field Values
Constructor Detail

LyArrayValue

public LyArrayValue(LyArrayFieldInfo arrayFieldInfo)
Constructs an empty array value for the given array field.

Parameters:
arrayFieldInfo - Array fieldInfo for which a value is created.

LyArrayValue

public LyArrayValue(LyArrayFieldInfo arrayFieldInfo,
                    java.lang.Object[] value)
Constructs an array value for the given array field from an array.

Parameters:
arrayFieldInfo - Array fieldInfo for which a value is created.
value - Value given as array.

LyArrayValue

public LyArrayValue(LyArrayFieldInfo arrayFieldInfo,
                    java.lang.Object value)
Constructs an array value for the given array field from an object.

Parameters:
arrayFieldInfo - Array fieldInfo for which a value is created.
value - Value given as an object.

LyArrayValue

public LyArrayValue(LyArrayFieldInfo arrayFieldInfo,
                    LyObjectList list)
Constructs an array value for the given array field from an objects list.

Parameters:
arrayFieldInfo - Array fieldInfo for which a value is created.
list - Value given as an objects list.
Method Detail

getArrayValue

public java.lang.Object[] getArrayValue()
Gets value of this array value as an array.

Returns:
An array corresponding to this value.

getArrayFieldValue

public LyFieldInfoValue[] getArrayFieldValue()
Gets value of this array as an array of LyFieldInfoValue. Each value in this array is a value corresponding to the type of the array.

Returns:
An array of LyFieldInfoValue corresponding to this value.

getValue

public java.lang.Object getValue(int index)
Get the value at given index from value table.

Parameters:
index - Index of the desired value.
Returns:
The value at the specified index.

getFieldValue

public LyFieldInfoValue getFieldValue(int index)
Get the field info value at given index fron value table.

Parameters:
index - Index of the desired field info value
Returns:
The value at the specified index.

getValueCount

public int getValueCount()
Get the number of values found in this array value.

Returns:
Number of values.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com