org.jbind.example.meansOfTransport
Class FactoryData

java.lang.Object
  extended byorg.jbind.xml.instance.data.AbstractData
      extended byorg.jbind.xml.instance.data.AnyTypeData
          extended byorg.jbind.example.meansOfTransport.FactoryData
All Implemented Interfaces:
IAnyTypeData, IComplexCCData, IComplexData, IFactoryData

public class FactoryData
extends AnyTypeData
implements IFactoryData


Nested Class Summary
static class FactoryData.DataCreator_
           
 
Constructor Summary
FactoryData()
           
 
Method Summary
 IAutomobileData createAutomobile()
          Creates a automobile element.
 IManufacturerData createManufacturer()
          Creates a manufacturer element.
 ITruck createTruck()
          Creates a truck element.
 IVehicle createVehicle()
          Creates a vehicle element.
protected  void doAcceptEnds_(IDataVisitor aVisitor)
           
protected  void doAcceptStarts_(IDataVisitor aVisitor)
           
 boolean hasAutomobile()
          Checks if the automobile element is present.
 boolean hasManufacturer()
          Checks if the manufacturer element is present.
 boolean hasTruck()
          Checks if the truck element is present.
 boolean hasVehicle()
          Checks if the vehicle element is present.
 
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

FactoryData

public FactoryData()
Method Detail

doAcceptStarts_

protected void doAcceptStarts_(IDataVisitor aVisitor)

doAcceptEnds_

protected void doAcceptEnds_(IDataVisitor aVisitor)

hasAutomobile

public boolean hasAutomobile()
Description copied from interface: IFactoryData
Checks if the automobile element is present.

Specified by:
hasAutomobile in interface IFactoryData
Returns:
Returns true iff the element is present.

createAutomobile

public IAutomobileData createAutomobile()
                                 throws XmlException
Description copied from interface: IFactoryData
Creates a automobile element. return (required).

Specified by:
createAutomobile in interface IFactoryData
Throws:
XmlException - Raised if the element could not be created.

hasManufacturer

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

Specified by:
hasManufacturer in interface IFactoryData
Returns:
Returns true iff the element is present.

createManufacturer

public IManufacturerData createManufacturer()
                                     throws XmlException
Description copied from interface: IFactoryData
Creates a manufacturer element. return (required).

Specified by:
createManufacturer in interface IFactoryData
Throws:
XmlException - Raised if the element could not be created.

hasTruck

public boolean hasTruck()
Description copied from interface: IFactoryData
Checks if the truck element is present.

Specified by:
hasTruck in interface IFactoryData
Returns:
Returns true iff the element is present.

createTruck

public ITruck createTruck()
                   throws XmlException
Description copied from interface: IFactoryData
Creates a truck element. return (required).

Specified by:
createTruck in interface IFactoryData
Throws:
XmlException - Raised if the element could not be created.

hasVehicle

public boolean hasVehicle()
Description copied from interface: IFactoryData
Checks if the vehicle element is present.

Specified by:
hasVehicle in interface IFactoryData
Returns:
Returns true iff the element is present.

createVehicle

public IVehicle createVehicle()
                       throws XmlException
Description copied from interface: IFactoryData
Creates a vehicle element. return (required).

Specified by:
createVehicle in interface IFactoryData
Throws:
XmlException - Raised if the element could not be created.