Class YangLiteralExpr
java.lang.Object
org.opendaylight.yangtools.yang.xpath.api.YangLiteralExpr
- All Implemented Interfaces:
Serializable
,Immutable
,YangExpr
An XPath literal expression.
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.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic YangLiteralExpr
empty()
boolean
int
hashCode()
static YangLiteralExpr
protected Object
toString()