View Javadoc
1   /*
2    * An XML document type.
3    * Localname: FundingInstrument
4    * Namespace: http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0
5    * Java type: gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument
6    *
7    * Automatically generated - do not modify.
8    */
9   package gov.grants.apply.system.grantsFundingSynopsisV20;
10  
11  
12  /**
13   * A document containing one FundingInstrument(@http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0) element.
14   *
15   * This is a complex type.
16   */
17  public interface FundingInstrumentDocument 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(FundingInstrumentDocument.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.sEAFA503253B0B59D5509A37AD48F2343").resolveHandle("fundinginstrument9fb6doctype");
21      
22      /**
23       * Gets the "FundingInstrument" element
24       */
25      gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument.FundingInstrument.Enum getFundingInstrument();
26      
27      /**
28       * Gets (as xml) the "FundingInstrument" element
29       */
30      gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument.FundingInstrument xgetFundingInstrument();
31      
32      /**
33       * Sets the "FundingInstrument" element
34       */
35      void setFundingInstrument(gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument.FundingInstrument.Enum fundingInstrument);
36      
37      /**
38       * Sets (as xml) the "FundingInstrument" element
39       */
40      void xsetFundingInstrument(gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument.FundingInstrument fundingInstrument);
41      
42      /**
43       * An XML FundingInstrument(@http://apply.grants.gov/system/GrantsFundingSynopsis-V2.0).
44       *
45       * This is an atomic type that is a restriction of gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument$FundingInstrument.
46       */
47      public interface FundingInstrument extends org.apache.xmlbeans.XmlString
48      {
49          public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
50              org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(FundingInstrument.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.sEAFA503253B0B59D5509A37AD48F2343").resolveHandle("fundinginstrumenta8c6elemtype");
51          
52          org.apache.xmlbeans.StringEnumAbstractBase enumValue();
53          void set(org.apache.xmlbeans.StringEnumAbstractBase e);
54          
55          static final Enum CA = Enum.forString("CA");
56          static final Enum G = Enum.forString("G");
57          static final Enum PC = Enum.forString("PC");
58          static final Enum O = Enum.forString("O");
59          
60          static final int INT_CA = Enum.INT_CA;
61          static final int INT_G = Enum.INT_G;
62          static final int INT_PC = Enum.INT_PC;
63          static final int INT_O = Enum.INT_O;
64          
65          /**
66           * Enumeration value class for gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument$FundingInstrument.
67           * These enum values can be used as follows:
68           * <pre>
69           * enum.toString(); // returns the string value of the enum
70           * enum.intValue(); // returns an int value, useful for switches
71           * // e.g., case Enum.INT_CA
72           * Enum.forString(s); // returns the enum value for a string
73           * Enum.forInt(i); // returns the enum value for an int
74           * </pre>
75           * Enumeration objects are immutable singleton objects that
76           * can be compared using == object equality. They have no
77           * public constructor. See the constants defined within this
78           * class for all the valid values.
79           */
80          static final class Enum extends org.apache.xmlbeans.StringEnumAbstractBase
81          {
82              /**
83               * Returns the enum value for a string, or null if none.
84               */
85              public static Enum forString(java.lang.String s)
86                  { return (Enum)table.forString(s); }
87              /**
88               * Returns the enum value corresponding to an int, or null if none.
89               */
90              public static Enum forInt(int i)
91                  { return (Enum)table.forInt(i); }
92              
93              private Enum(java.lang.String s, int i)
94                  { super(s, i); }
95              
96              static final int INT_CA = 1;
97              static final int INT_G = 2;
98              static final int INT_PC = 3;
99              static final int INT_O = 4;
100             
101             public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table =
102                 new org.apache.xmlbeans.StringEnumAbstractBase.Table
103             (
104                 new Enum[]
105                 {
106                     new Enum("CA", INT_CA),
107                     new Enum("G", INT_G),
108                     new Enum("PC", INT_PC),
109                     new Enum("O", INT_O),
110                 }
111             );
112             private static final long serialVersionUID = 1L;
113             private java.lang.Object readResolve() { return forInt(intValue()); } 
114         }
115         
116         /**
117          * A factory class with static methods for creating instances
118          * of this type.
119          */
120         
121         public static final class Factory
122         {
123             public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument.FundingInstrument newValue(java.lang.Object obj) {
124               return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument.FundingInstrument) type.newValue( obj ); }
125             
126             public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument.FundingInstrument newInstance() {
127               return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument.FundingInstrument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
128             
129             public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument.FundingInstrument newInstance(org.apache.xmlbeans.XmlOptions options) {
130               return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument.FundingInstrument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
131             
132             private Factory() { } // No instance of this class allowed
133         }
134     }
135     
136     /**
137      * A factory class with static methods for creating instances
138      * of this type.
139      */
140     
141     public static final class Factory
142     {
143         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument newInstance() {
144           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
145         
146         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument newInstance(org.apache.xmlbeans.XmlOptions options) {
147           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
148         
149         /** @param xmlAsString the string value to parse */
150         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
151           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
152         
153         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
154           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
155         
156         /** @param file the file from which to load an xml document */
157         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
158           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
159         
160         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
161           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
162         
163         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
164           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
165         
166         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
167           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
168         
169         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
170           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
171         
172         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
173           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
174         
175         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
176           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
177         
178         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
179           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
180         
181         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
182           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
183         
184         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
185           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
186         
187         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
188           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
189         
190         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
191           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
192         
193         /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
194         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
195           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
196         
197         /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
198         public static gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
199           return (gov.grants.apply.system.grantsFundingSynopsisV20.FundingInstrumentDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
200         
201         /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
202         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 {
203           return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
204         
205         /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
206         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 {
207           return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
208         
209         private Factory() { } // No instance of this class allowed
210     }
211 }