org.exist.xmldb
Class RemoteXMLResource

java.lang.Object
  extended byorg.exist.xmldb.RemoteXMLResource
All Implemented Interfaces:
EXistResource

public class RemoteXMLResource
extends java.lang.Object
implements EXistResource


Field Summary
protected  java.lang.String content
           
protected  int contentLen
           
protected  java.util.Date datecreated
           
protected  java.util.Date datemodified
           
protected  java.lang.String documentName
           
protected  java.io.File file
           
protected  int handle
           
protected  java.lang.String id
           
protected  org.xml.sax.ext.LexicalHandler lexicalHandler
           
protected  java.util.Properties outputProperties
           
protected  RemoteCollection parent
           
protected  java.lang.String path
           
protected  Permission permissions
           
protected  int pos
           
 
Constructor Summary
RemoteXMLResource(RemoteCollection parent, int handle, int pos, java.lang.String docId, java.lang.String id)
           
RemoteXMLResource(RemoteCollection parent, java.lang.String 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()
           
protected  byte[] getData()
          Force content to be loaded into mem
 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()
           
 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)
           
protected  void setProperties(java.util.Properties properties)
           
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.String id

documentName

protected java.lang.String documentName

path

protected java.lang.String path

handle

protected int handle

pos

protected int pos

parent

protected RemoteCollection parent

content

protected java.lang.String content

file

protected java.io.File file

permissions

protected Permission permissions

contentLen

protected int contentLen

outputProperties

protected java.util.Properties outputProperties

lexicalHandler

protected org.xml.sax.ext.LexicalHandler lexicalHandler

datecreated

protected java.util.Date datecreated

datemodified

protected java.util.Date datemodified
Constructor Detail

RemoteXMLResource

public RemoteXMLResource(RemoteCollection parent,
                         java.lang.String docId,
                         java.lang.String id)
                  throws XMLDBException

RemoteXMLResource

public RemoteXMLResource(RemoteCollection parent,
                         int handle,
                         int pos,
                         java.lang.String docId,
                         java.lang.String id)
                  throws XMLDBException
Method Detail

getCreationTime

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

getLastModificationTime

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

getContent

public java.lang.Object getContent()
                            throws XMLDBException
Throws:
XMLDBException

getContentAsDOM

public org.w3c.dom.Node getContentAsDOM()
                                 throws XMLDBException
Throws:
XMLDBException

getContentAsSAX

public void getContentAsSAX(org.xml.sax.ContentHandler handler)
                     throws XMLDBException
Throws:
XMLDBException

getNodeId

public java.lang.String getNodeId()

getDocumentId

public java.lang.String getDocumentId()
                               throws XMLDBException
Throws:
XMLDBException

getId

public java.lang.String getId()
                       throws XMLDBException
Throws:
XMLDBException

getParentCollection

public Collection getParentCollection()
                               throws XMLDBException
Throws:
XMLDBException

getResourceType

public java.lang.String getResourceType()
                                 throws XMLDBException
Throws:
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 XMLDBException
Throws:
XMLDBException

setContentAsDOM

public void setContentAsDOM(org.w3c.dom.Node root)
                     throws XMLDBException
Throws:
XMLDBException

setContentAsSAX

public org.xml.sax.ContentHandler setContentAsSAX()
                                           throws XMLDBException
Throws:
XMLDBException

getSAXFeature

public boolean getSAXFeature(java.lang.String arg0)
                      throws org.xml.sax.SAXNotRecognizedException,
                             org.xml.sax.SAXNotSupportedException
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
Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException

getData

protected byte[] getData()
                  throws XMLDBException
Force content to be loaded into mem

Throws:
XMLDBException

setContentLength

public void setContentLength(int len)

getContentLength

public int getContentLength()
                     throws XMLDBException
Specified by:
getContentLength in interface EXistResource
Throws:
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

setProperties

protected void setProperties(java.util.Properties properties)

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 XMLDBException
Specified by:
getDocType in interface EXistResource
Throws:
XMLDBException

setDocType

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


<oXygen/> XML Editor provides support for editing and debugging XQuery expressions against the eXist XML Database.