|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.unimi.di.mg4j.query.TextMarker
public class TextMarker
A marker for text/HTML output.
This class has few instances, which are accessible by means of final static fields.
Field Summary | |
---|---|
String |
endOfBlock
The ending marker for a block. |
String |
endOfField
The ending marker for a series of blocks belonging to the same field. |
String |
endOfMark
The ending marker for a piece of block to be emphasized. |
static TextMarker |
HTML_STRONG
An HTML marker showing the marked text in a strong element, surrounded by hellipsis (…) and terminated by a newline. |
String |
startOfBlock
The stating marker for a block. |
String |
startOfField
The starting marker for a series of blocks belonging to the same field. |
String |
startOfMark
The starting marker for a piece of block to be emphasized. |
static TextMarker |
TEXT_BOLDFACE
A text marker showing the marked text in (ANSI) boldface, with blocks surrounded by "..." and terminated by a newline. |
static TextMarker |
TEXT_STANDOUT
A text marker showing the marked text in (ANSI) standout mode, with blocks surrounded by ".." and terminated by a newline. |
Constructor Summary | |
---|---|
TextMarker(String startOfMark,
String endOfMark,
String startOfBlock,
String endOfBlock,
String startOfField,
String endOfField)
Creates a new text marker. |
Method Summary | |
---|---|
String |
endOfBlock()
Returns the ending delimiter of a block. |
String |
endOfField()
Returns the ending delimiter of a field. |
String |
endOfMark()
Returns the ending delimiter of a marked part. |
String |
startOfBlock()
Returns the starting delimiter of a block. |
String |
startOfField()
Returns the starting delimiter of a field. |
String |
startOfMark()
Returns the starting delimiter of a marked part. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final TextMarker TEXT_STANDOUT
public static final TextMarker TEXT_BOLDFACE
public static final TextMarker HTML_STRONG
public final String startOfMark
public final String endOfMark
public final String startOfBlock
public final String endOfBlock
public final String startOfField
public final String endOfField
Constructor Detail |
---|
public TextMarker(String startOfMark, String endOfMark, String startOfBlock, String endOfBlock, String startOfField, String endOfField)
startOfMark
- the starting marker for a piece of block to be emphasized.endOfMark
- the ending marker for a piece of block to be emphasized.startOfBlock
- the stating marker for a block.endOfBlock
- the ending marker for a block.startOfField
- the starting marker for a series of blocks belonging to the same field.endOfField
- the ending marker for a series of blocks belonging to the same field.Method Detail |
---|
public final String endOfBlock()
Marker
endOfBlock
in interface Marker
public final String endOfField()
Marker
endOfField
in interface Marker
public final String endOfMark()
Marker
endOfMark
in interface Marker
public final String startOfBlock()
Marker
startOfBlock
in interface Marker
public final String startOfField()
Marker
startOfField
in interface Marker
public final String startOfMark()
Marker
startOfMark
in interface Marker
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |