Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.samples » validation » todolist » [javadoc | source]

    1   /*
    2    * XML Type:  actionType
    3    * Namespace: http://xmlbeans.apache.org/samples/validation/todolist
    4    * Java type: org.apache.xmlbeans.samples.validation.todolist.ActionType
    5    *
    6    * Automatically generated - do not modify.
    7    */
    8   package org.apache.xmlbeans.samples.validation.todolist;
    9   
   10   
   11   /**
   12    * An XML actionType(@http://xmlbeans.apache.org/samples/validation/todolist).
   13    *
   14    * This is an atomic type that is a restriction of org.apache.xmlbeans.XmlString.
   15    */
   16   public interface ActionType extends org.apache.xmlbeans.XmlString
   17   {
   18       public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schema.system.s59A663BF38731BA9F8026B121E40FDD3.TypeSystemHolder.typeSystem.resolveHandle("actiontype5fa0type");
   19       
   20       org.apache.xmlbeans.StringEnumAbstractBase enumValue();
   21       void set(org.apache.xmlbeans.StringEnumAbstractBase e);
   22       
   23       static final Enum DO = Enum.forString("do");
   24       static final Enum DELEGATE = Enum.forString("delegate");
   25       static final Enum SOMEDAY_MAYBE_DEFER = Enum.forString("someday_maybe_defer");
   26       static final Enum TOSS = Enum.forString("toss");
   27       static final Enum INCUBATE = Enum.forString("incubate");
   28       static final Enum FILE = Enum.forString("file");
   29       
   30       static final int INT_DO = Enum.INT_DO;
   31       static final int INT_DELEGATE = Enum.INT_DELEGATE;
   32       static final int INT_SOMEDAY_MAYBE_DEFER = Enum.INT_SOMEDAY_MAYBE_DEFER;
   33       static final int INT_TOSS = Enum.INT_TOSS;
   34       static final int INT_INCUBATE = Enum.INT_INCUBATE;
   35       static final int INT_FILE = Enum.INT_FILE;
   36       
   37       /**
   38        * Enumeration value class for org.apache.xmlbeans.samples.validation.todolist.ActionType.
   39        * These enum values can be used as follows:
   40        * <pre>
   41        * enum.toString(); // returns the string value of the enum
   42        * enum.intValue(); // returns an int value, useful for switches
   43        * // e.g., case Enum.INT_DO
   44        * Enum.forString(s); // returns the enum value for a string
   45        * Enum.forInt(i); // returns the enum value for an int
   46        * </pre>
   47        * Enumeration objects are immutable singleton objects that
   48        * can be compared using == object equality. They have no
   49        * public constructor. See the constants defined within this
   50        * class for all the valid values.
   51        */
   52       static final class Enum extends org.apache.xmlbeans.StringEnumAbstractBase
   53       {
   54           /**
   55            * Returns the enum value for a string, or null if none.
   56            */
   57           public static Enum forString(java.lang.String s)
   58               { return (Enum)table.forString(s); }
   59           /**
   60            * Returns the enum value corresponding to an int, or null if none.
   61            */
   62           public static Enum forInt(int i)
   63               { return (Enum)table.forInt(i); }
   64           
   65           private Enum(java.lang.String s, int i)
   66               { super(s, i); }
   67           
   68           static final int INT_DO = 1;
   69           static final int INT_DELEGATE = 2;
   70           static final int INT_SOMEDAY_MAYBE_DEFER = 3;
   71           static final int INT_TOSS = 4;
   72           static final int INT_INCUBATE = 5;
   73           static final int INT_FILE = 6;
   74           
   75           public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table =
   76               new org.apache.xmlbeans.StringEnumAbstractBase.Table
   77           (
   78               new Enum[]
   79               {
   80                   new Enum("do", INT_DO),
   81                   new Enum("delegate", INT_DELEGATE),
   82                   new Enum("someday_maybe_defer", INT_SOMEDAY_MAYBE_DEFER),
   83                   new Enum("toss", INT_TOSS),
   84                   new Enum("incubate", INT_INCUBATE),
   85                   new Enum("file", INT_FILE),
   86               }
   87           );
   88           private static final long serialVersionUID = 1L;
   89           private java.lang.Object readResolve() { return forInt(intValue()); } 
   90       }
   91       
   92       /**
   93        * A factory class with static methods for creating instances
   94        * of this type.
   95        */
   96       
   97       public static final class Factory
   98       {
   99           public static org.apache.xmlbeans.samples.validation.todolist.ActionType newValue(java.lang.Object obj) {
  100             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) type.newValue( obj ); }
  101           
  102           public static org.apache.xmlbeans.samples.validation.todolist.ActionType newInstance() {
  103             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
  104           
  105           public static org.apache.xmlbeans.samples.validation.todolist.ActionType newInstance(org.apache.xmlbeans.XmlOptions options) {
  106             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
  107           
  108           /** @param xmlAsString the string value to parse */
  109           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
  110             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
  111           
  112           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
  113             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
  114           
  115           /** @param file the file from which to load an xml document */
  116           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  117             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
  118           
  119           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  120             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
  121           
  122           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  123             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
  124           
  125           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  126             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
  127           
  128           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  129             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
  130           
  131           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  132             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
  133           
  134           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  135             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
  136           
  137           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  138             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
  139           
  140           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
  141             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
  142           
  143           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
  144             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
  145           
  146           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
  147             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
  148           
  149           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
  150             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
  151           
  152           /** @deprecated {@link XMLInputStream} */
  153           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
  154             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
  155           
  156           /** @deprecated {@link XMLInputStream} */
  157           public static org.apache.xmlbeans.samples.validation.todolist.ActionType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
  158             return (org.apache.xmlbeans.samples.validation.todolist.ActionType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
  159           
  160           /** @deprecated {@link XMLInputStream} */
  161           public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
  162             return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
  163           
  164           /** @deprecated {@link XMLInputStream} */
  165           public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
  166             return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
  167           
  168           private Factory() { } // No instance of this class allowed
  169       }
  170   }

Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.samples » validation » todolist » [javadoc | source]