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.
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceSetImpl
public ResourceSetImpl(Collection collection)
throws XMLDBException
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)
Copyright (c) 2001 The XML:DB Initiative All rights reserved