LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info
Class LyFieldInfoImport

java.lang.Object
  extended by leon.info.LyTag
      extended by leon.info.LyFieldInfoImport
All Implemented Interfaces:
java.lang.Cloneable

public class LyFieldInfoImport
extends LyTag

Container for import information.


Nested Class Summary
 
Nested classes/interfaces inherited from class leon.info.LyTag
LyTag.Model
 
Field Summary
static java.lang.String __VERSION
           
 
Method Summary
 LyClassInfo getClassInfo()
          Returns the import class.
 LyFieldInfo getFieldInfo()
          Returns the imported field.
 LyFilter getFilter()
          Returns the filter applied on objects used for the import.
 java.lang.Object getImportValue(LyFieldInfo fieldInfo, LyRelationValue relationValue)
          Utility method to compute import value for a fieldInfo from a relation value.
 LyRelationFieldInfo getRelation()
          Returns the relation from which the value is imported.
 
Methods inherited from class leon.info.LyTag
clone, getApplication, getCommentsEnd, getCommentsStart, getEnvironment, getId, getModelType, getParent, getRootProject, hasAncestor, isExtern, setCommentsEnd, setCommentsStart, wasCloned
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

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

getRelation

public LyRelationFieldInfo getRelation()
Returns the relation from which the value is imported.


getClassInfo

public LyClassInfo getClassInfo()
Returns the import class.


getFilter

public LyFilter getFilter()
Returns the filter applied on objects used for the import.


getFieldInfo

public LyFieldInfo getFieldInfo()
Returns the imported field.


getImportValue

public java.lang.Object getImportValue(LyFieldInfo fieldInfo,
                                       LyRelationValue relationValue)
Utility method to compute import value for a fieldInfo from a relation value.

Parameters:
fieldInfo - Field info for which an imported value is requested.
relationValue - Value from which the import is done. The relation of this relation value must match the one if this import.
Returns:
Value imported from this field info import.
Throws:
java.lang.IllegalArgumentException - If the given field info doesn't have this import as field import.
java.lang.IllegalArgumentException - If the relation specified for the import doesn't correspond to the one of the given relation value.

(c) January 2013 - W4 S.A.

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