cz.zcu.fav.kiv.editor.beans.common
Class GeneralElement

java.lang.Object
  extended by java.util.Observable
      extended by cz.zcu.fav.kiv.editor.beans.common.GeneralElement
Direct Known Subclasses:
Attribute, ParentParameter

public class GeneralElement
extends java.util.Observable

The GeneralElement class represents a parent common for all elements like Parameter, Property or Attribute.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Field Summary
protected  java.lang.String name
          The name of the element
protected  org.w3c.dom.Node node
          The node associated with the element
 
Constructor Summary
GeneralElement()
          Initializes a newly created emptyGeneralElement.
GeneralElement(java.lang.String name)
          Initializes a newly created emptyGeneralElement with the specified name.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
           
 org.w3c.dom.Node getNode()
           
 void setName(java.lang.String name)
           
 void setNode(org.w3c.dom.Node node)
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The name of the element


node

protected org.w3c.dom.Node node
The node associated with the element

Constructor Detail

GeneralElement

public GeneralElement()
Initializes a newly created emptyGeneralElement.


GeneralElement

public GeneralElement(java.lang.String name)
Initializes a newly created emptyGeneralElement with the specified name. The name argument is the name of the element.

Parameters:
name - a name of the element.
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getNode

public org.w3c.dom.Node getNode()

setNode

public void setNode(org.w3c.dom.Node node)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object