Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.ws.jaxme.xs.parser.impl
Class XSContextImpl  view XSContextImpl download XSContextImpl.java

java.lang.Object
  extended byorg.apache.ws.jaxme.xs.parser.impl.XSContextImpl
All Implemented Interfaces:
org.apache.ws.jaxme.xs.parser.XSContext

public class XSContextImpl
extends java.lang.Object
implements org.apache.ws.jaxme.xs.parser.XSContext

This class provides access to the parsers internal data. The Context instance is stored as a thread local element, thus accessible via a static method.


Field Summary
private  org.apache.ws.jaxme.xs.parser.AttributeSetter attributeSetter
           
private  org.apache.ws.jaxme.xs.parser.ChildSetter childSetter
           
private  org.xml.sax.ContentHandler currentContentHandler
           
static org.apache.ws.jaxme.xs.parser.AttributeSetter DEFAULT_ATTRIBUTE_SETTER
           
static org.apache.ws.jaxme.xs.parser.ChildSetter DEFAULT_CHILD_SETTER
           
static org.apache.ws.jaxme.xs.xml.XsObjectFactory DEFAULT_OBJECT_FACTORY
           
static org.apache.ws.jaxme.xs.parser.TextSetter DEFAULT_TEXT_SETTER
           
static org.apache.ws.jaxme.xs.XSObjectFactory DEFAULT_XS_OBJECT_FACTORY
           
private  org.xml.sax.Locator locator
           
private  org.xml.sax.helpers.NamespaceSupport namespaceSupport
           
private  org.apache.ws.jaxme.xs.xml.XsObjectFactory objectFactory
           
private  org.apache.ws.jaxme.xs.parser.TextSetter textSetter
           
private  org.apache.ws.jaxme.xs.XSObjectFactory xSObjectFactory
           
private  org.apache.ws.jaxme.xs.impl.XSLogicalParser xsParser
           
 
Constructor Summary
XSContextImpl()
           
 
Method Summary
 org.apache.ws.jaxme.xs.parser.AttributeSetter getAttributeSetter()
          Returns the org.apache.ws.jaxme.xs.parser.AttributeSetter, which is used to configure properties.
 org.apache.ws.jaxme.xs.parser.ChildSetter getChildSetter()
          Returns the org.apache.ws.jaxme.xs.parser.ChildSetter, which is used to create child elements.
 org.xml.sax.ContentHandler getCurrentContentHandler()
          Sets the currently active instance of org.apache.ws.jaxme.xs.parser.XsSAXParser.
 org.xml.sax.Locator getLocator()
          Returns the locator, used for error messages.
 org.xml.sax.helpers.NamespaceSupport getNamespaceSupport()
          Returns the namespace handler.
 org.apache.ws.jaxme.xs.parser.TextSetter getTextSetter()
          Returns the org.apache.ws.jaxme.xs.parser.TextSetter, used to add text sections.
 org.apache.ws.jaxme.xs.impl.XSLogicalParser getXSLogicalParser()
          Returns the currently running org.apache.ws.jaxme.xs.XSParser or null, if no such instance is available.
 org.apache.ws.jaxme.xs.xml.XsObjectFactory getXsObjectFactory()
          Returns the parsers object factory for syntax elements.
 org.apache.ws.jaxme.xs.XSObjectFactory getXSObjectFactory()
          Returns the parsers object factory for logical elements.
 org.apache.ws.jaxme.xs.XSSchema getXSSchema()
          Returns the org.apache.ws.jaxme.xs.XSSchema, which is currently being parsed, if any.
 void setAttributeSetter(org.apache.ws.jaxme.xs.parser.AttributeSetter pAttributeSetter)
          Sets the AttributeSetter, which is used to configure properties.
 void setChildSetter(org.apache.ws.jaxme.xs.parser.ChildSetter pChildSetter)
          Sets the ChildSetter, which is used to create child elements.
 void setCurrentContentHandler(org.xml.sax.ContentHandler pHandler)
          Sets the currently active instance of org.apache.ws.jaxme.xs.parser.XsSAXParser.
 void setLocator(org.xml.sax.Locator pLocator)
          Sets the locator, used for error messages.
 void setNamespaceSupport(org.xml.sax.helpers.NamespaceSupport pNamespaceSupport)
          Sets the namespace handler.
 void setTextSetter(org.apache.ws.jaxme.xs.parser.TextSetter pTextSetter)
          Sets the TextSetter, used to add text sections.
 void setXSLogicalParser(org.apache.ws.jaxme.xs.impl.XSLogicalParser pParser)
          Sets the currently active instance of org.apache.ws.jaxme.xs.XSParser, if any.
 void setXsObjectFactory(org.apache.ws.jaxme.xs.xml.XsObjectFactory pFactory)
          Sets the parsers object factory for syntax elements.
 void setXSObjectFactory(org.apache.ws.jaxme.xs.XSObjectFactory pFactory)
          Sets the parsers object factory for logical elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_OBJECT_FACTORY

public static final org.apache.ws.jaxme.xs.xml.XsObjectFactory DEFAULT_OBJECT_FACTORY

DEFAULT_XS_OBJECT_FACTORY

public static final org.apache.ws.jaxme.xs.XSObjectFactory DEFAULT_XS_OBJECT_FACTORY

DEFAULT_ATTRIBUTE_SETTER

public static final org.apache.ws.jaxme.xs.parser.AttributeSetter DEFAULT_ATTRIBUTE_SETTER

DEFAULT_CHILD_SETTER

public static final org.apache.ws.jaxme.xs.parser.ChildSetter DEFAULT_CHILD_SETTER

DEFAULT_TEXT_SETTER

public static final org.apache.ws.jaxme.xs.parser.TextSetter DEFAULT_TEXT_SETTER

objectFactory

private org.apache.ws.jaxme.xs.xml.XsObjectFactory objectFactory

xSObjectFactory

private org.apache.ws.jaxme.xs.XSObjectFactory xSObjectFactory

attributeSetter

private org.apache.ws.jaxme.xs.parser.AttributeSetter attributeSetter

childSetter

private org.apache.ws.jaxme.xs.parser.ChildSetter childSetter

textSetter

private org.apache.ws.jaxme.xs.parser.TextSetter textSetter

xsParser

private org.apache.ws.jaxme.xs.impl.XSLogicalParser xsParser

locator

private org.xml.sax.Locator locator

namespaceSupport

private org.xml.sax.helpers.NamespaceSupport namespaceSupport

currentContentHandler

private org.xml.sax.ContentHandler currentContentHandler
Constructor Detail

XSContextImpl

public XSContextImpl()
Method Detail

getXsObjectFactory

public org.apache.ws.jaxme.xs.xml.XsObjectFactory getXsObjectFactory()
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Returns the parsers object factory for syntax elements.

Specified by:
getXsObjectFactory in interface org.apache.ws.jaxme.xs.parser.XSContext

setXsObjectFactory

public void setXsObjectFactory(org.apache.ws.jaxme.xs.xml.XsObjectFactory pFactory)
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Sets the parsers object factory for syntax elements.

Specified by:
setXsObjectFactory in interface org.apache.ws.jaxme.xs.parser.XSContext

getXSObjectFactory

public org.apache.ws.jaxme.xs.XSObjectFactory getXSObjectFactory()
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Returns the parsers object factory for logical elements.

Specified by:
getXSObjectFactory in interface org.apache.ws.jaxme.xs.parser.XSContext

setXSObjectFactory

public void setXSObjectFactory(org.apache.ws.jaxme.xs.XSObjectFactory pFactory)
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Sets the parsers object factory for logical elements.

Specified by:
setXSObjectFactory in interface org.apache.ws.jaxme.xs.parser.XSContext

getAttributeSetter

public org.apache.ws.jaxme.xs.parser.AttributeSetter getAttributeSetter()
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Returns the org.apache.ws.jaxme.xs.parser.AttributeSetter, which is used to configure properties.

Specified by:
getAttributeSetter in interface org.apache.ws.jaxme.xs.parser.XSContext

setAttributeSetter

public void setAttributeSetter(org.apache.ws.jaxme.xs.parser.AttributeSetter pAttributeSetter)
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Sets the AttributeSetter, which is used to configure properties.

Specified by:
setAttributeSetter in interface org.apache.ws.jaxme.xs.parser.XSContext

getChildSetter

public org.apache.ws.jaxme.xs.parser.ChildSetter getChildSetter()
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Returns the org.apache.ws.jaxme.xs.parser.ChildSetter, which is used to create child elements.

Specified by:
getChildSetter in interface org.apache.ws.jaxme.xs.parser.XSContext

setChildSetter

public void setChildSetter(org.apache.ws.jaxme.xs.parser.ChildSetter pChildSetter)
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Sets the ChildSetter, which is used to create child elements.

Specified by:
setChildSetter in interface org.apache.ws.jaxme.xs.parser.XSContext

getTextSetter

public org.apache.ws.jaxme.xs.parser.TextSetter getTextSetter()
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Returns the org.apache.ws.jaxme.xs.parser.TextSetter, used to add text sections.

Specified by:
getTextSetter in interface org.apache.ws.jaxme.xs.parser.XSContext

setTextSetter

public void setTextSetter(org.apache.ws.jaxme.xs.parser.TextSetter pTextSetter)
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Sets the TextSetter, used to add text sections.

Specified by:
setTextSetter in interface org.apache.ws.jaxme.xs.parser.XSContext

getXSLogicalParser

public org.apache.ws.jaxme.xs.impl.XSLogicalParser getXSLogicalParser()
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Returns the currently running org.apache.ws.jaxme.xs.XSParser or null, if no such instance is available.

Specified by:
getXSLogicalParser in interface org.apache.ws.jaxme.xs.parser.XSContext

setXSLogicalParser

public void setXSLogicalParser(org.apache.ws.jaxme.xs.impl.XSLogicalParser pParser)
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Sets the currently active instance of org.apache.ws.jaxme.xs.XSParser, if any. Returns null, if no such instance is available.

Specified by:
setXSLogicalParser in interface org.apache.ws.jaxme.xs.parser.XSContext

getXSSchema

public org.apache.ws.jaxme.xs.XSSchema getXSSchema()
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Returns the org.apache.ws.jaxme.xs.XSSchema, which is currently being parsed, if any.

Specified by:
getXSSchema in interface org.apache.ws.jaxme.xs.parser.XSContext

getLocator

public org.xml.sax.Locator getLocator()
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Returns the locator, used for error messages.

Specified by:
getLocator in interface org.apache.ws.jaxme.xs.parser.XSContext

setLocator

public void setLocator(org.xml.sax.Locator pLocator)
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Sets the locator, used for error messages.

Specified by:
setLocator in interface org.apache.ws.jaxme.xs.parser.XSContext

setNamespaceSupport

public void setNamespaceSupport(org.xml.sax.helpers.NamespaceSupport pNamespaceSupport)
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Sets the namespace handler.

Specified by:
setNamespaceSupport in interface org.apache.ws.jaxme.xs.parser.XSContext

getNamespaceSupport

public org.xml.sax.helpers.NamespaceSupport getNamespaceSupport()
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Returns the namespace handler.

Specified by:
getNamespaceSupport in interface org.apache.ws.jaxme.xs.parser.XSContext

setCurrentContentHandler

public void setCurrentContentHandler(org.xml.sax.ContentHandler pHandler)
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Sets the currently active instance of org.apache.ws.jaxme.xs.parser.XsSAXParser.

Specified by:
setCurrentContentHandler in interface org.apache.ws.jaxme.xs.parser.XSContext

getCurrentContentHandler

public org.xml.sax.ContentHandler getCurrentContentHandler()
Description copied from interface: org.apache.ws.jaxme.xs.parser.XSContext

Sets the currently active instance of org.apache.ws.jaxme.xs.parser.XsSAXParser.

Specified by:
getCurrentContentHandler in interface org.apache.ws.jaxme.xs.parser.XSContext