Interface RuntimeTypeContainer
- 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
An object containing
RuntimeTypes.-
Method Summary
Modifier and TypeMethodDescription@Nullable GeneratedRuntimeTypebindingChild(org.opendaylight.yangtools.binding.model.api.JavaTypeName typeName) Look up a child by theJavaTypeNameof its generated class.default @Nullable RuntimeTypebindingChild(org.opendaylight.yangtools.binding.model.api.Type type) @Nullable RuntimeTypeschemaTreeChild(QName qname)
-
Method Details
-
schemaTreeChild
Look up a childRuntimeTypeby itsschema treeQName. Note the returned child does not necessarily match usual data addressing rules and will resolve non-data tree statements, such asnotification,rpcandaction. 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
augmentstatement. Those are exposed indirectly as children ofAugmentRuntimeTypes returned viaAugmentableRuntimeType.augments(), if applicable.- Parameters:
qname-schema nodeidentifier- Returns:
- Corresponding
RuntimeType, or null if not found - Throws:
NullPointerException- ifqnameis null
-
bindingChild
@Nullable GeneratedRuntimeType bindingChild(org.opendaylight.yangtools.binding.model.api.JavaTypeName typeName) Look up a child by theJavaTypeNameof its generated class. This lookup, while very similar toschemaTreeChild(QName), does not precisely match theschema treenor does it matchYangInstanceIdentifieraddressing. It will resolve constructs generated forchoice,case,notification,rpc,actionand most notably forgrouping,identity,typedefandaugmentstatements. 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- iftypeNameis null
-
bindingChild
-