|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAnnotatedObjectDescriptor
A descriptor which allows to inspect an annotated object, e.g. a IQuery
Method Summary | |
---|---|
java.util.List<ArgumentDescriptor> |
getArguments()
Get descriptors for the fields annotated by the annotation Argument . |
java.lang.String |
getHelp()
Get the help String, for example provided by the annotation Help . |
java.util.Locale |
getHelpLocale()
Get the help locale |
java.lang.String |
getHelpUrl()
Get the help URL, for example provided by the annotation HelpUrl . |
java.net.URL |
getIcon()
Get the Icon representing the annotated object, for example provided by the annotation Icon . |
java.lang.String |
getIdentifier()
Get the identifier for the annotated object, for example provided by the annotation CommandName
or getName() . |
java.lang.String |
getName()
Get the name, for example provided by the annotation Name . |
java.lang.String |
getUsage(IQueryContext context)
Get the usage information, for example provided by the annotation Usage , or
by a combination of the getIdentifier() and ArgumentDescriptor.appendUsage(java.lang.StringBuilder) . |
boolean |
isHelpAvailable()
Check if the object has provided some help via annotations. |
Method Detail |
---|
java.lang.String getUsage(IQueryContext context)
Usage
, or
by a combination of the getIdentifier()
and ArgumentDescriptor.appendUsage(java.lang.StringBuilder)
.
context
- used to fill in some arguments leaving usage to explain the remainder
java.net.URL getIcon()
Icon
.
java.lang.String getIdentifier()
CommandName
or getName()
.
java.lang.String getName()
Name
.
java.lang.String getHelp()
Help
.
java.lang.String getHelpUrl()
HelpUrl
.
java.util.Locale getHelpLocale()
java.util.List<ArgumentDescriptor> getArguments()
Argument
.
TODO Should this have been IArgumentDescriptor ?
ArgumentDescriptor
boolean isHelpAvailable()
Help
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |