|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.util.xom.AbstractType<T>
T - The type.public class AbstractType<T extends AbstractType<T>>
A type with importance.
| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
protected |
AbstractType(String name,
double importance)
Creates a type. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String name
protected double importance
| Constructor Detail |
|---|
protected AbstractType(String name,
double importance)
name - The name.importance - The importance.| Method Detail |
|---|
public String getName()
public String getCssName()
public void setName(String name)
name - The new name.public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int compareTo(T o)
compareTo in interface Comparable<T extends AbstractType<T>>public T max(T obj)
obj - The comparing status.
public String asString()
IPresentation
asString in interface IPresentationpublic nu.xom.Node asNode()
IPresentation
asNode in interface IPresentation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||