|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbind.xml.instance.data.AbstractData org.jbind.xml.instance.data.AnyTypeData org.jbind.example.meansOfTransport.MeansOfTransport org.jbind.example.meansOfTransport.Vehicle org.jbind.example.meansOfTransport.Truck org.jbind.example.meansOfTransport.TruckData
Nested Class Summary | |
static class |
TruckData.DataCreator_
|
Constructor Summary | |
TruckData()
|
Method Summary | |
protected void |
doAcceptEnds_(IDataVisitor aVisitor)
|
protected void |
doAcceptStarts_(IDataVisitor aVisitor)
|
protected void |
doSetNumberOfWheels(int aValue)
Declaration of the hook method. |
double |
getConsumption()
Gets the consumptionInLitres attribute. |
IAnyTypeData |
getEngine()
Gets the engine element. |
java.lang.String |
getFuelType()
Gets the fuelType attribute. |
java.math.BigDecimal |
getLoadCapacityInTons()
Gets the loadCapacityInTons attribute. |
java.lang.String |
getManufacturer()
Gets the manufacturer attribute. |
int |
getNumberOfWheels()
Gets the numberOfWheels attribute. |
boolean |
hasConsumption()
Checks if the consumptionInLitres attribute is present. |
boolean |
hasEngine()
Checks if the engine element is present. |
boolean |
hasLoadCapacityInTons()
Checks if the loadCapacityInTons attribute is present. |
boolean |
hasManufacturer()
Checks if the manufacturer attribute is present. |
boolean |
hasNumberOfWheels()
Checks if the numberOfWheels attribute is present. |
IManufacturerData |
refManufacturer()
Gets the data object referenced by the "IDREF(manufacturer)" reference constraint. |
void |
removeNumberOfWheels()
Removes the numberOfWheels attribute. |
void |
setConsumption(double aValue)
Sets the consumptionInLitres attribute. |
void |
setFuelType(java.lang.String aValue)
Sets the fuelType attribute. |
void |
setLoadCapacityInTons(java.math.BigDecimal aValue)
Sets the loadCapacityInTons attribute. |
void |
setManufacturer(java.lang.String aValue)
Sets the manufacturer attribute. |
Methods inherited from class org.jbind.example.meansOfTransport.Vehicle |
setNumberOfWheels |
Methods inherited from class org.jbind.xml.instance.data.AnyTypeData |
acceptImpl_ |
Methods inherited from class org.jbind.xml.instance.data.AbstractData |
accept_, addReferencedData_, createElement_, createElement_, createUncheckedAttributeData_, equals, fetchByXPath_, getAttribute_, getDataDesc_, getFixed_, getImpl_, getParent_, getSubstitutionHead_, getType_, hashCode, isDefault_, isNil_, iterAttributes_, iterElements_, iterReferencedData_, newElementData_, numberByXPath_, removeAttributeData_, selectByXPath_, setAttribute_, setDataDesc_, setImpl_, setSubstitutionHead_, setType_, stringByXPath_, testByXPath_ |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jbind.example.meansOfTransport.IVehicleData |
setNumberOfWheels |
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_ |
Constructor Detail |
public TruckData()
Method Detail |
protected void doAcceptStarts_(IDataVisitor aVisitor)
protected void doAcceptEnds_(IDataVisitor aVisitor)
public IAnyTypeData getEngine()
IAutomobileData
public boolean hasEngine()
IAutomobileData
true
iff the element is present.public double getConsumption()
IAutomobileData
public void setConsumption(double aValue) throws XmlException
IAutomobileData
aValue
- The new value.
XmlException
- Raised if the value could not be set.public boolean hasConsumption()
IAutomobileData
true
iff the attribute is present.public java.lang.String getFuelType()
IAutomobileData
public void setFuelType(java.lang.String aValue) throws XmlException
IAutomobileData
aValue
- (optional).
XmlException
- Raised if the value could not be set.public java.math.BigDecimal getLoadCapacityInTons()
ITruckData
public void setLoadCapacityInTons(java.math.BigDecimal aValue) throws XmlException
ITruckData
aValue
- (optional).
XmlException
- Raised if the value could not be set.public boolean hasLoadCapacityInTons()
ITruckData
true
iff the attribute is present.public java.lang.String getManufacturer()
IMeansOfTransportData
public void setManufacturer(java.lang.String aValue) throws XmlException
IMeansOfTransportData
aValue
- (optional).
XmlException
- Raised if the value could not be set.public boolean hasManufacturer()
IMeansOfTransportData
true
iff the attribute is present.public int getNumberOfWheels()
IVehicleData
protected void doSetNumberOfWheels(int aValue) throws XmlException
Vehicle
doSetNumberOfWheels
in class Vehicle
XmlException
public boolean hasNumberOfWheels()
IVehicleData
true
iff the attribute is present.public void removeNumberOfWheels() throws XmlException
IVehicleData
XmlException
- Raised if it is tried to remove a required attribute.public IManufacturerData refManufacturer()
IMeansOfTransportData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |