|
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
public abstract class LyFieldInfo
This class represents the information related to a field (information attached to an attribute of an application class). It's merely a direct mapping of information as it is defined in the data description file to describe a given field. This class is an abstract one, it contains common attributes for all type of fields. One specific class is then defined fo each type of fields :
These instances are built by the parser from the data description file and must not be modified after parsing.
This class extends LyObjectInfo and thus contains all attributes defined in that class (name, alias, marks, tip, ...).
Specific attributes are added to describe information related to a field. These specific attributes are :
This class implements the LyField interface. This means that this class can be used as a physical class ("data provider") for an other field info.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class leon.info.LyTag |
---|
LyTag.Model |
Field Summary | |
---|---|
static java.lang.String |
__version
|
static short |
MARK_APP_ID
Mark : indicating that the value for the field having this mark is used as part of the application identifier for objects corresponding to classes that contain this field. |
static short |
MARK_AUTO_COMPLETION
Mark : this mark activates auto-completion for this field. |
static short |
MARK_CHART
Mark : indicates that the field is chartable on fields having this mark. |
static short |
MARK_COMPLEX_TABLE
Mark : this mark indicates that a field is present in views showing complex tables. |
static short |
MARK_CONSULT
Mark : indicates that the field is present in editable forms but can't be modified (consult only). |
static short |
MARK_CREATE
Mark : fields having this mark are present in creation form. |
static short |
MARK_CREATE_CONSULT
Mark : indicates that the field is present in creation forms but can't be modified (consult only). |
static short |
MARK_DISABLE
Mark : indicates that the field is disable (not enabled). |
static short |
MARK_FILTER
Mark : indicating that views presenting objects of classes may be filtered on fields having this mark. |
static short |
MARK_FIND
Mark : indicates that the field is shown in the find object form. |
static short |
MARK_HIDDEN
Mark : indicates that the field in not shown in consultation form. |
static short |
MARK_ID
Mark : indicating that the value for the field having this mark is used as part of the identifier for objects corresponding to classes that contain this field. |
static short |
MARK_LOAD
Mark : indicates that values for this field must be loaded. |
static short |
MARK_LOCAL
Mark : indicates that the field is local (no physical representation). |
static short |
MARK_MAIN
Mark : shortcut for TABLE, FILTER, SORT and FIND marks. |
static short |
MARK_NAME
Mark : indicating that the value for the field having this mark is used as part of the name for objects corresponding to classes that contain this field. |
static short |
MARK_NEED_POST
Mark : indicates that the field must be posted when modified. |
static short |
MARK_NO_CAPTION
Mark : this mark removes caption for this field in forms. |
static short |
MARK_NOT_NULL
Mark : indicating that the field having this mark must not be transmitted to data providers with a null value. |
static short |
MARK_OPTIONAL
Mark : a field with this mark has an optional input when presented in forms (creation or modification). |
static short |
MARK_PRIVATE
Mark : indicates that a field is private and so can't be copied when cloning an object from an existing one. |
static short |
MARK_PROVIDER_VALUE
Mark : indicates that values for this field is computed by data provider. |
static short |
MARK_READ_ONLY
Mark : indicates that the field is read-only (not editable). |
static short |
MARK_SEARCH
Mark : this mark indicates that a field is used by text search action. |
static short |
MARK_SECRET
Mark : indicates that a field is never shown directly to the end user (for example, when used on text fields, the associated text input in forms shows asterisks when user enters text). |
static short |
MARK_SET
Mark : Fields having this mark are present in modification form. |
static short |
MARK_SET_CONSULT
Mark : indicates that the field is present in set forms but can't be modified (consult only). |
static short |
MARK_SORT
Mark : indicating that table views are sortable on fields having this mark. |
static short |
MARK_STATUS
Mark : indicating that a field represents the status of the object. |
static short |
MARK_TABLE
Mark : this mark indicates that a field is present in views showing tables. |
static short |
MARK_TRANSLATE
Mark : this mark activates translation for this field. |
static short |
MARK_UNIQUE
Mark : indicates that a field must have a unique value (value not present for other objects belonging to the same class). |
static java.lang.String |
SECRET_VALUE
Secret value. |
static java.lang.Boolean |
STRONG_DEPENDENCY_VALUE
Boolean used to store a strong dependency. |
static java.lang.Boolean |
WEAK_DEPENDENCY_VALUE
Boolean used to store a weak dependency. |
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 | |
---|---|
void |
addConstraint(LyFieldConstraint constraint)
Adds a constraint used in forms layouts. |
void |
addDepend(LyFieldInfo fieldInfo)
Add a dependency on the given fieldInfo. |
void |
addDepend(LyFieldInfo fieldInfo,
boolean strong)
Add a dependency on the given fieldInfo. |
LyValue |
buildFieldValue(java.lang.Object value)
Builds the appropriate LyValue corresponding to this field from a value provided as an Object. |
LyValue |
buildLyValue(java.lang.Object value)
Deprecated. Replaced by buildFieldValue |
java.lang.String |
checkJavaName(java.lang.String javaName)
check javaName attribute, replace points with underscore. |
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)
Compares two values for the specified field. |
abstract int |
compare(java.lang.Object value1,
java.lang.Object value2,
java.util.BitSet modifiers)
Compares two values for the specified field. |
java.lang.Object |
compute(LyObject object)
Method for computing value for local fields. |
java.lang.Object |
compute(LyObjectList objectList)
Method for computing a value using function associated to this field for a given objects list. |
java.lang.Object |
compute(LyObjectList objectList,
boolean importField)
Method for computing a value using function associated to this field for a given objects list. |
java.lang.Object |
compute(LyValueSet values)
Method for evaluating the value corresponding to this field with the given values set. |
boolean |
contains(java.lang.Object value1,
java.lang.Object value2)
Checks if the second value is contained in the first one, for this 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. |
java.lang.Object |
convertFromFieldUnit(java.lang.Object value,
LyUnit unit)
Convert a value to the reference unit from the given unit. |
java.lang.Object |
convertToFieldUnit(java.lang.Object value,
LyUnit unit)
Convert a value from the reference unit to the given one. |
java.lang.Object |
encodeValue(java.lang.Object value)
Encodes the given value to get the right value before tranmitting it to the peer layer. |
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)
Compares two values for equality on this field. |
boolean |
equals(java.lang.Object value1,
java.lang.Object value2,
java.util.BitSet modifiers)
Compares two values for equality on this field. |
boolean |
fromFieldTag()
Tests if the field was built with a FIELD tag. |
java.lang.String |
getBean(java.lang.String actionId)
Deprecated. Use getFieldBean |
java.util.Vector<LyFieldBean> |
getBeans()
Gets list of beans defined for one field info. |
java.lang.Class<?> |
getBehaviorClass()
Gets behavior class. |
java.lang.String |
getBehaviorClassName()
Gets behavior class name. |
LyFieldBinding |
getBinding()
Reads the binding information. |
LyFieldConstraint |
getCaptionConstraint()
Gets field caption (label) constraint used in forms layouts. |
LyFieldConstraint |
getConstraint()
Gets field constraint used in forms layouts. |
LyFieldConstraint |
getConstraint(LyFieldConstraint.Type type,
LyAction action)
Gets field constraint used in forms layouts. |
java.util.Vector<LyFieldConstraint> |
getConstraints()
Gets all constraints of this field info. |
LyControl |
getControl(int index)
Fetches the control at the specified index. |
int |
getControlCount()
Return the number of controls associated to this field. |
LyInfoList<LyControl> |
getControls()
Get field controls. |
java.lang.String |
getDefaultJavaName()
Gets default java field name corresponding to this field info. |
java.lang.Object |
getDefaultValue()
Gets the default value. |
LyInfoDataList<LyFieldInfo,java.lang.Boolean> |
getDepends()
Get field dependencies. |
LyInfoDataList<LyFieldInfo,java.lang.Boolean> |
getDepends(boolean strong)
Get field dependencies. |
LyFieldBean |
getFieldBean(java.lang.String actionId)
Accessor to the field bean. |
LyFieldGroup |
getFieldGroup()
Accessor to the field group. |
LyFieldTab |
getFieldTab()
Accessor to the field tab. |
LyUnit |
getFieldUnit()
Get field unit. |
LyFilterExpression.Condition[] |
getFilterConditions()
Returns the filter conditions authorized on this field. |
short[] |
getFilterModifiers()
Returns the filter modifiers authorized on this field. |
java.lang.String |
getFormat()
Gets the format as a string. |
java.lang.String |
getFormula()
Gets the formula (as a string) associated to this number field. |
LyInfoList<LyFieldInfo> |
getFormulaFields()
Gets field infos required for computing value of this field. |
LyInfoList<LyFieldInfo> |
getFormulaImports(LyClassInfo classInfo)
Gets field imports of the given class required for computing value of this field. |
java.util.BitSet |
getGenericMarks()
Accessor to the generic marks attached to this instance. |
LyFieldInfoImport |
getImport()
Gets import information for this field info. |
java.lang.String |
getJavaName()
Gets java field name corresponding to this field when java code generation is used. |
LyInfoLabel |
getLabel(int index)
Returns the label of this fieldInfo at the given index. |
LyInfoLabel |
getLabel(LyInfoLabel.Type type)
Returns the the label of this fieldInfo for the specified type. |
int |
getLabelCount()
Returns the number of labels of this fieldInfo. |
LyInfoLabel[] |
getLabels()
Returns all labels of this classInfo. |
LyFormula |
getLyFormula()
Gets the formula associated to this control. |
static int |
getMark(java.lang.String markName)
Gets mark index corresponding to the specific given mark name. |
static int |
getMark(java.lang.String markName,
boolean add)
Gets mark index corresponding to the specific given mark name. |
static java.lang.String |
getMarkName(int markIndex)
Get mark name corresponding to a given mark value. |
static java.util.BitSet |
getMarks(java.util.BitSet marks,
int parts)
Accessor to the marks attached to this instance (presented as a bitset). |
LyPath |
getPath()
Gets path information for this field info. |
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.String[] |
getSpecificMarks()
Accessor to the specific marks attached to this instance (presented as an array of strings). |
java.lang.String |
getTab()
Accessor to the tab name. |
LyUnits |
getUnits()
Get field units. |
LyInfoLabel |
getUserLabel(int i)
Returns the user label at the given position. |
LyInfoLabel |
getUserLabel(java.lang.String subType)
Returns the user label for the given subType. |
int |
getUserLabelCount()
Returns the number of labels of this fieldInfo. |
abstract java.lang.Class<?> |
getValueClass()
Returns class of values for this field. |
java.lang.Object |
getValueFromObject(java.lang.Object object,
LyObject instance)
Builds a logical value for this fieldInfo from a physical (peer) value. |
boolean |
hasMark(java.lang.String markName)
Check if a specific mark is set on this field info from its name. |
boolean |
isCalculated()
Tests if the field is calculated. |
boolean |
isComputed()
Returns a boolean indicating is the value of this fieldInfo is computed or not. |
boolean |
isImported()
Returns a boolean indicating is the value of this fieldInfo is imported or not (default is false). |
boolean |
isLocal()
Tests if the field is local. |
boolean |
isMultiple()
Tests if the field is multiple. |
abstract java.lang.Object |
parse(java.lang.String stringValue)
This method allows to create a value from a string for this field. |
java.lang.Object |
processValue(java.lang.Object value)
Processes the given value to get the right value before transmitting it to the peer layer. |
void |
setImport(LyFieldInfoImport importInfo)
Sets import information for this field info. |
void |
setPath(LyPath path)
Sets path information for this field info. |
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. |
abstract 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,
boolean removeTags)
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). |
abstract 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
public static final java.lang.Boolean STRONG_DEPENDENCY_VALUE
public static final java.lang.Boolean WEAK_DEPENDENCY_VALUE
public static final java.lang.String SECRET_VALUE
public static final short MARK_ID
public static final short MARK_NAME
public static final short MARK_NOT_NULL
public static final short MARK_CREATE
public static final short MARK_SET
public static final short MARK_OPTIONAL
public static final short MARK_UNIQUE
public static final short MARK_SECRET
public static final short MARK_PRIVATE
public static final short MARK_TABLE
public static final short MARK_STATUS
public static final short MARK_SORT
public static final short MARK_FILTER
public static final short MARK_FIND
public static final short MARK_LOCAL
public static final short MARK_CONSULT
public static final short MARK_CREATE_CONSULT
public static final short MARK_SET_CONSULT
public static final short MARK_NEED_POST
public static final short MARK_CHART
public static final short MARK_READ_ONLY
public static final short MARK_DISABLE
public static final short MARK_MAIN
public static final short MARK_HIDDEN
public static final short MARK_LOAD
public static final short MARK_PROVIDER_VALUE
public static final short MARK_APP_ID
public static final short MARK_COMPLEX_TABLE
public static final short MARK_SEARCH
public static final short MARK_AUTO_COMPLETION
public static final short MARK_TRANSLATE
public static final short MARK_NO_CAPTION
Method Detail |
---|
public static int getMark(java.lang.String markName, boolean add)
markName
- Name of the mark.add
- indicates if the.mark must be added if it doesn't exit
getMarkName(int)
public static int getMark(java.lang.String markName)
markName
- Name of the mark.
getMarkName(int)
public static java.lang.String getMarkName(int markIndex)
markIndex
- Mark value (index of a bit in a bits set).
getMark(java.lang.String, boolean)
public abstract java.lang.Class<?> getValueClass()
getValueClass
in interface LyField
LyObject.getValue(leon.info.LyFieldInfo)
public LyValue buildFieldValue(java.lang.Object value)
buildFieldValue
in interface LyField
value
- Value from which the LyValue is built.
public java.lang.Object processValue(java.lang.Object value)
value
- Value to process.
public java.lang.Object encodeValue(java.lang.Object value)
value
- Value to encode.
public abstract java.lang.Object parse(java.lang.String stringValue) throws LyFieldInfoFormatException
stringValue
- The value presented as a string as produced by the toString method.
LyFieldInfoFormatException
- If the string can't be parsed properly.toString(java.lang.Object)
,
getValueClass()
public abstract java.lang.String toName(java.lang.Object fieldValue)
value
- The internal value to convert to a displayable string. The excepted class of
this value is the one returned from the getValueClass method.
getValueClass()
public java.lang.String toName(java.lang.Object fieldValue, boolean removeTags)
value
- The internal value to convert to a displayable string. The excepted class of
this value is the one returned from the getValueClass method.removeTags
- Indicates whether HTML tags have to be removed from result.
getValueClass()
public java.lang.String toShortName(java.lang.Object fieldValue)
value
- The internal value to convert to a short displayable string. The excepted class
of this value is the one returned from the getValueClass method.
getValueClass()
,
toName(java.lang.Object)
public abstract java.lang.String toString(java.lang.Object fieldValue)
value
- The internal value to convert to an internal string. The excepted class of this
value is the one returned from the getValueClass method.
parse(java.lang.String)
,
getValueClass()
public java.lang.String controlValue(LyEnvironment environment, java.lang.Object fieldValue)
environment
- Environment giving the user language if a message has to be produced.value
- Value to control. The excepted class of this value is the one returned
from the getValueClass method.
getValueClass()
public java.lang.String checkValue(LyEnvironment environment, java.lang.Object fieldValue)
environment
- Environment giving the user language if a message has to be produced.value
- Value to check. The excepted class of this value is the one returned from
the getValueClass method.
getValueClass()
public abstract int compare(java.lang.Object value1, java.lang.Object value2, java.util.BitSet modifiers)
value1
- First value.value2
- Second value.modifiers
- Modifiers used for checking (see MOD_XXX constants of LyFilterExpression).
getValueClass()
public final int compare(java.lang.Object value1, java.lang.Object value2)
value1
- First value.value2
- Second value.
getValueClass()
public final boolean equals(java.lang.Object value1, java.lang.Object value2)
value1
- First value.value2
- Second value.
compare(java.lang.Object, java.lang.Object, java.util.BitSet)
,
getValueClass()
public boolean equals(java.lang.Object value1, java.lang.Object value2, java.util.BitSet modifiers)
value1
- First value.value2
- Second value.modifiers
- Modifiers used for checking (see MOD_XXX constants of LyFilterExpression).
compare(java.lang.Object, java.lang.Object, java.util.BitSet)
,
getValueClass()
public final boolean contains(java.lang.Object value1, java.lang.Object value2)
value1
- First value.value2
- Second value.
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 contains(java.lang.Object value1, java.lang.Object value2, java.util.BitSet modifiers)
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)
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)
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()
LyFilterExpression
public short[] getFilterModifiers()
LyFilterExpression
public java.lang.Object getValueFromObject(java.lang.Object object, LyObject instance)
object
- The peer value.instance
- Instance containing the required 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.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)
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.getValueClass()
public java.lang.Object[] getPeerValues(java.lang.Object value, java.lang.Class<?>[] objectClasses, LyObject instance)
value
- Value of this fieldInfo. This value is an instance of the class
returned by getValueClass method.objectClasses
- Expected classes of the physical values.instance
- Instance containing the given value (could be null).
LyUnsupportedFieldBindingException
- Thrown if we don't known how to build the peer
values from the given parameters.getValueClass()
public java.lang.Object compute(LyObject object)
object
- Object for which the value of this field is computed.
java.lang.IllegalStateException
- Thrown if values of this fieldInfo are not computed.getValueClass()
public java.lang.Object compute(LyValueSet values)
values
- Values set that contains part or all of the values needed to compute the
formula. If not all values are given, the formula uses the previous value
public boolean isComputed()
public boolean isImported()
public final java.lang.Object compute(LyObjectList objectList)
objectList
- List of objects for which a footer value is computed.
public java.lang.Object compute(LyObjectList objectList, boolean importField)
objectList
- List of objects for which a footer value is computed.importField
- True if calling comes on computing of a field import, false otherwise.
public java.lang.Object convertFromFieldUnit(java.lang.Object value, LyUnit unit)
value
- The value to convert.unit
- The old unit.
public java.lang.Object convertToFieldUnit(java.lang.Object value, LyUnit unit)
value
- The value to convert.unit
- The new unit.
public final LyInfoDataList<LyFieldInfo,java.lang.Boolean> getDepends()
public LyInfoDataList<LyFieldInfo,java.lang.Boolean> getDepends(boolean strong)
strong
- If true, gives only strong dependencies.
public int getControlCount()
public LyControl getControl(int index)
index
- Index of the searched control.
public LyInfoList<LyControl> getControls()
public LyUnits getUnits()
public LyUnit getFieldUnit()
public java.lang.String getBehaviorClassName()
public java.lang.Class<?> getBehaviorClass()
public java.lang.String getJavaName()
public final java.lang.String getDefaultJavaName()
public java.lang.String checkJavaName(java.lang.String javaName)
public final java.lang.String getTab()
public final LyFieldTab getFieldTab()
public final LyFieldGroup getFieldGroup()
public final java.lang.String getBean(java.lang.String actionId)
actionId
- Action id for which a bean is searched.
public final LyFieldBean getFieldBean(java.lang.String actionId)
actionId
- Action id for which a bean is searched.
public final java.util.Vector<LyFieldBean> getBeans()
public LyFieldBinding getBinding()
public java.lang.String getFormat()
public java.lang.Object getDefaultValue()
public boolean isCalculated()
public boolean isMultiple()
public final boolean isLocal()
public LyFieldInfoImport getImport()
public LyPath getPath()
public final LyFieldConstraint getConstraint()
public final LyFieldConstraint getCaptionConstraint()
public final LyFieldConstraint getConstraint(LyFieldConstraint.Type type, LyAction action)
type
- Type of the requested constraint.action
- Action where the constraint is used.
public final java.util.Vector<LyFieldConstraint> getConstraints()
public boolean fromFieldTag()
public final void addDepend(LyFieldInfo fieldInfo)
fieldInfo
- Field for which a dependency on this field is added.public final void addDepend(LyFieldInfo fieldInfo, boolean strong)
fieldInfo
- Field for which a dependency on this field is added.strong
- True if the dependency between this field and the given one is strong (they
must be modified simultaneously).public final LyValue buildLyValue(java.lang.Object value)
public void setImport(LyFieldInfoImport importInfo)
importInfo
- Import information.public void setPath(LyPath path)
path
- Path information.public void addConstraint(LyFieldConstraint constraint)
constraint
- Constraint of this fieldInfo.public static final java.util.BitSet getMarks(java.util.BitSet marks, int parts)
BitSet
public int getLabelCount()
public LyInfoLabel getLabel(LyInfoLabel.Type type)
public LyInfoLabel getLabel(int index)
public int getUserLabelCount()
public LyInfoLabel getUserLabel(int i)
public LyInfoLabel getUserLabel(java.lang.String subType)
public LyInfoLabel[] getLabels()
public final boolean hasMark(java.lang.String markName)
markName
- Name of the mark tested for this field info.
public java.util.BitSet getGenericMarks()
public java.lang.String[] getSpecificMarks()
public java.lang.String getFormula()
public final LyFormula getLyFormula()
public LyInfoList<LyFieldInfo> getFormulaFields()
public LyInfoList<LyFieldInfo> getFormulaImports(LyClassInfo classInfo)
classInfo
- Class of the fields.
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |