org.xmldb.api.reference
Class ResourceSetImpl

java.lang.Object
  extended by org.xmldb.api.sdk.SimpleResourceSet
      extended by org.xmldb.api.reference.ResourceSetImpl
All Implemented Interfaces:
ResourceSet

public class ResourceSetImpl
extends SimpleResourceSet

ResourceSet contains a set of resources as returned from a query or other operation.


Field Summary
 
Fields inherited from class org.xmldb.api.sdk.SimpleResourceSet
collection, RESOURCE_SET_NS, resources
 
Constructor Summary
ResourceSetImpl(Collection collection)
           
 
Method Summary
 void addResource(java.lang.String documentId, org.w3c.dom.NodeList nodes)
           
 Resource getMembersAsResource()
          Returns a Resource containing an XML representation of all resources stored in the set.
 java.lang.String serialize(org.w3c.dom.Node node)
           
 
Methods inherited from class org.xmldb.api.sdk.SimpleResourceSet
addResource, buildMembersAsResourceDocument, clear, getIterator, getResource, getSize, removeResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceSetImpl

public ResourceSetImpl(Collection collection)
                throws XMLDBException
Throws:
XMLDBException
Method Detail

addResource

public void addResource(java.lang.String documentId,
                        org.w3c.dom.NodeList nodes)
                 throws XMLDBException
Throws:
XMLDBException

getMembersAsResource

public Resource getMembersAsResource()
                              throws XMLDBException
Returns a Resource containing an XML representation of all resources stored in the set.

Specified by:
getMembersAsResource in interface ResourceSet
Overrides:
getMembersAsResource in class SimpleResourceSet
Returns:
A Resource instance containing an XML representation of all set members.
Throws:
XMLDBException

serialize

public java.lang.String serialize(org.w3c.dom.Node node)