gov.sandia.cognition.text.convert
Class AbstractMultiTextualConverter<InputType,OutputType extends Textual>

java.lang.Object
  extended by gov.sandia.cognition.util.AbstractCloneableSerializable
      extended by gov.sandia.cognition.text.convert.AbstractTextualConverter<InputType,OutputType>
          extended by gov.sandia.cognition.text.convert.AbstractMultiTextualConverter<InputType,OutputType>
Type Parameters:
InputType - The type of input that can be converted to a textual form.
OutputType - The type of textual output of the converter. Must implement the Textual interface.
All Implemented Interfaces:
DataConverter<InputType,Iterable<OutputType>>, Evaluator<InputType,Iterable<OutputType>>, MultiTextualConverter<InputType,OutputType>, TextualConverter<InputType,OutputType>, CloneableSerializable, Serializable, Cloneable
Direct Known Subclasses:
SingleToMultiTextualConverterAdapter

public abstract class AbstractMultiTextualConverter<InputType,OutputType extends Textual>
extends AbstractTextualConverter<InputType,OutputType>
implements MultiTextualConverter<InputType,OutputType>

An abstract implementation of the MultiTextualConverter interface.

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

Constructor Summary
AbstractMultiTextualConverter()
          Creates a new AbstractMultiTextualConverter.
 
Method Summary
 Iterable<OutputType> convert(InputType input)
          Convert the input object into zero or more textual objects.
 Iterable<OutputType> convertAll(Iterable<? extends InputType> inputs)
          Convert the given input objects into zero or more textual objects.
 
Methods inherited from class gov.sandia.cognition.util.AbstractCloneableSerializable
clone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.sandia.cognition.evaluator.Evaluator
evaluate
 

Constructor Detail

AbstractMultiTextualConverter

public AbstractMultiTextualConverter()
Creates a new AbstractMultiTextualConverter.

Method Detail

convert

public Iterable<OutputType> convert(InputType input)
Description copied from interface: MultiTextualConverter
Convert the input object into zero or more textual objects.

Specified by:
convert in interface MultiTextualConverter<InputType,OutputType extends Textual>
Parameters:
input - The input to convert.
Returns:
Zero or more textual objects.

convertAll

public Iterable<OutputType> convertAll(Iterable<? extends InputType> inputs)
Description copied from interface: TextualConverter
Convert the given input objects into zero or more textual objects. Typically the result is the concatenation of calls to the single convert methods.

Specified by:
convertAll in interface TextualConverter<InputType,OutputType extends Textual>
Parameters:
inputs - The inputs to convert.
Returns:
Zero or more textual objects.