org.jbind.example.helloWorld
Class CountryData
java.lang.Object
org.jbind.xml.instance.data.AbstractData
org.jbind.xml.instance.data.AnyTypeData
org.jbind.example.helloWorld.CountryData
- All Implemented Interfaces:
- IAnyTypeData, IComplexCCData, IComplexData, ICountryData
- public class CountryData
- extends AnyTypeData
- implements ICountryData
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_ |
CountryData
public CountryData()
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