本文整理汇总了Java中org.opendaylight.yangtools.yang.binding.ChildOf类的典型用法代码示例。如果您正苦于以下问题:Java ChildOf类的具体用法?Java ChildOf怎么用?Java ChildOf使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ChildOf类属于org.opendaylight.yangtools.yang.binding包,在下文中一共展示了ChildOf类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: registerListener
import org.opendaylight.yangtools.yang.binding.ChildOf; //导入依赖的package包/类
private <T extends ChildOf<HwvtepGlobalAttributes>> void registerListener(Class<T> clazz,
MergeCommand mergeCommand) {
listeners.add(new GlobalAugmentationListener(broker, clazz, HwvtepNodeDataListener.class, mergeCommand,
ResourceBatchingManager.ShardResource.CONFIG_TOPOLOGY));
listeners.add(new GlobalAugmentationListener(broker, clazz, HwvtepNodeDataListener.class, mergeCommand,
ResourceBatchingManager.ShardResource.OPERATIONAL_TOPOLOGY));
}
开发者ID:opendaylight,项目名称:netvirt,代码行数:8,代码来源:HAListeners.java
示例2: getModifiedChildListItem
import org.opendaylight.yangtools.yang.binding.ChildOf; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <C extends Identifiable<K> & ChildOf<? super T>, K extends Identifier<C>> DataObjectModification<C>
getModifiedChildListItem(final Class<C> listItem, final K listKey) {
return (DataObjectModification<C>) getModifiedChild(
new InstanceIdentifier.IdentifiableItem<>(listItem, listKey));
}
开发者ID:opendaylight,项目名称:ovsdb,代码行数:8,代码来源:DataObjectModificationImpl.java
示例3: getModifiedChildListItem
import org.opendaylight.yangtools.yang.binding.ChildOf; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <C extends Identifiable<K> & ChildOf<? super T>, K extends Identifier<C>> DataObjectModification<C> getModifiedChildListItem(
final Class<C> listItem, final K listKey) {
return (DataObjectModification<C>) getModifiedChild(new InstanceIdentifier.IdentifiableItem<>(listItem, listKey));
}
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:7,代码来源:LazyDataObjectModification.java
示例4: getModifiedChildContainer
import org.opendaylight.yangtools.yang.binding.ChildOf; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public <C extends ChildOf<? super T>> DataObjectModification<C> getModifiedChildContainer(final Class<C> arg) {
return (DataObjectModification<C>) getModifiedChild(new InstanceIdentifier.Item<>(arg));
}
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:6,代码来源:LazyDataObjectModification.java
示例5: getClass
import org.opendaylight.yangtools.yang.binding.ChildOf; //导入依赖的package包/类
Class<? extends ChildOf<? super HwvtepGlobalAugmentation>> getClass(Class<? extends DataObject> cls) {
return (Class<? extends ChildOf<? super HwvtepGlobalAugmentation>>) cls;
}
开发者ID:opendaylight,项目名称:ovsdb,代码行数:4,代码来源:HwvtepOperationalDataChangeListener.java
示例6: getModifiedChildContainer
import org.opendaylight.yangtools.yang.binding.ChildOf; //导入依赖的package包/类
/**
* Returns container child modification if {@code child} was modified by this
* modification.
*
* For accessing all modified list items consider iterating over {@link #getModifiedChildren()}.
*
* @param child Type of child - must be only container
* @return Modification of {@code child} if {@code child} was modified, null otherwise.
* @throws IllegalArgumentException If supplied {@code child} class is not valid child according
* to generated model.
*/
@Nullable <C extends ChildOf<? super T>> DataObjectModification<C> getModifiedChildContainer(@Nonnull Class<C> child);
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:13,代码来源:DataObjectModification.java
示例7: getModifiedChildListItem
import org.opendaylight.yangtools.yang.binding.ChildOf; //导入依赖的package包/类
/**
* Returns child list item modification if {@code child} was modified by this modification.
*
* @param listItem Type of list item - must be list item with key
* @param listKey List item key
* @return Modification of {@code child} if {@code child} was modified, null otherwise.
* @throws IllegalArgumentException If supplied {@code listItem} class is not valid child according
* to generated model.
*/
<C extends Identifiable<K> & ChildOf<? super T>, K extends Identifier<C>> DataObjectModification<C> getModifiedChildListItem(
@Nonnull Class<C> listItem,@Nonnull K listKey);
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:12,代码来源:DataObjectModification.java
注:本文中的org.opendaylight.yangtools.yang.binding.ChildOf类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论