Class NormalizedNodeStreamWriterStack
java.lang.Object
org.opendaylight.yangtools.yang.data.util.NormalizedNodeStreamWriterStack
- All Implemented Interfaces:
LeafrefResolver
Utility class for tracking schema state underlying a
NormalizedNode
structure.-
Method Summary
Modifier and TypeMethodDescriptionendNode()
static @NonNull NormalizedNodeStreamWriterStack
of
(EffectiveModelContext context) Create a new writer at the root of specifiedEffectiveModelContext
.static @NonNull NormalizedNodeStreamWriterStack
of
(EffectiveModelContext context, YangInstanceIdentifier path) Create a new writer with the specified context and rooted in the specifiedYangInstanceIdentifier
..static @NonNull NormalizedNodeStreamWriterStack
of
(EffectiveModelContext context, SchemaNodeIdentifier.Absolute path) Create a new writer with the specified context and rooted in the specified schema path.static @NonNull NormalizedNodeStreamWriterStack
Create a new writer with the specified inference state as its root.static @NonNull NormalizedNodeStreamWriterStack
Create a new writer with the specified inference state as its root.static @NonNull NormalizedNodeStreamWriterStack
ofOperation
(EffectiveModelContext context, SchemaNodeIdentifier.Absolute operation, QName qname) Create a new writer with the specified context and rooted in the specified schema path.Resolve specifiedLeafrefTypeDefinition
until a non-leafref
type is found.void
void
void
@NonNull ContainerLike
void
void
void
void
void
-
Method Details
-
of
Create a new writer with the specified inference state as its root.- Parameters:
root
- Root inference state- Returns:
- A new
NormalizedNodeStreamWriter
- Throws:
NullPointerException
- ifroot
is null
-
of
Create a new writer with the specified inference state as its root.- Parameters:
root
- Root inference state- Returns:
- A new
NormalizedNodeStreamWriter
- Throws:
NullPointerException
- ifroot
is null
-
of
Create a new writer at the root of specifiedEffectiveModelContext
.- Parameters:
context
- effective model context- Returns:
- A new
NormalizedNodeStreamWriter
- Throws:
NullPointerException
- ifcontext
is null
-
of
public static @NonNull NormalizedNodeStreamWriterStack of(EffectiveModelContext context, SchemaNodeIdentifier.Absolute path) Create a new writer with the specified context and rooted in the specified schema path.- Parameters:
context
- AssociatedEffectiveModelContext
path
- schema path- Returns:
- A new
NormalizedNodeStreamWriterStack
- Throws:
NullPointerException
- if any argument is nullIllegalArgumentException
- ifpath
does not point to a valid root
-
of
public static @NonNull NormalizedNodeStreamWriterStack of(EffectiveModelContext context, YangInstanceIdentifier path) Create a new writer with the specified context and rooted in the specifiedYangInstanceIdentifier
..- Parameters:
context
- AssociatedEffectiveModelContext
path
- Normalized path- Returns:
- A new
NormalizedNodeStreamWriterStack
- Throws:
NullPointerException
- if any argument is nullIllegalArgumentException
- ifpath
does not point to a valid root
-
ofOperation
public static @NonNull NormalizedNodeStreamWriterStack ofOperation(EffectiveModelContext context, SchemaNodeIdentifier.Absolute operation, QName qname) Create a new writer with the specified context and rooted in the specified schema path.- Parameters:
context
- AssociatedEffectiveModelContext
operation
- Operation schema pathqname
- Input/Output container QName- Returns:
- A new
NormalizedNodeStreamWriter
- Throws:
NullPointerException
- if any argument is nullIllegalArgumentException
- ifoperation
does not point to an actual operation or ifqname
does not identify a valid root underneath it.
-
resolveLeafref
Description copied from interface:LeafrefResolver
Resolve specifiedLeafrefTypeDefinition
until a non-leafref
type is found.- Specified by:
resolveLeafref
in interfaceLeafrefResolver
- Parameters:
type
- leafref definition- Returns:
- Resolved type
-
getParent
-
startList
-
startListItem
- Throws:
IOException
-
startLeafNode
- Throws:
IOException
-
startLeafSet
-
startLeafSetEntryNode
-
startChoiceNode
-
startContainerNode
-
startAnyxmlNode
-
startAnydataNode
-
endNode
-