org.jbind.example.meansOfTransport
Interface ITruckData

All Superinterfaces:
IAnyTypeData, IAutomobileData, IComplexCCData, IComplexData, IMeansOfTransport, IMeansOfTransportData, IVehicle, IVehicleData
All Known Subinterfaces:
ITruck
All Known Implementing Classes:
Truck

public interface ITruckData
extends IAutomobileData

Complex type with complex content model.

Attribute Summary
 double
 (IDoubleData)
consumptionInLitres use: optional; propertyName: Consumption
          
 String
 (IStringData)
fuelType use: required; propertyName: FuelType
          
 BigDecimal
 (IDecimalData)
loadCapacityInTons use: optional; propertyName: LoadCapacityInTons
          
 String
 (IIDREFData)
manufacturer use: optional; propertyName: Manufacturer
          
 int
 (IIntData)
numberOfWheels use: optional; propertyName: NumberOfWheels
          This attribute is set by a hook method that is manually implemented in the Vehicle class.

Attribute Detail

consumptionInLitres

type: double (IDoubleData) use: optional; propertyName: Consumption

fuelType

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

loadCapacityInTons

type: BigDecimal (IDecimalData) use: optional; propertyName: LoadCapacityInTons

manufacturer

type: String (IIDREFData) use: optional; propertyName: Manufacturer

numberOfWheels

type: int (IIntData) use: optional; propertyName: NumberOfWheels
This attribute is set by a hook method that is manually implemented in the Vehicle class.

Element Summary
 IAnyTypeData engine minOccurs: 1; maxOccurs: 1; propertyName: Engine
          

Element Detail

engine

type: IAnyTypeData minOccurs: 1; maxOccurs: 1; propertyName: Engine


Method Summary
 java.math.BigDecimal getLoadCapacityInTons()
          Gets the loadCapacityInTons attribute.
 boolean hasLoadCapacityInTons()
          Checks if the loadCapacityInTons attribute is present.
 void setLoadCapacityInTons(java.math.BigDecimal aValue)
          Sets the loadCapacityInTons attribute.
 
Methods inherited from interface org.jbind.example.meansOfTransport.IAutomobileData
getConsumption, getEngine, getFuelType, hasConsumption, hasEngine, setConsumption, setFuelType
 
Methods inherited from interface org.jbind.example.meansOfTransport.IVehicleData
getNumberOfWheels, hasNumberOfWheels, removeNumberOfWheels, setNumberOfWheels
 
Methods inherited from interface org.jbind.example.meansOfTransport.IMeansOfTransportData
getManufacturer, hasManufacturer, refManufacturer, setManufacturer
 
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

getLoadCapacityInTons

public java.math.BigDecimal getLoadCapacityInTons()
Gets the loadCapacityInTons attribute.

Returns:
(optional) The value.

setLoadCapacityInTons

public void setLoadCapacityInTons(java.math.BigDecimal aValue)
                           throws XmlException
Sets the loadCapacityInTons attribute.

Parameters:
aValue - (optional).
Throws:
XmlException - Raised if the value could not be set.

hasLoadCapacityInTons

public boolean hasLoadCapacityInTons()
Checks if the loadCapacityInTons attribute is present.

Returns:
Returns true iff the attribute is present.