LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info
Class LyStructFieldInfo

java.lang.Object
  extended by leon.info.LyTag
      extended by leon.info.LyInfo
          extended by leon.info.LyObjectInfo
              extended by leon.info.LyFieldInfo
                  extended by leon.info.LyRelationFieldInfo
                      extended by leon.info.LyStructFieldInfo
All Implemented Interfaces:
java.lang.Cloneable, LyField, LyCommentInterface

public final class LyStructFieldInfo
extends LyRelationFieldInfo

This class implements the description of struct field info.

See Also:
LyRelationFieldInfo

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.info.LyRelationFieldInfo
LyRelationFieldInfo.Direction, LyRelationFieldInfo.ShowAs, LyRelationFieldInfo.Type
 
Nested classes/interfaces inherited from class leon.info.LyTag
LyTag.Model
 
Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.info.LyFieldInfo
__version, MARK_APP_ID, MARK_AUTO_COMPLETION, MARK_CHART, MARK_COMPLEX_TABLE, MARK_CONSULT, MARK_CREATE, MARK_CREATE_CONSULT, MARK_DISABLE, MARK_FILTER, MARK_FIND, MARK_HIDDEN, MARK_ID, MARK_LOAD, MARK_LOCAL, MARK_MAIN, MARK_NAME, MARK_NEED_POST, MARK_NO_CAPTION, MARK_NOT_NULL, MARK_OPTIONAL, MARK_PRIVATE, MARK_PROVIDER_VALUE, MARK_READ_ONLY, MARK_SEARCH, MARK_SECRET, MARK_SET, MARK_SET_CONSULT, MARK_SORT, MARK_STATUS, MARK_TABLE, MARK_TRANSLATE, MARK_UNIQUE, SECRET_VALUE, STRONG_DEPENDENCY_VALUE, WEAK_DEPENDENCY_VALUE
 
Fields inherited from class leon.info.LyObjectInfo
NULL, PART_ALL, PART_BIND, PART_DATA, PART_GUI, PART_LABEL
 
Method Summary
 int deepCompare(java.lang.Object value1, java.lang.Object value2, java.util.BitSet modifiers)
          Compares two objects for this fieldInfo.
 boolean deepEquals(java.lang.Object value1, java.lang.Object value2, java.util.BitSet modifiers)
          Compares two objects for this fieldInfo.
 LyInfoCache getCachePolicy()
          Gets cache policy from the associated class info.
 java.lang.String getClassBehaviorClassName()
          Gets behavior from the associated class info.
 LyClassBinding getClassBinding()
          Gets binding from the associated class info.
 LyClassInfo getClassInfo()
          Gets class info corresponding to this struct.
 java.lang.String getClassName()
          Gets java name of the associated class.
 LyStructFieldInfo getExtendedStruct()
          Returns the struct that is extended by this struct.
 LyInfoList<LyFieldInfo> getFieldInfos()
          Gets list of field infos of this struct.
 LyObject getParent(LyObject object)
          Get parent of the given object.
 LyInfoDataList<LyClassInfo,LyFieldInfo> getParentClasses()
          Gets list of parent classes.
 java.util.Vector<java.lang.Object> getParentInfos(LyObject object)
          Gets parent informations for the specified struct object.
 LyInfoList<LyRule> getRules()
          Gets rules from the associated class info.
 LyClassInfo getStructClassInfo()
          Gets parent class info corresponding to this struct.
 boolean isAbstract()
          Checks if the class corresponding to this struct is abstract.
 void replaceClassInfos(LyInfoList<LyClassInfo> classInfos)
          Replace the classInfos pointed by the structField.
 void setApplication(LyApplication application)
          Sets the application for this info.
 
Methods inherited from class leon.info.LyRelationFieldInfo
buildFieldValue, checkValue, compare, contains, controlValue, equals, getClasses, getClassField, getClassInfo, getClassInfoCount, getClassInfos, getContextField, getDaemon, getDefault, getDefaultValue, getDirection, getExtendedRelation, getFilter, getFilter, getFilterConditions, getFilters, getMax, getMin, getNCols, getNRows, getObjects, getObjects, getOrderedIds, getPeerValue, getPeerValues, getReverseRelation, getRoute, getRoute, getRoutes, getRoutesCount, getShowAs, getSubTypes, getType, getValueClass, getValueFromObject, hasSubType, ignoresContext, inheritsFrom, isMultiple, isOrdered, isToolbarDisabled, parse, relatedWith, toName, toName, toString
 
Methods inherited from class leon.info.LyFieldInfo
addConstraint, addDepend, addDepend, buildLyValue, checkJavaName, compare, compute, compute, compute, compute, contains, convertFromFieldUnit, convertToFieldUnit, encodeValue, endsWith, equals, fromFieldTag, getBean, getBeans, getBehaviorClass, getBehaviorClassName, getBinding, getCaptionConstraint, getConstraint, getConstraint, getConstraints, getControl, getControlCount, getControls, getDefaultJavaName, getDepends, getDepends, getFieldBean, getFieldGroup, getFieldTab, getFieldUnit, getFilterModifiers, getFormat, getFormula, getFormulaFields, getFormulaImports, getGenericMarks, getImport, getJavaName, getLabel, getLabel, getLabelCount, getLabels, getLyFormula, getMark, getMark, getMarkName, getMarks, getPath, getSpecificMarks, getTab, getUnits, getUserLabel, getUserLabel, getUserLabelCount, hasMark, isCalculated, isComputed, isImported, isLocal, processValue, setImport, setPath, startsWith, toName, toShortName
 
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, 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

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Method Detail

setApplication

public void setApplication(LyApplication application)
Sets the application for this info. Once assigned, the application can be changed.

Overrides:
setApplication in class LyInfo
Parameters:
application - The application to which the info belongs.
Throws:
java.lang.IllegalStateException - If the info already belongs to an application.

getStructClassInfo

public LyClassInfo getStructClassInfo()
Gets parent class info corresponding to this struct. If this struct doesn't extend any other, gets the class info of this struct.

Returns:
Parent class info for this struct if exist else return class info for this struct.

isAbstract

public boolean isAbstract()
Checks if the class corresponding to this struct is abstract.

Overrides:
isAbstract in class LyRelationFieldInfo
Returns:
True if abstract, false otherwise.

getClassName

public java.lang.String getClassName()
Gets java name of the associated class.

Returns:
Java name of the associated class.

getRules

public LyInfoList<LyRule> getRules()
Gets rules from the associated class info.

Returns:
rules of the associated class.

getCachePolicy

public LyInfoCache getCachePolicy()
Gets cache policy from the associated class info.

Returns:
rules of the associated class.

getClassBinding

public LyClassBinding getClassBinding()
Gets binding from the associated class info.

Returns:
binding of the associated class.

getClassBehaviorClassName

public java.lang.String getClassBehaviorClassName()
Gets behavior from the associated class info.

Returns:
rules of the associated class.

getFieldInfos

public LyInfoList<LyFieldInfo> getFieldInfos()
Gets list of field infos of this struct.

Returns:
List of field infos, can't be null since a class info with no fields is not accepted.

getExtendedStruct

public LyStructFieldInfo getExtendedStruct()
Returns the struct that is extended by this struct.

Returns:
Struct extended by this struct, null otherwise.

getClassInfo

public LyClassInfo getClassInfo()
Gets class info corresponding to this struct.

Returns:
Class info for this struct.

deepEquals

public boolean deepEquals(java.lang.Object value1,
                          java.lang.Object value2,
                          java.util.BitSet modifiers)
Compares two objects for this fieldInfo.


deepCompare

public int deepCompare(java.lang.Object value1,
                       java.lang.Object value2,
                       java.util.BitSet modifiers)
Compares two objects for this fieldInfo.


replaceClassInfos

public void replaceClassInfos(LyInfoList<LyClassInfo> classInfos)
Replace the classInfos pointed by the structField.

Parameters:
classInfos - The new pointed classInfos.

getParentInfos

public java.util.Vector<java.lang.Object> getParentInfos(LyObject object)
Gets parent informations for the specified struct object.

Parameters:
object - The specified struct object.
Returns:
null or a vector with parent informations : the first element is the parent object, the second element is the parent fieldInfo.

getParent

public LyObject getParent(LyObject object)
Get parent of the given object.


getParentClasses

public LyInfoDataList<LyClassInfo,LyFieldInfo> getParentClasses()
Gets list of parent classes.


(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com