|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.scopemvc.view.servlet.Page | +--org.scopemvc.view.servlet.xml.AbstractXSLPage | +--org.scopemvc.view.servlet.xml.XSLPage
A concrete AbstractXSLPage
that uses Scope's ModelManager
implementations to serialise its entire bound model object to an XML
document. A better strategy would be to use a more intelligent view that
selectively serialises relevant parts of the model object.
Handles circular references using the "ID" and "IDREF" pattern.
Field Summary | |
protected boolean |
requiresPropertyDescriptions
Optional setting for whether the SAX convertor should write all the property "paths" out when this view is streamed. |
protected ModelToXML |
xmlGenerator
TODO: describe of the Field |
Fields inherited from class org.scopemvc.view.servlet.xml.AbstractXSLPage |
debugXMLDirectory, shouldCacheTemplates, templateCache, xslURI |
Constructor Summary | |
XSLPage(java.lang.String inViewID,
java.lang.String inXslURI)
|
|
XSLPage(java.lang.String inViewID,
java.lang.String inXslURI,
boolean inRequiresModelIds)
|
Method Summary | |
protected void |
generateXMLDocument(org.xml.sax.ContentHandler inContentHandler)
Override to implement model to SAX conversion into the passed ContentHandler. |
protected void |
init()
Do it like this so that we can pick up application-specific ScopeConfig... |
protected void |
populateBoundModelProperty(java.lang.String inPropertyDescription,
java.lang.String inValue)
Use the property_description, property_value pair passed to set a property in the bound model to a new value. |
java.util.List |
populateModel(java.util.HashMap ioParameters)
Interprets any form parameters like
<PROPERTY_ID_PREFIX>SelectorDescription
as [property_description, property_value] pairs |
Methods inherited from class org.scopemvc.view.servlet.xml.AbstractXSLPage |
getContentType, getHTMLOutputProperties, getSystemID, getTransformerHandler, getXMLOutputProperties, getXslURI, makeSerializer, setSystemID, setXslURI, streamView, toString |
Methods inherited from class org.scopemvc.view.servlet.Page |
equalsID, getBoundModel, getController, getID, getParent, issueControl, setBoundModel, setController, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected boolean requiresPropertyDescriptions
{path}=newValue
for automatic repopulation back into the bound model object.
protected ModelToXML xmlGenerator
Constructor Detail |
public XSLPage(java.lang.String inViewID, java.lang.String inXslURI)
inViewID
- unique View ID for routing incoming ControlsinXslURI
- the XSLT this View uses to transform its model objects
after they convert to XMLpublic XSLPage(java.lang.String inViewID, java.lang.String inXslURI, boolean inRequiresModelIds)
inViewID
- unique View ID for routing incoming ControlsinXslURI
- the XSLT this View uses to transform its model objects
after they convert to XMLinRequiresModelIds
- Does this view need the SAX convertor to write
out property description attributes for properties? For repopulation
back into the bound model via populateModel(java.util.HashMap)
Method Detail |
public java.util.List populateModel(java.util.HashMap ioParameters)
Interprets any form parameters like
<PROPERTY_ID_PREFIX>SelectorDescription
as [property_description, property_value] pairs
Extracts the property_description from the form parameter key, then populates its model object using the String value. Any parameters treated this way are removed from the HashMap.
populateModel
in class Page
ioParameters
- form parameters to parse for [property_description,
property_value] pairs, removing any processed pairs from the
parameters before return
protected void init()
protected void generateXMLDocument(org.xml.sax.ContentHandler inContentHandler) throws java.lang.Exception
AbstractXSLPage
generateXMLDocument
in class AbstractXSLPage
inContentHandler
- Drive this ContentHandler with the Model's SAX
events.
java.lang.Exception
- TODO: Describe the Exceptionprotected void populateBoundModelProperty(java.lang.String inPropertyDescription, java.lang.String inValue) throws java.lang.Exception
inPropertyDescription
- TODO: Describe the ParameterinValue
- TODO: Describe the Parameter
java.lang.Exception
- on any failure
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |