@Beta public class YangLiteralExpr extends Object implements YangExpr
Note that a literal may be required to hold a value of instance-identifier
or identityref
type,
when the corresponding YangXPathExpression
was parsed from reference String specification defined in RFC7950.
When such conversion is required, it should be performed through
YangXPathExpression.interpretAsQName(YangLiteralExpr)
or
YangXPathExpression.interpretAsInstanceIdentifier(YangLiteralExpr)
.
A more type-safe alternative is YangQNameExpr
, which should be preferred and used whenever possible.
Modifier | Constructor and Description |
---|---|
protected |
YangLiteralExpr(String literal) |
Modifier and Type | Method and Description |
---|---|
static YangLiteralExpr |
empty() |
boolean |
equals(@Nullable Object obj) |
String |
getLiteral() |
int |
hashCode() |
static YangLiteralExpr |
of(String literal) |
String |
toString() |
protected YangLiteralExpr(String literal)
public static final YangLiteralExpr empty()
public static final YangLiteralExpr of(String literal)
public final String getLiteral()
Copyright © 2019 OpenDaylight. All rights reserved.