org.hyphenType.input
Class UserInput
java.lang.Object
org.hyphenType.input.UserInput
- Direct Known Subclasses:
- StandardUserInput, UnitTestingUserInput
public abstract class UserInput
- extends Object
- Author:
- Aurelio Akira M. Matsui
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserInput
public UserInput()
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.