net.sf.nxqd.xmldb
Class NxqdXMLResource

java.lang.Object
  extended by net.sf.nxqd.xmldb.NxqdService
      extended by net.sf.nxqd.xmldb.NxqdXMLResource
All Implemented Interfaces:
Configurable, Resource, Service, XMLResource

public class NxqdXMLResource
extends NxqdService
implements XMLResource

Version:
1.0
Author:
See Also:
XMLResource

Field Summary
 
Fields inherited from class net.sf.nxqd.xmldb.NxqdService
NAME, VERSION
 
Fields inherited from interface org.xmldb.api.modules.XMLResource
RESOURCE_TYPE
 
Constructor Summary
NxqdXMLResource(Collection parent, String id, String type)
          The a new NxqdXMLResource constructor creates a new instance of NxqdXMLResource.
 
Method Summary
 String asString()
           
 Object getContent()
           
 Node getContentAsDOM()
           
 void getContentAsSAX(ContentHandler handler)
           
 String getDocumentId()
           
 String getId()
           
 Collection getParentCollection()
           
 String getResourceType()
           
 boolean getSAXFeature(String feature)
           
 void setContent(Object value)
           
 void setContentAsDOM(Node root)
           
 ContentHandler setContentAsSAX()
           
 void setSAXFeature(String feature, boolean value)
           
 
Methods inherited from class net.sf.nxqd.xmldb.NxqdService
getName, getProperty, getVersion, keys, removeProperty, setCollection, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xmldb.api.base.Resource
getContent, getId, getParentCollection, getResourceType, setContent
 

Constructor Detail

NxqdXMLResource

public NxqdXMLResource(Collection parent,
                       String id,
                       String type)
                throws NxqdException,
                       XMLDBException
The a new NxqdXMLResource constructor creates a new instance of NxqdXMLResource.

Throws:
NxqdException
XMLDBException
Method Detail

getDocumentId

public String getDocumentId()
                     throws XMLDBException
Specified by:
getDocumentId in interface XMLResource
Throws:
XMLDBException
See Also:
XMLResource.getDocumentId()

getSAXFeature

public boolean getSAXFeature(String feature)
                      throws SAXNotRecognizedException,
                             SAXNotSupportedException
Specified by:
getSAXFeature in interface XMLResource
Throws:
SAXNotRecognizedException
SAXNotSupportedException
See Also:
XMLResource.getSAXFeature(java.lang.String)

setSAXFeature

public void setSAXFeature(String feature,
                          boolean value)
                   throws SAXNotRecognizedException,
                          SAXNotSupportedException
Specified by:
setSAXFeature in interface XMLResource
Throws:
SAXNotRecognizedException
SAXNotSupportedException
See Also:
XMLResource.setSAXFeature(java.lang.String, boolean)

setContentAsSAX

public ContentHandler setContentAsSAX()
                               throws XMLDBException
Specified by:
setContentAsSAX in interface XMLResource
Throws:
XMLDBException
See Also:
XMLResource.setContentAsSAX()

getContentAsSAX

public void getContentAsSAX(ContentHandler handler)
                     throws XMLDBException
Specified by:
getContentAsSAX in interface XMLResource
Throws:
XMLDBException
See Also:
XMLResource.getContentAsSAX(org.xml.sax.ContentHandler)

setContentAsDOM

public void setContentAsDOM(Node root)
                     throws XMLDBException
Specified by:
setContentAsDOM in interface XMLResource
Throws:
XMLDBException
See Also:
XMLResource.setContentAsDOM(org.w3c.dom.Node)

getContentAsDOM

public Node getContentAsDOM()
                     throws XMLDBException
Specified by:
getContentAsDOM in interface XMLResource
Throws:
XMLDBException
See Also:
XMLResource.getContentAsDOM()

asString

public String asString()
                throws XMLDBException
Throws:
XMLDBException

getContent

public Object getContent()
                  throws XMLDBException
Specified by:
getContent in interface Resource
Throws:
XMLDBException
See Also:
Resource.getContent()

setContent

public void setContent(Object value)
                throws XMLDBException
Specified by:
setContent in interface Resource
Throws:
XMLDBException
See Also:
Resource.setContent(java.lang.Object)

getResourceType

public String getResourceType()
                       throws XMLDBException
Specified by:
getResourceType in interface Resource
Throws:
XMLDBException
See Also:
Resource.getResourceType()

getId

public String getId()
             throws XMLDBException
Specified by:
getId in interface Resource
Throws:
XMLDBException
See Also:
Resource.getId()

getParentCollection

public Collection getParentCollection()
                               throws XMLDBException
Specified by:
getParentCollection in interface Resource
Throws:
XMLDBException
See Also:
Resource.getParentCollection()


Copyright © 2005-2006 nxqd. All Rights Reserved.