import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode;
-import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils;
import com.google.common.base.Optional;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
private final SchemaPath path;
boolean augmenting;
- boolean addedByUses;
+ private boolean addedByUses;
ListSchemaNode original;
boolean configuration = true;
ConstraintDefinition constraints;
private void initCopyType(
StmtContext<QName, ListStatement, EffectiveStatement<QName, ListStatement>> ctx) {
- Set<TypeOfCopy> copyTypesFromOriginal = StmtContextUtils.getCopyTypesFromOriginal(ctx);
+ List<TypeOfCopy> copyTypesFromOriginal = ctx.getCopyHistory();
if(copyTypesFromOriginal.contains(TypeOfCopy.ADDED_BY_AUGMENTATION)) {
augmenting = true;
addedByUses = augmenting = true;
}
- if (ctx.getTypeOfCopy() != TypeOfCopy.ORIGINAL) {
+ if (ctx.getOriginalCtx() != null) {
original = (ListSchemaNode) ctx.getOriginalCtx().buildEffective();
}
}