import org.opendaylight.yangtools.yang.parser.spi.GroupingNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext.TypeOfCopy;
-import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.Utils;
-public final class UsesEffectiveStatementImpl extends EffectiveStatementBase<QName, UsesStatement> implements UsesNode {
+public final class UsesEffectiveStatementImpl extends DeclaredEffectiveStatementBase<QName, UsesStatement> implements UsesNode {
private final SchemaPath groupingPath;
private final boolean addedByUses;
private final Map<SchemaPath, SchemaNode> refines;
// initGroupingPath
StmtContext<?, GroupingStatement, EffectiveStatement<QName, GroupingStatement>> grpCtx = ctx.getFromNamespace(
GroupingNamespace.class, ctx.getStatementArgument());
- this.groupingPath = Utils.getSchemaPath(grpCtx);
+ this.groupingPath = grpCtx.getSchemaPath().get();
// initCopyType
List<TypeOfCopy> copyTypesFromOriginal = ctx.getCopyHistory();
@Override
public String toString() {
- StringBuilder sb = new StringBuilder(UsesEffectiveStatementImpl.class.getSimpleName());
- sb.append("[groupingPath=");
- sb.append(groupingPath);
- sb.append("]");
- return sb.toString();
+ return UsesEffectiveStatementImpl.class.getSimpleName() + "[groupingPath=" +
+ groupingPath +
+ "]";
}
}