public final class VNodePathConverter extends Object
VNodePathConverter is a utility class that converts YANG
instance identifier into VNodeIdentifier instance.| Constructor and Description |
|---|
VNodePathConverter(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
VNodeIdentifier<?> |
getIdentifier()
Return a
VNodeIdentifier instance converted from the specified
instance identifier. |
<T extends VNodeIdentifier<?>> |
getIdentifier(Class<T> type)
Return a
VNodeIdentifier instance converted from the specified
instance identifier with type checking. |
public VNodePathConverter(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
path - An InstanceIdentifier which specifies the data
in the VTN tree.IllegalStateException - The given path does not specify the data in the VTN tree.public VNodeIdentifier<?> getIdentifier()
VNodeIdentifier instance converted from the specified
instance identifier.VNodeIdentifier instance.public <T extends VNodeIdentifier<?>> T getIdentifier(Class<T> type)
VNodeIdentifier instance converted from the specified
instance identifier with type checking.T - The type of VNodeIdentifier.type - A class which specifies the expected type of
VNodeIdentifier.VNodeIdentifier instance.IllegalStateException - The type of the VNode identifier in this instance does not match
the specified type.Copyright © 2018 OpenDaylight. All rights reserved.