com.metamatrix.modeler.core.types
Class DatatypeConstants

java.lang.Object
  extended by com.metamatrix.modeler.core.types.DatatypeConstants

public class DatatypeConstants
extends java.lang.Object

DatatypeConstants


Nested Class Summary
static class DatatypeConstants.BuiltInNames
          The names of the built-in datatypes (54 entries) which includes both the XML Schema of schema built-in types and the MetaMatrix built-in types
static class DatatypeConstants.MetaMatrixExtendedBuiltInNames
          The names of only MetaMatrix built-in types.
static class DatatypeConstants.PrimitiveBuiltInNames
          The names of the primitive built-in datatypes (19 entries).
static class DatatypeConstants.RuntimeTypeNames
           
 
Field Summary
static ObjectID BUILTIN_DATATYPES_MODEL_UUID
          UUID of the built-in datatype model
static java.lang.String BUILTIN_DATATYPES_URI
          Defines the expected built-in datatypes model URI - must be consistent with the value found in the com.metamatrix.modeler.sdt plugin.xml
static java.lang.String DATATYPES_INDEX_FILE_NAME
          Defines the expected name of the built-in datatype index file
static java.lang.String DATATYPES_MODEL_FILE_NAME
          Defines the expected name of the built-in datatype model file
static java.lang.String DATATYPES_MODEL_FILE_NAME_WITHOUT_EXTENSION
          Defines the expected name of the built-in datatype model file
static java.lang.String DATATYPES_ZIP_FILE_NAME
          Defines the expected name of the built-in datatype archive file
static java.lang.String PREFIX_FOR_ENTERPRISE_DATATYPES_URI_2005
          The value "http://www.metamatrix.com/2005/XmlSchema/EnterpriseDatatypes".
static java.lang.String SCHEMA_FOR_ENTERPRISE_DATATYPES_URI_2005
          The value "http://www.metamatrix.com/2005/XmlSchema/EnterpriseDatatypes".
static java.lang.String URI_REFERENCE_DELIMITER
          Delimiter used to separate the URI string from the URI fragment
static ObjectID XML_MAGIC_SCHEMA_UUID_1999
           
static ObjectID XML_MAGIC_SCHEMA_UUID_2000_10
           
static ObjectID XML_MAGIC_SCHEMA_UUID_2001
           
static ObjectID XML_SCHEMA_INSTANCE_UUID_1999
           
static ObjectID XML_SCHEMA_INSTANCE_UUID_2000_10
           
static ObjectID XML_SCHEMA_INSTANCE_UUID_2001
           
static ObjectID XML_SCHEMA_UUID_1999
          UUIDs of the XMLSchema.xsd, MagicXMLSchema.xsd, and xml.xsd http://www.w3.org/1999/XMLSchema".
static ObjectID XML_SCHEMA_UUID_2000_10
          UUIDs of the XMLSchema.xsd, MagicXMLSchema.xsd, and xml.xsd "http://www.w3.org/2000/10/XMLSchema" schema.
static ObjectID XML_SCHEMA_UUID_2001
          UUIDs of the XMLSchema.xsd, MagicXMLSchema.xsd, and XMLSchema-instance.xsd "http://www.w3.org/2001/XMLSchema" schema.
 
Constructor Summary
DatatypeConstants()
           
 
Method Summary
static java.util.Collection getBuiltInTypeNames()
          Return the collection of built-in datatype names
static java.lang.String getDatatypeNamefromRuntimeType(java.lang.String runtimeTypeName)
          Return the name of the default datatype given the runtime type.
static java.util.Collection getMetaMatrixExtendedBuiltInTypeNames()
          Return the collection of MetaMatrix extended built-in datatype names.
static java.util.Collection getPrimitivedBuiltInTypeNames()
          Return the collection of the primitive built-in datatype names.
static java.util.Collection getRuntimeTypeNames()
          Return the collection of runtime type names
static boolean isSchemaEnterpriseDatatypeNamespace(java.lang.String namespace)
          Returns whether the given namespace is the XML Schema Enterprise Datatype namespace.
static boolean isSchemaEnterpriseDatatypeNamespacePrefix(java.lang.String prefix)
          Returns whether the given namespace prefix is the XML Schema Enterprise Datatype namespace prefix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILTIN_DATATYPES_URI

public static final java.lang.String BUILTIN_DATATYPES_URI
Defines the expected built-in datatypes model URI - must be consistent with the value found in the com.metamatrix.modeler.sdt plugin.xml

See Also:
Constant Field Values

SCHEMA_FOR_ENTERPRISE_DATATYPES_URI_2005

public static final java.lang.String SCHEMA_FOR_ENTERPRISE_DATATYPES_URI_2005
The value "http://www.metamatrix.com/2005/XmlSchema/EnterpriseDatatypes".

See Also:
Constant Field Values

PREFIX_FOR_ENTERPRISE_DATATYPES_URI_2005

public static final java.lang.String PREFIX_FOR_ENTERPRISE_DATATYPES_URI_2005
The value "http://www.metamatrix.com/2005/XmlSchema/EnterpriseDatatypes".

See Also:
Constant Field Values

DATATYPES_ZIP_FILE_NAME

public static final java.lang.String DATATYPES_ZIP_FILE_NAME
Defines the expected name of the built-in datatype archive file

See Also:
Constant Field Values

DATATYPES_INDEX_FILE_NAME

public static final java.lang.String DATATYPES_INDEX_FILE_NAME
Defines the expected name of the built-in datatype index file

See Also:
Constant Field Values

DATATYPES_MODEL_FILE_NAME

public static final java.lang.String DATATYPES_MODEL_FILE_NAME
Defines the expected name of the built-in datatype model file

See Also:
Constant Field Values

DATATYPES_MODEL_FILE_NAME_WITHOUT_EXTENSION

public static final java.lang.String DATATYPES_MODEL_FILE_NAME_WITHOUT_EXTENSION
Defines the expected name of the built-in datatype model file

See Also:
Constant Field Values

URI_REFERENCE_DELIMITER

public static final java.lang.String URI_REFERENCE_DELIMITER
Delimiter used to separate the URI string from the URI fragment

See Also:
Constant Field Values

BUILTIN_DATATYPES_MODEL_UUID

public static ObjectID BUILTIN_DATATYPES_MODEL_UUID
UUID of the built-in datatype model


XML_SCHEMA_UUID_1999

public static ObjectID XML_SCHEMA_UUID_1999
UUIDs of the XMLSchema.xsd, MagicXMLSchema.xsd, and xml.xsd http://www.w3.org/1999/XMLSchema".


XML_MAGIC_SCHEMA_UUID_1999

public static ObjectID XML_MAGIC_SCHEMA_UUID_1999

XML_SCHEMA_INSTANCE_UUID_1999

public static ObjectID XML_SCHEMA_INSTANCE_UUID_1999

XML_SCHEMA_UUID_2000_10

public static ObjectID XML_SCHEMA_UUID_2000_10
UUIDs of the XMLSchema.xsd, MagicXMLSchema.xsd, and xml.xsd "http://www.w3.org/2000/10/XMLSchema" schema.


XML_MAGIC_SCHEMA_UUID_2000_10

public static ObjectID XML_MAGIC_SCHEMA_UUID_2000_10

XML_SCHEMA_INSTANCE_UUID_2000_10

public static ObjectID XML_SCHEMA_INSTANCE_UUID_2000_10

XML_SCHEMA_UUID_2001

public static ObjectID XML_SCHEMA_UUID_2001
UUIDs of the XMLSchema.xsd, MagicXMLSchema.xsd, and XMLSchema-instance.xsd "http://www.w3.org/2001/XMLSchema" schema.


XML_MAGIC_SCHEMA_UUID_2001

public static ObjectID XML_MAGIC_SCHEMA_UUID_2001

XML_SCHEMA_INSTANCE_UUID_2001

public static ObjectID XML_SCHEMA_INSTANCE_UUID_2001
Constructor Detail

DatatypeConstants

public DatatypeConstants()
Method Detail

getDatatypeNamefromRuntimeType

public static java.lang.String getDatatypeNamefromRuntimeType(java.lang.String runtimeTypeName)
Return the name of the default datatype given the runtime type.

Parameters:
runtimeTypeName - the name of the runtime type
Returns:
the name of the default datatype

getRuntimeTypeNames

public static java.util.Collection getRuntimeTypeNames()
Return the collection of runtime type names

Returns:
Collection

getBuiltInTypeNames

public static java.util.Collection getBuiltInTypeNames()
Return the collection of built-in datatype names

Returns:
Collection

getPrimitivedBuiltInTypeNames

public static java.util.Collection getPrimitivedBuiltInTypeNames()
Return the collection of the primitive built-in datatype names. A primitive built-in type is one in which its basetype is the UR-type of "anySimpleType"

Returns:
Collection

getMetaMatrixExtendedBuiltInTypeNames

public static java.util.Collection getMetaMatrixExtendedBuiltInTypeNames()
Return the collection of MetaMatrix extended built-in datatype names. These represent MetaMatrix extensions to the XML Schema of schema built-in types to add the datatypes of "char", "biginteger", "bigdecimal", "timestamp", "object", "null", "blob", "clob" and "XMLLiteral".

Returns:
Collection

isSchemaEnterpriseDatatypeNamespace

public static boolean isSchemaEnterpriseDatatypeNamespace(java.lang.String namespace)
Returns whether the given namespace is the XML Schema Enterprise Datatype namespace.

Parameters:
namespace - a namespace.
Returns:
whether the given namespace is the XML Schema Enterprise Datatype namespace.

isSchemaEnterpriseDatatypeNamespacePrefix

public static boolean isSchemaEnterpriseDatatypeNamespacePrefix(java.lang.String prefix)
Returns whether the given namespace prefix is the XML Schema Enterprise Datatype namespace prefix.

Parameters:
prefix - a namespace prefix.
Returns:
whether the given namespace prefix is the XML Schema Enterprise Datatype namespace prefix.


Copyright © 2009. All Rights Reserved.