org.wymiwyg.commons.util.arguments
Class AnnotatedInterfaceArguments<T>
java.lang.Object
org.wymiwyg.commons.util.arguments.AnnotatedInterfaceArguments<T>
- All Implemented Interfaces:
- ArgumentProcessor
public class AnnotatedInterfaceArguments<T>
- extends Object
- implements ArgumentProcessor
- Author:
- reto
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static <U> AnnotatedInterfaceArguments<U> getInstance(Class<U> annotated,
ArgumentHandler argumentHandler)
throws InvalidArgumentsException
- Throws:
InvalidArgumentsException
getValueObject
public static <U> U getValueObject(Class<U> annotated,
ArgumentHandler argumentHandler)
throws InvalidArgumentsException
- Throws:
InvalidArgumentsException
process
public void process(List argumentList)
throws InvalidArgumentsException
- Specified by:
process in interface ArgumentProcessor
- Throws:
InvalidArgumentsException
getValueObject
public T getValueObject()
getArgumentsSyntax
public static String getArgumentsSyntax(Class annotated)
- Parameters:
name -
- Returns:
- something like "-model1 string -model2 string
[-useDefaultOntology {true|false}]"
printArgumentDescriptions
public static void printArgumentDescriptions(Class annotated,
PrintWriter writer)
- Parameters:
name - writer -
showHelp
public static void showHelp(Class<?> type)
- Parameters:
name -
Copyright © 2011. All Rights Reserved.