@Beta public enum YangBooleanConstantExpr extends Enum<YangBooleanConstantExpr> implements YangConstantExpr<Boolean>
true
or false
. These expressions are equivalent to the result
returned by true()
and false()
functions defined in XPath 1.0.
They also map these functions' names to the constant pool under their YangFunctionCallExpr.getName()
identity. All users should use these constants in favor of their equivalent function calls.
Enum Constant and Description |
---|
FALSE
A constant
false expression. |
TRUE
A constant
true expression. |
Modifier and Type | Method and Description |
---|---|
YangFunctionCallExpr |
asFunction()
Convert this constant into the equivalent function.
|
static Optional<YangFunctionCallExpr> |
forFunctionName(String functionName) |
QName |
getIdentifier()
Return this objects Identifier.
|
Boolean |
getValue()
Return this constant's value.
|
static YangBooleanConstantExpr |
of(boolean bool) |
static YangBooleanConstantExpr |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static YangBooleanConstantExpr[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final YangBooleanConstantExpr FALSE
false
expression.public static final YangBooleanConstantExpr TRUE
true
expression.public static YangBooleanConstantExpr[] values()
for (YangBooleanConstantExpr c : YangBooleanConstantExpr.values()) System.out.println(c);
public static YangBooleanConstantExpr valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic QName getIdentifier()
Identifiable
getIdentifier
in interface Identifiable<QName>
public Boolean getValue()
YangConstantExpr
getValue
in interface YangConstantExpr<Boolean>
public YangFunctionCallExpr asFunction()
public static YangBooleanConstantExpr of(boolean bool)
public static Optional<YangFunctionCallExpr> forFunctionName(String functionName)
Copyright © 2019 OpenDaylight. All rights reserved.