public class Fragment extends Object
Constructor and Description |
---|
Fragment()
Creates a empty split element
|
Fragment(String aWord)
Creates a split element with a word but no linking morpheme
|
Fragment(String aWord,
String aMorpheme)
Creates a split element with a word and a linking morpheme
|
Modifier and Type | Method and Description |
---|---|
static Fragment |
createFromString(String aElement)
Creates a split element from string.
|
boolean |
equals(Object obj) |
String |
getMorpheme()
Returns the linking morpheme of the split element
|
String |
getWord()
Returns the word of the split element
|
String |
getWordWithMorpheme() |
int |
hashCode() |
boolean |
hasMorpheme()
Checks if this element has an morpheme
|
void |
setMorpheme(String aMorpheme)
Sets the linking morpheme of the split element
|
void |
setSplitAgain(boolean aSplitAgain)
Set the splitAgain variable
|
void |
setWord(String aWord)
Sets the word of the split element
|
boolean |
shouldSplitAgain()
Checks if this split element should be split again by the algorithm.
|
String |
toString() |
String |
toStringWithoutMorpheme()
Similar to the toString method, but combines morpheme and word
|
public Fragment()
public Fragment(String aWord)
public static Fragment createFromString(String aElement)
public String getWord()
public String getWordWithMorpheme()
public void setWord(String aWord)
public String getMorpheme()
public boolean hasMorpheme()
public void setMorpheme(String aMorpheme)
public String toStringWithoutMorpheme()
public boolean shouldSplitAgain()
public void setSplitAgain(boolean aSplitAgain)
Copyright © 2011–2015. All rights reserved.