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
|
private static class |
DocumentParameters.WikiStream
Write to a Wiki format.
|
Modifier and Type | Field and Description |
---|---|
private static String |
CSSFILE |
private static boolean |
FULL_WIKI_OUTPUT
Enable the full wiki output.
|
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 |
private static Logging |
LOG |
private static String |
MODIFICATION_WARNING |
private static String |
NO_CLASS_RESTRICTION |
private static String |
NO_DEFAULT_VALUE |
Constructor and Description |
---|
DocumentParameters() |
private static final Logging LOG
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
private static final boolean FULL_WIKI_OUTPUT
public static void main(String[] args)
args
- Command line argumentsprivate static void buildParameterIndex(Map<Class<?>,List<Parameter<?>>> byclass, Map<OptionID,List<Pair<Parameter<?>,Class<?>>>> byopt)
protected static Constructor<?> getConstructor(Class<?> cls)
private static Document makeByClassOverviewHTML(Map<Class<?>,List<Parameter<?>>> byclass)
private static void makeByClassOverviewWiki(Map<Class<?>,List<Parameter<?>>> byclass, DocumentParameters.WikiStream out)
private static int appendMultilineTextWiki(DocumentParameters.WikiStream out, String text)
private static Document makeByOptOverviewHTML(Map<OptionID,List<Pair<Parameter<?>,Class<?>>>> byopt)
private static void makeByOptOverviewWiki(Map<OptionID,List<Pair<Parameter<?>,Class<?>>>> byopt, DocumentParameters.WikiStream out)
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 appendClassRestrictionWiki(DocumentParameters.WikiStream out, Class<?> restriction)
private static void appendNoClassRestrictionWiki(DocumentParameters.WikiStream out)
private static void appendKnownImplementationsIfNonempty(Document htmldoc, ClassParameter<?> opt, Element elemdd)
private static void appendKnownImplementationsWiki(DocumentParameters.WikiStream out, ClassParameter<?> opt)
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 Elementprivate static void appendDefaultValueWiki(DocumentParameters.WikiStream out, Parameter<?> par)
private static void appendNoDefaultValueWiki(DocumentParameters.WikiStream out)