Enum DocScope
java.lang.Object
java.lang.Enum<DocScope>
io.nosqlbench.nb.api.markdown.types.DocScope
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DocScope>,java.lang.constant.Constable
public enum DocScope extends java.lang.Enum<DocScope>
DocScope determines which display mode a topic is meant to be displayed in.
You should filter for the DocScopes you are interested in when you ask
for markdown content.
The special values ANY and NONE are provided for two reasons:
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYANY is a descriptive doc scope which is meant to be used as a filter within API calls to find and display docs.appThe dynamic web doc scope includes any markdown which should be made available to users when they are interacting with a web application.cliThe command line doc scope includes any markdown which should be shown to the user when they are searching for or viewing documentation on a command line.NONENONE is a descriptive doc scope which is meant to be used as the default value for found raw markdown if it has not been tagged with a direct scope.webThe static web doc scope includes any markdown which should be shown to the user when they are viewing documentation on an externally hosted site in static form. -
Method Summary
-
Enum Constant Details
-
cli
The command line doc scope includes any markdown which should be shown to the user when they are searching for or viewing documentation on a command line. -
web
The static web doc scope includes any markdown which should be shown to the user when they are viewing documentation on an externally hosted site in static form. -
app
The dynamic web doc scope includes any markdown which should be made available to users when they are interacting with a web application. -
ANY
ANY is a descriptive doc scope which is meant to be used as a filter within API calls to find and display docs. It is invalid for any raw markdown content to be tagged with this doc scope. -
NONE
NONE is a descriptive doc scope which is meant to be used as the default value for found raw markdown if it has not been tagged with a direct scope. This scope should only be returned as a place holder when no scopes are defined on content. When reading raw content, finding the NONE scope explicitly on raw source is considered an error.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-