ch.uzh.ifi.attempto.base
Interface NextTokenOptions

All Known Implementing Classes:
CPNextTokenOptions, SimpleNextTokenOptions

public interface NextTokenOptions

This class represents a set of options that describe how a partial text can be continued according. The possible next tokens are represented in an abstract way (on the basis of abstract options) and also in a concrete way (on the basis of concrete options).

Author:
Tobias Kuhn
See Also:
AbstractOption, ConcreteOption

Method Summary
 boolean containsCategory(java.lang.String categoryName)
          Returns true if the specifed category represents a possible next token.
 boolean containsToken(java.lang.String token)
          Returns true if the specified token is a possible next token.
 java.util.Set<? extends AbstractOption> getAbstractOptions()
          Returns the abstract options.
 java.util.Set<? extends ConcreteOption> getConcreteOptions()
          Returns the concrete options.
 

Method Detail

getAbstractOptions

java.util.Set<? extends AbstractOption> getAbstractOptions()
Returns the abstract options.

Returns:
The set of abstract options.

getConcreteOptions

java.util.Set<? extends ConcreteOption> getConcreteOptions()
Returns the concrete options.

Returns:
The set of concrete options.

containsToken

boolean containsToken(java.lang.String token)
Returns true if the specified token is a possible next token.

Parameters:
token - The token text.
Returns:
true if it is a possible next token.

containsCategory

boolean containsCategory(java.lang.String categoryName)
Returns true if the specifed category represents a possible next token.

Parameters:
categoryName - The name of the category.
Returns:
true if it represents a possible next token.


Copyright 2008-2012, AceWiki developers