|
||||||||||
| 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.xml.types.element.HashMapState<java.lang.String,Pref<?>>
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 |
|---|
| Nested classes/interfaces inherited from class ecologylab.xml.ElementState |
|---|
ElementState.ClassToCollectionMap, ElementState.DeclarationStyle, ElementState.xml_attribute, ElementState.xml_class, ElementState.xml_classes, ElementState.xml_collection, ElementState.xml_leaf, ElementState.xml_map, ElementState.xml_nested, ElementState.xml_tag |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Field Summary |
|---|
| Fields inherited from class ecologylab.xml.types.element.HashMapState |
|---|
map |
| Fields inherited from class ecologylab.xml.ElementState |
|---|
CDATA, ESTIMATE_CHARS_PER_FIELD, FLOATING_PRECISION_OFF, MARSHALLING_PARAMS, NORMAL, UTF16, UTF16_LE, UTF8, XML_FILE_HEADER |
| Fields inherited from interface ecologylab.appframework.ApplicationPropertyNames |
|---|
CODEBASE, FRAME, GO_PREFIX, PREFERENCES_SET, PREFERENCES_SET_ASSET, USERINTERFACE_PREF |
| 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. |
protected void |
createChildHook(ElementState child)
Perform custom processing on the newly created child node, just before it is added to this. |
static PrefSet |
load(ParsedURL purl,
TranslationSpace translationSpace)
Read MetaPref declarations from a file or across the net. |
static PrefSet |
load(java.lang.String prefXML,
TranslationSpace translationSpace)
Read MetaPref declarations from a file or across the net. |
| Methods inherited from class ecologylab.xml.types.element.HashMapState |
|---|
clear, clone, containsKey, containsValue, entrySet, get, getMap, isEmpty, keySet, map, put, putAll, recycle, remove, size, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public PrefSet()
| Method Detail |
|---|
public Pref<?> add(Pref<?> pref)
add in class HashMapState<java.lang.String,Pref<?>>pref -
protected void createChildHook(ElementState child)
createChildHook in class ElementStatechild -
public static PrefSet load(ParsedURL purl,
TranslationSpace translationSpace)
throws XMLTranslationException
purl - translationSpace -
XMLTranslationException
public static PrefSet load(java.lang.String prefXML,
TranslationSpace translationSpace)
throws XMLTranslationException
prefXML - - Preferences in an XML format; to be translated into a PrefSet.translationSpace -
XMLTranslationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||