|
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.Objectleon.data.LyValue
leon.data.LyFieldInfoValue
leon.data.LyRelationValue
public final class LyRelationValue
This class offers methods for constructing, accessing and modifying values corresponding to a LyRelationFieldInfo.
LyRelationFieldInfo
,
LyObject
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Constructor Summary | |
---|---|
LyRelationValue(LyRelationFieldInfo relationFieldInfo)
Constructs an empty relation value for the given relation field. |
|
LyRelationValue(LyRelationFieldInfo relationFieldInfo,
LyObject value)
Constructs a relation value for the given relation field from a LyObject. |
|
LyRelationValue(LyRelationFieldInfo relationFieldInfo,
LyObjectId value)
Constructs a relation value for the given relation field from a LyObjectId. |
|
LyRelationValue(LyRelationFieldInfo relationFieldInfo,
LyObjectId[] value)
Constructs a relation value for the given relation field from an array of LyObjectId. |
|
LyRelationValue(LyRelationFieldInfo relationFieldInfo,
LyObjectList value)
Constructs a relation value for the given relation field from a LyObjectList. |
|
LyRelationValue(LyRelationFieldInfo relationFieldInfo,
java.lang.String value)
Constructs a relation value for the given relation field from a string. |
Method Summary | |
---|---|
LyObject |
getObject(int index)
Gets value at the given index as a LyObject. |
LyObjectId |
getObjectId(int index)
Gets value at the given index as a LyObjectId. |
LyObjectList |
getObjectList()
Gets value of this relation value as a LyObjectList. |
java.lang.String |
getString(int index)
Gets value at the given index as a String. |
short |
getValueCount()
Gets number of selected objects in this relation 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 |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyRelationValue(LyRelationFieldInfo relationFieldInfo)
relationFieldInfo
- Relation fieldInfo for which a value is created.public LyRelationValue(LyRelationFieldInfo relationFieldInfo, java.lang.String value)
relationFieldInfo
- Relation fieldInfo for which a value is created.value
- String value (as expected by parse method).LyRelationFieldInfo.parse(java.lang.String)
public LyRelationValue(LyRelationFieldInfo relationFieldInfo, LyObjectId value)
relationFieldInfo
- Relation fieldInfo for which a value is created.value
- Value given as a LyObjectId.
java.lang.IllegalArgumentException
- If the given object id doesn't concern a class to which
the relation field is related with.public LyRelationValue(LyRelationFieldInfo relationFieldInfo, LyObjectId[] value)
relationFieldInfo
- Relation fieldInfo for which a value is created.value
- Value given as an array of LyObjectId.
java.lang.IllegalArgumentException
- If the relation field is not multiple and the array
length is greater than 1.
java.lang.IllegalArgumentException
- If one of the given object ids doesn't concern a class to
which the relation field is related with.public LyRelationValue(LyRelationFieldInfo relationFieldInfo, LyObject value)
relationFieldInfo
- Relation fieldInfo for which a value is created.value
- Value given as a LyObject.
java.lang.IllegalArgumentException
- If the given object doesn't belong to a class to which
the relation field is related with.public LyRelationValue(LyRelationFieldInfo relationFieldInfo, LyObjectList value)
relationFieldInfo
- Relation fieldInfo for which a value is created.value
- Value given as a LyObjectId.
java.lang.IllegalArgumentException
- If the relation field is not multiple and the list size
is greater than 1.
java.lang.IllegalArgumentException
- If one object of the given list doesn't belong to a class
to which the relation field is related with.Method Detail |
---|
public LyObjectId getObjectId(int index)
index
- Index of requested object id.
java.lang.IllegalArgumentException
- If index is negative.
java.lang.IllegalArgumentException
- If index is greater than the number of objects selected
in this value.public LyObject getObject(int index)
index
- Index of requested object.
java.lang.IllegalArgumentException
- If index is negative.
java.lang.IllegalArgumentException
- If index is greater than the number of objects selected
in this value.public java.lang.String getString(int index)
index
- Index of requested string.
java.lang.IllegalArgumentException
- If index is negative.
java.lang.IllegalArgumentException
- If index is greater than the number of objects selected
in this value.public short getValueCount()
public LyObjectList getObjectList()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |