RSE
Release 1.0

org.eclipse.rse.persistence.dom
Class RSEDOMNode

java.lang.Object
  extended byorg.eclipse.rse.persistence.dom.RSEDOMNode
All Implemented Interfaces:
IRSEDOMConstants, Serializable
Direct Known Subclasses:
RSEDOM

public class RSEDOMNode
extends Object
implements IRSEDOMConstants, Serializable

See Also:
Serialized Form

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
           
 
Fields inherited from interface org.eclipse.rse.persistence.dom.IRSEDOMConstants
ATTRIBUTE_DAEMON_PORT, ATTRIBUTE_DEFAULT, ATTRIBUTE_DEFAULT_PRIVATE, ATTRIBUTE_DELETABLE, ATTRIBUTE_DESCRIPTION, ATTRIBUTE_FALSE, ATTRIBUTE_GROUP, ATTRIBUTE_HIDDEN, ATTRIBUTE_HOSTNAME, ATTRIBUTE_ID, ATTRIBUTE_IS_ACTIVE, ATTRIBUTE_NAME, ATTRIBUTE_NON_CHANGEABLE, ATTRIBUTE_NON_DELETABLE, ATTRIBUTE_NON_RENAMABLE, ATTRIBUTE_OFFLINE, ATTRIBUTE_OWNING_PARENT_NAME, ATTRIBUTE_PORT, ATTRIBUTE_PROMPTABLE, ATTRIBUTE_REF_ID, ATTRIBUTE_RELATIVE_ORDER, ATTRIBUTE_RELEASE, ATTRIBUTE_RESTRICTED_TYPES, ATTRIBUTE_REXEC_PORT, ATTRIBUTE_SERVER_PATH, ATTRIBUTE_SERVER_SCRIPT, ATTRIBUTE_SINGLE_FILTER_STRING_ONLY, ATTRIBUTE_STRING, ATTRIBUTE_STRING_CASE_SENSITIVE, ATTRIBUTE_STRINGS_NON_CHANGABLE, ATTRIBUTE_SUPPORTS_DUPLICATE_FILTER_STRINGS, ATTRIBUTE_SUPPORTS_NESTED_FILTERS, ATTRIBUTE_TRUE, ATTRIBUTE_TYPE, ATTRIBUTE_USE_SSL, ATTRIBUTE_VALUE, TYPE_CONNECTOR_SERVICE, TYPE_FILTER, TYPE_FILTER_POOL, TYPE_FILTER_POOL_REFERENCE, TYPE_FILTER_STRING, TYPE_HOST, TYPE_PROFILE, TYPE_PROPERTY, TYPE_PROPERTY_SET, TYPE_SERVER_LAUNCHER, TYPE_SUBSYSTEM
 
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)
          Returns the first attribute found that has the specified key
 RSEDOMNodeAttribute[] getAttributes()
          Returns all the attributes for this node
 RSEDOMNode getChild(String type, String name)
          Returns the first immediate child of this node that is of the specified type and name
 RSEDOMNode[] getChildren()
          Returns all the children of this node
 RSEDOMNode[] getChildren(String type)
          Returns the immediate children of this node that are of the specified type
 String getName()
          Returns the name of this node
 RSEDOMNode getParent()
          Returns the parent of this node
 String getType()
          Returns the type of this node
 boolean isDirty()
           
 void markForSave()
          Propagate needs save indicator up to the root
 void markUpdated()
           
 void removeChild(RSEDOMNode child)
          Removes a child from this node
 void setDirty(boolean isDirty)
           
 void setRestoring(boolean restoring)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_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
Constructor Detail

RSEDOMNode

public RSEDOMNode(RSEDOMNode parent,
                  String type,
                  String name)
Method Detail

markUpdated

public void markUpdated()

markForSave

public void markForSave()
Propagate 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

Returns:

getType

public String getType()
Returns the type of this node

Returns:

getParent

public RSEDOMNode getParent()
Returns the parent of this node

Returns:

getChildren

public RSEDOMNode[] getChildren()
Returns all the children of this node

Returns:

getAttribute

public RSEDOMNodeAttribute getAttribute(String key)
Returns the first attribute found that has the specified key

Parameters:
key -
Returns:

getChildren

public RSEDOMNode[] getChildren(String type)
Returns the immediate children of this node that are of the specified type

Parameters:
type -
Returns:

getChild

public RSEDOMNode getChild(String type,
                           String name)
Returns the first immediate child of this node that is of the specified type and name

Parameters:
type -
name -
Returns:

getAttributes

public RSEDOMNodeAttribute[] getAttributes()
Returns all the attributes for this node

Returns:

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)

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.