Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDuration.java URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDuration.java?rev=1881778&r1=1881777&r2=1881778&view=diff ============================================================================== --- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDuration.java (original) +++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDuration.java Thu Sep 17 00:04:39 2020 @@ -15,34 +15,40 @@ package org.apache.xmlbeans; -import javax.xml.stream.XMLStreamReader; - - /** * Corresponds to the XML Schema * <a target="_blank" href="http://www.w3.org/TR/xmlschema-2/#duration">xs:duration</a> type. * <p> * Convertible to a {@link GDuration}. - * + * * @see GDuration - */ -public interface XmlDuration extends XmlAnySimpleType -{ - /** The constant {@link SchemaType} object representing this schema type. */ - public static final SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_duration"); - - /** Returns this value as a {@link GDuration} */ + */ +public interface XmlDuration extends XmlAnySimpleType { + /** + * The constant {@link SchemaType} object representing this schema type. + */ + SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_duration"); + + /** + * Returns this value as a {@link GDuration} + */ GDuration getGDurationValue(); - /** Sets this value as a {@link GDuration} */ + + /** + * Sets this value as a {@link GDuration} + */ void setGDurationValue(GDuration gd); /** * Returns this value as a {@link GDuration} + * * @deprecated replaced with {@link #getGDurationValue} **/ GDuration gDurationValue(); + /** * Sets this value as a {@link GDuration} + * * @deprecated replaced with {@link #setGDurationValue} **/ void set(GDurationSpecification gd); @@ -51,101 +57,129 @@ public interface XmlDuration extends Xml * A class with methods for creating instances * of {@link XmlDuration}. */ - public static final class Factory - { - /** Creates an empty instance of {@link XmlDuration} */ + final class Factory { + /** + * Creates an empty instance of {@link XmlDuration} + */ public static XmlDuration newInstance() { - return (XmlDuration) XmlBeans.getContextTypeLoader().newInstance( type, null ); } - - /** Creates an empty instance of {@link XmlDuration} */ + return (XmlDuration) XmlBeans.getContextTypeLoader().newInstance(type, null); + } + + /** + * Creates an empty instance of {@link XmlDuration} + */ public static XmlDuration newInstance(org.apache.xmlbeans.XmlOptions options) { - return (XmlDuration) XmlBeans.getContextTypeLoader().newInstance( type, options ); } - - /** Creates an immutable {@link XmlDuration} value */ + return (XmlDuration) XmlBeans.getContextTypeLoader().newInstance(type, options); + } + + /** + * Creates an immutable {@link XmlDuration} value + */ public static XmlDuration newValue(Object obj) { - return (XmlDuration) type.newValue( obj ); } - - /** Parses a {@link XmlDuration} fragment from a String. For example: "<code><xml-fragment>P1Y2MT2H</xml-fragment></code>". */ + return (XmlDuration) type.newValue(obj); + } + + /** + * Parses a {@link XmlDuration} fragment from a String. For example: "<code><xml-fragment>P1Y2MT2H</xml-fragment></code>". + */ public static XmlDuration parse(java.lang.String s) throws org.apache.xmlbeans.XmlException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( s, type, null ); } - - /** Parses a {@link XmlDuration} fragment from a String. For example: "<code><xml-fragment>P1Y2MT2H</xml-fragment></code>". */ + return (XmlDuration) XmlBeans.getContextTypeLoader().parse(s, type, null); + } + + /** + * Parses a {@link XmlDuration} fragment from a String. For example: "<code><xml-fragment>P1Y2MT2H</xml-fragment></code>". + */ public static XmlDuration parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( s, type, options ); } - - /** Parses a {@link XmlDuration} fragment from a File. */ + return (XmlDuration) XmlBeans.getContextTypeLoader().parse(s, type, options); + } + + /** + * Parses a {@link XmlDuration} fragment from a File. + */ public static XmlDuration parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( f, type, null ); } - - /** Parses a {@link XmlDuration} fragment from a File. */ + return (XmlDuration) XmlBeans.getContextTypeLoader().parse(f, type, null); + } + + /** + * Parses a {@link XmlDuration} fragment from a File. + */ public static XmlDuration parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( f, type, options ); } - - /** Parses a {@link XmlDuration} fragment from a URL. */ + return (XmlDuration) XmlBeans.getContextTypeLoader().parse(f, type, options); + } + + /** + * Parses a {@link XmlDuration} fragment from a URL. + */ public static XmlDuration parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( u, type, null ); } + return (XmlDuration) XmlBeans.getContextTypeLoader().parse(u, type, null); + } - /** Parses a {@link XmlDuration} fragment from a URL. */ + /** + * Parses a {@link XmlDuration} fragment from a URL. + */ public static XmlDuration parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( u, type, options ); } + return (XmlDuration) XmlBeans.getContextTypeLoader().parse(u, type, options); + } - /** Parses a {@link XmlDuration} fragment from an InputStream. */ + /** + * Parses a {@link XmlDuration} fragment from an InputStream. + */ public static XmlDuration parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( is, type, null ); } - - /** Parses a {@link XmlDuration} fragment from an InputStream. */ + return (XmlDuration) XmlBeans.getContextTypeLoader().parse(is, type, null); + } + + /** + * Parses a {@link XmlDuration} fragment from an InputStream. + */ public static XmlDuration parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( is, type, options ); } - - /** Parses a {@link XmlDuration} fragment from a Reader. */ + return (XmlDuration) XmlBeans.getContextTypeLoader().parse(is, type, options); + } + + /** + * Parses a {@link XmlDuration} fragment from a Reader. + */ public static XmlDuration parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( r, type, null ); } - - /** Parses a {@link XmlDuration} fragment from a Reader. */ + return (XmlDuration) XmlBeans.getContextTypeLoader().parse(r, type, null); + } + + /** + * Parses a {@link XmlDuration} fragment from a Reader. + */ public static XmlDuration parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( r, type, options ); } - - /** Parses a {@link XmlDuration} fragment from a DOM Node. */ + return (XmlDuration) XmlBeans.getContextTypeLoader().parse(r, type, options); + } + + /** + * Parses a {@link XmlDuration} fragment from a DOM Node. + */ public static XmlDuration parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( node, type, null ); } - - /** Parses a {@link XmlDuration} fragment from a DOM Node. */ + return (XmlDuration) XmlBeans.getContextTypeLoader().parse(node, type, null); + } + + /** + * Parses a {@link XmlDuration} fragment from a DOM Node. + */ public static XmlDuration parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( node, type, options ); } - - /** Parses a {@link XmlDuration} fragment from an XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - public static XmlDuration parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( xis, type, null ); } - - /** Parses a {@link XmlDuration} fragment from an XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - public static XmlDuration parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( xis, type, options ); } - - /** Parses a {@link XmlDuration} fragment from an XMLStreamReader. */ + return (XmlDuration) XmlBeans.getContextTypeLoader().parse(node, type, options); + } + + /** + * Parses a {@link XmlDuration} fragment from an XMLStreamReader. + */ public static XmlDuration parse(javax.xml.stream.XMLStreamReader xsr) throws org.apache.xmlbeans.XmlException { - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( xsr, type, null ); } - - /** Parses a {@link XmlDuration} fragment from an XMLStreamReader. */ - public static XmlDuration parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException{ - return (XmlDuration) XmlBeans.getContextTypeLoader().parse( xsr, type, options ); } - - /** Returns a validating XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - 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 { - return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); } - - /** Returns a validating XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - 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 { - return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); } - - private Factory() { } // No instance of this class allowed + return (XmlDuration) XmlBeans.getContextTypeLoader().parse(xsr, type, null); + } + + /** + * Parses a {@link XmlDuration} fragment from an XMLStreamReader. + */ + public static XmlDuration parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { + return (XmlDuration) XmlBeans.getContextTypeLoader().parse(xsr, type, options); + } + + private Factory() { + // No instance of this class allowed + } } }
Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlENTITIES.java URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlENTITIES.java?rev=1881778&r1=1881777&r2=1881778&view=diff ============================================================================== --- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlENTITIES.java (original) +++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlENTITIES.java Thu Sep 17 00:04:39 2020 @@ -15,9 +15,6 @@ package org.apache.xmlbeans; -import javax.xml.stream.XMLStreamReader; - - import java.util.List; @@ -27,31 +24,45 @@ import java.util.List; * a list type. * <p> * A list type. - */ -public interface XmlENTITIES extends XmlAnySimpleType -{ - /** The constant {@link SchemaType} object representing this schema type. */ - public static final SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_ENTITIES"); - - /** Returns the value as a {@link List} of {@link String} values */ + */ +public interface XmlENTITIES extends XmlAnySimpleType { + /** + * The constant {@link SchemaType} object representing this schema type. + */ + SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_ENTITIES"); + + /** + * Returns the value as a {@link List} of {@link String} values + */ List getListValue(); - /** Returns the value as a {@link List} of {@link XmlENTITY} values **/ + + /** + * Returns the value as a {@link List} of {@link XmlENTITY} values + **/ List xgetListValue(); - /** Sets the value as a {@link List} */ + + /** + * Sets the value as a {@link List} + */ void setListValue(List l); /** * Returns the value as a {@link List} of {@link String} values + * * @deprecated replaced by {@link #getListValue} **/ List listValue(); + /** * Returns the value as a {@link List} of {@link XmlENTITY} values + * * @deprecated replaced by {@link #getListValue} **/ List xlistValue(); + /** * Sets the value as a {@link List} + * * @deprecated replaced by {@link #getListValue} **/ void set(List l); @@ -60,101 +71,129 @@ public interface XmlENTITIES extends Xml * A class with methods for creating instances * of {@link XmlENTITIES}. */ - public static final class Factory - { - /** Creates an empty instance of {@link XmlENTITIES} */ + final class Factory { + /** + * Creates an empty instance of {@link XmlENTITIES} + */ public static XmlENTITIES newInstance() { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().newInstance( type, null ); } - - /** Creates an empty instance of {@link XmlENTITIES} */ + return (XmlENTITIES) XmlBeans.getContextTypeLoader().newInstance(type, null); + } + + /** + * Creates an empty instance of {@link XmlENTITIES} + */ public static XmlENTITIES newInstance(org.apache.xmlbeans.XmlOptions options) { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().newInstance( type, options ); } - - /** Creates an immutable {@link XmlENTITIES} value */ + return (XmlENTITIES) XmlBeans.getContextTypeLoader().newInstance(type, options); + } + + /** + * Creates an immutable {@link XmlENTITIES} value + */ public static XmlENTITIES newValue(Object obj) { - return (XmlENTITIES) type.newValue( obj ); } - - /** Parses a {@link XmlENTITIES} fragment from a String. */ + return (XmlENTITIES) type.newValue(obj); + } + + /** + * Parses a {@link XmlENTITIES} fragment from a String. + */ public static XmlENTITIES parse(java.lang.String s) throws org.apache.xmlbeans.XmlException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( s, type, null ); } - - /** Parses a {@link XmlENTITIES} fragment from a String. */ + return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse(s, type, null); + } + + /** + * Parses a {@link XmlENTITIES} fragment from a String. + */ public static XmlENTITIES parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( s, type, options ); } - - /** Parses a {@link XmlENTITIES} fragment from a File. */ + return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse(s, type, options); + } + + /** + * Parses a {@link XmlENTITIES} fragment from a File. + */ public static XmlENTITIES parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( f, type, null ); } - - /** Parses a {@link XmlENTITIES} fragment from a File. */ + return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse(f, type, null); + } + + /** + * Parses a {@link XmlENTITIES} fragment from a File. + */ public static XmlENTITIES parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( f, type, options ); } - - /** Parses a {@link XmlENTITIES} fragment from a URL. */ + return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse(f, type, options); + } + + /** + * Parses a {@link XmlENTITIES} fragment from a URL. + */ public static XmlENTITIES parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( u, type, null ); } + return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse(u, type, null); + } - /** Parses a {@link XmlENTITIES} fragment from a URL. */ + /** + * Parses a {@link XmlENTITIES} fragment from a URL. + */ public static XmlENTITIES parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( u, type, options ); } + return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse(u, type, options); + } - /** Parses a {@link XmlENTITIES} fragment from an InputStream. */ + /** + * Parses a {@link XmlENTITIES} fragment from an InputStream. + */ public static XmlENTITIES parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( is, type, null ); } - - /** Parses a {@link XmlENTITIES} fragment from an InputStream. */ + return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse(is, type, null); + } + + /** + * Parses a {@link XmlENTITIES} fragment from an InputStream. + */ public static XmlENTITIES parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( is, type, options ); } - - /** Parses a {@link XmlENTITIES} fragment from a Reader. */ + return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse(is, type, options); + } + + /** + * Parses a {@link XmlENTITIES} fragment from a Reader. + */ public static XmlENTITIES parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( r, type, null ); } - - /** Parses a {@link XmlENTITIES} fragment from a Reader. */ + return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse(r, type, null); + } + + /** + * Parses a {@link XmlENTITIES} fragment from a Reader. + */ public static XmlENTITIES parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( r, type, options ); } - - /** Parses a {@link XmlENTITIES} fragment from a DOM Node. */ + return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse(r, type, options); + } + + /** + * Parses a {@link XmlENTITIES} fragment from a DOM Node. + */ public static XmlENTITIES parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( node, type, null ); } - - /** Parses a {@link XmlENTITIES} fragment from a DOM Node. */ + return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse(node, type, null); + } + + /** + * Parses a {@link XmlENTITIES} fragment from a DOM Node. + */ public static XmlENTITIES parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( node, type, options ); } - - /** Parses a {@link XmlENTITIES} fragment from an XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - public static XmlENTITIES parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( xis, type, null ); } - - /** Parses a {@link XmlENTITIES} fragment from an XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - public static XmlENTITIES parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( xis, type, options ); } - - /** Parses a {@link XmlENTITIES} fragment from an XMLStreamReader. */ + return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse(node, type, options); + } + + /** + * Parses a {@link XmlENTITIES} fragment from an XMLStreamReader. + */ public static XmlENTITIES parse(javax.xml.stream.XMLStreamReader xsr) throws org.apache.xmlbeans.XmlException { - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( xsr, type, null ); } - - /** Parses a {@link XmlENTITIES} fragment from an XMLStreamReader. */ - public static XmlENTITIES parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException{ - return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse( xsr, type, options ); } - - /** Returns a validating XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - 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 { - return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); } - - /** Returns a validating XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - 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 { - return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); } - - private Factory() { } // No instance of this class allowed + return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse(xsr, type, null); + } + + /** + * Parses a {@link XmlENTITIES} fragment from an XMLStreamReader. + */ + public static XmlENTITIES parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { + return (XmlENTITIES) XmlBeans.getContextTypeLoader().parse(xsr, type, options); + } + + private Factory() { + // No instance of this class allowed + } } } Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlENTITY.java URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlENTITY.java?rev=1881778&r1=1881777&r2=1881778&view=diff ============================================================================== --- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlENTITY.java (original) +++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlENTITY.java Thu Sep 17 00:04:39 2020 @@ -15,119 +15,145 @@ package org.apache.xmlbeans; -import javax.xml.stream.XMLStreamReader; - - /** * Corresponds to the XML Schema * <a target="_blank" href="http://www.w3.org/TR/xmlschema-2/#ENTITY">xs:ENTITY</a> type. * <p> * Convertible to {@link String}. - */ -public interface XmlENTITY extends XmlNCName -{ - /** The constant {@link SchemaType} object representing this schema type. */ - public static final SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_ENTITY"); - + */ +public interface XmlENTITY extends XmlNCName { + /** + * The constant {@link SchemaType} object representing this schema type. + */ + SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_ENTITY"); + /** * A class with methods for creating instances * of {@link XmlENTITY}. */ - public static final class Factory - { - /** Creates an empty instance of {@link XmlENTITY} */ + final class Factory { + /** + * Creates an empty instance of {@link XmlENTITY} + */ public static XmlENTITY newInstance() { - return (XmlENTITY) XmlBeans.getContextTypeLoader().newInstance( type, null ); } - - /** Creates an empty instance of {@link XmlENTITY} */ + return (XmlENTITY) XmlBeans.getContextTypeLoader().newInstance(type, null); + } + + /** + * Creates an empty instance of {@link XmlENTITY} + */ public static XmlENTITY newInstance(org.apache.xmlbeans.XmlOptions options) { - return (XmlENTITY) XmlBeans.getContextTypeLoader().newInstance( type, options ); } - - /** Creates an immutable {@link XmlENTITY} value */ + return (XmlENTITY) XmlBeans.getContextTypeLoader().newInstance(type, options); + } + + /** + * Creates an immutable {@link XmlENTITY} value + */ public static XmlENTITY newValue(Object obj) { - return (XmlENTITY) type.newValue( obj ); } - - /** Parses a {@link XmlENTITY} fragment from a String. */ + return (XmlENTITY) type.newValue(obj); + } + + /** + * Parses a {@link XmlENTITY} fragment from a String. + */ public static XmlENTITY parse(java.lang.String s) throws org.apache.xmlbeans.XmlException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( s, type, null ); } - - /** Parses a {@link XmlENTITY} fragment from a String. */ + return (XmlENTITY) XmlBeans.getContextTypeLoader().parse(s, type, null); + } + + /** + * Parses a {@link XmlENTITY} fragment from a String. + */ public static XmlENTITY parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( s, type, options ); } - - /** Parses a {@link XmlENTITY} fragment from a File. */ + return (XmlENTITY) XmlBeans.getContextTypeLoader().parse(s, type, options); + } + + /** + * Parses a {@link XmlENTITY} fragment from a File. + */ public static XmlENTITY parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( f, type, null ); } - - /** Parses a {@link XmlENTITY} fragment from a File. */ + return (XmlENTITY) XmlBeans.getContextTypeLoader().parse(f, type, null); + } + + /** + * Parses a {@link XmlENTITY} fragment from a File. + */ public static XmlENTITY parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( f, type, options ); } - - /** Parses a {@link XmlENTITY} fragment from a URL. */ + return (XmlENTITY) XmlBeans.getContextTypeLoader().parse(f, type, options); + } + + /** + * Parses a {@link XmlENTITY} fragment from a URL. + */ public static XmlENTITY parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( u, type, null ); } + return (XmlENTITY) XmlBeans.getContextTypeLoader().parse(u, type, null); + } - /** Parses a {@link XmlENTITY} fragment from a URL. */ + /** + * Parses a {@link XmlENTITY} fragment from a URL. + */ public static XmlENTITY parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( u, type, options ); } + return (XmlENTITY) XmlBeans.getContextTypeLoader().parse(u, type, options); + } - /** Parses a {@link XmlENTITY} fragment from an InputStream. */ + /** + * Parses a {@link XmlENTITY} fragment from an InputStream. + */ public static XmlENTITY parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( is, type, null ); } - - /** Parses a {@link XmlENTITY} fragment from an InputStream. */ + return (XmlENTITY) XmlBeans.getContextTypeLoader().parse(is, type, null); + } + + /** + * Parses a {@link XmlENTITY} fragment from an InputStream. + */ public static XmlENTITY parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( is, type, options ); } - - /** Parses a {@link XmlENTITY} fragment from a Reader. */ + return (XmlENTITY) XmlBeans.getContextTypeLoader().parse(is, type, options); + } + + /** + * Parses a {@link XmlENTITY} fragment from a Reader. + */ public static XmlENTITY parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( r, type, null ); } - - /** Parses a {@link XmlENTITY} fragment from a Reader. */ + return (XmlENTITY) XmlBeans.getContextTypeLoader().parse(r, type, null); + } + + /** + * Parses a {@link XmlENTITY} fragment from a Reader. + */ public static XmlENTITY parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( r, type, options ); } - - /** Parses a {@link XmlENTITY} fragment from a DOM Node. */ + return (XmlENTITY) XmlBeans.getContextTypeLoader().parse(r, type, options); + } + + /** + * Parses a {@link XmlENTITY} fragment from a DOM Node. + */ public static XmlENTITY parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( node, type, null ); } - - /** Parses a {@link XmlENTITY} fragment from a DOM Node. */ + return (XmlENTITY) XmlBeans.getContextTypeLoader().parse(node, type, null); + } + + /** + * Parses a {@link XmlENTITY} fragment from a DOM Node. + */ public static XmlENTITY parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( node, type, options ); } - - /** Parses a {@link XmlENTITY} fragment from an XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - public static XmlENTITY parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( xis, type, null ); } - - /** Parses a {@link XmlENTITY} fragment from an XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - public static XmlENTITY parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( xis, type, options ); } - - /** Parses a {@link XmlENTITY} fragment from an XMLStreamReader. */ + return (XmlENTITY) XmlBeans.getContextTypeLoader().parse(node, type, options); + } + + /** + * Parses a {@link XmlENTITY} fragment from an XMLStreamReader. + */ public static XmlENTITY parse(javax.xml.stream.XMLStreamReader xsr) throws org.apache.xmlbeans.XmlException { - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( xsr, type, null ); } - - /** Parses a {@link XmlENTITY} fragment from an XMLStreamReader. */ - public static XmlENTITY parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException{ - return (XmlENTITY) XmlBeans.getContextTypeLoader().parse( xsr, type, options ); } - - /** Returns a validating XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - 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 { - return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); } - - /** Returns a validating XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - 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 { - return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); } - - private Factory() { } // No instance of this class allowed + return (XmlENTITY) XmlBeans.getContextTypeLoader().parse(xsr, type, null); + } + + /** + * Parses a {@link XmlENTITY} fragment from an XMLStreamReader. + */ + public static XmlENTITY parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { + return (XmlENTITY) XmlBeans.getContextTypeLoader().parse(xsr, type, options); + } + + private Factory() { + // No instance of this class allowed + } } } Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlFactoryHook.java URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlFactoryHook.java?rev=1881778&r1=1881777&r2=1881778&view=diff ============================================================================== --- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlFactoryHook.java (original) +++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlFactoryHook.java Thu Sep 17 00:04:39 2020 @@ -15,19 +15,15 @@ package org.apache.xmlbeans; -import org.w3c.dom.Node; import org.w3c.dom.DOMImplementation; +import org.w3c.dom.Node; +import javax.xml.stream.XMLStreamReader; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.lang.ref.SoftReference; -import javax.xml.stream.XMLStreamReader; - -import org.apache.xmlbeans.xml.stream.XMLInputStream; -import org.apache.xmlbeans.xml.stream.XMLStreamException; - /** * A hook for the XML Bean Factory mechanism. * Provided for advanced users who wish to provide their own @@ -44,7 +40,7 @@ import org.apache.xmlbeans.xml.stream.XM * // this results in a call to hook.parse(...) * XmlObject.Factory.parse(new File("test.xml")); * </pre> - * + * <p> * If the hook needs to turn around and invoke the built-in parsers, then * it should do so by calling the appropriate method on the passed * SchemaTypeLoader. Since SchemaTypeLoader.parse() methods delegate @@ -62,35 +58,52 @@ import org.apache.xmlbeans.xml.stream.XM * } * </pre> */ -public interface XmlFactoryHook -{ - /** Hooks Factory.newInstance calls */ - public XmlObject newInstance ( SchemaTypeLoader loader, SchemaType type, XmlOptions options ); - /** Hooks Factory.parse calls */ - public XmlObject parse ( SchemaTypeLoader loader, String xmlText, SchemaType type, XmlOptions options ) throws XmlException; - /** Hooks Factory.parse calls */ - public XmlObject parse ( SchemaTypeLoader loader, InputStream jiois, SchemaType type, XmlOptions options ) throws XmlException, IOException; - /** Hooks Factory.parse calls */ - public XmlObject parse ( SchemaTypeLoader loader, XMLStreamReader xsr, SchemaType type, XmlOptions options ) throws XmlException; - /** Hooks Factory.parse calls */ - public XmlObject parse ( SchemaTypeLoader loader, Reader jior, SchemaType type, XmlOptions options ) throws XmlException, IOException; - /** Hooks Factory.parse calls */ - public XmlObject parse ( SchemaTypeLoader loader, Node node, SchemaType type, XmlOptions options ) throws XmlException; - /** Hooks Factory.parse calls - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - public XmlObject parse ( SchemaTypeLoader loader, XMLInputStream xis, SchemaType type, XmlOptions options ) throws XmlException, XMLStreamException; - /** Hooks Factory.newXmlSaxHandler calls */ - public XmlSaxHandler newXmlSaxHandler ( SchemaTypeLoader loader, SchemaType type, XmlOptions options ); - /** Hooks Factory.newDomImplementation calls */ - public DOMImplementation newDomImplementation ( SchemaTypeLoader loader, XmlOptions options ); +public interface XmlFactoryHook { + /** + * Hooks Factory.newInstance calls + */ + XmlObject newInstance(SchemaTypeLoader loader, SchemaType type, XmlOptions options); + + /** + * Hooks Factory.parse calls + */ + XmlObject parse(SchemaTypeLoader loader, String xmlText, SchemaType type, XmlOptions options) throws XmlException; + + /** + * Hooks Factory.parse calls + */ + XmlObject parse(SchemaTypeLoader loader, InputStream jiois, SchemaType type, XmlOptions options) throws XmlException, IOException; + + /** + * Hooks Factory.parse calls + */ + XmlObject parse(SchemaTypeLoader loader, XMLStreamReader xsr, SchemaType type, XmlOptions options) throws XmlException; + + /** + * Hooks Factory.parse calls + */ + XmlObject parse(SchemaTypeLoader loader, Reader jior, SchemaType type, XmlOptions options) throws XmlException, IOException; + + /** + * Hooks Factory.parse calls + */ + XmlObject parse(SchemaTypeLoader loader, Node node, SchemaType type, XmlOptions options) throws XmlException; + + /** + * Hooks Factory.newXmlSaxHandler calls + */ + XmlSaxHandler newXmlSaxHandler(SchemaTypeLoader loader, SchemaType type, XmlOptions options); + + /** + * Hooks Factory.newDomImplementation calls + */ + DOMImplementation newDomImplementation(SchemaTypeLoader loader, XmlOptions options); /** * Used to manage the XmlFactoryHook for the current thread. - */ - public final static class ThreadContext - { - private static ThreadLocal threadHook = new ThreadLocal(); + */ + final class ThreadContext { + private static final ThreadLocal<SoftReference<XmlFactoryHook>> threadHook = new ThreadLocal<>(); public static void clearThreadLocals() { threadHook.remove(); @@ -98,24 +111,21 @@ public interface XmlFactoryHook /** * Returns the current thread's hook, or null if none. - */ - public static XmlFactoryHook getHook() - { - SoftReference softRef = (SoftReference)threadHook.get(); - return softRef==null ? null : (XmlFactoryHook)softRef.get(); + */ + public static XmlFactoryHook getHook() { + SoftReference<XmlFactoryHook> softRef = threadHook.get(); + return softRef == null ? null : softRef.get(); } /** * Sets the hook for the current thread. - */ - public static void setHook(XmlFactoryHook hook) - { - threadHook.set(new SoftReference(hook)); + */ + public static void setHook(XmlFactoryHook hook) { + threadHook.set(new SoftReference<>(hook)); } // provided to prevent unwanted construction - private ThreadContext() - { + private ThreadContext() { } } } Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlFloat.java URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlFloat.java?rev=1881778&r1=1881777&r2=1881778&view=diff ============================================================================== --- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlFloat.java (original) +++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlFloat.java Thu Sep 17 00:04:39 2020 @@ -15,135 +15,169 @@ package org.apache.xmlbeans; -import javax.xml.stream.XMLStreamReader; - - /** * Corresponds to the XML Schema * <a target="_blank" href="http://www.w3.org/TR/xmlschema-2/#float">xs:float</a> type. * <p> * Naturally, convertible to a Java float. - */ -public interface XmlFloat extends XmlAnySimpleType -{ - /** The constant {@link SchemaType} object representing this schema type. */ - public static final SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_float"); - - /** Returns this value as a float */ + */ +public interface XmlFloat extends XmlAnySimpleType { + /** + * The constant {@link SchemaType} object representing this schema type. + */ + SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_float"); + + /** + * Returns this value as a float + */ float getFloatValue(); - /** Sets this value as a float */ + + /** + * Sets this value as a float + */ void setFloatValue(float v); /** * Returns this value as a float + * * @deprecated replaced by {@link #getFloatValue} **/ float floatValue(); + /** * Sets this value as a float + * * @deprecated replaced by {@link #setFloatValue} **/ void set(float v); - + /** * A class with methods for creating instances * of {@link XmlFloat}. */ - public static final class Factory - { - /** Creates an empty instance of {@link XmlFloat} */ + final class Factory { + /** + * Creates an empty instance of {@link XmlFloat} + */ public static XmlFloat newInstance() { - return (XmlFloat) XmlBeans.getContextTypeLoader().newInstance( type, null ); } - - /** Creates an empty instance of {@link XmlFloat} */ + return (XmlFloat) XmlBeans.getContextTypeLoader().newInstance(type, null); + } + + /** + * Creates an empty instance of {@link XmlFloat} + */ public static XmlFloat newInstance(org.apache.xmlbeans.XmlOptions options) { - return (XmlFloat) XmlBeans.getContextTypeLoader().newInstance( type, options ); } - - /** Creates an immutable {@link XmlFloat} value */ + return (XmlFloat) XmlBeans.getContextTypeLoader().newInstance(type, options); + } + + /** + * Creates an immutable {@link XmlFloat} value + */ public static XmlFloat newValue(Object obj) { - return (XmlFloat) type.newValue( obj ); } - - /** Parses a {@link XmlFloat} fragment from a String. For example: "<code><xml-fragment>12.34e+5</xml-fragment></code>". */ + return (XmlFloat) type.newValue(obj); + } + + /** + * Parses a {@link XmlFloat} fragment from a String. For example: "<code><xml-fragment>12.34e+5</xml-fragment></code>". + */ public static XmlFloat parse(java.lang.String s) throws org.apache.xmlbeans.XmlException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( s, type, null ); } - - /** Parses a {@link XmlFloat} fragment from a String. For example: "<code><xml-fragment>12.34e+5</xml-fragment></code>". */ + return (XmlFloat) XmlBeans.getContextTypeLoader().parse(s, type, null); + } + + /** + * Parses a {@link XmlFloat} fragment from a String. For example: "<code><xml-fragment>12.34e+5</xml-fragment></code>". + */ public static XmlFloat parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( s, type, options ); } - - /** Parses a {@link XmlFloat} fragment from a File. */ + return (XmlFloat) XmlBeans.getContextTypeLoader().parse(s, type, options); + } + + /** + * Parses a {@link XmlFloat} fragment from a File. + */ public static XmlFloat parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( f, type, null ); } - - /** Parses a {@link XmlFloat} fragment from a File. */ + return (XmlFloat) XmlBeans.getContextTypeLoader().parse(f, type, null); + } + + /** + * Parses a {@link XmlFloat} fragment from a File. + */ public static XmlFloat parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( f, type, options ); } - - /** Parses a {@link XmlFloat} fragment from a URL. */ + return (XmlFloat) XmlBeans.getContextTypeLoader().parse(f, type, options); + } + + /** + * Parses a {@link XmlFloat} fragment from a URL. + */ public static XmlFloat parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( u, type, null ); } + return (XmlFloat) XmlBeans.getContextTypeLoader().parse(u, type, null); + } - /** Parses a {@link XmlFloat} fragment from a URL. */ + /** + * Parses a {@link XmlFloat} fragment from a URL. + */ public static XmlFloat parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( u, type, options ); } + return (XmlFloat) XmlBeans.getContextTypeLoader().parse(u, type, options); + } - /** Parses a {@link XmlFloat} fragment from an InputStream. */ + /** + * Parses a {@link XmlFloat} fragment from an InputStream. + */ public static XmlFloat parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( is, type, null ); } - - /** Parses a {@link XmlFloat} fragment from an InputStream. */ + return (XmlFloat) XmlBeans.getContextTypeLoader().parse(is, type, null); + } + + /** + * Parses a {@link XmlFloat} fragment from an InputStream. + */ public static XmlFloat parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( is, type, options ); } - - /** Parses a {@link XmlFloat} fragment from a Reader. */ + return (XmlFloat) XmlBeans.getContextTypeLoader().parse(is, type, options); + } + + /** + * Parses a {@link XmlFloat} fragment from a Reader. + */ public static XmlFloat parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( r, type, null ); } - - /** Parses a {@link XmlFloat} fragment from a Reader. */ + return (XmlFloat) XmlBeans.getContextTypeLoader().parse(r, type, null); + } + + /** + * Parses a {@link XmlFloat} fragment from a Reader. + */ public static XmlFloat parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( r, type, options ); } - - /** Parses a {@link XmlFloat} fragment from a DOM Node. */ + return (XmlFloat) XmlBeans.getContextTypeLoader().parse(r, type, options); + } + + /** + * Parses a {@link XmlFloat} fragment from a DOM Node. + */ public static XmlFloat parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( node, type, null ); } - - /** Parses a {@link XmlFloat} fragment from a DOM Node. */ + return (XmlFloat) XmlBeans.getContextTypeLoader().parse(node, type, null); + } + + /** + * Parses a {@link XmlFloat} fragment from a DOM Node. + */ public static XmlFloat parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( node, type, options ); } - - /** Parses a {@link XmlFloat} fragment from an XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - public static XmlFloat parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( xis, type, null ); } - - /** Parses a {@link XmlFloat} fragment from an XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - public static XmlFloat parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( xis, type, options ); } - - /** Parses a {@link XmlFloat} fragment from an XMLStreamReader. */ + return (XmlFloat) XmlBeans.getContextTypeLoader().parse(node, type, options); + } + + /** + * Parses a {@link XmlFloat} fragment from an XMLStreamReader. + */ public static XmlFloat parse(javax.xml.stream.XMLStreamReader xsr) throws org.apache.xmlbeans.XmlException { - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( xsr, type, null ); } - - /** Parses a {@link XmlFloat} fragment from an XMLStreamReader. */ - public static XmlFloat parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException{ - return (XmlFloat) XmlBeans.getContextTypeLoader().parse( xsr, type, options ); } - - /** Returns a validating XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - 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 { - return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); } - - /** Returns a validating XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - 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 { - return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); } - - private Factory() { } // No instance of this class allowed + return (XmlFloat) XmlBeans.getContextTypeLoader().parse(xsr, type, null); + } + + /** + * Parses a {@link XmlFloat} fragment from an XMLStreamReader. + */ + public static XmlFloat parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { + return (XmlFloat) XmlBeans.getContextTypeLoader().parse(xsr, type, options); + } + + private Factory() { + // No instance of this class allowed + } } } Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlGDay.java URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlGDay.java?rev=1881778&r1=1881777&r2=1881778&view=diff ============================================================================== --- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlGDay.java (original) +++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlGDay.java Thu Sep 17 00:04:39 2020 @@ -15,9 +15,6 @@ package org.apache.xmlbeans; -import javax.xml.stream.XMLStreamReader; - - import java.util.Calendar; @@ -27,158 +24,215 @@ import java.util.Calendar; * A gDay specifies only a day-of-month. * <p> * Convertible to {@link Calendar}, {@link GDate}, or an int. - * + * * @see XmlCalendar * @see GDate - */ -public interface XmlGDay extends XmlAnySimpleType -{ - /** The constant {@link SchemaType} object representing this schema type. */ - public static final SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_gDay"); - - /** Returns this value as a {@link Calendar} */ + */ +public interface XmlGDay extends XmlAnySimpleType { + /** + * The constant {@link SchemaType} object representing this schema type. + */ + SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_gDay"); + + /** + * Returns this value as a {@link Calendar} + */ Calendar getCalendarValue(); - /** Sets this value as a {@link Calendar} */ + + /** + * Sets this value as a {@link Calendar} + */ void setCalendarValue(Calendar c); - /** Returns this value as a {@link GDate} */ + + /** + * Returns this value as a {@link GDate} + */ GDate getGDateValue(); - /** Sets this value as a {@link GDateSpecification} */ + + /** + * Sets this value as a {@link GDateSpecification} + */ void setGDateValue(GDate gd); - /** Returns this value as an int from 1-31 */ + + /** + * Returns this value as an int from 1-31 + */ int getIntValue(); - /** Sets this value as an int from 1-31 */ + + /** + * Sets this value as an int from 1-31 + */ void setIntValue(int v); /** * Returns this value as a {@link Calendar} + * * @deprecated replaced with {@link #getCalendarValue} **/ Calendar calendarValue(); + /** * Sets this value as a {@link Calendar} + * * @deprecated replaced with {@link #setCalendarValue} **/ void set(Calendar c); + /** * Returns this value as a {@link GDate} + * * @deprecated replaced with {@link #getGDateValue} **/ GDate gDateValue(); + /** * Sets this value as a {@link GDateSpecification} + * * @deprecated replaced with {@link #setGDateValue} **/ void set(GDateSpecification gd); + /** * Returns this value as an int from 1-31 + * * @deprecated replaced with {@link #getIntValue} **/ int intValue(); + /** * Sets this value as an int from 1-31 + * * @deprecated replaced with {@link #setIntValue} **/ void set(int v); - + /** * A class with methods for creating instances * of {@link XmlGDay}. */ - public static final class Factory - { - /** Creates an empty instance of {@link XmlGDay} */ + final class Factory { + /** + * Creates an empty instance of {@link XmlGDay} + */ public static XmlGDay newInstance() { - return (XmlGDay) XmlBeans.getContextTypeLoader().newInstance( type, null ); } - - /** Creates an empty instance of {@link XmlGDay} */ + return (XmlGDay) XmlBeans.getContextTypeLoader().newInstance(type, null); + } + + /** + * Creates an empty instance of {@link XmlGDay} + */ public static XmlGDay newInstance(org.apache.xmlbeans.XmlOptions options) { - return (XmlGDay) XmlBeans.getContextTypeLoader().newInstance( type, options ); } - - /** Creates an immutable {@link XmlGDay} value */ + return (XmlGDay) XmlBeans.getContextTypeLoader().newInstance(type, options); + } + + /** + * Creates an immutable {@link XmlGDay} value + */ public static XmlGDay newValue(Object obj) { - return (XmlGDay) type.newValue( obj ); } - - /** Parses a {@link XmlGDay} fragment from a String. For example: "<code><xml-fragment>---14</xml-fragment></code>". */ + return (XmlGDay) type.newValue(obj); + } + + /** + * Parses a {@link XmlGDay} fragment from a String. For example: "<code><xml-fragment>---14</xml-fragment></code>". + */ public static XmlGDay parse(java.lang.String s) throws org.apache.xmlbeans.XmlException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( s, type, null ); } - - /** Parses a {@link XmlGDay} fragment from a String. For example: "<code><xml-fragment>---14</xml-fragment></code>". */ + return (XmlGDay) XmlBeans.getContextTypeLoader().parse(s, type, null); + } + + /** + * Parses a {@link XmlGDay} fragment from a String. For example: "<code><xml-fragment>---14</xml-fragment></code>". + */ public static XmlGDay parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( s, type, options ); } - - /** Parses a {@link XmlGDay} fragment from a File. */ + return (XmlGDay) XmlBeans.getContextTypeLoader().parse(s, type, options); + } + + /** + * Parses a {@link XmlGDay} fragment from a File. + */ public static XmlGDay parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( f, type, null ); } - - /** Parses a {@link XmlGDay} fragment from a File. */ + return (XmlGDay) XmlBeans.getContextTypeLoader().parse(f, type, null); + } + + /** + * Parses a {@link XmlGDay} fragment from a File. + */ public static XmlGDay parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( f, type, options ); } - - /** Parses a {@link XmlGDay} fragment from a URL. */ + return (XmlGDay) XmlBeans.getContextTypeLoader().parse(f, type, options); + } + + /** + * Parses a {@link XmlGDay} fragment from a URL. + */ public static XmlGDay parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( u, type, null ); } + return (XmlGDay) XmlBeans.getContextTypeLoader().parse(u, type, null); + } - /** Parses a {@link XmlGDay} fragment from a URL. */ + /** + * Parses a {@link XmlGDay} fragment from a URL. + */ public static XmlGDay parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( u, type, options ); } + return (XmlGDay) XmlBeans.getContextTypeLoader().parse(u, type, options); + } - /** Parses a {@link XmlGDay} fragment from an InputStream. */ + /** + * Parses a {@link XmlGDay} fragment from an InputStream. + */ public static XmlGDay parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( is, type, null ); } - - /** Parses a {@link XmlGDay} fragment from an InputStream. */ + return (XmlGDay) XmlBeans.getContextTypeLoader().parse(is, type, null); + } + + /** + * Parses a {@link XmlGDay} fragment from an InputStream. + */ public static XmlGDay parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( is, type, options ); } - - /** Parses a {@link XmlGDay} fragment from a Reader. */ + return (XmlGDay) XmlBeans.getContextTypeLoader().parse(is, type, options); + } + + /** + * Parses a {@link XmlGDay} fragment from a Reader. + */ public static XmlGDay parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( r, type, null ); } - - /** Parses a {@link XmlGDay} fragment from a Reader. */ + return (XmlGDay) XmlBeans.getContextTypeLoader().parse(r, type, null); + } + + /** + * Parses a {@link XmlGDay} fragment from a Reader. + */ public static XmlGDay parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( r, type, options ); } - - /** Parses a {@link XmlGDay} fragment from a DOM Node. */ + return (XmlGDay) XmlBeans.getContextTypeLoader().parse(r, type, options); + } + + /** + * Parses a {@link XmlGDay} fragment from a DOM Node. + */ public static XmlGDay parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( node, type, null ); } - - /** Parses a {@link XmlGDay} fragment from a DOM Node. */ + return (XmlGDay) XmlBeans.getContextTypeLoader().parse(node, type, null); + } + + /** + * Parses a {@link XmlGDay} fragment from a DOM Node. + */ public static XmlGDay parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( node, type, options ); } - - /** Parses a {@link XmlGDay} fragment from an XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - public static XmlGDay parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( xis, type, null ); } - - /** Parses a {@link XmlGDay} fragment from an XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - public static XmlGDay parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( xis, type, options ); } - - /** Parses a {@link XmlGDay} fragment from an XMLStreamReader. */ + return (XmlGDay) XmlBeans.getContextTypeLoader().parse(node, type, options); + } + + /** + * Parses a {@link XmlGDay} fragment from an XMLStreamReader. + */ public static XmlGDay parse(javax.xml.stream.XMLStreamReader xsr) throws org.apache.xmlbeans.XmlException { - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( xsr, type, null ); } - - /** Parses a {@link XmlGDay} fragment from an XMLStreamReader. */ - public static XmlGDay parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException{ - return (XmlGDay) XmlBeans.getContextTypeLoader().parse( xsr, type, options ); } - - /** Returns a validating XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - 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 { - return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); } - - /** Returns a validating XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - 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 { - return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); } - - private Factory() { } // No instance of this class allowed + return (XmlGDay) XmlBeans.getContextTypeLoader().parse(xsr, type, null); + } + + /** + * Parses a {@link XmlGDay} fragment from an XMLStreamReader. + */ + public static XmlGDay parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { + return (XmlGDay) XmlBeans.getContextTypeLoader().parse(xsr, type, options); + } + + private Factory() { + // No instance of this class allowed + } } } Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlGMonth.java URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlGMonth.java?rev=1881778&r1=1881777&r2=1881778&view=diff ============================================================================== --- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlGMonth.java (original) +++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlGMonth.java Thu Sep 17 00:04:39 2020 @@ -15,9 +15,6 @@ package org.apache.xmlbeans; -import javax.xml.stream.XMLStreamReader; - - import java.util.Calendar; @@ -27,55 +24,84 @@ import java.util.Calendar; * A gMonth specifies only a month-of-year. * <p> * Convertible to {@link Calendar}, {@link GDate}, or an int. - * + * * @see XmlCalendar * @see GDate - */ -public interface XmlGMonth extends XmlAnySimpleType -{ - /** The constant {@link SchemaType} object representing this schema type. */ - public static final SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_gMonth"); - - /** Returns this value as a {@link Calendar} */ + */ +public interface XmlGMonth extends XmlAnySimpleType { + /** + * The constant {@link SchemaType} object representing this schema type. + */ + SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_gMonth"); + + /** + * Returns this value as a {@link Calendar} + */ Calendar getCalendarValue(); - /** Sets this value as a {@link Calendar} */ + + /** + * Sets this value as a {@link Calendar} + */ void setCalendarValue(Calendar c); - /** Returns this value as a {@link GDate} */ + + /** + * Returns this value as a {@link GDate} + */ GDate getGDateValue(); - /** Sets this value as a {@link GDateSpecification} */ + + /** + * Sets this value as a {@link GDateSpecification} + */ void setGDateValue(GDate gd); - /** Returns this value as an int from 1-12 */ + + /** + * Returns this value as an int from 1-12 + */ int getIntValue(); - /** Sets this value as an int from 1-12 */ + + /** + * Sets this value as an int from 1-12 + */ void setIntValue(int v); /** * Returns this value as a {@link Calendar} + * * @deprecated replaced with {@link #getCalendarValue} **/ Calendar calendarValue(); + /** * Sets this value as a {@link Calendar} + * * @deprecated replaced with {@link #setCalendarValue} **/ void set(Calendar c); + /** * Returns this value as a {@link GDate} + * * @deprecated replaced with {@link #getGDateValue} **/ GDate gDateValue(); + /** * Sets this value as a {@link GDateSpecification} + * * @deprecated replaced with {@link #setGDateValue} **/ void set(GDateSpecification gd); + /** * Returns this value as an int from 1-12 + * * @deprecated replaced with {@link #getIntValue} **/ int intValue(); + /** * Sets this value as an int from 1-12 + * * @deprecated replaced with {@link #setIntValue} **/ void set(int v); @@ -84,101 +110,129 @@ public interface XmlGMonth extends XmlAn * A class with methods for creating instances * of {@link XmlGMonth}. */ - public static final class Factory - { - /** Creates an empty instance of {@link XmlGMonth} */ + final class Factory { + /** + * Creates an empty instance of {@link XmlGMonth} + */ public static XmlGMonth newInstance() { - return (XmlGMonth) XmlBeans.getContextTypeLoader().newInstance( type, null ); } - - /** Creates an empty instance of {@link XmlGMonth} */ + return (XmlGMonth) XmlBeans.getContextTypeLoader().newInstance(type, null); + } + + /** + * Creates an empty instance of {@link XmlGMonth} + */ public static XmlGMonth newInstance(org.apache.xmlbeans.XmlOptions options) { - return (XmlGMonth) XmlBeans.getContextTypeLoader().newInstance( type, options ); } - - /** Creates an immutable {@link XmlGMonth} value */ + return (XmlGMonth) XmlBeans.getContextTypeLoader().newInstance(type, options); + } + + /** + * Creates an immutable {@link XmlGMonth} value + */ public static XmlGMonth newValue(Object obj) { - return (XmlGMonth) type.newValue( obj ); } - - /** Parses a {@link XmlGMonth} fragment from a String. For example: "<code><xml-fragment>--06</xml-fragment></code>". */ + return (XmlGMonth) type.newValue(obj); + } + + /** + * Parses a {@link XmlGMonth} fragment from a String. For example: "<code><xml-fragment>--06</xml-fragment></code>". + */ public static XmlGMonth parse(java.lang.String s) throws org.apache.xmlbeans.XmlException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( s, type, null ); } - - /** Parses a {@link XmlGMonth} fragment from a String. For example: "<code><xml-fragment>--06</xml-fragment></code>". */ + return (XmlGMonth) XmlBeans.getContextTypeLoader().parse(s, type, null); + } + + /** + * Parses a {@link XmlGMonth} fragment from a String. For example: "<code><xml-fragment>--06</xml-fragment></code>". + */ public static XmlGMonth parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( s, type, options ); } - - /** Parses a {@link XmlGMonth} fragment from a File. */ + return (XmlGMonth) XmlBeans.getContextTypeLoader().parse(s, type, options); + } + + /** + * Parses a {@link XmlGMonth} fragment from a File. + */ public static XmlGMonth parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( f, type, null ); } - - /** Parses a {@link XmlGMonth} fragment from a File. */ + return (XmlGMonth) XmlBeans.getContextTypeLoader().parse(f, type, null); + } + + /** + * Parses a {@link XmlGMonth} fragment from a File. + */ public static XmlGMonth parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( f, type, options ); } - - /** Parses a {@link XmlGMonth} fragment from a URL. */ + return (XmlGMonth) XmlBeans.getContextTypeLoader().parse(f, type, options); + } + + /** + * Parses a {@link XmlGMonth} fragment from a URL. + */ public static XmlGMonth parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( u, type, null ); } + return (XmlGMonth) XmlBeans.getContextTypeLoader().parse(u, type, null); + } - /** Parses a {@link XmlGMonth} fragment from a URL. */ + /** + * Parses a {@link XmlGMonth} fragment from a URL. + */ public static XmlGMonth parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( u, type, options ); } + return (XmlGMonth) XmlBeans.getContextTypeLoader().parse(u, type, options); + } - /** Parses a {@link XmlGMonth} fragment from an InputStream. */ + /** + * Parses a {@link XmlGMonth} fragment from an InputStream. + */ public static XmlGMonth parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( is, type, null ); } - - /** Parses a {@link XmlGMonth} fragment from an InputStream. */ + return (XmlGMonth) XmlBeans.getContextTypeLoader().parse(is, type, null); + } + + /** + * Parses a {@link XmlGMonth} fragment from an InputStream. + */ public static XmlGMonth parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( is, type, options ); } - - /** Parses a {@link XmlGMonth} fragment from a Reader. */ + return (XmlGMonth) XmlBeans.getContextTypeLoader().parse(is, type, options); + } + + /** + * Parses a {@link XmlGMonth} fragment from a Reader. + */ public static XmlGMonth parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( r, type, null ); } - - /** Parses a {@link XmlGMonth} fragment from a Reader. */ + return (XmlGMonth) XmlBeans.getContextTypeLoader().parse(r, type, null); + } + + /** + * Parses a {@link XmlGMonth} fragment from a Reader. + */ public static XmlGMonth parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( r, type, options ); } - - /** Parses a {@link XmlGMonth} fragment from a DOM Node. */ + return (XmlGMonth) XmlBeans.getContextTypeLoader().parse(r, type, options); + } + + /** + * Parses a {@link XmlGMonth} fragment from a DOM Node. + */ public static XmlGMonth parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( node, type, null ); } - - /** Parses a {@link XmlGMonth} fragment from a DOM Node. */ + return (XmlGMonth) XmlBeans.getContextTypeLoader().parse(node, type, null); + } + + /** + * Parses a {@link XmlGMonth} fragment from a DOM Node. + */ public static XmlGMonth parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( node, type, options ); } - - /** Parses a {@link XmlGMonth} fragment from an XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - public static XmlGMonth parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( xis, type, null ); } - - /** Parses a {@link XmlGMonth} fragment from an XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - public static XmlGMonth parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( xis, type, options ); } - - /** Parses a {@link XmlGMonth} fragment from an XMLStreamReader. */ + return (XmlGMonth) XmlBeans.getContextTypeLoader().parse(node, type, options); + } + + /** + * Parses a {@link XmlGMonth} fragment from an XMLStreamReader. + */ public static XmlGMonth parse(javax.xml.stream.XMLStreamReader xsr) throws org.apache.xmlbeans.XmlException { - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( xsr, type, null ); } - - /** Parses a {@link XmlGMonth} fragment from an XMLStreamReader. */ - public static XmlGMonth parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException{ - return (XmlGMonth) XmlBeans.getContextTypeLoader().parse( xsr, type, options ); } - - /** Returns a validating XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - 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 { - return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); } - - /** Returns a validating XMLInputStream. - * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API. - */ - 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 { - return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); } - - private Factory() { } // No instance of this class allowed + return (XmlGMonth) XmlBeans.getContextTypeLoader().parse(xsr, type, null); + } + + /** + * Parses a {@link XmlGMonth} fragment from an XMLStreamReader. + */ + public static XmlGMonth parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { + return (XmlGMonth) XmlBeans.getContextTypeLoader().parse(xsr, type, options); + } + + private Factory() { + // No instance of this class allowed + } } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
