Enum Constant and Description |
---|
CSV |
JSON
Present the result using
JsonView |
TABLE
present the result using
TableView |
TO_STRING
Present the result using
Object.toString() |
TREE
Present data in a Tree structure.
|
XML
Present the result using
XmlView |
Modifier and Type | Method and Description |
---|---|
void |
print(java.lang.Object result,
PropertySpec.MetaInfo spec,
CliContext context) |
java.lang.String |
render(java.lang.Object result,
PropertySpec.MetaInfo spec,
ActContext context) |
protected java.util.List |
toList(java.lang.Object result) |
static CliView |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CliView[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CliView TREE
Note the result
parameter must be a root node
of the tree,
otherwise the data will be presented in
Table view
if the result is an Iterable
, orJSON view
otherwisepublic static final CliView TO_STRING
Object.toString()
public static final CliView CSV
public static CliView[] values()
for (CliView c : CliView.values()) System.out.println(c);
public static CliView valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String render(java.lang.Object result, PropertySpec.MetaInfo spec, ActContext context)
public void print(java.lang.Object result, PropertySpec.MetaInfo spec, CliContext context)
protected java.util.List toList(java.lang.Object result)
Copyright © 2014–2017 ActFramework. All rights reserved.