edu.cs.ai.kreator.ui.cli.wordcompletion
Class Completion

java.lang.Object
  extended by edu.cs.ai.kreator.ui.cli.wordcompletion.Completion
All Implemented Interfaces:
java.lang.Comparable<Completion>
Direct Known Subclasses:
ConfigurationOptionCompletion, FileNameCompletion

public class Completion
extends java.lang.Object
implements java.lang.Comparable<Completion>


Field Summary
static org.apache.log4j.Logger LOG
           
 
Constructor Summary
Completion(java.lang.String completion, java.lang.String word, int offset)
           
 
Method Summary
 int compareTo(Completion o)
           
 java.lang.String getCompletion()
           
 int getEnd()
           
 int getOffset()
           
 java.lang.String getWord()
           
 boolean isComplete()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG
Constructor Detail

Completion

public Completion(java.lang.String completion,
                  java.lang.String word,
                  int offset)
Method Detail

getCompletion

public java.lang.String getCompletion()

getWord

public java.lang.String getWord()

getOffset

public int getOffset()

getEnd

public int getEnd()

isComplete

public boolean isComplete()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(Completion o)
Specified by:
compareTo in interface java.lang.Comparable<Completion>