org.jbind.example.helloWorld
Interface ICountryData

All Superinterfaces:
IAnyTypeData, IComplexCCData, IComplexData
All Known Implementing Classes:
CountryData

public interface ICountryData
extends IAnyTypeData, IComplexCCData

Complex type with complex content model.

Attribute Summary
 BigInteger
 (INonNegativeIntegerData)
area use: optional; propertyName: Area
          
 String
 (INMTOKENData)
countryId use: required; propertyName: CountryId
          
 String
 (IStringData)
countryName use: required; propertyName: CountryName
          

Attribute Detail

area

type: BigInteger (INonNegativeIntegerData) use: optional; propertyName: Area

countryId

type: String (INMTOKENData) use: required; propertyName: CountryId

countryName

type: String (IStringData) use: required; propertyName: CountryName

Element Summary
 ICityData city minOccurs: 1; maxOccurs: unbounded; propertyName: City
          

Element Detail

city

type: ICityData minOccurs: 1; maxOccurs: unbounded; propertyName: City


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

iterCities

public java.util.ListIterator iterCities()
Iterates the city elements.

Returns:
Returns a list iterator of ICityData.

getArea

public java.math.BigInteger getArea()
Gets the area attribute.

Returns:
(optional) The value.

getCountryId

public java.lang.String getCountryId()
Gets the countryId attribute.

Returns:
(optional) The value.

getCountryName

public java.lang.String getCountryName()
Gets the countryName attribute.

Returns:
(optional) The value.

stringCountrySummary

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

Returns:
The evaluation result.
Throws:
XmlException