Interface IAnnotatedObjectDescriptor
- All Known Implementing Classes:
AnnotatedObjectDescriptor
,HeapDumpProviderDescriptor
,QueryDescriptor
,VmInfoDescriptor
public interface IAnnotatedObjectDescriptor
A descriptor which allows to inspect an annotated object, e.g. a IQuery
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionGet descriptors for the fields annotated by the annotationArgument
.getHelp()
Get the help String, for example provided by the annotationHelp
.Get the help localeGet the help URL, for example provided by the annotationHelpUrl
.getIcon()
Get the Icon representing the annotated object, for example provided by the annotationIcon
.Get the identifier for the annotated object, for example provided by the annotationCommandName
orgetName()
.getName()
Get the name, for example provided by the annotationName
.getUsage
(IQueryContext context) Get the usage information, for example provided by the annotationUsage
, or by a combination of thegetIdentifier()
andArgumentDescriptor.appendUsage(java.lang.StringBuilder)
.boolean
Check if the object has provided some help via annotations.
-
Method Details
-
getUsage
Get the usage information, for example provided by the annotationUsage
, or by a combination of thegetIdentifier()
andArgumentDescriptor.appendUsage(java.lang.StringBuilder)
.- Parameters:
context
- used to fill in some arguments leaving usage to explain the remainder- Returns:
- the usage information for that query
-
getIcon
URL getIcon()Get the Icon representing the annotated object, for example provided by the annotationIcon
.- Returns:
- the Icon as a URL
-
getIdentifier
String getIdentifier()Get the identifier for the annotated object, for example provided by the annotationCommandName
orgetName()
.- Returns:
- the identifier
-
getName
String getName()Get the name, for example provided by the annotationName
.- Returns:
- the name
-
getHelp
String getHelp()Get the help String, for example provided by the annotationHelp
.- Returns:
- the help
-
getHelpUrl
String getHelpUrl()Get the help URL, for example provided by the annotationHelpUrl
.- Returns:
- the help URL
-
getHelpLocale
Locale getHelpLocale()Get the help locale- Returns:
- the locale
-
getArguments
List<ArgumentDescriptor> getArguments()Get descriptors for the fields annotated by the annotationArgument
. TODO Should this have been IArgumentDescriptor ?- Returns:
- the list of annotated arguments, see
ArgumentDescriptor
-
isHelpAvailable
boolean isHelpAvailable()Check if the object has provided some help via annotations.- Returns:
- true if the object or arguments were annotated with
Help
.
-