Class DataObjectStreamer<T extends DataObject>
java.lang.Object
org.opendaylight.mdsal.binding.dom.codec.impl.DataObjectStreamer<T>
- Type Parameters:
T
- DataObject type
- All Implemented Interfaces:
DataObjectSerializerImplementation
@Beta
public abstract class DataObjectStreamer<T extends DataObject>
extends Object
implements DataObjectSerializerImplementation
Base superclass for all concrete streamers, that is objects which are able to turn a concrete DataObject into a
stream of events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static final void
streamAnydata
(BindingStreamEventWriter writer, String localName, Object value) protected static final void
streamAnyxml
(BindingStreamEventWriter writer, String localName, Object value) protected static final void
streamAugmentations
(DataObjectSerializerRegistry registry, BindingStreamEventWriter writer, Augmentable<?> obj) protected static final <C extends DataContainer>
voidstreamChoice
(Class<C> choiceClass, DataObjectSerializerRegistry registry, BindingStreamEventWriter writer, C value) protected static final <C extends DataObject>
voidstreamContainer
(DataObjectStreamer<C> childStreamer, DataObjectSerializerRegistry registry, BindingStreamEventWriter writer, C value) protected static final void
streamLeaf
(BindingStreamEventWriter writer, String localName, Object value) protected static final void
streamLeafList
(BindingStreamEventWriter writer, String localName, Set<?> value) protected static final <E extends DataObject>
voidstreamList
(Class<E> childClass, DataObjectStreamer<E> childStreamer, DataObjectSerializerRegistry registry, BindingStreamEventWriter writer, List<? extends E> value) protected static final <E extends DataObject & Identifiable<?>>
voidstreamMap
(Class<E> childClass, DataObjectStreamer<E> childStreamer, DataObjectSerializerRegistry registry, BindingStreamEventWriter writer, Map<?, ? extends E> value) protected static final void
streamOrderedLeafList
(BindingStreamEventWriter writer, String localName, List<?> value) protected static final <E extends DataObject & Identifiable<?>>
voidstreamOrderedMap
(Class<E> childClass, DataObjectStreamer<E> childStreamer, DataObjectSerializerRegistry registry, BindingStreamEventWriter writer, List<? extends E> value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.mdsal.binding.dom.codec.impl.DataObjectSerializerImplementation
serialize
-
Constructor Details
-
DataObjectStreamer
protected DataObjectStreamer()
-
-
Method Details
-
streamAnydata
protected static final void streamAnydata(BindingStreamEventWriter writer, String localName, Object value) throws IOException - Throws:
IOException
-
streamAnyxml
protected static final void streamAnyxml(BindingStreamEventWriter writer, String localName, Object value) throws IOException - Throws:
IOException
-
streamAugmentations
protected static final void streamAugmentations(DataObjectSerializerRegistry registry, BindingStreamEventWriter writer, Augmentable<?> obj) throws IOException - Throws:
IOException
-
streamChoice
protected static final <C extends DataContainer> void streamChoice(Class<C> choiceClass, DataObjectSerializerRegistry registry, BindingStreamEventWriter writer, C value) throws IOException - Throws:
IOException
-
streamContainer
protected static final <C extends DataObject> void streamContainer(DataObjectStreamer<C> childStreamer, DataObjectSerializerRegistry registry, BindingStreamEventWriter writer, C value) throws IOException - Throws:
IOException
-
streamLeaf
protected static final void streamLeaf(BindingStreamEventWriter writer, String localName, Object value) throws IOException - Throws:
IOException
-
streamLeafList
protected static final void streamLeafList(BindingStreamEventWriter writer, String localName, Set<?> value) throws IOException - Throws:
IOException
-
streamOrderedLeafList
protected static final void streamOrderedLeafList(BindingStreamEventWriter writer, String localName, List<?> value) throws IOException - Throws:
IOException
-
streamList
protected static final <E extends DataObject> void streamList(Class<E> childClass, DataObjectStreamer<E> childStreamer, DataObjectSerializerRegistry registry, BindingStreamEventWriter writer, List<? extends E> value) throws IOException - Throws:
IOException
-
streamMap
protected static final <E extends DataObject & Identifiable<?>> void streamMap(Class<E> childClass, DataObjectStreamer<E> childStreamer, DataObjectSerializerRegistry registry, BindingStreamEventWriter writer, Map<?, ? extends E> value) throws IOException- Throws:
IOException
-
streamOrderedMap
protected static final <E extends DataObject & Identifiable<?>> void streamOrderedMap(Class<E> childClass, DataObjectStreamer<E> childStreamer, DataObjectSerializerRegistry registry, BindingStreamEventWriter writer, List<? extends E> value) throws IOException - Throws:
IOException
-