Java Doc for TreeContext.java in  » XML » jibx-1.1.5 » org » jibx » binding » model » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » jibx 1.1.5 » org.jibx.binding.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jibx.binding.model.TreeContext

All known Subclasses:   org.jibx.binding.model.ValidationContext,
TreeContext
public class TreeContext (Code)
Handles walking the tree structure of a binding model, tracking order-dependent state information collected along the way.
author:
   Dennis M. Sosnoski



Constructor Summary
public  TreeContext(IClassLocator iloc)
     Constructor.

Method Summary
protected  voidaddSkip(Object skip)
     Add element to set to be skipped.
public  BindingElementgetBindingRoot()
     Get root element of binding.
public  TreeContextgetChildContext()
     Get a secondary context for the same tree as this instance.
public  IClassgetClassInfo(String name)
     Get class information.
public  ContainerElementBasegetContextObject()
     Get parent container with linked object.
public  DefinitionContextgetCurrentDefinitions()
     Get definition context for innermost nesting element.
public  DefinitionContextgetDefinitions()
     Get innermost containing definition context.
public  DefinitionContextgetFormatDefinitions()
     Get definition context for innermost nesting element for use by a format (or namespace).
public  intgetNestingDepth()
     Get depth of nesting in binding.
public  ContainerElementBasegetParentContainer()
     Get parent container information.
public  NestingElementBasegetParentElement()
     Get containing element.
public  ElementBasegetParentElement(int level)
     Get containing element at generation level.
public  IClassgetRequiredClassInfo(String name)
     Get requiried class information.
public  booleanisInBinding()
     Check if binding supports input.
public  booleanisOutBinding()
     Check if binding supports output.
public  booleanisSkipped(Object obj)
     Check if a component is being skipped due to a fatal error.
protected  ElementBasepeekElement()
     Peek current element of hierarchy.
public  voidsetBindingRoot(BindingElement root)
     Set root element of binding.
public  voidsetGlobalDefinitions(DefinitionContext dctx)
     Set the global definition context.
public  voidtourTree(BindingElement root, ModelVisitor visitor)
     Tour complete binding model tree.
public  voidtourTree(ElementBase root, ModelVisitor visitor)
     Tour binding model tree.


Constructor Detail
TreeContext
public TreeContext(IClassLocator iloc)(Code)
Constructor.
Parameters:
  iloc - class locator to be used




Method Detail
addSkip
protected void addSkip(Object skip)(Code)
Add element to set to be skipped.
Parameters:
  skip -



getBindingRoot
public BindingElement getBindingRoot()(Code)
Get root element of binding. root element of binding
throws:
  IllegalStateException - if no root element known



getChildContext
public TreeContext getChildContext()(Code)
Get a secondary context for the same tree as this instance. The secondary context shares the same skip set, context, and binding root as the original context. This allows activites invoked during the touring of the original tree to start subtours of their own part of the tree. new context linked to original context



getClassInfo
public IClass getClassInfo(String name)(Code)
Get class information. Finds a class by name using the class locator configured by the environment code.
Parameters:
  name - fully-qualified name of class to be found class information, or null if class not found



getContextObject
public ContainerElementBase getContextObject()(Code)
Get parent container with linked object. This returns the innermost containing binding component which defines a context object. innermost containing element defining a context object



getCurrentDefinitions
public DefinitionContext getCurrentDefinitions()(Code)
Get definition context for innermost nesting element. If the context for this element isn't already defined it's created by the call. definition context for innermost nesting element



getDefinitions
public DefinitionContext getDefinitions()(Code)
Get innermost containing definition context. innermost definition context containing this element



getFormatDefinitions
public DefinitionContext getFormatDefinitions()(Code)
Get definition context for innermost nesting element for use by a format (or namespace). If the context for this element isn't already defined it's created by the call, along with the contexts for any containing elements. This is ugly, but necessary to keep the tree structure of contexts from getting split when other items are added by the registration pass (since the formats are registered in the prevalidation pass). definition context for innermost nesting element



getNestingDepth
public int getNestingDepth()(Code)
Get depth of nesting in binding. nesting depth



getParentContainer
public ContainerElementBase getParentContainer()(Code)
Get parent container information. This returns the innermost containing binding component which refers to an object. innermost containing element referencing bound object



getParentElement
public NestingElementBase getParentElement()(Code)
Get containing element. This is equivalent to the generation 1 parent, except that it checks for the case where there's no parent present. binding definition component for parent element, ornull if no parent



getParentElement
public ElementBase getParentElement(int level)(Code)
Get containing element at generation level. All except the zero-level containing element are guaranteed to be instances of org.jibx.binding.model.NestingElementBase .
Parameters:
  level - generation level of parent binding definition component for parent at level



getRequiredClassInfo
public IClass getRequiredClassInfo(String name)(Code)
Get requiried class information. Finds a class by name using the class locator configured by the environment code. If the class cannot be found a runtime exception is thrown.
Parameters:
  name - fully-qualified name of class to be found class information



isInBinding
public boolean isInBinding()(Code)
Check if binding supports input. true if input binding, false if not



isOutBinding
public boolean isOutBinding()(Code)
Check if binding supports output. true if output binding, false if not



isSkipped
public boolean isSkipped(Object obj)(Code)
Check if a component is being skipped due to a fatal error.
Parameters:
  obj - component to be checked flag for component being skipped



peekElement
protected ElementBase peekElement()(Code)
Peek current element of hierarchy. current element



setBindingRoot
public void setBindingRoot(BindingElement root)(Code)
Set root element of binding. This should be called by the user if an element other than the binding element is going to be used as the root for a tour.
Parameters:
  root - root element of binding



setGlobalDefinitions
public void setGlobalDefinitions(DefinitionContext dctx)(Code)
Set the global definition context. This context is external to the actual binding definition, providing defaults that can be overridden by values set within the actual binding.
Parameters:
  dctx - global definition context



tourTree
public void tourTree(BindingElement root, ModelVisitor visitor)(Code)
Tour complete binding model tree. This tours the entire binding model, starting from the root binding element. Using this method automatically sets the root binding element for access by processing performed during the tour. It must be used for the binding element in order to handle included binding definitions properly.
Parameters:
  root - binding element root of tree
Parameters:
  visitor - target visitor for element notifications



tourTree
public void tourTree(ElementBase root, ModelVisitor visitor)(Code)
Tour binding model tree. This recursively traverses the binding model tree rooted in the supplied element, notifying the visitor of each element visited during the traversal. Elements with fatal errors are skipped in processing, along with all child elements. The method may itself be called recursively.
Parameters:
  root - node of tree to be toured
Parameters:
  visitor - target visitor for element notifications



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.