Home » xmlbeans-2.5.0-src » org.apache » xmlbeans » [javadoc | source]

    1   /*   Copyright 2004 The Apache Software Foundation
    2    *
    3    *   Licensed under the Apache License, Version 2.0 (the "License");
    4    *   you may not use this file except in compliance with the License.
    5    *   You may obtain a copy of the License at
    6    *
    7    *       http://www.apache.org/licenses/LICENSE-2.0
    8    *
    9    *   Unless required by applicable law or agreed to in writing, software
   10    *   distributed under the License is distributed on an "AS IS" BASIS,
   11    *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   12    *   See the License for the specific language governing permissions and
   13    *  limitations under the License.
   14    */
   15   
   16   package org.apache.xmlbeans;
   17   
   18   import javax.xml.stream.XMLStreamReader;
   19   
   20   
   21   import java.math.BigInteger;
   22   
   23   
   24   /**
   25    * Corresponds to the XML Schema
   26    * <a target="_blank" href="http://www.w3.org/TR/xmlschema-2/#unsignedLong">xs:unsignedLong</a> type.
   27    * One of the derived types based on <a target="_blank" href="http://www.w3.org/TR/xmlschema-2/#decimal">xs:decimal</a>.
   28    * <p>
   29    * Verified to be in the range 0..2<super>64</super>-1 when validating.
   30    * <p>
   31    * Convertible to {@link BigInteger}.
   32    */ 
   33   public interface XmlUnsignedLong extends XmlNonNegativeInteger
   34   {
   35       /** The constant {@link SchemaType} object representing this schema type. */
   36       public static final SchemaType type = XmlBeans.getBuiltinTypeSystem().typeForHandle("_BI_unsignedLong");
   37       
   38       /**
   39        * A class with methods for creating instances
   40        * of {@link XmlUnsignedLong}.
   41        */
   42       public static final class Factory
   43       {
   44           /** Creates an empty instance of {@link XmlUnsignedLong} */
   45           public static XmlUnsignedLong newInstance() {
   46             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().newInstance( type, null ); }
   47           
   48           /** Creates an empty instance of {@link XmlUnsignedLong} */
   49           public static XmlUnsignedLong newInstance(org.apache.xmlbeans.XmlOptions options) {
   50             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().newInstance( type, options ); }
   51           
   52           /** Creates an immutable {@link XmlUnsignedLong} value */
   53           public static XmlUnsignedLong newValue(Object obj) {
   54             return (XmlUnsignedLong) type.newValue( obj ); }
   55           
   56           /** Parses a {@link XmlUnsignedLong} fragment from a String. For example: "<code>&lt;xml-fragment&gt;123456789&lt;/xml-fragment&gt;</code>". */
   57           public static XmlUnsignedLong parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
   58             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( s, type, null ); }
   59           
   60           /** Parses a {@link XmlUnsignedLong} fragment from a String. For example: "<code>&lt;xml-fragment&gt;123456789&lt;/xml-fragment&gt;</code>". */
   61           public static XmlUnsignedLong parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
   62             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( s, type, options ); }
   63           
   64           /** Parses a {@link XmlUnsignedLong} fragment from a File. */
   65           public static XmlUnsignedLong parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
   66             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( f, type, null ); }
   67           
   68           /** Parses a {@link XmlUnsignedLong} fragment from a File. */
   69           public static XmlUnsignedLong parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
   70             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( f, type, options ); }
   71           
   72           /** Parses a {@link XmlUnsignedLong} fragment from a URL. */
   73           public static XmlUnsignedLong parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
   74             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( u, type, null ); }
   75   
   76           /** Parses a {@link XmlUnsignedLong} fragment from a URL. */
   77           public static XmlUnsignedLong parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
   78             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( u, type, options ); }
   79   
   80           /** Parses a {@link XmlUnsignedLong} fragment from an InputStream. */
   81           public static XmlUnsignedLong parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
   82             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( is, type, null ); }
   83           
   84           /** Parses a {@link XmlUnsignedLong} fragment from an InputStream. */
   85           public static XmlUnsignedLong parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
   86             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( is, type, options ); }
   87           
   88           /** Parses a {@link XmlUnsignedLong} fragment from a Reader. */
   89           public static XmlUnsignedLong parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
   90             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( r, type, null ); }
   91           
   92           /** Parses a {@link XmlUnsignedLong} fragment from a Reader. */
   93           public static XmlUnsignedLong parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
   94             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( r, type, options ); }
   95           
   96           /** Parses a {@link XmlUnsignedLong} fragment from a DOM Node. */
   97           public static XmlUnsignedLong parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
   98             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( node, type, null ); }
   99           
  100           /** Parses a {@link XmlUnsignedLong} fragment from a DOM Node. */
  101           public static XmlUnsignedLong parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
  102             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( node, type, options ); }
  103           
  104           /** Parses a {@link XmlUnsignedLong} fragment from an XMLInputStream.
  105            * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
  106            */
  107           public static XmlUnsignedLong parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
  108             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
  109           
  110           /** Parses a {@link XmlUnsignedLong} fragment from an XMLInputStream.
  111            * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
  112            */
  113           public static XmlUnsignedLong parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
  114             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
  115           
  116           /** Parses a {@link XmlUnsignedLong} fragment from an XMLStreamReader. */
  117           public static XmlUnsignedLong parse(javax.xml.stream.XMLStreamReader xsr) throws org.apache.xmlbeans.XmlException {
  118             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( xsr, type, null ); }
  119           
  120           /** Parses a {@link XmlUnsignedLong} fragment from an XMLStreamReader. */
  121           public static XmlUnsignedLong parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException{
  122             return (XmlUnsignedLong) XmlBeans.getContextTypeLoader().parse( xsr, type, options ); }
  123           
  124           /** Returns a validating XMLInputStream.
  125            * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
  126            */
  127           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 {
  128             return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
  129           
  130           /** Returns a validating XMLInputStream.
  131            * @deprecated XMLInputStream was deprecated by XMLStreamReader from STaX - jsr173 API.
  132            */
  133           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 {
  134             return XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
  135           
  136           private Factory() { } // No instance of this class allowed
  137       }
  138   }
  139   

Home » xmlbeans-2.5.0-src » org.apache » xmlbeans » [javadoc | source]