edu.stanford.nlp.objectbank
Class ObjectBank.PathToFileFunction

java.lang.Object
  extended by edu.stanford.nlp.objectbank.ObjectBank.PathToFileFunction
All Implemented Interfaces:
Function<java.lang.String,java.io.File>
Enclosing class:
ObjectBank<E>

public static class ObjectBank.PathToFileFunction
extends java.lang.Object
implements Function<java.lang.String,java.io.File>

This is handy for having getLineIterator return a collection of files for feeding into another ObjectBank.


Constructor Summary
ObjectBank.PathToFileFunction()
           
 
Method Summary
 java.io.File apply(java.lang.String str)
          Converts a T1 to a different T2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectBank.PathToFileFunction

public ObjectBank.PathToFileFunction()
Method Detail

apply

public java.io.File apply(java.lang.String str)
Description copied from interface: Function
Converts a T1 to a different T2. For example, a Parser will convert a Sentence to a Tree. A Tagger will convert a Sentence to a TaggedSentence.

Specified by:
apply in interface Function<java.lang.String,java.io.File>
Parameters:
str - The function's argument
Returns:
The function's evaluated value


Stanford NLP Group