Interface UserErrorSpec

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    UserError

    @Generated("mdsal-binding-generator")
    public interface UserErrorSpec
    extends org.opendaylight.yangtools.yang.binding.DataObject

    This class represents the following YANG schema fragment defined in module rsvp

     grouping user-error-spec {
       leaf enterprise {
         type iana:enterprise-number;
       }
       leaf sub-org {
         type uint8;
         default 0;
       }
       leaf value {
         type uint16;
       }
       leaf description {
         type string;
         default "";
       }
       container subobjects;
     }
     
    The schema path to identify an instance is rsvpuser-error-spec
    • Field Detail

      • QNAME

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

      • implementedInterface

        Class<? extends UserErrorSpec> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getEnterprise

        EnterpriseNumber getEnterprise()
        Return enterprise, or null if it is not present.
        Returns:
        EnterpriseNumber enterprise, or null if it is not present.
      • requireEnterprise

        default @NonNull EnterpriseNumber requireEnterprise()
        Return enterprise, guaranteed to be non-null.
        Returns:
        EnterpriseNumber enterprise, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if enterprise is not present
      • getSubOrg

        org.opendaylight.yangtools.yang.common.Uint8 getSubOrg()
        Return subOrg, or null if it is not present.
        Returns:
        Uint8 subOrg, or null if it is not present.
      • requireSubOrg

        default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireSubOrg()
        Return subOrg, guaranteed to be non-null.
        Returns:
        Uint8 subOrg, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if subOrg is not present
      • getValue

        org.opendaylight.yangtools.yang.common.Uint16 getValue()
        Return value, or null if it is not present.
        Returns:
        Uint16 value, or null if it is not present.
      • requireValue

        default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireValue()
        Return value, guaranteed to be non-null.
        Returns:
        Uint16 value, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if value is not present
      • getDescription

        String getDescription()
        Return description, or null if it is not present.
        Returns:
        String description, or null if it is not present.
      • requireDescription

        default @NonNull String requireDescription()
        Return description, guaranteed to be non-null.
        Returns:
        String description, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if description is not present
      • getSubobjects

        Subobjects getSubobjects()
        Return subobjects, or null if it is not present.
        Returns:
        Subobjects subobjects, or null if it is not present.