Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.samples » any » impl » [javadoc | source]

    1   /*
    2    * An XML document type.
    3    * Localname: root
    4    * Namespace: http://xmlbeans.apache.org/samples/any
    5    * Java type: org.apache.xmlbeans.samples.any.RootDocument
    6    *
    7    * Automatically generated - do not modify.
    8    */
    9   package org.apache.xmlbeans.samples.any.impl;
   10   /**
   11    * A document containing one root(@http://xmlbeans.apache.org/samples/any) element.
   12    *
   13    * This is a complex type.
   14    */
   15   public class RootDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.xmlbeans.samples.any.RootDocument
   16   {
   17       
   18       public RootDocumentImpl(org.apache.xmlbeans.SchemaType sType)
   19       {
   20           super(sType);
   21       }
   22       
   23       private static final javax.xml.namespace.QName ROOT$0 = 
   24           new javax.xml.namespace.QName("http://xmlbeans.apache.org/samples/any", "root");
   25       
   26       
   27       /**
   28        * Gets the "root" element
   29        */
   30       public org.apache.xmlbeans.samples.any.RootDocument.Root getRoot()
   31       {
   32           synchronized (monitor())
   33           {
   34               check_orphaned();
   35               org.apache.xmlbeans.samples.any.RootDocument.Root target = null;
   36               target = (org.apache.xmlbeans.samples.any.RootDocument.Root)get_store().find_element_user(ROOT$0, 0);
   37               if (target == null)
   38               {
   39                   return null;
   40               }
   41               return target;
   42           }
   43       }
   44       
   45       /**
   46        * Sets the "root" element
   47        */
   48       public void setRoot(org.apache.xmlbeans.samples.any.RootDocument.Root root)
   49       {
   50           synchronized (monitor())
   51           {
   52               check_orphaned();
   53               org.apache.xmlbeans.samples.any.RootDocument.Root target = null;
   54               target = (org.apache.xmlbeans.samples.any.RootDocument.Root)get_store().find_element_user(ROOT$0, 0);
   55               if (target == null)
   56               {
   57                   target = (org.apache.xmlbeans.samples.any.RootDocument.Root)get_store().add_element_user(ROOT$0);
   58               }
   59               target.set(root);
   60           }
   61       }
   62       
   63       /**
   64        * Appends and returns a new empty "root" element
   65        */
   66       public org.apache.xmlbeans.samples.any.RootDocument.Root addNewRoot()
   67       {
   68           synchronized (monitor())
   69           {
   70               check_orphaned();
   71               org.apache.xmlbeans.samples.any.RootDocument.Root target = null;
   72               target = (org.apache.xmlbeans.samples.any.RootDocument.Root)get_store().add_element_user(ROOT$0);
   73               return target;
   74           }
   75       }
   76       /**
   77        * An XML root(@http://xmlbeans.apache.org/samples/any).
   78        *
   79        * This is a complex type.
   80        */
   81       public static class RootImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.xmlbeans.samples.any.RootDocument.Root
   82       {
   83           
   84           public RootImpl(org.apache.xmlbeans.SchemaType sType)
   85           {
   86               super(sType);
   87           }
   88           
   89           private static final javax.xml.namespace.QName STRINGELEMENT$0 = 
   90               new javax.xml.namespace.QName("http://xmlbeans.apache.org/samples/any", "stringelement");
   91           private static final javax.xml.namespace.QName ARRAYOFANY$2 = 
   92               new javax.xml.namespace.QName("http://xmlbeans.apache.org/samples/any", "arrayofany");
   93           
   94           
   95           /**
   96            * Gets the "stringelement" element
   97            */
   98           public java.lang.String getStringelement()
   99           {
  100               synchronized (monitor())
  101               {
  102                   check_orphaned();
  103                   org.apache.xmlbeans.SimpleValue target = null;
  104                   target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STRINGELEMENT$0, 0);
  105                   if (target == null)
  106                   {
  107                       return null;
  108                   }
  109                   return target.getStringValue();
  110               }
  111           }
  112           
  113           /**
  114            * Gets (as xml) the "stringelement" element
  115            */
  116           public org.apache.xmlbeans.XmlString xgetStringelement()
  117           {
  118               synchronized (monitor())
  119               {
  120                   check_orphaned();
  121                   org.apache.xmlbeans.XmlString target = null;
  122                   target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(STRINGELEMENT$0, 0);
  123                   return target;
  124               }
  125           }
  126           
  127           /**
  128            * Sets the "stringelement" element
  129            */
  130           public void setStringelement(java.lang.String stringelement)
  131           {
  132               synchronized (monitor())
  133               {
  134                   check_orphaned();
  135                   org.apache.xmlbeans.SimpleValue target = null;
  136                   target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STRINGELEMENT$0, 0);
  137                   if (target == null)
  138                   {
  139                       target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STRINGELEMENT$0);
  140                   }
  141                   target.setStringValue(stringelement);
  142               }
  143           }
  144           
  145           /**
  146            * Sets (as xml) the "stringelement" element
  147            */
  148           public void xsetStringelement(org.apache.xmlbeans.XmlString stringelement)
  149           {
  150               synchronized (monitor())
  151               {
  152                   check_orphaned();
  153                   org.apache.xmlbeans.XmlString target = null;
  154                   target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(STRINGELEMENT$0, 0);
  155                   if (target == null)
  156                   {
  157                       target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(STRINGELEMENT$0);
  158                   }
  159                   target.set(stringelement);
  160               }
  161           }
  162           
  163           /**
  164            * Gets the "arrayofany" element
  165            */
  166           public org.apache.xmlbeans.samples.any.RootDocument.Root.Arrayofany getArrayofany()
  167           {
  168               synchronized (monitor())
  169               {
  170                   check_orphaned();
  171                   org.apache.xmlbeans.samples.any.RootDocument.Root.Arrayofany target = null;
  172                   target = (org.apache.xmlbeans.samples.any.RootDocument.Root.Arrayofany)get_store().find_element_user(ARRAYOFANY$2, 0);
  173                   if (target == null)
  174                   {
  175                       return null;
  176                   }
  177                   return target;
  178               }
  179           }
  180           
  181           /**
  182            * Sets the "arrayofany" element
  183            */
  184           public void setArrayofany(org.apache.xmlbeans.samples.any.RootDocument.Root.Arrayofany arrayofany)
  185           {
  186               synchronized (monitor())
  187               {
  188                   check_orphaned();
  189                   org.apache.xmlbeans.samples.any.RootDocument.Root.Arrayofany target = null;
  190                   target = (org.apache.xmlbeans.samples.any.RootDocument.Root.Arrayofany)get_store().find_element_user(ARRAYOFANY$2, 0);
  191                   if (target == null)
  192                   {
  193                       target = (org.apache.xmlbeans.samples.any.RootDocument.Root.Arrayofany)get_store().add_element_user(ARRAYOFANY$2);
  194                   }
  195                   target.set(arrayofany);
  196               }
  197           }
  198           
  199           /**
  200            * Appends and returns a new empty "arrayofany" element
  201            */
  202           public org.apache.xmlbeans.samples.any.RootDocument.Root.Arrayofany addNewArrayofany()
  203           {
  204               synchronized (monitor())
  205               {
  206                   check_orphaned();
  207                   org.apache.xmlbeans.samples.any.RootDocument.Root.Arrayofany target = null;
  208                   target = (org.apache.xmlbeans.samples.any.RootDocument.Root.Arrayofany)get_store().add_element_user(ARRAYOFANY$2);
  209                   return target;
  210               }
  211           }
  212           /**
  213            * An XML arrayofany(@http://xmlbeans.apache.org/samples/any).
  214            *
  215            * This is a complex type.
  216            */
  217           public static class ArrayofanyImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.xmlbeans.samples.any.RootDocument.Root.Arrayofany
  218           {
  219               
  220               public ArrayofanyImpl(org.apache.xmlbeans.SchemaType sType)
  221               {
  222                   super(sType);
  223               }
  224               
  225               
  226           }
  227       }
  228   }

Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.samples » any » impl » [javadoc | source]