View Javadoc

1   /*
2    * An XML document type.
3    * Localname: BaseFault
4    * Namespace: http://docs.oasis-open.org/wsrf/bf-2
5    * Java type: org.oasisOpen.docs.wsrf.bf2.BaseFaultDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package org.oasisOpen.docs.wsrf.bf2.impl;
10  /**
11   * A document containing one BaseFault(@http://docs.oasis-open.org/wsrf/bf-2) element.
12   *
13   * This is a complex type.
14   */
15  public class BaseFaultDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.oasisOpen.docs.wsrf.bf2.BaseFaultDocument
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public BaseFaultDocumentImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName BASEFAULT$0 = 
25          new javax.xml.namespace.QName("http://docs.oasis-open.org/wsrf/bf-2", "BaseFault");
26      
27      
28      /**
29       * Gets the "BaseFault" element
30       */
31      public org.oasisOpen.docs.wsrf.bf2.BaseFaultType getBaseFault()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              org.oasisOpen.docs.wsrf.bf2.BaseFaultType target = null;
37              target = (org.oasisOpen.docs.wsrf.bf2.BaseFaultType)get_store().find_element_user(BASEFAULT$0, 0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return target;
43          }
44      }
45      
46      /**
47       * Sets the "BaseFault" element
48       */
49      public void setBaseFault(org.oasisOpen.docs.wsrf.bf2.BaseFaultType baseFault)
50      {
51          synchronized (monitor())
52          {
53              check_orphaned();
54              org.oasisOpen.docs.wsrf.bf2.BaseFaultType target = null;
55              target = (org.oasisOpen.docs.wsrf.bf2.BaseFaultType)get_store().find_element_user(BASEFAULT$0, 0);
56              if (target == null)
57              {
58                  target = (org.oasisOpen.docs.wsrf.bf2.BaseFaultType)get_store().add_element_user(BASEFAULT$0);
59              }
60              target.set(baseFault);
61          }
62      }
63      
64      /**
65       * Appends and returns a new empty "BaseFault" element
66       */
67      public org.oasisOpen.docs.wsrf.bf2.BaseFaultType addNewBaseFault()
68      {
69          synchronized (monitor())
70          {
71              check_orphaned();
72              org.oasisOpen.docs.wsrf.bf2.BaseFaultType target = null;
73              target = (org.oasisOpen.docs.wsrf.bf2.BaseFaultType)get_store().add_element_user(BASEFAULT$0);
74              return target;
75          }
76      }
77  }