Jacson

de.spieleck.app.jacson
Class JacsonRegistry

java.lang.Object
  extended byde.spieleck.app.jacson.JacsonRegistry

public class JacsonRegistry
extends java.lang.Object

Registry for id/idref setup and everything else needed at config time. Hold a RegExpUtil instance also.
XXX Consider moving that in the de.spieleck.config package.

Author:
fsn

Field Summary
static java.lang.String ID_NODE
           
static java.lang.String IDREF_NODE
           
protected  java.util.Map registered
           
protected  RegExpUtil rutil
           
 
Constructor Summary
JacsonRegistry(ConfigNode config)
           
 
Method Summary
static boolean acceptId(ConfigNode node)
           
 java.util.Iterator find(ConfigNode node, java.lang.String nodeName)
           
 RegExpUtil getRegExpUtil()
           
 ConfigNode lookup(ConfigNode cn, ConfigNode anchor)
           
 void recurse(ConfigNode cn)
           
 java.util.Iterator scanFor(java.lang.String name, ConfigNode cn)
           
 java.lang.String scanForString(java.lang.String name, ConfigNode cn)
           
 java.lang.String scanForValue(ConfigNode cn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID_NODE

public static final java.lang.String ID_NODE
See Also:
Constant Field Values

IDREF_NODE

public static final java.lang.String IDREF_NODE
See Also:
Constant Field Values

registered

protected java.util.Map registered

rutil

protected RegExpUtil rutil
Constructor Detail

JacsonRegistry

public JacsonRegistry(ConfigNode config)
               throws JacsonConfigException
Method Detail

acceptId

public static boolean acceptId(ConfigNode node)

recurse

public void recurse(ConfigNode cn)
             throws JacsonConfigException
Throws:
JacsonConfigException

lookup

public ConfigNode lookup(ConfigNode cn,
                         ConfigNode anchor)

scanFor

public java.util.Iterator scanFor(java.lang.String name,
                                  ConfigNode cn)

scanForString

public java.lang.String scanForString(java.lang.String name,
                                      ConfigNode cn)

scanForValue

public java.lang.String scanForValue(ConfigNode cn)

find

public java.util.Iterator find(ConfigNode node,
                               java.lang.String nodeName)

getRegExpUtil

public RegExpUtil getRegExpUtil()

Spieleck

Copyleft 2002 spieleck.de.