|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.parser.LyXmlNode
public abstract class LyXmlNode
This class is used to offer temporary storage to our real node instances. We chose not to extend ElementNode directly from our objects to save memory. In user execution mode, these instances can be freed after loading because they are totally unuseful at this time.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LyXmlNode()
Constructor. |
Method Summary | |
---|---|
abstract java.lang.String |
getAttribute(java.lang.String attributeName)
Gets the given attribute value. |
boolean |
getBoolean(java.lang.String attributeName)
Gets the given attribute value. |
boolean |
getBoolean(java.lang.String attributeName,
boolean defaultValue)
Gets the given attribute value as a float. |
java.util.Date |
getDate(java.lang.String attributeName)
Gets the given attribute value as a date. |
double |
getDouble(java.lang.String attributeName)
Gets the given attribute value. |
double |
getDouble(java.lang.String attributeName,
double defaultValue)
Gets the given attribute value as a double. |
float |
getFloat(java.lang.String attributeName)
Gets the given attribute value. |
float |
getFloat(java.lang.String attributeName,
float defaultValue)
Gets the given attribute value as a float. |
int |
getInt(java.lang.String attributeName)
Gets the given attribute value. |
int |
getInt(java.lang.String attributeName,
int defaultValue)
Gets the given attribute value as an int. |
java.lang.Number |
getNumber(java.lang.String attributeName,
java.lang.Class<? extends java.lang.Number> numberClass)
Gets the given attribute value as a Number. |
java.lang.String |
getString(java.lang.String attributeName)
Gets the given attribute value. |
java.lang.String |
getString(java.lang.String attributeName,
java.lang.String defaultValue)
Gets the given attribute value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyXmlNode()
Method Detail |
---|
public abstract java.lang.String getAttribute(java.lang.String attributeName)
attributeName
- the attribute name
public java.lang.String getString(java.lang.String attributeName, java.lang.String defaultValue)
attributeName
- the attribute name.defaultValue
- the value to return for the attribute if no value is specified
public java.lang.String getString(java.lang.String attributeName)
getString(attributeName, null)
attributeName
- the attribute name.
getString(String, String)
public int getInt(java.lang.String attributeName, int defaultValue)
attributeName
- the attribute name.defaultValue
- the value to return for the attribute if no value is specified
java.lang.IllegalArgumentException
- If the given token cannot be parsed as an int.public int getInt(java.lang.String attributeName)
getInt(attributeName,
1)
attributeName
- the attribute name.
getInt(String, int)
public double getDouble(java.lang.String attributeName, double defaultValue)
attributeName
- the attribute name.defaultValue
- the value to return for the attribute if no value is specified
java.lang.IllegalArgumentException
- If the given token cannot be parsed as a double.public double getDouble(java.lang.String attributeName)
getDouble(attributeName, -1)
attributeName
- the attribute name.
LyXmlNode#getDouble(String, int)
public float getFloat(java.lang.String attributeName, float defaultValue)
attributeName
- the attribute namedefaultValue
- the value to return for the attribute if no value is specified
java.lang.IllegalArgumentException
- If the given token cannot be parsed as a float.public float getFloat(java.lang.String attributeName)
getFloat(attributeName, -1)
attributeName
- the attribute name.
LyXmlNode#getFloat(String, int)
public java.lang.Number getNumber(java.lang.String attributeName, java.lang.Class<? extends java.lang.Number> numberClass)
attributeName
- the attribute namenumberClass
- the Number class for result
java.lang.IllegalArgumentException
- If the given attribute value cannot be parsed as a number
of the given type or if the numberClass doesn't
correspond to any supported number class.public java.util.Date getDate(java.lang.String attributeName)
attributeName
- the attribute name
java.lang.IllegalArgumentException
- If the given token cannot be parsed as a float.public boolean getBoolean(java.lang.String attributeName, boolean defaultValue)
attributeName
- the attribute namedefaultValue
- the value to return for the attribute if no value is specified
public boolean getBoolean(java.lang.String attributeName)
getBoolean(attributeName, false)
attributeName
- the attribute name.
getBoolean(String, boolean)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |