|
|||||||||||
| 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.GenericDomHandlerResource
Wraps a DomHandler implementation as an XMLResource
| 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 | |
GenericDomHandlerResource()
Creates a new instance of GenericXmlResource |
|
| Method Summary | |
java.lang.Object |
getContent()
Returns the domHandler instance this resource is wrapping |
org.w3c.dom.Node |
getContentAsDOM()
Returns this resource as a DOM node |
void |
getContentAsSAX(org.xml.sax.ContentHandler contentHandler)
Does nothing |
java.lang.String |
getDocumentId()
Returns the id of this resource |
DomHandler |
getDomHandler()
Getter for property domHandler. |
java.lang.String |
getResourceType()
Returns 'XMLResource' |
boolean |
getSAXFeature(java.lang.String str)
Throws UnsupportedOperationException |
void |
setContent(java.lang.Object obj)
Accepts a DomHandler, otherwise throws an exception |
void |
setContentAsDOM(org.w3c.dom.Node node)
Modifies this resource. |
org.xml.sax.ContentHandler |
setContentAsSAX()
throws NOT Implemented |
void |
setDomHandler(DomHandler domHandler)
Setter for property domHandler. |
void |
setSAXFeature(java.lang.String str,
boolean param)
throws unsupportedOperationException |
| 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 GenericDomHandlerResource()
| Method Detail |
public java.lang.String getResourceType()
getResourceType in interface org.xmldb.api.base.Resourcepublic DomHandler getDomHandler()
public void setDomHandler(DomHandler domHandler)
domHandler - New value of property domHandler.
public boolean getSAXFeature(java.lang.String str)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
getSAXFeature in interface org.xmldb.api.modules.XMLResourcejava.lang.UnsupportedOperationException
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
public void setContentAsDOM(org.w3c.dom.Node node)
throws org.xmldb.api.base.XMLDBException
DomHandler.setResourceAsNode(org.w3c.dom.Node)
of the DomHandler implementation
setContentAsDOM in interface org.xmldb.api.modules.XMLResourcenode - The node to set this resource to reflect
org.xmldb.api.base.XMLDBException - If there is a Vendor error
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.XMLDBException
public org.w3c.dom.Node getContentAsDOM()
throws org.xmldb.api.base.XMLDBException
getContentAsDOM in interface org.xmldb.api.modules.XMLResourceorg.xmldb.api.base.XMLDBException
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 | ||||||||||