View Javadoc
1   /*
2    * An XML attribute type.
3    * Localname: classificationID
4    * Namespace: http://apply.grants.gov/forms/SF424C-V1.0
5    * Java type: gov.grants.apply.forms.sf424CV10.ClassificationIDAttribute
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.forms.sf424CV10.impl;
10  /**
11   * A document containing one classificationID(@http://apply.grants.gov/forms/SF424C-V1.0) attribute.
12   *
13   * This is a complex type.
14   */
15  public class ClassificationIDAttributeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements gov.grants.apply.forms.sf424CV10.ClassificationIDAttribute
16  {
17      private static final long serialVersionUID = 1L;
18      
19      public ClassificationIDAttributeImpl(org.apache.xmlbeans.SchemaType sType)
20      {
21          super(sType);
22      }
23      
24      private static final javax.xml.namespace.QName CLASSIFICATIONID$0 = 
25          new javax.xml.namespace.QName("http://apply.grants.gov/forms/SF424C-V1.0", "classificationID");
26      
27      
28      /**
29       * Gets the "classificationID" attribute
30       */
31      public gov.grants.apply.forms.sf424CV10.ClassificationIDType.Enum getClassificationID()
32      {
33          synchronized (monitor())
34          {
35              check_orphaned();
36              org.apache.xmlbeans.SimpleValue target = null;
37              target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASSIFICATIONID$0);
38              if (target == null)
39              {
40                  return null;
41              }
42              return (gov.grants.apply.forms.sf424CV10.ClassificationIDType.Enum)target.getEnumValue();
43          }
44      }
45      
46      /**
47       * Gets (as xml) the "classificationID" attribute
48       */
49      public gov.grants.apply.forms.sf424CV10.ClassificationIDType xgetClassificationID()
50      {
51          synchronized (monitor())
52          {
53              check_orphaned();
54              gov.grants.apply.forms.sf424CV10.ClassificationIDType target = null;
55              target = (gov.grants.apply.forms.sf424CV10.ClassificationIDType)get_store().find_attribute_user(CLASSIFICATIONID$0);
56              return target;
57          }
58      }
59      
60      /**
61       * True if has "classificationID" attribute
62       */
63      public boolean isSetClassificationID()
64      {
65          synchronized (monitor())
66          {
67              check_orphaned();
68              return get_store().find_attribute_user(CLASSIFICATIONID$0) != null;
69          }
70      }
71      
72      /**
73       * Sets the "classificationID" attribute
74       */
75      public void setClassificationID(gov.grants.apply.forms.sf424CV10.ClassificationIDType.Enum classificationID)
76      {
77          synchronized (monitor())
78          {
79              check_orphaned();
80              org.apache.xmlbeans.SimpleValue target = null;
81              target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASSIFICATIONID$0);
82              if (target == null)
83              {
84                  target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CLASSIFICATIONID$0);
85              }
86              target.setEnumValue(classificationID);
87          }
88      }
89      
90      /**
91       * Sets (as xml) the "classificationID" attribute
92       */
93      public void xsetClassificationID(gov.grants.apply.forms.sf424CV10.ClassificationIDType classificationID)
94      {
95          synchronized (monitor())
96          {
97              check_orphaned();
98              gov.grants.apply.forms.sf424CV10.ClassificationIDType target = null;
99              target = (gov.grants.apply.forms.sf424CV10.ClassificationIDType)get_store().find_attribute_user(CLASSIFICATIONID$0);
100             if (target == null)
101             {
102                 target = (gov.grants.apply.forms.sf424CV10.ClassificationIDType)get_store().add_attribute_user(CLASSIFICATIONID$0);
103             }
104             target.set(classificationID);
105         }
106     }
107     
108     /**
109      * Unsets the "classificationID" attribute
110      */
111     public void unsetClassificationID()
112     {
113         synchronized (monitor())
114         {
115             check_orphaned();
116             get_store().remove_attribute(CLASSIFICATIONID$0);
117         }
118     }
119 }