| 1 |
/* |
| 2 |
* Copyright 2001-2004 The Apache Software Foundation. |
| 3 |
* |
| 4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
* you may not use this file except in compliance with the License. |
| 6 |
* You may obtain a copy of the License at |
| 7 |
* |
| 8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
* |
| 10 |
* Unless required by applicable law or agreed to in writing, software |
| 11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
* See the License for the specific language governing permissions and |
| 14 |
* limitations under the License. |
| 15 |
*/ |
| 16 |
package javax.xml.rpc.encoding; |
| 17 |
|
| 18 |
import javax.xml.namespace.QName; |
| 19 |
|
| 20 |
/** |
| 21 |
* Constants representing XML Types. |
| 22 |
* |
| 23 |
* @version 1.0 |
| 24 |
*/ |
| 25 |
public class XMLType { |
| 26 |
// fixme: Thsi is a constants class - should be final and/or have a private |
| 27 |
// constructor |
| 28 |
public XMLType() {} |
| 29 |
|
| 30 |
/** XSD type for string. */ |
| 31 |
public static final QName XSD_STRING = |
| 32 |
new QName("http://www.w3.org/2001/XMLSchema", "string"); |
| 33 |
|
| 34 |
/** XSD type for float. */ |
| 35 |
public static final QName XSD_FLOAT = |
| 36 |
new QName("http://www.w3.org/2001/XMLSchema", "float"); |
| 37 |
|
| 38 |
/** XSD type for boolean. */ |
| 39 |
public static final QName XSD_BOOLEAN = |
| 40 |
new QName("http://www.w3.org/2001/XMLSchema", "boolean"); |
| 41 |
|
| 42 |
/** XSD type for double. */ |
| 43 |
public static final QName XSD_DOUBLE = |
| 44 |
new QName("http://www.w3.org/2001/XMLSchema", "double"); |
| 45 |
|
| 46 |
/** XSD type for integer. */ |
| 47 |
public static final QName XSD_INTEGER = |
| 48 |
new QName("http://www.w3.org/2001/XMLSchema", "integer"); |
| 49 |
|
| 50 |
/** XSD type for int. */ |
| 51 |
public static final QName XSD_INT = |
| 52 |
new QName("http://www.w3.org/2001/XMLSchema", "int"); |
| 53 |
|
| 54 |
/** XSD type for long. */ |
| 55 |
public static final QName XSD_LONG = |
| 56 |
new QName("http://www.w3.org/2001/XMLSchema", "long"); |
| 57 |
|
| 58 |
/** XSD type for short. */ |
| 59 |
public static final QName XSD_SHORT = |
| 60 |
new QName("http://www.w3.org/2001/XMLSchema", "short"); |
| 61 |
|
| 62 |
/** XSD type for decimal. */ |
| 63 |
public static final QName XSD_DECIMAL = |
| 64 |
new QName("http://www.w3.org/2001/XMLSchema", "decimal"); |
| 65 |
|
| 66 |
/** XSD type for base64Binary. */ |
| 67 |
public static final QName XSD_BASE64 = |
| 68 |
new QName("http://www.w3.org/2001/XMLSchema", "base64Binary"); |
| 69 |
|
| 70 |
/** XSD type for hexBinary. */ |
| 71 |
public static final QName XSD_HEXBINARY = |
| 72 |
new QName("http://www.w3.org/2001/XMLSchema", "hexBinary"); |
| 73 |
|
| 74 |
/** XSD type for byte. */ |
| 75 |
public static final QName XSD_BYTE = |
| 76 |
new QName("http://www.w3.org/2001/XMLSchema", "byte"); |
| 77 |
|
| 78 |
/** XSD type for dateTime. */ |
| 79 |
public static final QName XSD_DATETIME = |
| 80 |
new QName("http://www.w3.org/2001/XMLSchema", "dateTime"); |
| 81 |
|
| 82 |
/** XSD type for QName. */ |
| 83 |
public static final QName XSD_QNAME = |
| 84 |
new QName("http://www.w3.org/2001/XMLSchema", "QName"); |
| 85 |
|
| 86 |
/** SOAP type for string. */ |
| 87 |
public static final QName SOAP_STRING = |
| 88 |
new QName("http://schemas.xmlsoap.org/soap/encoding/", "string"); |
| 89 |
|
| 90 |
/** SOAP type for boolean. */ |
| 91 |
public static final QName SOAP_BOOLEAN = |
| 92 |
new QName("http://schemas.xmlsoap.org/soap/encoding/", "boolean"); |
| 93 |
|
| 94 |
/** SOAP type for double. */ |
| 95 |
public static final QName SOAP_DOUBLE = |
| 96 |
new QName("http://schemas.xmlsoap.org/soap/encoding/", "double"); |
| 97 |
|
| 98 |
/** SOAP type for base64. */ |
| 99 |
public static final QName SOAP_BASE64 = |
| 100 |
new QName("http://schemas.xmlsoap.org/soap/encoding/", "base64"); |
| 101 |
|
| 102 |
/** SOAP type for float. */ |
| 103 |
public static final QName SOAP_FLOAT = |
| 104 |
new QName("http://schemas.xmlsoap.org/soap/encoding/", "float"); |
| 105 |
|
| 106 |
/** SOAP type for int. */ |
| 107 |
public static final QName SOAP_INT = |
| 108 |
new QName("http://schemas.xmlsoap.org/soap/encoding/", "int"); |
| 109 |
|
| 110 |
/** SOAP type for long. */ |
| 111 |
public static final QName SOAP_LONG = |
| 112 |
new QName("http://schemas.xmlsoap.org/soap/encoding/", "long"); |
| 113 |
|
| 114 |
/** SOAP type for short. */ |
| 115 |
public static final QName SOAP_SHORT = |
| 116 |
new QName("http://schemas.xmlsoap.org/soap/encoding/", "short"); |
| 117 |
|
| 118 |
/** SOAP type for byte. */ |
| 119 |
public static final QName SOAP_BYTE = |
| 120 |
new QName("http://schemas.xmlsoap.org/soap/encoding/", "byte"); |
| 121 |
|
| 122 |
/** SOAP type for Array. */ |
| 123 |
public static final QName SOAP_ARRAY = |
| 124 |
new QName("http://schemas.xmlsoap.org/soap/encoding/", "Array"); |
| 125 |
} |
| 126 |
|