LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyViewNode

java.lang.Object
  extended by leon.parser.LyXmlNode
      extended by leon.view.LyViewNode

public class LyViewNode
extends LyXmlNode

This class is used to offer temporary storage to LyComponent instances. We chose not to extend ElementNode directly from LyComponent to save memory. In user execution mode, these instances can be freed after loading because they are totally unuseful at this time.

See Also:
LyXmlNode, LyComponent

Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyViewNode(org.xml.sax.Attributes attributes, LyViewNodeFactory factory)
          Constructor.
 
Method Summary
 java.lang.String getAttribute(java.lang.String attributeName)
          Overriden to fetch attribute name.
 LyComponent getComponent(java.lang.String attributeName)
          Utility method to get the value of an attribute as an LyComponent.
 LyEnvironment getEnvironment()
          Access to the environment.
 int getInt(java.lang.String attributeName, int defaultValue)
          Utility method to get the value of an attribute as an int.
 boolean isSpecified(java.lang.String attributeName)
          Checks if the attribute with given name is specified or not.
 
Methods inherited from class leon.parser.LyXmlNode
getBoolean, getBoolean, getDate, getDouble, getDouble, getFloat, getFloat, getInt, getNumber, getString, getString
 
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

LyViewNode

public LyViewNode(org.xml.sax.Attributes attributes,
                  LyViewNodeFactory factory)
Constructor.

Method Detail

getAttribute

public java.lang.String getAttribute(java.lang.String attributeName)
Overriden to fetch attribute name.

Specified by:
getAttribute in class LyXmlNode
Parameters:
attributeName - the attribute name
Returns:
the attribute value as a string

getEnvironment

public LyEnvironment getEnvironment()
Access to the environment.


getInt

public int getInt(java.lang.String attributeName,
                  int defaultValue)
Utility method to get the value of an attribute as an int.

Overrides:
getInt in class LyXmlNode
Parameters:
attributeName - the attribute name.
defaultValue - the value to return for the attribute if no value is specified
Returns:
the value as an int
See Also:
LyXmlNode.getInt(java.lang.String, int)

getComponent

public LyComponent getComponent(java.lang.String attributeName)
Utility method to get the value of an attribute as an LyComponent.


isSpecified

public boolean isSpecified(java.lang.String attributeName)
Checks if the attribute with given name is specified or not.


(c) January 2013 - W4 S.A.

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