gov.sandia.cognition.text.document
Interface Field

All Superinterfaces:
Textual
All Known Implementing Classes:
AbstractField, DefaultDateField, DefaultTextField

public interface Field
extends Textual

Defines the interface for a field in the document. A field has a name plus some textual content.

Since:
3.0
Author:
Justin Basilico

Method Summary
 String getName()
          Gets the name of the field.
 String getText()
          Gets the full text of the field.
 Reader readText()
          Gets a new reader for the content of the field.
 

Method Detail

getName

String getName()
Gets the name of the field.

Returns:
The name of the field.

readText

Reader readText()
Gets a new reader for the content of the field.

Specified by:
readText in interface Textual
Returns:
A new reader for the content of the field.

getText

String getText()
Gets the full text of the field.

Specified by:
getText in interface Textual
Returns:
The full text of the field.