|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sri.emo.controller.ModelXMLWriter
public class ModelXMLWriter
Extraction of XML writing to a separate class.
Field Summary | |
---|---|
static String |
DATA_NODES
The key of the node id used to separate Entities from their respective Nodes. |
static String |
DELIMITER
|
Constructor Summary | |
---|---|
ModelXMLWriter()
Default constructor. |
Method Summary | |
---|---|
protected void |
addPicklists(org.dom4j.Element xml,
ArrayList alreadyIncluded)
Loop through nodes and add all picklists (just once) section to xml |
org.dom4j.Document |
renderEntityAsXml(NodeType entity)
Render an entity as an XML document. |
org.dom4j.Document |
renderEntityAsXml(NodeType entity,
ExpressoRequest request,
boolean renderNodes)
Renders the entity and nodes as XML. |
org.dom4j.Document |
renderNodeAsXml(Node querynode,
ExpressoRequest request)
Converts a particular node to XML. |
org.dom4j.Element[] |
renderNodesAsXml(Node[] allNodes,
ExpressoRequest request)
Similar to the above list, but renders an array of XML nodes in succession to the resulting document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DATA_NODES
public static final String DELIMITER
Constructor Detail |
---|
public ModelXMLWriter()
Method Detail |
---|
public org.dom4j.Document renderEntityAsXml(NodeType entity, ExpressoRequest request, boolean renderNodes) throws DBException, ControllerException
entity
- NodeType the entity to renderrequest
- ControllerRequest the ControllerRequest objectrenderNodes
- true if you want the individual nodes rendered as well.
DBException
- upon database error,
ControllerException
- upon rendering error.public org.dom4j.Document renderNodeAsXml(Node querynode, ExpressoRequest request) throws ControllerException
querynode
- Noderequest
- ControllerRequest
ControllerException
public org.dom4j.Document renderEntityAsXml(NodeType entity) throws DBException
entity
- NodeType the node type to render
DBException
- upon database access error.public org.dom4j.Element[] renderNodesAsXml(Node[] allNodes, ExpressoRequest request) throws ControllerException
allNodes
- Node[] an array of nodes.request
- ControllerRequest
ControllerException
protected void addPicklists(org.dom4j.Element xml, ArrayList alreadyIncluded) throws DBException
xml
- the XML DOM Element fragment rootalreadyIncluded
- ArrayList
DBException
- upon error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |