com.myjavatools.xml
Class BasicXmlData.Policy

java.lang.Object
  extended bycom.myjavatools.xml.BasicXmlData.Policy
Enclosing class:
BasicXmlData

public static class BasicXmlData.Policy
extends java.lang.Object

Class Policy defines three different casting policies.


Field Summary
static BasicXmlData.Policy KEEP_ON_ERROR
          Policy KEEP_ON_ERROR causes casting to keep intact nodes that failed to cast.
static BasicXmlData.Policy SKIP_ON_ERROR
          Policy SKIP_ON_ERROR causes casting to ignore nodes that failed to cast.
static BasicXmlData.Policy THROW_ON_ERROR
          Policy THROW_ON_ERROR causes casting to throw any exception that happens while casting a node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SKIP_ON_ERROR

public static final BasicXmlData.Policy SKIP_ON_ERROR
Policy SKIP_ON_ERROR causes casting to ignore nodes that failed to cast.


KEEP_ON_ERROR

public static final BasicXmlData.Policy KEEP_ON_ERROR
Policy KEEP_ON_ERROR causes casting to keep intact nodes that failed to cast.


THROW_ON_ERROR

public static final BasicXmlData.Policy THROW_ON_ERROR
Policy THROW_ON_ERROR causes casting to throw any exception that happens while casting a node.