|
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
public abstract class XsdSimpleType
Declaration of an XML-Schema simple type.
| Field Summary | |
|---|---|
static int |
ALL_FINAL
All final derivation. |
static int |
ATOMIC_VARIETY
Atomic variety |
static int |
EMPTY_FINAL
Empty final derivation. |
protected XsdFacet[] |
facets
facets |
protected int |
finals
final properties. |
static int |
LIST_FINAL
Final property for derivation by list. |
static int |
LIST_VARIETY
List variety |
static int |
RESTRICTION_FINAL
Final property for derivation by restriction. |
protected String |
targetNamespace
The target namespace of this type. |
static int |
UNION_FINAL
Final property for derivation by union. |
static int |
UNION_VARIETY
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 | |
|---|---|
protected |
XsdSimpleType()
Build a default type definition |
protected |
XsdSimpleType(String name,
XsdSimpleType base)
Build a default type definition |
| Method Summary | |
|---|---|
XsdAnnotation |
getAnnotation()
Returns annotation of this component. |
XsdSimpleType |
getDatatype()
Returns the content of this type. |
DrbAttributeList |
getExternalAttributes()
Returns the external attributes of this component. |
DrbNodeList |
getExternalNodes()
Returns the external nodes of this component. |
XsdFacet[] |
getFacets()
Returns the facets applied to this simple type. |
int |
getFinals()
Returns a set of final properties. |
XsdComplexType |
getStructure()
Returns the structure of this type. |
String |
getTargetNamespace()
Returns the target namespace of this type. |
int |
getTypeId()
Returns the identifier of this simple type. |
abstract Value |
getValue(String text)
Create a value from a string. |
abstract int |
getVariety()
Returns the variety of this simple type. |
boolean |
isComplex()
Check if this type is complex. |
XsdInvalid |
isValid(DrbNode node)
Validates this node. |
boolean |
isValid(Value value)
Validates the present value. |
protected boolean |
isValidType(Value value)
Validates the type of the present value. |
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. |
XsdInvalid |
validate(Value value)
Validates the present value. |
| 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 |
| Methods inherited from interface fr.gael.drb.xsd.XsdValueSpace |
|---|
getCardinality, getExclusiveLowerBound, getExclusiveUpperBound, getInclusiveLowerBound, getInclusiveUpperBound, getOrderRelation, isBounded, isNumeric, isOrdered |
| Field Detail |
|---|
public static final int UNION_VARIETY
public static final int ATOMIC_VARIETY
public static final int LIST_VARIETY
public static final int ALL_FINAL
public static final int EMPTY_FINAL
public static final int RESTRICTION_FINAL
public static final int LIST_FINAL
public static final int UNION_FINAL
protected int finals
protected XsdFacet[] facets
protected String targetNamespace
| Constructor Detail |
|---|
protected XsdSimpleType()
protected XsdSimpleType(String name,
XsdSimpleType base)
name - String namebase - XsdSimpleType| Method Detail |
|---|
public final int getFinals()
public abstract int getVariety()
public int getTypeId()
Valuepublic final XsdFacet[] getFacets()
public abstract Value getValue(String text)
text - the string representation of the value.
public final boolean isComplex()
isComplex in class XsdTypepublic final XsdSimpleType getDatatype()
getDatatype in class XsdTypepublic final XsdComplexType getStructure()
getStructure in class XsdTypepublic boolean isValid(Value value)
isValid in interface ValueValidatorvalue - the value
protected boolean isValidType(Value value)
value - the value
public XsdInvalid validate(Value value)
value - the value
public XsdInvalid isValid(DrbNode node)
node - the DrbNode
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 | |||||||||