com.gomjabbar.xml.store
Class DocumentStore

java.lang.Object
  |
  +--com.gomjabbar.xml.store.DocumentStore
Direct Known Subclasses:
DBDocumentStore, InMemoryDS

public abstract class DocumentStore
extends java.lang.Object


Inner Class Summary
protected static class DocumentStore._Attribute
           
protected static class DocumentStore._Document
           
protected static class DocumentStore._Node
           
static class DocumentStore.DSException
           
 
Constructor Summary
DocumentStore(DocumentManager dm)
           
 
Method Summary
protected abstract  void drop_base()
           
protected abstract  void init_base()
           
static void main(java.lang.String[] args)
           
 void restore(int idd, DocumentStore._Node[] root, org.w3c.dom.Document d, org.w3c.dom.Node parent)
           
 org.w3c.dom.Document restore(java.lang.String url)
           
protected abstract  DocumentStore._Attribute[] retrieveAttributes(int idn)
           
protected abstract  DocumentStore._Node[] retrieveChildNodes(int idd, int parent)
           
protected abstract  DocumentStore._Document retrieveDocument(java.lang.String url)
           
 void store(org.w3c.dom.Document d, java.lang.String url)
           
protected abstract  void storeAttribute(int node, java.lang.String name, java.lang.String value)
           
protected abstract  int storeDocument(java.lang.String url, java.lang.String public_id, java.lang.String system_id, java.lang.String internal_subset)
           
protected abstract  int storeNode(int doc, int parent, java.lang.String name, short type, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentStore

public DocumentStore(DocumentManager dm)
Method Detail

store

public void store(org.w3c.dom.Document d,
                  java.lang.String url)
           throws DocumentStore.DSException

restore

public org.w3c.dom.Document restore(java.lang.String url)
                             throws DocumentStore.DSException

restore

public void restore(int idd,
                    DocumentStore._Node[] root,
                    org.w3c.dom.Document d,
                    org.w3c.dom.Node parent)
             throws DocumentStore.DSException

init_base

protected abstract void init_base()
                           throws DocumentStore.DSException

drop_base

protected abstract void drop_base()
                           throws DocumentStore.DSException

storeDocument

protected abstract int storeDocument(java.lang.String url,
                                     java.lang.String public_id,
                                     java.lang.String system_id,
                                     java.lang.String internal_subset)
                              throws DocumentStore.DSException

storeNode

protected abstract int storeNode(int doc,
                                 int parent,
                                 java.lang.String name,
                                 short type,
                                 java.lang.String value)
                          throws DocumentStore.DSException

storeAttribute

protected abstract void storeAttribute(int node,
                                       java.lang.String name,
                                       java.lang.String value)
                                throws DocumentStore.DSException

retrieveDocument

protected abstract DocumentStore._Document retrieveDocument(java.lang.String url)
                                                     throws DocumentStore.DSException

retrieveAttributes

protected abstract DocumentStore._Attribute[] retrieveAttributes(int idn)
                                                          throws DocumentStore.DSException

retrieveChildNodes

protected abstract DocumentStore._Node[] retrieveChildNodes(int idd,
                                                            int parent)
                                                     throws DocumentStore.DSException

main

public static void main(java.lang.String[] args)