java.lang.Object
org.praxislive.base.MapTreeWriter
- All Implemented Interfaces:
org.praxislive.core.TreeWriter
A TreeWriter implementation that builds the data in the format specified by
.
invalid reference
SerializableProtocol
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.praxislive.core.types.PMapbuild()Build the data map.clear()Clear the writer for reuse.writeAnnotation(String key, String value) writeChild(String id, Consumer<org.praxislive.core.TreeWriter> processor) writeConnection(org.praxislive.core.Connection connection) writeInfo(org.praxislive.core.ComponentInfo info) writeProperty(String id, org.praxislive.core.Value value) writeType(org.praxislive.core.ComponentType type)
-
Constructor Details
-
MapTreeWriter
public MapTreeWriter()Create a new writer.
-
-
Method Details
-
writeAnnotation
- Specified by:
writeAnnotationin interfaceorg.praxislive.core.TreeWriter
-
writeChild
- Specified by:
writeChildin interfaceorg.praxislive.core.TreeWriter
-
writeConnection
- Specified by:
writeConnectionin interfaceorg.praxislive.core.TreeWriter
-
writeInfo
- Specified by:
writeInfoin interfaceorg.praxislive.core.TreeWriter
-
writeProperty
- Specified by:
writePropertyin interfaceorg.praxislive.core.TreeWriter
-
writeType
- Specified by:
writeTypein interfaceorg.praxislive.core.TreeWriter
-
build
public org.praxislive.core.types.PMap build()Build the data map.- Returns:
- data map
-
clear
Clear the writer for reuse.- Returns:
- this writer
-