ch.uzh.ifi.attempto.base
Class SimpleConcreteOption

java.lang.Object
  extended by ch.uzh.ifi.attempto.base.SimpleConcreteOption
All Implemented Interfaces:
ConcreteOption

public class SimpleConcreteOption
extends java.lang.Object
implements ConcreteOption

This is a simple implementation of a concrete option.

Author:
Tobias Kuhn

Constructor Summary
SimpleConcreteOption(java.lang.String word)
          Creates a new concrete option for the given word, without a category.
SimpleConcreteOption(java.lang.String word, java.lang.String categoryName)
          Creates a new concrete option for the given word and category name.
 
Method Summary
 java.lang.String getCategoryName()
          Returns the name of the category of this concrete option, or null if there is no such category.
 java.lang.String getWord()
          Returns the word of this concrete option.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleConcreteOption

public SimpleConcreteOption(java.lang.String word,
                            java.lang.String categoryName)
Creates a new concrete option for the given word and category name.

Parameters:
word - The word.
categoryName - The category name.

SimpleConcreteOption

public SimpleConcreteOption(java.lang.String word)
Creates a new concrete option for the given word, without a category.

Parameters:
word - The word.
Method Detail

getWord

public java.lang.String getWord()
Description copied from interface: ConcreteOption
Returns the word of this concrete option.

Specified by:
getWord in interface ConcreteOption
Returns:
The word.

getCategoryName

public java.lang.String getCategoryName()
Description copied from interface: ConcreteOption
Returns the name of the category of this concrete option, or null if there is no such category.

Specified by:
getCategoryName in interface ConcreteOption
Returns:
The category name.


Copyright 2008-2012, AceWiki developers