pla.data
Class NodeThing
java.lang.Object
pla.data.NamedThing
pla.data.NodeThing
- All Implemented Interfaces:
- Comparable
- Direct Known Subclasses:
- Occurrence, Rule
public abstract class NodeThing
- extends NamedThing
Note: This class has a natural ordering that is inconsistent with equals.
- Author:
- linda
NodeThing
protected NodeThing(String name,
int ID,
String longName)
getID
public int getID()
getLongName
public String getLongName()
- Obtain long name of node thing. Will never return NULL.
- Returns:
- String containing long name of node thing
isSelected
public boolean isSelected()
setSelected
public void setSelected(boolean selected)
isShowLongName
public static boolean isShowLongName()
setShowLongName
public static void setShowLongName(boolean showLongName)
compareTo
public int compareTo(Object o)
- Specified by:
compareTo in interface Comparable- Overrides:
compareTo in class NamedThing
toString
public String toString()
- Overrides:
toString in class NamedThing
equals
public boolean equals(Object o)
- Overrides:
equals in class NamedThing
hashCode
public int hashCode()
- Overrides:
hashCode in class NamedThing