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

java.lang.Object
  extended by java.util.Observable
      extended by cz.zcu.fav.kiv.editor.beans.common.GeneralElement
          extended by cz.zcu.fav.kiv.editor.beans.common.ParentParameter
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
Parameter, Property

public class ParentParameter
extends GeneralElement
implements java.lang.Comparable

The ParentParameter class represents a parent common for all elements like Parameter or Property.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Field Summary
protected  boolean chosen
          The flag specifying whether the element is chosen or not
protected  java.lang.String description
          The description of the element
protected  int lineNumber
           
protected  java.lang.String purpose
          The purpose of the element
 
Fields inherited from class cz.zcu.fav.kiv.editor.beans.common.GeneralElement
name, node
 
Constructor Summary
ParentParameter()
          Initializes a newly created emptyParentParameter.
ParentParameter(java.lang.String name)
          Initializes a newly created emptyParentParameter with the specified name.
ParentParameter(java.lang.String name, int lineNumber)
           
 
Method Summary
 void clearValues()
          Clear values (sets default values) of the element and notifies its observers.
 int compareTo(java.lang.Object obj)
           
 java.lang.String getDescription()
           
 int getLineNumber()
           
 java.lang.String getPurpose()
           
 java.lang.Boolean isChosen()
           
 void setChosen()
          Choses the element - sets the flag chosen to true.
 void setChosen(java.lang.Boolean isChosen)
           
 void setDescription(java.lang.String description)
           
 void setPurpose(java.lang.String purpose)
           
 
Methods inherited from class cz.zcu.fav.kiv.editor.beans.common.GeneralElement
equals, getName, getNode, setName, setNode
 
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

description

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


purpose

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


chosen

protected boolean chosen
The flag specifying whether the element is chosen or not


lineNumber

protected int lineNumber
Constructor Detail

ParentParameter

public ParentParameter()
Initializes a newly created emptyParentParameter.


ParentParameter

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

Parameters:
name - a name of the element.

ParentParameter

public ParentParameter(java.lang.String name,
                       int lineNumber)
Method Detail

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getPurpose

public java.lang.String getPurpose()

setPurpose

public void setPurpose(java.lang.String purpose)

clearValues

public void clearValues()
Clear values (sets default values) of the element and notifies its observers.


isChosen

public java.lang.Boolean isChosen()

setChosen

public void setChosen(java.lang.Boolean isChosen)

setChosen

public void setChosen()
Choses the element - sets the flag chosen to true. At the same time notifies its observers.


compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

getLineNumber

public int getLineNumber()