Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.persistence.dom
Class RSEDOMNode

java.lang.Object
  extended by 
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

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

_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()
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)

RSE
Release 3.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire