Interface LeafrefResolver
-
- All Known Implementing Classes:
NormalizedNodeStreamWriterStack
,SchemaInferenceStack
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Beta @FunctionalInterface public interface LeafrefResolver
Helper interface aiding resolution of leafref chains.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull TypeDefinition<?>
resolveLeafref(@NonNull LeafrefTypeDefinition type)
Resolve specifiedLeafrefTypeDefinition
until a non-leafref
type is found.
-
-
-
Method Detail
-
resolveLeafref
@NonNull TypeDefinition<?> resolveLeafref(@NonNull LeafrefTypeDefinition type)
Resolve specifiedLeafrefTypeDefinition
until a non-leafref
type is found.- Parameters:
type
- leafref definition- Returns:
- Resolved type
- Throws:
NullPointerException
- iftype
is nullIllegalArgumentException
- if the type definition cannot be resolved
-
-