org.hyphenType.input
Class StandardUserInput

java.lang.Object
  extended by org.hyphenType.input.UserInput
      extended by org.hyphenType.input.StandardUserInput

public class StandardUserInput
extends UserInput

Author:
Aurelio Akira M. Matsui

Constructor Summary
StandardUserInput()
           
 
Method Summary
protected  boolean isGraphicalUIAvailable()
           
protected  boolean isTextUIAvailable()
           
protected
<T> T
readFromGraphicalUI(Class<T> type, String message, String regex)
           
protected
<T> T
readFromTextUI(Class<T> type, String message, String regex)
           
 
Methods inherited from class org.hyphenType.input.UserInput
readArray, readString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardUserInput

public StandardUserInput()
Method Detail

isGraphicalUIAvailable

protected boolean isGraphicalUIAvailable()
Specified by:
isGraphicalUIAvailable in class UserInput

readFromGraphicalUI

protected <T> T readFromGraphicalUI(Class<T> type,
                                    String message,
                                    String regex)
                         throws UserInputException
Specified by:
readFromGraphicalUI in class UserInput
Throws:
UserInputException

isTextUIAvailable

protected boolean isTextUIAvailable()
Specified by:
isTextUIAvailable in class UserInput

readFromTextUI

protected <T> T readFromTextUI(Class<T> type,
                               String message,
                               String regex)
                    throws UserInputException
Specified by:
readFromTextUI in class UserInput
Throws:
UserInputException


Copyright © 2013. All Rights Reserved.