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

    1   /*
    2    * XML Type:  phoneType
    3    * Namespace: http://xmlbeans.apache.org/samples/xquery/employees
    4    * Java type: org.apache.xmlbeans.samples.xquery.employees.PhoneType
    5    *
    6    * Automatically generated - do not modify.
    7    */
    8   package org.apache.xmlbeans.samples.xquery.employees.impl;
    9   /**
   10    * An XML phoneType(@http://xmlbeans.apache.org/samples/xquery/employees).
   11    *
   12    * This is an atomic type that is a restriction of org.apache.xmlbeans.XmlString.
   13    */
   14   public class PhoneTypeImpl extends org.apache.xmlbeans.impl.values.JavaStringHolderEx implements org.apache.xmlbeans.samples.xquery.employees.PhoneType
   15   {
   16       
   17       public PhoneTypeImpl(org.apache.xmlbeans.SchemaType sType)
   18       {
   19           super(sType, true);
   20       }
   21       
   22       protected PhoneTypeImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
   23       {
   24           super(sType, b);
   25       }
   26       
   27       private static final javax.xml.namespace.QName LOCATION$0 = 
   28           new javax.xml.namespace.QName("", "location");
   29       
   30       
   31       /**
   32        * Gets the "location" attribute
   33        */
   34       public java.lang.String getLocation()
   35       {
   36           synchronized (monitor())
   37           {
   38               check_orphaned();
   39               org.apache.xmlbeans.SimpleValue target = null;
   40               target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCATION$0);
   41               if (target == null)
   42               {
   43                   return null;
   44               }
   45               return target.getStringValue();
   46           }
   47       }
   48       
   49       /**
   50        * Gets (as xml) the "location" attribute
   51        */
   52       public org.apache.xmlbeans.XmlNCName xgetLocation()
   53       {
   54           synchronized (monitor())
   55           {
   56               check_orphaned();
   57               org.apache.xmlbeans.XmlNCName target = null;
   58               target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(LOCATION$0);
   59               return target;
   60           }
   61       }
   62       
   63       /**
   64        * Sets the "location" attribute
   65        */
   66       public void setLocation(java.lang.String location)
   67       {
   68           synchronized (monitor())
   69           {
   70               check_orphaned();
   71               org.apache.xmlbeans.SimpleValue target = null;
   72               target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LOCATION$0);
   73               if (target == null)
   74               {
   75                   target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(LOCATION$0);
   76               }
   77               target.setStringValue(location);
   78           }
   79       }
   80       
   81       /**
   82        * Sets (as xml) the "location" attribute
   83        */
   84       public void xsetLocation(org.apache.xmlbeans.XmlNCName location)
   85       {
   86           synchronized (monitor())
   87           {
   88               check_orphaned();
   89               org.apache.xmlbeans.XmlNCName target = null;
   90               target = (org.apache.xmlbeans.XmlNCName)get_store().find_attribute_user(LOCATION$0);
   91               if (target == null)
   92               {
   93                   target = (org.apache.xmlbeans.XmlNCName)get_store().add_attribute_user(LOCATION$0);
   94               }
   95               target.set(location);
   96           }
   97       }
   98   }

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