|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bsd.x2svg.RuntimeParameters
public class RuntimeParameters
Object to hold various passed parameters
Field Summary | |
---|---|
private java.lang.String |
comment
A comment to be printed on the generated SVG |
private boolean |
debug
|
private java.lang.String |
inputFileName
Name of the input file that should be converted |
private java.lang.String |
opMode
Mode of operation - individual for each parser. |
private java.util.List<OutputFormat> |
outputs
List of formats into which the generated SVG will be converted |
private java.lang.String[] |
parserSpecificOptions
Options specific to each parser. |
private java.lang.String |
propertiesLocation
The location of the x2svg.properties file, can be empty - if so this is read from the classpath. |
private java.lang.String |
svgOutputFile
Name of the file were the SVG output will be written to |
private java.lang.Boolean |
withAttributes
Should the parser also parse attributes if it supports it? |
private java.lang.Boolean |
withElementComments
Should the parser also parse comments of elements (and possibly attributes)? |
Constructor Summary | |
---|---|
RuntimeParameters()
Default constructor to create empty runtime parameters. |
|
RuntimeParameters(RuntimeParameters parameters)
Create RuntimeParameters based on an existing set of parameters. |
Method Summary | |
---|---|
void |
addOutputFormat(OutputFormat outputFormat)
Add a new OutputFormat to the list of output formats |
java.lang.String |
getComment()
A comment that is printed on the generated diagram |
java.lang.String |
getInputFileName()
Return the name of the input file that should be converted |
java.lang.String |
getOpMode()
Return mode of operation - individual for each parser. |
java.util.List<OutputFormat> |
getOutputFormats()
Return the list of defined output formats. |
java.lang.String[] |
getParserSpecificOptions()
Get the options that are specific to the current parser. |
java.lang.String |
getPropertiesLocation()
Get the location of the x2svg properties file. |
java.lang.String |
getSvgOutputFile()
Return the name of the file were the SVG output will be written to |
java.lang.Boolean |
getWithAttributes()
|
java.lang.Boolean |
getWithElementComments()
|
boolean |
isDebug()
|
void |
setComment(java.lang.String comment)
A comment that is printed on the generated diagram |
void |
setDebug(boolean debug)
|
void |
setInputFileName(java.lang.String fileName)
Set the name of the input file that should be converted |
void |
setOpMode(java.lang.String opMode)
Set mode of operation - individual for each parser. |
void |
setParserSpecificOptions(java.lang.String[] options)
Set the options that are specific to the current parser. |
void |
setPropertiesLocation(java.lang.String propertiesLocation)
Set the location of the x2svg properties file. |
void |
setSvgOutputFile(java.lang.String svgOutputFile)
Set the name of the file were the SVG output will be written to |
void |
setWithAttributes(java.lang.Boolean withAttributes)
|
void |
setWithElementComments(java.lang.Boolean withElementComments)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String inputFileName
private java.lang.String svgOutputFile
private java.lang.String opMode
InputParser.getMode()
private java.lang.String[] parserSpecificOptions
InputParser.setParserOptions(String[])
private boolean debug
private java.util.List<OutputFormat> outputs
private java.lang.String comment
private java.lang.String propertiesLocation
private java.lang.Boolean withAttributes
private java.lang.Boolean withElementComments
Constructor Detail |
---|
public RuntimeParameters()
public RuntimeParameters(RuntimeParameters parameters)
RuntimeParameters
based on an existing set of parameters.
(Copy constructor).
parameters
- The existing parameter set to copy as a new instance.Method Detail |
---|
public boolean isDebug()
public void setDebug(boolean debug)
public java.lang.String getInputFileName()
public void setInputFileName(java.lang.String fileName)
fileName
- the name/path of the file to convertpublic java.lang.String getOpMode()
InputParser.getMode()
public void setOpMode(java.lang.String opMode)
opMode
- the mode of operationInputParser.getMode()
public java.lang.String[] getParserSpecificOptions()
InputParser.setParserOptions(String[])
public void setParserSpecificOptions(java.lang.String[] options)
options
- The array of Strings that represent the options for this parser.InputParser.setParserOptions(String[])
public java.lang.String getSvgOutputFile()
public void setSvgOutputFile(java.lang.String svgOutputFile)
svgOutputFile
- the new file name of the svg filepublic java.util.List<OutputFormat> getOutputFormats()
public void addOutputFormat(OutputFormat outputFormat)
outputFormat
- a new OutputFormatpublic java.lang.String getPropertiesLocation()
public void setPropertiesLocation(java.lang.String propertiesLocation)
propertiesLocation
- The location to set, or null to indicate load from classpath.public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- the comment to setpublic java.lang.Boolean getWithAttributes()
public void setWithAttributes(java.lang.Boolean withAttributes)
withAttributes
- the withAttributes to setpublic java.lang.Boolean getWithElementComments()
public void setWithElementComments(java.lang.Boolean withElementComments)
withElementComments
- the withElementComments to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |