|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.swan.xml.input.event.EventContext
Maintains contextual information relevant to the processing of some subset of a document.
Constructor Summary | |
EventContext()
|
Method Summary | |
void |
addContextListener(ContextListener listener)
|
EventContext |
connectEvent(ContextEvent event)
Utility to connect an event to this as it's new source context. |
protected void |
fireEndElement(EndElementEvent event)
|
protected void |
fireProcessingInstruction(ProcessingInstructionEvent event)
|
protected void |
fireStartElement(StartElementEvent event)
|
protected void |
fireTextEvent(TextEvent event)
|
java.lang.Object |
getClientState()
Gets the associated state, if any. |
abstract java.lang.Object |
getContextProperty(java.lang.Object key)
Get the property on this context or the nearest ancestor with a matching property. |
abstract DocumentContext |
getDocumentContext()
|
protected ContextListener[] |
getListeners()
|
java.lang.Object |
getProperty(java.lang.Object key)
|
void |
putClientState(java.lang.Object value)
Associate arbitrary state with this ElementContext |
abstract void |
putContextProperty(java.lang.Object key,
java.lang.Object value)
Add a context property. |
java.lang.Object |
putProperty(java.lang.Object key,
java.lang.Object data)
Put an annotation on this context identified by the supplied key. |
protected void |
release()
Release all associated properties and resources and reset the context to a default state. |
void |
removeContextListener(ContextListener listener)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EventContext()
Method Detail |
public void addContextListener(ContextListener listener)
public void removeContextListener(ContextListener listener)
public java.lang.Object getClientState()
null
unless a state object has been previously set with
putClientState(java.lang.Object)
.public void putClientState(java.lang.Object value)
public java.lang.Object putProperty(java.lang.Object key, java.lang.Object data)
public java.lang.Object getProperty(java.lang.Object key)
public abstract void putContextProperty(java.lang.Object key, java.lang.Object value)
public abstract java.lang.Object getContextProperty(java.lang.Object key)
public abstract DocumentContext getDocumentContext()
public EventContext connectEvent(ContextEvent event)
protected void release()
protected void fireStartElement(StartElementEvent event) throws EventContextException
protected void fireEndElement(EndElementEvent event) throws EventContextException
protected void fireTextEvent(TextEvent event) throws EventContextException
protected void fireProcessingInstruction(ProcessingInstructionEvent event) throws EventContextException
protected ContextListener[] getListeners()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |