|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.util.xml.XContainer
public class XContainer
An element that can have some content. The content can be a String
,
byte-array or a primitive value type.
Constructor Summary | |
---|---|
XContainer()
|
Method Summary | |
---|---|
XContainer |
copy()
Creates an independent copy of this container. |
protected void |
copy(XContainer original)
Copies all the settings of original into this container. |
boolean |
getBoolean()
Gets the value of this container as boolean. |
byte |
getByte()
Gets the value of this container as byte. |
byte[] |
getByteArray()
Gets the value of this container as byte-array. |
char |
getChar()
Gets the value of this container as character. |
double |
getDouble()
Gets the value of this container as double. |
float |
getFloat()
Gets the value of this container as float. |
int |
getInt()
Gets the value of this container as integer. |
long |
getLong()
Gets the value of this container as long. |
short |
getShort()
Gets the value of this container as short. |
String |
getString()
Gets the value of this container as string. |
String |
getValue()
Gets the exact value that is stored in this container. |
void |
setBoolean(boolean b)
Sets the value of this container. |
void |
setByte(byte b)
Sets the value of this container. |
void |
setByteArray(byte[] bs)
Sets the value of this container. |
void |
setChar(char c)
Sets the value of this container. |
void |
setDouble(double d)
Sets the value of this container. |
void |
setFloat(float f)
Sets the value of this container. |
void |
setInt(int i)
Sets the value of this container. |
void |
setLong(long l)
Sets the value of this container. |
void |
setShort(short s)
Sets the value of this container. |
void |
setString(String s)
Sets the value of this container. |
void |
setValue(String value)
Sets the exact value that is stored in this container. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XContainer()
Method Detail |
---|
public XContainer copy()
protected void copy(XContainer original)
original
into this container.
original
- the container to readpublic void setValue(String value)
value
- the value that will not be encoded by this methodpublic String getValue()
public void setByte(byte b)
b
- the valuepublic void setShort(short s)
s
- the valuepublic void setInt(int i)
i
- the valuepublic void setLong(long l)
l
- the valuepublic void setBoolean(boolean b)
b
- the valuepublic void setChar(char c)
c
- the valuepublic void setString(String s)
s
- the valuepublic void setFloat(float f)
f
- the valuepublic void setDouble(double d)
d
- the valuepublic void setByteArray(byte[] bs)
bs
- the valuepublic byte getByte()
XException
- if value is not a bytepublic short getShort()
XException
- if value is not a shortpublic int getInt()
XException
- if value is not an integerpublic long getLong()
XException
- if value is not a longpublic float getFloat()
XException
- if value is not a floatpublic double getDouble()
XException
- if value is not a doublepublic char getChar()
XException
- if value is not a characterpublic String getString()
XException
- if value is not a stringpublic boolean getBoolean()
XException
- if value is not a booleanpublic byte[] getByteArray()
XException
- if value is not a byte-array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |