org.jbind.example.meansOfTransport
Interface IAutomobileData

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

public interface IAutomobileData
extends IVehicle

Complex type with complex content model.

Attribute Summary
 double
 (IDoubleData)
consumptionInLitres use: optional; propertyName: Consumption
          
 String
 (IStringData)
fuelType use: required; propertyName: FuelType
          
 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

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
 double getConsumption()
          Gets the consumptionInLitres attribute.
 IAnyTypeData getEngine()
          Gets the engine element.
 java.lang.String getFuelType()
          Gets the fuelType attribute.
 boolean hasConsumption()
          Checks if the consumptionInLitres attribute is present.
 boolean hasEngine()
          Checks if the engine element is present.
 void setConsumption(double aValue)
          Sets the consumptionInLitres attribute.
 void setFuelType(java.lang.String aValue)
          Sets the fuelType attribute.
 
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

getEngine

public IAnyTypeData getEngine()
Gets the engine element.

Returns:
(optional) The value.

hasEngine

public boolean hasEngine()
Checks if the engine element is present.

Returns:
Returns true iff the element is present.

getConsumption

public double getConsumption()
Gets the consumptionInLitres attribute.

Returns:
The value.

setConsumption

public void setConsumption(double aValue)
                    throws XmlException
Sets the consumptionInLitres attribute.

Parameters:
aValue - The new value.
Throws:
XmlException - Raised if the value could not be set.

hasConsumption

public boolean hasConsumption()
Checks if the consumptionInLitres attribute is present.

Returns:
Returns true iff the attribute is present.

getFuelType

public java.lang.String getFuelType()
Gets the fuelType attribute.

Returns:
(optional) The value.

setFuelType

public void setFuelType(java.lang.String aValue)
                 throws XmlException
Sets the fuelType attribute.

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