public final class SettingDescriptor
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
<A extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<A> annotationType)
Returns the first annotation for the specified type if an annotation
element with the same name is available,
null otherwise. |
java.util.List<AnnotationElement> |
getAnnotationElements()
Returns an immutable list of annotation elements for this value
descriptor.
|
java.lang.String |
getContentType()
Returns a textual identifier that specifies how a value that is represented by
this
SettingDescriptor object is interpreted or formatted. |
java.lang.String |
getDefaultValue()
Returns the default value for this setting descriptor.
|
java.lang.String |
getDescription()
Returns a sentence that describes the setting (for example
"Record event with duration
above or equal to threshold"). |
java.lang.String |
getLabel()
Returns a human-readable name that describes the setting (for example,
"Threshold"). |
java.lang.String |
getName()
Returns the name of the setting (for example,
"threshold"). |
long |
getTypeId()
Returns a unique ID for the type in the Java Virtual Machine (JVM).
|
java.lang.String |
getTypeName()
Returns the fully qualified class name of the type that is associated with this
setting descriptor.
|
public java.lang.String getName()
"threshold").nullpublic java.lang.String getLabel()
"Threshold").
If the setting lacks a label, the label for the type that is associated with this
setting is returned, or null if doesn't exist
null if doesn't existpublic java.lang.String getDescription()
"Record event with duration
above or equal to threshold").
If the setting lacks a description, the description for the type that is
associated with this setting is returned, or null if doesn't exist.
null if doesn't existpublic java.lang.String getContentType()
SettingDescriptor object is interpreted or formatted.
For example, if the setting descriptor represents a percentage, then
"jdk.jfr.Percentage" hints to a client that a value of "0.5"
is formatted as "50%".
The JDK provides the following predefined content types:
User-defined content types can be created by using ContentType.
If the setting lacks a content type, the content type for the type
that is associated with this setting is returned, or null if not
available.
null if doesn't existContentTypepublic java.lang.String getTypeName()
nullgetTypeId()public long getTypeId()
The ID might not be the same between JVM instances.
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
null otherwise.A - the type of the annotation to query for and return if availableannotationType - the Class object that corresponds to the annotation
type, not nullnull otherwisepublic java.util.List<AnnotationElement> getAnnotationElements()
nullpublic java.lang.String getDefaultValue()
null