|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DocumentController
Controller interface on the document model. You may change the model's topology
and the nodes' values only via this model facade.
There are three different types of possible modification:
Method Summary | |
---|---|
Node |
addAttribute(Node node,
java.lang.String name,
java.lang.String value)
Modifies the content of the attribute of a node. |
Node |
clearAttributes(Node node)
Removes all attributes from a node, so the getAttributes method will return null or an empty attributes set. |
Node |
create(java.lang.String url,
java.lang.String name)
Creates a new node without adding it to the document's topology. |
Node |
insert(Node newNode,
Node nextNode,
Node parent)
Inserts a node into the list of children of another node. |
Node |
remove(Node node)
Removes this node as the child of its current parent. |
Node |
removeAttribute(Node node,
java.lang.String name)
Removes an attribute from a node. |
Node |
resolve(Node node)
Resolves a node of the document model to the reference of this very node that is the least recent. |
Node |
setAttributes(Node node,
org.xml.sax.Attributes attrs)
Overrides all attributes of a node with new values |
Node |
setValue(Node node,
java.lang.String value)
Modifies the content of a node. |
Methods inherited from interface com.ibm.portal.state.dom.DocumentModel |
---|
getAttributes, getChildren, getParent, getRoot, hasAttributes, hasChildren |
Methods inherited from interface com.ibm.portal.Disposable |
---|
dispose |
Method Detail |
---|
Node setValue(Node node, java.lang.String value)
node
- Node from this model (must not be null)value
- new value (may be null)
Node addAttribute(Node node, java.lang.String name, java.lang.String value)
node
- Node from this model (must not be null)name
- name of the attribute to addvalue
- new value (may be null)
Node setAttributes(Node node, org.xml.sax.Attributes attrs)
node
- node to overwrite the parameters ofattrs
- new set of parameters (may be null)
Node create(java.lang.String url, java.lang.String name)
url
- Namespace URI of the nodename
- Name of the node (must not be null)
Node insert(Node newNode, Node nextNode, Node parent)
newNode
- Node to be inserted (must not be null)nextNode
- Node that will be shifted by one position to the right (i.e. the new
node will be inserted before nextNode. If nextNode is null then the new node will
be inserted as the last element of the child list.parent
- Node that acts as the NEW parent. The nextNode must already be
a child of this new parent (if it is not null). The parent itself must not be null.
Node remove(Node node)
node
- Node to be removed (must not be null)
Node removeAttribute(Node node, java.lang.String name)
node
- node to remove the attribute fromname
- Attribute name to be removed (must not be null)
Node clearAttributes(Node node)
node
- node to remove the attributes from (must not be null)
Node resolve(Node node)
node
- node to be resolved
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |