org.apache.ws.jaxme.xs.parser.impl

Class XSContextImpl

Implemented Interfaces:
XSContext

public class XSContextImpl
extends java.lang.Object
implements 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

static AttributeSetter
DEFAULT_ATTRIBUTE_SETTER
static ChildSetter
DEFAULT_CHILD_SETTER
static XsObjectFactory
DEFAULT_OBJECT_FACTORY
static TextSetter
DEFAULT_TEXT_SETTER
static XSObjectFactory
DEFAULT_XS_OBJECT_FACTORY

Method Summary

AttributeSetter
getAttributeSetter()
Returns the AttributeSetter, which is used to configure properties.
ChildSetter
getChildSetter()
Returns the ChildSetter, which is used to create child elements.
ContentHandler
getCurrentContentHandler()
Sets the currently active instance of XsSAXParser.
Locator
getLocator()
Returns the locator, used for error messages.
NamespaceSupport
getNamespaceSupport()
Returns the namespace handler.
TextSetter
getTextSetter()
Returns the TextSetter, used to add text sections.
XSLogicalParser
getXSLogicalParser()
Returns the currently running XSParser or null, if no such instance is available.
XSObjectFactory
getXSObjectFactory()
Returns the parsers object factory for logical elements.
XSSchema
getXSSchema()
Returns the XSSchema, which is currently being parsed, if any.
XsObjectFactory
getXsObjectFactory()
Returns the parsers object factory for syntax elements.
void
setAttributeSetter(AttributeSetter pAttributeSetter)
Sets the AttributeSetter, which is used to configure properties.
void
setChildSetter(ChildSetter pChildSetter)
Sets the ChildSetter, which is used to create child elements.
void
setCurrentContentHandler(ContentHandler pHandler)
Sets the currently active instance of XsSAXParser.
void
setLocator(Locator pLocator)
Sets the locator, used for error messages.
void
setNamespaceSupport(NamespaceSupport pNamespaceSupport)
Sets the namespace handler.
void
setTextSetter(TextSetter pTextSetter)
Sets the TextSetter, used to add text sections.
void
setXSLogicalParser(XSLogicalParser pParser)
Sets the currently active instance of XSParser, if any.
void
setXSObjectFactory(XSObjectFactory pFactory)
Sets the parsers object factory for logical elements.
void
setXsObjectFactory(XsObjectFactory pFactory)
Sets the parsers object factory for syntax elements.

Field Details

DEFAULT_ATTRIBUTE_SETTER

public static final AttributeSetter DEFAULT_ATTRIBUTE_SETTER

DEFAULT_CHILD_SETTER

public static final ChildSetter DEFAULT_CHILD_SETTER

DEFAULT_OBJECT_FACTORY

public static final XsObjectFactory DEFAULT_OBJECT_FACTORY

DEFAULT_TEXT_SETTER

public static final TextSetter DEFAULT_TEXT_SETTER

DEFAULT_XS_OBJECT_FACTORY

public static final XSObjectFactory DEFAULT_XS_OBJECT_FACTORY

Method Details

getAttributeSetter

public AttributeSetter getAttributeSetter()
Returns the AttributeSetter, which is used to configure properties.
Specified by:
getAttributeSetter in interface XSContext

getChildSetter

public ChildSetter getChildSetter()
Returns the ChildSetter, which is used to create child elements.
Specified by:
getChildSetter in interface XSContext

getCurrentContentHandler

public ContentHandler getCurrentContentHandler()
Specified by:
getCurrentContentHandler in interface XSContext

getLocator

public Locator getLocator()
Returns the locator, used for error messages.
Specified by:
getLocator in interface XSContext

getNamespaceSupport

public NamespaceSupport getNamespaceSupport()
Returns the namespace handler.
Specified by:
getNamespaceSupport in interface XSContext

getTextSetter

public TextSetter getTextSetter()
Returns the TextSetter, used to add text sections.
Specified by:
getTextSetter in interface XSContext

getXSLogicalParser

public XSLogicalParser getXSLogicalParser()
Returns the currently running XSParser or null, if no such instance is available.
Specified by:
getXSLogicalParser in interface XSContext

getXSObjectFactory

public XSObjectFactory getXSObjectFactory()
Returns the parsers object factory for logical elements.
Specified by:
getXSObjectFactory in interface XSContext

getXSSchema

public XSSchema getXSSchema()
Returns the XSSchema, which is currently being parsed, if any.
Specified by:
getXSSchema in interface XSContext

getXsObjectFactory

public XsObjectFactory getXsObjectFactory()
Returns the parsers object factory for syntax elements.
Specified by:
getXsObjectFactory in interface XSContext

setAttributeSetter

public void setAttributeSetter(AttributeSetter pAttributeSetter)
Sets the AttributeSetter, which is used to configure properties.
Specified by:
setAttributeSetter in interface XSContext

setChildSetter

public void setChildSetter(ChildSetter pChildSetter)
Sets the ChildSetter, which is used to create child elements.
Specified by:
setChildSetter in interface XSContext

setCurrentContentHandler

public void setCurrentContentHandler(ContentHandler pHandler)
Specified by:
setCurrentContentHandler in interface XSContext

setLocator

public void setLocator(Locator pLocator)
Sets the locator, used for error messages.
Specified by:
setLocator in interface XSContext

setNamespaceSupport

public void setNamespaceSupport(NamespaceSupport pNamespaceSupport)
Sets the namespace handler.
Specified by:
setNamespaceSupport in interface XSContext

setTextSetter

public void setTextSetter(TextSetter pTextSetter)
Sets the TextSetter, used to add text sections.
Specified by:
setTextSetter in interface XSContext

setXSLogicalParser

public void setXSLogicalParser(XSLogicalParser pParser)
Sets the currently active instance of XSParser, if any. Returns null, if no such instance is available.
Specified by:
setXSLogicalParser in interface XSContext

setXSObjectFactory

public void setXSObjectFactory(XSObjectFactory pFactory)
Sets the parsers object factory for logical elements.
Specified by:
setXSObjectFactory in interface XSContext

setXsObjectFactory

public void setXsObjectFactory(XsObjectFactory pFactory)
Sets the parsers object factory for syntax elements.
Specified by:
setXsObjectFactory in interface XSContext