Package org.jibx.util
Class Types
- java.lang.Object
-
- org.jibx.util.Types
-
public class Types extends java.lang.Object
Mapping information to and from schema types.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.HashMap
s_objectTypeMap
Set of object types mapped to schema types.private static java.util.HashMap
s_primitiveTypeMap
Set of primitive types mapped to schema types.static java.lang.String
SCHEMA_NAMESPACE
static QName
STRING_QNAME
-
Constructor Summary
Constructors Constructor Description Types()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isSimpleValue(java.lang.String type)
Check if type represents a simple text value.static QName
schemaType(java.lang.String type)
Get the schema type for a simple text value.
-
-
-
Field Detail
-
SCHEMA_NAMESPACE
public static final java.lang.String SCHEMA_NAMESPACE
- See Also:
- Constant Field Values
-
STRING_QNAME
public static final QName STRING_QNAME
-
s_objectTypeMap
private static java.util.HashMap s_objectTypeMap
Set of object types mapped to schema types.
-
s_primitiveTypeMap
private static java.util.HashMap s_primitiveTypeMap
Set of primitive types mapped to schema types.
-
-
Method Detail
-
isSimpleValue
public static boolean isSimpleValue(java.lang.String type)
Check if type represents a simple text value.- Parameters:
type
- primitive type name, or fully qualified class name- Returns:
- simple value flag
-
schemaType
public static QName schemaType(java.lang.String type)
Get the schema type for a simple text value.- Parameters:
type
- primitive type name, or fully qualified class name- Returns:
- schema type
-
-