writer2latex.xmerge
Class ConvertData
java.lang.Objectwriter2latex.xmerge.ConvertData
- ConverterResult
public class ConvertData
extends java.lang.Object
ConvertData is used as a container for passing
OutputFile objects in and out of the Convert
class. The ConvertData contains a String
name and a Vector of OutputFile objects.
addDocument
public void addDocument(OutputFile doc)
Adds a OutputFile to the vector.
doc - The OutputFile to add.
getDocumentEnumeration
public Enumeration getDocumentEnumeration()
Gets an Enumeration to access the Vector
of OutputFile objects
- getDocumentEnumeration in interface ConverterResult
- The
Enumeration to access the
Vector of OutputFile objects.
getName
public String getName()
Returns the OutputFile name.
getNumDocuments
public int getNumDocuments()
Gets the number of OutputFile objects currently stored
- The number of
OutputFile objects currently
stored.
isMasterDocument
public boolean isMasterDocument(OutputFile doc)
Check if a given document is the master document
doc - The OutputFile to check
- true if this is the master document
reset
public void reset()
Resets ConvertData. This empties all OutputFile
objects from this class. This allows reuse of a
ConvertData.
setName
public void setName(String docName)
Sets the OutputFile name.
docName - The name of the OutputFile.