public class OptionalNamedArg extends Object implements NamedArgument
| Constructor and Description |
|---|
OptionalNamedArg(String name,
String[] allowedValues,
String defaultValue,
String description) |
OptionalNamedArg(String name,
String exampleValue,
String defaultValue,
String description) |
| Modifier and Type | Method and Description |
|---|---|
String |
defaultValue() |
String |
description()
An explanation of the option in the options list.
|
String |
exampleValue()
Example value listed in usage between brackets like '--name=
|
String |
name()
Name of the option as in '--name=
|
String |
optionsListing()
Represents the option in the options list.
|
String |
parse(String... args)
Parses the option (or possible default value) out of program arguments.
|
String |
usage()
Represents the option in the usage string.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithaspublic OptionalNamedArg(String name, String exampleValue, String defaultValue, String description)
public String optionsListing()
NamedArgumentoptionsListing in interface NamedArgumentpublic String usage()
NamedArgumentusage in interface NamedArgumentpublic String description()
NamedArgumentdescription in interface NamedArgumentpublic String name()
NamedArgumentname in interface NamedArgumentpublic String exampleValue()
NamedArgumentexampleValue in interface NamedArgumentpublic String defaultValue()
public String parse(String... args)
NamedArgumentparse in interface NamedArgumentCopyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.