|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.model.TreeContext
public class TreeContext
Handles walking the tree structure of a binding model, tracking order-dependent state information collected along the way.
| Constructor Summary | |
|---|---|
TreeContext(IClassLocator iloc)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addSkip(Object skip)
Add element to set to be skipped. |
BindingElement |
getBindingRoot()
Get root element of binding. |
TreeContext |
getChildContext()
Get a secondary context for the same tree as this instance. |
IClass |
getClassInfo(String name)
Get class information. |
ContainerElementBase |
getContextObject()
Get parent container with linked object. |
DefinitionContext |
getCurrentDefinitions()
Get definition context for innermost nesting element. |
DefinitionContext |
getDefinitions()
Get innermost containing definition context. |
DefinitionContext |
getFormatDefinitions()
Get definition context for innermost nesting element for use by a format (or namespace). |
int |
getNestingDepth()
Get depth of nesting in binding. |
ContainerElementBase |
getParentContainer()
Get parent container information. |
NestingElementBase |
getParentElement()
Get containing element. |
ElementBase |
getParentElement(int level)
Get containing element at generation level. |
IClass |
getRequiredClassInfo(String name)
Get required class information. |
boolean |
isInBinding()
Check if binding supports input. |
boolean |
isLookupSupported()
Check if class lookup is supported. |
boolean |
isOutBinding()
Check if binding supports output. |
boolean |
isSkipped(Object obj)
Check if a component is being skipped due to a fatal error. |
protected ElementBase |
peekElement()
Peek current element of hierarchy. |
ElementBase |
popNode()
Pop node from tree. |
void |
pushNode(ElementBase node)
Push node on tree. |
void |
setBindingRoot(BindingElement root)
Set root element of binding. |
void |
setGlobalDefinitions(DefinitionContext dctx)
Set the global definition context. |
void |
tourTree(BindingElement root,
ModelVisitor visitor)
Tour complete binding model tree. |
void |
tourTree(ElementBase root,
ModelVisitor visitor)
Tour binding model tree. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeContext(IClassLocator iloc)
iloc - class locator to be used| Method Detail |
|---|
public TreeContext getChildContext()
public void setGlobalDefinitions(DefinitionContext dctx)
dctx - global definition context
public void tourTree(BindingElement root,
ModelVisitor visitor)
root - binding element root of treevisitor - target visitor for element notifications
public void tourTree(ElementBase root,
ModelVisitor visitor)
root - node of tree to be touredvisitor - target visitor for element notificationspublic int getNestingDepth()
protected ElementBase peekElement()
public boolean isSkipped(Object obj)
obj - component to be checked
protected void addSkip(Object skip)
skip - public BindingElement getBindingRoot()
IllegalStateException - if no root element knownpublic void setBindingRoot(BindingElement root)
root - root element of bindingpublic NestingElementBase getParentElement()
1 parent, except that it checks for the case where there's
no parent present.
null if no parentpublic ElementBase getParentElement(int level)
NestingElementBase.
level - generation level of parent
public ContainerElementBase getParentContainer()
public ContainerElementBase getContextObject()
public boolean isInBinding()
true if input binding, false if notpublic boolean isOutBinding()
true if output binding, false if notpublic DefinitionContext getDefinitions()
public DefinitionContext getCurrentDefinitions()
public DefinitionContext getFormatDefinitions()
public boolean isLookupSupported()
false,
lookup methods return only place holder class information.
true if class lookup supported, false
if only place holder information returnedpublic IClass getClassInfo(String name)
name - fully-qualified name of class to be found
null if class not foundpublic IClass getRequiredClassInfo(String name)
name - fully-qualified name of class to be found
public void pushNode(ElementBase node)
node - public ElementBase popNode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||