org.jbind.example.meansOfTransport
Class VehicleData

java.lang.Object
  extended byorg.jbind.xml.instance.data.AbstractData
      extended byorg.jbind.xml.instance.data.AnyTypeData
          extended byorg.jbind.example.meansOfTransport.MeansOfTransport
              extended byorg.jbind.example.meansOfTransport.Vehicle
                  extended byorg.jbind.example.meansOfTransport.VehicleData
All Implemented Interfaces:
IAnyTypeData, IComplexCCData, IComplexData, IMeansOfTransport, IMeansOfTransportData, IVehicle, IVehicleData

public class VehicleData
extends Vehicle


Nested Class Summary
static class VehicleData.DataCreator_
           
 
Constructor Summary
VehicleData()
           
 
Method Summary
protected  void doAcceptEnds_(IDataVisitor aVisitor)
           
protected  void doAcceptStarts_(IDataVisitor aVisitor)
           
protected  void doSetNumberOfWheels(int aValue)
          Declaration of the hook method.
 java.lang.String getManufacturer()
          Gets the manufacturer attribute.
 int getNumberOfWheels()
          Gets the numberOfWheels attribute.
 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 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.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

VehicleData

public VehicleData()
Method Detail

doAcceptStarts_

protected void doAcceptStarts_(IDataVisitor aVisitor)

doAcceptEnds_

protected void doAcceptEnds_(IDataVisitor aVisitor)

getManufacturer

public java.lang.String getManufacturer()
Description copied from interface: IMeansOfTransportData
Gets the manufacturer attribute.

Returns:
(optional) The value.

setManufacturer

public void setManufacturer(java.lang.String aValue)
                     throws XmlException
Description copied from interface: IMeansOfTransportData
Sets the manufacturer attribute.

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

hasManufacturer

public boolean hasManufacturer()
Description copied from interface: IMeansOfTransportData
Checks if the manufacturer attribute is present.

Returns:
Returns true iff the attribute is present.

getNumberOfWheels

public int getNumberOfWheels()
Description copied from interface: IVehicleData
Gets the numberOfWheels attribute.

Returns:
The value.

doSetNumberOfWheels

protected void doSetNumberOfWheels(int aValue)
                            throws XmlException
Description copied from class: Vehicle
Declaration of the hook method. The hook method is implemented by the generated data class.

Specified by:
doSetNumberOfWheels in class Vehicle
Throws:
XmlException

hasNumberOfWheels

public boolean hasNumberOfWheels()
Description copied from interface: IVehicleData
Checks if the numberOfWheels attribute is present.

Returns:
Returns true iff the attribute is present.

removeNumberOfWheels

public void removeNumberOfWheels()
                          throws XmlException
Description copied from interface: IVehicleData
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.

refManufacturer

public IManufacturerData refManufacturer()
Description copied from interface: IMeansOfTransportData
Gets the data object referenced by the "IDREF(manufacturer)" reference constraint.

Returns:
The referenced data object.