Remove yang-model-immutable 33/80633/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 27 Feb 2019 15:47:52 +0000 (16:47 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 28 Feb 2019 13:34:25 +0000 (13:34 +0000)
This is an unfinished component, remove it as it will need to be
reimplemented from scratch.

Change-Id: Ic55be7d3b66ea23d6a5363e1d6529542c394fb16
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
13 files changed:
artifacts/pom.xml
docs/pom.xml
yang/pom.xml
yang/yang-model-immutable/pom.xml [deleted file]
yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractChoiceCaseNode.java [deleted file]
yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractContainerSchemaNode.java [deleted file]
yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractDataNodeContainer.java [deleted file]
yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractListSchemaNode.java [deleted file]
yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractModule.java [deleted file]
yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractNotificationDefinition.java [deleted file]
yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractSchemaContext.java [deleted file]
yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/CommonContainerSchemaNode.java [deleted file]
yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/package-info.java [deleted file]

index d2cff423f33ed511d8949fdaa22d586352ccea04..8f166773b4303ed9c9b9ff943719526b40dd0c4b 100644 (file)
                 <artifactId>yang-model-export</artifactId>
                 <version>3.0.0-SNAPSHOT</version>
             </dependency>
-            <dependency>
-                <groupId>org.opendaylight.yangtools</groupId>
-                <artifactId>yang-model-immutable</artifactId>
-                <version>3.0.0-SNAPSHOT</version>
-            </dependency>
             <dependency>
                 <groupId>org.opendaylight.yangtools</groupId>
                 <artifactId>yang-model-util</artifactId>
index 521dda6046bf04a71734a347051c489c7633b261..8d4f412b22e1c9b1ce91588c8b326b88cc6fe5de 100644 (file)
             <groupId>org.opendaylight.yangtools</groupId>
             <artifactId>yang-model-export</artifactId>
         </dependency>
-        <dependency>
-            <groupId>org.opendaylight.yangtools</groupId>
-            <artifactId>yang-model-immutable</artifactId>
-        </dependency>
         <dependency>
             <groupId>org.opendaylight.yangtools</groupId>
             <artifactId>yang-model-util</artifactId>
index 836bcf6d57f654b0f62d01abd3be4503d3ae4ce0..73c9914334a1884cf3cfc2452fe7aa64eca7afdb 100644 (file)
@@ -36,7 +36,6 @@
         <module>yang-maven-plugin-spi</module>
         <module>yang-model-api</module>
         <module>yang-model-export</module>
-        <module>yang-model-immutable</module>
         <module>yang-model-util</module>
 
         <!-- YANG XPath API and implementation -->
diff --git a/yang/yang-model-immutable/pom.xml b/yang/yang-model-immutable/pom.xml
deleted file mode 100644 (file)
index 497d7ea..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
-
- This program and the accompanying materials are made available under the
- terms of the Eclipse Public License v1.0 which accompanies this distribution,
- and is available at http://www.eclipse.org/legal/epl-v10.html
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <modelVersion>4.0.0</modelVersion>
-    <parent>
-        <groupId>org.opendaylight.yangtools</groupId>
-        <artifactId>bundle-parent</artifactId>
-        <version>3.0.0-SNAPSHOT</version>
-        <relativePath>../../bundle-parent</relativePath>
-    </parent>
-
-    <artifactId>yang-model-immutable</artifactId>
-    <packaging>bundle</packaging>
-    <name>${project.artifactId}</name>
-    <description>${project.artifactId}</description>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.opendaylight.yangtools</groupId>
-            <artifactId>yang-model-api</artifactId>
-        </dependency>
-
-        <dependency>
-          <groupId>org.immutables</groupId>
-          <artifactId>value</artifactId>
-        </dependency>
-    </dependencies>
-</project>
diff --git a/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractChoiceCaseNode.java b/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractChoiceCaseNode.java
deleted file mode 100644 (file)
index 363b45b..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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.model.immutable;
-
-import org.immutables.value.Value;
-import org.opendaylight.yangtools.yang.model.api.CaseSchemaNode;
-
-@Value.Immutable
-abstract class AbstractChoiceCaseNode extends AbstractDataNodeContainer implements CaseSchemaNode {
-
-}
diff --git a/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractContainerSchemaNode.java b/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractContainerSchemaNode.java
deleted file mode 100644 (file)
index b492463..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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.model.immutable;
-
-import org.immutables.value.Value;
-import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
-
-@Value.Immutable
-abstract class AbstractContainerSchemaNode extends CommonContainerSchemaNode implements ContainerSchemaNode {
-
-}
diff --git a/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractDataNodeContainer.java b/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractDataNodeContainer.java
deleted file mode 100644 (file)
index 6938022..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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.model.immutable;
-
-import static java.util.Objects.requireNonNull;
-
-import java.util.Collection;
-import java.util.Map;
-import java.util.Optional;
-import org.opendaylight.yangtools.yang.common.QName;
-import org.opendaylight.yangtools.yang.model.api.DataNodeContainer;
-import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
-
-abstract class AbstractDataNodeContainer implements DataNodeContainer {
-
-    abstract Map<QName, DataSchemaNode> children();
-
-    @Override
-    public final Collection<DataSchemaNode> getChildNodes() {
-        return children().values();
-    }
-
-    @Override
-    public final Optional<DataSchemaNode> findDataChildByName(final QName name) {
-        return Optional.ofNullable(children().get(requireNonNull(name)));
-    }
-}
diff --git a/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractListSchemaNode.java b/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractListSchemaNode.java
deleted file mode 100644 (file)
index ce2c246..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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.model.immutable;
-
-import org.immutables.value.Value;
-import org.opendaylight.yangtools.yang.model.api.ListSchemaNode;
-
-@Value.Immutable
-abstract class AbstractListSchemaNode extends AbstractDataNodeContainer implements ListSchemaNode {
-
-}
diff --git a/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractModule.java b/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractModule.java
deleted file mode 100644 (file)
index f01ac25..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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.model.immutable;
-
-import org.immutables.value.Value;
-import org.opendaylight.yangtools.yang.model.api.Module;
-
-@Value.Immutable
-abstract class AbstractModule extends AbstractDataNodeContainer implements Module {
-
-}
diff --git a/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractNotificationDefinition.java b/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractNotificationDefinition.java
deleted file mode 100644 (file)
index 3a2d54e..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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.model.immutable;
-
-import org.immutables.value.Value;
-import org.opendaylight.yangtools.yang.model.api.NotificationDefinition;
-
-@Value.Immutable
-abstract class AbstractNotificationDefinition extends AbstractDataNodeContainer implements NotificationDefinition {
-
-}
diff --git a/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractSchemaContext.java b/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/AbstractSchemaContext.java
deleted file mode 100644 (file)
index c660347..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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.model.immutable;
-
-import java.util.Optional;
-import org.immutables.value.Value;
-import org.opendaylight.yangtools.yang.common.QNameModule;
-import org.opendaylight.yangtools.yang.common.Revision;
-import org.opendaylight.yangtools.yang.model.api.Module;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-
-@Value.Immutable
-abstract class AbstractSchemaContext extends CommonContainerSchemaNode implements SchemaContext {
-
-    @Override
-    public Optional<Module> findModule(final QNameModule qnameModule) {
-        throw new UnsupportedOperationException("Not implemented");
-    }
-
-    @Override
-    public Optional<Module> findModule(final String name, final Optional<Revision> revision) {
-        throw new UnsupportedOperationException("Not implemented");
-    }
-}
diff --git a/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/CommonContainerSchemaNode.java b/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/CommonContainerSchemaNode.java
deleted file mode 100644 (file)
index 83f39f0..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * 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.model.immutable;
-
-import org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode;
-
-/**
- * Common abstract class capturing {@link AbstractDataNodeContainer} and {@link ContainerSchemaNode}.
- *
- * @author Robert Varga
- */
-abstract class CommonContainerSchemaNode extends AbstractDataNodeContainer implements ContainerSchemaNode {
-
-}
diff --git a/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/package-info.java b/yang/yang-model-immutable/src/main/java/org/opendaylight/yangtools/yang/model/immutable/package-info.java
deleted file mode 100644 (file)
index 854983d..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-/**
- * Generated immutable implementations for org.opendaylight.yangtools.yang.model.api interfaces.
- *
- * @author Robert Varga
- */
-@Include(value = {
-        org.opendaylight.yangtools.yang.model.api.ActionDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.AnyDataSchemaNode.class,
-        org.opendaylight.yangtools.yang.model.api.AnyXmlSchemaNode.class,
-        org.opendaylight.yangtools.yang.model.api.ExtensionDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.FeatureDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.IdentitySchemaNode.class,
-        org.opendaylight.yangtools.yang.model.api.LeafListSchemaNode.class,
-        org.opendaylight.yangtools.yang.model.api.LeafSchemaNode.class,
-        org.opendaylight.yangtools.yang.model.api.ModuleImport.class,
-        org.opendaylight.yangtools.yang.model.api.RpcDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.BinaryTypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.BitsTypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.BitsTypeDefinition.Bit.class,
-        org.opendaylight.yangtools.yang.model.api.type.BooleanTypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.DecimalTypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.EmptyTypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.EnumTypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.EnumTypeDefinition.EnumPair.class,
-        org.opendaylight.yangtools.yang.model.api.type.IdentityrefTypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.Int8TypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.Int16TypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.Int32TypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.Int64TypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.InstanceIdentifierTypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.LeafrefTypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.LengthConstraint.class,
-        org.opendaylight.yangtools.yang.model.api.type.PatternConstraint.class,
-        org.opendaylight.yangtools.yang.model.api.type.RangeConstraint.class,
-        org.opendaylight.yangtools.yang.model.api.type.StringTypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.UnionTypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.Uint8TypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.Uint16TypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.Uint32TypeDefinition.class,
-        org.opendaylight.yangtools.yang.model.api.type.Uint64TypeDefinition.class,
-})
-@Style(
-    builderVisibility =  BuilderVisibility.PUBLIC,
-    strictBuilder = true,
-    visibility = ImplementationVisibility.PRIVATE,
-    allowedClasspathAnnotations = { Override.class,
-            SuppressWarnings.class, SuppressFBWarnings.class,
-            NotThreadSafe.class, Immutable.class,
-            Generated.class })
-package org.opendaylight.yangtools.yang.model.immutable;
-
-import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
-import javax.annotation.concurrent.Immutable;
-import javax.annotation.concurrent.NotThreadSafe;
-import org.immutables.value.Generated;
-import org.immutables.value.Value.Include;
-import org.immutables.value.Value.Style;
-import org.immutables.value.Value.Style.BuilderVisibility;
-import org.immutables.value.Value.Style.ImplementationVisibility;