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 XMLDB XPath or XQuery query result into an org.xmldb.api.baseResourceSet.

Documents should have the following format:

<resourceSet>
<resource>
<someMatchingResource>
<someElt name="someAttribute"/>
<someElt name="someAttribute"/>
</someMatchingResource>
</resource>
</resourceSet>

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
 
Constructor Summary
ResourceSetDocumentConverter()
           
 
Method Summary
static org.xmldb.api.base.ResourceSet convert(org.w3c.dom.Document doc)
          Convert the results of an XMLDB XPath or XQuery query - stored a DOM object - into a ResourceSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values
Constructor Detail

ResourceSetDocumentConverter

public ResourceSetDocumentConverter()
Method Detail

convert

public static org.xmldb.api.base.ResourceSet convert(org.w3c.dom.Document doc)
Convert the results of an XMLDB XPath or XQuery query - stored a DOM object - into a ResourceSet.

Parameters:
doc - Query results.
Returns:
ResourceSet
Throws:
java.lang.IllegalArgumentException - If doc is null