org.exist.xmldb
Class AbstractEXistResource

java.lang.Object
  extended byorg.exist.xmldb.AbstractEXistResource
All Implemented Interfaces:
EXistResource
Direct Known Subclasses:
LocalBinaryResource, LocalXMLResource

public abstract class AbstractEXistResource
extends java.lang.Object
implements EXistResource

Abstract base implementation of interface EXistResource.


Field Summary
protected  java.lang.String docId
           
protected  boolean isNewResource
           
protected  java.lang.String mimeType
           
protected  LocalCollection parent
           
protected  BrokerPool pool
           
protected  User user
           
 
Constructor Summary
AbstractEXistResource(User user, BrokerPool pool, LocalCollection parent, java.lang.String docId, java.lang.String mimeType)
           
 
Method Summary
protected  void closeDocument(DocumentImpl doc, int lockMode)
           
abstract  java.util.Date getCreationTime()
           
 org.w3c.dom.DocumentType getDocType()
           
abstract  java.util.Date getLastModificationTime()
           
 java.lang.String getMimeType()
           
abstract  Permission getPermissions()
           
protected  DocumentImpl openDocument(DBBroker broker, int lockMode)
           
 void setDocType(org.w3c.dom.DocumentType doctype)
           
 void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
           
 void setMimeType(java.lang.String mime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.exist.xmldb.EXistResource
getContentLength
 

Field Detail

user

protected User user

pool

protected BrokerPool pool

parent

protected LocalCollection parent

docId

protected java.lang.String docId

mimeType

protected java.lang.String mimeType

isNewResource

protected boolean isNewResource
Constructor Detail

AbstractEXistResource

public AbstractEXistResource(User user,
                             BrokerPool pool,
                             LocalCollection parent,
                             java.lang.String docId,
                             java.lang.String mimeType)
Method Detail

getCreationTime

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

getLastModificationTime

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

getPermissions

public abstract Permission getPermissions()
                                   throws XMLDBException
Specified by:
getPermissions in interface EXistResource
Throws:
XMLDBException

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

openDocument

protected DocumentImpl openDocument(DBBroker broker,
                                    int lockMode)
                             throws XMLDBException
Throws:
XMLDBException

closeDocument

protected void closeDocument(DocumentImpl doc,
                             int lockMode)
                      throws XMLDBException
Throws:
XMLDBException

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.