public class HitField extends Object
Constructor and Description |
---|
HitField(String f,
String c) |
HitField(String f,
String c,
boolean cjk) |
HitField(String f,
String c,
boolean cjk,
boolean xmlProperty) |
HitField(String f,
XMLString c) |
HitField(String f,
XMLString c,
boolean cjk) |
Modifier and Type | Method and Description |
---|---|
String |
bareContent(boolean XMLQuote,
boolean inAttribute) |
String |
getContent() |
String |
getContent(String boldOpenTag,
String boldCloseTag,
String separatorTag) |
String |
getName() |
Object |
getOriginal()
Fetch the object which (the String representation of) this HitField was
built from.
|
String |
getRawContent() |
List<FieldPart> |
getTokenizedContent()
Get a list representation of the tokens in the content.
|
ListIterator<FieldPart> |
listIterator()
Return an iterator for the tokens, delimiters and markup elements
of the field.
|
void |
markDirty() |
String |
quotedContent(boolean inAttribute) |
String |
quotedContent(String boldOpenTag,
String boldCloseTag,
String separatorTag,
boolean inAttribute)
Returns the content of this field, using the arguments as bolding tags, as an XML string
|
void |
setOriginal(Object original)
Optionally set the object which this HitField should represent.
|
void |
setTokenizedContent(List<FieldPart> list)
Only FieldPart objects must be present in the list.
|
ListIterator<FieldPart> |
tokenIterator()
Return an iterator for the tokens in the field
|
String |
toString() |
public HitField(String f, XMLString c)
f
- The field namec
- The field contentpublic HitField(String f, String c, boolean cjk)
f
- The field namec
- The field contentcjk
- true if this is a cjk-documentpublic HitField(String f, XMLString c, boolean cjk)
f
- The field namec
- The field contentcjk
- true if this is a cjk-documentpublic String getName()
public String getRawContent()
public List<FieldPart> getTokenizedContent()
public ListIterator<FieldPart> listIterator()
public ListIterator<FieldPart> tokenIterator()
public void setTokenizedContent(List<FieldPart> list)
list
- contains the new content of this HitField in tokenized form.public String getContent()
public String getContent(String boldOpenTag, String boldCloseTag, String separatorTag)
public void markDirty()
public String quotedContent(boolean inAttribute)
inAttribute
- whether to quote quotation markspublic String quotedContent(String boldOpenTag, String boldCloseTag, String separatorTag, boolean inAttribute)
public String bareContent(boolean XMLQuote, boolean inAttribute)
public Object getOriginal()
public void setOriginal(Object original)
Copyright © 2018. All rights reserved.