org.jbind.example.helloWorld
Class WorldData

java.lang.Object
  extended byorg.jbind.xml.instance.data.AbstractData
      extended byorg.jbind.xml.instance.data.AnyTypeData
          extended byorg.jbind.example.helloWorld.World
              extended byorg.jbind.example.helloWorld.WorldData
All Implemented Interfaces:
IAnyTypeData, IApplication, IComplexCCData, IComplexData, IConfiguration, IWorld, IWorldData

public class WorldData
extends World


Nested Class Summary
static class WorldData.DataCreator_
           
 
Constructor Summary
WorldData()
           
 
Method Summary
protected  void doAcceptEnds_(IDataVisitor aVisitor)
           
protected  void doAcceptStarts_(IDataVisitor aVisitor)
           
 int getNbSetupAndTearDownLevels()
          Gets the nbSetupAndTearDownLevels attribute.
 java.util.ListIterator iterCountries()
          Iterates the country elements.
 java.util.ListIterator iterPersons()
          Iterates the person elements.
 double numberCountries()
          Evaluates the XPath "count(.
 double numberPersons()
          Evaluates the XPath "count(.
 double numberTotalArea()
          Evaluates the XPath "sum(.
 java.util.Iterator selectAllCountries()
          Evaluates the XPath ".
 java.util.Iterator selectAllPersons()
          Evaluates the XPath ".
 
Methods inherited from class org.jbind.example.helloWorld.World
execute
 
Methods inherited from class org.jbind.xml.instance.data.AnyTypeData
acceptImpl_
 
Methods inherited from class org.jbind.xml.instance.data.AbstractData
accept_, addReferencedData_, createElement_, createElement_, createUncheckedAttributeData_, equals, fetchByXPath_, getAttribute_, getDataDesc_, getFixed_, getImpl_, getParent_, getSubstitutionHead_, getType_, hashCode, isDefault_, isNil_, iterAttributes_, iterElements_, iterReferencedData_, newElementData_, numberByXPath_, removeAttributeData_, selectByXPath_, setAttribute_, setDataDesc_, setImpl_, setSubstitutionHead_, setType_, stringByXPath_, testByXPath_
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.core.data.IAnyTypeData
accept_, acceptImpl_, addReferencedData_, createElement_, createElement_, equals, getAttribute_, getDataDesc_, getImpl_, getParent_, getSubstitutionHead_, getType_, hashCode, isDefault_, isNil_, iterAttributes_, iterElements_, setAttribute_, setDataDesc_, setImpl_, setSubstitutionHead_, setType_
 

Constructor Detail

WorldData

public WorldData()
Method Detail

doAcceptStarts_

protected void doAcceptStarts_(IDataVisitor aVisitor)

doAcceptEnds_

protected void doAcceptEnds_(IDataVisitor aVisitor)

iterCountries

public java.util.ListIterator iterCountries()
Description copied from interface: IWorldData
Iterates the country elements.

Returns:
Returns a list iterator of ICountryData.

iterPersons

public java.util.ListIterator iterPersons()
Description copied from interface: IWorldData
Iterates the person elements.

Returns:
Returns a list iterator of IPerson.

getNbSetupAndTearDownLevels

public int getNbSetupAndTearDownLevels()
Description copied from interface: IWorldData
Gets the nbSetupAndTearDownLevels attribute.

Returns:
The value.

selectAllCountries

public java.util.Iterator selectAllCountries()
                                      throws XmlException
Description copied from interface: IWorldData
Evaluates the XPath ".//t:country".

Returns:
The evaluation result.
Throws:
XmlException

selectAllPersons

public java.util.Iterator selectAllPersons()
                                    throws XmlException
Description copied from interface: IWorldData
Evaluates the XPath ".//t:person".

Returns:
The evaluation result.
Throws:
XmlException

numberCountries

public double numberCountries()
                       throws XmlException
Description copied from interface: IWorldData
Evaluates the XPath "count(.//t:country)".

Returns:
The evaluation result.
Throws:
XmlException

numberPersons

public double numberPersons()
                     throws XmlException
Description copied from interface: IWorldData
Evaluates the XPath "count(.//t:person)".

Returns:
The evaluation result.
Throws:
XmlException

numberTotalArea

public double numberTotalArea()
                       throws XmlException
Description copied from interface: IWorldData
Evaluates the XPath "sum(.//t:country/@area)".

Returns:
The evaluation result.
Throws:
XmlException