public interface OptionSpecification
Modifier and Type | Method and Description |
---|---|
boolean |
allowedThisManyValues(int count)
Is the option allowed to have this many values?
|
<T> T |
compareCountToSpecification(int valueCount,
SpecificationMultiplicity<T> specificationMultiplicity) |
int |
exactly() |
String |
getCanonicalIdentifier()
Canonical identifier for the option
|
List<String> |
getDefaultValue()
Get the default values which will be used if the option is not specified
by the user.
|
String |
getDescription()
Get a description of the option.
|
com.lexicalscope.fluentreflection.FluentMethod |
getMethod() |
com.lexicalscope.fluentreflection.FluentMethod |
getOptionalityMethod() |
Class<?> |
getType()
Each argument to this option must conform to the type returned by this
method
|
boolean |
hasDefaultValue()
Is there a default value to use if this option is not present? Options
with a default value are assumed to be optional.
|
boolean |
hasExactCount() |
boolean |
hasValue()
Does the option have a value
|
boolean |
isHidden()
Is the option hidden from help messages?
|
boolean |
isMultiValued()
Are multiple arguments allowed?
|
boolean |
isOptional()
Is the argument optional
|
int |
maximum() |
int |
maximumArgumentConsumption() |
int |
minimum() |
String getDescription()
Option
annotationOption
Class<?> getType()
String getCanonicalIdentifier()
boolean isMultiValued()
boolean hasValue()
boolean isOptional()
List<String> getDefaultValue()
boolean hasDefaultValue()
boolean isHidden()
boolean allowedThisManyValues(int count)
count
- the number of values that the option might havecom.lexicalscope.fluentreflection.FluentMethod getMethod()
com.lexicalscope.fluentreflection.FluentMethod getOptionalityMethod()
boolean hasExactCount()
int exactly()
int minimum()
int maximum()
int maximumArgumentConsumption()
<T> T compareCountToSpecification(int valueCount, SpecificationMultiplicity<T> specificationMultiplicity)
Copyright © 2006-2013 lexicalscope. All Rights Reserved.