|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SessionContext
Interface for a SessionContext. This interface describes a SessionContext. The SessionContext is a data container containing structured XML which can be retrieved/set by the session transformer. This interface does not specify how the session context stores the data. This is left to the implementation itself, but actually this interface is build in the DOM model. As this context is used in a web context, all methods must be synchronized.
Method Summary | |
---|---|
void |
appendXML(String path,
DocumentFragment fragment)
Deprecated. Append a document fragment at the given path. |
Object |
getAttribute(String key)
Deprecated. Get the value of a context attribute. |
Object |
getAttribute(String key,
Object defaultObject)
Deprecated. Get the value of a context attribute. |
String |
getName()
Deprecated. Get the name of the context |
NodeList |
getNodeList(String path)
Deprecated. Get a copy of all nodes specified by the path. |
Node |
getSingleNode(String path)
Deprecated. Get a copy of the first node specified by the path. |
String |
getValueOfNode(String path)
Deprecated. Get the value of this node. |
DocumentFragment |
getXML(String path)
Deprecated. Get a document fragment. |
void |
loadXML(String path,
SourceParameters parameters)
Deprecated. Try to load XML into the context. |
void |
removeXML(String path)
Deprecated. Remove some content from the context. |
void |
saveXML(String path,
SourceParameters parameters)
Deprecated. Try to save XML from the context. |
void |
setAttribute(String key,
Object value)
Deprecated. Set a context attribute. |
void |
setNode(String path,
Node node)
Deprecated. Set the value of a node. |
void |
setup(String value,
String loadResource,
String saveResource)
Deprecated. Set the name of the context. |
void |
setValueOfNode(String path,
String value)
Deprecated. Set the value of a node. |
void |
setXML(String path,
DocumentFragment fragment)
Deprecated. Set a document fragment at the given path. |
boolean |
streamXML(String path,
ContentHandler contentHandler,
LexicalHandler lexicalHandler)
Deprecated. Stream the XML directly to the handler. |
Method Detail |
---|
void setup(String value, String loadResource, String saveResource)
String getName()
DocumentFragment getXML(String path) throws ProcessingException
null
is returned.
ProcessingException
void setXML(String path, DocumentFragment fragment) throws ProcessingException
ProcessingException
void appendXML(String path, DocumentFragment fragment) throws ProcessingException
ProcessingException
void removeXML(String path) throws ProcessingException
ProcessingException
void setAttribute(String key, Object value) throws ProcessingException
value
is null
the attribute is
removed. If already an attribute exists with the same key, the value
is overwritten with the new one.
ProcessingException
Object getAttribute(String key) throws ProcessingException
null
.
ProcessingException
Object getAttribute(String key, Object defaultObject) throws ProcessingException
defaultObject
.
ProcessingException
Node getSingleNode(String path) throws ProcessingException
null
is returned.
ProcessingException
NodeList getNodeList(String path) throws ProcessingException
ProcessingException
void setNode(String path, Node node) throws ProcessingException
ProcessingException
String getValueOfNode(String path) throws ProcessingException
null
is returned.
ProcessingException
void setValueOfNode(String path, String value) throws ProcessingException
ProcessingException
boolean streamXML(String path, ContentHandler contentHandler, LexicalHandler lexicalHandler) throws SAXException, ProcessingException
false
is
returned, otherwise true
.
SAXException
ProcessingException
void loadXML(String path, SourceParameters parameters) throws SAXException, ProcessingException, IOException
SAXException
ProcessingException
IOException
void saveXML(String path, SourceParameters parameters) throws SAXException, ProcessingException, IOException
SAXException
ProcessingException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |