net.sf.jaxme.xs.parser.impl
Class XSContextImpl

java.lang.Object
  extended bynet.sf.jaxme.xs.parser.impl.XSContextImpl
All 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
           
 
Constructor Summary
XSContextImpl()
           
 
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.
 org.xml.sax.ContentHandler getCurrentContentHandler()
          Sets the currently active instance of XsSAXParser.
 org.xml.sax.Locator getLocator()
          Returns the locator, used for error messages.
 org.xml.sax.helpers.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 syntax elements.
 XSObjectFactory getXSObjectFactory()
          Returns the parsers object factory for logical elements.
 XSSchema getXSSchema()
          Returns the XSSchema, which is currently being parsed, if any.
 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(org.xml.sax.ContentHandler pHandler)
          Sets the currently active instance of 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(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 syntax elements.
 void setXSObjectFactory(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 XsObjectFactory DEFAULT_OBJECT_FACTORY

DEFAULT_XS_OBJECT_FACTORY

public static final XSObjectFactory DEFAULT_XS_OBJECT_FACTORY

DEFAULT_ATTRIBUTE_SETTER

public static final AttributeSetter DEFAULT_ATTRIBUTE_SETTER

DEFAULT_CHILD_SETTER

public static final ChildSetter DEFAULT_CHILD_SETTER

DEFAULT_TEXT_SETTER

public static final TextSetter DEFAULT_TEXT_SETTER
Constructor Detail

XSContextImpl

public XSContextImpl()
Method Detail

getXsObjectFactory

public XsObjectFactory getXsObjectFactory()
Description copied from interface: XSContext

Returns the parsers object factory for syntax elements.

Specified by:
getXsObjectFactory in interface XSContext

setXsObjectFactory

public void setXsObjectFactory(XsObjectFactory pFactory)
Description copied from interface: XSContext

Sets the parsers object factory for syntax elements.

Specified by:
setXsObjectFactory in interface XSContext

getXSObjectFactory

public XSObjectFactory getXSObjectFactory()
Description copied from interface: XSContext

Returns the parsers object factory for logical elements.

Specified by:
getXSObjectFactory in interface XSContext

setXSObjectFactory

public void setXSObjectFactory(XSObjectFactory pFactory)
Description copied from interface: XSContext

Sets the parsers object factory for logical elements.

Specified by:
setXSObjectFactory in interface XSContext

getAttributeSetter

public AttributeSetter getAttributeSetter()
Description copied from interface: XSContext

Returns the AttributeSetter, which is used to configure properties.

Specified by:
getAttributeSetter in interface XSContext

setAttributeSetter

public void setAttributeSetter(AttributeSetter pAttributeSetter)
Description copied from interface: XSContext

Sets the AttributeSetter, which is used to configure properties.

Specified by:
setAttributeSetter in interface XSContext

getChildSetter

public ChildSetter getChildSetter()
Description copied from interface: XSContext

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

Specified by:
getChildSetter in interface XSContext

setChildSetter

public void setChildSetter(ChildSetter pChildSetter)
Description copied from interface: XSContext

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

Specified by:
setChildSetter in interface XSContext

getTextSetter

public TextSetter getTextSetter()
Description copied from interface: XSContext

Returns the TextSetter, used to add text sections.

Specified by:
getTextSetter in interface XSContext

setTextSetter

public void setTextSetter(TextSetter pTextSetter)
Description copied from interface: XSContext

Sets the TextSetter, used to add text sections.

Specified by:
setTextSetter in interface XSContext

getXSLogicalParser

public XSLogicalParser getXSLogicalParser()
Description copied from interface: XSContext

Returns the currently running XSParser or null, if no such instance is available.

Specified by:
getXSLogicalParser in interface XSContext

setXSLogicalParser

public void setXSLogicalParser(XSLogicalParser pParser)
Description copied from interface: XSContext

Sets the currently active instance of XSParser, if any. Returns null, if no such instance is available.

Specified by:
setXSLogicalParser in interface XSContext

getXSSchema

public XSSchema getXSSchema()
Description copied from interface: XSContext

Returns the XSSchema, which is currently being parsed, if any.

Specified by:
getXSSchema in interface XSContext

getLocator

public org.xml.sax.Locator getLocator()
Description copied from interface: XSContext

Returns the locator, used for error messages.

Specified by:
getLocator in interface XSContext

setLocator

public void setLocator(org.xml.sax.Locator pLocator)
Description copied from interface: XSContext

Sets the locator, used for error messages.

Specified by:
setLocator in interface XSContext

setNamespaceSupport

public void setNamespaceSupport(org.xml.sax.helpers.NamespaceSupport pNamespaceSupport)
Description copied from interface: XSContext

Sets the namespace handler.

Specified by:
setNamespaceSupport in interface XSContext

getNamespaceSupport

public org.xml.sax.helpers.NamespaceSupport getNamespaceSupport()
Description copied from interface: XSContext

Returns the namespace handler.

Specified by:
getNamespaceSupport in interface XSContext

setCurrentContentHandler

public void setCurrentContentHandler(org.xml.sax.ContentHandler pHandler)
Description copied from interface: XSContext

Sets the currently active instance of XsSAXParser.

Specified by:
setCurrentContentHandler in interface XSContext

getCurrentContentHandler

public org.xml.sax.ContentHandler getCurrentContentHandler()
Description copied from interface: XSContext

Sets the currently active instance of XsSAXParser.

Specified by:
getCurrentContentHandler in interface XSContext