Applications should use this class to get and derive DataType objects. All methods are static.
Derivation by restriction should be done by using TypeIncubator.
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | builtinType
a map that contains built in types. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static XSDatatypeImpl | |
| private static Map | |
| public static XSDatatype | Returns: always return non-null value. If error occurs, then an exception will be thrown.(URI,local) pair as the
name of the new type. it can be set to null for an anonymous type. nsUri, String newTypeName, XSDatatype Type of the list item. It must be an atom type which is implemented
in this package or derived from types implemented in this package.
You cannot use your own DataType implementation here. itemType)derives a new type by list. |
| public static XSDatatype | |
| public static XSDatatype | deriveByUnion(String nsUri, String
name of the new type. it can be set to null to
indicate an anonymous type. newTypeName, XSDatatype[] Types of the union member. It can be any type that implements DataType. memberTypes)derives a new type by union. |
| public static XSDatatype | |
| public static XSDatatype | |
| public static XSDatatype | |
| public static synchronized XSDatatype | Returns: A non-null valid datatype object.obtain a built-in DataType object by its name. |
| builtinType | back to summary |
|---|---|
| private static final Map<K, V> builtinType a map that contains built in types. To speed up the boot process, only a handful types are added at the first time. | |
| DatatypeFactory | back to summary |
|---|---|
| private DatatypeFactory() | |
| add | back to summary |
|---|---|
| private static void add(Map<K, V> m, XSDatatypeImpl type) | |
| createBuiltinList | back to summary |
|---|---|
| private static XSDatatypeImpl createBuiltinList(String name, XSDatatypeImpl item) throws DatatypeException | |
| createInitialBuiltinTypesMap | back to summary |
|---|---|
| private static Map creates a map that contains frequently-used built-in types | |
| deriveByList | back to summary |
|---|---|
| public static XSDatatype deriveByList(String nsUri, String newTypeName, XSDatatype itemType) throws DatatypeException derives a new type by list. See http://www.w3.org/TR/xmlschema-2#derivation-by-list for what "derivation by list" means.
| |
| deriveByList | back to summary |
|---|---|
| public static XSDatatype deriveByList(String newTypeName, XSDatatype itemType) throws DatatypeException
Deprecated
| |
| deriveByUnion | back to summary |
|---|---|
| public static XSDatatype deriveByUnion(String nsUri, String newTypeName, XSDatatype[] memberTypes) throws DatatypeException derives a new type by union. See http://www.w3.org/TR/xmlschema-2#derivation-by-union for what "derivation by union" means.
| |
| deriveByUnion | back to summary |
|---|---|
| public static XSDatatype deriveByUnion(String newTypeName, XSDatatype[] memberTypes) throws DatatypeException
Deprecated
| |
| deriveByUnion | back to summary |
|---|---|
| public static XSDatatype deriveByUnion(String newTypeName, Collection<E> memberTypes) throws DatatypeException
Deprecated
| |
| deriveByUnion | back to summary |
|---|---|
| public static XSDatatype deriveByUnion(String nsUri, String newTypeName, Collection<E> memberTypes) throws DatatypeException | |
| getTypeByName | back to summary |
|---|---|
| public static synchronized XSDatatype getTypeByName(String dataTypeName) throws DatatypeException obtain a built-in DataType object by its name. For example, you can pass somethings like "token", "gYear", etc.
| |