|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pz.platypus.SystemStrings
public class SystemStrings
Manages the user-visible Platypus system strings (version #, etc.) System strings have the format of starting with: _ followed by any number of alphanumerics or _ They can be read by the document processing, but they are not modifiable by the document.
Field Summary | |
---|---|
private java.util.TreeMap |
sysStrings
|
Constructor Summary | |
---|---|
SystemStrings()
|
Method Summary | |
---|---|
int |
add(java.lang.String key,
java.lang.String value)
Add a string to collection of Platypus system strings. |
java.lang.String |
dump(Literals lits)
Returns a string containing all the keys and values formatted one-to-a-line for printing to console or document. |
int |
getSize()
How many system Strings are defined |
java.lang.String |
getString(java.lang.String key)
Returns the string associated to a given key |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.TreeMap sysStrings
Constructor Detail |
---|
public SystemStrings()
Method Detail |
---|
public int add(java.lang.String key, java.lang.String value)
key
- string that should start with _value
- where any legal string is OK except null
public java.lang.String getString(java.lang.String key)
key
- the key to use for the lookup
public java.lang.String dump(Literals lits)
lits
- literals to use in the dump output
public int getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |