public abstract class XmlReporter<T> extends java.lang.Object implements AuditReporter
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
lineBreakSequence |
Constructor and Description |
---|
XmlReporter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEncoding() |
T |
getModel() |
java.net.URL |
getOutputFile() |
java.lang.String |
getTitle() |
abstract XmlReportType |
getType() |
protected void |
indent() |
protected void |
newline() |
void |
report()
Creates a report from a model.
|
void |
setEncoding(java.lang.String encoding)
Sets the report file encoding.
|
void |
setModel(T model) |
void |
setOutputFile(java.net.URL destination) |
void |
setTitle(java.lang.String title) |
protected void |
undent() |
protected void |
writeBeginTag(java.lang.String name) |
protected void |
writeBeginTag(java.lang.String name,
java.lang.String[] attributes,
boolean empty,
boolean wrap) |
protected void |
writeEndTag(java.lang.String name) |
protected void |
writeEndTag(java.lang.String name,
boolean indent) |
protected void |
writeIndent() |
protected void |
writeLine(java.lang.String text) |
protected abstract void |
writeModel(T model) |
protected void |
writeName(java.lang.String name) |
protected void |
writeText(java.lang.String text) |
protected void |
writeTextElement(java.lang.String name,
java.lang.Object object) |
protected void |
writeTextElement(java.lang.String name,
java.lang.String[] attributes,
java.lang.Object object) |
protected void |
writeXmlDeclaration() |
public abstract XmlReportType getType()
protected abstract void writeModel(T model) throws java.lang.Exception
java.lang.Exception
public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding
- The encoding to use, or null for IdeUtil.getIdeIanaEncoding()
.public java.net.URL getOutputFile()
public void setOutputFile(java.net.URL destination)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public void setModel(T model)
public T getModel()
public void report() throws java.lang.reflect.InvocationTargetException
AuditReporter
report
in interface AuditReporter
java.lang.reflect.InvocationTargetException
- if the implementation
throws an exception (e.g., an IOException).protected void indent()
protected void undent()
protected void writeXmlDeclaration()
protected void writeTextElement(java.lang.String name, java.lang.Object object)
protected void writeTextElement(java.lang.String name, java.lang.String[] attributes, java.lang.Object object)
protected void writeText(java.lang.String text)
protected void writeBeginTag(java.lang.String name)
protected void writeBeginTag(java.lang.String name, java.lang.String[] attributes, boolean empty, boolean wrap)
protected void writeEndTag(java.lang.String name)
protected void writeEndTag(java.lang.String name, boolean indent)
protected void writeName(java.lang.String name)
protected void writeIndent()
protected void writeLine(java.lang.String text)
protected void newline()