Package com.altova.automation.XMLSpy
Class Documents
java.lang.Object
com.altova.automation.libs.COMIUnknownObject
com.altova.automation.libs.COMIDispatchObject
com.altova.automation.XMLSpy.Documents
- All Implemented Interfaces:
COMIDispatchConstList<Document>,java.lang.Iterable<Document>
public class Documents extends COMIDispatchObject implements COMIDispatchConstList<Document>
-
Field Summary
Fields inherited from class com.altova.automation.libs.COMIDispatchObject
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF -
Method Summary
Modifier and Type Method Description java.lang.Objectget_NewEnum()Not used in this context.intgetCount()GUIDgetInterfaceIID()DocumentgetItem(int n)java.util.Iterator<Document>iterator()DocumentnewAuthenticFile(java.lang.String strSPSPath, java.lang.String strXMLPath)NewAuthenticFile creates a new XML file and opens it in Authentic View using SPS design strSPSPath.DocumentnewFile(java.lang.String strFile, java.lang.String strType)NewFile creates a new file of type strType (i.e.DocumentnewFileFromText(java.lang.String strText, java.lang.String strType)method NewFileFromTextDocumentopenAuthenticFile(java.lang.String strSPSPath, java.lang.String strXMLPath)OpenAuthenticFile opens an XML file or database in Authentic View using SPS design strSPSPath.DocumentopenFile(java.lang.String strPath, boolean bDialog)OpenFile opens the file strPath.DocumentopenURL(java.lang.String strURL, Enums.SPYURLTypes nURLType, Enums.SPYLoading nLoading, java.lang.String strUser, java.lang.String strPassword)method OpenURLDocumentopenURLDialog(java.lang.String strURL, Enums.SPYURLTypes nURLType, Enums.SPYLoading nLoading, java.lang.String strUser, java.lang.String strPassword)method OpenURLDialogMethods inherited from class com.altova.automation.libs.COMIDispatchObject
addListener, getProperty, getProperty, invoke, removeListener, setProperty, setPropertyMethods inherited from class com.altova.automation.libs.COMIUnknownObject
dispose, equals, getCOMInterfacePointer, isNull
-
Method Details
-
getInterfaceIID
-
getCount
- Specified by:
getCountin interfaceCOMIDispatchConstList<Document>- Returns:
- number of elements in the list.
- Throws:
AutomationException- on COM error.
-
getItem
- Specified by:
getItemin interfaceCOMIDispatchConstList<Document>- Parameters:
n- get element at specified index. COM lists typically are 1-based!- Returns:
- element at index
- Throws:
AutomationException- on COM error
-
get_NewEnum
Description copied from interface:COMIDispatchConstListNot used in this context. Lists get iterated based on indices.- Specified by:
get_NewEnumin interfaceCOMIDispatchConstList<Document>- Returns:
- COM enumerator for the list.
- Throws:
AutomationException- on COM error
-
openFile
OpenFile opens the file strPath. If bDialog is TRUE, a file-dialog will be displayed.- Throws:
AutomationException
-
newFile
public Document newFile(java.lang.String strFile, java.lang.String strType) throws AutomationExceptionNewFile creates a new file of type strType (i.e. xml).- Throws:
AutomationException
-
openURL
public Document openURL(java.lang.String strURL, Enums.SPYURLTypes nURLType, Enums.SPYLoading nLoading, java.lang.String strUser, java.lang.String strPassword) throws AutomationExceptionmethod OpenURL- Throws:
AutomationException
-
openURLDialog
public Document openURLDialog(java.lang.String strURL, Enums.SPYURLTypes nURLType, Enums.SPYLoading nLoading, java.lang.String strUser, java.lang.String strPassword) throws AutomationExceptionmethod OpenURLDialog- Throws:
AutomationException
-
newFileFromText
public Document newFileFromText(java.lang.String strText, java.lang.String strType) throws AutomationExceptionmethod NewFileFromText- Throws:
AutomationException
-
openAuthenticFile
public Document openAuthenticFile(java.lang.String strSPSPath, java.lang.String strXMLPath) throws AutomationExceptionOpenAuthenticFile opens an XML file or database in Authentic View using SPS design strSPSPath.- Throws:
AutomationException
-
newAuthenticFile
public Document newAuthenticFile(java.lang.String strSPSPath, java.lang.String strXMLPath) throws AutomationExceptionNewAuthenticFile creates a new XML file and opens it in Authentic View using SPS design strSPSPath.- Throws:
AutomationException
-
iterator
- Specified by:
iteratorin interfacejava.lang.Iterable<Document>
-