|
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.info.LyTag
leon.info.LyInfo
leon.info.LyObjectInfo
leon.info.LyFieldInfo
leon.info.LyArrayFieldInfo
public class LyArrayFieldInfo
This class represents an array for a given field info.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class leon.info.LyTag |
---|
LyTag.Model |
Field Summary | |
---|---|
static java.lang.String |
__version
|
Fields inherited from class leon.info.LyObjectInfo |
---|
__VERSION, NULL, PART_ALL, PART_BIND, PART_DATA, PART_GUI, PART_LABEL |
Fields inherited from interface leon.data.LyField |
---|
__VERSION |
Method Summary | |
---|---|
LyValue |
buildFieldValue(java.lang.Object value)
Builds the appropriate LyValue corresponding to this field from a value provided as an Object. |
java.lang.String |
checkValue(LyEnvironment environment,
java.lang.Object fieldValue)
Unitary check of the given value and produce a legible message to the end user if the value is incorrect. |
int |
compare(java.lang.Object value1,
java.lang.Object value2,
java.util.BitSet modifiers)
Compares two values for the specified field. |
boolean |
contains(java.lang.Object value1,
java.lang.Object value2,
java.util.BitSet modifiers)
Checks if the second value is contained in the first one, for this field. |
java.lang.String |
controlValue(LyEnvironment environment,
java.lang.Object fieldValue)
Unitary control of the given value and produce a legible message to the end user if the value is incorrect. |
boolean |
deepEquals(java.lang.Object value1,
java.lang.Object value2,
java.util.BitSet modifiers)
Compares two objects for this fieldInfo. |
boolean |
endsWith(java.lang.Object value1,
java.lang.Object value2,
java.util.BitSet modifiers)
Checks if the second value ends the first one, for this field. |
boolean |
equals(java.lang.Object value1,
java.lang.Object value2,
java.util.BitSet modifiers)
Compares two values for equality on this field. |
java.lang.Object[] |
getArray(int length)
Returns an array of the specified length for building valid values. |
LyArrayDaemon |
getDaemon()
Gets the definition of the daemon managing this field. |
LyFieldInfo |
getFieldInfo()
Gets the field info defined in this array. |
LyFilterExpression.Condition[] |
getFilterConditions()
Returns the filter conditions authorized on this field. |
short[] |
getFilterModifiers()
Returns the filter modifiers authorized on this field. |
short |
getMaxCardinality()
Gets maximum cardinality. |
short |
getMinCardinality()
Gets minimum cardinality. |
int |
getNRows()
Gets the preferred number of rows shown to the user. |
java.lang.Object |
getPeerValue(java.lang.Object value,
java.lang.Class<?> objectClass,
LyObject instance)
Returns an object of the given class from a value of this fieldInfo. |
java.lang.Object[] |
getPeerValues(java.lang.Object value,
java.lang.Class<?>[] objectClasses,
LyObject instance)
Returns a table of objects for the given classes from a value of this fieldInfo. |
java.lang.Object |
getValue(java.lang.Object fieldValue,
int index)
Get the value at given index from value table. |
java.lang.Class<?> |
getValueClass()
Returns class of values for this field. |
int |
getValueCount(java.lang.Object fieldValue)
Get the number of values found in the given value table. |
java.lang.Object |
getValueFromObject(java.lang.Object object,
LyObject instance)
Builds a logical value for this fieldInfo from a physical (peer) value. |
java.lang.Object |
parse(java.lang.String stringValue)
This method allows to create a value from a string for this field. |
boolean |
startsWith(java.lang.Object value1,
java.lang.Object value2,
java.util.BitSet modifiers)
Checks if the second value starts the first one, for this field. |
java.lang.String |
toName(java.lang.Object fieldValue)
Returns a "displayable string" (string that can be shown to the end-user) of the specified value for this field. |
java.lang.String |
toName(java.lang.Object fieldValue,
java.lang.String separator)
Returns a "displayable string" (string that can be shown to the end-user) of the specified value for this field. |
java.lang.String |
toShortName(java.lang.Object fieldValue)
Returns the specified value for this field as a short "displayable" string (short string that can be shown to the end-user). |
java.lang.String |
toString(java.lang.Object fieldValue)
Converts the specified value for this field to an "internal" string (string that enables reconstruction through parse, but not shown to the user). |
Methods inherited from class leon.info.LyObjectInfo |
---|
clone, getAlias, getData, getDataList, getDatas, getFilePrefix, getGroup, getInternalAlias, getInternalFilePrefix, getInternalName, getMarks, getName, getTemplate, getTip, getUserData, hasMark, hasMarks, hasTemplate, isTemplate, putData, putData, removeData, toName |
Methods inherited from class leon.info.LyInfo |
---|
getApplication, getFile, getId, getInclude, isIncluded, isInternal, isInternal, isLoaded, isLocked, load, setApplication, setFile, toString |
Methods inherited from class leon.info.LyTag |
---|
getCommentsEnd, getCommentsStart, getEnvironment, getModelType, getParent, getRootProject, hasAncestor, isExtern, setCommentsEnd, setCommentsStart, wasCloned |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface leon.data.LyField |
---|
getId |
Methods inherited from interface leon.parser.LyCommentInterface |
---|
getCommentsEnd, getCommentsStart, setCommentsEnd, setCommentsStart |
Field Detail |
---|
public static final java.lang.String __version
Method Detail |
---|
public java.lang.Object getValue(java.lang.Object fieldValue, int index)
fieldValue
- The value table.index
- Index of the desired value.
public int getValueCount(java.lang.Object fieldValue)
fieldValue
- The value table.
public java.lang.Class<?> getValueClass()
getValueClass
in interface LyField
getValueClass
in class LyFieldInfo
LyObject.getValue(leon.info.LyFieldInfo)
public java.lang.Object[] getArray(int length)
length
- The length of the desired array.
public LyValue buildFieldValue(java.lang.Object value)
buildFieldValue
in interface LyField
buildFieldValue
in class LyFieldInfo
value
- Value from which the LyValue is built.
public java.lang.Object parse(java.lang.String stringValue) throws LyFieldInfoFormatException
parse
in class LyFieldInfo
stringValue
- The value presented as a string as produced by the toString method.
LyFieldInfoFormatException
- If the string can't be parsed properly.LyFieldInfo.toString(java.lang.Object)
,
LyFieldInfo.getValueClass()
public java.lang.String toName(java.lang.Object fieldValue)
toName
in class LyFieldInfo
value
- The internal value to convert to a displayable string. The expected class of
this value is the one returned from the getValueClass method.
LyFieldInfo.getValueClass()
public java.lang.String toName(java.lang.Object fieldValue, java.lang.String separator)
value
- The internal value to convert to a displayable string. The expected class of
this value is the one returned from the getValueClass method.String
- separator : The value of separator between field values.
LyFieldInfo.getValueClass()
public java.lang.String toShortName(java.lang.Object fieldValue)
toShortName
in class LyFieldInfo
value
- The internal value to convert to a short displayable string. The expected
class of this value is the one returned from the getValueClass method.
LyFieldInfo.getValueClass()
,
LyFieldInfo.toName(java.lang.Object)
public java.lang.String toString(java.lang.Object fieldValue)
toString
in class LyFieldInfo
value
- The internal value to convert to an internal string. The expected class of
this value is the one returned from the getValueClass method.
LyFieldInfo.parse(java.lang.String)
,
LyFieldInfo.getValueClass()
public java.lang.String controlValue(LyEnvironment environment, java.lang.Object fieldValue)
controlValue
in class LyFieldInfo
environment
- Environment giving the user language if a message has to be produced.value
- Value to control. The expected class of this value is the one returned
from the getValueClass method.
LyFieldInfo.getValueClass()
public java.lang.String checkValue(LyEnvironment environment, java.lang.Object fieldValue)
checkValue
in class LyFieldInfo
environment
- Environment giving the user language if a message has to be produced.value
- Value to check. The expected class of this value is the one returned
from the getValueClass method.
LyFieldInfo.getValueClass()
public boolean equals(java.lang.Object value1, java.lang.Object value2, java.util.BitSet modifiers)
equals
in class LyFieldInfo
value1
- First value.value2
- Second value.modifiers
- Modifiers used for checking (see MOD_XXX constants of
LyFilterExpression).
LyFieldInfo.compare(java.lang.Object, java.lang.Object, java.util.BitSet)
,
LyFieldInfo.getValueClass()
public int compare(java.lang.Object value1, java.lang.Object value2, java.util.BitSet modifiers)
compare
in class LyFieldInfo
value1
- First value.value2
- Second value.modifiers
- Modifiers used for checking (see MOD_XXX constants of
LyFilterExpression).
LyFieldInfo.getValueClass()
public boolean contains(java.lang.Object value1, java.lang.Object value2, java.util.BitSet modifiers)
contains
in class LyFieldInfo
value1
- First value.value2
- Second value.modifiers
- Modifiers used for checking (see MOD_XXX constants of
LyFilterExpression).
LyUnsupportedComparisonException
- If it does not make sense to check if a value
is contained in an other one from this field
"point of view".public boolean startsWith(java.lang.Object value1, java.lang.Object value2, java.util.BitSet modifiers)
startsWith
in class LyFieldInfo
value1
- First value.value2
- Second value.modifiers
- Modifiers used for checking (see MOD_XXX constants of
LyFilterExpression).
LyUnsupportedComparisonException
- If it does not make sense to check if a value
starts the other one from this field "point of
view".public boolean endsWith(java.lang.Object value1, java.lang.Object value2, java.util.BitSet modifiers)
endsWith
in class LyFieldInfo
value1
- First value.value2
- Second value.modifiers
- Modifiers used for checking (see MOD_XXX constants of
LyFilterExpression).
LyUnsupportedComparisonException
- If it does not make sense to check if a value
ends the other one from this field "point of
view".public LyFilterExpression.Condition[] getFilterConditions()
getFilterConditions
in class LyFieldInfo
LyFilterExpression
public short[] getFilterModifiers()
getFilterModifiers
in class LyFieldInfo
LyFilterExpression
public java.lang.Object getValueFromObject(java.lang.Object object, LyObject instance)
getValueFromObject
in class LyFieldInfo
object
- The peer value.instance
- Instance containing the requiered value (could be null). This instance
is provided to be able to construct a value for complex bindings
(bindings involving other fields).
LyUnsupportedFieldBindingException
- Thrown if we don't known how to build a value
from the given object.LyFieldInfo.getPeerValue(java.lang.Object, java.lang.Class>, leon.data.LyObject)
,
LyFieldBinding
public java.lang.Object getPeerValue(java.lang.Object value, java.lang.Class<?> objectClass, LyObject instance)
getPeerValue
in class LyFieldInfo
value
- Value of this fieldInfo. This value is an instance of the class
returned by getValueClass method.objectClass
- Expected class of the physical value.instance
- Instance containing the given value (could be null).
LyUnsupportedFieldBindingException
- Thrown if we don't known how to build a peer
value from the given parameters.LyFieldInfo.getValueClass()
public java.lang.Object[] getPeerValues(java.lang.Object value, java.lang.Class<?>[] objectClasses, LyObject instance)
getPeerValues
in class LyFieldInfo
value
- Value of this fieldInfo.objectClasses
- Expected classes of the physical values.instance
- Instance containing the given value (could be null).
LyUnsupportedFieldBindingException
- If we don't known how to build the peer values
from the given parameters.LyFieldInfo.getValueClass()
public LyFieldInfo getFieldInfo()
public short getMinCardinality()
public short getMaxCardinality()
public LyArrayDaemon getDaemon()
public int getNRows()
public boolean deepEquals(java.lang.Object value1, java.lang.Object value2, java.util.BitSet modifiers)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |