public class DescriptorWriter extends ElementWriter<ConnectorDescriptor>
element, options, yamlWriter| Modifier and Type | Method and Description |
|---|---|
static String |
generate(ConnectorDescriptor connectorDescriptor)
Generate a connector descriptor file.
|
static String |
generate(ConnectorDescriptor connectorDescriptor,
String comment)
Generate a connector descriptor file.
|
void |
write() |
static void |
writeTo(ConnectorDescriptor connectorDescriptor,
Writer writer,
String comment,
boolean writeLocation)
Generate a connector descriptor file.
|
addElementWithDWExpressionValue, addElementWithDWExpressionValueIfNotEmpty, addElementWithDWExpressionValueIfNotEmpty, block, keyValue, writeLocation, writeLocationpublic static String generate(ConnectorDescriptor connectorDescriptor)
public static String generate(ConnectorDescriptor connectorDescriptor, String comment)
connectorDescriptor - a connector descriptorcomment - a comment to add at the top of the file, can have multiple linespublic static void writeTo(ConnectorDescriptor connectorDescriptor, Writer writer, String comment, boolean writeLocation) throws IOException
connectorDescriptor - a connector descriptorwriter - a destination for the generated descriptorcomment - a comment to add at the top of the file, can have multiple lineswriteLocation - whether to write location info to the file (if present in the model)IOExceptionpublic void write()
throws IOException
write in class ElementWriter<ConnectorDescriptor>IOExceptionCopyright © 2023. All rights reserved.