本文整理了Java中org.opendaylight.yangtools.yang.common.YangConstants.operationInputQName()
方法的一些代码示例,展示了YangConstants.operationInputQName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangConstants.operationInputQName()
方法的具体详情如下:
包路径:org.opendaylight.yangtools.yang.common.YangConstants
类名称:YangConstants
方法名:operationInputQName
[英]Create a QName representing the 'input' statement of an operation (RPC or action) within specified QNameModule.
[中]在指定的QNameModule中创建一个表示操作(RPC或操作)的“输入”语句的QName。
代码示例来源:origin: org.opendaylight.yangtools/yang-parser-rfc7950
@Override
public final QName parseArgumentValue(final StmtContext<?, ?, ?> ctx, final String value) {
return YangConstants.operationInputQName(StmtContextUtils.getRootModuleQName(ctx));
}
代码示例来源:origin: org.opendaylight.mdsal/mdsal-binding-dom-adapter
<T extends RpcService> BindingDOMRpcImplementationAdapter(final BindingNormalizedNodeCodecRegistry codec,
final Class<T> type, final Map<SchemaPath, Method> localNameToMethod, final T delegate) {
try {
this.invoker = SERVICE_INVOKERS.get(type, () -> {
final Map<QName, Method> map = new HashMap<>();
for (Entry<SchemaPath, Method> e : localNameToMethod.entrySet()) {
map.put(e.getKey().getLastComponent(), e.getValue());
}
return RpcServiceInvoker.from(map);
});
} catch (ExecutionException e) {
throw new IllegalArgumentException("Failed to create invokers for type " + type, e);
}
this.codec = requireNonNull(codec);
this.delegate = requireNonNull(delegate);
inputQname = YangConstants.operationInputQName(BindingReflections.getQNameModule(type)).intern();
}
代码示例来源:origin: org.opendaylight.mdsal/mdsal-binding-dom-adapter
ActionAdapter(final BindingToNormalizedNodeCodec codec, final DOMActionService delegate,
final Class<? extends Action<?, ?, ?>> type) {
super(codec, delegate);
this.type = requireNonNull(type);
this.schemaPath = getCodec().getActionPath(type);
this.inputName = NodeIdentifier.create(operationInputQName(schemaPath.getLastComponent().getModule()));
}
代码示例来源:origin: org.opendaylight.mdsal/mdsal-binding-dom-codec
/**
* Lazily translates supplied Binding action output into NormalizedNode data.
*
* @param action Binding action class
* @param output Binding action output
* @return NormalizedNode representation of action output
*/
@Beta default @NonNull BindingLazyContainerNode<RpcOutput> toLazyNormalizedNodeActionOutput(
@NonNull final Class<? extends Action<?, ?, ?>> action, @NonNull final RpcOutput output) {
return toLazyNormalizedNodeActionOutput(action,
new NodeIdentifier(YangConstants.operationInputQName(BindingReflections.getQNameModule(action))), output);
}
代码示例来源:origin: org.opendaylight.mdsal/mdsal-binding-dom-codec
/**
* Lazily translates supplied Binding action input into NormalizedNode data.
*
* @param action Binding action class
* @param input Binding action input
* @return NormalizedNode representation of action input
* @throws NullPointerException if any of the arguments is null
*/
@Beta default @NonNull BindingLazyContainerNode<RpcInput> toLazyNormalizedNodeActionInput(
@NonNull final Class<? extends Action<?, ?, ?>> action, @NonNull final RpcInput input) {
return toLazyNormalizedNodeActionInput(action,
new NodeIdentifier(YangConstants.operationInputQName(BindingReflections.getQNameModule(action))), input);
}
代码示例来源:origin: org.opendaylight.mdsal/mdsal-binding-dom-codec
/**
* Translates supplied Binding action output into NormalizedNode data.
*
* @param output Binding action output
* @return NormalizedNode representation of action output
*/
@Beta default @NonNull ContainerNode toNormalizedNodeActionOutput(
@NonNull final Class<? extends Action<?, ?, ?>> action, @NonNull final RpcOutput output) {
return toLazyNormalizedNodeActionOutput(action,
new NodeIdentifier(YangConstants.operationInputQName(BindingReflections.getQNameModule(action))), output)
.getDelegate();
}
}
代码示例来源:origin: org.opendaylight.mdsal/mdsal-binding-dom-codec
/**
* Translates supplied Binding action input into NormalizedNode data.
*
* @param action Binding action class
* @param input Binding action input
* @return NormalizedNode representation of action input
* @throws NullPointerException if any of the arguments is null
*/
@Beta default @NonNull ContainerNode toNormalizedNodeActionInput(
@NonNull final Class<? extends Action<?, ?, ?>> action, @NonNull final RpcInput input) {
return toLazyNormalizedNodeActionInput(action,
new NodeIdentifier(YangConstants.operationInputQName(BindingReflections.getQNameModule(action))), input)
.getDelegate();
}
内容来源于网络,如有侵权,请联系作者删除!