public class AllowedValuesRestrictionFactory extends Object implements OptionRestrictionFactory, ArgumentsRestrictionFactory
Constructor and Description |
---|
AllowedValuesRestrictionFactory() |
Modifier and Type | Method and Description |
---|---|
ArgumentsRestriction |
createArgumentsRestriction(Annotation annotation)
Tries to create an arguments restriction from the given annotation
|
protected Object |
createCommon(Annotation annotation) |
OptionRestriction |
createOptionRestriction(Annotation annotation)
Try and create an option restriction from the given annotation
|
protected List<Class<? extends Annotation>> |
supportedAnnotations() |
List<Class<? extends Annotation>> |
supportedArgumentsAnnotations()
Gets a list of annotations that this factory can convert into arguments
restrictions
|
List<Class<? extends Annotation>> |
supportedOptionAnnotations()
Gets a list of annotations that this factory can convert into option
restrictions
|
public OptionRestriction createOptionRestriction(Annotation annotation)
OptionRestrictionFactory
createOptionRestriction
in interface OptionRestrictionFactory
annotation
- Annotationnull
if this factory cannot create
a restriction from the given annotationprotected Object createCommon(Annotation annotation)
public ArgumentsRestriction createArgumentsRestriction(Annotation annotation)
ArgumentsRestrictionFactory
createArgumentsRestriction
in interface ArgumentsRestrictionFactory
annotation
- Annotationnull
if this factory cannot
create a restriction from the given annotationpublic List<Class<? extends Annotation>> supportedOptionAnnotations()
OptionRestrictionFactory
supportedOptionAnnotations
in interface OptionRestrictionFactory
protected List<Class<? extends Annotation>> supportedAnnotations()
public List<Class<? extends Annotation>> supportedArgumentsAnnotations()
ArgumentsRestrictionFactory
supportedArgumentsAnnotations
in interface ArgumentsRestrictionFactory
Copyright © 2012–2017. All rights reserved.