Enum DefaultDataTypes
- All Implemented Interfaces:
DataType
,Serializable
,Comparable<DefaultDataTypes>
,Constable
Default data types provided by the add-on.
- Since:
- 4.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAny type.Default boolean type.Default color type.Default dataset name type.Default dataspace key type.Default date type.Default date-time type.Default decimal type.Default email type.Default HTML type.Default integer type.Default locale type.Default password type.Default resource type.Default string type.Default text type.Default time type.Default URI type.Default XML name type. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Returns the unique code.List<com.orchestranetworks.schema.SchemaTypeName>
Returns the schema types in EBX that this data type represents.static DataType
getForSchemaNode
(com.orchestranetworks.schema.SchemaNode schemaNode) Converts a schema node to a default data type.com.onwbp.base.text.UserMessage
getLabel()
Returns the label.Class<?>
Returns the class of values that this data type represents.static boolean
Returnstrue
if this isANY_TYPE
.static DataType
Converts a unique code to a default data type.static DefaultDataTypes
Returns the enum constant of this type with the specified name.static DefaultDataTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.orchestranetworks.addon.dint.schema.DataType
extendFrom, getDescription, isAssignableFrom
-
Enum Constant Details
-
ANY_TYPE
Any type. -
BOOLEAN
Default boolean type.- See Also:
-
SchemaTypeName.XS_BOOLEAN
-
COLOR
Default color type.- See Also:
-
SchemaTypeName.OSD_COLOR
-
DATE
Default date type.- See Also:
-
SchemaTypeName.XS_DATE
-
DATE_TIME
Default date-time type.- See Also:
-
SchemaTypeName.XS_DATETIME
-
DATASET_NAME
Default dataset name type.- See Also:
-
SchemaTypeName.OSD_DATASET_NAME
-
DATASPACE_KEY
Default dataspace key type.- See Also:
-
SchemaTypeName.OSD_DATASPACE_KEY
-
DECIMAL
Default decimal type.- See Also:
-
SchemaTypeName.XS_DECIMAL
-
EMAIL
Default email type.- See Also:
-
SchemaTypeName.OSD_EMAIL
-
HTML
Default HTML type.- See Also:
-
SchemaTypeName.OSD_STRING_HTML
-
INTEGER
Default integer type.- See Also:
-
SchemaTypeName.XS_INT
SchemaTypeName.XS_INTEGER
-
LOCALE
Default locale type.- See Also:
-
SchemaTypeName.OSD_LOCALE
-
PASSWORD
Default password type.- See Also:
-
SchemaTypeName.OSD_PASSWORD
-
RESOURCE
Default resource type.- See Also:
-
SchemaTypeName.OSD_RESOURCE
-
STRING
Default string type.- See Also:
-
SchemaTypeName.XS_STRING
SchemaTypeName.XS_NAME
-
TEXT
Default text type.- See Also:
-
SchemaTypeName.OSD_TEXT
-
TIME
Default time type.- See Also:
-
SchemaTypeName.XS_TIME
-
URI
Default URI type.- See Also:
-
SchemaTypeName.XS_ANY_URI
-
XML_NAME
Default XML name type.- See Also:
-
SchemaTypeName.XS_NAME
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
parse
Converts a unique code to a default data type.- Throws:
IllegalArgumentException
- if no default data type found for the code.- See Also:
-
getForSchemaNode
Converts a schema node to a default data type.Returns
null
if the schema node is not supported.- See Also:
-
isAnyType
Returnstrue
if this isANY_TYPE
. -
getCode
Description copied from interface:DataType
Returns the unique code. -
getLabel
public com.onwbp.base.text.UserMessage getLabel()Description copied from interface:DataType
Returns the label. -
getValueClass
Description copied from interface:DataType
Returns the class of values that this data type represents.This helps validate data transformation.
- Specified by:
getValueClass
in interfaceDataType
-
getCompatibleSchemaTypes
Returns the schema types in EBX that this data type represents.
-