|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.labs.minion.IndexableString
public class IndexableString
A class that holds a string along with some information about any markup used in the string.
Nested Class Summary | |
---|---|
static class |
IndexableString.Type
|
Field Summary | |
---|---|
protected CustomAnalyzer |
canalyzer
The custom analyzer to use if this object is markup type CUSTOM |
protected IndexableString.Type |
markupType
The type of markup used in the string. |
protected java.lang.String |
value
The string to index. |
Constructor Summary | |
---|---|
IndexableString(java.lang.String value)
Create a new IndexableString from the parameter |
|
IndexableString(java.lang.String value,
CustomAnalyzer canalyzer)
Creates a new IndexableString from an existing string with a specified markup type and a specified analyzer. |
|
IndexableString(java.lang.String value,
IndexableString.Type markupType)
Create a new IndexableString from an existing string with a specified markup type |
Method Summary | |
---|---|
CustomAnalyzer |
getCustomAnalyzer()
Gets the CustomAnalyzer to use with this string |
IndexableString.Type |
getMarkupType()
Gets the markupType value. |
java.lang.String |
getValue()
Gets the value of the indexable string |
void |
setCustomAnalyzer(CustomAnalyzer canalyzer)
Sets the CustomAnalyzer to use with this string |
void |
setMarkupType(IndexableString.Type markupType)
Sets the markupType value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String value
protected IndexableString.Type markupType
protected CustomAnalyzer canalyzer
Constructor Detail |
---|
public IndexableString(java.lang.String value)
value
- a string that forms the basis for a new indexablestringpublic IndexableString(java.lang.String value, IndexableString.Type markupType)
value
- a string that forms the basis for a new IndexableStringmarkupType
- The markup type for the new IndexableString. Should be
one of Type.PLAIN or Type.HTMLpublic IndexableString(java.lang.String value, CustomAnalyzer canalyzer)
value
- a string that forms the basis for a new IndexableStringcanalyzer
- the class that will analyze the custom markup typeMethod Detail |
---|
public IndexableString.Type getMarkupType()
public void setMarkupType(IndexableString.Type markupType)
markupType
- The new markupType value.public java.lang.String getValue()
public CustomAnalyzer getCustomAnalyzer()
public void setCustomAnalyzer(CustomAnalyzer canalyzer)
canalyzer
- the CustomAnalyzer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |