|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.generic.Debug
ecologylab.xml.ElementState
ecologylab.appframework.types.prefs.PrefSet
public class PrefSet
A serial set of Pref objects. Used for reading and writing (load and save). The static allPrefsMap in Pref is used for lookup.
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class ecologylab.xml.ElementState |
|---|
CDATA, NORMAL, UTF16, UTF16_LE, UTF8 |
| Fields inherited from interface ecologylab.appframework.ApplicationPropertyNames |
|---|
CODEBASE, FRAME, GO_PREFIX, PREFERENCES_SET, PREFERENCES_SET_ASSET |
| Fields inherited from interface ecologylab.xml.XMLTranslationExceptionTypes |
|---|
FILE_NOT_FOUND, IO_EXCEPTION, NULL_PURL, UNKNOWN |
| Constructor Summary | |
|---|---|
PrefSet()
No-argument constructor for XML translation. |
|
| Method Summary | |
|---|---|
Pref<?> |
add(Pref<?> pref)
Register the Pref, as well as adding it to the super ArrayListState. |
void |
append(PrefSet jNLPPrefSet)
|
Pref<?> |
clearPref(java.lang.String key)
Remove the Pref from this, and from the global set. |
PrefSet |
clone()
|
boolean |
containsKey(java.lang.String key)
|
Pref<?> |
get(java.lang.String k)
|
java.util.Set<java.lang.String> |
keySet()
|
static PrefSet |
load(ParsedURL purl,
TranslationScope translationSpace)
Read Pref declarations from a file or across the net. |
static PrefSet |
load(java.lang.String filename,
TranslationScope translationSpace)
Read Pref declarations from a file or across the net. |
static PrefSet |
loadFromCharSequence(java.lang.String prefXML,
TranslationScope translationSpace)
Read Pref declarations from a file or across the net. |
void |
put(java.lang.String k,
Pref<?> object)
|
java.util.Collection<Pref<?>> |
values()
|
| Methods inherited from class ecologylab.generic.Debug |
|---|
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrefSet()
| Method Detail |
|---|
public Pref<?> add(Pref<?> pref)
pref -
public static PrefSet load(ParsedURL purl,
TranslationScope translationSpace)
throws XMLTranslationException
purl - translationSpace -
XMLTranslationException
public static PrefSet load(java.lang.String filename,
TranslationScope translationSpace)
throws XMLTranslationException
prefXML - - Preferences in an XML format; to be translated into a PrefSet.translationSpace -
XMLTranslationException
public static PrefSet loadFromCharSequence(java.lang.String prefXML,
TranslationScope translationSpace)
throws XMLTranslationException
prefXML - - Preferences in an XML format; to be translated into a PrefSet.translationSpace -
XMLTranslationExceptionpublic Pref<?> clearPref(java.lang.String key)
key -
public PrefSet clone()
clone in class java.lang.Objectecologylab.xml.types.element.HashMapState#clone()public java.util.Collection<Pref<?>> values()
public void append(PrefSet jNLPPrefSet)
public java.util.Set<java.lang.String> keySet()
public Pref<?> get(java.lang.String k)
public void put(java.lang.String k,
Pref<?> object)
public boolean containsKey(java.lang.String key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||