Do not use SchemaNode.getPath() in RestDocgenUtil
Instead of investigating full schema path we can just use
the parent node QName to determine if a child is in the same module
as its parent.
To compare name-space and revision we work with QNames -
we have adapted method resolvePathArgumentsName(..) parameters
to require QNames.
We can go further and mark all parameters as NonNull because
the use-case when parent is null has no sense - we are at direct
child of module - so full path should be used.
Align parameter usage across the methods -
first is node's QName the second is node's parent's QName.
In addition, mark not-used resolveNodesName(SchemaNode, Module) method
as deprecated for removal.
To simplify situation in callers we can resolve resource path before
addPaths or addOperations methods are called. This way we do not need
to increase the number of parameters.
JIRA: NETCONF-819
Change-Id: Ib7a7614a70c9573521c47716c62ec74f887e6132
Signed-off-by: Manoj Chokka <cmanoj8@gmail.com>
Signed-off-by: OleksandrZharov <Oleksandr.Zharov@pantheon.tech>
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>