|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infai.emo.matcher.Comparator
public abstract class Comparator
Abstract class for comparing two elements.
No comparative methods implemented! User must override Method compareTo.
Field Summary | |
---|---|
private java.lang.String |
name
The name of the comparator |
Constructor Summary | |
---|---|
Comparator()
Constructor that initializes the comparator. |
Method Summary | |
---|---|
abstract double |
compareTo(org.eclipse.emf.ecore.EObject leftElement,
org.eclipse.emf.ecore.EObject rightElement)
Method for comparing two elements. |
java.lang.String |
getName()
|
void |
setName(java.lang.String name)
Assign explicitly a name to the comparator. |
java.lang.String |
toString()
Prints out the name of the comparator for identifying its type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
Constructor Detail |
---|
public Comparator()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name for the comparator.public java.lang.String toString()
toString
in class java.lang.Object
public abstract double compareTo(org.eclipse.emf.ecore.EObject leftElement, org.eclipse.emf.ecore.EObject rightElement)
leftElement
- the first element to compare with the second one.rightElement
- the second element to compare with the first one.
EObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |