|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.alchemist.AlchemistProfile
public class AlchemistProfile
This is a Profile for various categorized property key-value pairs used by Alchemist
based applications and components.
Keys are hierarchical by convention: "application.subcategories.key"-like Strings
Values are XML-Encodable objects.
Reading and writing process is handled with XMLEncoder and XMLDecoder
XMLEncoder,
XMLDecoder| Constructor Summary | |
|---|---|
AlchemistProfile()
Constructs an empty AlchemistProfile |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all key-value mappings. |
boolean |
containsKey(java.lang.String key)
Returns true if there is mapping for specified key |
java.lang.Object |
get(java.lang.String key)
Returns the value specified by key Returns null if no such key exists |
boolean |
isEmpty()
Returns true if this profile contains no key-value pairs |
void |
put(java.lang.String key,
java.lang.Object value)
Stores the value with the specified key |
void |
read(java.io.InputStream inputStream)
Reads the profile from stream |
java.lang.Object |
remove(java.lang.String key)
Removes the value specified by key |
java.lang.String |
toString()
|
void |
write(java.io.OutputStream outputStream)
Writes the profile to stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AlchemistProfile()
AlchemistProfile
| Method Detail |
|---|
public void put(java.lang.String key,
java.lang.Object value)
key - is the keyvalue - is the valuepublic java.lang.Object get(java.lang.String key)
key - is the key
public java.lang.Object remove(java.lang.String key)
key - is the key to be removed
public void clear()
public boolean containsKey(java.lang.String key)
key - is the key
public boolean isEmpty()
public void read(java.io.InputStream inputStream)
inputStream - is the stream read profile frompublic void write(java.io.OutputStream outputStream)
outputStream - is the stream write profile topublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||