org.jibx.schema.support
Class SchemaTypes

java.lang.Object
  extended by org.jibx.schema.support.SchemaTypes

public abstract class SchemaTypes
extends java.lang.Object

Representations for predefined schema types. These are structured as elements to be consistent with user definitions, but are only generated as static instances. Note that the schema type list here should always match that in JavaType.

Author:
Dennis M. Sosnoski

Nested Class Summary
static class SchemaTypes.SchemaSimpleType
          Simple schema type representation.
 
Field Summary
static SchemaTypes.SchemaSimpleType ANY_SIMPLE_TYPE
           
static SchemaTypes.SchemaSimpleType ANY_TYPE
           
static SchemaTypes.SchemaSimpleType ANY_URI
           
static SchemaTypes.SchemaSimpleType BASE64_BINARY
           
static SchemaTypes.SchemaSimpleType BOOLEAN_TYPE
           
static SchemaTypes.SchemaSimpleType BYTE
           
static SchemaTypes.SchemaSimpleType DATE
           
static SchemaTypes.SchemaSimpleType DATETIME
           
static SchemaTypes.SchemaSimpleType DECIMAL
           
static SchemaTypes.SchemaSimpleType DOUBLE
           
static SchemaTypes.SchemaSimpleType DURATION
           
static SchemaTypes.SchemaSimpleType ENTITIES
           
static SchemaTypes.SchemaSimpleType ENTITY
           
static SchemaTypes.SchemaSimpleType FLOAT
           
static SchemaTypes.SchemaSimpleType GDAY
           
static SchemaTypes.SchemaSimpleType GMONTH
           
static SchemaTypes.SchemaSimpleType GMONTHDAY
           
static SchemaTypes.SchemaSimpleType GYEAR
           
static SchemaTypes.SchemaSimpleType GYEARMONTH
           
static SchemaTypes.SchemaSimpleType HEX_BINARY
           
static SchemaTypes.SchemaSimpleType ID
           
static SchemaTypes.SchemaSimpleType IDREF
           
static SchemaTypes.SchemaSimpleType IDREFS
           
static SchemaTypes.SchemaSimpleType INT
           
static SchemaTypes.SchemaSimpleType INTEGER
           
static SchemaTypes.SchemaSimpleType LANGUAGE
           
static SchemaTypes.SchemaSimpleType LONG
           
static SchemaTypes.SchemaSimpleType NAME
           
static SchemaTypes.SchemaSimpleType NCNAME
           
static SchemaTypes.SchemaSimpleType NEGATIVE_INTEGER
           
static SchemaTypes.SchemaSimpleType NMTOKEN
           
static SchemaTypes.SchemaSimpleType NMTOKENS
           
static SchemaTypes.SchemaSimpleType NON_NEGATIVE_INTEGER
           
static SchemaTypes.SchemaSimpleType NON_POSITIVE_INTEGER
           
static SchemaTypes.SchemaSimpleType NORMALIZED_STRING
           
static SchemaTypes.SchemaSimpleType NOTATION
           
static SchemaTypes.SchemaSimpleType POSITIVE_INTEGER
           
static SchemaTypes.SchemaSimpleType QNAME
           
private static java.util.HashMap s_schemaTypesMap
          Predefined schema simple types.
static SchemaTypes.SchemaSimpleType SHORT
           
static SchemaTypes.SchemaSimpleType STRING
           
static SchemaTypes.SchemaSimpleType TIME
           
static SchemaTypes.SchemaSimpleType TOKEN
           
static SchemaTypes.SchemaSimpleType UNSIGNED_BYTE
           
static SchemaTypes.SchemaSimpleType UNSIGNED_INT
           
static SchemaTypes.SchemaSimpleType UNSIGNED_LONG
           
static SchemaTypes.SchemaSimpleType UNSIGNED_SHORT
           
 
Constructor Summary
SchemaTypes()
           
 
Method Summary
private static SchemaTypes.SchemaSimpleType addType(java.lang.String name, boolean isstring)
          Helper method for creating instances and adding them to map.
static CommonTypeDefinition getSchemaType(java.lang.String name)
          Get predefined schema type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_schemaTypesMap

private static final java.util.HashMap s_schemaTypesMap
Predefined schema simple types.


ANY_TYPE

public static final SchemaTypes.SchemaSimpleType ANY_TYPE

ANY_SIMPLE_TYPE

public static final SchemaTypes.SchemaSimpleType ANY_SIMPLE_TYPE

ANY_URI

public static final SchemaTypes.SchemaSimpleType ANY_URI

BASE64_BINARY

public static final SchemaTypes.SchemaSimpleType BASE64_BINARY

BOOLEAN_TYPE

public static final SchemaTypes.SchemaSimpleType BOOLEAN_TYPE

BYTE

public static final SchemaTypes.SchemaSimpleType BYTE

DATE

public static final SchemaTypes.SchemaSimpleType DATE

DATETIME

public static final SchemaTypes.SchemaSimpleType DATETIME

DECIMAL

public static final SchemaTypes.SchemaSimpleType DECIMAL

DOUBLE

public static final SchemaTypes.SchemaSimpleType DOUBLE

DURATION

public static final SchemaTypes.SchemaSimpleType DURATION

ENTITY

public static final SchemaTypes.SchemaSimpleType ENTITY

ENTITIES

public static final SchemaTypes.SchemaSimpleType ENTITIES

FLOAT

public static final SchemaTypes.SchemaSimpleType FLOAT

GDAY

public static final SchemaTypes.SchemaSimpleType GDAY

GMONTH

public static final SchemaTypes.SchemaSimpleType GMONTH

GMONTHDAY

public static final SchemaTypes.SchemaSimpleType GMONTHDAY

GYEAR

public static final SchemaTypes.SchemaSimpleType GYEAR

GYEARMONTH

public static final SchemaTypes.SchemaSimpleType GYEARMONTH

HEX_BINARY

public static final SchemaTypes.SchemaSimpleType HEX_BINARY

ID

public static final SchemaTypes.SchemaSimpleType ID

IDREF

public static final SchemaTypes.SchemaSimpleType IDREF

IDREFS

public static final SchemaTypes.SchemaSimpleType IDREFS

INT

public static final SchemaTypes.SchemaSimpleType INT

INTEGER

public static final SchemaTypes.SchemaSimpleType INTEGER

LANGUAGE

public static final SchemaTypes.SchemaSimpleType LANGUAGE

LONG

public static final SchemaTypes.SchemaSimpleType LONG

NAME

public static final SchemaTypes.SchemaSimpleType NAME

NEGATIVE_INTEGER

public static final SchemaTypes.SchemaSimpleType NEGATIVE_INTEGER

NON_NEGATIVE_INTEGER

public static final SchemaTypes.SchemaSimpleType NON_NEGATIVE_INTEGER

NON_POSITIVE_INTEGER

public static final SchemaTypes.SchemaSimpleType NON_POSITIVE_INTEGER

NORMALIZED_STRING

public static final SchemaTypes.SchemaSimpleType NORMALIZED_STRING

NCNAME

public static final SchemaTypes.SchemaSimpleType NCNAME

NMTOKEN

public static final SchemaTypes.SchemaSimpleType NMTOKEN

NMTOKENS

public static final SchemaTypes.SchemaSimpleType NMTOKENS

NOTATION

public static final SchemaTypes.SchemaSimpleType NOTATION

POSITIVE_INTEGER

public static final SchemaTypes.SchemaSimpleType POSITIVE_INTEGER

QNAME

public static final SchemaTypes.SchemaSimpleType QNAME

SHORT

public static final SchemaTypes.SchemaSimpleType SHORT

STRING

public static final SchemaTypes.SchemaSimpleType STRING

TIME

public static final SchemaTypes.SchemaSimpleType TIME

TOKEN

public static final SchemaTypes.SchemaSimpleType TOKEN

UNSIGNED_BYTE

public static final SchemaTypes.SchemaSimpleType UNSIGNED_BYTE

UNSIGNED_INT

public static final SchemaTypes.SchemaSimpleType UNSIGNED_INT

UNSIGNED_LONG

public static final SchemaTypes.SchemaSimpleType UNSIGNED_LONG

UNSIGNED_SHORT

public static final SchemaTypes.SchemaSimpleType UNSIGNED_SHORT
Constructor Detail

SchemaTypes

public SchemaTypes()
Method Detail

addType

private static SchemaTypes.SchemaSimpleType addType(java.lang.String name,
                                                    boolean isstring)
Helper method for creating instances and adding them to map.

Parameters:
name - type local name
isstring - type derived from string flag

getSchemaType

public static CommonTypeDefinition getSchemaType(java.lang.String name)
Get predefined schema type.

Parameters:
name - local name
Returns:
schema type with name, or null if none


Project Web Site