Java Doc for ValidationContext.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
      org.jibx.binding.model.ValidationContext

ValidationContext
public class ValidationContext extends TreeContext (Code)
Tracks the validation state. This includes the current validation phase, as well as order-dependent state information collected while walking the tree structure of a binding model. Collects all errors and warnings and maintains a summary of the severity of the problems found.
author:
   Dennis M. Sosnoski
version:
   1.0

Inner Class :protected class PrevalidationVisitor extends ModelVisitor
Inner Class :protected class ValidationVisitor extends ModelVisitor


Constructor Summary
public  ValidationContext(IClassLocator iloc)
     Constructor.

Method Summary
public  voidaddError(String msg)
     Add error item for current element.
public  voidaddError(String msg, Object obj)
     Add error item.
public  voidaddFatal(String msg)
     Add fatal item for current element.
public  voidaddFatal(String msg, Object obj)
     Add fatal item.
public  voidaddProblem(ValidationProblem problem)
     Add problem report.
public  voidaddWarning(String msg)
     Add warning item for current element.
public  voidaddWarning(String msg, Object obj)
     Add warning item.
public  intgetErrorCount()
     Get number of error problems reported.
public  intgetFatalCount()
     Get number of fatal problems reported.
public  ArrayListgetProblems()
     Get list of problems.
public  intgetWarningCount()
     Get number of warning problems reported.
public  voidprevalidate(BindingElement root)
     Prevalidate binding model tree.
public  voidvalidate(BindingElement root)
     Validate binding model tree.


Constructor Detail
ValidationContext
public ValidationContext(IClassLocator iloc)(Code)
Constructor.
Parameters:
  iloc - class locator




Method Detail
addError
public void addError(String msg)(Code)
Add error item for current element. Adds an error item to the problem list, which is a definite problem that still allows validation to proceed. This form of the call can only be used during a tree tour being controlled by this context.
Parameters:
  msg - problem description



addError
public void addError(String msg, Object obj)(Code)
Add error item. Adds an error item to the problem list, which is a definite problem that still allows validation to proceed.
Parameters:
  msg - problem description
Parameters:
  obj - source object for validation error



addFatal
public void addFatal(String msg)(Code)
Add fatal item for current element. Adds a fatal item to the problem list, which is a severe problem that blocks further validation within the tree branch involved. This form of the call can only be used during a tree tour being controlled by this context.
Parameters:
  msg - problem description



addFatal
public void addFatal(String msg, Object obj)(Code)
Add fatal item. Adds a fatal item to the problem list, which is a severe problem that blocks further validation within the tree branch involved. The object associated with a fatal error should always be an element.
Parameters:
  msg - problem description
Parameters:
  obj - source object for validation error (should be an element)



addProblem
public void addProblem(ValidationProblem problem)(Code)
Add problem report. The problem is added and counted as appropriate.
Parameters:
  problem - details of problem report



addWarning
public void addWarning(String msg)(Code)
Add warning item for current element. Adds a warning item to the problem list, which is a possible problem that still allows reasonable operation. This form of the call can only be used during a tree tour being controlled by this context.
Parameters:
  msg - problem description



addWarning
public void addWarning(String msg, Object obj)(Code)
Add warning item. Adds a warning item to the problem list, which is a possible problem that still allows reasonable operation.
Parameters:
  msg - problem description
Parameters:
  obj - source object for validation error



getErrorCount
public int getErrorCount()(Code)
Get number of error problems reported. error problem count



getFatalCount
public int getFatalCount()(Code)
Get number of fatal problems reported. fatal problem count



getProblems
public ArrayList getProblems()(Code)
Get list of problems. problem list



getWarningCount
public int getWarningCount()(Code)
Get number of warning problems reported. warning problem count



prevalidate
public void prevalidate(BindingElement root)(Code)
Prevalidate binding model tree. This calls the prevalidate method for each element in the tree, in preorder traversal order.
Parameters:
  root - binding node of tree to be prevalidated



validate
public void validate(BindingElement root)(Code)
Validate binding model tree. This calls the validate method for each element in the tree, in postorder traversal order.
Parameters:
  root - binding node of tree to be prevalidated



Methods inherited from org.jibx.binding.model.TreeContext
protected void addSkip(Object skip)(Code)(Java Doc)
public BindingElement getBindingRoot()(Code)(Java Doc)
public TreeContext getChildContext()(Code)(Java Doc)
public IClass getClassInfo(String name)(Code)(Java Doc)
public ContainerElementBase getContextObject()(Code)(Java Doc)
public DefinitionContext getCurrentDefinitions()(Code)(Java Doc)
public DefinitionContext getDefinitions()(Code)(Java Doc)
public DefinitionContext getFormatDefinitions()(Code)(Java Doc)
public int getNestingDepth()(Code)(Java Doc)
public ContainerElementBase getParentContainer()(Code)(Java Doc)
public NestingElementBase getParentElement()(Code)(Java Doc)
public ElementBase getParentElement(int level)(Code)(Java Doc)
public IClass getRequiredClassInfo(String name)(Code)(Java Doc)
public boolean isInBinding()(Code)(Java Doc)
public boolean isOutBinding()(Code)(Java Doc)
public boolean isSkipped(Object obj)(Code)(Java Doc)
protected ElementBase peekElement()(Code)(Java Doc)
public void setBindingRoot(BindingElement root)(Code)(Java Doc)
public void setGlobalDefinitions(DefinitionContext dctx)(Code)(Java Doc)
public void tourTree(BindingElement root, ModelVisitor visitor)(Code)(Java Doc)
public void tourTree(ElementBase root, ModelVisitor visitor)(Code)(Java Doc)

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.