|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--disciple.core.Repository
|
+--disciple.core.DefaultRepository
| Field Summary |
| Fields inherited from class disciple.core.Repository |
controller_ |
| Constructor Summary | |
DefaultRepository()
|
|
| Method Summary | |
void |
addAttributeListener(AttributeListener listener)
Adds an attributer listener to listen for changes to all attributes of all nodes. |
void |
addAttributeListener(org.w3c.dom.Element node,
AttributeListener listener)
Adds an attributer listener to listen for changes to all attributes of only one specific node. |
void |
addDocumentListener(DocumentListener listener)
|
void |
addElementListener(ElementListener listener)
|
void |
addNode(Path path,
org.w3c.dom.Node node)
Adds an element as a child of the node pointed by path |
org.w3c.dom.Document |
getDocument(java.lang.String name)
Gets a document from the repository |
java.util.Hashtable |
getDocuments()
Gets all documents from the repository |
org.w3c.dom.Node |
getNode(Path path)
Returns the element pointed by path |
boolean |
isEmpty()
|
int |
numOfDocs()
|
void |
removeAttribute(Path path,
java.lang.String attribute)
Removes an attribute from the element pointed by path |
void |
removeAttributeListener(AttributeListener listener)
|
void |
removeAttributeListener(org.w3c.dom.Element model,
AttributeListener listener)
|
void |
removeDocument(java.lang.String name)
Removes a document from the repository |
void |
removeDocumentListener(DocumentListener listener)
|
void |
removeElementListener(ElementListener listener)
|
void |
removeNode(org.w3c.dom.Node node)
Removes an element from the repository |
void |
setAttribute(Path path,
java.lang.String attribute,
java.lang.String value)
Sets an attribute to the element pointed by path |
void |
setDocument(java.lang.String name,
org.w3c.dom.Document document)
|
void |
setNodeValue(org.w3c.dom.Node node,
java.lang.String value)
Sets the node value of the given node |
void |
setNodeValue(Path path,
java.lang.String value)
Sets the node value of the element pointed by path |
| Methods inherited from class disciple.core.Repository |
getController, setController |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultRepository()
| Method Detail |
public org.w3c.dom.Document getDocument(java.lang.String name)
getDocument in class Repositoryname - of the document
public java.util.Hashtable getDocuments()
public void setDocument(java.lang.String name,
org.w3c.dom.Document document)
setDocument in class Repositoryname - - the name of the documentdocument - - the document to be insertedpublic void removeDocument(java.lang.String name)
removeDocument in class Repositoryname - - name of the document
public void addNode(Path path,
org.w3c.dom.Node node)
addNode in class Repositorypath - - path pointing to the elementpublic void removeNode(org.w3c.dom.Node node)
removeNode in class Repository
public void setAttribute(Path path,
java.lang.String attribute,
java.lang.String value)
setAttribute in class Repositorypath - - path pointing to the elementattribute - - name of the attributevalue - - value of the attribute
public void removeAttribute(Path path,
java.lang.String attribute)
removeAttribute in class Repositorypath - - path pointing to the elementattribute - - attribute to be removed
public void setNodeValue(Path path,
java.lang.String value)
setNodeValue in class Repositorypath - - path pointing to the elementvalue - - value of the node
public void setNodeValue(org.w3c.dom.Node node,
java.lang.String value)
setNodeValue in class Repositorynode - the nodevalue - - value of the nodepublic org.w3c.dom.Node getNode(Path path)
getNode in class Repositorypath - - path of the element
public void addDocumentListener(DocumentListener listener)
addDocumentListener in class Repositorylistener - public void addElementListener(ElementListener listener)
addElementListener in class Repositorylistener - public void addAttributeListener(AttributeListener listener)
addAttributeListener in class Repositorylistener - the listener object
public void addAttributeListener(org.w3c.dom.Element node,
AttributeListener listener)
addAttributeListener in class Repositorynode - the parent node of the attributeslistener - the listener objectpublic void removeDocumentListener(DocumentListener listener)
removeDocumentListener in class Repositorylistener - public void removeElementListener(ElementListener listener)
removeElementListener in class Repositorylistener - public void removeAttributeListener(AttributeListener listener)
removeAttributeListener in class Repositorylistener -
public void removeAttributeListener(org.w3c.dom.Element model,
AttributeListener listener)
removeAttributeListener in class Repositorylistener - public boolean isEmpty()
isEmpty in class Repositorypublic int numOfDocs()
numOfDocs in class Repository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||