本文整理汇总了Java中org.opendaylight.yangtools.yang.binding.Identifier类的典型用法代码示例。如果您正苦于以下问题:Java Identifier类的具体用法?Java Identifier怎么用?Java Identifier使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Identifier类属于org.opendaylight.yangtools.yang.binding包,在下文中一共展示了Identifier类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: newInstance
import org.opendaylight.yangtools.yang.binding.Identifier; //导入依赖的package包/类
@SuppressWarnings({ "rawtypes", "unchecked" })
private static ListBindingContext newInstance(final Class<? extends DataObject> bindingClass,
final String listKeyValue) throws InstantiationException, IllegalAccessException,
IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException {
// We assume the yang list key type is string.
Identifier keyInstance = (Identifier) bindingClass.getMethod("getKey").getReturnType()
.getConstructor(String.class).newInstance(listKeyValue);
InstanceIdentifier appConfigPath = InstanceIdentifier.builder((Class)bindingClass, keyInstance).build();
return new ListBindingContext(bindingClass, appConfigPath, listKeyValue);
}
开发者ID:hashsdn,项目名称:hashsdn-controller,代码行数:11,代码来源:BindingContext.java
示例2: getModifiedChildListItem
import org.opendaylight.yangtools.yang.binding.Identifier; //导入依赖的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.Identifier; //导入依赖的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: getKey
import org.opendaylight.yangtools.yang.binding.Identifier; //导入依赖的package包/类
@Override
public Identifier getKey(LogicalSwitches data) {
return data.getKey();
}
开发者ID:opendaylight,项目名称:netvirt,代码行数:5,代码来源:LogicalSwitchesCmd.java
示例5: getKey
import org.opendaylight.yangtools.yang.binding.Identifier; //导入依赖的package包/类
@Override
public Identifier getKey(LocalUcastMacs data) {
return data.getKey();
}
开发者ID:opendaylight,项目名称:netvirt,代码行数:5,代码来源:LocalUcastCmd.java
示例6: getKey
import org.opendaylight.yangtools.yang.binding.Identifier; //导入依赖的package包/类
@Override
public Identifier getKey(RemoteUcastMacs data) {
return data.getKey();
}
开发者ID:opendaylight,项目名称:netvirt,代码行数:5,代码来源:RemoteUcastCmd.java
示例7: getKey
import org.opendaylight.yangtools.yang.binding.Identifier; //导入依赖的package包/类
@Override
public Identifier getKey(Tunnels data) {
return data.getKey();
}
开发者ID:opendaylight,项目名称:netvirt,代码行数:5,代码来源:TunnelCmd.java
示例8: getKey
import org.opendaylight.yangtools.yang.binding.Identifier; //导入依赖的package包/类
@Override
public Identifier getKey(TerminationPoint data) {
return data.getKey();
}
开发者ID:opendaylight,项目名称:netvirt,代码行数:5,代码来源:PhysicalLocatorCmd.java
示例9: getKey
import org.opendaylight.yangtools.yang.binding.Identifier; //导入依赖的package包/类
@Override
public Identifier getKey(TunnelIps data) {
return data.getKey();
}
开发者ID:opendaylight,项目名称:netvirt,代码行数:5,代码来源:TunnelIpCmd.java
示例10: getKey
import org.opendaylight.yangtools.yang.binding.Identifier; //导入依赖的package包/类
@Override
public Identifier getKey(Switches data) {
InstanceIdentifier<?> id = data.getSwitchRef().getValue();
return id.firstKeyOf(Node.class);
}
开发者ID:opendaylight,项目名称:netvirt,代码行数:6,代码来源:SwitchesCmd.java
示例11: getKey
import org.opendaylight.yangtools.yang.binding.Identifier; //导入依赖的package包/类
@Override
public Identifier getKey(LocalMcastMacs mac) {
return mac.getKey();
}
开发者ID:opendaylight,项目名称:netvirt,代码行数:5,代码来源:LocalMcastCmd.java
示例12: getKey
import org.opendaylight.yangtools.yang.binding.Identifier; //导入依赖的package包/类
@Override
public Identifier getKey(RemoteMcastMacs data) {
return data.getKey();
}
开发者ID:opendaylight,项目名称:netvirt,代码行数:5,代码来源:RemoteMcastCmd.java
示例13: getModifiedChildListItem
import org.opendaylight.yangtools.yang.binding.Identifier; //导入依赖的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
示例14: getKey
import org.opendaylight.yangtools.yang.binding.Identifier; //导入依赖的package包/类
public abstract Identifier getKey(T data);
开发者ID:opendaylight,项目名称:netvirt,代码行数:2,代码来源:MergeCommand.java
注:本文中的org.opendaylight.yangtools.yang.binding.Identifier类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论