001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one
003     * or more contributor license agreements.  See the NOTICE file
004     * distributed with this work for additional information
005     * regarding copyright ownership.  The ASF licenses this file
006     * to you under the Apache License, Version 2.0 (the
007     * "License"); you may not use this file except in compliance
008     * with the License.  You may obtain a copy of the License at
009     *
010     *  http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing,
013     * software distributed under the License is distributed on an
014     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015     * KIND, either express or implied.  See the License for the
016     * specific language governing permissions and limitations
017     * under the License.
018     */
019    
020    package javax.xml.rpc.encoding;
021    
022    import javax.xml.namespace.QName;
023    
024    /**
025     * Constants representing XML Types.
026     *
027     * @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
028     */
029    public class XMLType {
030        // fixme: Thsi is a constants class - should be final and/or have a private
031        // constructor
032        public XMLType() {}
033    
034        /** XSD type for string.           */
035        public static final QName XSD_STRING =
036            new QName("http://www.w3.org/2001/XMLSchema", "string");
037    
038        /** XSD type for float.           */
039        public static final QName XSD_FLOAT =
040            new QName("http://www.w3.org/2001/XMLSchema", "float");
041    
042        /** XSD type for boolean.           */
043        public static final QName XSD_BOOLEAN =
044            new QName("http://www.w3.org/2001/XMLSchema", "boolean");
045    
046        /** XSD type for double.           */
047        public static final QName XSD_DOUBLE =
048            new QName("http://www.w3.org/2001/XMLSchema", "double");
049    
050        /** XSD type for integer.           */
051        public static final QName XSD_INTEGER =
052            new QName("http://www.w3.org/2001/XMLSchema", "integer");
053    
054        /** XSD type for int.           */
055        public static final QName XSD_INT =
056            new QName("http://www.w3.org/2001/XMLSchema", "int");
057    
058        /** XSD type for long.           */
059        public static final QName XSD_LONG =
060            new QName("http://www.w3.org/2001/XMLSchema", "long");
061    
062        /** XSD type for short.           */
063        public static final QName XSD_SHORT =
064            new QName("http://www.w3.org/2001/XMLSchema", "short");
065    
066        /** XSD type for decimal.           */
067        public static final QName XSD_DECIMAL =
068            new QName("http://www.w3.org/2001/XMLSchema", "decimal");
069    
070        /** XSD type for base64Binary.           */
071        public static final QName XSD_BASE64 =
072            new QName("http://www.w3.org/2001/XMLSchema", "base64Binary");
073    
074        /** XSD type for hexBinary.           */
075        public static final QName XSD_HEXBINARY =
076            new QName("http://www.w3.org/2001/XMLSchema", "hexBinary");
077    
078        /** XSD type for byte.           */
079        public static final QName XSD_BYTE =
080            new QName("http://www.w3.org/2001/XMLSchema", "byte");
081    
082        /** XSD type for dateTime.           */
083        public static final QName XSD_DATETIME =
084            new QName("http://www.w3.org/2001/XMLSchema", "dateTime");
085    
086        /** XSD type for QName.           */
087        public static final QName XSD_QNAME =
088            new QName("http://www.w3.org/2001/XMLSchema", "QName");
089    
090        /** SOAP type for string.           */
091        public static final QName SOAP_STRING =
092            new QName("http://schemas.xmlsoap.org/soap/encoding/", "string");
093    
094        /** SOAP type for boolean.           */
095        public static final QName SOAP_BOOLEAN =
096            new QName("http://schemas.xmlsoap.org/soap/encoding/", "boolean");
097    
098        /** SOAP type for double.           */
099        public static final QName SOAP_DOUBLE =
100            new QName("http://schemas.xmlsoap.org/soap/encoding/", "double");
101    
102        /** SOAP type for base64.           */
103        public static final QName SOAP_BASE64 =
104            new QName("http://schemas.xmlsoap.org/soap/encoding/", "base64");
105    
106        /** SOAP type for float.           */
107        public static final QName SOAP_FLOAT =
108            new QName("http://schemas.xmlsoap.org/soap/encoding/", "float");
109    
110        /** SOAP type for int.           */
111        public static final QName SOAP_INT =
112            new QName("http://schemas.xmlsoap.org/soap/encoding/", "int");
113    
114        /** SOAP type for long.           */
115        public static final QName SOAP_LONG =
116            new QName("http://schemas.xmlsoap.org/soap/encoding/", "long");
117    
118        /** SOAP type for short.           */
119        public static final QName SOAP_SHORT =
120            new QName("http://schemas.xmlsoap.org/soap/encoding/", "short");
121    
122        /** SOAP type for byte.           */
123        public static final QName SOAP_BYTE =
124            new QName("http://schemas.xmlsoap.org/soap/encoding/", "byte");
125    
126        /** SOAP type for Array.           */
127        public static final QName SOAP_ARRAY =
128            new QName("http://schemas.xmlsoap.org/soap/encoding/", "Array");
129    }
130