|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.search.query.formhandlers.TagBuilder atg.search.query.formhandlers.XMLPreProcessorVisitor
public class XMLPreProcessorVisitor
This class provides a first pass over constraints to simplify tag output. Currently, it just sets the "opts.__generate" flag based on the value of "opts.generate". The XMLTagBuilderVisitor reads "opts.__generate" to know whether or not to generate the tag.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.search.query.formhandlers.TagBuilder |
---|
ATTRIBUTES_KEY, BODY_KEY, NESTED_ATTR, OPTIONS_KEY, TAGNAME_KEY |
Constructor Summary | |
---|---|
XMLPreProcessorVisitor()
Create an XMLPreProcessorVisitor |
Method Summary | |
---|---|
void |
depart(java.lang.Object pKey,
java.util.Map pTag)
On the way back up, after visiting any sub-tags. |
protected java.util.Map |
getContext()
Get the current context |
protected java.util.Map |
popContext()
Pop the context |
protected java.util.Map |
pushContext()
Push the context |
boolean |
visit(java.lang.Object pKey,
java.util.Map pMap)
Visit a HashMap and generate some XML |
Methods inherited from class atg.search.query.formhandlers.TagBuilder |
---|
addIndent, escape, escape, formatAttributes, getIndent, getMapValueOrNull, getNestedTagPattern, getParentTag, getStringBuffer, getStringValueOrNull, getTagName, hasValue, indent, isNested, setIndent, unindent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public XMLPreProcessorVisitor()
Method Detail |
---|
protected java.util.Map pushContext()
protected java.util.Map popContext()
protected java.util.Map getContext()
public boolean visit(java.lang.Object pKey, java.util.Map pMap)
visit
in interface HashMapMapVisitor
pKey
- key under which the map is stored in parent map or
null if this is the root mappHashMapMap
- the mappublic void depart(java.lang.Object pKey, java.util.Map pTag)
depart
in interface HashMapMapVisitor
pKey
- the key for this tag or null if rootpTag
- a map which may contain a tag definition
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |