001/* 002 * XML Type: defaultable-boolean 003 * Namespace: http://www.springframework.org/schema/beans 004 * Java type: org.springframework.schema.beans.DefaultableBoolean 005 * 006 * Automatically generated - do not modify. 007 */ 008package org.springframework.schema.beans; 009 010 011/** 012 * An XML defaultable-boolean(@http://www.springframework.org/schema/beans). 013 * 014 * This is an atomic type that is a restriction of org.springframework.schema.beans.DefaultableBoolean. 015 */ 016public interface DefaultableBoolean extends org.apache.xmlbeans.XmlNMTOKEN 017{ 018 public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) 019 org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(DefaultableBoolean.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s64573255CCD5DEC1A1EC4BE6858B9539").resolveHandle("defaultableboolean8513type"); 020 021 org.apache.xmlbeans.StringEnumAbstractBase enumValue(); 022 void set(org.apache.xmlbeans.StringEnumAbstractBase e); 023 024 static final Enum DEFAULT = Enum.forString("default"); 025 static final Enum TRUE = Enum.forString("true"); 026 static final Enum FALSE = Enum.forString("false"); 027 028 static final int INT_DEFAULT = Enum.INT_DEFAULT; 029 static final int INT_TRUE = Enum.INT_TRUE; 030 static final int INT_FALSE = Enum.INT_FALSE; 031 032 /** 033 * Enumeration value class for org.springframework.schema.beans.DefaultableBoolean. 034 * These enum values can be used as follows: 035 * <pre> 036 * enum.toString(); // returns the string value of the enum 037 * enum.intValue(); // returns an int value, useful for switches 038 * // e.g., case Enum.INT_DEFAULT 039 * Enum.forString(s); // returns the enum value for a string 040 * Enum.forInt(i); // returns the enum value for an int 041 * </pre> 042 * Enumeration objects are immutable singleton objects that 043 * can be compared using == object equality. They have no 044 * public constructor. See the constants defined within this 045 * class for all the valid values. 046 */ 047 static final class Enum extends org.apache.xmlbeans.StringEnumAbstractBase 048 { 049 /** 050 * Returns the enum value for a string, or null if none. 051 */ 052 public static Enum forString(java.lang.String s) 053 { return (Enum)table.forString(s); } 054 /** 055 * Returns the enum value corresponding to an int, or null if none. 056 */ 057 public static Enum forInt(int i) 058 { return (Enum)table.forInt(i); } 059 060 private Enum(java.lang.String s, int i) 061 { super(s, i); } 062 063 static final int INT_DEFAULT = 1; 064 static final int INT_TRUE = 2; 065 static final int INT_FALSE = 3; 066 067 public static final org.apache.xmlbeans.StringEnumAbstractBase.Table table = 068 new org.apache.xmlbeans.StringEnumAbstractBase.Table 069 ( 070 new Enum[] 071 { 072 new Enum("default", INT_DEFAULT), 073 new Enum("true", INT_TRUE), 074 new Enum("false", INT_FALSE), 075 } 076 ); 077 private static final long serialVersionUID = 1L; 078 private java.lang.Object readResolve() { return forInt(intValue()); } 079 } 080 081 /** 082 * A factory class with static methods for creating instances 083 * of this type. 084 */ 085 086 public static final class Factory 087 { 088 public static org.springframework.schema.beans.DefaultableBoolean newValue(java.lang.Object obj) { 089 return (org.springframework.schema.beans.DefaultableBoolean) type.newValue( obj ); } 090 091 public static org.springframework.schema.beans.DefaultableBoolean newInstance() { 092 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); } 093 094 public static org.springframework.schema.beans.DefaultableBoolean newInstance(org.apache.xmlbeans.XmlOptions options) { 095 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); } 096 097 /** @param xmlAsString the string value to parse */ 098 public static org.springframework.schema.beans.DefaultableBoolean parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException { 099 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); } 100 101 public static org.springframework.schema.beans.DefaultableBoolean parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { 102 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); } 103 104 /** @param file the file from which to load an xml document */ 105 public static org.springframework.schema.beans.DefaultableBoolean parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException { 106 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); } 107 108 public static org.springframework.schema.beans.DefaultableBoolean parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { 109 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); } 110 111 public static org.springframework.schema.beans.DefaultableBoolean parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException { 112 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); } 113 114 public static org.springframework.schema.beans.DefaultableBoolean parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { 115 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); } 116 117 public static org.springframework.schema.beans.DefaultableBoolean parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException { 118 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); } 119 120 public static org.springframework.schema.beans.DefaultableBoolean parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { 121 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); } 122 123 public static org.springframework.schema.beans.DefaultableBoolean parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException { 124 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); } 125 126 public static org.springframework.schema.beans.DefaultableBoolean parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { 127 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); } 128 129 public static org.springframework.schema.beans.DefaultableBoolean parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException { 130 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); } 131 132 public static org.springframework.schema.beans.DefaultableBoolean parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { 133 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); } 134 135 public static org.springframework.schema.beans.DefaultableBoolean parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException { 136 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); } 137 138 public static org.springframework.schema.beans.DefaultableBoolean parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { 139 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); } 140 141 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ 142 public static org.springframework.schema.beans.DefaultableBoolean parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { 143 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); } 144 145 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ 146 public static org.springframework.schema.beans.DefaultableBoolean parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { 147 return (org.springframework.schema.beans.DefaultableBoolean) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); } 148 149 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ 150 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 { 151 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); } 152 153 /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ 154 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 { 155 return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); } 156 157 private Factory() { } // No instance of this class allowed 158 } 159}