Package com.altova.automation.XMLSpy
Class Document
java.lang.Object
com.altova.automation.libs.COMIUnknownObject
com.altova.automation.libs.COMIDispatchObject
com.altova.automation.XMLSpy.Document
public class Document extends COMIDispatchObject
-
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 voidassignDTD(java.lang.String strDTDFile, boolean bDialog)method AssignDTDvoidassignSchema(java.lang.String strSchemaFile, boolean bDialog)method AssignSchemavoidassignXSL(java.lang.String strXSLFile, boolean bDialog)method AssignXSLvoidassignXSLFO(java.lang.String i_strFileName, boolean i_bDialog)method AssignXSLFOvoidclose(boolean bDiscardChanges)method ClosevoidconvertDTDOrSchema(Enums.SPYDTDSchemaFormat nFormat, Enums.SPYFrequentElements nFrequentElements)method ConvertDTDOrSchemaDocumentconvertDTDOrSchemaEx(Enums.SPYDTDSchemaFormat nFormat, Enums.SPYFrequentElements nFrequentElements, java.lang.String sOutputPath, Enums.SPYDialogAction nOutputPathDialogAction)method ConvertDTDOrSchemaExDocumentconvertToWSDL20(java.lang.String sFilePath, boolean bShowDialogs)Convert WSDL 1.1 document to 2.0DocumentconvertXMLToFromJSON()Converts XML files to JSON and JSON files to XML.XMLDatacreateChild(Enums.SPYXMLDataKind nKind)method CreateChildjava.lang.StringcreateDBStructureFromXMLSchema(DatabaseConnection pDatabase, JVariant tables, boolean bDropTableWithExistingName)Creates DB structures from a given XML Schema.voidcreateSchemaDiagram(Enums.SPYSchemaDefKind nKind, java.lang.String strName, java.lang.String strFile)method CreateSchemaDiagramvoidendChanges()method EndChangesvoidexecuteXQuery(java.lang.String i_strXMLSourceFile)method ExecuteXQueryvoidexportToDatabase(XMLData pFromChild, ExportSettings pExportSettings, DatabaseConnection pDatabase)method ExportToDatabasevoidexportToText(XMLData pFromChild, ExportSettings pExportSettings, TextImportExportSettings pTextSettings)method ExportToDatabaseDocumentflattenDTDOrSchema(java.lang.String sOutputPath, Enums.SPYDialogAction nOutputPathDialogAction)method FlattenDTDOrSchemavoidgenerateDTDOrSchema(Enums.SPYDTDSchemaFormat nFormat, short nValuesList, Enums.SPYTypeDetection nDetection, Enums.SPYFrequentElements nFrequentElements)method GenerateDTDOrSchemaDocumentgenerateDTDOrSchemaEx(DTDSchemaGeneratorDlg ipDTDSchemaGeneratorDlg)method GenerateDTDOrSchemaExvoidgenerateJSONSchemaDocumentation(JSONSchemaDocumentationDlg i_ipDlg)method GenerateJSONSchemaDocumentationvoidgenerateProgramCode(CodeGeneratorDlg i_ipDlg)method GenerateProgramCodeDocumentgenerateSampleXML(GenerateSampleXMLDlg ipGenerateXMLDlg)Generates a sample ML based if the document is a schema or DTD.voidgenerateSchemaDocumentation(SchemaDocumentationDlg i_ipDlg)method GenerateSchemaDocumentationvoidgenerateWSDL20Documentation(WSDL20DocumentationDlg pDialog)Generates WSDL 2.0 documentation.voidgenerateWSDLDocumentation(WSDLDocumentationDlg pDialog)Generates WSDL documentation.voidgenerateXBRLDocumentation(XBRLDocumentationDlg pDialog)Generates XBRL documentation.COMIDispatchObjectgetApplication()property Applicationjava.lang.StringgetAsXMLString()property AsXMLStringAuthenticViewgetAuthenticView()property AuthenticViewEnums.SPYViewModesgetCurrentViewMode()property ActiveViewModeXMLDatagetDataRoot()property DataRootElementListgetDBStructureList(DatabaseConnection pDatabase)Returns the list of tables that can be created from the current Schema.OldAuthenticViewgetDocEditView()property DocEditViewjava.lang.StringgetEncoding()property EncodingGUIDgetEventInterfaceIID()ElementListgetExportElementList(XMLData pFromChild, ExportSettings pExportSettings)method GetExportElementListjava.lang.StringgetFullName()property FullNameGridViewgetGridView()property GridViewGUIDgetInterfaceIID()booleangetIsModified()property IsModifiedjava.lang.StringgetName()property NameCOMIDispatchObjectgetParent()property Parentjava.lang.StringgetPath()property Pathjava.lang.StringgetPathName()method GetPathNameXMLDatagetRootElement()property RootElementbooleangetSaved()property SavedJVariantgetSuggestions()Returnssets a value containing the suggestion window content.TextViewgetTextView()Returns a TextView object when the current view mode is 'spyViewText'.java.lang.StringgetTitle()property TitlebooleangetTreatXBRLInconsistenciesAsErrors()Let IsValid() treat XBRL inconsistencies as errorsbooleanisValid(JVariant strError, JVariant nErrorPos, JVariant pBadData)method IsValidbooleanisValidEx(Enums.SPYValidateXSDVersion nXSDVersion, int nErrorLimit, Enums.SPYValidateErrorFormat nErrorFormat, JVariant strError)method IsValidExbooleanisWellFormed(XMLData pData, boolean bWithChildren, JVariant strError, JVariant nErrorPos, JVariant pBadXMLData)method IsWellFormedvoidsave()method SavevoidsaveAs(java.lang.String i_strFileNameOrPath)method SaveAsjava.lang.StringsaveInString(XMLData pData, boolean bMarked)method SaveInStringvoidsaveToURL(java.lang.String strURL, java.lang.String strUser, java.lang.String strPassword)method SaveToURLvoidsetActiveDocument()method SetActiveDocumentvoidsetAsXMLString(java.lang.String newValue)property AsXMLStringvoidsetEncoding(java.lang.String newValue)property EncodingvoidsetExternalIsValid(boolean bIsValid)The internal information set by this method is only queried on cancelling the default validation in any OnBeforeValidate handler.voidsetFileEncoding(java.lang.String strEncoding)method SetEncodingvoidsetFullName(java.lang.String newValue)property FullNamevoidsetPathName(java.lang.String strPath)method SetPathNamevoidsetSelection(java.lang.String newValue)Sets the current selection in the document.voidsetSuggestions(JVariant newValue)Returnssets a value containing the suggestion window content.voidsetTreatXBRLInconsistenciesAsErrors(boolean newValue)Let IsValid() treat XBRL inconsistencies as errorsvoidstartChanges()method StartChangesbooleanswitchViewMode(Enums.SPYViewModes nMode)method SwitchViewModevoidtransformXSL()method TransformXSLvoidtransformXSLEx(Enums.SPYDialogAction nAction)Performs XSL transformation.voidtransformXSLFO()method TransformXSLFOvoidtransformXSLFOEx(Enums.SPYDialogAction nAction, java.lang.String sOutputFilepath)Performs XSLFO transformation.voidupdateViews()method UpdateViewsbooleanupdateXMLData()The XMLData tree is updated from the current view.booleanvalidateOnServer(Enums.SPYValidateErrorFormat nErrorFormat, JVariant strError)method ValidateOnServer - restricted accessMethods 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
-
getEventInterfaceIID
-
getTitle
property Title- Throws:
AutomationException
-
close
method Close- Throws:
AutomationException
-
save
method Save- Throws:
AutomationException
-
getRootElement
property RootElement- Throws:
AutomationException
-
createChild
method CreateChild- Throws:
AutomationException
-
updateViews
method UpdateViews- Throws:
AutomationException
-
isWellFormed
public boolean isWellFormed(XMLData pData, boolean bWithChildren, JVariant strError, JVariant nErrorPos, JVariant pBadXMLData) throws AutomationExceptionmethod IsWellFormed- Throws:
AutomationException
-
isValid
public boolean isValid(JVariant strError, JVariant nErrorPos, JVariant pBadData) throws AutomationExceptionmethod IsValid- Throws:
AutomationException
-
assignDTD
method AssignDTD- Throws:
AutomationException
-
saveInString
method SaveInString- Throws:
AutomationException
-
generateDTDOrSchema
public void generateDTDOrSchema(Enums.SPYDTDSchemaFormat nFormat, short nValuesList, Enums.SPYTypeDetection nDetection, Enums.SPYFrequentElements nFrequentElements) throws AutomationExceptionmethod GenerateDTDOrSchema- Throws:
AutomationException
-
setPathName
method SetPathName- Throws:
AutomationException
-
getGridView
property GridView- Throws:
AutomationException
-
startChanges
method StartChanges- Throws:
AutomationException
-
endChanges
method EndChanges- Throws:
AutomationException
-
setFileEncoding
method SetEncoding- Throws:
AutomationException
-
setActiveDocument
method SetActiveDocument- Throws:
AutomationException
-
exportToDatabase
public void exportToDatabase(XMLData pFromChild, ExportSettings pExportSettings, DatabaseConnection pDatabase) throws AutomationExceptionmethod ExportToDatabase- Throws:
AutomationException
-
exportToText
public void exportToText(XMLData pFromChild, ExportSettings pExportSettings, TextImportExportSettings pTextSettings) throws AutomationExceptionmethod ExportToDatabase- Throws:
AutomationException
-
getExportElementList
public ElementList getExportElementList(XMLData pFromChild, ExportSettings pExportSettings) throws AutomationExceptionmethod GetExportElementList- Throws:
AutomationException
-
transformXSL
method TransformXSL- Throws:
AutomationException
-
assignXSL
method AssignXSL- Throws:
AutomationException
-
convertDTDOrSchema
public void convertDTDOrSchema(Enums.SPYDTDSchemaFormat nFormat, Enums.SPYFrequentElements nFrequentElements) throws AutomationExceptionmethod ConvertDTDOrSchema- Throws:
AutomationException
-
assignSchema
public void assignSchema(java.lang.String strSchemaFile, boolean bDialog) throws AutomationExceptionmethod AssignSchema- Throws:
AutomationException
-
saveToURL
public void saveToURL(java.lang.String strURL, java.lang.String strUser, java.lang.String strPassword) throws AutomationExceptionmethod SaveToURL- Throws:
AutomationException
-
createSchemaDiagram
public void createSchemaDiagram(Enums.SPYSchemaDefKind nKind, java.lang.String strName, java.lang.String strFile) throws AutomationExceptionmethod CreateSchemaDiagram- Throws:
AutomationException
-
switchViewMode
method SwitchViewMode- Throws:
AutomationException
-
getPathName
method GetPathName- Throws:
AutomationException
-
getCurrentViewMode
property ActiveViewMode- Throws:
AutomationException
-
getDocEditView
property DocEditView- Throws:
AutomationException
-
getIsModified
property IsModified- Throws:
AutomationException
-
getAuthenticView
property AuthenticView- Throws:
AutomationException
-
getApplication
property Application- Throws:
AutomationException
-
getParent
property Parent- Throws:
AutomationException
-
getFullName
property FullName- Throws:
AutomationException
-
setFullName
property FullName- Throws:
AutomationException
-
getName
property Name- Throws:
AutomationException
-
getPath
property Path- Throws:
AutomationException
-
getSaved
property Saved- Throws:
AutomationException
-
saveAs
method SaveAs- Throws:
AutomationException
-
getEncoding
property Encoding- Throws:
AutomationException
-
setEncoding
property Encoding- Throws:
AutomationException
-
getDataRoot
property DataRoot- Throws:
AutomationException
-
generateProgramCode
method GenerateProgramCode- Throws:
AutomationException
-
assignXSLFO
public void assignXSLFO(java.lang.String i_strFileName, boolean i_bDialog) throws AutomationExceptionmethod AssignXSLFO- Throws:
AutomationException
-
transformXSLFO
method TransformXSLFO- Throws:
AutomationException
-
generateSchemaDocumentation
method GenerateSchemaDocumentation- Throws:
AutomationException
-
executeXQuery
method ExecuteXQuery- Throws:
AutomationException
-
setExternalIsValid
The internal information set by this method is only queried on cancelling the default validation in any OnBeforeValidate handler.- Throws:
AutomationException
-
generateSampleXML
public Document generateSampleXML(GenerateSampleXMLDlg ipGenerateXMLDlg) throws AutomationExceptionGenerates a sample ML based if the document is a schema or DTD.- Throws:
AutomationException
-
updateXMLData
The XMLData tree is updated from the current view.- Throws:
AutomationException
-
getAsXMLString
property AsXMLString- Throws:
AutomationException
-
setAsXMLString
property AsXMLString- Throws:
AutomationException
-
generateDTDOrSchemaEx
public Document generateDTDOrSchemaEx(DTDSchemaGeneratorDlg ipDTDSchemaGeneratorDlg) throws AutomationExceptionmethod GenerateDTDOrSchemaEx- Throws:
AutomationException
-
convertDTDOrSchemaEx
public Document convertDTDOrSchemaEx(Enums.SPYDTDSchemaFormat nFormat, Enums.SPYFrequentElements nFrequentElements, java.lang.String sOutputPath, Enums.SPYDialogAction nOutputPathDialogAction) throws AutomationExceptionmethod ConvertDTDOrSchemaEx- Throws:
AutomationException
-
getTextView
Returns a TextView object when the current view mode is 'spyViewText'.- Throws:
AutomationException
-
getSuggestions
Returnssets a value containing the suggestion window content.- Throws:
AutomationException
-
setSuggestions
Returnssets a value containing the suggestion window content.- Throws:
AutomationException
-
setSelection
Sets the current selection in the document.- Throws:
AutomationException
-
generateWSDLDocumentation
Generates WSDL documentation.- Throws:
AutomationException
-
transformXSLEx
Performs XSL transformation.- Throws:
AutomationException
-
generateWSDL20Documentation
Generates WSDL 2.0 documentation.- Throws:
AutomationException
-
generateXBRLDocumentation
Generates XBRL documentation.- Throws:
AutomationException
-
convertToWSDL20
public Document convertToWSDL20(java.lang.String sFilePath, boolean bShowDialogs) throws AutomationExceptionConvert WSDL 1.1 document to 2.0- Throws:
AutomationException
-
getTreatXBRLInconsistenciesAsErrors
Let IsValid() treat XBRL inconsistencies as errors- Throws:
AutomationException
-
setTreatXBRLInconsistenciesAsErrors
Let IsValid() treat XBRL inconsistencies as errors- Throws:
AutomationException
-
convertXMLToFromJSON
Converts XML files to JSON and JSON files to XML.- Throws:
AutomationException
-
createDBStructureFromXMLSchema
public java.lang.String createDBStructureFromXMLSchema(DatabaseConnection pDatabase, JVariant tables, boolean bDropTableWithExistingName) throws AutomationExceptionCreates DB structures from a given XML Schema.- Throws:
AutomationException
-
getDBStructureList
Returns the list of tables that can be created from the current Schema.- Throws:
AutomationException
-
transformXSLFOEx
public void transformXSLFOEx(Enums.SPYDialogAction nAction, java.lang.String sOutputFilepath) throws AutomationExceptionPerforms XSLFO transformation.- Throws:
AutomationException
-
flattenDTDOrSchema
public Document flattenDTDOrSchema(java.lang.String sOutputPath, Enums.SPYDialogAction nOutputPathDialogAction) throws AutomationExceptionmethod FlattenDTDOrSchema- Throws:
AutomationException
-
isValidEx
public boolean isValidEx(Enums.SPYValidateXSDVersion nXSDVersion, int nErrorLimit, Enums.SPYValidateErrorFormat nErrorFormat, JVariant strError) throws AutomationExceptionmethod IsValidEx- Throws:
AutomationException
-
validateOnServer
public boolean validateOnServer(Enums.SPYValidateErrorFormat nErrorFormat, JVariant strError) throws AutomationExceptionmethod ValidateOnServer - restricted access- Throws:
AutomationException
-
generateJSONSchemaDocumentation
public void generateJSONSchemaDocumentation(JSONSchemaDocumentationDlg i_ipDlg) throws AutomationExceptionmethod GenerateJSONSchemaDocumentation- Throws:
AutomationException
-