@Beta public final class DataObjectReadingUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends DataObject> |
readData(DataObject source,
Class<T> child) |
static <T extends DataObject,P extends DataObject> |
readData(P parent,
InstanceIdentifier<P> parentPath,
InstanceIdentifier<T> childPath)
Read data from parent at specified path.
|
public static <T extends DataObject,P extends DataObject> Map<InstanceIdentifier<T>,T> readData(P parent, InstanceIdentifier<P> parentPath, InstanceIdentifier<T> childPath)
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.public static <T extends DataObject> Optional<T> readData(DataObject source, Class<T> child)
Copyright © 2019 OpenDaylight. All rights reserved.