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