|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface ArgumentsObject
Optional Element Summary | |
---|---|
String |
description
Documentation of the options interface. |
boolean |
documentStatusCodes
Sets whether or not calls to Options#printDocumentation() , or
Options#printDocumentation(java.io.PrintStream) should generate
documentation for status codes. |
String |
doubleHyphen
|
boolean |
doubleHyphenInLongOptions
Whether long options (those with more than one character) will automatically receive two hyphens. |
String |
equals
The string that will be used as the equals sign. |
Class<? extends Annotation> |
preferredDocumentationFormatter
The class that will format the documentation. |
String |
resourceBundlesEncoding
Configures which encoding will be used to read resource bundle files. |
String |
resourceBundlesLocation
The path to find the resource bundles containing the documentation. |
String |
singleHyphen
The string that will be used as the single hyphen. |
Class<? extends StatusCode> |
statusCodeEnum
The status code enumeration for this arguments object. |
public abstract String resourceBundlesLocation
ResourceBundle#getBundle(String)
, and therefore,
should be fully qualified names pointing to a set of property files. This
property is useful when the same set of resource bundles are shared
between several classes.a.b.C
, and if
this property is an empty string, then files such as
a.b.C.properties
, a.b.C_es.properties
, etc...
(in other words, the files /a/b/C.properties and /a/b/C_es.properties
where / is the root of the JAR file) will be used.ResourceBundle#getBundle(String baseName, Locale locale, ClassLoader loader)
for more information.
ResourceBundle#getBundle(String baseName, Locale locale, ClassLoader
loader)
public abstract String resourceBundlesEncoding
public abstract String description
public abstract boolean doubleHyphenInLongOptions
public abstract String singleHyphen
public abstract String doubleHyphen
public abstract String equals
public abstract Class<? extends Annotation> preferredDocumentationFormatter
Options#printDocumentation()
Options#printDocumentation(java.io.PrintStream)
ArgumentsInvocationHandler
to these methods:
DocumentationFormatterEngine#printDocumentation()
DocumentationFormatterEngine#printDocumentation(java.io.PrintStream)
public abstract Class<? extends StatusCode> statusCodeEnum
public abstract boolean documentStatusCodes
Options#printDocumentation()
, or
Options#printDocumentation(java.io.PrintStream)
should generate
documentation for status codes. The standard interpretation for status
codes is that a zero means a successful program termination while any
non-zero number is a unique error code. A caller program or shell could
then read this error code and act accordingly, or show a custom message
to a user.DocumentationFormatterEngine
in use.
statusCodeEnum()
,
preferredDocumentationFormatter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |