|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<LyValue>
leon.data.LyValueSet
public class LyValueSet
This class is used to hold a list of values (LyValue).
It allows to give a list of 'values' when creating or modifying an object, or to get a list of values from an object.
LyValue
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Constructor Summary | |
---|---|
LyValueSet()
Constructs an empty values set. |
|
LyValueSet(boolean checkFields)
Constructs an empty values set. |
|
LyValueSet(LyClass valuesClass)
Constructs a value set for a given class. |
|
LyValueSet(LyValueSet values)
Constructs a values set from an existing one. |
Method Summary | |
---|---|
void |
addValue(LyField field,
java.lang.Object value)
Adds a new pair (field, value) in the values set. |
void |
addValue(LyValue value)
Adds a new field value in the set. |
void |
addValues(LyValueSet values)
Adds a set of values in this set. |
boolean |
contains(LyField field)
Checks if a field value corresponding to the given field is present in this values set. |
boolean |
contains(LyFieldInfo fieldInfo,
boolean allowAccessByType)
Checks if a field value corresponding to the given field is present in this values set. |
void |
enableCheckField()
Enable the check state during the addition of values |
LyApplication |
getApplication()
Retrieves application of the class info of this object. |
LyValue |
getFieldValue(int index)
Retrieves a field value (LyValue) in this values set at the given index. |
LyValue |
getFieldValue(LyField field)
Retrieves a field value (LyValue) in this values set for a given field. |
LyValue |
getFieldValue(LyFieldInfo fieldInfo,
boolean allowAccessByType)
Retrieves a field value (LyValue) in this values set for a given field. |
LyValue |
getFieldValue(java.lang.String id)
Retrieves a field value (LyValue) in this values set for a given field. |
java.util.Map<LyField,LyValue> |
getMap()
Gets a map containing pairs of (field, value) of this values set. |
int |
getSize()
Gets the number of field values in the values set. |
boolean |
hasMark(int mark)
Checks if the value set contains at least one field value corresponding to the given field info that has the specified mark. |
boolean |
hasMarks(java.util.BitSet marks,
boolean matchAll)
Checks if the value set contains at least one field value corresponding to the given field info that has the specified marks. |
LyValue |
removeValue(LyField field)
Removes the first field value corresponding to a given field from the set. |
java.lang.String |
toString()
Dumps content of this value set in a string. |
Methods inherited from class java.util.Vector |
---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyValueSet()
public LyValueSet(boolean checkFields)
checkFields
- value of the checkfield propertiespublic LyValueSet(LyClass valuesClass)
valuesClass
- a LyClasspublic LyValueSet(LyValueSet values)
values
- a list of valuesMethod Detail |
---|
public LyValue getFieldValue(LyField field)
field
- Field for which a field value in searched in this values set.
public LyValue getFieldValue(LyFieldInfo fieldInfo, boolean allowAccessByType)
fieldInfo
- Field info for which a field value in searched in this values set.allowAccessByType
- Allow access by type. If true, value may be retrieved from
a template field of given field info.
public LyValue getFieldValue(java.lang.String id)
id
- Field id for which a field value in searched in this values set.
public LyValue getFieldValue(int index)
index
- Index of the searched field value.
java.lang.ArrayIndexOutOfBoundsException
- If the given index is negative.
java.lang.ArrayIndexOutOfBoundsException
- If the given index is greater or equals to the
number of values of the set.public int getSize()
public void addValue(LyValue value)
value
- Field value to add to this values set.public void addValue(LyField field, java.lang.Object value)
field
- Field for which a field value is added.value
- Value assigned to the given field.public void addValues(LyValueSet values)
values
- Set of values added in this set.public LyValue removeValue(LyField field)
field
- Field for which a field value has to be removed.
public boolean contains(LyField field)
field
- Field for which an existing field value is searched.
public boolean contains(LyFieldInfo fieldInfo, boolean allowAccessByType)
fieldInfo
- Field for which an existing field value is searched.allowAccessByType
- Allow access by type.
public boolean hasMark(int mark)
mark
- Searched mark.
public boolean hasMarks(java.util.BitSet marks, boolean matchAll)
marks
- Searched marks.matchAll
- Specifies if this instance have to match all specified marks or only one.
public java.lang.String toString()
toString
in class java.util.Vector<LyValue>
public java.util.Map<LyField,LyValue> getMap()
public void enableCheckField()
public final LyApplication getApplication()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |