public class ValidationContext extends TreeContext
| Modifier and Type | Class and Description |
|---|---|
protected class |
ValidationContext.PrevalidationVisitor
Inner class for handling prevalidation.
|
protected class |
ValidationContext.ValidationVisitor
Inner class for handling validation.
|
| Constructor and Description |
|---|
ValidationContext(IClassLocator iloc)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String msg)
Add error item for current element.
|
void |
addError(String msg,
Object obj)
Add error item.
|
void |
addFatal(String msg)
Add fatal item for current element.
|
void |
addFatal(String msg,
Object obj)
Add fatal item.
|
void |
addProblem(ValidationProblem problem)
Add problem report.
|
void |
addWarning(String msg)
Add warning item for current element.
|
void |
addWarning(String msg,
Object obj)
Add warning item.
|
IClass |
getClassInfo(String name)
Get class information.
|
int |
getErrorCount()
Get number of error problems reported.
|
int |
getFatalCount()
Get number of fatal problems reported.
|
ArrayList |
getProblems()
Get list of problems.
|
int |
getWarningCount()
Get number of warning problems reported.
|
void |
prevalidate(BindingElement root)
Prevalidate binding model tree.
|
void |
validate(BindingElement root)
Validate binding model tree.
|
addSkip, getBindingRoot, getChildContext, getContextObject, getCurrentDefinitions, getDefinitions, getFormatDefinitions, getNestingDepth, getParentContainer, getParentElement, getParentElement, getRequiredClassInfo, isInBinding, isLookupSupported, isOutBinding, isSkipped, peekElement, popNode, pushNode, setBindingRoot, setGlobalDefinitions, tourTree, tourTreepublic ValidationContext(IClassLocator iloc)
iloc - class locatorpublic void prevalidate(BindingElement root)
root - binding node of tree to be prevalidatedpublic void validate(BindingElement root)
root - binding node of tree to be prevalidatedpublic int getWarningCount()
public int getErrorCount()
public int getFatalCount()
public void addWarning(String msg)
msg - problem descriptionpublic void addWarning(String msg, Object obj)
msg - problem descriptionobj - source object for validation errorpublic void addError(String msg)
msg - problem descriptionpublic void addError(String msg, Object obj)
msg - problem descriptionobj - source object for validation errorpublic void addFatal(String msg)
msg - problem descriptionpublic void addFatal(String msg, Object obj)
msg - problem descriptionobj - source object for validation error (should be an element)public void addProblem(ValidationProblem problem)
problem - details of problem reportpublic ArrayList getProblems()
public IClass getClassInfo(String name)
getClassInfo in class TreeContextname - fully-qualified name of class to be foundnull if class not foundCopyright © 2005–2016 jibx.org. All rights reserved.