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

    1   /*
    2    * XML Type:  addressType
    3    * Namespace: http://xmlbeans.apache.org/samples/xquery/employees
    4    * Java type: org.apache.xmlbeans.samples.xquery.employees.AddressType
    5    *
    6    * Automatically generated - do not modify.
    7    */
    8   package org.apache.xmlbeans.samples.xquery.employees.impl;
    9   /**
   10    * An XML addressType(@http://xmlbeans.apache.org/samples/xquery/employees).
   11    *
   12    * This is a complex type.
   13    */
   14   public class AddressTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.apache.xmlbeans.samples.xquery.employees.AddressType
   15   {
   16       
   17       public AddressTypeImpl(org.apache.xmlbeans.SchemaType sType)
   18       {
   19           super(sType);
   20       }
   21       
   22       private static final javax.xml.namespace.QName STREET$0 = 
   23           new javax.xml.namespace.QName("http://xmlbeans.apache.org/samples/xquery/employees", "street");
   24       private static final javax.xml.namespace.QName CITY$2 = 
   25           new javax.xml.namespace.QName("http://xmlbeans.apache.org/samples/xquery/employees", "city");
   26       private static final javax.xml.namespace.QName STATE$4 = 
   27           new javax.xml.namespace.QName("http://xmlbeans.apache.org/samples/xquery/employees", "state");
   28       private static final javax.xml.namespace.QName ZIP$6 = 
   29           new javax.xml.namespace.QName("http://xmlbeans.apache.org/samples/xquery/employees", "zip");
   30       private static final javax.xml.namespace.QName LOCATION$8 = 
   31           new javax.xml.namespace.QName("", "location");
   32       
   33       
   34       /**
   35        * Gets the "street" element
   36        */
   37       public java.lang.String getStreet()
   38       {
   39           synchronized (monitor())
   40           {
   41               check_orphaned();
   42               org.apache.xmlbeans.SimpleValue target = null;
   43               target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STREET$0, 0);
   44               if (target == null)
   45               {
   46                   return null;
   47               }
   48               return target.getStringValue();
   49           }
   50       }
   51       
   52       /**
   53        * Gets (as xml) the "street" element
   54        */
   55       public org.apache.xmlbeans.XmlString xgetStreet()
   56       {
   57           synchronized (monitor())
   58           {
   59               check_orphaned();
   60               org.apache.xmlbeans.XmlString target = null;
   61               target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(STREET$0, 0);
   62               return target;
   63           }
   64       }
   65       
   66       /**
   67        * Sets the "street" element
   68        */
   69       public void setStreet(java.lang.String street)
   70       {
   71           synchronized (monitor())
   72           {
   73               check_orphaned();
   74               org.apache.xmlbeans.SimpleValue target = null;
   75               target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STREET$0, 0);
   76               if (target == null)
   77               {
   78                   target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STREET$0);
   79               }
   80               target.setStringValue(street);
   81           }
   82       }
   83       
   84       /**
   85        * Sets (as xml) the "street" element
   86        */
   87       public void xsetStreet(org.apache.xmlbeans.XmlString street)
   88       {
   89           synchronized (monitor())
   90           {
   91               check_orphaned();
   92               org.apache.xmlbeans.XmlString target = null;
   93               target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(STREET$0, 0);
   94               if (target == null)
   95               {
   96                   target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(STREET$0);
   97               }
   98               target.set(street);
   99           }
  100       }
  101       
  102       /**
  103        * Gets the "city" element
  104        */
  105       public java.lang.String getCity()
  106       {
  107           synchronized (monitor())
  108           {
  109               check_orphaned();
  110               org.apache.xmlbeans.SimpleValue target = null;
  111               target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CITY$2, 0);
  112               if (target == null)
  113               {
  114                   return null;
  115               }
  116               return target.getStringValue();
  117           }
  118       }
  119       
  120       /**
  121        * Gets (as xml) the "city" element
  122        */
  123       public org.apache.xmlbeans.XmlNCName xgetCity()
  124       {
  125           synchronized (monitor())
  126           {
  127               check_orphaned();
  128               org.apache.xmlbeans.XmlNCName target = null;
  129               target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(CITY$2, 0);
  130               return target;
  131           }
  132       }
  133       
  134       /**
  135        * Sets the "city" element
  136        */
  137       public void setCity(java.lang.String city)
  138       {
  139           synchronized (monitor())
  140           {
  141               check_orphaned();
  142               org.apache.xmlbeans.SimpleValue target = null;
  143               target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CITY$2, 0);
  144               if (target == null)
  145               {
  146                   target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CITY$2);
  147               }
  148               target.setStringValue(city);
  149           }
  150       }
  151       
  152       /**
  153        * Sets (as xml) the "city" element
  154        */
  155       public void xsetCity(org.apache.xmlbeans.XmlNCName city)
  156       {
  157           synchronized (monitor())
  158           {
  159               check_orphaned();
  160               org.apache.xmlbeans.XmlNCName target = null;
  161               target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(CITY$2, 0);
  162               if (target == null)
  163               {
  164                   target = (org.apache.xmlbeans.XmlNCName)get_store().add_element_user(CITY$2);
  165               }
  166               target.set(city);
  167           }
  168       }
  169       
  170       /**
  171        * Gets the "state" element
  172        */
  173       public java.lang.String getState()
  174       {
  175           synchronized (monitor())
  176           {
  177               check_orphaned();
  178               org.apache.xmlbeans.SimpleValue target = null;
  179               target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATE$4, 0);
  180               if (target == null)
  181               {
  182                   return null;
  183               }
  184               return target.getStringValue();
  185           }
  186       }
  187       
  188       /**
  189        * Gets (as xml) the "state" element
  190        */
  191       public org.apache.xmlbeans.XmlNCName xgetState()
  192       {
  193           synchronized (monitor())
  194           {
  195               check_orphaned();
  196               org.apache.xmlbeans.XmlNCName target = null;
  197               target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(STATE$4, 0);
  198               return target;
  199           }
  200       }
  201       
  202       /**
  203        * Sets the "state" element
  204        */
  205       public void setState(java.lang.String state)
  206       {
  207           synchronized (monitor())
  208           {
  209               check_orphaned();
  210               org.apache.xmlbeans.SimpleValue target = null;
  211               target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATE$4, 0);
  212               if (target == null)
  213               {
  214                   target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATE$4);
  215               }
  216               target.setStringValue(state);
  217           }
  218       }
  219       
  220       /**
  221        * Sets (as xml) the "state" element
  222        */
  223       public void xsetState(org.apache.xmlbeans.XmlNCName state)
  224       {
  225           synchronized (monitor())
  226           {
  227               check_orphaned();
  228               org.apache.xmlbeans.XmlNCName target = null;
  229               target = (org.apache.xmlbeans.XmlNCName)get_store().find_element_user(STATE$4, 0);
  230               if (target == null)
  231               {
  232                   target = (org.apache.xmlbeans.XmlNCName)get_store().add_element_user(STATE$4);
  233               }
  234               target.set(state);
  235           }
  236       }
  237       
  238       /**
  239        * Gets the "zip" element
  240        */
  241       public java.math.BigInteger getZip()
  242       {
  243           synchronized (monitor())
  244           {
  245               check_orphaned();
  246               org.apache.xmlbeans.SimpleValue target = null;
  247               target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ZIP$6, 0);
  248               if (target == null)
  249               {
  250                   return null;
  251               }
  252               return target.getBigIntegerValue();
  253           }
  254       }
  255       
  256       /**
  257        * Gets (as xml) the "zip" element
  258        */
  259       public org.apache.xmlbeans.XmlInteger xgetZip()
  260       {
  261           synchronized (monitor())
  262           {
  263               check_orphaned();
  264               org.apache.xmlbeans.XmlInteger target = null;
  265               target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(ZIP$6, 0);
  266               return target;
  267           }
  268       }
  269       
  270       /**
  271        * Sets the "zip" element
  272        */
  273       public void setZip(java.math.BigInteger zip)
  274       {
  275           synchronized (monitor())
  276           {
  277               check_orphaned();
  278               org.apache.xmlbeans.SimpleValue target = null;
  279               target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ZIP$6, 0);
  280               if (target == null)
  281               {
  282                   target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ZIP$6);
  283               }
  284               target.setBigIntegerValue(zip);
  285           }
  286       }
  287       
  288       /**
  289        * Sets (as xml) the "zip" element
  290        */
  291       public void xsetZip(org.apache.xmlbeans.XmlInteger zip)
  292       {
  293           synchronized (monitor())
  294           {
  295               check_orphaned();
  296               org.apache.xmlbeans.XmlInteger target = null;
  297               target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(ZIP$6, 0);
  298               if (target == null)
  299               {
  300                   target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(ZIP$6);
  301               }
  302               target.set(zip);
  303           }
  304       }
  305       
  306       /**
  307        * Gets the "location" attribute
  308        */
  309       public java.lang.String getLocation()
  310       {
  311           synchronized (monitor())
  312           {
  313               check_orphaned();
  314               org.apache.xmlbeans.SimpleValue target = null;
  315               target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCATION$8);
  316               if (target == null)
  317               {
  318                   return null;
  319               }
  320               return target.getStringValue();
  321           }
  322       }
  323       
  324       /**
  325        * Gets (as xml) the "location" attribute
  326        */
  327       public org.apache.xmlbeans.XmlNCName xgetLocation()
  328       {
  329           synchronized (monitor())
  330           {
  331               check_orphaned();
  332               org.apache.xmlbeans.XmlNCName target = null;
  333               target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(LOCATION$8);
  334               return target;
  335           }
  336       }
  337       
  338       /**
  339        * Sets the "location" attribute
  340        */
  341       public void setLocation(java.lang.String location)
  342       {
  343           synchronized (monitor())
  344           {
  345               check_orphaned();
  346               org.apache.xmlbeans.SimpleValue target = null;
  347               target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCATION$8);
  348               if (target == null)
  349               {
  350                   target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LOCATION$8);
  351               }
  352               target.setStringValue(location);
  353           }
  354       }
  355       
  356       /**
  357        * Sets (as xml) the "location" attribute
  358        */
  359       public void xsetLocation(org.apache.xmlbeans.XmlNCName location)
  360       {
  361           synchronized (monitor())
  362           {
  363               check_orphaned();
  364               org.apache.xmlbeans.XmlNCName target = null;
  365               target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(LOCATION$8);
  366               if (target == null)
  367               {
  368                   target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(LOCATION$8);
  369               }
  370               target.set(location);
  371           }
  372       }
  373   }

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