|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.schema.TreeWalker
public class TreeWalker
Handles walking the tree structure of schema model. This traverses the structure defined by the nesting of elements and schema references in the XML representation.
Field Summary | |
---|---|
private ISchemaListener |
m_schemaListener
Listener for entering and exiting referenced schemas. |
private ISkipElements |
m_skipSet
Selector for elements to be skipped when walking tree ( null if unused). |
private static org.apache.log4j.Logger |
s_logger
Logger for class. |
Constructor Summary | |
---|---|
TreeWalker(ISkipElements skip,
ISchemaListener listen)
Constructor. |
Method Summary | |
---|---|
static org.apache.log4j.Level |
setLogging(org.apache.log4j.Level level)
Control the logging level for this class. |
void |
walkChildren(SchemaBase root,
SchemaVisitor visitor)
Walk the descendants of a root element. |
void |
walkElement(SchemaBase root,
SchemaVisitor visitor)
Walk schema model element tree. |
void |
walkSchema(SchemaElement schema,
SchemaVisitor visitor)
Walk entire schema model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger s_logger
private final ISkipElements m_skipSet
null
if unused).
private final ISchemaListener m_schemaListener
null
if unused).
Constructor Detail |
---|
public TreeWalker(ISkipElements skip, ISchemaListener listen)
skip
- selector for elements to be skipped (null
if none skipped)listen
- schema reference listener (null
if none)Method Detail |
---|
public static org.apache.log4j.Level setLogging(org.apache.log4j.Level level)
level
-
public void walkSchema(SchemaElement schema, SchemaVisitor visitor)
schema
- root element of schema to be traversedvisitor
- target visitor for element notificationspublic void walkElement(SchemaBase root, SchemaVisitor visitor)
root
- node of tree to be touredvisitor
- target visitor for element notificationspublic void walkChildren(SchemaBase root, SchemaVisitor visitor)
root
- node of tree to be touredvisitor
- target visitor for element notifications
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |