com.myjavatools.xml
Class BasicXmlData.Policy

java.lang.Object
  extended by com.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
           
static BasicXmlData.Policy SKIP_ON_ERROR
           
static BasicXmlData.Policy THROW_ON_ERROR
           
 
Constructor Summary
protected BasicXmlData.Policy(java.lang.String newId, java.lang.String newDescription)
           
 
Method Summary
protected  XmlData cast(XmlData source, java.lang.Class<? extends XmlData> targetClass)
           
protected  java.lang.Class<? extends XmlData> resolve(java.lang.String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THROW_ON_ERROR

public static final BasicXmlData.Policy THROW_ON_ERROR

SKIP_ON_ERROR

public static final BasicXmlData.Policy SKIP_ON_ERROR

KEEP_ON_ERROR

public static final BasicXmlData.Policy KEEP_ON_ERROR
Constructor Detail

BasicXmlData.Policy

protected BasicXmlData.Policy(java.lang.String newId,
                              java.lang.String newDescription)
Method Detail

resolve

protected java.lang.Class<? extends XmlData> resolve(java.lang.String className)
                                              throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

cast

protected XmlData cast(XmlData source,
                       java.lang.Class<? extends XmlData> targetClass)
                throws java.lang.SecurityException,
                       java.lang.NoSuchMethodException,
                       java.lang.reflect.InvocationTargetException,
                       java.lang.IllegalArgumentException,
                       java.lang.IllegalAccessException,
                       java.lang.InstantiationException
Throws:
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.InstantiationException