1 /*
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 * @LastModified: Nov 2017
4 */
5 /*
6 * Licensed to the Apache Software Foundation (ASF) under one or more
7 * contributor license agreements. See the NOTICE file distributed with
8 * this work for additional information regarding copyright ownership.
9 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * (the "License"); you may not use this file except in compliance with
11 * the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22 package com.sun.org.apache.xerces.internal.impl.dv.xs;
23
47 import com.sun.org.apache.xerces.internal.xs.XSNamespaceItem;
48 import com.sun.org.apache.xerces.internal.xs.XSObject;
49 import com.sun.org.apache.xerces.internal.xs.XSObjectList;
50 import com.sun.org.apache.xerces.internal.xs.XSSimpleTypeDefinition;
51 import com.sun.org.apache.xerces.internal.xs.XSTypeDefinition;
52 import com.sun.org.apache.xerces.internal.xs.datatypes.ObjectList;
53 import java.math.BigInteger;
54 import java.util.AbstractList;
55 import java.util.ArrayList;
56 import java.util.List;
57 import java.util.Locale;
58 import java.util.StringTokenizer;
59 import org.w3c.dom.TypeInfo;
60
61 /**
62 * @xerces.internal
63 *
64 * @author Sandy Gao, IBM
65 * @author Neeraj Bajaj, Sun Microsystems, inc.
66 *
67 */
68 public class XSSimpleTypeDecl implements XSSimpleType, TypeInfo {
69
70 protected static final short DV_STRING = PRIMITIVE_STRING;
71 protected static final short DV_BOOLEAN = PRIMITIVE_BOOLEAN;
72 protected static final short DV_DECIMAL = PRIMITIVE_DECIMAL;
73 protected static final short DV_FLOAT = PRIMITIVE_FLOAT;
74 protected static final short DV_DOUBLE = PRIMITIVE_DOUBLE;
75 protected static final short DV_DURATION = PRIMITIVE_DURATION;
76 protected static final short DV_DATETIME = PRIMITIVE_DATETIME;
77 protected static final short DV_TIME = PRIMITIVE_TIME;
78 protected static final short DV_DATE = PRIMITIVE_DATE;
79 protected static final short DV_GYEARMONTH = PRIMITIVE_GYEARMONTH;
80 protected static final short DV_GYEAR = PRIMITIVE_GYEAR;
81 protected static final short DV_GMONTHDAY = PRIMITIVE_GMONTHDAY;
82 protected static final short DV_GDAY = PRIMITIVE_GDAY;
83 protected static final short DV_GMONTH = PRIMITIVE_GMONTH;
84 protected static final short DV_HEXBINARY = PRIMITIVE_HEXBINARY;
85 protected static final short DV_BASE64BINARY = PRIMITIVE_BASE64BINARY;
86 protected static final short DV_ANYURI = PRIMITIVE_ANYURI;
|
1 /*
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 */
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one or more
6 * contributor license agreements. See the NOTICE file distributed with
7 * this work for additional information regarding copyright ownership.
8 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * (the "License"); you may not use this file except in compliance with
10 * the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21 package com.sun.org.apache.xerces.internal.impl.dv.xs;
22
46 import com.sun.org.apache.xerces.internal.xs.XSNamespaceItem;
47 import com.sun.org.apache.xerces.internal.xs.XSObject;
48 import com.sun.org.apache.xerces.internal.xs.XSObjectList;
49 import com.sun.org.apache.xerces.internal.xs.XSSimpleTypeDefinition;
50 import com.sun.org.apache.xerces.internal.xs.XSTypeDefinition;
51 import com.sun.org.apache.xerces.internal.xs.datatypes.ObjectList;
52 import java.math.BigInteger;
53 import java.util.AbstractList;
54 import java.util.ArrayList;
55 import java.util.List;
56 import java.util.Locale;
57 import java.util.StringTokenizer;
58 import org.w3c.dom.TypeInfo;
59
60 /**
61 * @xerces.internal
62 *
63 * @author Sandy Gao, IBM
64 * @author Neeraj Bajaj, Sun Microsystems, inc.
65 *
66 * @LastModified: Nov 2017
67 */
68 public class XSSimpleTypeDecl implements XSSimpleType, TypeInfo {
69
70 protected static final short DV_STRING = PRIMITIVE_STRING;
71 protected static final short DV_BOOLEAN = PRIMITIVE_BOOLEAN;
72 protected static final short DV_DECIMAL = PRIMITIVE_DECIMAL;
73 protected static final short DV_FLOAT = PRIMITIVE_FLOAT;
74 protected static final short DV_DOUBLE = PRIMITIVE_DOUBLE;
75 protected static final short DV_DURATION = PRIMITIVE_DURATION;
76 protected static final short DV_DATETIME = PRIMITIVE_DATETIME;
77 protected static final short DV_TIME = PRIMITIVE_TIME;
78 protected static final short DV_DATE = PRIMITIVE_DATE;
79 protected static final short DV_GYEARMONTH = PRIMITIVE_GYEARMONTH;
80 protected static final short DV_GYEAR = PRIMITIVE_GYEAR;
81 protected static final short DV_GMONTHDAY = PRIMITIVE_GMONTHDAY;
82 protected static final short DV_GDAY = PRIMITIVE_GDAY;
83 protected static final short DV_GMONTH = PRIMITIVE_GMONTH;
84 protected static final short DV_HEXBINARY = PRIMITIVE_HEXBINARY;
85 protected static final short DV_BASE64BINARY = PRIMITIVE_BASE64BINARY;
86 protected static final short DV_ANYURI = PRIMITIVE_ANYURI;
|