Package it.unimi.di.big.mg4j.query
Class TextMarker
- java.lang.Object
-
- it.unimi.di.big.mg4j.query.TextMarker
-
-
Field Summary
Fields Modifier and Type Field Description StringendOfBlockThe ending marker for a block.StringendOfFieldThe ending marker for a series of blocks belonging to the same field.StringendOfMarkThe ending marker for a piece of block to be emphasized.static TextMarkerHTML_STRONGAn HTML marker showing the marked text in a strong element, surrounded by hellipsis (…) and terminated by a newline.StringstartOfBlockThe stating marker for a block.StringstartOfFieldThe starting marker for a series of blocks belonging to the same field.StringstartOfMarkThe starting marker for a piece of block to be emphasized.static TextMarkerTEXT_BOLDFACEA text marker showing the marked text in (ANSI) boldface, with blocks surrounded by "..." and terminated by a newline.static TextMarkerTEXT_STANDOUTA text marker showing the marked text in (ANSI) standout mode, with blocks surrounded by ".." and terminated by a newline.
-
Method Summary
Modifier and Type Method Description StringendOfBlock()Returns the ending delimiter of a block.StringendOfField()Returns the ending delimiter of a field.StringendOfMark()Returns the ending delimiter of a marked part.StringstartOfBlock()Returns the starting delimiter of a block.StringstartOfField()Returns the starting delimiter of a field.StringstartOfMark()Returns the starting delimiter of a marked part.
-
-
-
Field Detail
-
TEXT_STANDOUT
public static final TextMarker TEXT_STANDOUT
A text marker showing the marked text in (ANSI) standout mode, with blocks surrounded by ".." and terminated by a newline.
-
TEXT_BOLDFACE
public static final TextMarker TEXT_BOLDFACE
A text marker showing the marked text in (ANSI) boldface, with blocks surrounded by "..." and terminated by a newline.
-
HTML_STRONG
public static final TextMarker HTML_STRONG
An HTML marker showing the marked text in a strong element, surrounded by hellipsis (…) and terminated by a newline.
-
startOfMark
public final String startOfMark
The starting marker for a piece of block to be emphasized.
-
endOfMark
public final String endOfMark
The ending marker for a piece of block to be emphasized.
-
startOfBlock
public final String startOfBlock
The stating marker for a block.
-
endOfBlock
public final String endOfBlock
The ending marker for a block.
-
startOfField
public final String startOfField
The starting marker for a series of blocks belonging to the same field.
-
endOfField
public final String endOfField
The ending marker for a series of blocks belonging to the same field.
-
-
Constructor Detail
-
TextMarker
public TextMarker(String startOfMark, String endOfMark, String startOfBlock, String endOfBlock, String startOfField, String endOfField)
Creates a new text marker.- Parameters:
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
-
endOfBlock
public final String endOfBlock()
Description copied from interface:MarkerReturns the ending delimiter of a block.- Specified by:
endOfBlockin interfaceMarker- Returns:
- the ending delimiter of a block.
-
endOfField
public final String endOfField()
Description copied from interface:MarkerReturns the ending delimiter of a field.- Specified by:
endOfFieldin interfaceMarker- Returns:
- the ending delimiter of a field.
-
endOfMark
public final String endOfMark()
Description copied from interface:MarkerReturns the ending delimiter of a marked part.
-
startOfBlock
public final String startOfBlock()
Description copied from interface:MarkerReturns the starting delimiter of a block.- Specified by:
startOfBlockin interfaceMarker- Returns:
- the starting delimiter of a block.
-
startOfField
public final String startOfField()
Description copied from interface:MarkerReturns the starting delimiter of a field.- Specified by:
startOfFieldin interfaceMarker- Returns:
- the starting delimiter of a field.
-
startOfMark
public final String startOfMark()
Description copied from interface:MarkerReturns the starting delimiter of a marked part.- Specified by:
startOfMarkin interfaceMarker- Returns:
- the starting delimiter of a marked part.
-
-