XML:DB API SDK

org.xmldb.api.reference
Class ResourceSetImpl

java.lang.Object
  |
  +--org.xmldb.api.sdk.SimpleResourceSet
        |
        +--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.


Fields inherited from class org.xmldb.api.sdk.SimpleResourceSet
RESOURCE_SET_NS
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceSetImpl

public ResourceSetImpl(Collection collection)
                throws XMLDBException
Method Detail

addResource

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

getMembersAsResource

public Resource getMembersAsResource()
                              throws XMLDBException
Returns a Resource containing an XML representation of all resources stored in the set.
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)

XML:DB API SDK

Copyright (c) 2001 The XML:DB Initiative All rights reserved