public class DriverGeneratingVisitor extends ParticleVisitorImpl
ParticleVisitor
for generating the driver class.Constructor and Description |
---|
DriverGeneratingVisitor(JavaSource pJs)
Creates a new instance, which writes methods into the
given class.
|
Modifier and Type | Method and Description |
---|---|
void |
complexElementParticle(GroupSG pGroup,
ParticleSG pParticle)
Invoked to process an element with complex type.
|
void |
emptyType(ComplexTypeSG pType)
Invoked for an empty type.
|
protected java.util.List |
getNames(ComplexTypeSG pType)
This method builds a list of the names, which are being
used in the element.
|
void |
simpleContent(ComplexTypeSG pType)
Invoked for a complex type with simple content.
|
void |
startComplexContent(ComplexTypeSG pType)
Invoked to start a complex content types
content.
|
endAll, endChoice, endComplexContent, endSequence, simpleElementParticle, startAll, startChoice, startSequence, wildcardParticle
public DriverGeneratingVisitor(JavaSource pJs)
protected java.util.List getNames(ComplexTypeSG pType) throws org.xml.sax.SAXException
JMSAXDriver.getPreferredPrefix(String)
.org.xml.sax.SAXException
public void emptyType(ComplexTypeSG pType) throws org.xml.sax.SAXException
ParticleVisitor
emptyType
in interface ParticleVisitor
emptyType
in class ParticleVisitorImpl
org.xml.sax.SAXException
- The visitor failed.public void simpleContent(ComplexTypeSG pType) throws org.xml.sax.SAXException
ParticleVisitor
simpleContent
in interface ParticleVisitor
simpleContent
in class ParticleVisitorImpl
org.xml.sax.SAXException
- The visitor failed.public void startComplexContent(ComplexTypeSG pType) throws org.xml.sax.SAXException
ParticleVisitor
startComplexContent
in interface ParticleVisitor
startComplexContent
in class ParticleVisitorImpl
org.xml.sax.SAXException
- The visitor failed.public void complexElementParticle(GroupSG pGroup, ParticleSG pParticle) throws org.xml.sax.SAXException
ParticleVisitor
complexElementParticle
in interface ParticleVisitor
complexElementParticle
in class ParticleVisitorImpl
org.xml.sax.SAXException
- The visitor failed.