ch.uzh.ifi.attempto.base
Class SimpleNextTokenOptions

java.lang.Object
  extended by ch.uzh.ifi.attempto.base.SimpleNextTokenOptions
All Implemented Interfaces:
NextTokenOptions

public class SimpleNextTokenOptions
extends java.lang.Object
implements NextTokenOptions

This is a simple implementation of NextTokenOptions.

Author:
Tobias Kuhn

Constructor Summary
SimpleNextTokenOptions(java.util.Set<ConcreteOption> cOptions)
          Creates a new object for the given concrete, without any abstract options.
SimpleNextTokenOptions(java.util.Set<ConcreteOption> cOptions, java.util.Set<AbstractOption> aOptions)
          Creates a new object for the given concrete and abstract options.
 
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<AbstractOption> getAbstractOptions()
          Returns the abstract options.
 java.util.Set<ConcreteOption> getConcreteOptions()
          Returns the concrete options.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleNextTokenOptions

public SimpleNextTokenOptions(java.util.Set<ConcreteOption> cOptions,
                              java.util.Set<AbstractOption> aOptions)
Creates a new object for the given concrete and abstract options.

Parameters:
cOptions - The concrete options.
aOptions - The abstract options.

SimpleNextTokenOptions

public SimpleNextTokenOptions(java.util.Set<ConcreteOption> cOptions)
Creates a new object for the given concrete, without any abstract options.

Parameters:
cOptions - The concrete options.
Method Detail

getAbstractOptions

public java.util.Set<AbstractOption> getAbstractOptions()
Description copied from interface: NextTokenOptions
Returns the abstract options.

Specified by:
getAbstractOptions in interface NextTokenOptions
Returns:
The set of abstract options.

getConcreteOptions

public java.util.Set<ConcreteOption> getConcreteOptions()
Description copied from interface: NextTokenOptions
Returns the concrete options.

Specified by:
getConcreteOptions in interface NextTokenOptions
Returns:
The set of concrete options.

containsToken

public boolean containsToken(java.lang.String token)
Description copied from interface: NextTokenOptions
Returns true if the specified token is a possible next token.

Specified by:
containsToken in interface NextTokenOptions
Parameters:
token - The token text.
Returns:
true if it is a possible next token.

containsCategory

public boolean containsCategory(java.lang.String categoryName)
Description copied from interface: NextTokenOptions
Returns true if the specifed category represents a possible next token.

Specified by:
containsCategory in interface NextTokenOptions
Parameters:
categoryName - The name of the category.
Returns:
true if it represents a possible next token.


Copyright 2008-2012, AceWiki developers