@Beta public abstract class AbstractDataNodeContainerSerializerSource extends AbstractTreeNodeSerializerSource
Constructor and Description |
---|
AbstractDataNodeContainerSerializerSource(AbstractGenerator generator,
GeneratedType type,
org.opendaylight.yangtools.yang.model.api.DataNodeContainer node) |
Modifier and Type | Method and Description |
---|---|
protected void |
emitAfterBody(StringBuilder builder)
Allows for customization of emitting code, which is processed after
normal DataNodeContainer body.
|
protected abstract CharSequence |
emitStartEvent()
Return the character sequence which should be used for start event.
|
protected Collection<org.opendaylight.yangtools.yang.model.api.DataSchemaNode> |
getChildNodes()
Note: the method would be overrided by
AbstractAugmentSerializerSource.getChildNodes() ,
since all augmentation schema nodes of same target would be grouped into sort of one node,
so call AbstractAugmentSerializerSource.getChildNodes() to get all these children
nodes of same target augmentation schemas. |
CharSequence |
getSerializerBody()
Returns body of static serialize method.
|
Set<StaticBindingProperty> |
getStaticConstants()
Get set of static constants.
|
protected static CharSequence |
invoke(CharSequence object,
String methodName,
Object... args)
Prepare invoking method on object with more arguments.
|
classReference, startAugmentationNode, startCaseNode, startContainerNode, startMapEntryNode, startUnkeyedListItem
protected static final String INPUT
public AbstractDataNodeContainerSerializerSource(AbstractGenerator generator, GeneratedType type, org.opendaylight.yangtools.yang.model.api.DataNodeContainer node)
protected abstract CharSequence emitStartEvent()
public CharSequence getSerializerBody()
AbstractTreeNodeSerializerSource
TreeNodeSerializerRegistry
- registry of serializers
TreeNode
- node to be serialized
BindingStreamEventWriter
- writer to which events should be
serialized
getSerializerBody
in class AbstractTreeNodeSerializerSource
protected void emitAfterBody(StringBuilder builder)
protected Collection<org.opendaylight.yangtools.yang.model.api.DataSchemaNode> getChildNodes()
AbstractAugmentSerializerSource.getChildNodes()
,
since all augmentation schema nodes of same target would be grouped into sort of one node,
so call AbstractAugmentSerializerSource.getChildNodes()
to get all these children
nodes of same target augmentation schemas.public final Set<StaticBindingProperty> getStaticConstants()
protected static final CharSequence invoke(CharSequence object, String methodName, Object... args)
object
- - object for invoke methodmethodName
- - method name to be invokedargs
- - arguments of methodCopyright © 2019 OpenDaylight. All rights reserved.