- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.opendaylight.yangtools.yang.common.YangConstants
类的一些代码示例,展示了YangConstants
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangConstants
类的具体详情如下:
包路径:org.opendaylight.yangtools.yang.common.YangConstants
类名称:YangConstants
[英]Constant definitions present in RFC documents related to the YANG language.
[中]
代码示例来源: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.yangtools/yang-parser-rfc7950
@Override
public final QName parseArgumentValue(final StmtContext<?, ?, ?> ctx, final String value) {
return YangConstants.operationOutputQName(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
private ListenableFuture<RpcResult<?>> transformFuture(final SchemaPath rpc,
final ListenableFuture<DOMRpcResult> domFuture, final BindingNormalizedNodeCodecRegistry resultCodec) {
return Futures.transform(domFuture, input -> {
final NormalizedNode<?, ?> domData = input.getResult();
final DataObject bindingResult;
if (domData != null) {
final SchemaPath rpcOutput = rpc.createChild(YangConstants.operationOutputQName(
rpc.getLastComponent().getModule()));
bindingResult = resultCodec.fromNormalizedNodeRpcData(rpcOutput, (ContainerNode) domData);
} else {
bindingResult = null;
}
return RpcResultUtil.rpcResultFromDOM(input.getErrors(), bindingResult);
}, MoreExecutors.directExecutor());
}
}
代码示例来源: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-adapter
@Override
public <O extends DataObject, P extends InstanceIdentifier<O>,
T extends org.opendaylight.yangtools.yang.binding.Action<P, ?, ?>, S extends T>
ObjectRegistration<S> registerImplementation(final Class<T> actionInterface, final S implementation,
final LogicalDatastoreType datastore, final Set<DataTreeIdentifier<O>> validNodes) {
final SchemaPath path = getCodec().getActionPath(actionInterface);
final ObjectRegistration<DOMActionImplementation> reg = getDelegate().registerActionImplementation(
new Impl(getCodec(),
NodeIdentifier.create(YangConstants.operationOutputQName(path.getLastComponent().getModule())),
actionInterface, implementation), ImmutableSet.of());
return new AbstractObjectRegistration<S>(implementation) {
@Override
protected void removeRegistration() {
reg.close();
}
};
}
代码示例来源: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();
}
本文整理了Java中org.opendaylight.yangtools.yang.binding.YangModuleInfo类的一些代码示例,展示了YangModuleInfo类的具体用法。这些代
本文整理了Java中org.opendaylight.yangtools.yang.common.YangVersion类的一些代码示例,展示了YangVersion类的具体用法。这些代码示例主要来源
本文整理了Java中org.opendaylight.yangtools.yang.binding.YangModelBindingProvider类的一些代码示例,展示了YangModelBindi
本文整理了Java中org.opendaylight.yangtools.yang.common.YangConstants类的一些代码示例,展示了YangConstants类的具体用法。这些代码示例
本文整理了Java中org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier类的一些代码示例,展示了YangInstanceIde
本文整理了Java中org.opendaylight.yangtools.yang.model.api.YangStmtMapping类的一些代码示例,展示了YangStmtMapping类的具体用法
本文整理了Java中org.opendaylight.yangtools.yang.parser.impl.YangParserImpl类的一些代码示例,展示了YangParserImpl类的具体用法
本文整理了Java中org.opendaylight.yangtools.yang.test.util.YangParserTestUtils类的一些代码示例,展示了YangParserTestUti
本文整理了Java中org.opendaylight.yangtools.yang.parser.repo.YangTextSchemaContextResolver类的一些代码示例,展示了YangT
本文整理了Java中org.opendaylight.yangtools.odlext.model.api.YangModeledAnyXmlSchemaNode类的一些代码示例,展示了YangMod
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangQNameExpr类的一些代码示例,展示了YangQNameExpr类的具体用法。这些代
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangFilterExpr类的一些代码示例,展示了YangFilterExpr类的具体用法。这
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangNegateExpr类的一些代码示例,展示了YangNegateExpr类的具体用法。这
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangFunctionCallExpr类的一些代码示例,展示了YangFunctionCall
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangLocationPath类的一些代码示例,展示了YangLocationPath类的具体
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangNaryExpr类的一些代码示例,展示了YangNaryExpr类的具体用法。这些代码示
本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangFunction类的一些代码示例,展示了YangFunction类的具体用法。这些代码示
本文整理了Java中org.opendaylight.yangtools.yang.data.util.YangModeledAnyXmlNodeDataWithSchema类的一些代码示例,展示了Y
本文整理了Java中org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.of()方法的一些代码示例,展示了YangInsta
本文整理了Java中org.opendaylight.yangtools.yang.model.repo.api.YangTextSchemaSource类的一些代码示例,展示了YangTextSch
我是一名优秀的程序员,十分优秀!