Package redempt.ordinate.component.flag
Class FlagComponent<T,V>
java.lang.Object
redempt.ordinate.component.abstracts.CommandComponent<T>
redempt.ordinate.component.flag.FlagComponent<T,V>
- All Implemented Interfaces:
Named
-
Constructor Summary
ConstructorsConstructorDescriptionFlagComponent
(String mainName, Set<String> names, ArgType<T, V> type, ContextProvider<T, V> defaultValue, MessageFormatter<T> invalidArgument, MessageFormatter<T> contextError, MessageFormatter<T> noArgument) -
Method Summary
-
Constructor Details
-
FlagComponent
public FlagComponent(String mainName, Set<String> names, ArgType<T, V> type, ContextProvider<T, V> defaultValue, MessageFormatter<T> invalidArgument, MessageFormatter<T> contextError, MessageFormatter<T> noArgument)
-
-
Method Details
-
getMaxConsumedArgs
public int getMaxConsumedArgs()- Specified by:
getMaxConsumedArgs
in classCommandComponent<T>
-
getMaxParsedObjects
public int getMaxParsedObjects()- Specified by:
getMaxParsedObjects
in classCommandComponent<T>
-
getMinConsumedArgs
public int getMinConsumedArgs()- Overrides:
getMinConsumedArgs
in classCommandComponent<T>
-
getPriority
public int getPriority()- Specified by:
getPriority
in classCommandComponent<T>
-
parse
- Specified by:
parse
in classCommandComponent<T>
-
complete
- Overrides:
complete
in classCommandComponent<T>
-
getName
-
getNames
-
getType
-