public class SystemInputDocWriter extends AbstractSystemInputWriter
SystemInputDef
in the form of an XML document.Constructor and Description |
---|
SystemInputDocWriter()
Creates a new SystemInputDocWriter object that writes to standard output.
|
SystemInputDocWriter(OutputStream stream)
Creates a new SystemInputDocWriter object that writes to the given stream.
|
SystemInputDocWriter(Writer writer)
Creates a new SystemInputDocWriter object that writes to the given stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the writer.
|
void |
flush()
Flushes the writer.
|
protected void |
setWriter(Writer writer)
Changes the output stream for this writer.
|
void |
write(SystemInputDef systemInput)
Writes the given system input definition the form of an XML document.
|
protected void |
writeAnnotations(IAnnotated annotated)
Writes the given annotation definitions.
|
protected void |
writeFunction(FunctionInputDef function)
Writes the given function input definition.
|
protected void |
writeInputs(String varType,
Stream<IVarDef> varDefs)
Writes the given input variable list.
|
protected void |
writeValue(VarValueDef value)
Writes the given variable input value definition.
|
protected void |
writeVarDef(IVarDef varDef)
Writes the given variable definition.
|
getWriter
public SystemInputDocWriter()
public SystemInputDocWriter(OutputStream stream)
public SystemInputDocWriter(Writer writer)
public void write(SystemInputDef systemInput)
write
in class AbstractSystemInputWriter
protected void writeFunction(FunctionInputDef function)
protected void writeInputs(String varType, Stream<IVarDef> varDefs)
protected void writeVarDef(IVarDef varDef)
protected void writeValue(VarValueDef value)
protected void writeAnnotations(IAnnotated annotated)
public void flush()
flush
in class AbstractSystemInputWriter
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractSystemInputWriter
protected void setWriter(Writer writer)
setWriter
in class AbstractSystemInputWriter
Copyright © 2024 The Cornutum Project. All rights reserved.