You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2020/09/17 00:04:39 UTC
svn commit: r1881778 [2/10] - in /xmlbeans/trunk: ./
src/main/java/org/apache/xmlbeans/
src/main/java/org/apache/xmlbeans/impl/common/
src/main/java/org/apache/xmlbeans/impl/schema/
src/main/java/org/apache/xmlbeans/impl/store/ src/main/java/org/apache...
Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlBoolean.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlBoolean.java?rev=1881778&r1=1881777&r2=1881778&view=diff
==============================================================================
--- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlBoolean.java (original)
+++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlBoolean.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/#boolean">xs:boolean</a> type.
* <p>
- * Naturally, convertible to Java boolean.
- */
-public interface XmlBoolean extends XmlAnySimpleType
-{
- /** The constant {@link SchemaType} object representing this schema type. */
- public static final SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_boolean");
-
+ * Naturally, convertible to Java boolean.
+ */
+public interface XmlBoolean extends XmlAnySimpleType {
+ /**
+ * The constant {@link SchemaType} object representing this schema type.
+ */
+ SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_boolean");
+
/**
* Returns this value as a boolean
+ *
* @deprecated replaced by {@link #getBooleanValue}
**/
boolean booleanValue();
+
/**
* Sets this value as a boolean
+ *
* @deprecated replaced by {@link #setBooleanValue}
**/
void set(boolean v);
- /** Returns this value as a boolean */
+ /**
+ * Returns this value as a boolean
+ */
boolean getBooleanValue();
- /** Sets this value as a boolean */
+
+ /**
+ * Sets this value as a boolean
+ */
void setBooleanValue(boolean v);
/**
* A class with methods for creating instances
* of {@link XmlBoolean}.
*/
- public static final class Factory
- {
- /** Creates an empty instance of {@link XmlBoolean} */
+ final class Factory {
+ /**
+ * Creates an empty instance of {@link XmlBoolean}
+ */
public static XmlBoolean newInstance() {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().newInstance( type, null ); }
-
- /** Creates an empty instance of {@link XmlBoolean} */
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().newInstance(type, null);
+ }
+
+ /**
+ * Creates an empty instance of {@link XmlBoolean}
+ */
public static XmlBoolean newInstance(org.apache.xmlbeans.XmlOptions options) {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().newInstance( type, options ); }
-
- /** Creates an immutable {@link XmlBoolean} value */
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().newInstance(type, options);
+ }
+
+ /**
+ * Creates an immutable {@link XmlBoolean} value
+ */
public static XmlBoolean newValue(Object obj) {
- return (XmlBoolean) type.newValue( obj ); }
-
- /** Parses a {@link XmlBoolean} fragment from a String. For example: "<code><xml-fragment>true</xml-fragment></code>". */
+ return (XmlBoolean) type.newValue(obj);
+ }
+
+ /**
+ * Parses a {@link XmlBoolean} fragment from a String. For example: "<code><xml-fragment>true</xml-fragment></code>".
+ */
public static XmlBoolean parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().parse( s, type, null ); }
-
- /** Parses a {@link XmlBoolean} fragment from a String. For example: "<code><xml-fragment>true</xml-fragment></code>". */
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().parse(s, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlBoolean} fragment from a String. For example: "<code><xml-fragment>true</xml-fragment></code>".
+ */
public static XmlBoolean parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().parse( s, type, options ); }
-
- /** Parses a {@link XmlBoolean} fragment from a File. */
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().parse(s, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlBoolean} fragment from a File.
+ */
public static XmlBoolean parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().parse( f, type, null ); }
-
- /** Parses a {@link XmlBoolean} fragment from a File. */
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().parse(f, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlBoolean} fragment from a File.
+ */
public static XmlBoolean parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().parse( f, type, options ); }
-
- /** Parses a {@link XmlBoolean} fragment from a URL. */
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().parse(f, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlBoolean} fragment from a URL.
+ */
public static XmlBoolean parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().parse( u, type, null ); }
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().parse(u, type, null);
+ }
- /** Parses a {@link XmlBoolean} fragment from a URL. */
+ /**
+ * Parses a {@link XmlBoolean} fragment from a URL.
+ */
public static XmlBoolean parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().parse( u, type, options ); }
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().parse(u, type, options);
+ }
- /** Parses a {@link XmlBoolean} fragment from an InputStream. */
+ /**
+ * Parses a {@link XmlBoolean} fragment from an InputStream.
+ */
public static XmlBoolean parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().parse( is, type, null ); }
-
- /** Parses a {@link XmlBoolean} fragment from an InputStream. */
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().parse(is, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlBoolean} fragment from an InputStream.
+ */
public static XmlBoolean parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().parse( is, type, options ); }
-
- /** Parses a {@link XmlBoolean} fragment from a Reader. */
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().parse(is, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlBoolean} fragment from a Reader.
+ */
public static XmlBoolean parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().parse( r, type, null ); }
-
- /** Parses a {@link XmlBoolean} fragment from a Reader. */
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().parse(r, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlBoolean} fragment from a Reader.
+ */
public static XmlBoolean parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().parse( r, type, options ); }
-
- /** Parses a {@link XmlBoolean} fragment from a DOM Node. */
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().parse(r, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlBoolean} fragment from a DOM Node.
+ */
public static XmlBoolean parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().parse( node, type, null ); }
-
- /** Parses a {@link XmlBoolean} fragment from a DOM Node. */
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().parse(node, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlBoolean} fragment from a DOM Node.
+ */
public static XmlBoolean parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().parse( node, type, options ); }
-
- /** Parses a {@link XmlBoolean} fragment from an XMLInputStream.
- * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
- */
- public static XmlBoolean parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
-
- /** Parses a {@link XmlBoolean} fragment from an XMLInputStream.
- * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
- */
- public static XmlBoolean 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 (XmlBoolean) XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
-
- /** Parses a {@link XmlBoolean} fragment from an XMLStreamReader. */
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().parse(node, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlBoolean} fragment from an XMLStreamReader.
+ */
public static XmlBoolean parse(javax.xml.stream.XMLStreamReader xsr) throws org.apache.xmlbeans.XmlException {
- return (XmlBoolean) XmlBeans.getContextTypeLoader().parse( xsr, type, null ); }
-
- /** Parses a {@link XmlBoolean} fragment from an XMLStreamReader. */
- public static XmlBoolean parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException{
- return (XmlBoolean) 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 (XmlBoolean) XmlBeans.getContextTypeLoader().parse(xsr, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlBoolean} fragment from an XMLStreamReader.
+ */
+ public static XmlBoolean parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
+ return (XmlBoolean) XmlBeans.getContextTypeLoader().parse(xsr, type, options);
+ }
+
+ private Factory() {
+ // No instance of this class allowed
+ }
}
}
Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlByte.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlByte.java?rev=1881778&r1=1881777&r2=1881778&view=diff
==============================================================================
--- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlByte.java (original)
+++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlByte.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/#byte">xs:byte</a> type.
* <p>
- * Naturally, convertible to Java byte.
- */
-public interface XmlByte extends XmlShort
-{
- /** The constant {@link SchemaType} object representing this schema type. */
- public static final SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_byte");
-
+ * Naturally, convertible to Java byte.
+ */
+public interface XmlByte extends XmlShort {
+ /**
+ * The constant {@link SchemaType} object representing this schema type.
+ */
+ SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_byte");
+
/**
* Returns this value as a byte
+ *
* @deprecated replaced by {@link #getByteValue}
**/
public byte byteValue();
+
/**
* Sets this value as a byte
+ *
* @deprecated replaced by {@link #setByteValue}
**/
public void set(byte s);
- /** Returns this value as a byte */
+ /**
+ * Returns this value as a byte
+ */
public byte getByteValue();
- /** Sets this value as a byte */
+
+ /**
+ * Sets this value as a byte
+ */
public void setByteValue(byte s);
-
+
/**
* A class with methods for creating instances
* of {@link XmlByte}.
*/
- public static final class Factory
- {
- /** Creates an empty instance of {@link XmlByte} */
+ final class Factory {
+ /**
+ * Creates an empty instance of {@link XmlByte}
+ */
public static XmlByte newInstance() {
- return (XmlByte) XmlBeans.getContextTypeLoader().newInstance( type, null ); }
-
- /** Creates an empty instance of {@link XmlByte} */
+ return (XmlByte) XmlBeans.getContextTypeLoader().newInstance(type, null);
+ }
+
+ /**
+ * Creates an empty instance of {@link XmlByte}
+ */
public static XmlByte newInstance(org.apache.xmlbeans.XmlOptions options) {
- return (XmlByte) XmlBeans.getContextTypeLoader().newInstance( type, options ); }
-
- /** Creates an immutable {@link XmlByte} value */
+ return (XmlByte) XmlBeans.getContextTypeLoader().newInstance(type, options);
+ }
+
+ /**
+ * Creates an immutable {@link XmlByte} value
+ */
public static XmlByte newValue(Object obj) {
- return (XmlByte) type.newValue( obj ); }
-
- /** Parses a {@link XmlByte} fragment from a String. For example: "<code><xml-fragment>123</xml-fragment></code>". */
+ return (XmlByte) type.newValue(obj);
+ }
+
+ /**
+ * Parses a {@link XmlByte} fragment from a String. For example: "<code><xml-fragment>123</xml-fragment></code>".
+ */
public static XmlByte parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
- return (XmlByte) XmlBeans.getContextTypeLoader().parse( s, type, null ); }
-
- /** Parses a {@link XmlByte} fragment from a String. For example: "<code><xml-fragment>123</xml-fragment></code>". */
+ return (XmlByte) XmlBeans.getContextTypeLoader().parse(s, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlByte} fragment from a String. For example: "<code><xml-fragment>123</xml-fragment></code>".
+ */
public static XmlByte parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
- return (XmlByte) XmlBeans.getContextTypeLoader().parse( s, type, options ); }
-
- /** Parses a {@link XmlByte} fragment from a File. */
+ return (XmlByte) XmlBeans.getContextTypeLoader().parse(s, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlByte} fragment from a File.
+ */
public static XmlByte parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlByte) XmlBeans.getContextTypeLoader().parse( f, type, null ); }
-
- /** Parses a {@link XmlByte} fragment from a File. */
+ return (XmlByte) XmlBeans.getContextTypeLoader().parse(f, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlByte} fragment from a File.
+ */
public static XmlByte parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlByte) XmlBeans.getContextTypeLoader().parse( f, type, options ); }
-
- /** Parses a {@link XmlByte} fragment from a URL. */
+ return (XmlByte) XmlBeans.getContextTypeLoader().parse(f, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlByte} fragment from a URL.
+ */
public static XmlByte parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlByte) XmlBeans.getContextTypeLoader().parse( u, type, null ); }
+ return (XmlByte) XmlBeans.getContextTypeLoader().parse(u, type, null);
+ }
- /** Parses a {@link XmlByte} fragment from a URL. */
+ /**
+ * Parses a {@link XmlByte} fragment from a URL.
+ */
public static XmlByte parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlByte) XmlBeans.getContextTypeLoader().parse( u, type, options ); }
+ return (XmlByte) XmlBeans.getContextTypeLoader().parse(u, type, options);
+ }
- /** Parses a {@link XmlByte} fragment from an InputStream. */
+ /**
+ * Parses a {@link XmlByte} fragment from an InputStream.
+ */
public static XmlByte parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlByte) XmlBeans.getContextTypeLoader().parse( is, type, null ); }
-
- /** Parses a {@link XmlByte} fragment from an InputStream. */
+ return (XmlByte) XmlBeans.getContextTypeLoader().parse(is, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlByte} fragment from an InputStream.
+ */
public static XmlByte parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlByte) XmlBeans.getContextTypeLoader().parse( is, type, options ); }
-
- /** Parses a {@link XmlByte} fragment from a Reader. */
+ return (XmlByte) XmlBeans.getContextTypeLoader().parse(is, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlByte} fragment from a Reader.
+ */
public static XmlByte parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlByte) XmlBeans.getContextTypeLoader().parse( r, type, null ); }
-
- /** Parses a {@link XmlByte} fragment from a Reader. */
+ return (XmlByte) XmlBeans.getContextTypeLoader().parse(r, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlByte} fragment from a Reader.
+ */
public static XmlByte parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlByte) XmlBeans.getContextTypeLoader().parse( r, type, options ); }
-
- /** Parses a {@link XmlByte} fragment from a DOM Node. */
+ return (XmlByte) XmlBeans.getContextTypeLoader().parse(r, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlByte} fragment from a DOM Node.
+ */
public static XmlByte parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
- return (XmlByte) XmlBeans.getContextTypeLoader().parse( node, type, null ); }
-
- /** Parses a {@link XmlByte} fragment from a DOM Node. */
+ return (XmlByte) XmlBeans.getContextTypeLoader().parse(node, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlByte} fragment from a DOM Node.
+ */
public static XmlByte parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
- return (XmlByte) XmlBeans.getContextTypeLoader().parse( node, type, options ); }
-
- /** Parses a {@link XmlByte} fragment from an XMLInputStream.
- * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
- */
- public static XmlByte parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
- return (XmlByte) XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
-
- /** Parses a {@link XmlByte} fragment from an XMLInputStream.
- * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
- */
- public static XmlByte 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 (XmlByte) XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
-
- /** Parses a {@link XmlByte} fragment from an XMLStreamReader. */
+ return (XmlByte) XmlBeans.getContextTypeLoader().parse(node, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlByte} fragment from an XMLStreamReader.
+ */
public static XmlByte parse(javax.xml.stream.XMLStreamReader xsr) throws org.apache.xmlbeans.XmlException {
- return (XmlByte) XmlBeans.getContextTypeLoader().parse( xsr, type, null ); }
-
- /** Parses a {@link XmlByte} fragment from an XMLStreamReader. */
- public static XmlByte parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException{
- return (XmlByte) 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 (XmlByte) XmlBeans.getContextTypeLoader().parse(xsr, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlByte} fragment from an XMLStreamReader.
+ */
+ public static XmlByte parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
+ return (XmlByte) XmlBeans.getContextTypeLoader().parse(xsr, type, options);
+ }
+
+ private Factory() {
+ // No instance of this class allowed
+ }
}
}
Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDate.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDate.java?rev=1881778&r1=1881777&r2=1881778&view=diff
==============================================================================
--- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDate.java (original)
+++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDate.java Thu Sep 17 00:04:39 2020
@@ -15,11 +15,8 @@
package org.apache.xmlbeans;
-import javax.xml.stream.XMLStreamReader;
-
-
-import java.util.Date;
import java.util.Calendar;
+import java.util.Date;
/**
@@ -27,159 +24,216 @@ import java.util.Calendar;
* <a target="_blank" href="http://www.w3.org/TR/xmlschema-2/#date">xs:date</a> type.
* <p>
* Convertible to {@link Calendar}, {@link Date}, and {@link GDate}.
- *
+ *
* @see XmlCalendar
* @see GDate
- */
-public interface XmlDate extends XmlAnySimpleType
-{
- /** The constant {@link SchemaType} object representing this schema type. */
- public static final SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_date");
+ */
+public interface XmlDate extends XmlAnySimpleType {
+ /**
+ * The constant {@link SchemaType} object representing this schema type.
+ */
+ SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_date");
/**
* 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 a {@link Date}
+ *
* @deprecated replaced with {@link #getDateValue}
**/
Date dateValue();
+
/**
* Sets this value as a {@link Date}
+ *
* @deprecated replaced with {@link #setDateValue}
**/
void set(Date d);
- /** Returns this value as a {@link Calendar} */
+ /**
+ * 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 a {@link Date} */
+
+ /**
+ * Returns this value as a {@link Date}
+ */
Date getDateValue();
- /** Sets this value as a {@link Date} */
+
+ /**
+ * Sets this value as a {@link Date}
+ */
void setDateValue(Date d);
/**
* A class with methods for creating instances
* of {@link XmlDate}.
*/
- public static final class Factory
- {
- /** Creates an empty instance of {@link XmlDate} */
+ final class Factory {
+ /**
+ * Creates an empty instance of {@link XmlDate}
+ */
public static XmlDate newInstance() {
- return (XmlDate) XmlBeans.getContextTypeLoader().newInstance( type, null ); }
-
- /** Creates an empty instance of {@link XmlDate} */
+ return (XmlDate) XmlBeans.getContextTypeLoader().newInstance(type, null);
+ }
+
+ /**
+ * Creates an empty instance of {@link XmlDate}
+ */
public static XmlDate newInstance(org.apache.xmlbeans.XmlOptions options) {
- return (XmlDate) XmlBeans.getContextTypeLoader().newInstance( type, options ); }
-
- /** Creates an immutable {@link XmlDate} value */
+ return (XmlDate) XmlBeans.getContextTypeLoader().newInstance(type, options);
+ }
+
+ /**
+ * Creates an immutable {@link XmlDate} value
+ */
public static XmlDate newValue(Object obj) {
- return (XmlDate) type.newValue( obj ); }
-
- /** Parses a {@link XmlDate} fragment from a String. For example: "<code><xml-fragment>2003-06-14</xml-fragment></code>". */
+ return (XmlDate) type.newValue(obj);
+ }
+
+ /**
+ * Parses a {@link XmlDate} fragment from a String. For example: "<code><xml-fragment>2003-06-14</xml-fragment></code>".
+ */
public static XmlDate parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
- return (XmlDate) XmlBeans.getContextTypeLoader().parse( s, type, null ); }
-
- /** Parses a {@link XmlDate} fragment from a String. For example: "<code><xml-fragment>2003-06-14</xml-fragment></code>". */
+ return (XmlDate) XmlBeans.getContextTypeLoader().parse(s, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDate} fragment from a String. For example: "<code><xml-fragment>2003-06-14</xml-fragment></code>".
+ */
public static XmlDate parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
- return (XmlDate) XmlBeans.getContextTypeLoader().parse( s, type, options ); }
-
- /** Parses a {@link XmlDate} fragment from a File. */
+ return (XmlDate) XmlBeans.getContextTypeLoader().parse(s, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDate} fragment from a File.
+ */
public static XmlDate parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDate) XmlBeans.getContextTypeLoader().parse( f, type, null ); }
-
- /** Parses a {@link XmlDate} fragment from a File. */
+ return (XmlDate) XmlBeans.getContextTypeLoader().parse(f, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDate} fragment from a File.
+ */
public static XmlDate parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDate) XmlBeans.getContextTypeLoader().parse( f, type, options ); }
-
- /** Parses a {@link XmlDate} fragment from a URL. */
+ return (XmlDate) XmlBeans.getContextTypeLoader().parse(f, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDate} fragment from a URL.
+ */
public static XmlDate parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDate) XmlBeans.getContextTypeLoader().parse( u, type, null ); }
+ return (XmlDate) XmlBeans.getContextTypeLoader().parse(u, type, null);
+ }
- /** Parses a {@link XmlDate} fragment from a URL. */
+ /**
+ * Parses a {@link XmlDate} fragment from a URL.
+ */
public static XmlDate parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDate) XmlBeans.getContextTypeLoader().parse( u, type, options ); }
+ return (XmlDate) XmlBeans.getContextTypeLoader().parse(u, type, options);
+ }
- /** Parses a {@link XmlDate} fragment from an InputStream. */
+ /**
+ * Parses a {@link XmlDate} fragment from an InputStream.
+ */
public static XmlDate parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDate) XmlBeans.getContextTypeLoader().parse( is, type, null ); }
-
- /** Parses a {@link XmlDate} fragment from an InputStream. */
+ return (XmlDate) XmlBeans.getContextTypeLoader().parse(is, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDate} fragment from an InputStream.
+ */
public static XmlDate parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDate) XmlBeans.getContextTypeLoader().parse( is, type, options ); }
-
- /** Parses a {@link XmlDate} fragment from a Reader. */
+ return (XmlDate) XmlBeans.getContextTypeLoader().parse(is, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDate} fragment from a Reader.
+ */
public static XmlDate parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDate) XmlBeans.getContextTypeLoader().parse( r, type, null ); }
-
- /** Parses a {@link XmlDate} fragment from a Reader. */
+ return (XmlDate) XmlBeans.getContextTypeLoader().parse(r, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDate} fragment from a Reader.
+ */
public static XmlDate parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDate) XmlBeans.getContextTypeLoader().parse( r, type, options ); }
-
- /** Parses a {@link XmlDate} fragment from a DOM Node. */
+ return (XmlDate) XmlBeans.getContextTypeLoader().parse(r, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDate} fragment from a DOM Node.
+ */
public static XmlDate parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
- return (XmlDate) XmlBeans.getContextTypeLoader().parse( node, type, null ); }
-
- /** Parses a {@link XmlDate} fragment from a DOM Node. */
+ return (XmlDate) XmlBeans.getContextTypeLoader().parse(node, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDate} fragment from a DOM Node.
+ */
public static XmlDate parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
- return (XmlDate) XmlBeans.getContextTypeLoader().parse( node, type, options ); }
-
- /** Parses a {@link XmlDate} fragment from an XMLInputStream.
- * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
- */
- public static XmlDate parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
- return (XmlDate) XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
-
- /** Parses a {@link XmlDate} fragment from an XMLInputStream.
- * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
- */
- public static XmlDate 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 (XmlDate) XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
-
- /** Parses a {@link XmlDate} fragment from an XMLStreamReader. */
+ return (XmlDate) XmlBeans.getContextTypeLoader().parse(node, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDate} fragment from an XMLStreamReader.
+ */
public static XmlDate parse(javax.xml.stream.XMLStreamReader xsr) throws org.apache.xmlbeans.XmlException {
- return (XmlDate) XmlBeans.getContextTypeLoader().parse( xsr, type, null ); }
-
- /** Parses a {@link XmlDate} fragment from an XMLStreamReader. */
- public static XmlDate parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException{
- return (XmlDate) 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 (XmlDate) XmlBeans.getContextTypeLoader().parse(xsr, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDate} fragment from an XMLStreamReader.
+ */
+ public static XmlDate parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
+ return (XmlDate) XmlBeans.getContextTypeLoader().parse(xsr, type, options);
+ }
+
+ private Factory() {
+ // No instance of this class allowed
+ }
}
}
Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDateTime.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDateTime.java?rev=1881778&r1=1881777&r2=1881778&view=diff
==============================================================================
--- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDateTime.java (original)
+++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDateTime.java Thu Sep 17 00:04:39 2020
@@ -15,11 +15,8 @@
package org.apache.xmlbeans;
-import javax.xml.stream.XMLStreamReader;
-
-
-import java.util.Date;
import java.util.Calendar;
+import java.util.Date;
/**
@@ -31,158 +28,216 @@ import java.util.Calendar;
* <p>
* The XmlDateTime class only encapsulates a schema DateTime value, if you need to perform operations
* on dates, see the GDate class
+ *
* @see XmlCalendar
* @see GDate
* @see GDuration
- */
-public interface XmlDateTime extends XmlAnySimpleType
-{
- /** The constant {@link SchemaType} object representing this schema type. */
- public static final SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_dateTime");
-
+ */
+public interface XmlDateTime extends XmlAnySimpleType {
+ /**
+ * The constant {@link SchemaType} object representing this schema type.
+ */
+ SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_dateTime");
+
/**
* 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 a {@link Date}
+ *
* @deprecated replaced with {@link #getDateValue}
**/
Date dateValue();
+
/**
* Sets this value as a {@link Date}
+ *
* @deprecated replaced with {@link #setDateValue}
**/
void set(Date d);
- /** Returns this value as a {@link Calendar} */
+ /**
+ * 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 a {@link Date} */
+
+ /**
+ * Returns this value as a {@link Date}
+ */
Date getDateValue();
- /** Sets this value as a {@link Date} */
+
+ /**
+ * Sets this value as a {@link Date}
+ */
void setDateValue(Date d);
/**
* A class with methods for creating instances
* of {@link XmlDateTime}.
*/
- public static final class Factory
- {
- /** Creates an empty instance of {@link XmlDateTime} */
+ final class Factory {
+ /**
+ * Creates an empty instance of {@link XmlDateTime}
+ */
public static XmlDateTime newInstance() {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().newInstance( type, null ); }
-
- /** Creates an empty instance of {@link XmlDateTime} */
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().newInstance(type, null);
+ }
+
+ /**
+ * Creates an empty instance of {@link XmlDateTime}
+ */
public static XmlDateTime newInstance(org.apache.xmlbeans.XmlOptions options) {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().newInstance( type, options ); }
-
- /** Creates an immutable {@link XmlDateTime} value */
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().newInstance(type, options);
+ }
+
+ /**
+ * Creates an immutable {@link XmlDateTime} value
+ */
public static XmlDateTime newValue(Object obj) {
- return (XmlDateTime) type.newValue( obj ); }
-
- /** Parses a {@link XmlDateTime} fragment from a String. For example: "<code><xml-fragment>2003-06-14T12:00:00</xml-fragment></code>". */
+ return (XmlDateTime) type.newValue(obj);
+ }
+
+ /**
+ * Parses a {@link XmlDateTime} fragment from a String. For example: "<code><xml-fragment>2003-06-14T12:00:00</xml-fragment></code>".
+ */
public static XmlDateTime parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().parse( s, type, null ); }
-
- /** Parses a {@link XmlDateTime} fragment from a String. For example: "<code><xml-fragment>2003-06-14T12:00:00</xml-fragment></code>". */
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(s, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDateTime} fragment from a String. For example: "<code><xml-fragment>2003-06-14T12:00:00</xml-fragment></code>".
+ */
public static XmlDateTime parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().parse( s, type, options ); }
-
- /** Parses a {@link XmlDateTime} fragment from a File. */
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(s, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDateTime} fragment from a File.
+ */
public static XmlDateTime parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().parse( f, type, null ); }
-
- /** Parses a {@link XmlDateTime} fragment from a File. */
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(f, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDateTime} fragment from a File.
+ */
public static XmlDateTime parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().parse( f, type, options ); }
-
- /** Parses a {@link XmlDateTime} fragment from a URL. */
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(f, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDateTime} fragment from a URL.
+ */
public static XmlDateTime parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().parse( u, type, null ); }
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(u, type, null);
+ }
- /** Parses a {@link XmlDateTime} fragment from a URL. */
+ /**
+ * Parses a {@link XmlDateTime} fragment from a URL.
+ */
public static XmlDateTime parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().parse( u, type, options ); }
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(u, type, options);
+ }
- /** Parses a {@link XmlDateTime} fragment from an InputStream. */
+ /**
+ * Parses a {@link XmlDateTime} fragment from an InputStream.
+ */
public static XmlDateTime parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().parse( is, type, null ); }
-
- /** Parses a {@link XmlDateTime} fragment from an InputStream. */
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(is, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDateTime} fragment from an InputStream.
+ */
public static XmlDateTime parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().parse( is, type, options ); }
-
- /** Parses a {@link XmlDateTime} fragment from a Reader. */
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(is, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDateTime} fragment from a Reader.
+ */
public static XmlDateTime parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().parse( r, type, null ); }
-
- /** Parses a {@link XmlDateTime} fragment from a Reader. */
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(r, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDateTime} fragment from a Reader.
+ */
public static XmlDateTime parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().parse( r, type, options ); }
-
- /** Parses a {@link XmlDateTime} fragment from a DOM Node. */
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(r, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDateTime} fragment from a DOM Node.
+ */
public static XmlDateTime parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().parse( node, type, null ); }
-
- /** Parses a {@link XmlDateTime} fragment from a DOM Node. */
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(node, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDateTime} fragment from a DOM Node.
+ */
public static XmlDateTime parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().parse( node, type, options ); }
-
- /** Parses a {@link XmlDateTime} fragment from an XMLInputStream.
- * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
- */
- public static XmlDateTime parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
-
- /** Parses a {@link XmlDateTime} fragment from an XMLInputStream.
- * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
- */
- public static XmlDateTime 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 (XmlDateTime) XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
-
- /** Parses a {@link XmlDateTime} fragment from an XMLStreamReader. */
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(node, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDateTime} fragment from an XMLStreamReader.
+ */
public static XmlDateTime parse(javax.xml.stream.XMLStreamReader xsr) throws org.apache.xmlbeans.XmlException {
- return (XmlDateTime) XmlBeans.getContextTypeLoader().parse( xsr, type, null ); }
-
- /** Parses a {@link XmlDateTime} fragment from an XMLStreamReader. */
- public static XmlDateTime parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException{
- return (XmlDateTime) 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 (XmlDateTime) XmlBeans.getContextTypeLoader().parse(xsr, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDateTime} fragment from an XMLStreamReader.
+ */
+ public static XmlDateTime parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
+ return (XmlDateTime) XmlBeans.getContextTypeLoader().parse(xsr, type, options);
+ }
+
+ private Factory() {
+ // No instance of this class allowed
+ }
}
}
Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDecimal.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDecimal.java?rev=1881778&r1=1881777&r2=1881778&view=diff
==============================================================================
--- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDecimal.java (original)
+++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDecimal.java Thu Sep 17 00:04:39 2020
@@ -15,9 +15,6 @@
package org.apache.xmlbeans;
-import javax.xml.stream.XMLStreamReader;
-
-
import java.math.BigDecimal;
/**
@@ -25,24 +22,33 @@ import java.math.BigDecimal;
* <a target="_blank" href="http://www.w3.org/TR/xmlschema-2/#decimal">xs:decimal</a> type.
* <p>
* Convertible to {@link BigDecimal}.
- */
-public interface XmlDecimal extends XmlAnySimpleType
-{
- /** The constant {@link SchemaType} object representing this schema type. */
- public static final SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_decimal");
-
- /** Returns this value as a {@link BigDecimal} */
+ */
+public interface XmlDecimal extends XmlAnySimpleType {
+ /**
+ * The constant {@link SchemaType} object representing this schema type.
+ */
+ SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_decimal");
+
+ /**
+ * Returns this value as a {@link BigDecimal}
+ */
BigDecimal getBigDecimalValue();
- /** Sets this value as a {@link BigDecimal} */
+
+ /**
+ * Sets this value as a {@link BigDecimal}
+ */
void setBigDecimalValue(BigDecimal bd);
/**
* Returns this value as a {@link BigDecimal}
+ *
* @deprecated replaced with {@link #getBigDecimalValue}
**/
BigDecimal bigDecimalValue();
+
/**
* Sets this value as a {@link BigDecimal}
+ *
* @deprecated replaced with {@link #setBigDecimalValue}
**/
void set(BigDecimal bd);
@@ -51,101 +57,129 @@ public interface XmlDecimal extends XmlA
* A class with methods for creating instances
* of {@link XmlDecimal}.
*/
- public static final class Factory
- {
- /** Creates an empty instance of {@link XmlDecimal} */
+ final class Factory {
+ /**
+ * Creates an empty instance of {@link XmlDecimal}
+ */
public static XmlDecimal newInstance() {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().newInstance( type, null ); }
-
- /** Creates an empty instance of {@link XmlDecimal} */
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().newInstance(type, null);
+ }
+
+ /**
+ * Creates an empty instance of {@link XmlDecimal}
+ */
public static XmlDecimal newInstance(org.apache.xmlbeans.XmlOptions options) {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().newInstance( type, options ); }
-
- /** Creates an immutable {@link XmlDecimal} value */
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().newInstance(type, options);
+ }
+
+ /**
+ * Creates an immutable {@link XmlDecimal} value
+ */
public static XmlDecimal newValue(Object obj) {
- return (XmlDecimal) type.newValue( obj ); }
-
- /** Parses a {@link XmlDecimal} fragment from a String. For example: "<code><xml-fragment>1234.56789</xml-fragment></code>". */
+ return (XmlDecimal) type.newValue(obj);
+ }
+
+ /**
+ * Parses a {@link XmlDecimal} fragment from a String. For example: "<code><xml-fragment>1234.56789</xml-fragment></code>".
+ */
public static XmlDecimal parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().parse( s, type, null ); }
-
- /** Parses a {@link XmlDecimal} fragment from a String. For example: "<code><xml-fragment>1234.56789</xml-fragment></code>". */
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().parse(s, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDecimal} fragment from a String. For example: "<code><xml-fragment>1234.56789</xml-fragment></code>".
+ */
public static XmlDecimal parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().parse( s, type, options ); }
-
- /** Parses a {@link XmlDecimal} fragment from a File. */
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().parse(s, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDecimal} fragment from a File.
+ */
public static XmlDecimal parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().parse( f, type, null ); }
-
- /** Parses a {@link XmlDecimal} fragment from a File. */
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().parse(f, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDecimal} fragment from a File.
+ */
public static XmlDecimal parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().parse( f, type, options ); }
-
- /** Parses a {@link XmlDecimal} fragment from a URL. */
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().parse(f, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDecimal} fragment from a URL.
+ */
public static XmlDecimal parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().parse( u, type, null ); }
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().parse(u, type, null);
+ }
- /** Parses a {@link XmlDecimal} fragment from a URL. */
+ /**
+ * Parses a {@link XmlDecimal} fragment from a URL.
+ */
public static XmlDecimal parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().parse( u, type, options ); }
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().parse(u, type, options);
+ }
- /** Parses a {@link XmlDecimal} fragment from an InputStream. */
+ /**
+ * Parses a {@link XmlDecimal} fragment from an InputStream.
+ */
public static XmlDecimal parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().parse( is, type, null ); }
-
- /** Parses a {@link XmlDecimal} fragment from an InputStream. */
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().parse(is, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDecimal} fragment from an InputStream.
+ */
public static XmlDecimal parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().parse( is, type, options ); }
-
- /** Parses a {@link XmlDecimal} fragment from a Reader. */
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().parse(is, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDecimal} fragment from a Reader.
+ */
public static XmlDecimal parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().parse( r, type, null ); }
-
- /** Parses a {@link XmlDecimal} fragment from a Reader. */
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().parse(r, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDecimal} fragment from a Reader.
+ */
public static XmlDecimal parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().parse( r, type, options ); }
-
- /** Parses a {@link XmlDecimal} fragment from a DOM Node. */
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().parse(r, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDecimal} fragment from a DOM Node.
+ */
public static XmlDecimal parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().parse( node, type, null ); }
-
- /** Parses a {@link XmlDecimal} fragment from a DOM Node. */
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().parse(node, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDecimal} fragment from a DOM Node.
+ */
public static XmlDecimal parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().parse( node, type, options ); }
-
- /** Parses a {@link XmlDecimal} fragment from an XMLInputStream.
- * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
- */
- public static XmlDecimal parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
-
- /** Parses a {@link XmlDecimal} fragment from an XMLInputStream.
- * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
- */
- public static XmlDecimal 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 (XmlDecimal) XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
-
- /** Parses a {@link XmlDecimal} fragment from an XMLStreamReader. */
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().parse(node, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDecimal} fragment from an XMLStreamReader.
+ */
public static XmlDecimal parse(javax.xml.stream.XMLStreamReader xsr) throws org.apache.xmlbeans.XmlException {
- return (XmlDecimal) XmlBeans.getContextTypeLoader().parse( xsr, type, null ); }
-
- /** Parses a {@link XmlDecimal} fragment from an XMLStreamReader. */
- public static XmlDecimal parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException{
- return (XmlDecimal) 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 (XmlDecimal) XmlBeans.getContextTypeLoader().parse(xsr, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDecimal} fragment from an XMLStreamReader.
+ */
+ public static XmlDecimal parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
+ return (XmlDecimal) XmlBeans.getContextTypeLoader().parse(xsr, type, options);
+ }
+
+ private Factory() {
+ // No instance of this class allowed
+ }
}
}
Modified: xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDouble.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDouble.java?rev=1881778&r1=1881777&r2=1881778&view=diff
==============================================================================
--- xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDouble.java (original)
+++ xmlbeans/trunk/src/main/java/org/apache/xmlbeans/XmlDouble.java Thu Sep 17 00:04:39 2020
@@ -15,32 +15,38 @@
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/#double">xs:double</a> type.
* <p>
* Naturally, convertible to a Java double.
- */
-public interface XmlDouble extends XmlAnySimpleType
-{
- /** The constant {@link SchemaType} object representing this schema type. */
- public static final SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_double");
-
- /** Returns this value as a double */
+ */
+public interface XmlDouble extends XmlAnySimpleType {
+ /**
+ * The constant {@link SchemaType} object representing this schema type.
+ */
+ SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_double");
+
+ /**
+ * Returns this value as a double
+ */
double getDoubleValue();
- /** Sets this value as a double */
+
+ /**
+ * Sets this value as a double
+ */
void setDoubleValue(double v);
/**
* Returns this value as a double
+ *
* @deprecated replaced with {@link #getDoubleValue}
**/
double doubleValue();
+
/**
* Sets this value as a double
+ *
* @deprecated replaced with {@link #setDoubleValue}
**/
void set(double v);
@@ -49,101 +55,129 @@ public interface XmlDouble extends XmlAn
* A class with methods for creating instances
* of {@link XmlDouble}.
*/
- public static final class Factory
- {
- /** Creates an empty instance of {@link XmlDouble} */
+ final class Factory {
+ /**
+ * Creates an empty instance of {@link XmlDouble}
+ */
public static XmlDouble newInstance() {
- return (XmlDouble) XmlBeans.getContextTypeLoader().newInstance( type, null ); }
-
- /** Creates an empty instance of {@link XmlDouble} */
+ return (XmlDouble) XmlBeans.getContextTypeLoader().newInstance(type, null);
+ }
+
+ /**
+ * Creates an empty instance of {@link XmlDouble}
+ */
public static XmlDouble newInstance(org.apache.xmlbeans.XmlOptions options) {
- return (XmlDouble) XmlBeans.getContextTypeLoader().newInstance( type, options ); }
-
- /** Creates an immutable {@link XmlDouble} value */
+ return (XmlDouble) XmlBeans.getContextTypeLoader().newInstance(type, options);
+ }
+
+ /**
+ * Creates an immutable {@link XmlDouble} value
+ */
public static XmlDouble newValue(Object obj) {
- return (XmlDouble) type.newValue( obj ); }
-
- /** Parses a {@link XmlDouble} fragment from a String. For example: "<code><xml-fragment>123.34e+57</xml-fragment></code>". */
+ return (XmlDouble) type.newValue(obj);
+ }
+
+ /**
+ * Parses a {@link XmlDouble} fragment from a String. For example: "<code><xml-fragment>123.34e+57</xml-fragment></code>".
+ */
public static XmlDouble parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
- return (XmlDouble) XmlBeans.getContextTypeLoader().parse( s, type, null ); }
-
- /** Parses a {@link XmlDouble} fragment from a String. For example: "<code><xml-fragment>123.34e+57</xml-fragment></code>". */
+ return (XmlDouble) XmlBeans.getContextTypeLoader().parse(s, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDouble} fragment from a String. For example: "<code><xml-fragment>123.34e+57</xml-fragment></code>".
+ */
public static XmlDouble parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
- return (XmlDouble) XmlBeans.getContextTypeLoader().parse( s, type, options ); }
-
- /** Parses a {@link XmlDouble} fragment from a File. */
+ return (XmlDouble) XmlBeans.getContextTypeLoader().parse(s, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDouble} fragment from a File.
+ */
public static XmlDouble parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDouble) XmlBeans.getContextTypeLoader().parse( f, type, null ); }
-
- /** Parses a {@link XmlDouble} fragment from a File. */
+ return (XmlDouble) XmlBeans.getContextTypeLoader().parse(f, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDouble} fragment from a File.
+ */
public static XmlDouble parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDouble) XmlBeans.getContextTypeLoader().parse( f, type, options ); }
-
- /** Parses a {@link XmlDouble} fragment from a URL. */
+ return (XmlDouble) XmlBeans.getContextTypeLoader().parse(f, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDouble} fragment from a URL.
+ */
public static XmlDouble parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDouble) XmlBeans.getContextTypeLoader().parse( u, type, null ); }
+ return (XmlDouble) XmlBeans.getContextTypeLoader().parse(u, type, null);
+ }
- /** Parses a {@link XmlDouble} fragment from a URL. */
+ /**
+ * Parses a {@link XmlDouble} fragment from a URL.
+ */
public static XmlDouble parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDouble) XmlBeans.getContextTypeLoader().parse( u, type, options ); }
+ return (XmlDouble) XmlBeans.getContextTypeLoader().parse(u, type, options);
+ }
- /** Parses a {@link XmlDouble} fragment from an InputStream. */
+ /**
+ * Parses a {@link XmlDouble} fragment from an InputStream.
+ */
public static XmlDouble parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDouble) XmlBeans.getContextTypeLoader().parse( is, type, null ); }
-
- /** Parses a {@link XmlDouble} fragment from an InputStream. */
+ return (XmlDouble) XmlBeans.getContextTypeLoader().parse(is, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDouble} fragment from an InputStream.
+ */
public static XmlDouble parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDouble) XmlBeans.getContextTypeLoader().parse( is, type, options ); }
-
- /** Parses a {@link XmlDouble} fragment from a Reader. */
+ return (XmlDouble) XmlBeans.getContextTypeLoader().parse(is, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDouble} fragment from a Reader.
+ */
public static XmlDouble parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDouble) XmlBeans.getContextTypeLoader().parse( r, type, null ); }
-
- /** Parses a {@link XmlDouble} fragment from a Reader. */
+ return (XmlDouble) XmlBeans.getContextTypeLoader().parse(r, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDouble} fragment from a Reader.
+ */
public static XmlDouble parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
- return (XmlDouble) XmlBeans.getContextTypeLoader().parse( r, type, options ); }
-
- /** Parses a {@link XmlDouble} fragment from a DOM Node. */
+ return (XmlDouble) XmlBeans.getContextTypeLoader().parse(r, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDouble} fragment from a DOM Node.
+ */
public static XmlDouble parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
- return (XmlDouble) XmlBeans.getContextTypeLoader().parse( node, type, null ); }
-
- /** Parses a {@link XmlDouble} fragment from a DOM Node. */
+ return (XmlDouble) XmlBeans.getContextTypeLoader().parse(node, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDouble} fragment from a DOM Node.
+ */
public static XmlDouble parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
- return (XmlDouble) XmlBeans.getContextTypeLoader().parse( node, type, options ); }
-
- /** Parses a {@link XmlDouble} fragment from an XMLInputStream.
- * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
- */
- public static XmlDouble parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
- return (XmlDouble) XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
-
- /** Parses a {@link XmlDouble} fragment from an XMLInputStream.
- * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
- */
- public static XmlDouble 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 (XmlDouble) XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
-
- /** Parses a {@link XmlDouble} fragment from an XMLStreamReader. */
+ return (XmlDouble) XmlBeans.getContextTypeLoader().parse(node, type, options);
+ }
+
+ /**
+ * Parses a {@link XmlDouble} fragment from an XMLStreamReader.
+ */
public static XmlDouble parse(javax.xml.stream.XMLStreamReader xsr) throws org.apache.xmlbeans.XmlException {
- return (XmlDouble) XmlBeans.getContextTypeLoader().parse( xsr, type, null ); }
-
- /** Parses a {@link XmlDouble} fragment from an XMLStreamReader. */
- public static XmlDouble parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException{
- return (XmlDouble) 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 (XmlDouble) XmlBeans.getContextTypeLoader().parse(xsr, type, null);
+ }
+
+ /**
+ * Parses a {@link XmlDouble} fragment from an XMLStreamReader.
+ */
+ public static XmlDouble parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
+ return (XmlDouble) XmlBeans.getContextTypeLoader().parse(xsr, type, options);
+ }
+
+ private Factory() {
+ // No instance of this class allowed
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org