public interface ISarWriter extends Closeable, Flushable
Modifier and Type | Method and Description |
---|---|
String |
escape(char c)
Escape algorithm per character.
|
String |
escape(String string)
Escape string.
|
String |
id(String name)
Process illegal characters for ID.
|
String |
indentBlock(String block,
String indent)
Indent a block of text.
|
void |
pop()
Return up one level.
|
void |
push(String table,
String label,
String comment)
Recurse tables deeper.
|
void |
setIndentation(String indent)
Set indentation type.
|
void |
setNullRepresentation(String nullRep)
Set DBMS NULL Representation.
|
String |
wrapColumns(List<String> columns)
Wrap columns.
|
String |
wrapInner(List<String> children)
Wrap children elements.
|
String |
wrapTables(String table,
List<String> rows)
Wrap tables.
|
void |
write(String colname,
String label,
String comment,
String value)
Output attribute.
|
String |
writeColumn(String column,
String label,
String comment,
String value)
Output the column element.
|
String |
writeRoot(String inner)
Write root element.
|
String |
writeTable(String table,
String label,
String comment,
String columns,
String inner)
Output the table element.
|
String escape(char c)
c
- charString id(String name)
name
- inputString escape(String string)
string
- to escapevoid setIndentation(String indent)
indent
- Stringvoid setNullRepresentation(String nullRep)
nullRep
- used to represent the DBMS null value in the output If value is null the actual column is omitted
from the outputString writeTable(String table, String label, String comment, String columns, String inner)
table
- namelabel
- optional infocomment
- optional infocolumns
- columnsinner
- children dataString writeColumn(String column, String label, String comment, String value)
column
- namelabel
- optional infocomment
- optional infovalue
- valueString writeRoot(String inner)
inner
- stringString indentBlock(String block, String indent)
block
- block of textindent
- as spacesString wrapTables(String table, List<String> rows)
table
- common table namerows
- rows for the tableString wrapColumns(List<String> columns)
columns
- as listString wrapInner(List<String> children)
children
- elementsvoid push(String table, String label, String comment)
table
- table namelabel
- optional labelcomment
- optional commentvoid write(String colname, String label, String comment, String value)
colname
- column namelabel
- optional labelcomment
- optional commentvalue
- value to writevoid pop()
Copyright © 2021. All rights reserved.