|
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
public class LyFieldInfoValue
This class is a value wrapper, it offers methods for constructing, accessing and modifying values corresponding to a fieldInfo.
It offers methods that hides the internal representation of the different types of fieldInfos for consulting, creating and modifying logical objects (LyObject).
For existing objects, these "wrapped values" can be got by using getFieldValue method of LyObject.
This class is abstract. A class, adapted to each sub-type of fieldInfo, is provided (see inherited classes).
LyFieldInfo
,
LyObject
,
LyObject.getFieldValue(java.lang.String)
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Constructor Summary | |
---|---|
LyFieldInfoValue(LyFieldInfo fieldInfo)
Constructs an empty value for the given fieldInfo. |
|
LyFieldInfoValue(LyFieldInfo fieldInfo,
java.lang.Object value)
Constructs a value for the given fieldInfo from an untyped object. |
|
LyFieldInfoValue(LyFieldInfo fieldInfo,
java.lang.String value)
Constructs a value for the given fieldInfo from a string. |
Method Summary | |
---|---|
int |
compare(LyFieldInfoValue value)
Compares this value to the given value. |
boolean |
contains(LyFieldInfoValue value)
Checks if the given value is contained in this value. |
boolean |
equals(LyFieldInfoValue value)
Compares this value to the given value for equality. |
boolean |
equals(java.lang.Object value)
Compares this value to the given value for equality. |
LyFieldInfo |
getFieldInfo()
Gets the fieldInfo to which this value corresponds. |
java.lang.String |
getName()
Returns a "displayable string" (string that can be shown to the end-user) for this value. |
java.lang.String |
getName(boolean removeTags)
Returns a "displayable string" (string that can be shown to the end-user) for this value. |
java.lang.String |
getShortName()
Returns this value as a short "displayable string" (short string that can be shown to the end-user). |
java.lang.String |
getString()
Converts this value to an "internal" string (not shown to end-user, but that enables reconstruction through LyFieldInfo.parse or using the constructor with value passed as string). |
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 LyFieldInfoValue(LyFieldInfo fieldInfo)
fieldInfo
- FieldInfo for which a value is created.public LyFieldInfoValue(LyFieldInfo fieldInfo, java.lang.Object value)
fieldInfo
- FieldInfo for which a value is created.value
- Value given as an untyped object.public LyFieldInfoValue(LyFieldInfo fieldInfo, java.lang.String value)
fieldInfo
- FieldInfo for which a value is created.value
- Value given as a string. This method uses the parse method of LyFieldInfo.LyFieldInfo.parse(java.lang.String)
Method Detail |
---|
public LyFieldInfo getFieldInfo()
public final java.lang.String getName()
LyFieldInfo.toName(java.lang.Object)
public java.lang.String getName(boolean removeTags)
removeTags
- Remove rich-text tags.
LyFieldInfo.toName(java.lang.Object)
public java.lang.String getShortName()
LyFieldInfo.toShortName(java.lang.Object)
public java.lang.String getString()
getString
in class LyValue
LyFieldInfo.toString(java.lang.Object)
,
LyFieldInfo.parse(java.lang.String)
public final int compare(LyFieldInfoValue value)
value
- Value to which this value is compared.
LyFieldInfo.compare(java.lang.Object, java.lang.Object, java.util.BitSet)
public final boolean equals(LyFieldInfoValue value)
value
- Value to which this value is compared.
LyFieldInfo.compare(java.lang.Object, java.lang.Object, java.util.BitSet)
public boolean equals(java.lang.Object value)
equals
in class java.lang.Object
value
- Value to which this value is compared.
LyFieldInfo.compare(java.lang.Object, java.lang.Object, java.util.BitSet)
public final boolean contains(LyFieldInfoValue value)
value
- Value to which this value is compared.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |