|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.traffic.xml.XMLAttribute
public class XMLAttribute
Container class for attributes of a XML element. Objects have built-in encapsulation for control-characters.
| Field Summary | |
|---|---|
protected java.lang.String |
name
DOCUMENT ME! |
protected java.lang.String |
value
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
XMLAttribute(java.lang.String name,
boolean value)
Make a new XMLAttribute. |
|
XMLAttribute(java.lang.String name,
byte value)
Make a new XMLAttribute. |
|
XMLAttribute(java.lang.String name,
double value)
Make a new XMLAttribute. |
|
XMLAttribute(java.lang.String name,
float value)
Make a new XMLAttribute. |
|
XMLAttribute(java.lang.String name,
int value)
Make a new XMLAttribute. |
|
XMLAttribute(java.lang.String name,
java.lang.String value)
Make a new XMlAttribute. |
|
XMLAttribute(java.lang.String name,
java.lang.String value,
boolean encode)
Make a new XMLAttribute. |
|
| Method Summary | |
|---|---|
boolean |
getBoolValue()
DOCUMENT ME! |
byte |
getByteValue()
DOCUMENT ME! |
double |
getDoubleValue()
DOCUMENT ME! |
float |
getFloatValue()
DOCUMENT ME! |
int |
getIntValue()
DOCUMENT ME! |
long |
getLongValue()
DOCUMENT ME! |
java.lang.String |
getName()
DOCUMENT ME! |
java.lang.String |
getValue()
DOCUMENT ME! |
java.lang.String |
toString()
DOCUMENT ME! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected java.lang.String value
| Constructor Detail |
|---|
public XMLAttribute(java.lang.String name,
java.lang.String value)
name - The name of the attributevalue - The value of the attribute
public XMLAttribute(java.lang.String name,
java.lang.String value,
boolean encode)
name - The name of the attributevalue - The value of the attributeencode - If this boolean is true, then control characters in the
parameters will be encapsulated so they don't confuse our XML
parser.
public XMLAttribute(java.lang.String name,
int value)
name - The name of the attributevalue - The value of the attribute
public XMLAttribute(java.lang.String name,
float value)
name - The name of the attributevalue - The value of the attribute
public XMLAttribute(java.lang.String name,
double value)
name - The name of the attributevalue - The value of the attribute
public XMLAttribute(java.lang.String name,
boolean value)
name - The name of the attributevalue - The value of the attribute
public XMLAttribute(java.lang.String name,
byte value)
name - The name of the attributevalue - The value of the attribute| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
public java.lang.String getValue()
public int getIntValue()
throws XMLInvalidInputException
XMLInvalidInputException - If the value of this attribute cannot
be converted to an int.
public long getLongValue()
throws XMLInvalidInputException
XMLInvalidInputException - DOCUMENT ME!
public boolean getBoolValue()
throws XMLInvalidInputException
XMLInvalidInputException - If the value of this attribute cannot
be converted to a boolean.
public float getFloatValue()
throws XMLInvalidInputException
XMLInvalidInputException - If the value of this attribute cannot
be converted to a float.
public double getDoubleValue()
throws XMLInvalidInputException
XMLInvalidInputException - If the value of this attribute cannot
be converted to a double.
public byte getByteValue()
throws XMLInvalidInputException
XMLInvalidInputException - If the value of this attribute cannot
be converted to a byte.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||