Class ParserStreamUtils

java.lang.Object
org.opendaylight.yangtools.yang.data.util.ParserStreamUtils

public final class ParserStreamUtils extends Object
  • 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 specified childName and namespace.
      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)