public class ParentParameter extends GeneralElement implements java.lang.Comparable
ParentParameter
class represents a parent common for all elements like
Parameter
or Property
.Modifier and Type | Field and Description |
---|---|
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
|
name, node
Constructor and Description |
---|
ParentParameter()
Initializes a newly created empty
ParentParameter . |
ParentParameter(java.lang.String name)
Initializes a newly created empty
ParentParameter with the specified name. |
ParentParameter(java.lang.String name,
int lineNumber) |
Modifier and Type | Method and Description |
---|---|
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) |
equals, getName, getNode, setName, setNode
protected java.lang.String description
protected java.lang.String purpose
protected boolean chosen
protected int lineNumber
public ParentParameter()
ParentParameter
.public ParentParameter(java.lang.String name)
ParentParameter
with the specified name. The
name
argument is the name of the element.name
- a name of the element.public ParentParameter(java.lang.String name, int lineNumber)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.String getPurpose()
public void setPurpose(java.lang.String purpose)
public void clearValues()
public java.lang.Boolean isChosen()
public void setChosen(java.lang.Boolean isChosen)
public void setChosen()
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public int getLineNumber()