All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendaylight.yangtools.binding.Annotation Maven / Gradle / Ivy

/*
 * 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
 */
package org.opendaylight.yangtools.binding;

import com.google.common.annotations.Beta;

/**
 * Base marker interface implemented by all YANG-defined annotations through the facilities provided by
 * RFC7952. This interface is not meant to be directly implemented,
 * but rather serves as a hook for generated code.
 *
 * 

* An Annotation is a cross between a {@link TypeObject}, a {@link DataObject} and an {@link Augmentation}: *

    *
  • Similar to a {@code TypeObject} it can only hold a single scalar value, which has to be present.
  • *
  • Similar to most {@code TypeObject}s, the value is available through {@link #getValue()} method
  • *
  • Similar to a {@code DataObject}, the return type of {@link #getValue()} can point to a generated * {@code TypeObject}, not only a base YANG type
  • *
  • Similar to an {@code Augmentation} it can be attached to other objects via {@link AnnotationAware} interface. * Unlike augmentations, though, annotations do not have a strict tie to the object they attach to.
  • *
* * @param Value type */ @Beta public non-sealed interface Annotation extends BindingObject, ValueAware { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy