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 BeanGeneratingVisitor  view BeanGeneratingVisitor download BeanGeneratingVisitor.java

java.lang.Object
  extended byorg.apache.ws.jaxme.generator.sg.impl.ccsg.ParticleVisitorImpl
      extended byorg.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.


Field Summary
private  org.apache.ws.jaxme.generator.sg.ComplexTypeSG ct
           
private  boolean isMixed
           
private  org.apache.ws.jaxme.js.JavaSource js
           
private  org.apache.ws.jaxme.js.JavaMethod mixedContentMethod
           
 
Constructor Summary
BeanGeneratingVisitor(org.apache.ws.jaxme.js.JavaSource pJs)
          Creates a new instance generating 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.
private  void elementParticle(org.apache.ws.jaxme.generator.sg.GroupSG pGroupSG, org.apache.ws.jaxme.generator.sg.ParticleSG pParticle)
           
 void emptyType(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
          Invoked for an empty type.
private  void generateAttributes(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
           
protected  org.apache.ws.jaxme.js.JavaMethod getGetMixedContentMethod()
           
private  org.apache.ws.jaxme.js.JavaSource getJavaSource()
           
private  boolean isInheritedAttribute(org.apache.ws.jaxme.generator.sg.AttributeSG pAttr, org.apache.ws.jaxme.generator.sg.AttributeSG[] pInheritedAttributes)
           
private  boolean isInheritedParticle(org.apache.ws.jaxme.generator.sg.ParticleSG pParticle)
           
 void simpleContent(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
          Invoked for a complex type with simple content.
 void simpleElementParticle(org.apache.ws.jaxme.generator.sg.GroupSG pGroup, org.apache.ws.jaxme.generator.sg.ParticleSG pParticle)
          Invoked to process an element with simple type.
 void startComplexContent(org.apache.ws.jaxme.generator.sg.ComplexTypeSG pType)
          Invoked to start a complex content types content.
 void wildcardParticle(org.apache.ws.jaxme.generator.sg.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
 

Field Detail

js

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

mixedContentMethod

private org.apache.ws.jaxme.js.JavaMethod mixedContentMethod

isMixed

private boolean isMixed

ct

private org.apache.ws.jaxme.generator.sg.ComplexTypeSG ct
Constructor Detail

BeanGeneratingVisitor

public BeanGeneratingVisitor(org.apache.ws.jaxme.js.JavaSource pJs)
Creates a new instance generating methods into the given class.

Method Detail

getJavaSource

private org.apache.ws.jaxme.js.JavaSource getJavaSource()

isInheritedAttribute

private boolean isInheritedAttribute(org.apache.ws.jaxme.generator.sg.AttributeSG pAttr,
                                     org.apache.ws.jaxme.generator.sg.AttributeSG[] pInheritedAttributes)
                              throws org.xml.sax.SAXException

generateAttributes

private void generateAttributes(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

getGetMixedContentMethod

protected org.apache.ws.jaxme.js.JavaMethod getGetMixedContentMethod()

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

isInheritedParticle

private boolean isInheritedParticle(org.apache.ws.jaxme.generator.sg.ParticleSG pParticle)
                             throws org.xml.sax.SAXException

elementParticle

private void elementParticle(org.apache.ws.jaxme.generator.sg.GroupSG pGroupSG,
                             org.apache.ws.jaxme.generator.sg.ParticleSG pParticle)
                      throws org.xml.sax.SAXException

simpleElementParticle

public void simpleElementParticle(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 simple type.

Specified by:
simpleElementParticle in interface ParticleVisitor
Overrides:
simpleElementParticle 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

wildcardParticle

public void wildcardParticle(org.apache.ws.jaxme.generator.sg.ParticleSG particle)
Description copied from interface: ParticleVisitor
Invoked to process a wildcard particle.

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