| Modifier and Type | Field and Description |
|---|---|
| private final AnnotationConstruct | |
| private final String | |
| private final String | |
| private final Type |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public < the type of the annotation to query for and return if available A extends Annotation> A | Returns: this element's annotation for the specified annotation type if available,null otherwisethe Class object that corresponds to the annotation
type, not annotationType)nullReturns the first annotation for the specified type if an annotation
element with the same name is available, |
| public List | Returns: a list of annotations, notnullReturns an immutable list of annotation elements for this value descriptor. |
| public String | Returns: the content type, ornull if doesn't existReturns a textual identifier that specifies how a value that is represented by
this |
| public String | Returns: the default value, notnullReturns the default value for this setting descriptor. |
| public String | Returns: the description, ornull if doesn't existReturns a sentence that describes the setting (for example
|
| public String | Returns: a human-readable name, ornull if doesn't existReturns a human-readable name that describes the setting (for example,
|
| public String | |
| pack-priv Type | |
| public long | Returns: the type ID, not negativeReturns a unique ID for the type in the Java Virtual Machine (JVM). |
| public String | Returns: the type name, notnullReturns the fully qualified class name of the type that is associated with this setting descriptor. |
| pack-priv void |
| annotationConstruct | back to summary |
|---|---|
| private final AnnotationConstruct annotationConstruct | |
| defaultValue | back to summary |
|---|---|
| private final String defaultValue | |
| name | back to summary |
|---|---|
| private final String name | |
| type | back to summary |
|---|---|
| private final Type type | |
| SettingDescriptor | back to summary |
|---|---|
| pack-priv SettingDescriptor(Type type, String name, String defaultValue, List<AnnotationElement> annotations) | |
| getAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getAnnotation(Class<A> annotationType) Returns the first annotation for the specified type if an annotation
element with the same name is available,
| |
| getAnnotationElements | back to summary |
|---|---|
| public List Returns an immutable list of annotation elements for this value descriptor.
| |
| getContentType | back to summary |
|---|---|
| public String getContentType() Returns a textual identifier that specifies how a value that is represented by
this
For example, if the setting descriptor represents a percentage, then
The JDK provides the following predefined content types:
User-defined content types can be created by using
If the setting lacks a content type, the content type for the type
that is associated with this setting is returned, or
| |
| getDefaultValue | back to summary |
|---|---|
| public String getDefaultValue() Returns the default value for this setting descriptor.
| |
| getDescription | back to summary |
|---|---|
| public String getDescription() Returns a sentence that describes the setting (for example
If the setting lacks a description, the description for the type that is
associated with this setting is returned, or
| |
| getLabel | back to summary |
|---|---|
| public String getLabel() Returns a human-readable name that describes the setting (for example,
If the setting lacks a label, the label for the type that is associated with this
setting is returned, or
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of the setting (for example,
| |
| getType | back to summary |
|---|---|
| pack-priv Type getType() | |
| getTypeId | back to summary |
|---|---|
| public long getTypeId() Returns a unique ID for the type in the Java Virtual Machine (JVM). The ID might not be the same between JVM instances.
| |
| getTypeName | back to summary |
|---|---|
| public String getTypeName() Returns the fully qualified class name of the type that is associated with this setting descriptor.
| |
| setAnnotations | back to summary |
|---|---|
| pack-priv void setAnnotations(List<AnnotationElement> as) | |