import org.opendaylight.controller.antlrv4.code.gen.YangParser.Status_stmtContext;
import org.opendaylight.controller.antlrv4.code.gen.YangParser.Type_body_stmtsContext;
import org.opendaylight.controller.antlrv4.code.gen.YangParser.Units_stmtContext;
+import org.opendaylight.controller.antlrv4.code.gen.YangParser.When_stmtContext;
import org.opendaylight.controller.antlrv4.code.gen.YangParser.Yang_version_stmtContext;
import org.opendaylight.controller.antlrv4.code.gen.YangParserBaseListener;
import org.opendaylight.controller.yang.common.QName;
} else if (child instanceof Status_stmtContext) {
Status status = parseStatus((Status_stmtContext) child);
builder.setStatus(status);
+ } else if (child instanceof When_stmtContext) {
+ String when = stringFromNode(child);
+ builder.addWhenCondition(when);
}
}
}
} else {
if ("union".equals(typeName)) {
moduleBuilder.addUnionType(actualPath);
+ } else if("identityref".equals(typeName)) {
+ moduleBuilder.addIdentityrefType(getIdentityrefBase(typeBody), actualPath);
} else {
List<String> typePath = new ArrayList<String>(actualPath);
typePath.remove(0);
UnknownSchemaNodeBuilder builder = moduleBuilder.addUnknownSchemaNode(
qname, actualPath);
updatePath(name);
-
builder.setPath(createActualSchemaPath(actualPath, namespace, revision,
yangModelPrefix));
parseSchemaNodeArgs(ctx, builder);
final String targetPath = stringFromNode(ctx);
String reference = null;
String deviate = null;
- DeviationBuilder builder = moduleBuilder.addDeviation(targetPath, actualPath);
+ DeviationBuilder builder = moduleBuilder.addDeviation(targetPath,
+ actualPath);
updatePath(targetPath);
for (int i = 0; i < ctx.getChildCount(); i++) {