org.jbind.example.meansOfTransport
Interface IVehicleData

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

public interface IVehicleData
extends IMeansOfTransport

Complex type with empty content model.

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

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.


Method Summary
 int getNumberOfWheels()
          Gets the numberOfWheels attribute.
 boolean hasNumberOfWheels()
          Checks if the numberOfWheels attribute is present.
 void removeNumberOfWheels()
          Removes the numberOfWheels attribute.
 void setNumberOfWheels(int aValue)
          Sets the numberOfWheels attribute.
 
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

getNumberOfWheels

public int getNumberOfWheels()
Gets the numberOfWheels attribute.

Returns:
The value.

setNumberOfWheels

public void setNumberOfWheels(int aValue)
                       throws XmlException
Sets the numberOfWheels attribute. The underlying data class implements the hook method:
protected void doSetNumberOfWheels(int aValue) throws XmlException;

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

hasNumberOfWheels

public boolean hasNumberOfWheels()
Checks if the numberOfWheels attribute is present.

Returns:
Returns true iff the attribute is present.

removeNumberOfWheels

public void removeNumberOfWheels()
                          throws XmlException
Removes the numberOfWheels attribute. If the attribute has a default (or fixed) value than a new attribute is created (on demand).

Throws:
XmlException - Raised if it is tried to remove a required attribute.