本文整理汇总了Java中org.opendaylight.yangtools.yang.model.util.EffectiveAugmentationSchema类的典型用法代码示例。如果您正苦于以下问题:Java EffectiveAugmentationSchema类的具体用法?Java EffectiveAugmentationSchema怎么用?Java EffectiveAugmentationSchema使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EffectiveAugmentationSchema类属于org.opendaylight.yangtools.yang.model.util包,在下文中一共展示了EffectiveAugmentationSchema类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: startAugmentationNode
import org.opendaylight.yangtools.yang.model.util.EffectiveAugmentationSchema; //导入依赖的package包/类
public AugmentationSchemaNode startAugmentationNode(final AugmentationIdentifier identifier) {
LOG.debug("Enter augmentation {}", identifier);
Object parent = getParent();
checkArgument(parent instanceof AugmentationTarget, "Augmentation not allowed under %s", parent);
if (parent instanceof ChoiceSchemaNode) {
final QName name = Iterables.get(identifier.getPossibleChildNames(), 0);
parent = findCaseByChild((ChoiceSchemaNode) parent, name);
}
checkArgument(parent instanceof DataNodeContainer, "Augmentation allowed only in DataNodeContainer", parent);
final AugmentationSchemaNode schema = SchemaUtils.findSchemaForAugment((AugmentationTarget) parent,
identifier.getPossibleChildNames());
final HashSet<DataSchemaNode> realChildSchemas = new HashSet<>();
for (final DataSchemaNode child : schema.getChildNodes()) {
realChildSchemas.add(((DataNodeContainer) parent).getDataChildByName(child.getQName()));
}
final AugmentationSchemaNode resolvedSchema = new EffectiveAugmentationSchema(schema, realChildSchemas);
schemaStack.push(resolvedSchema);
return resolvedSchema;
}
示例2: augmentationProxy
import org.opendaylight.yangtools.yang.model.util.EffectiveAugmentationSchema; //导入依赖的package包/类
private static DataNodeContainer augmentationProxy(final AugmentationSchema augmentation, final DataNodeContainer schema) {
final Set<DataSchemaNode> children = new HashSet<>();
for (final DataSchemaNode augNode : augmentation.getChildNodes()) {
children.add(schema.getDataChildByName(augNode.getQName()));
}
return new EffectiveAugmentationSchema(augmentation, children);
}
示例3: createAugmentProxy
import org.opendaylight.yangtools.yang.model.util.EffectiveAugmentationSchema; //导入依赖的package包/类
private static AugmentationSchemaNode createAugmentProxy(final AugmentationSchemaNode schema,
final DataNodeContainer resolved) {
final Set<DataSchemaNode> realChildSchemas = new HashSet<>();
for (final DataSchemaNode augChild : schema.getChildNodes()) {
realChildSchemas.add(resolved.getDataChildByName(augChild.getQName()));
}
return new EffectiveAugmentationSchema(schema, realChildSchemas);
}
示例4: augmentationProxy
import org.opendaylight.yangtools.yang.model.util.EffectiveAugmentationSchema; //导入依赖的package包/类
private static DataNodeContainer augmentationProxy(final AugmentationSchemaNode augmentation,
final DataNodeContainer schema) {
final Set<DataSchemaNode> children = new HashSet<>();
for (final DataSchemaNode augNode : augmentation.getChildNodes()) {
children.add(schema.getDataChildByName(augNode.getQName()));
}
return new EffectiveAugmentationSchema(augmentation, children);
}
示例5: augmentationProxy
import org.opendaylight.yangtools.yang.model.util.EffectiveAugmentationSchema; //导入依赖的package包/类
static DataNodeContainer augmentationProxy(final AugmentationSchemaNode augmentation,
final DataNodeContainer schema) {
Set<DataSchemaNode> children = new HashSet<>();
for (DataSchemaNode augNode : augmentation.getChildNodes()) {
children.add(schema.getDataChildByName(augNode.getQName()));
}
return new EffectiveAugmentationSchema(augmentation, children);
}