LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info.binding
Class LyClassBinding

java.lang.Object
  extended by leon.info.LyTag
      extended by leon.info.binding.LyBinding
          extended by leon.info.binding.LyClassBinding
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
LyClassInfoBinding, LyLdapClassBinding, LyUnionBinding

public class LyClassBinding
extends LyBinding
implements java.lang.Cloneable

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


Nested Class Summary
 
Nested classes/interfaces inherited from class leon.info.LyTag
LyTag.Model
 
Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyClassBinding(java.lang.String binding)
          Constructor.
LyClassBinding(java.lang.String binding, java.lang.String location, LyFilter filter)
          Constructor.
 
Method Summary
 void addPeerField(LyFieldInfo fieldInfo, LyField peerField)
           
 void addPeerFields(LyFieldInfo fieldInfo, LyField[] peerFields)
           
 void check(LyClassInfo parent)
          Final step of parsing : checks integrity of the classBinding and completes the initialization if necessary.
 boolean equals(java.lang.Object o)
           
 LyFieldBinding getFieldBinding(LyField field)
           
 LyFilter getFilter()
          Gets the filter of this binding.
 java.lang.String getLocation()
          Reads the binding location information. this optional info identifies which data provider is used (when several exists within the application) to fetch the data with the binding info.
 LyClass getPeerClass()
          Returns the class corresponding to this binding.
 LyField getPeerField(LyFieldInfo fieldInfo)
           
 LyField[] getPeerFields(LyFieldInfo fieldInfo)
           
 java.lang.Object removePeerField(LyFieldInfo fieldInfo)
           
 void setFilter(LyFilter filter)
          Sets the filter of this binding.
 void setPeerClass(LyClass peerClass)
          Sets the class corresponding to this binding.
 
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
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

LyClassBinding

public LyClassBinding(java.lang.String binding)
Constructor.

Parameters:
binding - content of the binding information

LyClassBinding

public LyClassBinding(java.lang.String binding,
                      java.lang.String location,
                      LyFilter filter)
Constructor.

Parameters:
binding - content of the binding information
location - identify which data provider should be used.
filter - filter used when loading objects.
Method Detail

check

public void check(LyClassInfo parent)
Final step of parsing : checks integrity of the classBinding and completes the initialization if necessary.

Throws:
java.lang.IllegalStateException - If one of the checks fails

getLocation

public java.lang.String getLocation()
Reads the binding location information. this optional info identifies which data provider is used (when several exists within the application) to fetch the data with the binding info.

Returns:
The binding location which identifies a data provider, or null if multiple data provider is not implemented in the application.

getFilter

public LyFilter getFilter()
Gets the filter of this binding.

Returns:
The binding filter or null if no filter is set on this binding.

getPeerClass

public LyClass getPeerClass()
Returns the class corresponding to this binding.


setFilter

public void setFilter(LyFilter filter)
Sets the filter of this binding.

Parameters:
filter - the filter.

setPeerClass

public void setPeerClass(LyClass peerClass)
Sets the class corresponding to this binding.


addPeerField

public void addPeerField(LyFieldInfo fieldInfo,
                         LyField peerField)

removePeerField

public java.lang.Object removePeerField(LyFieldInfo fieldInfo)

getPeerField

public LyField getPeerField(LyFieldInfo fieldInfo)

getFieldBinding

public LyFieldBinding getFieldBinding(LyField field)

addPeerFields

public void addPeerFields(LyFieldInfo fieldInfo,
                          LyField[] peerFields)

getPeerFields

public LyField[] getPeerFields(LyFieldInfo fieldInfo)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

(c) January 2013 - W4 S.A.

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