org.apache.ws.jaxme.generator.sg.impl.ccsg
Class BeanGeneratingVisitor

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.ccsg.ParticleVisitorImpl
      extended by org.apache.ws.jaxme.generator.sg.impl.ccsg.BeanGeneratingVisitor
All Implemented Interfaces:
ParticleVisitor

public class BeanGeneratingVisitor
extends ParticleVisitorImpl

Implementation of a ParticleVisitor, which generates a bean class.


Constructor Summary
BeanGeneratingVisitor(JavaSource pJs)
          Creates a new instance generating methods into the given class.
 
Method Summary
 void complexElementParticle(GroupSG pGroup, ParticleSG pParticle)
          Invoked to process an element with complex type.
 void emptyType(ComplexTypeSG pType)
          Invoked for an empty type.
protected  JavaMethod getGetMixedContentMethod()
           
 void simpleContent(ComplexTypeSG pType)
          Invoked for a complex type with simple content.
 void simpleElementParticle(GroupSG pGroup, ParticleSG pParticle)
          Invoked to process an element with simple type.
 void startComplexContent(ComplexTypeSG pType)
          Invoked to start a complex content types content.
 void wildcardParticle(ParticleSG particle)
          Invoked to process a wildcard particle.
 
Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.ccsg.ParticleVisitorImpl
endAll, endChoice, endComplexContent, endSequence, startAll, startChoice, startSequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanGeneratingVisitor

public BeanGeneratingVisitor(JavaSource pJs)
Creates a new instance generating methods into the given class.

Parameters:
pJs - Bean class being generated.
Method Detail

emptyType

public void emptyType(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
Throws:
org.xml.sax.SAXException - The visitor failed.

simpleContent

public void simpleContent(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
Throws:
org.xml.sax.SAXException - The visitor failed.

getGetMixedContentMethod

protected JavaMethod getGetMixedContentMethod()

startComplexContent

public void startComplexContent(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
Throws:
org.xml.sax.SAXException - The visitor failed.

simpleElementParticle

public void simpleElementParticle(GroupSG pGroup,
                                  ParticleSG pParticle)
                           throws org.xml.sax.SAXException
Description copied from interface: ParticleVisitor
Invoked to process an element with simple type.

Specified by:
simpleElementParticle in interface ParticleVisitor
Overrides:
simpleElementParticle in class ParticleVisitorImpl
Throws:
org.xml.sax.SAXException - The visitor failed.

complexElementParticle

public void complexElementParticle(GroupSG pGroup,
                                   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
Throws:
org.xml.sax.SAXException - The visitor failed.

wildcardParticle

public void wildcardParticle(ParticleSG particle)
Description copied from interface: ParticleVisitor
Invoked to process a wildcard particle.

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