|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.xsd.XsdType
fr.gael.drb.xsd.XsdSimpleType
fr.gael.drb.xsd.XsdAtomicType
public class XsdAtomicType
Declaration of an XML-Schema atomic type.
| Field Summary | |
|---|---|
protected int |
primitive
Primitive of this atomic type. |
protected String |
targetNamespace
The target namespace of this type. |
| Fields inherited from class fr.gael.drb.xsd.XsdSimpleType |
|---|
ALL_FINAL, ATOMIC_VARIETY, EMPTY_FINAL, facets, finals, LIST_FINAL, LIST_VARIETY, RESTRICTION_FINAL, UNION_FINAL, UNION_VARIETY |
| Fields inherited from class fr.gael.drb.xsd.XsdType |
|---|
base, derivationMethod, EXTENSION_METHOD, name, RESTRICTION_METHOD, schema |
| Fields inherited from interface fr.gael.drb.xsd.XsdValueSpace |
|---|
COUNTABLY_INFINITE, FINITE, PARTIAL, TOTAL, UNCOUNTABLY_INFINITE, UNDEFINED |
| Constructor Summary | |
|---|---|
XsdAtomicType(int primitive)
Build an XsdAtomicType from a primitive. |
|
| Method Summary | |
|---|---|
XsdAnnotation |
getAnnotation()
Returns annotation of this component. |
int |
getCardinality()
Returns the cardinality of this value space. |
Value |
getExclusiveLowerBound()
Returns the exclusive lower bound. |
Value |
getExclusiveUpperBound()
Returns the exclusive upper bound. |
DrbAttributeList |
getExternalAttributes()
Returns the external attributes of this component. |
DrbNodeList |
getExternalNodes()
Returns the external nodes of this component. |
Value |
getInclusiveLowerBound()
Returns the inclusive lower bound. |
Value |
getInclusiveUpperBound()
Returns the inclusive upper bound. |
int |
getOrderRelation()
Returns the order-relation of this value space. |
String |
getTargetNamespace()
Returns the target namespace of this type. |
int |
getTypeId()
Returns the identifier of this simple type. |
Value |
getValue(String text)
Create a value from a string. |
int |
getVariety()
Returns the variety of this simple type. |
protected void |
init(int primitive)
Initialize an XsdAtomicType from a primitive. |
boolean |
isBounded()
A datatype is bounded if its value space has either an inclusive upper bound or an exclusive upper bound and either an inclusive lower bound and an exclusive lower bound. |
boolean |
isNumeric()
A datatype is said to be numeric if its values are conceptually quantities (in some mathematical number system). |
boolean |
isOrdered()
A value space, is said to be ordered if there exists an order-relation defined for that value space. |
boolean |
isValid(Value value)
Check if this value satifies the type definition. |
protected boolean |
isValidType(Value value)
Validates the present value. |
static void |
main(String[] args)
Makes this class runnable for testing. |
void |
setAnnotation(XsdAnnotation annotation)
Set annotation of this component. |
void |
setExternalAttributes(DrbAttributeList external_attributes)
Set the external attributes of this component. |
void |
setExternalNodes(DrbNodeList external_nodes)
Set the external nodes of this component. |
void |
setTargetNamespace(String target_namespace)
Set the target namespace of this type. |
| Methods inherited from class fr.gael.drb.xsd.XsdSimpleType |
|---|
getDatatype, getFacets, getFinals, getStructure, isComplex, isValid, validate |
| Methods inherited from class fr.gael.drb.xsd.XsdType |
|---|
getBase, getDerivation, getName, getSchema, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int primitive
protected String targetNamespace
| Constructor Detail |
|---|
public XsdAtomicType(int primitive)
primitive - The primitif type| Method Detail |
|---|
protected void init(int primitive)
primitive - The primitif typepublic final int getVariety()
getVariety in class XsdSimpleTypepublic int getTypeId()
getTypeId in class XsdSimpleTypeValuepublic Value getValue(String text)
getValue in class XsdSimpleTypetext - the string representation of the value.
public boolean isOrdered()
public int getOrderRelation()
XsdValueSpace.PARTIAL,
XsdValueSpace.TOTALpublic boolean isBounded()
public Value getInclusiveLowerBound()
public Value getInclusiveUpperBound()
public Value getExclusiveLowerBound()
public Value getExclusiveUpperBound()
public int getCardinality()
XsdValueSpace.FINITE,
XsdValueSpace.COUNTABLY_INFINITE,
XsdValueSpace.UNCOUNTABLY_INFINITEpublic boolean isNumeric()
protected boolean isValidType(Value value)
isValidType in class XsdSimpleTypevalue - the value
public boolean isValid(Value value)
isValid in interface ValueValidatorisValid in class XsdSimpleTypevalue - The value
public static void main(String[] args)
args - String[]public final XsdAnnotation getAnnotation()
public final void setAnnotation(XsdAnnotation annotation)
annotation - The annotation of this componentpublic final DrbNodeList getExternalNodes()
public final void setExternalNodes(DrbNodeList external_nodes)
external_nodes - The list of the nodepublic final DrbAttributeList getExternalAttributes()
public final void setExternalAttributes(DrbAttributeList external_attributes)
external_attributes - The list of the attributespublic final String getTargetNamespace()
public final void setTargetNamespace(String target_namespace)
target_namespace - the target namespace of this type.
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||