@import org.opendaylight.mdsal.binding.javav2.generator.impl.util.YangTextTemplate
@import org.opendaylight.yangtools.yang.common.SimpleDateFormatUtil
@import org.opendaylight.yangtools.yang.model.api.Module
+@import org.opendaylight.yangtools.yang.model.api.DocumentedNode
@import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement
-@import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.ModuleEffectiveStatementImpl
-@import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.RevisionEffectiveStatementImpl
+@import org.opendaylight.yangtools.yang.model.api.stmt.RevisionStatement
@(module: Module)
@if(module != null) {
}
@if(module.getRevision() != null) {
revision @{SimpleDateFormatUtil.getRevisionFormat().format(module.getRevision())} {
- @for(effectiveStatement <- module.asInstanceOf[ModuleEffectiveStatementImpl].effectiveSubstatements()){
- @if(effectiveStatement.isInstanceOf[RevisionEffectiveStatementImpl]){
- description "@{effectiveStatement.asInstanceOf[RevisionEffectiveStatementImpl].getDescription()}";
+ @for(effectiveStatement <- module.asInstanceOf[EffectiveStatement[_, _]].effectiveSubstatements()){
+ @if(effectiveStatement.getDeclared().isInstanceOf[RevisionStatement]){
+ description "@{effectiveStatement.asInstanceOf[DocumentedNode].getDescription()}";
}
}
}
list simple-list-more-arg-in-unique {
key "simple-list-leaf-1";
- unique "simple-list-leaf-2 simple-list-leaf-1";
+ unique "simple-list-leaf-1 simple-list-leaf-2";
leaf simple-list-leaf-1 {
type string;
}
}
choice simple-choice {
- case simple-case-2 {
- leaf simple-case-2-leaf {
+ case simple-case-1 {
+ leaf simple-case-1-leaf {
type string;
}
}
- case simple-case-1 {
- leaf simple-case-1-leaf {
+ case simple-case-2 {
+ leaf simple-case-2-leaf {
type string;
}
}