public class PathTranslator extends Object
Constructor and Description |
---|
PathTranslator() |
Modifier and Type | Method and Description |
---|---|
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier |
translate(String yangPath,
CorrelationItemEnum correlationItem,
GlobalSchemaContextHolder schemaHolder,
Class<? extends Model> inputModel)
Translates yang path into
YangInstanceIdentifier . |
public org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier translate(String yangPath, CorrelationItemEnum correlationItem, GlobalSchemaContextHolder schemaHolder, Class<? extends Model> inputModel)
YangInstanceIdentifier
.yangPath
- path to target itemcorrelationItem
- Type of Correlation ItemschemaHolder
- Provides access to SchemaContextinputModel
- specifies which base path will be used for yangPath lookupYangInstanceIdentifier
leading to target itemIllegalArgumentException
- if yangPath is in incorrect formatIllegalStateException
- if required module is not loadedCopyright © 2018 OpenDaylight. All rights reserved.