<li>\r
augment\r
«augment.augmentationInfo(InstanceIdentifier.builder().toInstance())»\r
+ «augment.childNodes.printChildren(2,InstanceIdentifier.builder().toInstance())»\r
</li>\r
«ENDFOR»\r
</ul>\r
val leafNodes = nodes.filter(LeafSchemaNode)\r
val leafListNodes = nodes.filter(LeafListSchemaNode)\r
val choices = nodes.filter(ChoiceNode)\r
+ val cases = nodes.filter(ChoiceCaseNode)\r
val containers = nodes.filter(ContainerSchemaNode)\r
val lists = nodes.filter(ListSchemaNode)\r
return '''\r
«FOR childNode : lists»\r
«childNode.printInfo(level,path)»\r
«ENDFOR»\r
+ «FOR childNode : choices»\r
+ «childNode.printInfo(level,path)»\r
+ «ENDFOR»\r
+ «FOR childNode : cases»\r
+ «childNode.printInfo(level,path)»\r
+ «ENDFOR»\r
\r
'''\r
}\r
</dl>\r
«node.childNodes.printChildren(level,newPath)»\r
'''\r
- \r
+\r
+ private def dispatch CharSequence printInfo(ChoiceNode node, int level, InstanceIdentifier path) '''\r
+ «val Set<DataSchemaNode> choiceCases = new HashSet(node.cases)»\r
+ «choiceCases.printChildren(level,path)»\r
+ '''\r
+\r
+ private def dispatch CharSequence printInfo(ChoiceCaseNode node, int level, InstanceIdentifier path) '''\r
+ «node.childNodes.printChildren(level,path)»\r
+ '''\r
+\r
def CharSequence printShortInfo(ContainerSchemaNode node, int level, InstanceIdentifier path) {\r
val newPath = path.append(node);\r
return '''\r
<li>«strong((node.QName.localName))» (leaf-list)</li>\r
'''\r
}\r
- \r
+\r
def CharSequence localLink(InstanceIdentifier identifier, CharSequence text) '''\r
<a href="#«FOR cmp : identifier.path SEPARATOR "/"»«cmp.nodeType.localName»«ENDFOR»">«text»</a>\r
'''\r