Interface TagSet

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.Augmentable<TagSet>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<TagSet>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, org.opendaylight.yangtools.yang.binding.Identifiable<TagSetKey>

    public interface TagSet
    extends org.opendaylight.yangtools.yang.binding.ChildOf<TagSet>, org.opendaylight.yangtools.yang.binding.Augmentable<TagSet>, org.opendaylight.yangtools.yang.binding.Identifiable<TagSetKey>
    Definitions for tag sets

    This class represents the following YANG schema fragment defined in module openconfig-routing-policy

     list tag-set {
       key tag-set-name;
       leaf tag-set-name {
         type string;
       }
       list tag {
         key value;
         leaf value {
           type pt:tag-type;
         }
       }
     }
     
    The schema path to identify an instance is openconfig-routing-policy/tag-set/tag-set

    To create instances of this class use TagSetBuilder.

    See Also:
    TagSetBuilder, TagSetKey
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        default Class<TagSet> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getTagSetName

        @Nullable String getTagSetName()
        name / label of the tag set -- this is used to reference the set in match conditions
        Returns:
        java.lang.String tagSetName, or null if not present
      • getTag

        @Nullable List<Tag> getTag()
        list of tags that are part of the tag set
        Returns:
        java.util.List tag, or null if not present
      • nonnullTag

        default @NonNull List<Tag> nonnullTag()
        Returns:
        java.util.List tag, or an empty list if it is not present
      • key

        TagSetKey key()
        Specified by:
        key in interface org.opendaylight.yangtools.yang.binding.Identifiable<TagSetKey>