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

    1   /*
    2    * An XML document type.
    3    * Localname: todolist
    4    * Namespace: http://xmlbeans.apache.org/samples/validation/todolist
    5    * Java type: org.apache.xmlbeans.samples.validation.todolist.TodolistDocument
    6    *
    7    * Automatically generated - do not modify.
    8    */
    9   package org.apache.xmlbeans.samples.validation.todolist;
   10   
   11   
   12   /**
   13    * A document containing one todolist(@http://xmlbeans.apache.org/samples/validation/todolist) element.
   14    *
   15    * This is a complex type.
   16    */
   17   public interface TodolistDocument extends org.apache.xmlbeans.XmlObject
   18   {
   19       public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schema.system.s59A663BF38731BA9F8026B121E40FDD3.TypeSystemHolder.typeSystem.resolveHandle("todolist637cdoctype");
   20       
   21       /**
   22        * Gets the "todolist" element
   23        */
   24       org.apache.xmlbeans.samples.validation.todolist.TodolistDocument.Todolist getTodolist();
   25       
   26       /**
   27        * Sets the "todolist" element
   28        */
   29       void setTodolist(org.apache.xmlbeans.samples.validation.todolist.TodolistDocument.Todolist todolist);
   30       
   31       /**
   32        * Appends and returns a new empty "todolist" element
   33        */
   34       org.apache.xmlbeans.samples.validation.todolist.TodolistDocument.Todolist addNewTodolist();
   35       
   36       /**
   37        * An XML todolist(@http://xmlbeans.apache.org/samples/validation/todolist).
   38        *
   39        * This is a complex type.
   40        */
   41       public interface Todolist extends org.apache.xmlbeans.XmlObject
   42       {
   43           public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schema.system.s59A663BF38731BA9F8026B121E40FDD3.TypeSystemHolder.typeSystem.resolveHandle("todolist39fcelemtype");
   44           
   45           /**
   46            * Gets array of all "item" elements
   47            */
   48           org.apache.xmlbeans.samples.validation.todolist.ItemType[] getItemArray();
   49           
   50           /**
   51            * Gets ith "item" element
   52            */
   53           org.apache.xmlbeans.samples.validation.todolist.ItemType getItemArray(int i);
   54           
   55           /**
   56            * Returns number of "item" element
   57            */
   58           int sizeOfItemArray();
   59           
   60           /**
   61            * Sets array of all "item" element
   62            */
   63           void setItemArray(org.apache.xmlbeans.samples.validation.todolist.ItemType[] itemArray);
   64           
   65           /**
   66            * Sets ith "item" element
   67            */
   68           void setItemArray(int i, org.apache.xmlbeans.samples.validation.todolist.ItemType item);
   69           
   70           /**
   71            * Inserts and returns a new empty value (as xml) as the ith "item" element
   72            */
   73           org.apache.xmlbeans.samples.validation.todolist.ItemType insertNewItem(int i);
   74           
   75           /**
   76            * Appends and returns a new empty value (as xml) as the last "item" element
   77            */
   78           org.apache.xmlbeans.samples.validation.todolist.ItemType addNewItem();
   79           
   80           /**
   81            * Removes the ith "item" element
   82            */
   83           void removeItem(int i);
   84           
   85           /**
   86            * A factory class with static methods for creating instances
   87            * of this type.
   88            */
   89           
   90           public static final class Factory
   91           {
   92               public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument.Todolist newInstance() {
   93                 return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument.Todolist) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
   94               
   95               public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument.Todolist newInstance(org.apache.xmlbeans.XmlOptions options) {
   96                 return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument.Todolist) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
   97               
   98               private Factory() { } // No instance of this class allowed
   99           }
  100       }
  101       
  102       /**
  103        * A factory class with static methods for creating instances
  104        * of this type.
  105        */
  106       
  107       public static final class Factory
  108       {
  109           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument newInstance() {
  110             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
  111           
  112           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument newInstance(org.apache.xmlbeans.XmlOptions options) {
  113             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
  114           
  115           /** @param xmlAsString the string value to parse */
  116           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
  117             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
  118           
  119           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
  120             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
  121           
  122           /** @param file the file from which to load an xml document */
  123           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  124             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
  125           
  126           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  127             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
  128           
  129           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  130             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
  131           
  132           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  133             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
  134           
  135           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  136             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
  137           
  138           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  139             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
  140           
  141           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  142             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
  143           
  144           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
  145             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
  146           
  147           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
  148             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
  149           
  150           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
  151             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
  152           
  153           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
  154             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
  155           
  156           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
  157             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
  158           
  159           /** @deprecated {@link XMLInputStream} */
  160           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
  161             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
  162           
  163           /** @deprecated {@link XMLInputStream} */
  164           public static org.apache.xmlbeans.samples.validation.todolist.TodolistDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
  165             return (org.apache.xmlbeans.samples.validation.todolist.TodolistDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
  166           
  167           /** @deprecated {@link XMLInputStream} */
  168           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 {
  169             return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
  170           
  171           /** @deprecated {@link XMLInputStream} */
  172           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 {
  173             return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
  174           
  175           private Factory() { } // No instance of this class allowed
  176       }
  177   }

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