public class DocumentParameters extends Object
Parameterizable
interface. Used in documentation generation only.Modifier and Type | Class and Description |
---|---|
protected static class |
DocumentParameters.SortByOption
Sort parameters by their option
|
Modifier and Type | Field and Description |
---|---|
private static String |
CSSFILE |
private static String |
HEADER_CLASS_RESTRICTION |
private static String |
HEADER_CLASS_RESTRICTION_EXTENDING |
private static String |
HEADER_CLASS_RESTRICTION_IMPLEMENTING |
private static String |
HEADER_DEFAULT_VALUE |
private static String |
HEADER_KNOWN_IMPLEMENTATIONS |
private static String |
HEADER_PARAMETER_FOR |
(package private) static Logging |
logger |
private static String |
MODIFICATION_WARNING |
private static String |
NO_CLASS_RESTRICTION |
private static String |
NO_DEFAULT_VALUE |
Constructor and Description |
---|
DocumentParameters() |
Modifier and Type | Method and Description |
---|---|
private static void |
appendClassRestriction(Document htmldoc,
Class<?> restriction,
Element elemdd) |
private static void |
appendDefaultClassLink(Document htmldoc,
Parameter<?,?> opt,
Element p) |
private static void |
appendDefaultValueIfSet(Document htmldoc,
Parameter<?,?> par,
Element optdd)
Append string containing the default value.
|
private static void |
appendKnownImplementationsIfNonempty(Document htmldoc,
ClassParameter<?> opt,
Element elemdd) |
private static void |
appendNoClassRestriction(Document htmldoc,
Element elemdd) |
private static void |
appendNoDefaultValue(Document htmldoc,
Element optdd)
Append string that there is not default value.
|
private static void |
buildParameterIndex(HashMapList<Class<?>,Parameter<?,?>> byclass,
HashMapList<OptionID,Pair<Parameter<?,?>,Class<?>>> byopt) |
protected static Constructor<?> |
getConstructor(Class<?> cls) |
private static String |
linkForClassName(String name)
Return a link for the class name
|
static void |
main(String[] args) |
private static Document |
makeByClassOverview(HashMapList<Class<?>,Parameter<?,?>> byclass) |
private static Document |
makeByOptOverview(HashMapList<OptionID,Pair<Parameter<?,?>,Class<?>>> byopt) |
static final Logging logger
private static final String HEADER_PARAMETER_FOR
private static final String HEADER_DEFAULT_VALUE
private static final String NO_DEFAULT_VALUE
private static final String HEADER_CLASS_RESTRICTION
private static final String HEADER_CLASS_RESTRICTION_IMPLEMENTING
private static final String HEADER_CLASS_RESTRICTION_EXTENDING
private static final String NO_CLASS_RESTRICTION
private static final String CSSFILE
private static final String MODIFICATION_WARNING
private static final String HEADER_KNOWN_IMPLEMENTATIONS
public static void main(String[] args)
args
- Command line argumentsprivate static void buildParameterIndex(HashMapList<Class<?>,Parameter<?,?>> byclass, HashMapList<OptionID,Pair<Parameter<?,?>,Class<?>>> byopt)
protected static Constructor<?> getConstructor(Class<?> cls)
private static Document makeByClassOverview(HashMapList<Class<?>,Parameter<?,?>> byclass)
private static Document makeByOptOverview(HashMapList<OptionID,Pair<Parameter<?,?>,Class<?>>> byopt)
private static void appendDefaultClassLink(Document htmldoc, Parameter<?,?> opt, Element p)
private static void appendClassRestriction(Document htmldoc, Class<?> restriction, Element elemdd)
private static void appendNoClassRestriction(Document htmldoc, Element elemdd)
private static void appendKnownImplementationsIfNonempty(Document htmldoc, ClassParameter<?> opt, Element elemdd)
private static void appendDefaultValueIfSet(Document htmldoc, Parameter<?,?> par, Element optdd)
htmldoc
- Documentpar
- Parameteroptdd
- HTML Elementprivate static void appendNoDefaultValue(Document htmldoc, Element optdd)
htmldoc
- Documentoptdd
- HTML Element