* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.anydata;
+package org.opendaylight.yangtools.yang.model.ri.stmt.impl.eff;
import com.google.common.collect.ImmutableList;
import org.eclipse.jdt.annotation.NonNull;
/**
* YANG 1.1 AnyData effective statement implementation.
*/
-final class RegularAnydataEffectiveStatement extends EmptyAnydataEffectiveStatement {
+public final class RegularAnydataEffectiveStatement extends EmptyAnydataEffectiveStatement {
private final @NonNull Object substatements;
- RegularAnydataEffectiveStatement(final AnydataStatement declared, final Immutable path, final int flags,
+ public RegularAnydataEffectiveStatement(final AnydataStatement declared, final Immutable path, final int flags,
final @Nullable AnydataSchemaNode original,
final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
super(declared, path, flags, original);
this.substatements = maskList(substatements);
}
+ public RegularAnydataEffectiveStatement(final RegularAnydataEffectiveStatement original, final Immutable path,
+ final int flags, final @Nullable AnydataSchemaNode newOriginal) {
+ super(original, path, flags, newOriginal);
+ this.substatements = original.substatements;
+ }
+
@Override
public ImmutableList<? extends EffectiveStatement<?, ?>> effectiveSubstatements() {
return unmaskList(substatements);