Package com.altova.automation.XMLSpy
Class Application
java.lang.Object
com.altova.automation.libs.COMIUnknownObject
com.altova.automation.libs.COMIDispatchObject
com.altova.automation.libs.AutomationServer
com.altova.automation.XMLSpy.Application
public class Application extends AutomationServer
-
Field Summary
Fields inherited from class com.altova.automation.libs.COMIDispatchObject
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF -
Constructor Summary
Constructors Constructor Description Application()XMLSpy_x64 application class Application default class constructor -
Method Summary
Modifier and Type Method Description voidaddMacroMenuItem(java.lang.String strMacro, java.lang.String strDisplayText)method AddMacroMenuItemvoidaddXSLT_XQParameter(java.lang.String sName, java.lang.String sXPath)Adds XSLT Input ParameterXQuery External VariablevoidclearMacroMenu()method ClearMacroMenuDocumentcreateXMLSchemaFromDBStructure(DatabaseConnection pSettings, JVariant tables)Creates a new Schema document from a given DB structure.voidenableAutoBackup()Perform document recovery and enable auto-backupFindInFilesResultsfindInFiles(FindInFilesDlg pSettings)Performs a search (or replacement) for the specified text.DocumentgetActiveDocument()Reference to the active document.COMIDispatchObjectgetApplication()property ApplicationSpyProjectgetCurrentProject()property CurrentProjectElementListgetDatabaseImportElementList(DatabaseConnection pImportSettings)GetDatabaseImportElementList retrieves information about the database as specified in pImportSettings to create the list of elements ppElementList.DatabaseConnectiongetDatabaseSettings()GetDatabaseSettings creates a new object of database settings.ElementListgetDatabaseTables(DatabaseConnection pImportSettings)GetDatabaseTables reads the table names from the database.DialogsgetDialogs()property DialogsDocumentsgetDocuments()Collection of all open documents.java.lang.StringgetEdition()Edition of product.GUIDgetEventInterfaceIID()ExportSettingsgetExportSettings()GetExportSettings creates a new object of common export settings.GUIDgetInterfaceIID()booleangetIsAPISupported()Returns whether API is supported in this version.intgetMajorVersion()Major version of product.intgetMinorVersion()Minor version of product.COMIDispatchObjectgetParent()property ParentRaptorXMLServersgetRaptorXMLServers()Access list of configured RaptorXML servers.java.lang.ObjectgetScriptingEnvironment()Reference to any active scripting environment.intgetServicePackVersion()Service pack version of product, e.g.Enums.ENUMApplicationStatusgetStatus()property StatusElementListgetTextImportElementList(TextImportExportSettings pImportSettings)GetTextImportElementList gets information about the text-file as specified in pImportSettings.TextImportExportSettingsgetTextImportExportSettings()GetTextImportExportSettings creates a new object of common import and export settings for text-files.java.lang.StringgetValidateOnServerPredefinedCommand()get name of predefined command for use by ValidateOnServerbooleangetVisible()property VisibleshortgetWarningNumber()property WarningNumberjava.lang.StringgetWarningText()property WarningTextlonggetWindowHandle()property WindowHandleintgetXSLT_XQParameterCount()Get XSLT Input ParameterXQuery External Variable countjava.lang.StringgetXSLT_XQParameterName(int n)Get XSLT Input ParameterXQuery External Variable namejava.lang.StringgetXSLT_XQParameterXPath(int n)Get XSLT Input ParameterXQuery External Variable XPathDocumentimportFromDatabase(DatabaseConnection pImportSettings, ElementList pElementList)ImportFromDatabase imports the database as specified in pImportSettings.DocumentimportFromSchema(DatabaseConnection pImportSettings, java.lang.String strTable, Document pSchemaDoc)method ImportFromSchemaDocumentimportFromText(TextImportExportSettings pImportSettings, ElementList pElementList)ImportFromText imports the text-file as specified in pImportSettings.DocumentimportFromWord(java.lang.String strFile)ImportFromWord imports the Word-Document strFile.voidnewProject(java.lang.String strPath, boolean bDiscardCurrent)Create and open a new empty XMLSpy project file.voidopenProject(java.lang.String strPath, boolean bDiscardCurrent, boolean bDialog)OpenProject opens an existing project.DocumentopenSchemaFromDatabase(java.lang.String strConnectionString, java.lang.String strAltovaFilePathSchema)Opens a XML Schema from a databaseDocumentopenSchemaFromDatabaseEx(java.lang.String strConnectionString, java.lang.String strUser, java.lang.String strPassword, java.lang.String strClassOrAssemblyName, java.lang.String strAltovaFilePathSchema)Opens an XML Schema from a databasevoidquit()method QuitvoidreloadSettings()The application settings are reloaded from the registry.voidremoveXSLT_XQParameter(int n)Remove XSLT Input ParameterXQuery External VariablevoidrunMacro(java.lang.String strMacroName)Calls the specified macro either from the project scripts (if present) or from the global scripts.voidsetSelection(java.lang.String newValue)Opens the specified document and performs the selection.voidsetValidateOnServerPredefinedCommand(java.lang.String newValue)get name of predefined command for use by ValidateOnServervoidsetVisible(boolean newValue)property VisiblevoidshowApplication(boolean bShow)method ShowApplicationbooleanshowFindInFiles(FindInFilesDlg pSettings)Shows the FindInFiles window with the given settings.intshowForm(java.lang.String strName)method ShowFormvoiduRLDelete(java.lang.String strURL, java.lang.String strUser, java.lang.String strPassword)method URLDeletevoiduRLMakeDirectory(java.lang.String strURL, java.lang.String strUser, java.lang.String strPassword)method URLMakeDirectoryMethods 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
-
Constructor Details
-
Application
XMLSpy_x64 application class Application default class constructor- Throws:
AutomationException
-
-
Method Details
-
getInterfaceIID
-
getEventInterfaceIID
-
newProject
public void newProject(java.lang.String strPath, boolean bDiscardCurrent) throws AutomationExceptionCreate and open a new empty XMLSpy project file.- Parameters:
strPath- - full path to the project file (extension .spp)bDiscardCurrent- - true if any changes made to currently open project shall be discarded?- Throws:
AutomationException
-
openProject
public void openProject(java.lang.String strPath, boolean bDiscardCurrent, boolean bDialog) throws AutomationExceptionOpenProject opens an existing project.- Throws:
AutomationException
-
getDocuments
Collection of all open documents.- Throws:
AutomationException
-
getActiveDocument
Reference to the active document.- Throws:
AutomationException
-
getDatabaseSettings
GetDatabaseSettings creates a new object of database settings. See also ImportFromDatabase.- Throws:
AutomationException
-
getExportSettings
GetExportSettings creates a new object of common export settings. See also the export functions from document.- Throws:
AutomationException
-
getTextImportExportSettings
GetTextImportExportSettings creates a new object of common import and export settings for text-files.- Throws:
AutomationException
-
getTextImportElementList
public ElementList getTextImportElementList(TextImportExportSettings pImportSettings) throws AutomationExceptionGetTextImportElementList gets information about the text-file as specified in pImportSettings. See also ImportFromText.- Throws:
AutomationException
-
importFromText
public Document importFromText(TextImportExportSettings pImportSettings, ElementList pElementList) throws AutomationExceptionImportFromText imports the text-file as specified in pImportSettings. pElementList declares the tables to import.- Throws:
AutomationException
-
importFromDatabase
public Document importFromDatabase(DatabaseConnection pImportSettings, ElementList pElementList) throws AutomationExceptionImportFromDatabase imports the database as specified in pImportSettings. pElementList declares the tables to import.- Throws:
AutomationException
-
getDatabaseImportElementList
public ElementList getDatabaseImportElementList(DatabaseConnection pImportSettings) throws AutomationExceptionGetDatabaseImportElementList retrieves information about the database as specified in pImportSettings to create the list of elements ppElementList. See also ImportFromDatabase.- Throws:
AutomationException
-
importFromWord
ImportFromWord imports the Word-Document strFile.- Throws:
AutomationException
-
getDatabaseTables
public ElementList getDatabaseTables(DatabaseConnection pImportSettings) throws AutomationExceptionGetDatabaseTables reads the table names from the database.- Throws:
AutomationException
-
getWarningNumber
property WarningNumber- Throws:
AutomationException
-
getWarningText
property WarningText- Throws:
AutomationException
-
getCurrentProject
property CurrentProject- Throws:
AutomationException
-
showForm
method ShowForm- Throws:
AutomationException
-
addMacroMenuItem
public void addMacroMenuItem(java.lang.String strMacro, java.lang.String strDisplayText) throws AutomationExceptionmethod AddMacroMenuItem- Throws:
AutomationException
-
clearMacroMenu
method ClearMacroMenu- Throws:
AutomationException
-
quit
method Quit- Throws:
AutomationException
-
showApplication
method ShowApplication- Throws:
AutomationException
-
uRLDelete
public void uRLDelete(java.lang.String strURL, java.lang.String strUser, java.lang.String strPassword) throws AutomationExceptionmethod URLDelete- Throws:
AutomationException
-
uRLMakeDirectory
public void uRLMakeDirectory(java.lang.String strURL, java.lang.String strUser, java.lang.String strPassword) throws AutomationExceptionmethod URLMakeDirectory- Throws:
AutomationException
-
importFromSchema
public Document importFromSchema(DatabaseConnection pImportSettings, java.lang.String strTable, Document pSchemaDoc) throws AutomationExceptionmethod ImportFromSchema- Throws:
AutomationException
-
getApplication
property Application- Throws:
AutomationException
-
getParent
property Parent- Throws:
AutomationException
-
getDialogs
property Dialogs- Throws:
AutomationException
-
getVisible
property Visible- Throws:
AutomationException
-
setVisible
property Visible- Throws:
AutomationException
-
getWindowHandle
property WindowHandle- Throws:
AutomationException
-
runMacro
Calls the specified macro either from the project scripts (if present) or from the global scripts.- Throws:
AutomationException
-
getScriptingEnvironment
Reference to any active scripting environment.- Throws:
AutomationException
-
reloadSettings
The application settings are reloaded from the registry.- Throws:
AutomationException
-
findInFiles
Performs a search (or replacement) for the specified text.- Throws:
AutomationException
-
showFindInFiles
Shows the FindInFiles window with the given settings.- Throws:
AutomationException
-
setSelection
Opens the specified document and performs the selection.- Throws:
AutomationException
-
openSchemaFromDatabase
public Document openSchemaFromDatabase(java.lang.String strConnectionString, java.lang.String strAltovaFilePathSchema) throws AutomationExceptionOpens a XML Schema from a database- Throws:
AutomationException
-
getStatus
property Status- Throws:
AutomationException
-
getMajorVersion
Major version of product. e.g. 8 for 2006 R2 SP1- Throws:
AutomationException
-
getMinorVersion
Minor version of product. e.g. 2 for 2006 R2 SP1- Throws:
AutomationException
-
getEdition
Edition of product. e.g. returns "Altova XMLSpy Enterprise Edition" for the enterprise edition- Throws:
AutomationException
-
getIsAPISupported
Returns whether API is supported in this version.- Throws:
AutomationException
-
getServicePackVersion
Service pack version of product, e.g. 1 for 2010 R2 SP1- Throws:
AutomationException
-
createXMLSchemaFromDBStructure
public Document createXMLSchemaFromDBStructure(DatabaseConnection pSettings, JVariant tables) throws AutomationExceptionCreates a new Schema document from a given DB structure.- Throws:
AutomationException
-
addXSLT_XQParameter
public void addXSLT_XQParameter(java.lang.String sName, java.lang.String sXPath) throws AutomationExceptionAdds XSLT Input ParameterXQuery External Variable- Throws:
AutomationException
-
getXSLT_XQParameterCount
Get XSLT Input ParameterXQuery External Variable count- Throws:
AutomationException
-
getXSLT_XQParameterName
Get XSLT Input ParameterXQuery External Variable name- Throws:
AutomationException
-
getXSLT_XQParameterXPath
Get XSLT Input ParameterXQuery External Variable XPath- Throws:
AutomationException
-
removeXSLT_XQParameter
Remove XSLT Input ParameterXQuery External Variable- Throws:
AutomationException
-
openSchemaFromDatabaseEx
public Document openSchemaFromDatabaseEx(java.lang.String strConnectionString, java.lang.String strUser, java.lang.String strPassword, java.lang.String strClassOrAssemblyName, java.lang.String strAltovaFilePathSchema) throws AutomationExceptionOpens an XML Schema from a database- Throws:
AutomationException
-
getRaptorXMLServers
Access list of configured RaptorXML servers.- Throws:
AutomationException
-
getValidateOnServerPredefinedCommand
get name of predefined command for use by ValidateOnServer- Throws:
AutomationException
-
setValidateOnServerPredefinedCommand
public void setValidateOnServerPredefinedCommand(java.lang.String newValue) throws AutomationExceptionget name of predefined command for use by ValidateOnServer- Throws:
AutomationException
-
enableAutoBackup
Perform document recovery and enable auto-backup- Throws:
AutomationException
-