OpenOffice.org
XMerge API

org.openoffice.xmerge
Class ConvertData

java.lang.Object
  |
  +--org.openoffice.xmerge.ConvertData

public class ConvertData
extends java.lang.Object

ConvertData is used as a container for passing Document objects in and out of the Convert class. The ConvertData contains a String name and a Vector of Document objects.


Constructor Summary
ConvertData()
           
 
Method Summary
 void addDocument(Document doc)
          Adds a Document to the vector.
 java.util.Enumeration getDocumentEnumeration()
          Gets an Enumeration to access the Vector of Document objects.
 java.lang.String getName()
          Returns the Document name.
 int getNumDocuments()
          Gets the number of Document objects currently stored
 void reset()
          Resets ConvertData.
 void setName(java.lang.String docName)
          Sets the Document name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertData

public ConvertData()
Method Detail

addDocument

public void addDocument(Document doc)
Adds a Document to the vector.
Parameters:
doc - The Document to add.

getDocumentEnumeration

public java.util.Enumeration getDocumentEnumeration()
Gets an Enumeration to access the Vector of Document objects.
Returns:
The Enumeration to access the Vector of Document objects.

getName

public java.lang.String getName()
Returns the Document name.
Returns:
The Document name.

getNumDocuments

public int getNumDocuments()
Gets the number of Document objects currently stored
Returns:
The number of Document objects currently stored.

reset

public void reset()
Resets ConvertData. This empties all Document objects from this class. This allows reuse of a ConvertData.

setName

public void setName(java.lang.String docName)
Sets the Document name.
Parameters:
docName - The name of the Document.

OpenOffice.org
XMerge API

Copyright © 2002 OpenOffice.org