@Beta public abstract class AbstractStreamWriterGenerator extends AbstractGenerator implements TreeNodeSerializerGenerator
Modifier and Type | Field and Description |
---|---|
static AugmentableDispatchSerializer |
AUGMENTABLE |
static String |
SERIALIZE_METHOD_NAME |
Modifier | Constructor and Description |
---|---|
protected |
AbstractStreamWriterGenerator(JavassistUtils utils) |
Modifier and Type | Method and Description |
---|---|
protected abstract AbstractTreeNodeSerializerSource |
generateAugmentSerializer(GeneratedType type,
Collection<org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode> schemas)
Generates serializer source for supplied augmentation node, which will
read supplied binding type and invoke proper methods on supplied
BindingStreamEventWriter . |
protected abstract AbstractTreeNodeSerializerSource |
generateCaseSerializer(GeneratedType type,
org.opendaylight.yangtools.yang.model.api.CaseSchemaNode node)
Generates serializer source for supplied case node, which will read
supplied binding type and invoke proper methods on supplied
BindingStreamEventWriter . |
protected abstract AbstractTreeNodeSerializerSource |
generateContainerSerializer(GeneratedType type,
org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode node)
Generates serializer source code for supplied container node, which will
read supplied binding type and invoke proper methods on supplied
BindingStreamEventWriter . |
protected abstract AbstractTreeNodeSerializerSource |
generateMapEntrySerializer(GeneratedType type,
org.opendaylight.yangtools.yang.model.api.ListSchemaNode node)
Generates serializer source for supplied list node, which will read
supplied binding type and invoke proper methods on supplied
BindingStreamEventWriter . |
protected abstract AbstractTreeNodeSerializerSource |
generateNotificationSerializer(GeneratedType type,
org.opendaylight.yangtools.yang.model.api.NotificationDefinition node)
Generates serializer source for notification node, which will read
supplied binding type and invoke proper methods on supplied
BindingStreamEventWriter . |
protected abstract AbstractTreeNodeSerializerSource |
generateUnkeyedListEntrySerializer(GeneratedType type,
org.opendaylight.yangtools.yang.model.api.ListSchemaNode node)
Generates serializer source for supplied list node, which will read
supplied binding type and invoke proper methods on supplied
BindingStreamEventWriter . |
TreeNodeSerializerImplementation |
getSerializer(Class<?> type)
Get a serializer for a particular type.
|
String |
loadSerializerFor(Class<?> cls)
Ensure that the serializer class for specified class is loaded and return
its name.
|
void |
onBindingRuntimeContextUpdated(BindingRuntimeContext runtime)
Notify the generator that the runtime context has been updated.
|
public static final String SERIALIZE_METHOD_NAME
public static final AugmentableDispatchSerializer AUGMENTABLE
protected AbstractStreamWriterGenerator(JavassistUtils utils)
public final TreeNodeSerializerImplementation getSerializer(Class<?> type)
TreeNodeSerializerGenerator
getSerializer
in interface TreeNodeSerializerGenerator
type
- - class of typepublic final void onBindingRuntimeContextUpdated(BindingRuntimeContext runtime)
TreeNodeSerializerGenerator
onBindingRuntimeContextUpdated
in interface TreeNodeSerializerGenerator
runtime
- - new runtime contextpublic final String loadSerializerFor(Class<?> cls)
AbstractGenerator
loadSerializerFor
in class AbstractGenerator
cls
- - data tree classprotected abstract AbstractTreeNodeSerializerSource generateContainerSerializer(GeneratedType type, org.opendaylight.yangtools.yang.model.api.ContainerSchemaNode node)
BindingStreamEventWriter
.
Implementation is required to recursively invoke events for all reachable binding objects.
type
- - binding type of containernode
- - schema of containerprotected abstract AbstractTreeNodeSerializerSource generateCaseSerializer(GeneratedType type, org.opendaylight.yangtools.yang.model.api.CaseSchemaNode node)
BindingStreamEventWriter
.
Implementation is required to recursively invoke events for all reachable binding objects.
type
- - binding type of casenode
- - schema of caseprotected abstract AbstractTreeNodeSerializerSource generateMapEntrySerializer(GeneratedType type, org.opendaylight.yangtools.yang.model.api.ListSchemaNode node)
BindingStreamEventWriter
.
Implementation is required to recursively invoke events for all reachable binding objects.
type
- - binding type of listnode
- - schema of listprotected abstract AbstractTreeNodeSerializerSource generateUnkeyedListEntrySerializer(GeneratedType type, org.opendaylight.yangtools.yang.model.api.ListSchemaNode node)
BindingStreamEventWriter
.
Implementation is required to recursively invoke events for all reachable binding objects.
type
- - binding type of listnode
- - schema of listprotected abstract AbstractTreeNodeSerializerSource generateAugmentSerializer(GeneratedType type, Collection<org.opendaylight.yangtools.yang.model.api.AugmentationSchemaNode> schemas)
BindingStreamEventWriter
.
Implementation is required to recursively invoke events for all reachable binding objects.
type
- - binding type of augmentationschemas
- - schemas of augmentationprotected abstract AbstractTreeNodeSerializerSource generateNotificationSerializer(GeneratedType type, org.opendaylight.yangtools.yang.model.api.NotificationDefinition node)
BindingStreamEventWriter
.
Implementation is required to recursively invoke events for all reachable binding objects.
type
- - binding type of notificationnode
- - schema of notificationCopyright © 2019 OpenDaylight. All rights reserved.