Package annotation.handler
Class AnnotationChoices
java.lang.Object
annotation.handler.AnnotationChoices
- All Implemented Interfaces:
Serializable
,ManagedParameters
Class to handle choice of annotator and any other
associated options. This can be used to control which
annotation(s) is/are added to data and options controlling
how the annotations work.
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAnnotationOptions
(String annotationName) Get an annotation options, or null if nothin in list.Get a set of data that describes all of the parameters in a classboolean
void
setAllowMany
(boolean allowMany) void
setAnnotionOption
(String annotationName, AnnotationOptions annotationOption) Set the options for an annotation typevoid
setAnnotionOption
(String annotationName, AnnotationOptions annotationOptions, boolean setSelected) Set the options for an annotation type
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
AnnotationChoices
public AnnotationChoices()
-
-
Method Details
-
setAnnotionOption
public void setAnnotionOption(String annotationName, AnnotationOptions annotationOptions, boolean setSelected) Set the options for an annotation type- Parameters:
annotationName
- annotation type nameannotationOptions
- optionssetSelected
- set the selected option true or false.
-
setAnnotionOption
Set the options for an annotation type- Parameters:
annotationName
- annotation type nameannotationOptions
- options
-
getAnnotationOptions
Get an annotation options, or null if nothin in list.- Parameters:
annotationName
- annotation type name- Returns:
- annotation options.
-
isAllowMany
public boolean isAllowMany()- Returns:
- the allowMany
-
setAllowMany
public void setAllowMany(boolean allowMany) - Parameters:
allowMany
- the allowMany to set
-
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-