org.xmldb.api.reference
public class ResourceSetImpl extends SimpleResourceSet
ResourceSet
contains a set of resources as returned from a query
or other operation.collection, RESOURCE_SET_NS, resources
Constructor and Description |
---|
ResourceSetImpl(Collection collection) |
Modifier and Type | Method and Description |
---|---|
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) |
addResource, buildMembersAsResourceDocument, clear, getIterator, getResource, getSize, removeResource
public ResourceSetImpl(Collection collection) throws XMLDBException
XMLDBException
public void addResource(java.lang.String documentId, org.w3c.dom.NodeList nodes) throws XMLDBException
XMLDBException
public Resource getMembersAsResource() throws XMLDBException
Resource
containing an XML representation of all
resources stored in the set.getMembersAsResource
in interface ResourceSet
getMembersAsResource
in class SimpleResourceSet
Resource
instance containing an XML representation
of all set members.XMLDBException
public java.lang.String serialize(org.w3c.dom.Node node)