import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
import org.opendaylight.yangtools.yang.parser.spi.meta.CopyHistory;
import org.opendaylight.yangtools.yang.parser.spi.meta.CopyType;
-import org.opendaylight.yangtools.yang.parser.spi.meta.ModelProcessingPhase;
import org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceBehaviour.StorageNodeType;
import org.opendaylight.yangtools.yang.parser.spi.meta.ParserNamespace;
import org.opendaylight.yangtools.yang.parser.spi.meta.StatementNamespace;
private final ReactorStmtCtx<A, D, E> source;
ReplicaStatementContext(final StatementContextBase<?, ?, ?> parent, final ReactorStmtCtx<A, D, E> source) {
- super(source);
+ super(source, null);
this.parent = requireNonNull(parent);
this.source = requireNonNull(source);
if (source.isSupportedToBuildEffective()) {
source.incRef();
- // FIXME: is this call really needed? it is inherited from source
- setFullyDefined();
}
}
return source.buildEffective();
}
+ @Override
+ ReactorStmtCtx<A, D, E> unmodifiedEffectiveSource() {
+ return source.unmodifiedEffectiveSource();
+ }
+
@Override
public EffectiveConfig effectiveConfig() {
return source.effectiveConfig();
}
@Override
- public ModelProcessingPhase getCompletedPhase() {
- return source.getCompletedPhase();
+ byte executionOrder() {
+ return source.executionOrder();
}
@Override
}
@Override
- public Mutable<A, D, E> replicaAsChildOf(final Mutable<?, ?, ?> newParent) {
+ ReplicaStatementContext<A, D, E> replicaAsChildOf(final StatementContextBase<?, ?, ?> newParent) {
return source.replicaAsChildOf(newParent);
}
@Override
ReactorStmtCtx<?, ?, ?> asEffectiveChildOf(final StatementContextBase<?, ?, ?> newParent, final CopyType type,
final QNameModule targetModule) {
- return source.asEffectiveChildOf(newParent, type, targetModule);
+ final ReactorStmtCtx<?, ?, ?> ret = source.asEffectiveChildOf(newParent, type, targetModule);
+ return ret == null ? null : this;
}
@Override
@Override
int sweepSubstatements() {
- if (fullyDefined()) {
+ if (haveSourceReference()) {
source.decRef();
}
return 0;
throw new UnsupportedOperationException();
}
- @Override boolean doTryToCompletePhase(final ModelProcessingPhase phase) {
+ @Override
+ boolean doTryToCompletePhase(final byte executionOrder) {
throw new UnsupportedOperationException();
}
*/
@Override
@Deprecated
- public Optional<SchemaPath> schemaPath() {
+ public SchemaPath schemaPath() {
return substatementGetSchemaPath();
}