Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.ws.jaxme.generator.sg.impl.ccsg
Class DriverGeneratingVisitor  view DriverGeneratingVisitor download DriverGeneratingVisitor.java

java.lang.Object
  extended byorg.apache.ws.jaxme.generator.sg.impl.ccsg.ParticleVisitorImpl
      extended byorg.apache.ws.jaxme.generator.sg.impl.ccsg.DriverGeneratingVisitor
All Implemented Interfaces:
ParticleVisitor

public class DriverGeneratingVisitor
extends ParticleVisitorImpl

Implementation of ParticleVisitor for generating the driver class.


Field Summary
private  org.apache.ws.jaxme.js.JavaSource js
           
 
Constructor Summary
DriverGeneratingVisitor(org.apache.ws.jaxme.js.JavaSource pJs)
          Creates a new instance, which writes methods into the given class.
 
Method Summary
 void complexElementParticle(org.apache.ws.jaxme.generator.sg.GroupSG pGroup, org.apache.ws.jaxme.generator.sg.ParticleSG pParticle)
          Invoked to process an element with complex type.
 void emptyType(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
          Invoked for an empty type.
private  void generate(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
           
protected  java.util.List getNames(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
          This method builds a list of the names, which are being used in the element.
private  org.apache.ws.jaxme.js.JavaMethod newGetAttributesMethod(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
           
private  org.apache.ws.jaxme.js.JavaMethod newGetPreferredPrefixMethod(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
           
private  org.apache.ws.jaxme.js.JavaMethod newMarshalChildsMethod(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
           
 void simpleContent(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
          Invoked for a complex type with simple content.
 void startComplexContent(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
          Invoked to start a complex content types content.
 
Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.ccsg.ParticleVisitorImpl
endAll, endChoice, endComplexContent, endSequence, simpleElementParticle, startAll, startChoice, startSequence, wildcardParticle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

js

private final org.apache.ws.jaxme.js.JavaSource js
Constructor Detail

DriverGeneratingVisitor

public DriverGeneratingVisitor(org.apache.ws.jaxme.js.JavaSource pJs)
Creates a new instance, which writes methods into the given class.

Method Detail

getNames

protected java.util.List getNames(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
                           throws org.xml.sax.SAXException
This method builds a list of the names, which are being used in the element. The list is used for generating the method JMSAXDriver.getPreferredPrefix(String)>JMSAXDriver.getPreferredPrefix(String) 55 .


newGetPreferredPrefixMethod

private org.apache.ws.jaxme.js.JavaMethod newGetPreferredPrefixMethod(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
                                                               throws org.xml.sax.SAXException

newGetAttributesMethod

private org.apache.ws.jaxme.js.JavaMethod newGetAttributesMethod(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
                                                          throws org.xml.sax.SAXException

newMarshalChildsMethod

private org.apache.ws.jaxme.js.JavaMethod newMarshalChildsMethod(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
                                                          throws org.xml.sax.SAXException

generate

private void generate(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
               throws org.xml.sax.SAXException

emptyType

public void emptyType(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
               throws org.xml.sax.SAXException
Description copied from interface: ParticleVisitor
Invoked for an empty type.

Specified by:
emptyType in interface ParticleVisitor
Overrides:
emptyType in class ParticleVisitorImpl

simpleContent

public void simpleContent(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
                   throws org.xml.sax.SAXException
Description copied from interface: ParticleVisitor
Invoked for a complex type with simple content.

Specified by:
simpleContent in interface ParticleVisitor
Overrides:
simpleContent in class ParticleVisitorImpl

startComplexContent

public void startComplexContent(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
                         throws org.xml.sax.SAXException
Description copied from interface: ParticleVisitor
Invoked to start a complex content types content.

Specified by:
startComplexContent in interface ParticleVisitor
Overrides:
startComplexContent in class ParticleVisitorImpl

complexElementParticle

public void complexElementParticle(org.apache.ws.jaxme.generator.sg.GroupSG pGroup,
                                   org.apache.ws.jaxme.generator.sg.ParticleSG pParticle)
                            throws org.xml.sax.SAXException
Description copied from interface: ParticleVisitor
Invoked to process an element with complex type.

Specified by:
complexElementParticle in interface ParticleVisitor
Overrides:
complexElementParticle in class ParticleVisitorImpl