|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.tool.assessment.qti.util.XmlStringBuffer
public class XmlStringBuffer
Copyright: Copyright (c) 2004
Organization: Sakai Project
| Constructor Summary | |
|---|---|
protected |
XmlStringBuffer()
Constructor to be accessed by subclasses. |
|
XmlStringBuffer(Document document)
Constructs an XmlStringBuffer whose initial value is Document |
|
XmlStringBuffer(org.jdom.Document jdomDoc)
Deprecated. using XmlStringBuffer(org.w3c.dom.Document document) instead. |
|
XmlStringBuffer(String xml)
Constructs an XmlStringBuffer whose initial value is String. |
| Method Summary | |
|---|---|
void |
add(String parentXpath,
String childXpath)
|
void |
addAttribute(String elementXpath,
String attributeName)
add attribute |
void |
addElement(String parentXpath,
Element element)
add element |
void |
addJDOMElement(String xpath,
org.jdom.Element element)
Deprecated. addElement(String, org.w3c.dom.Element) |
void |
clear()
Clears the xml |
Document |
getDocument()
Get a document |
void |
insertElement(String afterNode,
String parentXpath,
String childXpath)
insert element |
boolean |
isEmpty()
is the xml empty? |
void |
removeElement(String xpath)
remove element |
void |
replace(String xml)
Deprecated. |
List |
selectNodes(String xpath)
get nodes |
String |
selectSingleValue(String xpath,
String type)
xpath lookup |
String |
stringValue()
string value of document |
void |
update(String xpath,
Element element)
update element, xpath |
XmlStringBuffer |
update(String xpath,
String value)
perform Update on this object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected XmlStringBuffer()
public XmlStringBuffer(String xml)
xml - XML stringpublic XmlStringBuffer(Document document)
document - XML documentpublic XmlStringBuffer(org.jdom.Document jdomDoc)
jdomDoc - | Method Detail |
|---|
public final void clear()
public final void replace(String xml)
xml - XML replacement string
public final Document getDocument()
throws ParserConfigurationException,
SAXException,
IOException
ParserConfigurationException
SAXException
IOExceptionpublic final String stringValue()
public final boolean isEmpty()
public String selectSingleValue(String xpath,
String type)
xpath - type -
public final List selectNodes(String xpath)
xpath -
public final XmlStringBuffer update(String xpath,
String value)
throws DOMException,
Exception
xpath - :- xpath andvalue - :- Value of xpath
DOMException
Exception
public final void update(String xpath,
Element element)
xpath - element -
public final void addJDOMElement(String xpath,
org.jdom.Element element)
xpath - element -
public void insertElement(String afterNode,
String parentXpath,
String childXpath)
afterNode - parentXpath - childXpath -
public final void add(String parentXpath,
String childXpath)
parentXpath - childXpath -
public final void addElement(String parentXpath,
Element element)
parentXpath - element -
public final void addAttribute(String elementXpath,
String attributeName)
elementXpath - attributeName - public final void removeElement(String xpath)
xpath -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||