jaxe
Class ErrorHandler

java.lang.Object
  extended by jaxe.ErrorHandler
All Implemented Interfaces:
ErrorHandlerIf

public class ErrorHandler
extends java.lang.Object
implements ErrorHandlerIf

The Default ErrorHandler

Author:
tasche

Field Summary
private  JaxeDocument doc
           
private static org.apache.log4j.Logger LOG
          Logger for this class
 
Constructor Summary
ErrorHandler(JaxeDocument document)
           
 
Method Summary
 void childNotAllowed(java.lang.String expr, JaxeElement parent, org.w3c.dom.Element defbalise)
          The childis not allowed in the Parent-Node
 void childNotAllowedInParentdef(org.w3c.dom.Element parentdef, org.w3c.dom.Element defbalise)
          A child was not inserted because it is not allowed in the parent-node
 void editNotAllowed(JaxeElement parent, org.w3c.dom.Element defbalise)
          The User tried to add an Element in an Node that is not editable
 void notInRootError(org.w3c.dom.Element defbalise)
          The User tried to add an Element before or after the Root-Element
 void textNotAllowed(JaxeElement element)
          It is not allowed to insert Text into this Element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG
Logger for this class


doc

private final JaxeDocument doc
Constructor Detail

ErrorHandler

public ErrorHandler(JaxeDocument document)
Parameters:
document -
Method Detail

childNotAllowedInParentdef

public void childNotAllowedInParentdef(org.w3c.dom.Element parentdef,
                                       org.w3c.dom.Element defbalise)
Description copied from interface: ErrorHandlerIf
A child was not inserted because it is not allowed in the parent-node

Specified by:
childNotAllowedInParentdef in interface ErrorHandlerIf
Parameters:
parentdef - Parent
defbalise - Child that should have been inserted

childNotAllowed

public void childNotAllowed(java.lang.String expr,
                            JaxeElement parent,
                            org.w3c.dom.Element defbalise)
Description copied from interface: ErrorHandlerIf
The childis not allowed in the Parent-Node

Specified by:
childNotAllowed in interface ErrorHandlerIf
Parameters:
expr - Expr what is allowed in the Parent-Node
parent - The Parent
defbalise - The child that should have been inserted

notInRootError

public void notInRootError(org.w3c.dom.Element defbalise)
Description copied from interface: ErrorHandlerIf
The User tried to add an Element before or after the Root-Element

Specified by:
notInRootError in interface ErrorHandlerIf
Parameters:
defbalise - Element the User tried to add

editNotAllowed

public void editNotAllowed(JaxeElement parent,
                           org.w3c.dom.Element defbalise)
Description copied from interface: ErrorHandlerIf
The User tried to add an Element in an Node that is not editable

Specified by:
editNotAllowed in interface ErrorHandlerIf
Parameters:
parent - This node was edited
defbalise - This node was not inserted

textNotAllowed

public void textNotAllowed(JaxeElement element)
Description copied from interface: ErrorHandlerIf
It is not allowed to insert Text into this Element

Specified by:
textNotAllowed in interface ErrorHandlerIf
Parameters:
element - no Text allowed here