Data Request Broker
2-3-release

fr.gael.drb.xsd
Class XsdComplexType

java.lang.Object
  extended by fr.gael.drb.xsd.XsdType
      extended by fr.gael.drb.xsd.XsdComplexType
All Implemented Interfaces:
ValueValidator

public class XsdComplexType
extends XsdType
implements ValueValidator

Declaration of an XML-Schema complex type.


Field Summary
protected  String targetNamespace
          The target namespace of this type.
 
Fields inherited from class fr.gael.drb.xsd.XsdType
base, derivationMethod, EXTENSION_METHOD, name, RESTRICTION_METHOD, schema
 
Constructor Summary
XsdComplexType(String name, XsdAttributeGroup attrib_group, XsdModelGroup complex_content, XsdType base_type, int derivation_method)
          Build a complex type with a complex content.
XsdComplexType(String name, XsdModelGroup complex_content, XsdType base_type)
          Build a complex type with a complex content.
 
Method Summary
 XsdAnnotation getAnnotation()
          Returns annotation of this component.
 XsdAttributeGroup getAttributeGroup()
          Returns the attribute group of this type.
 XsdModelGroup getComplexContent()
          Returns the complex content of this type.
 XsdSimpleType getDatatype()
          Returns the simple content of this type.
 DrbAttributeList getExternalAttributes()
          Returns the external attributes of this component.
 DrbNodeList getExternalNodes()
          Returns the external nodes of this component.
 XsdComplexType getStructure()
          Returns the structure of this type.
 String getTargetNamespace()
          Returns the target namespace of this type.
 boolean isComplex()
          Check if this type is complex.
 XsdInvalid isValid(DrbNode node)
          Validates this node.
 boolean isValid(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.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

targetNamespace

protected String targetNamespace
The target namespace of this type.

Constructor Detail

XsdComplexType

public XsdComplexType(String name,
                      XsdModelGroup complex_content,
                      XsdType base_type)
Build a complex type with a complex content.

Parameters:
name - The name type
complex_content - The model group
base_type - The type

XsdComplexType

public XsdComplexType(String name,
                      XsdAttributeGroup attrib_group,
                      XsdModelGroup complex_content,
                      XsdType base_type,
                      int derivation_method)
Build a complex type with a complex content.

Parameters:
name - The name type
complex_content - The model group
base_type - The type
derivation_method - The derivation method
attrib_group - The attribute group
Method Detail

getAttributeGroup

public XsdAttributeGroup getAttributeGroup()
Returns the attribute group of this type.

Returns:
The attribute group

getComplexContent

public XsdModelGroup getComplexContent()
Returns the complex content of this type.

Returns:
The model group

isComplex

public final boolean isComplex()
Check if this type is complex.

Specified by:
isComplex in class XsdType
Returns:
true

getDatatype

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

Specified by:
getDatatype in class XsdType
Returns:
The simple type

getStructure

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

Specified by:
getStructure in class XsdType
Returns:
The complex type

isValid

public boolean isValid(Value value)
Validates the present value.

Specified by:
isValid in interface ValueValidator
Parameters:
value - The value
Returns:
true if the value is valid , else false

isValid

public XsdInvalid isValid(DrbNode node)
Validates this node.

Parameters:
node - The node
Returns:
XsdInvalid

main

public static void main(String[] args)
Makes this class runnable for testing.

Parameters:
args - String[]

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 .