<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>
<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>
<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 -->
+++ /dev/null
-<?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>
+++ /dev/null
-/*
- * 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 {
-
-}
+++ /dev/null
-/*
- * 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 {
-
-}
+++ /dev/null
-/*
- * 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)));
- }
-}
+++ /dev/null
-/*
- * 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 {
-
-}
+++ /dev/null
-/*
- * 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 {
-
-}
+++ /dev/null
-/*
- * 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 {
-
-}
+++ /dev/null
-/*
- * 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");
- }
-}
+++ /dev/null
-/*
- * 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 {
-
-}
+++ /dev/null
-/*
- * 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;