| java.lang.Object org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer
All known Subclasses: org.sakaiproject.tool.assessment.qti.asi.ASIBaseClass,
XmlStringBuffer | public class XmlStringBuffer implements java.io.Serializable(Code) | | Copyright: Copyright (c) 2004
Organization: Sakai Project
author: rshastri author: Ed Smiley esmiley@stanford.edu version: $Id: XmlStringBuffer.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $ |
XmlStringBuffer | protected XmlStringBuffer()(Code) | | Constructor to be accessed by subclasses.
|
XmlStringBuffer | public XmlStringBuffer(String xml)(Code) | | Constructs an XmlStringBuffer whose initial value is String.
Parameters: xml - XML string |
XmlStringBuffer | public XmlStringBuffer(Document document)(Code) | | Constructs an XmlStringBuffer whose initial value is Document
Parameters: document - XML document |
XmlStringBuffer | public XmlStringBuffer(org.jdom.Document jdomDoc)(Code) | | Constructs an XmlStringBuffer whose initial value is Document
Parameters: jdomDoc - |
add | final public void add(String parentXpath, String childXpath)(Code) | | Parameters: parentXpath - Parameters: childXpath - |
addAttribute | final public void addAttribute(String elementXpath, String attributeName)(Code) | | add attribute
Parameters: elementXpath - Parameters: attributeName - |
addElement | final public void addElement(String parentXpath, Element element)(Code) | | add element
Parameters: parentXpath - Parameters: element - |
addJDOMElement | final public void addJDOMElement(String xpath, org.jdom.Element element)(Code) | | DOCUMENT ME!
Parameters: xpath - Parameters: element - |
clear | final public void clear()(Code) | | Clears the xml
|
insertElement | public void insertElement(String afterNode, String parentXpath, String childXpath)(Code) | | insert element
Parameters: afterNode - Parameters: parentXpath - Parameters: childXpath - |
isEmpty | final public boolean isEmpty()(Code) | | is the xml empty?
true/false |
removeElement | final public void removeElement(String xpath)(Code) | | remove element
Parameters: xpath - |
replace | final public void replace(String xml)(Code) | | replace the current xml with the given string
Parameters: xml - XML replacement string |
selectNodes | final public List selectNodes(String xpath)(Code) | | get nodes
Parameters: xpath - list of nodes |
selectSingleValue | public String selectSingleValue(String xpath, String type)(Code) | | xpath lookup
Parameters: xpath - Parameters: type - value |
stringValue | final public String stringValue()(Code) | | string value of document
the string |
update | final public void update(String xpath, Element element)(Code) | | update element, xpath
Parameters: xpath - Parameters: element - |
|
|