|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectkirk.io.sdl.SDLElement
kirk.io.sdl.SDLDataElement
This class represents the data element of an SDL document. It has a name and a data (text) value.
| Field Summary | |
static String |
IDENTIFIER
The identifier of the data element type. |
protected String |
value
The data value of this element. |
| Fields inherited from class kirk.io.sdl.SDLElement |
name |
| Constructor Summary | |
SDLDataElement(String name,
String value)
Constructs a new data element with the given name and value. |
|
| Method Summary | |
String |
getValue()
Returns the value of this element. |
Boolean |
getValueAsBoolean()
Returns the value of this element as a Boolean. |
Byte |
getValueAsByte()
Returns the value of this element as a Byte. |
Character |
getValueAsCharacter()
Returns the value of this element as a Character. |
Double |
getValueAsDouble()
Returns the value of this element as an Double. |
Float |
getValueAsFloat()
Returns the value of this element as an Float. |
Integer |
getValueAsInteger()
Returns the value of this element as an Integer. |
Long |
getValueAsLong()
Returns the value of this element as an Long. |
Short |
getValueAsShort()
Returns the value of this element as a Short. |
String |
getValueAsString()
Returns the value of this element as a String. |
StringBuffer |
getValueAsStringBuffer()
Returns the value of this element as a StringBuffer. |
void |
setValue(String value)
Sets the value to the given value. |
String |
toString(String indent)
Returns a string representation of this SDLDataElement with the
given indentation. |
| Methods inherited from class kirk.io.sdl.SDLElement |
getAsDataElement, getAsNormalElement, getName, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected String value
public static final String IDENTIFIER
| Constructor Detail |
public SDLDataElement(String name,
String value)
name - The name of the element.value - The value of the element.| Method Detail |
public void setValue(String value)
value - The new value of this element.public String getValue()
public String getValueAsString()
String.
String.public StringBuffer getValueAsStringBuffer()
StringBuffer.
StringBuffer.
public Character getValueAsCharacter()
throws CharacterFormatException
Character.
Character.
CharacterFormatExeption - When the value couldn't be cast to a
character.
CharacterFormatException
public Byte getValueAsByte()
throws NumberFormatException
Byte.
Byte.
NumberFormatExeption - When the value couldn't be cast to a
Byte.
NumberFormatException
public Short getValueAsShort()
throws NumberFormatException
Short.
Short.
NumberFormatExeption - When the value couldn't be cast to a
Short.
NumberFormatException
public Integer getValueAsInteger()
throws NumberFormatException
Integer.
Integer.
NumberFormatExeption - When the value couldn't be cast to a
Integer.
NumberFormatException
public Long getValueAsLong()
throws NumberFormatException
Long.
Long.
NumberFormatExeption - When the value couldn't be cast to a
Long.
NumberFormatException
public Float getValueAsFloat()
throws NumberFormatException
Float.
Float.
NumberFormatExeption - When the value couldn't be cast to a
Float.
NumberFormatException
public Double getValueAsDouble()
throws NumberFormatException
Double.
Double.
NumberFormatExeption - When the value couldn't be cast to a
Double.
NumberFormatException
public Boolean getValueAsBoolean()
throws BooleanFormatException
Boolean.
Boolean.
BooleanFormatException - When the value couldn't be cast to a
Boolean.public String toString(String indent)
SDLDataElement with the
given indentation.
toString in class SDLElementindent - The indentation to be used.
SDLDataElement.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||