|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--disciple.core.Repository
Copyright (c) 2002 Rutgers, The State University of New Jersey
| Field Summary | |
protected Controller |
controller_
|
| Constructor Summary | |
Repository()
|
|
| 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 model,
AttributeListener listener)
|
void |
addDocumentListener(DocumentListener listener)
|
void |
addElementListener(ElementListener listener)
|
void |
addNode(Path path,
org.w3c.dom.Node node)
|
Controller |
getController()
|
org.w3c.dom.Document |
getDocument(java.lang.String name)
|
org.w3c.dom.Node |
getNode(Path path)
Returns the element pointed by path |
abstract boolean |
isEmpty()
|
abstract 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)
|
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 |
setController(Controller controller)
|
void |
setDocument(java.lang.String name,
org.w3c.dom.Document document)
|
abstract void |
setNodeValue(org.w3c.dom.Node node,
java.lang.String value)
Sets the node value of the given node |
abstract void |
setNodeValue(Path path,
java.lang.String value)
Sets the node value of the element pointed by path |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Controller controller_
| Constructor Detail |
public Repository()
| Method Detail |
public org.w3c.dom.Document getDocument(java.lang.String name)
name -
public void setDocument(java.lang.String name,
org.w3c.dom.Document document)
name - document - public void removeDocument(java.lang.String name)
name -
public void addNode(Path path,
org.w3c.dom.Node node)
public void removeNode(org.w3c.dom.Node node)
public void setAttribute(Path path,
java.lang.String attribute,
java.lang.String value)
path - - path pointing to the elementattribute - - name of the attributevalue - - value of the attribute
public void removeAttribute(Path path,
java.lang.String attribute)
path - - path pointing to the elementattribute - - attribute to be removed
public abstract void setNodeValue(Path path,
java.lang.String value)
path - - path pointing to the elementvalue - - value of the node
public abstract void setNodeValue(org.w3c.dom.Node node,
java.lang.String value)
node - the nodevalue - - value of the nodepublic org.w3c.dom.Node getNode(Path path)
path - - path of the element
public void addDocumentListener(DocumentListener listener)
listener - public void addElementListener(ElementListener listener)
listener - public void addAttributeListener(AttributeListener listener)
listener - the listener object
public void addAttributeListener(org.w3c.dom.Element model,
AttributeListener listener)
model - listener - public void removeDocumentListener(DocumentListener listener)
listener - public void removeElementListener(ElementListener listener)
listener - public void removeAttributeListener(AttributeListener listener)
listener -
public void removeAttributeListener(org.w3c.dom.Element model,
AttributeListener listener)
listener - public abstract boolean isEmpty()
public abstract int numOfDocs()
public Controller getController()
getController in interface Servicepublic void setController(Controller controller)
setController in interface Servicecontroller -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||