org.jbind.example.helloWorld
Interface IWorldData

All Superinterfaces:
IAnyTypeData, IComplexCCData, IComplexData
All Known Subinterfaces:
IWorld
All Known Implementing Classes:
World

public interface IWorldData
extends IAnyTypeData, IComplexCCData

Complex type with complex content model.

Attribute Summary
 int
 (IIntData)
nbSetupAndTearDownLevels use: required; propertyName: NbSetupAndTearDownLevels
          

Attribute Detail

nbSetupAndTearDownLevels

type: int (IIntData) use: required; propertyName: NbSetupAndTearDownLevels

Element Summary
 ICountryData country minOccurs: 0; maxOccurs: unbounded; propertyName: Country
          
 IPerson person minOccurs: 0; maxOccurs: unbounded; propertyName: Person
          

Element Detail

country

type: ICountryData minOccurs: 0; maxOccurs: unbounded; propertyName: Country

person

type: IPerson minOccurs: 0; maxOccurs: unbounded; propertyName: Person


Method Summary
 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 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_
 

Method Detail

iterCountries

public java.util.ListIterator iterCountries()
Iterates the country elements.

Returns:
Returns a list iterator of ICountryData.

iterPersons

public java.util.ListIterator iterPersons()
Iterates the person elements.

Returns:
Returns a list iterator of IPerson.

getNbSetupAndTearDownLevels

public int getNbSetupAndTearDownLevels()
Gets the nbSetupAndTearDownLevels attribute.

Returns:
The value.

selectAllCountries

public java.util.Iterator selectAllCountries()
                                      throws XmlException
Evaluates the XPath ".//t:country".

Returns:
The evaluation result.
Throws:
XmlException

selectAllPersons

public java.util.Iterator selectAllPersons()
                                    throws XmlException
Evaluates the XPath ".//t:person".

Returns:
The evaluation result.
Throws:
XmlException

numberCountries

public double numberCountries()
                       throws XmlException
Evaluates the XPath "count(.//t:country)".

Returns:
The evaluation result.
Throws:
XmlException

numberPersons

public double numberPersons()
                     throws XmlException
Evaluates the XPath "count(.//t:person)".

Returns:
The evaluation result.
Throws:
XmlException

numberTotalArea

public double numberTotalArea()
                       throws XmlException
Evaluates the XPath "sum(.//t:country/@area)".

Returns:
The evaluation result.
Throws:
XmlException