public abstract class ElementWriter<T extends DescriptorElement> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected T |
element |
protected com.mulesoft.connectivity.rest.sdk.internal.descriptor.writer.WriterOptions |
options |
protected com.mulesoft.connectivity.rest.sdk.internal.descriptor.writer.YamlWriter |
yamlWriter |
| Constructor and Description |
|---|
ElementWriter(T element,
com.mulesoft.connectivity.rest.sdk.internal.descriptor.writer.YamlWriter yamlWriter,
com.mulesoft.connectivity.rest.sdk.internal.descriptor.writer.WriterOptions options) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addElementWithDWExpressionValue(String element,
WeaveExpressionDescriptor expression)
Dumps:
|
protected void |
addElementWithDWExpressionValueIfNotEmpty(String element,
String expression) |
protected void |
addElementWithDWExpressionValueIfNotEmpty(String element,
WeaveExpressionDescriptor expression) |
protected void |
block(String key,
com.mulesoft.connectivity.rest.sdk.internal.descriptor.writer.YamlWriter.ThrowingRunnable runnable) |
protected void |
keyValue(String key,
String value) |
abstract void |
write() |
protected void |
writeLocation() |
protected void |
writeLocation(DescriptorElementLocation location) |
protected final T extends DescriptorElement element
protected final com.mulesoft.connectivity.rest.sdk.internal.descriptor.writer.WriterOptions options
protected final com.mulesoft.connectivity.rest.sdk.internal.descriptor.writer.YamlWriter yamlWriter
public ElementWriter(T element, com.mulesoft.connectivity.rest.sdk.internal.descriptor.writer.YamlWriter yamlWriter, com.mulesoft.connectivity.rest.sdk.internal.descriptor.writer.WriterOptions options)
public abstract void write()
throws IOException
IOExceptionprotected void writeLocation()
throws IOException
IOExceptionprotected void writeLocation(DescriptorElementLocation location) throws IOException
IOExceptionprotected void addElementWithDWExpressionValue(String element, WeaveExpressionDescriptor expression) throws IOException
IOExceptionprotected void addElementWithDWExpressionValueIfNotEmpty(String element, WeaveExpressionDescriptor expression) throws IOException
IOExceptionprotected void addElementWithDWExpressionValueIfNotEmpty(String element, String expression) throws IOException
IOExceptionprotected void block(String key, com.mulesoft.connectivity.rest.sdk.internal.descriptor.writer.YamlWriter.ThrowingRunnable runnable) throws IOException
IOExceptionprotected void keyValue(String key, String value) throws IOException
IOExceptionCopyright © 2023. All rights reserved.