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

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.ccsg.HandlerSGImpl
All Implemented Interfaces:
HandlerSG
Direct Known Subclasses:
EmptyElementHandlerSG, GroupHandlerSG

public abstract class HandlerSGImpl
extends java.lang.Object
implements HandlerSG

Base implementation of HandlerSG, for derivation of various subclasses.


Field Summary
protected  ComplexTypeSG ctSG
           
 
Constructor Summary
protected HandlerSGImpl(ComplexTypeSG pType, JavaSource pJs)
           
 
Method Summary
protected  void createSimpleTypeConversion(JavaMethod pJm, TypeSG pType, TypedValue pValue, java.lang.String pName, PropertySG pPropertySG, DirectAccessible pElement)
           
 void generate()
          Invokes the various "newFooMethod" methods.
 JavaSource getJavaSource()
          Returns the class being generated.
protected  DirectAccessible getParamAttrs()
           
protected  DirectAccessible getParamLocalName()
           
protected  DirectAccessible getParamNamespaceURI()
           
protected  DirectAccessible getParamQName()
           
protected  DirectAccessible getParamResult()
           
 JavaMethod newAddAttributeMethod()
          Creates the handlers method JMSAXElementParser.addAttribute(String, String, String).
 JavaMethod newEndElementMethod()
          Creates the handlers method JMSAXGroupParser.endElement(String, String, String, Object).
 JavaMethod newIsAtomicMethod()
          Creates the handlers method JMSAXElementParser.isAtomic().
 JavaMethod newIsEmptyMethod()
          Creates the handlers method JMSAXElementParser.isEmpty().
 JavaMethod newIsFinishedMethod()
          Creates the handlers method JMSAXGroupParser.isFinished().
 JavaMethod newStartElementMethod()
          Creates the handlers method JMSAXGroupParser.startElement(String, String, String, org.xml.sax.Attributes).
protected  void setParamAttrs(DirectAccessible pParamAttrs)
           
protected  void setParamLocalName(DirectAccessible pParamLocalName)
           
protected  void setParamNamespaceURI(DirectAccessible pParamNamespaceURI)
           
protected  void setParamQName(DirectAccessible pParamQName)
           
protected  void setParamResult(DirectAccessible pParamResult)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ctSG

protected final ComplexTypeSG ctSG
Constructor Detail

HandlerSGImpl

protected HandlerSGImpl(ComplexTypeSG pType,
                        JavaSource pJs)
Method Detail

getJavaSource

public JavaSource getJavaSource()
Returns the class being generated.

Specified by:
getJavaSource in interface HandlerSG

setParamAttrs

protected void setParamAttrs(DirectAccessible pParamAttrs)

getParamAttrs

protected DirectAccessible getParamAttrs()

setParamLocalName

protected void setParamLocalName(DirectAccessible pParamLocalName)

getParamLocalName

protected DirectAccessible getParamLocalName()

setParamNamespaceURI

protected void setParamNamespaceURI(DirectAccessible pParamNamespaceURI)

getParamNamespaceURI

protected DirectAccessible getParamNamespaceURI()

setParamQName

protected void setParamQName(DirectAccessible pParamQName)

getParamQName

protected DirectAccessible getParamQName()

setParamResult

protected void setParamResult(DirectAccessible pParamResult)

getParamResult

protected DirectAccessible getParamResult()

newAddAttributeMethod

public JavaMethod newAddAttributeMethod()
                                 throws org.xml.sax.SAXException
Description copied from interface: HandlerSG
Creates the handlers method JMSAXElementParser.addAttribute(String, String, String).

Specified by:
newAddAttributeMethod in interface HandlerSG
Throws:
org.xml.sax.SAXException

newStartElementMethod

public JavaMethod newStartElementMethod()
                                 throws org.xml.sax.SAXException
Description copied from interface: HandlerSG
Creates the handlers method JMSAXGroupParser.startElement(String, String, String, org.xml.sax.Attributes).

Specified by:
newStartElementMethod in interface HandlerSG
Throws:
org.xml.sax.SAXException

newEndElementMethod

public JavaMethod newEndElementMethod()
                               throws org.xml.sax.SAXException
Description copied from interface: HandlerSG
Creates the handlers method JMSAXGroupParser.endElement(String, String, String, Object).

Specified by:
newEndElementMethod in interface HandlerSG
Throws:
org.xml.sax.SAXException

newIsFinishedMethod

public JavaMethod newIsFinishedMethod()
                               throws org.xml.sax.SAXException
Description copied from interface: HandlerSG
Creates the handlers method JMSAXGroupParser.isFinished().

Specified by:
newIsFinishedMethod in interface HandlerSG
Throws:
org.xml.sax.SAXException

newIsEmptyMethod

public JavaMethod newIsEmptyMethod()
                            throws org.xml.sax.SAXException
Description copied from interface: HandlerSG
Creates the handlers method JMSAXElementParser.isEmpty().

Specified by:
newIsEmptyMethod in interface HandlerSG
Throws:
org.xml.sax.SAXException

newIsAtomicMethod

public JavaMethod newIsAtomicMethod()
                             throws org.xml.sax.SAXException
Description copied from interface: HandlerSG
Creates the handlers method JMSAXElementParser.isAtomic().

Specified by:
newIsAtomicMethod in interface HandlerSG
Throws:
org.xml.sax.SAXException

createSimpleTypeConversion

protected void createSimpleTypeConversion(JavaMethod pJm,
                                          TypeSG pType,
                                          TypedValue pValue,
                                          java.lang.String pName,
                                          PropertySG pPropertySG,
                                          DirectAccessible pElement)
                                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

generate

public void generate()
              throws org.xml.sax.SAXException
Description copied from interface: HandlerSG
Invokes the various "newFooMethod" methods.

Specified by:
generate in interface HandlerSG
Throws:
org.xml.sax.SAXException