@Documented @Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @interface CreoleParameter
set
method corresponding to the parameter.
The parameter's name is inferred from the method name, and its type is
inferred from the type of the method's argument.Collection
, GATE also attempts to infer the collection element type
from any generic type arguments given. If the collection type is a raw type
then you will need to supply the collectionElementType explicitly in the
annotation.
Parameters can be marked as optional or runtime parameters using the appropriate additional annotations.
Modifier and Type | Fields and Description |
---|---|
static int |
DEFAULT_PRIORITY
The default priority value assumed if no explicit priority
is set.
|
static String |
NO_DEFAULT_VALUE
Special value used to signify the absence of a default value for a
parameter.
|
Modifier and Type | Optional Element and Description |
---|---|
Class<?> |
collectionElementType
The item class name for parameters whose type is a Collection, Set
or List.
|
String |
comment
A descriptive comment about this parameter.
|
String |
defaultValue
The default value for the parameter, expressed as a string.
|
String |
disjunction
If this parameter is part of a disjunction, set an ID here.
|
int |
priority
If this parameter is part of a disjunction, the order in which
the disjunctive parameters are listed is determined by their
priority values.
|
String |
suffixes
Semicolon-separated list of file suffixes accepted by default for
this parameter.
|
public static final String NO_DEFAULT_VALUE
public static final int DEFAULT_PRIORITY
public abstract Class<?> collectionElementType
List<String>
), the correct value can often be
inferred automatically, but if a value is specified here it takes
precedence.public abstract String defaultValue
null
.public abstract String comment
public abstract String suffixes
URL
, the
GUI provides a button to locate the desired file in a Java file
chooser. The suffixes list defines the default file name filter
used by the file chooser.public abstract String disjunction
public abstract int priority
Copyright © 2024 GATE. All rights reserved.