Class YangLiteralExpr

java.lang.Object
org.opendaylight.yangtools.yang.xpath.api.YangLiteralExpr
All Implemented Interfaces:
Serializable, Immutable, YangExpr

public final class YangLiteralExpr extends Object implements 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: