org.eclipse.rse.persistence.dom
Class RSEDOMNode
java.lang.Object
org.eclipse.rse.persistence.dom.RSEDOMNode
-
All Implemented Interfaces:
-
Serializable
-
Direct Known Subclasses:
-
RSEDOM
-
public class RSEDOMNode
- extends
Object
- implements
Serializable
-
See Also:
-
Serialized Form
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
_type
protected
String _type
_name
protected
String _name
_parent
protected
RSEDOMNode _parent
_children
protected
List _children
_attributes
protected
List _attributes
_needsSave
protected boolean _needsSave
_isDirty
protected boolean _isDirty
restoring
protected boolean restoring
RSEDOMNode
public RSEDOMNode(
RSEDOMNode parent,
String type,
String name)
markUpdated
public void markUpdated()
-
-
markForSave
public void markForSave()
- Propagates the needs save indicator up to the root
-
-
clearChildren
public void clearChildren()
- Recursively removes all the children from this node on down
-
-
clearAttributes
public void clearAttributes()
- Clears all attributes
-
-
getName
public
String getName()
-
-
-
Returns:
- the name of this node
getType
public
String getType()
-
-
-
Returns:
- the type of this node
getParent
public
RSEDOMNode getParent()
-
-
-
Returns:
- the parent of this node
getChildren
public
RSEDOMNode[] getChildren()
-
-
-
Returns:
- all the children of this node
getAttribute
public
RSEDOMNodeAttribute getAttribute(
String key)
-
-
-
Parameters:
-
key
- the name of this attribute
-
Returns:
- the first attribute found that has the specified name
getChildren
public
RSEDOMNode[] getChildren(
String type)
-
-
-
Parameters:
-
type
-
-
Returns:
- the immediate children of this node that are of the specified type
getChild
public
RSEDOMNode getChild(
String type,
String name)
-
-
-
Parameters:
-
type
- -
name
-
-
Returns:
- the first immediate child of this node that is of the specified type and name
getAttributes
public
RSEDOMNodeAttribute[] getAttributes()
-
-
-
Returns:
- all the attributes for this node
addChild
public void addChild(
RSEDOMNode child)
- Adds a child to this node
-
-
-
Parameters:
-
child
-
removeChild
public void removeChild(
RSEDOMNode child)
- Removes a child from this node
-
-
-
Parameters:
-
child
-
addAttribute
public void addAttribute(
String name,
String value,
String type)
- Adds an attribute to the node
-
-
-
Parameters:
-
name
- -
value
- -
type
-
addAttribute
public void addAttribute(
String name,
String value)
- Adds an attribute to the node
-
-
-
Parameters:
-
name
- -
value
-
isDirty
public boolean isDirty()
-
-
setDirty
public void setDirty(boolean isDirty)
-
-
setRestoring
public void setRestoring(boolean restoring)
-
-
setName
public void setName(
String name)
-
-
setType
public void setType(
String type)
-
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.