Data Request Broker
2-3-release

fr.gael.drb.xsd
Class XsdType

java.lang.Object
  extended by fr.gael.drb.xsd.XsdType
Direct Known Subclasses:
XsdComplexType, XsdSimpleType

public abstract class XsdType
extends Object

Declaration of a general XML-Schema type.


Field Summary
protected  XsdType base
          The base of this type.
protected  int derivationMethod
          The derivation method.
static int EXTENSION_METHOD
          extension method.
protected  String name
          Name of this type definition.
static int RESTRICTION_METHOD
          restriction method.
protected  XmlSchema schema
          The XML-Schema of this type.
protected  String targetNamespace
          The target namespace of this type.
 
Constructor Summary
protected XsdType()
          Build a default type definition
protected XsdType(String name, XsdType base)
          Build a default type definition
 
Method Summary
 XsdAnnotation getAnnotation()
          Returns annotation of this component.
 XsdType getBase()
          Returns the base of this type.
abstract  XsdSimpleType getDatatype()
          Returns the simple content of this type.
 Set<XsdType> getDerivation()
          Returns the local derivation of this type.
 DrbAttributeList getExternalAttributes()
          Returns the external attributes of this component.
 DrbNodeList getExternalNodes()
          Returns the external nodes of this component.
 String getName()
          Returns the name of this type.
 XmlSchema getSchema()
          Returns the schema of this type.
abstract  XsdComplexType getStructure()
          Returns the structure of this type.
 String getTargetNamespace()
          Returns the target namespace of this type.
abstract  boolean isComplex()
          Returns whether this type is complex or simple.
 XsdInvalid isValid(DrbNode node)
          Validates this node.
 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.
 String toString()
          Returns a string description of this type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EXTENSION_METHOD

public static final int EXTENSION_METHOD
extension method.

See Also:
Constant Field Values

RESTRICTION_METHOD

public static final int RESTRICTION_METHOD
restriction method.

See Also:
Constant Field Values

base

protected XsdType base
The base of this type.


derivationMethod

protected int derivationMethod
The derivation method.


schema

protected XmlSchema schema
The XML-Schema of this type.


name

protected String name
Name of this type definition.


targetNamespace

protected String targetNamespace
The target namespace of this type.

Constructor Detail

XsdType

protected XsdType()
Build a default type definition


XsdType

protected XsdType(String name,
                  XsdType base)
Build a default type definition

Parameters:
name - String name
base - XsdType
Method Detail

getName

public final String getName()
Returns the name of this type.

Returns:
String the name

getBase

public final XsdType getBase()
Returns the base of this type.

Returns:
XsdType

getSchema

public final XmlSchema getSchema()
Returns the schema of this type.

Returns:
schema the schema of this type.

getDerivation

public final Set<XsdType> getDerivation()
Returns the local derivation of this type.

Returns:
the set of derived

isComplex

public abstract boolean isComplex()
Returns whether this type is complex or simple.

Returns:
true or false

getDatatype

public abstract XsdSimpleType getDatatype()
Returns the simple content of this type.

Returns:
XsdSimpleType

getStructure

public abstract XsdComplexType getStructure()
Returns the structure of this type.

Returns:
XsdComplexType

toString

public String toString()
Returns a string description of this type.

Overrides:
toString in class Object
Returns:
String name

isValid

public XsdInvalid isValid(DrbNode node)
Validates this node.

Parameters:
node - DrbNode
Returns:
XsdInvalid

getAnnotation

public final XsdAnnotation getAnnotation()
Returns annotation of this component.

Returns:
The annotation of this component

setAnnotation

public final void setAnnotation(XsdAnnotation annotation)
Set annotation of this component.

Parameters:
annotation - The annotation of this component

getExternalNodes

public final DrbNodeList getExternalNodes()
Returns the external nodes of this component.

Returns:
The list of the node

setExternalNodes

public final void setExternalNodes(DrbNodeList external_nodes)
Set the external nodes of this component.

Parameters:
external_nodes - The list of the node

getExternalAttributes

public final DrbAttributeList getExternalAttributes()
Returns the external attributes of this component.

Returns:
The list of attributes

setExternalAttributes

public final void setExternalAttributes(DrbAttributeList external_attributes)
Set the external attributes of this component.

Parameters:
external_attributes - The list of the attributes

getTargetNamespace

public final String getTargetNamespace()
Returns the target namespace of this type.

Returns:
the target namespace of this type.

setTargetNamespace

public final void setTargetNamespace(String target_namespace)
Set the target namespace of this type.

Parameters:
target_namespace - the target namespace of this type.

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .