|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.gene.ExportContext
public final class ExportContext
Context for exporter. Each exporter receives its own instance of context. Mutable.
Field Summary | |
---|---|
String |
documentDir
Denotes a string representing directory where the document is stored. |
String |
documentExtension
Denotes a string representing the extension of the document being transformed. |
String |
documentName
Denotes a string representing the name of the source document. |
String |
documentURL
URL link to the document being transformed. |
boolean |
isRoot
true when the exporter transforms root nametree. |
String |
parentNamespace
If this nametree is not root then this parameter contains namespace of the parent nametree, otherwise it is not defined. |
boolean |
processingSource
If true then we are transforming source document. |
String |
resultDir
Denotes a string representing directory where the result document is stored. |
String |
resultExtension
Denotes a string representing the extension of the result document. |
String |
resultName
Denotes a string representing the name of the result document. |
String |
resultURL
URL link to the output document full file name, including the extension and full path to the file. |
Constructor Summary | |
---|---|
ExportContext(boolean isRoot,
ExportHelper helper,
URLDir resultRoot,
String resultName,
String parentNamespace,
boolean processingSource)
Constructor. |
|
ExportContext(boolean isRoot,
String resultURL,
String documentURL,
String parentNamespace,
boolean processingSource)
Constructor. |
|
ExportContext(ExportContext other)
Copy-constructor. |
Method Summary | |
---|---|
void |
assignFrom(ExportContext other)
Assigns all data from given context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean isRoot
true
when the exporter transforms root nametree.
public String documentName
public String documentExtension
public String documentDir
public String documentURL
public String resultName
null
if the result gets processed by the on-screen
renderer.
public String resultExtension
null
if the result gets processed by the on-screen
renderer.
public String resultDir
null
if the result gets processed by the on-screen renderer.
public String resultURL
null
if the result gets
processed by the on-screen renderer.
public boolean processingSource
true
then we are transforming source document. If
false
then we are processing an output of some exporter.
public String parentNamespace
null
when isRoot
is false
.
Constructor Detail |
---|
public ExportContext(boolean isRoot, String resultURL, String documentURL, String parentNamespace, boolean processingSource)
isRoot
- if true
then the exporter transforms root
nametree.resultURL
- URL link to the output document full file name,
including the extension and full path to the file. May be
null
if the result gets processed by the on-screen
renderer.documentURL
- URL link to the document being transformed. Includes
full path and extension.parentNamespace
- If this nametree is not root then this parameter
contains namespace of the parent nametree, otherwise it is not defined.
Must not be null
when isRoot
is
false
.processingSource
- If true
then we are transforming
source document. If false
then we are processing an output
of some exporter.public ExportContext(boolean isRoot, ExportHelper helper, URLDir resultRoot, String resultName, String parentNamespace, boolean processingSource)
isRoot
- if true
then the exporter transforms root
nametree.helper
- the export helper instance.resultRoot
- the directory where the result file will be located.
May be null
if the result gets processed by the on-screen
renderer.resultName
- the file name (+extension) of the result file. May be
null
if the result gets processed by the on-screen
renderer.parentNamespace
- If this nametree is not root then this parameter
contains namespace of the parent nametree, otherwise it is not defined.
Must not be null
when isRoot
is
false
.processingSource
- If true
then we are transforming
source document. If false
then we are processing an output
of some exporter.public ExportContext(ExportContext other)
other
- creates duplicate of this context.Method Detail |
---|
public void assignFrom(ExportContext other)
other
- copies all data from this context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |