org.jbind.example.helloWorld
Class CountryData

java.lang.Object
  extended byorg.jbind.xml.instance.data.AbstractData
      extended byorg.jbind.xml.instance.data.AnyTypeData
          extended byorg.jbind.example.helloWorld.CountryData
All Implemented Interfaces:
IAnyTypeData, IComplexCCData, IComplexData, ICountryData

public class CountryData
extends AnyTypeData
implements ICountryData


Nested Class Summary
static class CountryData.DataCreator_
           
 
Constructor Summary
CountryData()
           
 
Method Summary
protected  void doAcceptEnds_(IDataVisitor aVisitor)
           
protected  void doAcceptStarts_(IDataVisitor aVisitor)
           
 java.math.BigInteger getArea()
          Gets the area attribute.
 java.lang.String getCountryId()
          Gets the countryId attribute.
 java.lang.String getCountryName()
          Gets the countryName attribute.
 java.util.ListIterator iterCities()
          Iterates the city elements.
 java.lang.String stringCountrySummary()
          Evaluates the XPath "concat('country ', @countryName, ' has ', count(t:city), ' cities.
 
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

CountryData

public CountryData()
Method Detail

doAcceptStarts_

protected void doAcceptStarts_(IDataVisitor aVisitor)

doAcceptEnds_

protected void doAcceptEnds_(IDataVisitor aVisitor)

iterCities

public java.util.ListIterator iterCities()
Description copied from interface: ICountryData
Iterates the city elements.

Specified by:
iterCities in interface ICountryData
Returns:
Returns a list iterator of ICityData.

getArea

public java.math.BigInteger getArea()
Description copied from interface: ICountryData
Gets the area attribute.

Specified by:
getArea in interface ICountryData
Returns:
(optional) The value.

getCountryId

public java.lang.String getCountryId()
Description copied from interface: ICountryData
Gets the countryId attribute.

Specified by:
getCountryId in interface ICountryData
Returns:
(optional) The value.

getCountryName

public java.lang.String getCountryName()
Description copied from interface: ICountryData
Gets the countryName attribute.

Specified by:
getCountryName in interface ICountryData
Returns:
(optional) The value.

stringCountrySummary

public java.lang.String stringCountrySummary()
                                      throws XmlException
Description copied from interface: ICountryData
Evaluates the XPath "concat('country ', @countryName, ' has ', count(t:city), ' cities.')".

Specified by:
stringCountrySummary in interface ICountryData
Returns:
The evaluation result.
Throws:
XmlException