import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
import org.opendaylight.yangtools.yang.model.api.stmt.NotificationStatement;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
-import org.opendaylight.yangtools.yang.parser.stmt.rfc6020.Utils;
public class NotificationEffectiveStatementImpl extends
AbstractEffectiveDocumentedDataNodeContainer<QName, NotificationStatement> implements NotificationDefinition {
final StmtContext<QName, NotificationStatement, EffectiveStatement<QName, NotificationStatement>> ctx) {
super(ctx);
this.qname = ctx.getStatementArgument();
- this.path = Utils.getSchemaPath(ctx);
+ this.path = ctx.getSchemaPath().get();
// initSubstatementCollections
Collection<? extends EffectiveStatement<?, ?>> effectiveSubstatements = effectiveSubstatements();
@Override
public String toString() {
- StringBuilder sb = new StringBuilder(NotificationEffectiveStatementImpl.class.getSimpleName());
- sb.append("[qname=").append(qname).append(", path=").append(path).append("]");
- return sb.toString();
+ return NotificationEffectiveStatementImpl.class.getSimpleName() + "[qname=" + qname + ", path=" + path + "]";
}
}