gov.sandia.cognition.text.document
Class AbstractField

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.util.AbstractNamed
          extended by gov.sandia.cognition.text.document.AbstractField
All Implemented Interfaces:
Field, Textual, CloneableSerializable, Named, Serializable, Cloneable
Direct Known Subclasses:
DefaultDateField, DefaultTextField

public abstract class AbstractField
extends AbstractNamed
implements Field

An abstract implementation of the Field interface.

Since:
3.0
Author:
Justin Basilico
See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.sandia.cognition.util.AbstractNamed
name
 
Constructor Summary
AbstractField()
          Creates a new AbstractField.
AbstractField(String name)
          Creates a new AbstractField
 
Method Summary
 Reader readText()
          Gets a new reader for the content of the field.
 String toString()
          The standard implementation of toString returns the name of the Named Object.
 
Methods inherited from class gov.sandia.cognition.util.AbstractNamed
clone, getName, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.text.document.Field
getName, getText
 

Constructor Detail

AbstractField

public AbstractField()
Creates a new AbstractField.


AbstractField

public AbstractField(String name)
Creates a new AbstractField

Parameters:
name - The name of the field.
Method Detail

readText

public Reader readText()
Description copied from interface: Field
Gets a new reader for the content of the field.

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

toString

public String toString()
Description copied from class: AbstractNamed
The standard implementation of toString returns the name of the Named Object.

Overrides:
toString in class AbstractNamed
Returns:
The name of the Object.