|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| 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.XMLResourceorg.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedExceptionpublic 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.XMLResourcenode - 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.XMLResourceorg.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.XMLResourceorg.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.XMLResourceorg.xmldb.api.base.XMLDBException
public java.lang.String getDocumentId()
throws org.xmldb.api.base.XMLDBException
getDocumentId in interface org.xmldb.api.modules.XMLResourceorg.xmldb.api.base.XMLDBExceptionpublic 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.Resourceorg.xmldb.api.base.XMLDBExceptionpublic java.lang.Object getContent()
getContent in interface org.xmldb.api.base.Resource
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||