public interface IlrXmlSimpleType extends IlrXmlType
Some simple types are declared as primitive types of the
Java language, and others are sub-classes of the Object.
In any case, their implementation type as a slot of
an IlrXmlObject is always a Java class. Java wrappers
are used instead of primitive types. The implementation
type is returned by the getJavaClass method.
Runtime methods handle instances of the simple type. Values can be created, checked or compared.
Constraint data makes a distinction between local information, which concerns constraints at the type level, and global information which is a synthesis of constraints at a supertype level.
| Modifier and Type | Field and Description |
|---|---|
static int |
ATOMIC_VARIETY
constant representing an atomic variety type.
|
static int |
EQUAL
Constant representing an equality between values.
|
static int |
GREATER
Constant representing a superiority between values.
|
static int |
LIST_VARIETY
constant representing a list variety type.
|
static int |
LOWER
Constant representing an inferiority between values.
|
static int |
NOT_COMPARABLE
Constant representing that two values are not comparable.
|
static int |
UNION_VARIETY
constant representing an union variety type.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Compare two objects of simple type.
|
java.lang.Class |
getDynamicJavaClass()
Get the XOM declaration Java type of the simple type.
|
IlrXmlConstraints |
getGlobalConstraints()
Get the global contraints.
|
IlrXmlConstraints |
getLocalConstraints()
Get the local constraints.
|
IlrXmlSimpleType |
getSupertype()
Return the supertype.
|
int |
getVariety()
Get the variety of the simple type.
|
IlrXmlSimpleType[] |
getVarietyTypes()
Return the variety types involved in the
simple type definition.
|
boolean |
isInstance(java.lang.Object object)
To determine if an object is an instance of the
simple type its Java class and its constraints
compliance are checked.
|
java.lang.Object |
newInstance(java.lang.String str)
Build a new simple type instance from a string.
|
getJavaClass, getName, getXmlName, getXmlNamespace, isAssignableFrom, isLocalstatic final int ATOMIC_VARIETY
getVariety(),
Constant Field Valuesstatic final int LIST_VARIETY
getVariety(),
Constant Field Valuesstatic final int UNION_VARIETY
getVariety(),
Constant Field Valuesstatic final int EQUAL
static final int LOWER
static final int GREATER
static final int NOT_COMPARABLE
java.lang.Class getDynamicJavaClass()
getJavaClass when primitive types are used.IlrXmlSimpleType getSupertype()
IlrXmlConstraints getLocalConstraints()
IlrXmlConstraintsIlrXmlConstraints getGlobalConstraints()
IlrXmlConstraintsint getVariety()
ATOMIC_VARIETY,
LIST_VARIETY,
UNION_VARIETYIlrXmlSimpleType[] getVarietyTypes()
java.lang.Object newInstance(java.lang.String str)
throws IlrXmlException
http://www.w3.org/TR/xmlschema-2/)IlrXmlException - Raised in case of invalid format.str - The string.boolean isInstance(java.lang.Object object)
object - The object to be checked.int compare(java.lang.Object obj1,
java.lang.Object obj2)
throws IlrXmlException
IlrXmlException - Raised in case of invalidity.obj1 - The first object.obj2 - The second object.EQUAL,
LOWER,
GREATER,
NOT_COMPARABLE© Copyright IBM Corp. 1987, 2017