it.unimi.di.mg4j.query
Interface Marker

All Known Implementing Classes:
TextMarker

public interface Marker

A strategy for marking words.

When showing snippets to the user, it is necessary to highlight intervals, and to mark the start and the end of an excerpt. The first effect is usually some kind of highlighting or boldfacing, the second an ellipsis or similar punctuation. This class allows to create interchangeable markers for different purposes or kind of text (e.g., TextMarker.TEXT_STANDOUT, TextMarker.HTML_STRONG, and so on).


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.
 

Method Detail

startOfMark

String startOfMark()
Returns the starting delimiter of a marked part.

Returns:
the starting delimiter of a marked part.

endOfMark

String endOfMark()
Returns the ending delimiter of a marked part.

Returns:
the ending delimiter of a marked part.

startOfBlock

String startOfBlock()
Returns the starting delimiter of a block.

Returns:
the starting delimiter of a block.

endOfBlock

String endOfBlock()
Returns the ending delimiter of a block.

Returns:
the ending delimiter of a block.

startOfField

String startOfField()
Returns the starting delimiter of a field.

Returns:
the starting delimiter of a field.

endOfField

String endOfField()
Returns the ending delimiter of a field.

Returns:
the ending delimiter of a field.