|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsxp.framework.dom.XMLProcessing
org.jsxp.framework.dom.ViewParserDom
public class ViewParserDom
Default implementation of ViewParser
. Used by the jsxp framework to parse a xml-based design view file and build
a jsxp element representation (based on the ElementDom
implementation).
Constructor Summary | |
---|---|
ViewParserDom()
Instantiates a new dom parser. |
Method Summary | |
---|---|
java.lang.String |
getIdAttributeName()
Gets the id attribute name. |
java.lang.String |
getIdNamespace()
Gets the id namespace. |
InternalElement |
read(java.lang.String uri,
ResourceResolver resolver,
java.lang.Object contextObjectForResolver,
java.lang.String idPrefix,
java.util.Map<java.lang.String,InternalElement> idElements,
InternalElement rootElement,
ViewController sourceViewController)
Parses the element. |
void |
setIdAttributeName(java.lang.String idAttributeName)
Sets the id attribute name. |
void |
setIdNamespace(java.lang.String idNamespace)
Sets the id namespace. |
void |
write(InternalElement elem,
java.io.OutputStream os,
java.lang.String contentType)
Render the element hierarchy to the output stream |
Methods inherited from class org.jsxp.framework.dom.XMLProcessing |
---|
getNode, getNodes, parseDocument, printFile, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewParserDom()
Method Detail |
---|
public java.lang.String getIdAttributeName()
ViewParser
getIdAttributeName
in interface ViewParser
public java.lang.String getIdNamespace()
ViewParser
getIdNamespace
in interface ViewParser
public InternalElement read(java.lang.String uri, ResourceResolver resolver, java.lang.Object contextObjectForResolver, java.lang.String idPrefix, java.util.Map<java.lang.String,InternalElement> idElements, InternalElement rootElement, ViewController sourceViewController)
ViewParser
read
in interface ViewParser
uri
- the uriresolver
- the resolvercontextObjectForResolver
- the context object for resolveridPrefix
- the id prefixidElements
- the id elementsrootElement
- the root elementsourceViewController
- the source view controller
public void setIdAttributeName(java.lang.String idAttributeName)
ViewParser
setIdAttributeName
in interface ViewParser
idAttributeName
- the new id attribute namepublic void setIdNamespace(java.lang.String idNamespace)
ViewParser
setIdNamespace
in interface ViewParser
idNamespace
- the new id namespacepublic void write(InternalElement elem, java.io.OutputStream os, java.lang.String contentType)
ViewParser
write
in interface ViewParser
elem
- the elemos
- the oscontentType
- the content type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |