org.jsxp.framework
Interface ViewParser

All Known Implementing Classes:
ViewParserDom

public interface ViewParser

The Interface ViewParser that defines a parser for a view.


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
 

Method Detail

getIdAttributeName

java.lang.String getIdAttributeName()
Gets the id attribute name.

Returns:
the id attribute name

getIdNamespace

java.lang.String getIdNamespace()
Gets the id namespace.

Returns:
the id namespace

read

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.

Parameters:
uri - the uri
resolver - the resolver
contextObjectForResolver - the context object for resolver
idPrefix - the id prefix
idElements - the id elements
rootElement - the root element
sourceViewController - the source view controller
Returns:
the internal element

setIdAttributeName

void setIdAttributeName(java.lang.String idAttributeName)
Sets the id attribute name.

Parameters:
idAttributeName - the new id attribute name

setIdNamespace

void setIdNamespace(java.lang.String idNamespace)
Sets the id namespace.

Parameters:
idNamespace - the new id namespace

write

void write(InternalElement elem,
           java.io.OutputStream os,
           java.lang.String contentType)
Render the element hierarchy to the output stream

Parameters:
elem - the elem
os - the os
contentType - the content type


Copyright © 2012 Oliver Szymanski & David Tanzer