Class ArgumentUtils
java.lang.Object
org.opendaylight.yangtools.yang.parser.rfc7950.stmt.ArgumentUtils
Utility class for dealing with arguments encountered by StatementSupport classes.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic int
compareNumbers
(Number n1, Number n2) static boolean
isAbsoluteXPath
(String path) static SchemaNodeIdentifier
nodeIdentifierFromPath
(StmtContext<?, ?, ?> ctx, String path) parseAbsoluteSchemaNodeIdentifier
(StmtContext<?, ?, ?> ctx, String str) parseDescendantSchemaNodeIdentifier
(StmtContext<?, ?, ?> ctx, String str)
-
Field Details
-
PIPE_SPLITTER
-
TWO_DOTS_SPLITTER
-
-
Method Details
-
compareNumbers
-
isAbsoluteXPath
-
parseAbsoluteSchemaNodeIdentifier
public static SchemaNodeIdentifier.Absolute parseAbsoluteSchemaNodeIdentifier(StmtContext<?, ?, ?> ctx, String str) -
parseDescendantSchemaNodeIdentifier
public static SchemaNodeIdentifier.Descendant parseDescendantSchemaNodeIdentifier(StmtContext<?, ?, ?> ctx, String str) -
nodeIdentifierFromPath
-