Class YangFeature<F extends YangFeature<F,R>,R extends DataRoot<R>>

java.lang.Object
org.opendaylight.yangtools.binding.YangFeature<F,R>
All Implemented Interfaces:
BindingContract<F>

@NonNullByDefault public abstract non-sealed class YangFeature<F extends YangFeature<F,R>,R extends DataRoot<R>> extends Object implements BindingContract<F>
Abstract base class for classes generated for YANG feature statements.
  • Constructor Details

    • YangFeature

      public YangFeature()
  • Method Details

    • implementedInterface

      public abstract Class<F> implementedInterface()
      Description copied from interface: BindingContract
      Return the interface implemented by this object. This method differs from Object.getClass() in that it returns the interface contract, not a concrete implementation class.
      Specified by:
      implementedInterface in interface BindingContract<F extends YangFeature<F,R>>
      Returns:
      Implemented contract
    • qname

      public abstract QName qname()
      Return the QName associated with this feature.
      Returns:
      A QName
    • definingModule

      public abstract Class<R> definingModule()
      Return the module which defines this feature.
      Returns:
      A module's DataRoot class
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • toString

      public final String toString()
      Overrides:
      toString in class Object