public class PrettyPrinter extends SemanticProcessor implements com.exalead.util.Checkable, java.io.Serializable
SemanticProcessor.Transformer<T>, SemanticProcessor.Visitor
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_HTML |
static java.lang.String |
DEFAULT_OUTPUT |
boolean |
html |
java.lang.String |
output |
contexts, name, src
Constructor and Description |
---|
PrettyPrinter() |
PrettyPrinter(PrettyPrinter o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(SemanticProcessor.Transformer<T> transformer,
T[] t) |
void |
accept(SemanticProcessor.Visitor visitor) |
void |
check(boolean deep,
java.lang.String errorContext)
Checks this PrettyPrinter.
|
static PrettyPrinter |
fromString(java.lang.String s)
String representation of this PrettyPrinter.
|
java.lang.String |
getOutput() |
boolean |
isHtml() |
PrettyPrinter |
makeCopy()
Creates and returns a deep copy of this PrettyPrinter.
|
static PrettyPrinter |
readFrom(java.io.InputStream is)
Read this PrettyPrinter from an XML fragment.
|
void |
setHtml(boolean html) |
void |
setOutput(java.lang.String output) |
java.lang.String |
toString()
String representation of this PrettyPrinter.
|
PrettyPrinter |
withContexts(java.lang.String contexts) |
PrettyPrinter |
withHtml(boolean html) |
PrettyPrinter |
withHtml(java.lang.Boolean html) |
PrettyPrinter |
withName(java.lang.String name) |
PrettyPrinter |
withOutput(java.lang.String output) |
PrettyPrinter |
withSrc(java.lang.String src)
Deprecated.
|
void |
writeTo(java.io.OutputStream os)
Write this PrettyPrinter as an XML fragment
|
getContexts, getName, getSrc, setContexts, setName, setSrc
public java.lang.String output
public static final java.lang.String DEFAULT_OUTPUT
public boolean html
public static final boolean DEFAULT_HTML
public PrettyPrinter()
public PrettyPrinter(PrettyPrinter o)
public PrettyPrinter withName(java.lang.String name)
withName
in class SemanticProcessor
public PrettyPrinter withContexts(java.lang.String contexts)
withContexts
in class SemanticProcessor
@Deprecated public PrettyPrinter withSrc(java.lang.String src)
withSrc
in class SemanticProcessor
public void setOutput(java.lang.String output)
public java.lang.String getOutput()
public PrettyPrinter withOutput(java.lang.String output)
public void setHtml(boolean html)
public boolean isHtml()
public PrettyPrinter withHtml(boolean html)
public PrettyPrinter withHtml(java.lang.Boolean html)
public PrettyPrinter makeCopy()
makeCopy
in class SemanticProcessor
public static PrettyPrinter readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class SemanticProcessor
javax.xml.bind.JAXBException
java.io.IOException
public static PrettyPrinter fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class SemanticProcessor
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class SemanticProcessor
com.exalead.util.TypedException
public void accept(SemanticProcessor.Visitor visitor) throws com.exalead.util.TypedException
accept
in class SemanticProcessor
com.exalead.util.TypedException
public <T> T accept(SemanticProcessor.Transformer<T> transformer, T[] t) throws com.exalead.util.TypedException
accept
in class SemanticProcessor
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.