@Entity
@Indexed
@AnalyzerDef(name="customanalyzer",
tokenizer=@TokenizerDef(factory=org.apache.solr.analysis.WhitespaceTokenizerFactory.class),
filters=@TokenFilterDef(factory=org.apache.solr.analysis.LowerCaseFilterFactory.class))
@Analyzer(definition="customanalyzer")
public class Sentence
extends Suggestion
ENTITY, PARAGRAPH, SENTENCE| Constructor and Description |
|---|
Sentence()
Default constructor
|
Sentence(int parentOrder,
java.lang.String content)
Constructor to initialize object for storing in database
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContent()
Get content of the Sentence object.
|
int |
getParagraphID()
Get paragraph ID of the Sentence object.
|
int |
getParentOrder()
Get parent order of the Sentence object.
|
void |
setContent(java.lang.String content)
Set content of the Sentence object.
|
void |
setParagraphID(int paragraphID)
Set paragraph ID of the Sentence object.
|
void |
setParentOrder(int parentOrder)
Set parent order of the Sentence object.
|
java.lang.String |
toString() |
public Sentence()
public Sentence(int parentOrder,
java.lang.String content)
public int getParagraphID()
public void setParagraphID(int paragraphID)
paragraphID - paragraph ID of the object.public int getParentOrder()
public void setParentOrder(int parentOrder)
parentOrder - parent order of the object.public java.lang.String getContent()
getContent in class Suggestionpublic void setContent(java.lang.String content)
content - content of the object.public java.lang.String toString()
toString in class java.lang.Object