com.xml_project.morganaxdm
Class SchemaTypeTools

java.lang.Object
  extended by com.xml_project.morganaxdm.SchemaTypeTools

public class SchemaTypeTools
extends java.lang.Object

For internal use only: Some static methods usable for XDM.


Nested Class Summary
static class SchemaTypeTools.WhitespaceRestriction
          An enumeration of the defined whitespace restrictions
 
Method Summary
static java.lang.Class<? extends XS_AnyType> getPrimitiveBase(java.lang.Class<? extends XS_AnyType> baseClass)
           
static java.lang.String handleWhitespace(java.lang.String source, SchemaTypeTools.WhitespaceRestriction mode)
           
static boolean isDerivedFrom(java.lang.Class<? extends XS_AnyType> baseClass, java.lang.Class<? extends XS_AnyType> derivedClass)
           
static boolean isInstanceOf(XS_AnyType value, java.lang.Class<? extends XS_AnyType> theClass)
           
static boolean isRestrictionBase(java.lang.Class<? extends XS_AnyType> baseClass, java.lang.Class<? extends XS_AnyType> superClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

handleWhitespace

public static java.lang.String handleWhitespace(java.lang.String source,
                                                SchemaTypeTools.WhitespaceRestriction mode)

isInstanceOf

public static boolean isInstanceOf(XS_AnyType value,
                                   java.lang.Class<? extends XS_AnyType> theClass)
                            throws XPathException
Throws:
XPathException

isDerivedFrom

public static boolean isDerivedFrom(java.lang.Class<? extends XS_AnyType> baseClass,
                                    java.lang.Class<? extends XS_AnyType> derivedClass)
                             throws XPathException
Throws:
XPathException

isRestrictionBase

public static boolean isRestrictionBase(java.lang.Class<? extends XS_AnyType> baseClass,
                                        java.lang.Class<? extends XS_AnyType> superClass)
                                 throws XPathException
Throws:
XPathException

getPrimitiveBase

public static java.lang.Class<? extends XS_AnyType> getPrimitiveBase(java.lang.Class<? extends XS_AnyType> baseClass)
                                                              throws XPathException
Throws:
XPathException