Class NormalizedNodeTransformations
java.lang.Object
org.opendaylight.yangtools.transform.NormalizedNodeTransformations
-
Method Summary
Modifier and TypeMethodDescriptionstatic NormalizedNode
replaceQNameModules
(@NonNull NormalizedNode original, @NonNull Map<QNameModule, QNameModule> mapping) Returns aNormalizedNode
with QNameModules replaced by supplied mapping.static NormalizedNode
replaceQNames
(@NonNull NormalizedNode original, @NonNull Map<QName, QName> mapping) Returns aNormalizedNode
with QNames replaced by supplied mapping.static NormalizedNode
transformQNames
(NormalizedNode original, Function<QName, QName> mapping)
-
Method Details
-
transformQNames
public static NormalizedNode transformQNames(NormalizedNode original, Function<QName, QName> mapping) -
replaceQNames
public static NormalizedNode replaceQNames(@NonNull NormalizedNode original, @NonNull Map<QName, QName> mapping) Returns aNormalizedNode
with QNames replaced by supplied mapping.- Parameters:
original
- Original Normalized Nodemapping
- Map of QNames to transform. Not listed QNames are preserved.- Returns:
- Normalized Node with replaced QNames.
-
replaceQNameModules
public static NormalizedNode replaceQNameModules(@NonNull NormalizedNode original, @NonNull Map<QNameModule, QNameModule> mapping) Returns aNormalizedNode
with QNameModules replaced by supplied mapping.- Parameters:
original
- Original Normalized Nodemapping
- Map of QNameModules to transform. Not listed QNameModules are preserved.- Returns:
- Normalized Node with replaced QNameModules.
-