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.
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.
engine
type: IAnyTypeData
minOccurs: 1; maxOccurs: 1; propertyName: Engine
-
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_ |
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.