@Beta public abstract class AbstractNodeDataWithSchema<T extends DataSchemaNode> extends Object
Constructor and Description |
---|
AbstractNodeDataWithSchema(T schema) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ImmutableMap<QName,Object> |
getAttributes()
Return the associated attributes.
|
T |
getSchema()
Return the associated schema node.
|
int |
hashCode() |
protected YangInstanceIdentifier.NodeIdentifier |
provideNodeIdentifier() |
void |
setAttributes(ImmutableMap<QName,Object> attributes)
Set the associated attributes.
|
void |
write(NormalizedNodeStreamWriter writer)
Emit this node's events into the specified writer.
|
protected abstract void |
write(NormalizedNodeStreamWriter writer,
@Nullable NormalizedMetadataStreamWriter metaWriter) |
protected void |
writeMetadata(NormalizedMetadataStreamWriter metaWriter) |
public AbstractNodeDataWithSchema(T schema)
public final T getSchema()
public final void setAttributes(ImmutableMap<QName,Object> attributes)
attributes
- parsed attributespublic final ImmutableMap<QName,Object> getAttributes()
public final void write(NormalizedNodeStreamWriter writer) throws IOException
writer
- Target writerIOException
- reported when thrown by the writer.protected abstract void write(NormalizedNodeStreamWriter writer, @Nullable NormalizedMetadataStreamWriter metaWriter) throws IOException
IOException
protected final YangInstanceIdentifier.NodeIdentifier provideNodeIdentifier()
protected final void writeMetadata(NormalizedMetadataStreamWriter metaWriter) throws IOException
IOException
Copyright © 2020 OpenDaylight. All rights reserved.