Class YangLiteralExpr
- java.lang.Object
-
- org.opendaylight.yangtools.yang.xpath.api.YangLiteralExpr
-
- All Implemented Interfaces:
Serializable
,Immutable
,MutationBehaviour<Immutable>
,YangExpr
@Beta 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
oridentityref
type, when the correspondingYangXPathExpression
was parsed from reference String specification defined in RFC7950. When such conversion is required, it should be performed throughYangXPathExpression.interpretAsQName(YangLiteralExpr)
orYangXPathExpression.interpretAsInstanceIdentifier(YangLiteralExpr)
.A more type-safe alternative is
YangQNameExpr
, which should be preferred and used whenever possible.- Author:
- Robert Varga
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static YangLiteralExpr
empty()
boolean
equals(@Nullable Object obj)
String
getLiteral()
int
hashCode()
static YangLiteralExpr
of(String literal)
protected Object
readResolve()
String
toString()
-
-
-
Method Detail
-
empty
public static YangLiteralExpr empty()
-
of
public static YangLiteralExpr of(String literal)
-
getLiteral
public String getLiteral()
-
readResolve
protected Object readResolve()
-
-