All Superinterfaces:
Immutable
All Known Subinterfaces:
ActionRuntimeType, AugmentableRuntimeType, AugmentRuntimeType, BindingRuntimeTypes, CaseRuntimeType, ChoiceRuntimeType, CompositeRuntimeType, ContainerLikeRuntimeType<D,E>, ContainerRuntimeType, GroupingRuntimeType, InputRuntimeType, InvokableRuntimeType, ListRuntimeType, ModuleRuntimeType, NotificationBodyRuntimeType, NotificationRuntimeType, OutputRuntimeType, RpcRuntimeType, YangDataRuntimeType

public interface RuntimeTypeContainer extends Immutable
An object containing RuntimeTypes.
  • Method Details

    • schemaTreeChild

      @Nullable RuntimeType schemaTreeChild(QName qname)
      Look up a child RuntimeType by its schema tree QName. Note the returned child does not necessarily match usual data addressing rules and will resolve non-data tree statements, such as notification, rpc and action. Callers should check the traits exposed by the returned object before accepting it.

      One important omission is this method does not resolve nodes which have been added via augment statement. Those are exposed indirectly as children of AugmentRuntimeTypes returned via AugmentableRuntimeType.augments(), if applicable.

      Parameters:
      qname - schema node identifier
      Returns:
      Corresponding RuntimeType, or null if not found
      Throws:
      NullPointerException - if qname is null
    • bindingChild

      @Nullable GeneratedRuntimeType bindingChild(org.opendaylight.yangtools.binding.model.api.JavaTypeName typeName)
      Look up a child by the JavaTypeName of its generated class. This lookup, while very similar to schemaTreeChild(QName), does not precisely match the schema tree nor does it match YangInstanceIdentifier addressing. It will resolve constructs generated for choice, case, notification, rpc, action and most notably for grouping, identity, typedef and augment statements. Callers should check the traits exposed by the returned object before accepting it.
      Parameters:
      typeName - Java class name of the generated class.
      Returns:
      Corresponding RuntimeType, or null if not found
      Throws:
      NullPointerException - if typeName is null
    • bindingChild

      default @Nullable RuntimeType bindingChild(org.opendaylight.yangtools.binding.model.api.Type type)