org.apache.ws.jaxme.generator.sg.impl
Class AbstractContext

java.lang.Object
  extended by org.apache.ws.jaxme.generator.sg.impl.AbstractContext
All Implemented Interfaces:
Context
Direct Known Subclasses:
GlobalContext, LocalContext

public abstract class AbstractContext
extends java.lang.Object
implements Context

Author:
Jochen Wiedmann

Constructor Summary
AbstractContext()
           
 
Method Summary
protected static java.lang.String getClassNameFromLocalName(org.xml.sax.Locator pLocator, java.lang.String pLocalName, SchemaSG pSchemaSG)
           
 XsQName getName()
          Returns the qualified name, from which Java class names have been derived.
protected static java.lang.String getPackageName(SchemaSG pSchemaSG, JAXBSchemaBindings pSchemaBindings, org.xml.sax.Locator pLocator, XsQName pQName)
           
protected static java.lang.String getPackageNameFromURI(org.xml.sax.Locator pLocator, java.lang.String pURI)
           
protected static java.lang.String getPackageNameFromURL(java.net.URL pURL)
           
 JavaQName getPMName()
          Returns the contexts PM name.
 JavaQName getXMLHandlerName()
          Returns the contexts XML handler name.
 JavaQName getXMLImplementationName()
          Returns the contexts XML implementation name.
 JavaQName getXMLInterfaceName()
          Returns the contexts XML interface name.
 JavaQName getXMLSerializerName()
          Returns the contexts XML serializer name.
 JavaQName getXMLValidatorName()
          Returns the contexts XML validator name.
protected  void setName(XsQName pName)
           
protected  void setPMName(JavaQName pPMName)
           
protected  void setXMLHandlerName(JavaQName pXmlHandlerName)
           
protected  void setXMLImplementationName(JavaQName pXmlImplementationName)
           
protected  void setXMLInterfaceName(JavaQName pXmlInterfaceName)
           
protected  void setXMLSerializerName(JavaQName pXmlSerializerName)
           
protected  void setXMLValidatorName(JavaQName pXmlValidatorName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.ws.jaxme.generator.sg.Context
isGlobal
 

Constructor Detail

AbstractContext

public AbstractContext()
Method Detail

getName

public XsQName getName()
Description copied from interface: Context
Returns the qualified name, from which Java class names have been derived.

Specified by:
getName in interface Context

setName

protected void setName(XsQName pName)

getXMLHandlerName

public JavaQName getXMLHandlerName()
Description copied from interface: Context

Returns the contexts XML handler name.

Specified by:
getXMLHandlerName in interface Context

setXMLHandlerName

protected void setXMLHandlerName(JavaQName pXmlHandlerName)

getXMLImplementationName

public JavaQName getXMLImplementationName()
Description copied from interface: Context

Returns the contexts XML implementation name.

Specified by:
getXMLImplementationName in interface Context

setXMLImplementationName

protected void setXMLImplementationName(JavaQName pXmlImplementationName)

getXMLInterfaceName

public JavaQName getXMLInterfaceName()
Description copied from interface: Context

Returns the contexts XML interface name.

Specified by:
getXMLInterfaceName in interface Context

setXMLInterfaceName

protected void setXMLInterfaceName(JavaQName pXmlInterfaceName)

getXMLSerializerName

public JavaQName getXMLSerializerName()
Description copied from interface: Context

Returns the contexts XML serializer name.

Specified by:
getXMLSerializerName in interface Context

setXMLSerializerName

protected void setXMLSerializerName(JavaQName pXmlSerializerName)

setXMLValidatorName

protected void setXMLValidatorName(JavaQName pXmlValidatorName)

getXMLValidatorName

public JavaQName getXMLValidatorName()
Description copied from interface: Context

Returns the contexts XML validator name.

Specified by:
getXMLValidatorName in interface Context

setPMName

protected void setPMName(JavaQName pPMName)

getPMName

public JavaQName getPMName()
Description copied from interface: Context

Returns the contexts PM name.

Specified by:
getPMName in interface Context

getClassNameFromLocalName

protected static java.lang.String getClassNameFromLocalName(org.xml.sax.Locator pLocator,
                                                            java.lang.String pLocalName,
                                                            SchemaSG pSchemaSG)
                                                     throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getPackageName

protected static java.lang.String getPackageName(SchemaSG pSchemaSG,
                                                 JAXBSchemaBindings pSchemaBindings,
                                                 org.xml.sax.Locator pLocator,
                                                 XsQName pQName)
                                          throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getPackageNameFromURL

protected static java.lang.String getPackageNameFromURL(java.net.URL pURL)

getPackageNameFromURI

protected static java.lang.String getPackageNameFromURI(org.xml.sax.Locator pLocator,
                                                        java.lang.String pURI)
                                                 throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object