@Beta public final 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 and Type | Method and Description |
---|---|
static YangLiteralExpr |
empty() |
boolean |
equals(@Nullable Object obj) |
String |
getLiteral() |
int |
hashCode() |
static YangLiteralExpr |
of(String literal) |
protected Object |
readResolve() |
String |
toString() |
public static YangLiteralExpr empty()
public static YangLiteralExpr of(String literal)
public String getLiteral()
protected Object readResolve()
Copyright © 2020 OpenDaylight. All rights reserved.