org.hyphenType.input
Class UserInput

java.lang.Object
  extended by org.hyphenType.input.UserInput
Direct Known Subclasses:
StandardUserInput, UnitTestingUserInput

public abstract class UserInput
extends Object

Author:
Aurelio Akira M. Matsui

Constructor Summary
UserInput()
           
 
Method Summary
protected abstract  boolean isGraphicalUIAvailable()
           
protected abstract  boolean isTextUIAvailable()
           
<T> T[]
readArray(StructureArgument argument, String singleHyphen, String doubleHyphen)
           
protected abstract
<T> T
readFromGraphicalUI(Class<T> type, String message, String regex)
           
protected abstract
<T> T
readFromTextUI(Class<T> type, String message, String regex)
           
<T> T
readString(StructureArgument argument, String singleHyphen, String doubleHyphen)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserInput

public UserInput()
Method Detail

readArray

public <T> T[] readArray(StructureArgument argument,
                         String singleHyphen,
                         String doubleHyphen)
              throws UserInputException
Throws:
UserInputException

readString

public <T> T readString(StructureArgument argument,
                        String singleHyphen,
                        String doubleHyphen)
             throws UserInputException
Throws:
UserInputException

isTextUIAvailable

protected abstract boolean isTextUIAvailable()

readFromTextUI

protected abstract <T> T readFromTextUI(Class<T> type,
                                        String message,
                                        String regex)
                             throws UserInputException
Throws:
UserInputException

isGraphicalUIAvailable

protected abstract boolean isGraphicalUIAvailable()

readFromGraphicalUI

protected abstract <T> T readFromGraphicalUI(Class<T> type,
                                             String message,
                                             String regex)
                                  throws UserInputException
Throws:
UserInputException


Copyright © 2013. All Rights Reserved.