org.jbind.xml.schema.element
Class ConstantResolver

java.lang.Object
  extended byorg.jbind.xml.schema.element.ConstantResolver

public class ConstantResolver
extends java.lang.Object


Method Summary
static java.util.Set getBlockTypes(java.lang.String aString, IHasLocation aHasLocation)
           
static java.util.Set getFinalTypes(java.lang.String aString, IHasLocation aHasLocation)
          Gets the final types encoded in the specified string.
static FormType getFormType(java.lang.String aString, IHasLocation aHasLocation)
           
static AttributeOccurence getOccurence(java.lang.String aString, IHasLocation aHasLocation)
           
static ProcessContentsType getProcessContents(java.lang.String aString, IHasLocation aHasLocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFormType

public static FormType getFormType(java.lang.String aString,
                                   IHasLocation aHasLocation)
                            throws XmlException
Throws:
XmlException

getBlockTypes

public static java.util.Set getBlockTypes(java.lang.String aString,
                                          IHasLocation aHasLocation)
                                   throws XmlException
Throws:
XmlException

getFinalTypes

public static java.util.Set getFinalTypes(java.lang.String aString,
                                          IHasLocation aHasLocation)
                                   throws XmlException
Gets the final types encoded in the specified string.

Parameters:
aString - (required). Either the string "#all" or a string containing 0 or more of "extension", "restriction", "list", or "union".
aHasLocation - (required). Used for the vioalation message in case that an invalid string is supplied.
Returns:
(required). A set of FinalTypes.
Throws:
XmlException

getProcessContents

public static ProcessContentsType getProcessContents(java.lang.String aString,
                                                     IHasLocation aHasLocation)
                                              throws XmlException
Throws:
XmlException

getOccurence

public static AttributeOccurence getOccurence(java.lang.String aString,
                                              IHasLocation aHasLocation)
                                       throws XmlException
Throws:
XmlException