This interface exposes a single method, which in turn is only used
by mdsal-binding-generator. That component should be able to work
without this method, hence we deprecate it with the intent to remove
as soon as practical.
JIRA: YANGTOOLS-1350
Change-Id: Ie7bd65e5301012bcb24703bd36c0a8d149f62d74
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 files changed:
/**
* Schema Node which may be derived from other schema node using augmentation or uses statement.
/**
* Schema Node which may be derived from other schema node using augmentation or uses statement.
+ *
+ * @deprecated This interface's sole purpose is to aid MD-SAL binding generator, which is now in a position to provide
+ * to implement its logic without this interface.
-// FIXME: 8.0.0: refactor this interface to take into account CopyableNode and AddedByUsesAware
+@Deprecated(since = "7.0.9", forRemoval = true)
public interface DerivableSchemaNode<T extends DerivableSchemaNode<T>> extends DataSchemaNode {
/**
public interface DerivableSchemaNode<T extends DerivableSchemaNode<T>> extends DataSchemaNode {
/**
- * If this node is added by uses, returns original node definition from
- * grouping where it was defined.
+ * If this node is added by uses, returns original node definition from grouping where it was defined.
*
* @return original node definition from grouping if this node is added by uses, absent otherwise
*/
*
* @return original node definition from grouping if this node is added by uses, absent otherwise
*/
AbstractNonEmptyLeafListEffectiveStatement(final AbstractNonEmptyLeafListEffectiveStatement originalEffecive,
final LeafListSchemaNode original, final QName argument, final int flags) {
super(originalEffecive, argument, flags);
AbstractNonEmptyLeafListEffectiveStatement(final AbstractNonEmptyLeafListEffectiveStatement originalEffecive,
final LeafListSchemaNode original, final QName argument, final int flags) {
super(originalEffecive, argument, flags);
- this.elementCountConstraint = originalEffecive.elementCountConstraint;
+ elementCountConstraint = originalEffecive.elementCountConstraint;
this.original = original;
}
AbstractNonEmptyLeafListEffectiveStatement(final EmptyLeafListEffectiveStatement originalEffective,
final LeafListSchemaNode original, final QName argument, final int flags) {
super(originalEffective, argument, flags);
this.original = original;
}
AbstractNonEmptyLeafListEffectiveStatement(final EmptyLeafListEffectiveStatement originalEffective,
final LeafListSchemaNode original, final QName argument, final int flags) {
super(originalEffective, argument, flags);
- this.elementCountConstraint = null;
+ elementCountConstraint = null;
this.original = original;
}
@Override
this.original = original;
}
@Override
+ @Deprecated(since = "7.0.9", forRemoval = true)
public final Optional<LeafListSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
public final Optional<LeafListSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
super(origEffective);
this.argument = requireNonNull(argument);
this.flags = flags;
super(origEffective);
this.argument = requireNonNull(argument);
this.flags = flags;
- this.defaultCase = origEffective.defaultCase;
- this.original = newOriginal;
+ defaultCase = origEffective.defaultCase;
+ original = newOriginal;
+ @Deprecated(since = "7.0.9", forRemoval = true)
public Optional<ChoiceSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
public Optional<ChoiceSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
+ @Deprecated(since = "7.0.9", forRemoval = true)
public Optional<ContainerSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
public Optional<ContainerSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
+ @Deprecated(since = "7.0.9", forRemoval = true)
public Optional<CaseSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
public Optional<CaseSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
+ @Deprecated(since = "7.0.9", forRemoval = true)
public final Optional<AnydataSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
public final Optional<AnydataSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
+ @Deprecated(since = "7.0.9", forRemoval = true)
public final Optional<AnyxmlSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
public final Optional<AnyxmlSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
+ @Deprecated(since = "7.0.9", forRemoval = true)
public Optional<LeafSchemaNode> getOriginal() {
return Optional.empty();
}
public Optional<LeafSchemaNode> getOriginal() {
return Optional.empty();
}
+ @Deprecated(since = "7.0.9", forRemoval = true)
public Optional<LeafListSchemaNode> getOriginal() {
return Optional.empty();
}
public Optional<LeafListSchemaNode> getOriginal() {
return Optional.empty();
}
+ @Deprecated(since = "7.0.9", forRemoval = true)
public Optional<ListSchemaNode> getOriginal() {
return Optional.empty();
}
public Optional<ListSchemaNode> getOriginal() {
return Optional.empty();
}
+ @Deprecated(since = "7.0.9", forRemoval = true)
public Optional<LeafSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
public Optional<LeafSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
public RegularListEffectiveStatement(final RegularListEffectiveStatement originalEffective, final QName argument,
final int flags, final ListSchemaNode original) {
super(originalEffective, argument, flags);
public RegularListEffectiveStatement(final RegularListEffectiveStatement originalEffective, final QName argument,
final int flags, final ListSchemaNode original) {
super(originalEffective, argument, flags);
- this.elementCountConstraint = originalEffective.elementCountConstraint;
+ elementCountConstraint = originalEffective.elementCountConstraint;
this.original = original;
}
public RegularListEffectiveStatement(final EmptyListEffectiveStatement originalEffective,
final QName argument, final int flags, final ListSchemaNode original) {
super(originalEffective, argument, flags);
this.original = original;
}
public RegularListEffectiveStatement(final EmptyListEffectiveStatement originalEffective,
final QName argument, final int flags, final ListSchemaNode original) {
super(originalEffective, argument, flags);
- this.elementCountConstraint = null;
+ elementCountConstraint = null;
this.original = original;
}
@Override
this.original = original;
}
@Override
+ @Deprecated(since = "7.0.9", forRemoval = true)
public Optional<ListSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
public Optional<ListSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
+ @Deprecated(since = "7.0.9", forRemoval = true)
public Optional<CaseSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}
public Optional<CaseSchemaNode> getOriginal() {
return Optional.ofNullable(original);
}