<groupId>org.opendaylight.yangtools</groupId>
<artifactId>concepts</artifactId>
</dependency>
- <dependency>
- <groupId>org.kohsuke.metainf-services</groupId>
- <artifactId>metainf-services</artifactId>
- </dependency>
</dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- <configuration>
- <instructions>
- <Automatic-Module-Name>org.opendaylight.yangtools.yang.common</Automatic-Module-Name>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
</project>
--- /dev/null
+/*
+ * Copyright (c) 2019 PANTHEON.tech, s.r.o. 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
+ */
+import org.opendaylight.yangtools.yang.common.CanonicalValueSupport;
+import org.opendaylight.yangtools.yang.common.Decimal64;
+import org.opendaylight.yangtools.yang.common.Uint16;
+import org.opendaylight.yangtools.yang.common.Uint32;
+import org.opendaylight.yangtools.yang.common.Uint64;
+import org.opendaylight.yangtools.yang.common.Uint8;
+
+module org.opendaylight.yangtools.yang.common {
+ exports org.opendaylight.yangtools.yang.common;
+
+ provides CanonicalValueSupport with
+ Decimal64.Support,
+ Uint8.Support,
+ Uint16.Support,
+ Uint32.Support,
+ Uint64.Support;
+
+ requires transitive org.opendaylight.yangtools.concepts;
+ requires org.slf4j;
+
+ // Annotations
+ requires static com.github.spotbugs.annotations;
+ requires static org.eclipse.jdt.annotation;
+ requires static org.checkerframework.checker.qual;
+}
import java.util.Optional;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
-import org.kohsuke.MetaInfServices;
import org.opendaylight.yangtools.concepts.Variant;
/**
@Beta
@NonNullByDefault
public class Decimal64 extends Number implements CanonicalValue<Decimal64> {
- @MetaInfServices(value = CanonicalValueSupport.class)
public static final class Support extends AbstractCanonicalValueSupport<Decimal64> {
public Support() {
super(Decimal64.class);
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
-import org.kohsuke.MetaInfServices;
import org.opendaylight.yangtools.concepts.Variant;
/**
@Beta
@NonNullByDefault
public class Uint16 extends Number implements CanonicalValue<Uint16> {
- @MetaInfServices(value = CanonicalValueSupport.class)
public static final class Support extends AbstractCanonicalValueSupport<Uint16> {
public Support() {
super(Uint16.class);
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
-import org.kohsuke.MetaInfServices;
import org.opendaylight.yangtools.concepts.Variant;
/**
@Beta
@NonNullByDefault
public class Uint32 extends Number implements CanonicalValue<Uint32> {
- @MetaInfServices(value = CanonicalValueSupport.class)
public static final class Support extends AbstractCanonicalValueSupport<Uint32> {
public Support() {
super(Uint32.class);
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
-import org.kohsuke.MetaInfServices;
import org.opendaylight.yangtools.concepts.Variant;
/**
@Beta
@NonNullByDefault
public class Uint64 extends Number implements CanonicalValue<Uint64> {
- @MetaInfServices(value = CanonicalValueSupport.class)
public static final class Support extends AbstractCanonicalValueSupport<Uint64> {
public Support() {
super(Uint64.class);
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
-import org.kohsuke.MetaInfServices;
import org.opendaylight.yangtools.concepts.Variant;
/**
@Beta
@NonNullByDefault
public class Uint8 extends Number implements CanonicalValue<Uint8> {
- @MetaInfServices(value = CanonicalValueSupport.class)
public static final class Support extends AbstractCanonicalValueSupport<Uint8> {
public Support() {
super(Uint8.class);