|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.eds.xapi.generic.GenericConfigurable
gov.noaa.eds.xapi.generic.GenericResource
gov.noaa.eds.xapi.generic.GenericXmlNodeResource
A generic implementation of an XMLResource in which the only copy of the resource is in memory.
Field Summary |
Fields inherited from class gov.noaa.eds.xapi.generic.GenericConfigurable |
properties |
Fields inherited from interface org.xmldb.api.modules.XMLResource |
RESOURCE_TYPE |
Constructor Summary | |
GenericXmlNodeResource(org.w3c.dom.Node root)
Creates a new instance of GenericNodeXmlResource |
Method Summary | |
java.lang.Object |
getContent()
Returns the Node object |
org.w3c.dom.Node |
getContentAsDOM()
Returns the contents of this resource as a DOM node |
void |
getContentAsSAX(org.xml.sax.ContentHandler contentHandler)
Throws an XMLDBException with ErrorCodes.NOT_IMPLEMENTED. |
java.lang.String |
getDocumentId()
Returns the ID of this resource |
java.lang.String |
getResourceType()
Returns 'XMLResource' |
boolean |
getSAXFeature(java.lang.String str)
Throws UnsupportedOperationException |
void |
setContent(java.lang.Object obj)
Sets the content if the obj type is a Node |
void |
setContentAsDOM(org.w3c.dom.Node node)
Sets this resource to be the specified node |
org.xml.sax.ContentHandler |
setContentAsSAX()
Throws unsupppored exception |
void |
setSAXFeature(java.lang.String str,
boolean param)
Throws Unsupported Exception |
Methods inherited from class gov.noaa.eds.xapi.generic.GenericResource |
getId, getParentCollection, setId |
Methods inherited from class gov.noaa.eds.xapi.generic.GenericConfigurable |
getProperty, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xmldb.api.base.Resource |
getId, getParentCollection |
Constructor Detail |
public GenericXmlNodeResource(org.w3c.dom.Node root)
root
- The node root this resource wraps.Method Detail |
public boolean getSAXFeature(java.lang.String str) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
getSAXFeature
in interface org.xmldb.api.modules.XMLResource
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public java.lang.String getResourceType()
getResourceType
in interface org.xmldb.api.base.Resource
public void setContentAsDOM(org.w3c.dom.Node node) throws org.xmldb.api.base.XMLDBException
setContentAsDOM
in interface org.xmldb.api.modules.XMLResource
node
- The replacement node
org.xmldb.api.base.XMLDBException
public void getContentAsSAX(org.xml.sax.ContentHandler contentHandler) throws org.xmldb.api.base.XMLDBException
getContentAsSAX
in interface org.xmldb.api.modules.XMLResource
org.xmldb.api.base.XMLDBException
public void setSAXFeature(java.lang.String str, boolean param) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
setSAXFeature
in interface org.xmldb.api.modules.XMLResource
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public org.xml.sax.ContentHandler setContentAsSAX() throws org.xmldb.api.base.XMLDBException
setContentAsSAX
in interface org.xmldb.api.modules.XMLResource
org.xmldb.api.base.XMLDBException
public java.lang.String getDocumentId() throws org.xmldb.api.base.XMLDBException
getDocumentId
in interface org.xmldb.api.modules.XMLResource
org.xmldb.api.base.XMLDBException
public org.w3c.dom.Node getContentAsDOM()
getContentAsDOM
in interface org.xmldb.api.modules.XMLResource
public void setContent(java.lang.Object obj) throws org.xmldb.api.base.XMLDBException
setContent
in interface org.xmldb.api.base.Resource
org.xmldb.api.base.XMLDBException
public java.lang.Object getContent()
getContent
in interface org.xmldb.api.base.Resource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |