public class DefaultNutsArgument extends Object implements net.thevpc.nuts.NutsArgument
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
PATTERN_OPTION_COL |
static Pattern |
PATTERN_OPTION_EQ |
| Constructor and Description |
|---|
DefaultNutsArgument(String expression,
char eq,
net.thevpc.nuts.NutsElements elems)
Constructor
|
DefaultNutsArgument(String expression,
net.thevpc.nuts.NutsElements elems) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanValue() |
Boolean |
getBooleanValue(Boolean emptyOrValue) |
Boolean |
getBooleanValue(Boolean emptyValue,
Boolean errValue) |
net.thevpc.nuts.NutsPrimitiveElement |
getKey() |
net.thevpc.nuts.NutsPrimitiveElement |
getOptionName() |
net.thevpc.nuts.NutsPrimitiveElement |
getOptionPrefix() |
String |
getSeparator() |
String |
getString() |
String |
getStringKey() |
String |
getStringValue() |
String |
getStringValue(String defValue) |
net.thevpc.nuts.NutsPrimitiveElement |
getValue() |
boolean |
isActive() |
boolean |
isEnabled() |
boolean |
isInactive() |
boolean |
isKeyValue() |
boolean |
isNegated() |
boolean |
isNonOption() |
boolean |
isOption()
true if expression starts with '-' or '+'
|
net.thevpc.nuts.NutsArgument |
required() |
net.thevpc.nuts.NutsPrimitiveElement |
toElement() |
String |
toString() |
public static final Pattern PATTERN_OPTION_EQ
public static final Pattern PATTERN_OPTION_COL
public DefaultNutsArgument(String expression, net.thevpc.nuts.NutsElements elems)
public DefaultNutsArgument(String expression, char eq, net.thevpc.nuts.NutsElements elems)
expression - expressioneq - equalspublic boolean isOption()
isOption in interface net.thevpc.nuts.NutsArgumentpublic boolean isNonOption()
isNonOption in interface net.thevpc.nuts.NutsArgumentpublic String getString()
getString in interface net.thevpc.nuts.NutsArgumentpublic String getStringValue()
getStringValue in interface net.thevpc.nuts.NutsArgumentpublic String getStringKey()
getStringKey in interface net.thevpc.nuts.NutsArgumentpublic String getStringValue(String defValue)
getStringValue in interface net.thevpc.nuts.NutsArgumentpublic boolean isNegated()
isNegated in interface net.thevpc.nuts.NutsArgumentpublic boolean isEnabled()
isEnabled in interface net.thevpc.nuts.NutsArgumentpublic boolean isActive()
isActive in interface net.thevpc.nuts.NutsArgumentpublic boolean isInactive()
isInactive in interface net.thevpc.nuts.NutsArgumentpublic net.thevpc.nuts.NutsArgument required()
required in interface net.thevpc.nuts.NutsArgumentpublic boolean isKeyValue()
isKeyValue in interface net.thevpc.nuts.NutsArgumentpublic net.thevpc.nuts.NutsPrimitiveElement getOptionPrefix()
getOptionPrefix in interface net.thevpc.nuts.NutsArgumentpublic String getSeparator()
getSeparator in interface net.thevpc.nuts.NutsArgumentpublic net.thevpc.nuts.NutsPrimitiveElement getOptionName()
getOptionName in interface net.thevpc.nuts.NutsArgumentpublic net.thevpc.nuts.NutsPrimitiveElement getValue()
getValue in interface net.thevpc.nuts.NutsArgumentpublic boolean getBooleanValue()
getBooleanValue in interface net.thevpc.nuts.NutsArgumentpublic Boolean getBooleanValue(Boolean emptyValue, Boolean errValue)
getBooleanValue in interface net.thevpc.nuts.NutsArgumentpublic Boolean getBooleanValue(Boolean emptyOrValue)
getBooleanValue in interface net.thevpc.nuts.NutsArgumentpublic net.thevpc.nuts.NutsPrimitiveElement getKey()
getKey in interface net.thevpc.nuts.NutsArgumentpublic net.thevpc.nuts.NutsPrimitiveElement toElement()
toElement in interface net.thevpc.nuts.NutsArgumentCopyright © 2022 vpc open source initiative. All rights reserved.