Class ParserStreamUtils
java.lang.Object
org.opendaylight.yangtools.yang.data.util.ParserStreamUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Deque<DataSchemaNode>
findSchemaNodeByNameAndNamespace
(DataSchemaNode dataSchemaNode, String childName, XMLNamespace namespace) Returns stack of schema nodes via which it was necessary to pass to get schema node with specifiedchildName
andnamespace
.
-
Method Details
-
findSchemaNodeByNameAndNamespace
public static Deque<DataSchemaNode> findSchemaNodeByNameAndNamespace(DataSchemaNode dataSchemaNode, String childName, XMLNamespace namespace) Returns stack of schema nodes via which it was necessary to pass to get schema node with specifiedchildName
andnamespace
.- Returns:
- stack of schema nodes via which it was passed through. If found schema node is direct child then stack contains only one node. If it is found under choice and case then stack should contains 2*n+1 element (where n is number of choices through it was passed)
-