Data Request Broker
2-3-release

fr.gael.drb.xsd
Class XsdElement

java.lang.Object
  extended by fr.gael.drb.xsd.XsdParticle
      extended by fr.gael.drb.xsd.XsdElement

public class XsdElement
extends XsdParticle

Declaration of a general XML-Schema element.


Field Summary
protected  String targetNamespace
          The target namespace of this type.
 
Fields inherited from class fr.gael.drb.xsd.XsdParticle
ELEMENT_TERM, MODEL_GROUP_TERM, UNBOUNDED_OCCURS, WILDCARD_TERM
 
Constructor Summary
XsdElement(int min_occurs, int max_occurs, String name, XsdType type)
          Build an XML-Schema element.
 
Method Summary
 XsdAnnotation getAnnotation()
          Returns annotation of this component.
 int getConstraint()
          Returns the constraint of the value.
 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 element.
 XsdElement getSubstitutionGroupAffiliation()
          Returns the substitution group affiliation.
 String getTargetNamespace()
          Returns the target namespace of this type.
 int getTerm()
          Returns the term attribute.
 XsdType getType()
          Returns the type of this element.
 Value getValue()
          Returns the value of this element.
 boolean isAbstract()
          Say wether this element is abstract.
 XsdInvalid isValid(DrbNode node)
          Validates this node.
 XsdInvalid isValid(DrbNodeList node_list)
          Validates this node list.
 int search(DrbNodeList node_list, int start)
          Search a pattern in the list.
 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.XsdParticle
getMaxOccurs, getMinOccurs, setOccurs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetNamespace

protected String targetNamespace
The target namespace of this type.

Constructor Detail

XsdElement

public XsdElement(int min_occurs,
                  int max_occurs,
                  String name,
                  XsdType type)
Build an XML-Schema element.

Parameters:
min_occurs - the minimum if the occurence
max_occurs - the maximum of the occurence
name - the name of the element
type - the type of the element
Method Detail

getName

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

Returns:
The element name

isAbstract

public final boolean isAbstract()
Say wether this element is abstract.

Returns:
true if this element is abstract and false otherwise.

getType

public final XsdType getType()
Returns the type of this element.

Returns:
The type of this element

getSubstitutionGroupAffiliation

public final XsdElement getSubstitutionGroupAffiliation()
Returns the substitution group affiliation.

Returns:
The substitution group affiliation

getValue

public final Value getValue()
Returns the value of this element.

Returns:
The value

getConstraint

public final int getConstraint()
Returns the constraint of the value.

Returns:
The constraint

getTerm

public final int getTerm()
Returns the term attribute.

Specified by:
getTerm in class XsdParticle
Returns:
the term

isValid

public XsdInvalid isValid(DrbNode node)
Validates this node.

Parameters:
node - the node
Returns:
XsdInvalid

isValid

public XsdInvalid isValid(DrbNodeList node_list)
Validates this node list.

Parameters:
node_list - the node list
Returns:
XsdInvalid

search

public int search(DrbNodeList node_list,
                  int start)
Search a pattern in the list.

Parameters:
node_list - the list of nodes
start - the begining of the list
Returns:
-1 if it had nod been found, else this place in the list

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 .