|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jaxme.xs.parser.impl.XSContextImpl
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 |
public static final XsObjectFactory DEFAULT_OBJECT_FACTORY
public static final XSObjectFactory DEFAULT_XS_OBJECT_FACTORY
public static final AttributeSetter DEFAULT_ATTRIBUTE_SETTER
public static final ChildSetter DEFAULT_CHILD_SETTER
public static final TextSetter DEFAULT_TEXT_SETTER
Constructor Detail |
public XSContextImpl()
Method Detail |
public XsObjectFactory getXsObjectFactory()
XSContext
Returns the parsers object factory for syntax elements.
getXsObjectFactory
in interface XSContext
public void setXsObjectFactory(XsObjectFactory pFactory)
XSContext
Sets the parsers object factory for syntax elements.
setXsObjectFactory
in interface XSContext
public XSObjectFactory getXSObjectFactory()
XSContext
Returns the parsers object factory for logical elements.
getXSObjectFactory
in interface XSContext
public void setXSObjectFactory(XSObjectFactory pFactory)
XSContext
Sets the parsers object factory for logical elements.
setXSObjectFactory
in interface XSContext
public AttributeSetter getAttributeSetter()
XSContext
Returns the AttributeSetter
, which is used to
configure properties.
getAttributeSetter
in interface XSContext
public void setAttributeSetter(AttributeSetter pAttributeSetter)
XSContext
Sets the AttributeSetter, which is used to configure properties.
setAttributeSetter
in interface XSContext
public ChildSetter getChildSetter()
XSContext
Returns the ChildSetter
, which is used to create
child elements.
getChildSetter
in interface XSContext
public void setChildSetter(ChildSetter pChildSetter)
XSContext
Sets the ChildSetter, which is used to create child elements.
setChildSetter
in interface XSContext
public TextSetter getTextSetter()
XSContext
Returns the TextSetter
, used to add text sections.
getTextSetter
in interface XSContext
public void setTextSetter(TextSetter pTextSetter)
XSContext
Sets the TextSetter, used to add text sections.
setTextSetter
in interface XSContext
public XSLogicalParser getXSLogicalParser()
XSContext
Returns the currently running XSParser
or null,
if no such instance is available.
getXSLogicalParser
in interface XSContext
public void setXSLogicalParser(XSLogicalParser pParser)
XSContext
Sets the currently active instance of XSParser
, if any.
Returns null, if no such instance is available.
setXSLogicalParser
in interface XSContext
public XSSchema getXSSchema()
XSContext
Returns the XSSchema
, which is currently being parsed,
if any.
getXSSchema
in interface XSContext
public org.xml.sax.Locator getLocator()
XSContext
Returns the locator, used for error messages.
getLocator
in interface XSContext
public void setLocator(org.xml.sax.Locator pLocator)
XSContext
Sets the locator, used for error messages.
setLocator
in interface XSContext
public void setNamespaceSupport(org.xml.sax.helpers.NamespaceSupport pNamespaceSupport)
XSContext
Sets the namespace handler.
setNamespaceSupport
in interface XSContext
public org.xml.sax.helpers.NamespaceSupport getNamespaceSupport()
XSContext
Returns the namespace handler.
getNamespaceSupport
in interface XSContext
public void setCurrentContentHandler(org.xml.sax.ContentHandler pHandler)
XSContext
Sets the currently active instance of XsSAXParser
.
setCurrentContentHandler
in interface XSContext
public org.xml.sax.ContentHandler getCurrentContentHandler()
XSContext
Sets the currently active instance of XsSAXParser
.
getCurrentContentHandler
in interface XSContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |