Class DataObjectReadingUtil
java.lang.Object
org.opendaylight.mdsal.binding.spec.util.DataObjectReadingUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends DataObject>
Optional<T>readData
(DataObject source, Class<T> child) static <T extends DataObject,
P extends DataObject>
Map<InstanceIdentifier<T>,T> readData
(P parent, InstanceIdentifier<P> parentPath, InstanceIdentifier<T> childPath) Read data from parent at specified path.
-
Method Details
-
readData
public static <T extends DataObject,P extends DataObject> Map<InstanceIdentifier<T>,T> readData(P parent, InstanceIdentifier<P> parentPath, InstanceIdentifier<T> childPath) Read data from parent at specified path.- Parameters:
parent
- Parent object on which read operation will be performedparentPath
- Path, to parent object.childPath
- Path, which is nested to parent, and should be read.- Returns:
- Value of object.
-
readData
-