Interface Entity

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.Augmentable<Entity>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<EntityType>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, org.opendaylight.yangtools.yang.binding.Identifiable<EntityKey>

    public interface Entity
    extends org.opendaylight.yangtools.yang.binding.ChildOf<EntityType>, org.opendaylight.yangtools.yang.binding.Augmentable<Entity>, org.opendaylight.yangtools.yang.binding.Identifiable<EntityKey>

    This class represents the following YANG schema fragment defined in module entity-owners

     list entity {
       key id;
       leaf id {
         type instance-identifier;
       }
       leaf owner {
         type string;
       }
       list candidate {
         key name;
         ordered-by user;
         leaf name {
           type string;
         }
       }
     }
     
    The schema path to identify an instance is entity-owners/entity-owners/entity-type/entity

    To create instances of this class use EntityBuilder.

    See Also:
    EntityBuilder, EntityKey
    • Field Detail

      • QNAME

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

      • implementedInterface

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

        @Nullable org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> getId()
        Returns:
        org.opendaylight.yangtools.yang.binding.InstanceIdentifier id, or null if not present
      • getOwner

        @Nullable String getOwner()
        Returns:
        java.lang.String owner, or null if not present
      • getCandidate

        @Nullable List<Candidate> getCandidate()
        Returns:
        java.util.List candidate, or null if not present
      • nonnullCandidate

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

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