Schema-aware builders do not add much in terms of functionality, as they
are very limited in what they offer in terms of validation (no values)
and are also hard to use, as the corresponding schema needs to be looked
up separately.
Deprecate all entrypoints for removal.
JIRA: YANGTOOLS-1290
Change-Id: Ia4635d17bb5cef125e95ea187d9546de75cf8b31
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 files changed:
return ImmutableLeafNodeBuilder.create();
}
return ImmutableLeafNodeBuilder.create();
}
+ @Deprecated(since = "6.0.7", forRemoval = true)
public static <T> NormalizedNodeBuilder<NodeIdentifier, T, LeafNode<T>> leafBuilder(
final LeafSchemaNode schema) {
return ImmutableLeafNodeSchemaAwareBuilder.create(schema);
public static <T> NormalizedNodeBuilder<NodeIdentifier, T, LeafNode<T>> leafBuilder(
final LeafSchemaNode schema) {
return ImmutableLeafNodeSchemaAwareBuilder.create(schema);
return ImmutableLeafSetEntryNodeBuilder.create();
}
return ImmutableLeafSetEntryNodeBuilder.create();
}
+ @Deprecated(since = "6.0.7", forRemoval = true)
public static <T> NormalizedNodeBuilder<NodeWithValue, T, LeafSetEntryNode<T>> leafSetEntryBuilder(
final LeafListSchemaNode schema) {
return ImmutableLeafSetEntryNodeSchemaAwareBuilder.create(schema);
public static <T> NormalizedNodeBuilder<NodeWithValue, T, LeafSetEntryNode<T>> leafSetEntryBuilder(
final LeafListSchemaNode schema) {
return ImmutableLeafSetEntryNodeSchemaAwareBuilder.create(schema);
return ImmutableAnyXmlNodeBuilder.create();
}
return ImmutableAnyXmlNodeBuilder.create();
}
+ @Deprecated(since = "6.0.7", forRemoval = true)
public static NormalizedNodeBuilder<NodeIdentifier, DOMSource, DOMSourceAnyxmlNode> anyXmlBuilder(
final AnyxmlSchemaNode schema) {
return ImmutableAnyXmlNodeSchemaAwareBuilder.create(schema);
}
public static NormalizedNodeBuilder<NodeIdentifier, DOMSource, DOMSourceAnyxmlNode> anyXmlBuilder(
final AnyxmlSchemaNode schema) {
return ImmutableAnyXmlNodeSchemaAwareBuilder.create(schema);
}
+ @Deprecated(since = "6.0.7", forRemoval = true)
public static DataContainerNodeBuilder<NodeIdentifier, YangModeledAnyXmlNode> yangModeledAnyXmlBuilder(
final YangModeledAnyxmlSchemaNode schema) {
return ImmutableYangModeledAnyXmlNodeBuilder.create(schema);
public static DataContainerNodeBuilder<NodeIdentifier, YangModeledAnyXmlNode> yangModeledAnyXmlBuilder(
final YangModeledAnyxmlSchemaNode schema) {
return ImmutableYangModeledAnyXmlNodeBuilder.create(schema);
return ImmutableOrderedLeafSetNodeBuilder.create();
}
return ImmutableOrderedLeafSetNodeBuilder.create();
}
+ @Deprecated(since = "6.0.7", forRemoval = true)
public static <T> ListNodeBuilder<T, LeafSetEntryNode<T>> orderedLeafSetBuilder(final LeafListSchemaNode schema) {
return ImmutableOrderedLeafSetNodeSchemaAwareBuilder.create(schema);
}
public static <T> ListNodeBuilder<T, LeafSetEntryNode<T>> orderedLeafSetBuilder(final LeafListSchemaNode schema) {
return ImmutableOrderedLeafSetNodeSchemaAwareBuilder.create(schema);
}
return ImmutableLeafSetNodeBuilder.create(node);
}
return ImmutableLeafSetNodeBuilder.create(node);
}
+ @Deprecated(since = "6.0.7", forRemoval = true)
public static <T> ListNodeBuilder<T, LeafSetEntryNode<T>> leafSetBuilder(final LeafListSchemaNode schema) {
return ImmutableLeafSetNodeSchemaAwareBuilder.create(schema);
}
public static <T> ListNodeBuilder<T, LeafSetEntryNode<T>> leafSetBuilder(final LeafListSchemaNode schema) {
return ImmutableLeafSetNodeSchemaAwareBuilder.create(schema);
}
+ @Deprecated(since = "6.0.7", forRemoval = true)
public static <T> ListNodeBuilder<T, LeafSetEntryNode<T>> leafSetBuilder(final LeafListSchemaNode schema,
final LeafSetNode<T> node) {
return ImmutableLeafSetNodeSchemaAwareBuilder.create(schema, node);
public static <T> ListNodeBuilder<T, LeafSetEntryNode<T>> leafSetBuilder(final LeafListSchemaNode schema,
final LeafSetNode<T> node) {
return ImmutableLeafSetNodeSchemaAwareBuilder.create(schema, node);
return ImmutableContainerNodeBuilder.create(node);
}
return ImmutableContainerNodeBuilder.create(node);
}
+ @Deprecated(since = "6.0.7", forRemoval = true)
public static DataContainerNodeBuilder<NodeIdentifier, ContainerNode> containerBuilder(final ContainerLike schema) {
return ImmutableContainerNodeSchemaAwareBuilder.create(schema);
}
public static DataContainerNodeBuilder<NodeIdentifier, ContainerNode> containerBuilder(final ContainerLike schema) {
return ImmutableContainerNodeSchemaAwareBuilder.create(schema);
}
+ @Deprecated(since = "6.0.7", forRemoval = true)
public static DataContainerNodeBuilder<NodeIdentifier, ContainerNode> containerBuilder(final ContainerLike schema,
final ContainerNode node) {
return ImmutableContainerNodeSchemaAwareBuilder.create(schema, node);
public static DataContainerNodeBuilder<NodeIdentifier, ContainerNode> containerBuilder(final ContainerLike schema,
final ContainerNode node) {
return ImmutableContainerNodeSchemaAwareBuilder.create(schema, node);
return ImmutableMapEntryNodeBuilder.create(mapEntryNode);
}
return ImmutableMapEntryNodeBuilder.create(mapEntryNode);
}
+ @Deprecated(since = "6.0.7", forRemoval = true)
public static DataContainerNodeBuilder<NodeIdentifierWithPredicates, MapEntryNode> mapEntryBuilder(
final ListSchemaNode schema) {
return ImmutableMapEntryNodeSchemaAwareBuilder.create(schema);
public static DataContainerNodeBuilder<NodeIdentifierWithPredicates, MapEntryNode> mapEntryBuilder(
final ListSchemaNode schema) {
return ImmutableMapEntryNodeSchemaAwareBuilder.create(schema);
return ImmutableMapNodeBuilder.create(node);
}
return ImmutableMapNodeBuilder.create(node);
}
+ @Deprecated(since = "6.0.7", forRemoval = true)
public static CollectionNodeBuilder<MapEntryNode, MapNode> mapBuilder(final ListSchemaNode schema) {
return ImmutableMapNodeSchemaAwareBuilder.create(schema);
}
public static CollectionNodeBuilder<MapEntryNode, MapNode> mapBuilder(final ListSchemaNode schema) {
return ImmutableMapNodeSchemaAwareBuilder.create(schema);
}
+ @Deprecated(since = "6.0.7", forRemoval = true)
public static CollectionNodeBuilder<MapEntryNode, MapNode> mapBuilder(final ListSchemaNode schema,
final MapNode node) {
return ImmutableMapNodeSchemaAwareBuilder.create(schema, node);
public static CollectionNodeBuilder<MapEntryNode, MapNode> mapBuilder(final ListSchemaNode schema,
final MapNode node) {
return ImmutableMapNodeSchemaAwareBuilder.create(schema, node);
return ImmutableAugmentationNodeBuilder.create();
}
return ImmutableAugmentationNodeBuilder.create();
}
+ @Deprecated(since = "6.0.7", forRemoval = true)
public static DataContainerNodeBuilder<AugmentationIdentifier, AugmentationNode> augmentationBuilder(
final AugmentationSchemaNode schema) {
return ImmutableAugmentationNodeSchemaAwareBuilder.create(schema);
public static DataContainerNodeBuilder<AugmentationIdentifier, AugmentationNode> augmentationBuilder(
final AugmentationSchemaNode schema) {
return ImmutableAugmentationNodeSchemaAwareBuilder.create(schema);
return ImmutableChoiceNodeBuilder.create();
}
return ImmutableChoiceNodeBuilder.create();
}
+ @Deprecated(since = "6.0.7", forRemoval = true)
public static DataContainerNodeBuilder<NodeIdentifier, ChoiceNode> choiceBuilder(final ChoiceSchemaNode schema) {
return ImmutableChoiceNodeSchemaAwareBuilder.create(schema);
}
public static DataContainerNodeBuilder<NodeIdentifier, ChoiceNode> choiceBuilder(final ChoiceSchemaNode schema) {
return ImmutableChoiceNodeSchemaAwareBuilder.create(schema);
}
import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.NormalizedNodeBuilder;
import org.opendaylight.yangtools.yang.model.api.AnyxmlSchemaNode;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.NormalizedNodeBuilder;
import org.opendaylight.yangtools.yang.model.api.AnyxmlSchemaNode;
+@Deprecated(since = "6.0.7", forRemoval = true)
public final class ImmutableAnyXmlNodeSchemaAwareBuilder extends ImmutableAnyXmlNodeBuilder {
public final class ImmutableAnyXmlNodeSchemaAwareBuilder extends ImmutableAnyXmlNodeBuilder {
private ImmutableAnyXmlNodeSchemaAwareBuilder(final AnyxmlSchemaNode schema) {
super.withNodeIdentifier(NodeIdentifier.create(schema.getQName()));
}
private ImmutableAnyXmlNodeSchemaAwareBuilder(final AnyxmlSchemaNode schema) {
super.withNodeIdentifier(NodeIdentifier.create(schema.getQName()));
}
import org.opendaylight.yangtools.yang.data.util.DataSchemaContextNode;
import org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode;
import org.opendaylight.yangtools.yang.data.util.DataSchemaContextNode;
import org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode;
+@Deprecated(since = "6.0.7", forRemoval = true)
public class ImmutableAugmentationNodeSchemaAwareBuilder extends ImmutableAugmentationNodeBuilder {
public class ImmutableAugmentationNodeSchemaAwareBuilder extends ImmutableAugmentationNodeBuilder {
private final DataNodeContainerValidator validator;
protected ImmutableAugmentationNodeSchemaAwareBuilder(final AugmentationSchemaNode schema) {
private final DataNodeContainerValidator validator;
protected ImmutableAugmentationNodeSchemaAwareBuilder(final AugmentationSchemaNode schema) {
import org.opendaylight.yangtools.yang.model.api.CaseSchemaNode;
import org.opendaylight.yangtools.yang.model.api.ChoiceSchemaNode;
import org.opendaylight.yangtools.yang.model.api.CaseSchemaNode;
import org.opendaylight.yangtools.yang.model.api.ChoiceSchemaNode;
+@Deprecated(since = "6.0.7", forRemoval = true)
public class ImmutableChoiceNodeSchemaAwareBuilder extends ImmutableChoiceNodeBuilder {
public class ImmutableChoiceNodeSchemaAwareBuilder extends ImmutableChoiceNodeBuilder {
private final ChoiceSchemaNode schema;
private DataNodeContainerValidator validator;
private final ChoiceSchemaNode schema;
private DataNodeContainerValidator validator;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.valid.DataNodeContainerValidator;
import org.opendaylight.yangtools.yang.model.api.ContainerLike;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.valid.DataNodeContainerValidator;
import org.opendaylight.yangtools.yang.model.api.ContainerLike;
+@Deprecated(since = "6.0.7", forRemoval = true)
public final class ImmutableContainerNodeSchemaAwareBuilder extends ImmutableContainerNodeBuilder {
private final DataNodeContainerValidator validator;
public final class ImmutableContainerNodeSchemaAwareBuilder extends ImmutableContainerNodeBuilder {
private final DataNodeContainerValidator validator;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.NormalizedNodeBuilder;
import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.NormalizedNodeBuilder;
import org.opendaylight.yangtools.yang.model.api.LeafSchemaNode;
+@Deprecated(since = "6.0.7", forRemoval = true)
public final class ImmutableLeafNodeSchemaAwareBuilder<T> extends ImmutableLeafNodeBuilder<T> {
private ImmutableLeafNodeSchemaAwareBuilder(final LeafSchemaNode schema) {
super.withNodeIdentifier(NodeIdentifier.create(schema.getQName()));
public final class ImmutableLeafNodeSchemaAwareBuilder<T> extends ImmutableLeafNodeBuilder<T> {
private ImmutableLeafNodeSchemaAwareBuilder(final LeafSchemaNode schema) {
super.withNodeIdentifier(NodeIdentifier.create(schema.getQName()));
import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.NormalizedNodeBuilder;
import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.api.NormalizedNodeBuilder;
import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
+@Deprecated(since = "6.0.7", forRemoval = true)
public final class ImmutableLeafSetEntryNodeSchemaAwareBuilder<T> extends ImmutableLeafSetEntryNodeBuilder<T> {
private final LeafListSchemaNode schema;
public final class ImmutableLeafSetEntryNodeSchemaAwareBuilder<T> extends ImmutableLeafSetEntryNodeBuilder<T> {
private final LeafListSchemaNode schema;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.valid.DataValidationException;
import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.valid.DataValidationException;
import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
+@Deprecated(since = "6.0.7", forRemoval = true)
public final class ImmutableLeafSetNodeSchemaAwareBuilder<T> extends ImmutableLeafSetNodeBuilder<T> {
public final class ImmutableLeafSetNodeSchemaAwareBuilder<T> extends ImmutableLeafSetNodeBuilder<T> {
private final LeafListSchemaNode schema;
private ImmutableLeafSetNodeSchemaAwareBuilder(final LeafListSchemaNode schema) {
private final LeafListSchemaNode schema;
private ImmutableLeafSetNodeSchemaAwareBuilder(final LeafListSchemaNode schema) {
import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.valid.DataValidationException.IllegalListKeyException;
import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.valid.DataValidationException.IllegalListKeyException;
import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
+@Deprecated(since = "6.0.7", forRemoval = true)
public final class ImmutableMapEntryNodeSchemaAwareBuilder extends ImmutableMapEntryNodeBuilder {
public final class ImmutableMapEntryNodeSchemaAwareBuilder extends ImmutableMapEntryNodeBuilder {
private final ListSchemaNode schema;
private final DataNodeContainerValidator validator;
private final ListSchemaNode schema;
private final DataNodeContainerValidator validator;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.valid.DataValidationException;
import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.valid.DataValidationException;
import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
+@Deprecated(since = "6.0.7", forRemoval = true)
public class ImmutableMapNodeSchemaAwareBuilder extends ImmutableMapNodeBuilder {
private final ListSchemaNode schema;
public class ImmutableMapNodeSchemaAwareBuilder extends ImmutableMapNodeBuilder {
private final ListSchemaNode schema;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.valid.DataValidationException;
import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.valid.DataValidationException;
import org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode;
+@Deprecated(since = "6.0.7", forRemoval = true)
public final class ImmutableOrderedLeafSetNodeSchemaAwareBuilder<T> extends ImmutableOrderedLeafSetNodeBuilder<T> {
public final class ImmutableOrderedLeafSetNodeSchemaAwareBuilder<T> extends ImmutableOrderedLeafSetNodeBuilder<T> {
private final LeafListSchemaNode schema;
private ImmutableOrderedLeafSetNodeSchemaAwareBuilder(final LeafListSchemaNode schema) {
private final LeafListSchemaNode schema;
private ImmutableOrderedLeafSetNodeSchemaAwareBuilder(final LeafListSchemaNode schema) {
import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.valid.DataValidationException;
import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
import org.opendaylight.yangtools.yang.data.impl.schema.builder.impl.valid.DataValidationException;
import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
+@Deprecated(since = "6.0.7", forRemoval = true)
public class ImmutableOrderedMapNodeSchemaAwareBuilder extends ImmutableOrderedMapNodeBuilder {
private final ListSchemaNode schema;
public class ImmutableOrderedMapNodeSchemaAwareBuilder extends ImmutableOrderedMapNodeBuilder {
private final ListSchemaNode schema;
import org.opendaylight.yangtools.yang.data.impl.schema.nodes.AbstractImmutableDataContainerNode;
import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
import org.opendaylight.yangtools.yang.data.impl.schema.nodes.AbstractImmutableDataContainerNode;
import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
+@Deprecated(since = "6.0.7", forRemoval = true)
public final class ImmutableYangModeledAnyXmlNodeBuilder extends
AbstractImmutableDataContainerNodeBuilder<NodeIdentifier, YangModeledAnyXmlNode> {
public final class ImmutableYangModeledAnyXmlNodeBuilder extends
AbstractImmutableDataContainerNodeBuilder<NodeIdentifier, YangModeledAnyXmlNode> {
private final ContainerSchemaNode contentSchema;
private ImmutableYangModeledAnyXmlNodeBuilder(final YangModeledAnyxmlSchemaNode yangModeledAnyXMLSchemaNode) {
private final ContainerSchemaNode contentSchema;
private ImmutableYangModeledAnyXmlNodeBuilder(final YangModeledAnyxmlSchemaNode yangModeledAnyXMLSchemaNode) {