Data Request Broker
2-3-release

fr.gael.drb.xsd
Class XsdParticle

java.lang.Object
  extended by fr.gael.drb.xsd.XsdParticle
Direct Known Subclasses:
XsdAny, XsdElement, XsdModelGroup

public abstract class XsdParticle
extends Object

Declaration of an XML-Schema particle.


Field Summary
static int ELEMENT_TERM
          Element term.
static int MODEL_GROUP_TERM
          Model Group term.
protected  String targetNamespace
          The target namespace of this type.
static int UNBOUNDED_OCCURS
          Unbounded occurrence.
static int WILDCARD_TERM
          Wildcard term.
 
Constructor Summary
protected XsdParticle()
          Build a particle.
protected XsdParticle(int minoccurs, int maxoccurs)
          Build a particle.
 
Method Summary
 XsdAnnotation getAnnotation()
          Returns annotation of this component.
 DrbAttributeList getExternalAttributes()
          Returns the external attributes of this component.
 DrbNodeList getExternalNodes()
          Returns the external nodes of this component.
 int getMaxOccurs()
          Returns the maximum occurrence.
 int getMinOccurs()
          Returns the minimum occurrence.
 String getTargetNamespace()
          Returns the target namespace of this type.
abstract  int getTerm()
          Returns the term attribute.
 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 setOccurs(int minoccurs, int maxoccurs)
          Set the min and max occurs parameters.
 void setTargetNamespace(String target_namespace)
          Set the target namespace of this type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODEL_GROUP_TERM

public static final int MODEL_GROUP_TERM
Model Group term.

See Also:
Constant Field Values

ELEMENT_TERM

public static final int ELEMENT_TERM
Element term.

See Also:
Constant Field Values

WILDCARD_TERM

public static final int WILDCARD_TERM
Wildcard term.

See Also:
Constant Field Values

UNBOUNDED_OCCURS

public static final int UNBOUNDED_OCCURS
Unbounded occurrence.

See Also:
Constant Field Values

targetNamespace

protected String targetNamespace
The target namespace of this type.

Constructor Detail

XsdParticle

protected XsdParticle()
Build a particle.


XsdParticle

protected XsdParticle(int minoccurs,
                      int maxoccurs)
Build a particle.

Parameters:
minoccurs - the min of the occurence
maxoccurs - the max of the occurence
Method Detail

getMinOccurs

public final int getMinOccurs()
Returns the minimum occurrence.

Returns:
int minimum occurence

getMaxOccurs

public final int getMaxOccurs()
Returns the maximum occurrence.

Returns:
int maximum occurence

setOccurs

public void setOccurs(int minoccurs,
                      int maxoccurs)
Set the min and max occurs parameters.

Parameters:
minoccurs - the min of the occurence
maxoccurs - the max of the occurence

getTerm

public abstract int getTerm()
Returns the term attribute.

Returns:
int

isValid

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

Parameters:
node_list - DrbNodeList
Returns:
XsdInvalid

search

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

Parameters:
node_list - DrbNodeList
start - int
Returns:
int

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 .