public class CompositeNodeDataWithSchema<T extends DataSchemaNode> extends AbstractNodeDataWithSchema<T>
Represents a node which is composed of multiple simpler nodes.
Modifier and Type | Class and Description |
---|---|
static class |
CompositeNodeDataWithSchema.ChildReusePolicy
Policy on how child nodes should be treated when an attempt is made to add them multiple times.
|
Constructor and Description |
---|
CompositeNodeDataWithSchema(T schema) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(AbstractNodeDataWithSchema<?> newChild)
Deprecated.
|
AbstractNodeDataWithSchema<?> |
addChild(Deque<DataSchemaNode> schemas)
Deprecated.
|
AbstractNodeDataWithSchema<?> |
addChild(Deque<DataSchemaNode> schemas,
CompositeNodeDataWithSchema.ChildReusePolicy policy) |
protected int |
childSizeHint()
Return a hint about how may children we are going to generate.
|
void |
write(NormalizedNodeStreamWriter writer,
NormalizedMetadataStreamWriter metaWriter) |
equals, getAttributes, getSchema, hashCode, provideNodeIdentifier, setAttributes, write, writeMetadata
public CompositeNodeDataWithSchema(T schema)
@Deprecated public void addChild(AbstractNodeDataWithSchema<?> newChild)
@Deprecated public AbstractNodeDataWithSchema<?> addChild(Deque<DataSchemaNode> schemas)
public AbstractNodeDataWithSchema<?> addChild(Deque<DataSchemaNode> schemas, CompositeNodeDataWithSchema.ChildReusePolicy policy)
protected final int childSizeHint()
public void write(NormalizedNodeStreamWriter writer, NormalizedMetadataStreamWriter metaWriter) throws IOException
write
in class AbstractNodeDataWithSchema<T extends DataSchemaNode>
IOException
Copyright © 2020 OpenDaylight. All rights reserved.