LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info.binding
Class LyFieldsBinding

java.lang.Object
  extended by leon.info.LyTag
      extended by leon.info.binding.LyBinding
          extended by leon.info.binding.LyFieldBinding
              extended by leon.info.binding.LyFieldsBinding
All Implemented Interfaces:
java.lang.Cloneable

public final class LyFieldsBinding
extends LyFieldBinding

Container for the binding information found in the data description for fieldInfo.


Nested Class Summary
 
Nested classes/interfaces inherited from class leon.info.LyTag
LyTag.Model
 
Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyFieldsBinding()
          Constructor.
 
Method Summary
 void addFieldBinding(LyFieldBinding fieldBinding)
          Sets the fields corresponding to this binding.
 java.lang.Object[] encodeValues(LyFieldInfo fieldInfo, java.lang.Object value, java.lang.Class<?>[] objectClasses)
          Returns a table of objects for the given classes from a value of the given fieldInfo.
 LyFieldBinding getFieldBinding(int index)
          Returns the field binding at the given index.
 int getFieldBindingCount()
          Returns the number of field bindings.
 java.util.Vector<LyFieldBinding> getFieldBindings()
          Gets the list of field bindings.
 
Methods inherited from class leon.info.binding.LyFieldBinding
decodeValue, encodeValue, getCBind, getDefault, getJavaEncoder, getJavaType, getJavaTypeClass, getPeerType, isId
 
Methods inherited from class leon.info.binding.LyBinding
getBinding, isDefaultBinding, setDefaultBinding
 
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
Constructor Detail

LyFieldsBinding

public LyFieldsBinding()
Constructor.

Method Detail

getFieldBinding

public LyFieldBinding getFieldBinding(int index)
Returns the field binding at the given index.


getFieldBindingCount

public int getFieldBindingCount()
Returns the number of field bindings.


getFieldBindings

public java.util.Vector<LyFieldBinding> getFieldBindings()
Gets the list of field bindings.

Returns:
the vector of all the field bindings. This is a copy of the internal vector that contains these field bindings.

addFieldBinding

public void addFieldBinding(LyFieldBinding fieldBinding)
Sets the fields corresponding to this binding.


encodeValues

public java.lang.Object[] encodeValues(LyFieldInfo fieldInfo,
                                       java.lang.Object value,
                                       java.lang.Class<?>[] objectClasses)
Returns a table of objects for the given classes from a value of the given fieldInfo. The purpose of this method is to support transformations from logical to physical representation when multiple bindings are used.

Parameters:
value - Value of this fieldInfo. This value is an instance of the class returned by getValueClass method.
objectClasses - Expected classes of the physical values..

(c) January 2013 - W4 S.A.

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