uk.org.ogsadai.client.toolkit.activity.xmldb
Class ResourceSetDocumentConverter
java.lang.Object
|
+--uk.org.ogsadai.client.toolkit.activity.xmldb.ResourceSetDocumentConverter
- public class ResourceSetDocumentConverter
- extends java.lang.Object
Convert a DOM representation of an XML:DB XPath query result into a
ResourceSet.
Documents should have the following format:
<resourceSet>
<resource>
<someMatchingResource
xmlns:src="http://xml.apache.org/xindice/Query"
src:col="someCollection" src:key="someKey">
<someElt name="someAttribute"/>
<someElt name="someAttribute"/>
</someMatchingResource>
</resource>
</resourceSet>
- Author:
- The OGSA-DAI Project Team
|
Method Summary |
static org.xmldb.api.base.ResourceSet |
convert(org.w3c.dom.Document doc)
Convert the results of an XML:DB XPath query - expressed as a
DOM object - into a ResourceSet object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceSetDocumentConverter
public ResourceSetDocumentConverter()
convert
public static org.xmldb.api.base.ResourceSet convert(org.w3c.dom.Document doc)
throws DataFormatException,
java.lang.IllegalArgumentException
- Convert the results of an XML:DB XPath query - expressed as a
DOM object - into a ResourceSet object.
- Parameters:
doc - XML:DB ResourceSet expressed as XML.
- Returns:
ResourceSet object.
- Throws:
java.lang.IllegalArgumentException - If the given document is null.
DataFormatException - If the given document is not in the
expected format.