Class LeafNodeDataWithSchema
- java.lang.Object
-
- org.opendaylight.yangtools.yang.data.util.AbstractNodeDataWithSchema<T>
-
- org.opendaylight.yangtools.yang.data.util.SimpleNodeDataWithSchema<LeafSchemaNode>
-
- org.opendaylight.yangtools.yang.data.util.LeafNodeDataWithSchema
-
public class LeafNodeDataWithSchema extends SimpleNodeDataWithSchema<LeafSchemaNode>
Utility class used for tracking parser state as needed by a StAX-like parser. This class is to be used only by respective XML and JSON parsers in yang-data-codec-xml and yang-data-codec-gson.Represents a YANG leaf node.
-
-
Constructor Summary
Constructors Constructor Description LeafNodeDataWithSchema(LeafSchemaNode schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(NormalizedNodeStreamWriter writer, StreamWriterMetadataExtension metaWriter)
-
Methods inherited from class org.opendaylight.yangtools.yang.data.util.SimpleNodeDataWithSchema
getValue, setValue
-
Methods inherited from class org.opendaylight.yangtools.yang.data.util.AbstractNodeDataWithSchema
equals, getAttributes, getSchema, hashCode, provideNodeIdentifier, setAttributes, write, writeMetadata
-
-
-
-
Constructor Detail
-
LeafNodeDataWithSchema
public LeafNodeDataWithSchema(LeafSchemaNode schema)
-
-
Method Detail
-
write
public void write(NormalizedNodeStreamWriter writer, StreamWriterMetadataExtension metaWriter) throws IOException
- Specified by:
write
in classAbstractNodeDataWithSchema<LeafSchemaNode>
- Throws:
IOException
-
-