Class D2Printer
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.d2.D2Printer
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Since:
- 2025.12
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()protected StringformatIdentifier(String identifier) protected StringformatIdentifier(Collection<String> identifiers) protected WritervoidwriteConnectionRight(String fromKey, String toKey) voidwriteConnectionRight(String fromKey, String toKey, String label) voidwriteConnectionRight(List<String> fromKeys, List<String> toKeys) voidvoidwriteContainerWithClass(String containerKey, String containerLabel, String containerClass) voidwriteHeader(String header) voidwriteMarkdownShapeWithClass(String shapeKey, String shapeClass, String content) voidwriteMarkdownShapeWithClass(Collection<String> shapeKeys, String shapeClass, String content)
-
Field Details
-
writer
-
-
Constructor Details
-
D2Printer
-
-
Method Details
-
writeHeader
- Throws:
IOException
-
writeMarkdownShapeWithClass
-
writeMarkdownShapeWithClass
public void writeMarkdownShapeWithClass(Collection<String> shapeKeys, String shapeClass, String content) -
writeContainerWithClass
-
writeConnectionRight
-
writeConnectionRight
-
writeConnectionRight
-
writeConnectionRight
-
formatIdentifier
-
formatIdentifier
-
getWriter
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Throws:
IOException
-