|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.persistence.dom.RSEDOMNode
public class RSEDOMNode
Field Summary | |
---|---|
protected List |
_attributes
|
protected List |
_children
|
protected boolean |
_isDirty
|
protected String |
_name
|
protected boolean |
_needsSave
|
protected RSEDOMNode |
_parent
|
protected String |
_type
|
protected boolean |
restoring
|
Constructor Summary | |
---|---|
RSEDOMNode(RSEDOMNode parent,
String type,
String name)
|
Method Summary | |
---|---|
void |
addAttribute(String name,
String value)
Adds an attribute to the node |
void |
addAttribute(String name,
String value,
String type)
Adds an attribute to the node |
void |
addChild(RSEDOMNode child)
Adds a child to this node |
void |
clearAttributes()
Clears all attributes |
void |
clearChildren()
Recursively removes all the children from this node on down |
RSEDOMNodeAttribute |
getAttribute(String key)
|
RSEDOMNodeAttribute[] |
getAttributes()
|
RSEDOMNode |
getChild(String type,
String name)
|
RSEDOMNode[] |
getChildren()
|
RSEDOMNode[] |
getChildren(String type)
|
String |
getName()
|
RSEDOMNode |
getParent()
|
String |
getType()
|
boolean |
isDirty()
|
void |
markForSave()
Propagates the needs save indicator up to the root |
void |
markUpdated()
|
void |
removeChild(RSEDOMNode child)
Removes a child from this node |
void |
setDirty(boolean isDirty)
|
void |
setName(String name)
|
void |
setRestoring(boolean restoring)
|
void |
setType(String type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String _type
protected String _name
protected RSEDOMNode _parent
protected List _children
protected List _attributes
protected boolean _needsSave
protected boolean _isDirty
protected boolean restoring
Constructor Detail |
---|
public RSEDOMNode(RSEDOMNode parent, String type, String name)
Method Detail |
---|
public void markUpdated()
public void markForSave()
public void clearChildren()
public void clearAttributes()
public String getName()
public String getType()
public RSEDOMNode getParent()
public RSEDOMNode[] getChildren()
public RSEDOMNodeAttribute getAttribute(String key)
key
- the name of this attribute
public RSEDOMNode[] getChildren(String type)
type
-
public RSEDOMNode getChild(String type, String name)
type
- name
-
public RSEDOMNodeAttribute[] getAttributes()
public void addChild(RSEDOMNode child)
child
- public void removeChild(RSEDOMNode child)
child
- public void addAttribute(String name, String value, String type)
name
- value
- type
- public void addAttribute(String name, String value)
name
- value
- public boolean isDirty()
public void setDirty(boolean isDirty)
public void setRestoring(boolean restoring)
public void setName(String name)
public void setType(String type)
|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |