T - The type.public class AbstractType<T extends AbstractType<T>> extends Object implements Comparable<T>, IPresentation
| Modifier and Type | Field and Description |
|---|---|
protected double |
importance
Its priority, for example, ASSERTION has higher priority than ACTION,
which has higher priority than UNDEF.
|
protected String |
name
The type name.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractType(String name,
double importance)
Creates a type.
|
| Modifier and Type | Method and Description |
|---|---|
nu.xom.Node |
asNode()
The object representation as node.
|
String |
asString()
The object representation as string.
|
int |
compareTo(T o) |
boolean |
equals(Object obj) |
String |
getCssName()
The CSS which represents the type.
|
String |
getName()
The type name.
|
int |
hashCode() |
T |
max(T obj)
Compares the status with another returning the most significant.
|
void |
setName(String name)
Set the name.
|
protected String name
protected double importance
protected AbstractType(String name, double importance)
name - The name.importance - The importance.public String getName()
public String getCssName()
public void setName(String name)
name - The new name.public int compareTo(T o)
compareTo in interface Comparable<T extends AbstractType<T>>public T max(T obj)
obj - The comparing status.public String asString()
IPresentationasString in interface IPresentationpublic nu.xom.Node asNode()
IPresentationasNode in interface IPresentationCopyright © 2016. All rights reserved.