|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.schema.XSchema
public class XSchema
XSchema is a schema parser. It parses a XML representation of a schema, and create one or more type nodes. It is used internally to parse data meta data.
| Field Summary | |
|---|---|
static String |
BOOLEAN
Boolean type. |
static String |
BYTE
Byte type. |
static String |
CHAR
Character type. |
static String |
CHARACTER
Character type. |
static String |
COLOR
Color type. |
static String |
DATE
Date type. |
static String |
DECIMAL
Decimal type. |
static String |
DOUBLE
Double type. |
static String |
ENUM
Enum type. |
static String |
FLOAT
Float type. |
static String |
INTEGER
Integer type. |
static String |
LONG
Long type. |
static String |
NULL
Null type. |
static String |
ROLE
Role type. |
static String |
SHORT
Short type. |
static String |
STRING
String type. |
static String |
TIME
Time type. |
static String |
TIME_INSTANT
Time instant type. |
static String |
UNKNOWN
Unknown type. |
static String |
USER
User type. |
static String |
USER_DEFINED
User defined type. |
| Constructor Summary | |
|---|---|
XSchema(Element root)
Create a schema parser. |
|
| Method Summary | |
|---|---|
static XTypeNode |
createPrimitiveType(String type)
Create the type node for the specified primitive type. |
static XTypeNode |
createPrimitiveType(String name,
Class cls)
Create primitive type node from a java class. |
XTypeNode |
createTypeNode(String type)
Create the type node for the specified type. |
static XValueNode |
createValueNode(String type)
Create a subclass of the XValueNode for the specified type. |
XTypeNode |
getTypeNode(String type)
Get the type node (type definition) of the specified type. |
static boolean |
isDateType(String type)
Check if is a date type. |
static boolean |
isNumericType(String type)
Check if is a numeric type. |
static boolean |
isPrimitiveType(String type)
Check if the specified type is the primitive type. |
static String |
mergeNumericType(String type1,
String type2)
Merge two numeric types. |
void |
writeXML(PrintWriter writer)
Write the types in XML format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NULL
public static final String STRING
public static final String BOOLEAN
public static final String FLOAT
public static final String DOUBLE
public static final String DECIMAL
public static final String CHAR
public static final String CHARACTER
public static final String BYTE
public static final String SHORT
public static final String INTEGER
public static final String LONG
public static final String TIME_INSTANT
public static final String DATE
public static final String TIME
public static final String ENUM
public static final String USER_DEFINED
public static final String ROLE
public static final String USER
public static final String COLOR
public static final String UNKNOWN
| Constructor Detail |
|---|
public XSchema(Element root)
root - XML root of the schema definition.| Method Detail |
|---|
public static boolean isNumericType(String type)
type - the specified data type.
public static boolean isDateType(String type)
type - the specified data type.
public static String mergeNumericType(String type1,
String type2)
type1 - the specified numeric type a.type2 - the specified numeric type b.
public XTypeNode getTypeNode(String type)
type - type name.
public void writeXML(PrintWriter writer)
public static boolean isPrimitiveType(String type)
public static XTypeNode createPrimitiveType(String type)
public XTypeNode createTypeNode(String type)
public static XValueNode createValueNode(String type)
type - one of the type constant.
public static XTypeNode createPrimitiveType(String name,
Class cls)
name - the specfied name.cls - the specified java class.
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||