View Javadoc
1   /*
2    * An XML document type.
3    * Localname: Token
4    * Namespace: http://apply.grants.gov/system/GrantsCommonElements-V1.0
5    * Java type: gov.grants.apply.system.grantsCommonElementsV10.TokenDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.system.grantsCommonElementsV10;
10  
11  
12  /**
13   * A document containing one Token(@http://apply.grants.gov/system/GrantsCommonElements-V1.0) element.
14   *
15   * This is a complex type.
16   */
17  public interface TokenDocument extends org.apache.xmlbeans.XmlObject
18  {
19      public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
20          org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(TokenDocument.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.sEAFA503253B0B59D5509A37AD48F2343").resolveHandle("token7737doctype");
21      
22      /**
23       * Gets the "Token" element
24       */
25      gov.grants.apply.system.grantsCommonElementsV10.TokenDocument.Token getToken();
26      
27      /**
28       * Sets the "Token" element
29       */
30      void setToken(gov.grants.apply.system.grantsCommonElementsV10.TokenDocument.Token token);
31      
32      /**
33       * Appends and returns a new empty "Token" element
34       */
35      gov.grants.apply.system.grantsCommonElementsV10.TokenDocument.Token addNewToken();
36      
37      /**
38       * An XML Token(@http://apply.grants.gov/system/GrantsCommonElements-V1.0).
39       *
40       * This is a complex type.
41       */
42      public interface Token extends org.apache.xmlbeans.XmlObject
43      {
44          public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
45              org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Token.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.sEAFA503253B0B59D5509A37AD48F2343").resolveHandle("tokenc792elemtype");
46          
47          /**
48           * Gets the "UserID" element
49           */
50          java.lang.String getUserID();
51          
52          /**
53           * Gets (as xml) the "UserID" element
54           */
55          gov.grants.apply.system.grantsCommonTypesV10.UserIDType xgetUserID();
56          
57          /**
58           * Sets the "UserID" element
59           */
60          void setUserID(java.lang.String userID);
61          
62          /**
63           * Sets (as xml) the "UserID" element
64           */
65          void xsetUserID(gov.grants.apply.system.grantsCommonTypesV10.UserIDType userID);
66          
67          /**
68           * Gets the "TokenId" element
69           */
70          java.lang.String getTokenId();
71          
72          /**
73           * Gets (as xml) the "TokenId" element
74           */
75          gov.grants.apply.system.grantsCommonTypesV10.TokenIdType xgetTokenId();
76          
77          /**
78           * True if has "TokenId" element
79           */
80          boolean isSetTokenId();
81          
82          /**
83           * Sets the "TokenId" element
84           */
85          void setTokenId(java.lang.String tokenId);
86          
87          /**
88           * Sets (as xml) the "TokenId" element
89           */
90          void xsetTokenId(gov.grants.apply.system.grantsCommonTypesV10.TokenIdType tokenId);
91          
92          /**
93           * Unsets the "TokenId" element
94           */
95          void unsetTokenId();
96          
97          /**
98           * Gets the "DUNS" element
99           */
100         java.lang.String getDUNS();
101         
102         /**
103          * Gets (as xml) the "DUNS" element
104          */
105         gov.grants.apply.system.grantsCommonTypesV10.DUNSType xgetDUNS();
106         
107         /**
108          * True if has "DUNS" element
109          */
110         boolean isSetDUNS();
111         
112         /**
113          * Sets the "DUNS" element
114          */
115         void setDUNS(java.lang.String duns);
116         
117         /**
118          * Sets (as xml) the "DUNS" element
119          */
120         void xsetDUNS(gov.grants.apply.system.grantsCommonTypesV10.DUNSType duns);
121         
122         /**
123          * Unsets the "DUNS" element
124          */
125         void unsetDUNS();
126         
127         /**
128          * Gets the "FullName" element
129          */
130         java.lang.String getFullName();
131         
132         /**
133          * Gets (as xml) the "FullName" element
134          */
135         gov.grants.apply.system.grantsCommonTypesV10.FullNameType xgetFullName();
136         
137         /**
138          * True if has "FullName" element
139          */
140         boolean isSetFullName();
141         
142         /**
143          * Sets the "FullName" element
144          */
145         void setFullName(java.lang.String fullName);
146         
147         /**
148          * Sets (as xml) the "FullName" element
149          */
150         void xsetFullName(gov.grants.apply.system.grantsCommonTypesV10.FullNameType fullName);
151         
152         /**
153          * Unsets the "FullName" element
154          */
155         void unsetFullName();
156         
157         /**
158          * Gets the "AORStatus" element
159          */
160         gov.grants.apply.system.grantsCommonTypesV10.AORStatusType.Enum getAORStatus();
161         
162         /**
163          * Gets (as xml) the "AORStatus" element
164          */
165         gov.grants.apply.system.grantsCommonTypesV10.AORStatusType xgetAORStatus();
166         
167         /**
168          * Sets the "AORStatus" element
169          */
170         void setAORStatus(gov.grants.apply.system.grantsCommonTypesV10.AORStatusType.Enum aorStatus);
171         
172         /**
173          * Sets (as xml) the "AORStatus" element
174          */
175         void xsetAORStatus(gov.grants.apply.system.grantsCommonTypesV10.AORStatusType aorStatus);
176         
177         /**
178          * Gets the "TokenExpiration" element
179          */
180         java.util.Calendar getTokenExpiration();
181         
182         /**
183          * Gets (as xml) the "TokenExpiration" element
184          */
185         org.apache.xmlbeans.XmlDateTime xgetTokenExpiration();
186         
187         /**
188          * True if has "TokenExpiration" element
189          */
190         boolean isSetTokenExpiration();
191         
192         /**
193          * Sets the "TokenExpiration" element
194          */
195         void setTokenExpiration(java.util.Calendar tokenExpiration);
196         
197         /**
198          * Sets (as xml) the "TokenExpiration" element
199          */
200         void xsetTokenExpiration(org.apache.xmlbeans.XmlDateTime tokenExpiration);
201         
202         /**
203          * Unsets the "TokenExpiration" element
204          */
205         void unsetTokenExpiration();
206         
207         /**
208          * A factory class with static methods for creating instances
209          * of this type.
210          */
211         
212         public static final class Factory
213         {
214             public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument.Token newInstance() {
215               return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument.Token) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
216             
217             public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument.Token newInstance(org.apache.xmlbeans.XmlOptions options) {
218               return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument.Token) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
219             
220             private Factory() { } // No instance of this class allowed
221         }
222     }
223     
224     /**
225      * A factory class with static methods for creating instances
226      * of this type.
227      */
228     
229     public static final class Factory
230     {
231         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument newInstance() {
232           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
233         
234         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument newInstance(org.apache.xmlbeans.XmlOptions options) {
235           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
236         
237         /** @param xmlAsString the string value to parse */
238         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
239           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
240         
241         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
242           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
243         
244         /** @param file the file from which to load an xml document */
245         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
246           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
247         
248         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
249           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
250         
251         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
252           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
253         
254         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
255           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
256         
257         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
258           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
259         
260         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
261           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
262         
263         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
264           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
265         
266         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
267           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
268         
269         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
270           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
271         
272         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
273           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
274         
275         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
276           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
277         
278         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
279           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
280         
281         /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
282         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
283           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
284         
285         /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
286         public static gov.grants.apply.system.grantsCommonElementsV10.TokenDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
287           return (gov.grants.apply.system.grantsCommonElementsV10.TokenDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
288         
289         /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
290         public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
291           return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
292         
293         /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
294         public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
295           return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
296         
297         private Factory() { } // No instance of this class allowed
298     }
299 }