public class BeanGeneratingVisitor extends ParticleVisitorImpl
ParticleVisitor
,
which generates a bean class.Constructor and Description |
---|
BeanGeneratingVisitor(JavaSource pJs)
Creates a new instance generating 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 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.
|
endAll, endChoice, endComplexContent, endSequence, startAll, startChoice, startSequence
public BeanGeneratingVisitor(JavaSource pJs)
pJs
- Bean class being generated.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.protected JavaMethod getGetMixedContentMethod()
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 simpleElementParticle(GroupSG pGroup, ParticleSG pParticle) throws org.xml.sax.SAXException
ParticleVisitor
simpleElementParticle
in interface ParticleVisitor
simpleElementParticle
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.public void wildcardParticle(ParticleSG particle)
ParticleVisitor
wildcardParticle
in interface ParticleVisitor
wildcardParticle
in class ParticleVisitorImpl