|
Hilbert II - Version 0.03.04 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.qedeq.kernel.xml.parser.SimpleAttributes
Value object that contains unsorted key value pairs. Both arguments are string type, but there
are access methods for different data types. If the type conversion in not possible an
appropriate RuntimeException
is thrown.
With add(java.lang.String, java.lang.String)
another key value pair is added. An IllegalArgumentException
is thrown,
if the key is already known.
Constructor Summary | |
SimpleAttributes()
|
Method Summary | |
void |
add(String key,
String value)
Adds a key value pair. |
Boolean |
getBoolean(String key)
Returns the value for a key as an Boolean. |
Date |
getDate(String key)
Returns the value for a key as an Date. |
Integer |
getInteger(String key)
Returns the value for a key as an Integer. |
String[] |
getKeySortedStringValues()
Get the attribute values, sorted by their keys. |
String |
getString(String key)
Returns the value for a key. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SimpleAttributes()
Method Detail |
public final void add(String key, String value)
key
- Key.value
- Value, maybe null
.public final String getString(String key)
null
is returned.
key
- Key.
public final Integer getInteger(String key)
null
is returned.
If the value must be transformable into an Integer value.
key
- Key.
public final Boolean getBoolean(String key)
null
is returned.
If the value must be transformable into an Boolean value.
key
- Key.
public final Date getDate(String key)
null
is returned.
If the value must be transformable into an Date value.
The expected date format is "yyyy-MM-dd'T'HH:mm:ss".
key
- Key.
public final String[] getKeySortedStringValues()
public String toString()
|
Hilbert II - Version 0.03.04 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
©left GNU General Public Licence All Rights Reserved. |