org.exist.xmldb
Class RemoteXMLResource

java.lang.Object
  extended by org.exist.xmldb.RemoteXMLResource
All Implemented Interfaces:
EXistResource, org.xmldb.api.base.Resource, org.xmldb.api.modules.XMLResource

public class RemoteXMLResource
extends java.lang.Object
implements org.xmldb.api.modules.XMLResource, EXistResource


Field Summary
 
Fields inherited from interface org.xmldb.api.modules.XMLResource
RESOURCE_TYPE
 
Constructor Summary
RemoteXMLResource(RemoteCollection parent, int handle, int pos, XmldbURI docId, java.lang.String id)
           
RemoteXMLResource(RemoteCollection parent, XmldbURI docId, java.lang.String id)
           
 
Method Summary
 java.lang.Object getContent()
           
 org.w3c.dom.Node getContentAsDOM()
           
 void getContentAsSAX(org.xml.sax.ContentHandler handler)
           
 int getContentLength()
           
 java.util.Date getCreationTime()
           
 org.w3c.dom.DocumentType getDocType()
           
 java.lang.String getDocumentId()
           
 java.lang.String getId()
           
 java.util.Date getLastModificationTime()
           
 java.lang.String getMimeType()
           
 java.lang.String getNodeId()
           
 org.xmldb.api.base.Collection getParentCollection()
           
 Permission getPermissions()
           
 java.lang.String getResourceType()
           
 boolean getSAXFeature(java.lang.String arg0)
           
 void setContent(java.lang.Object value)
           
 void setContentAsDOM(org.w3c.dom.Node root)
           
 org.xml.sax.ContentHandler setContentAsSAX()
           
 void setContentLength(int len)
           
 void setDocType(org.w3c.dom.DocumentType doctype)
           
 void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
           
 void setMimeType(java.lang.String mime)
           
 void setPermissions(Permission perms)
           
 void setSAXFeature(java.lang.String arg0, boolean arg1)
           
 void setXMLReader(org.xml.sax.XMLReader xmlReader)
          Sets the external XMLReader to use.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteXMLResource

public RemoteXMLResource(RemoteCollection parent,
                         XmldbURI docId,
                         java.lang.String id)
                  throws org.xmldb.api.base.XMLDBException
Throws:
org.xmldb.api.base.XMLDBException

RemoteXMLResource

public RemoteXMLResource(RemoteCollection parent,
                         int handle,
                         int pos,
                         XmldbURI docId,
                         java.lang.String id)
                  throws org.xmldb.api.base.XMLDBException
Throws:
org.xmldb.api.base.XMLDBException
Method Detail

getCreationTime

public java.util.Date getCreationTime()
                               throws org.xmldb.api.base.XMLDBException
Specified by:
getCreationTime in interface EXistResource
Throws:
org.xmldb.api.base.XMLDBException

getLastModificationTime

public java.util.Date getLastModificationTime()
                                       throws org.xmldb.api.base.XMLDBException
Specified by:
getLastModificationTime in interface EXistResource
Throws:
org.xmldb.api.base.XMLDBException

getContent

public java.lang.Object getContent()
                            throws org.xmldb.api.base.XMLDBException
Specified by:
getContent in interface org.xmldb.api.base.Resource
Throws:
org.xmldb.api.base.XMLDBException

getContentAsDOM

public org.w3c.dom.Node getContentAsDOM()
                                 throws org.xmldb.api.base.XMLDBException
Specified by:
getContentAsDOM in interface org.xmldb.api.modules.XMLResource
Throws:
org.xmldb.api.base.XMLDBException

getContentAsSAX

public void getContentAsSAX(org.xml.sax.ContentHandler handler)
                     throws org.xmldb.api.base.XMLDBException
Specified by:
getContentAsSAX in interface org.xmldb.api.modules.XMLResource
Throws:
org.xmldb.api.base.XMLDBException

getNodeId

public java.lang.String getNodeId()

getDocumentId

public java.lang.String getDocumentId()
                               throws org.xmldb.api.base.XMLDBException
Specified by:
getDocumentId in interface org.xmldb.api.modules.XMLResource
Throws:
org.xmldb.api.base.XMLDBException

getId

public java.lang.String getId()
                       throws org.xmldb.api.base.XMLDBException
Specified by:
getId in interface org.xmldb.api.base.Resource
Throws:
org.xmldb.api.base.XMLDBException

getParentCollection

public org.xmldb.api.base.Collection getParentCollection()
                                                  throws org.xmldb.api.base.XMLDBException
Specified by:
getParentCollection in interface org.xmldb.api.base.Resource
Throws:
org.xmldb.api.base.XMLDBException

getResourceType

public java.lang.String getResourceType()
                                 throws org.xmldb.api.base.XMLDBException
Specified by:
getResourceType in interface org.xmldb.api.base.Resource
Throws:
org.xmldb.api.base.XMLDBException

setXMLReader

public void setXMLReader(org.xml.sax.XMLReader xmlReader)
Sets the external XMLReader to use.

Parameters:
xmlReader - the XMLReader

setContent

public void setContent(java.lang.Object value)
                throws org.xmldb.api.base.XMLDBException
Specified by:
setContent in interface org.xmldb.api.base.Resource
Throws:
org.xmldb.api.base.XMLDBException

setContentAsDOM

public void setContentAsDOM(org.w3c.dom.Node root)
                     throws org.xmldb.api.base.XMLDBException
Specified by:
setContentAsDOM in interface org.xmldb.api.modules.XMLResource
Throws:
org.xmldb.api.base.XMLDBException

setContentAsSAX

public org.xml.sax.ContentHandler setContentAsSAX()
                                           throws org.xmldb.api.base.XMLDBException
Specified by:
setContentAsSAX in interface org.xmldb.api.modules.XMLResource
Throws:
org.xmldb.api.base.XMLDBException

getSAXFeature

public boolean getSAXFeature(java.lang.String arg0)
                      throws org.xml.sax.SAXNotRecognizedException,
                             org.xml.sax.SAXNotSupportedException
Specified by:
getSAXFeature in interface org.xmldb.api.modules.XMLResource
Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException

setSAXFeature

public void setSAXFeature(java.lang.String arg0,
                          boolean arg1)
                   throws org.xml.sax.SAXNotRecognizedException,
                          org.xml.sax.SAXNotSupportedException
Specified by:
setSAXFeature in interface org.xmldb.api.modules.XMLResource
Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException

setContentLength

public void setContentLength(int len)

getContentLength

public int getContentLength()
                     throws org.xmldb.api.base.XMLDBException
Specified by:
getContentLength in interface EXistResource
Throws:
org.xmldb.api.base.XMLDBException

setPermissions

public void setPermissions(Permission perms)

getPermissions

public Permission getPermissions()
Specified by:
getPermissions in interface EXistResource

setLexicalHandler

public void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
Specified by:
setLexicalHandler in interface EXistResource

setMimeType

public void setMimeType(java.lang.String mime)
Specified by:
setMimeType in interface EXistResource

getMimeType

public java.lang.String getMimeType()
Specified by:
getMimeType in interface EXistResource

getDocType

public org.w3c.dom.DocumentType getDocType()
                                    throws org.xmldb.api.base.XMLDBException
Specified by:
getDocType in interface EXistResource
Throws:
org.xmldb.api.base.XMLDBException

setDocType

public void setDocType(org.w3c.dom.DocumentType doctype)
                throws org.xmldb.api.base.XMLDBException
Specified by:
setDocType in interface EXistResource
Throws:
org.xmldb.api.base.XMLDBException


Copyright (C) Wolfgang Meier. All rights reserved.