%ZEN.Template.AddInWizard.XMLSchemaWizard
class %ZEN.Template.AddInWizard.XMLSchemaWizard extends %ZEN.Template.AddInWizard.Template
Studio Template.The XML Schema Wizard reads an XML schema and creates a set of corresponding classes.
Property Inventory
Method Inventory
- %OnAfterCreatePage()
- %OnPreHTTP()
- %OnTemplateAction()
- DrawClasses()
- DrawNS()
- DrawPageTitle()
- DrawSaving()
- FileExists()
- GetRecentList()
- GetSRC()
- GetStatus()
- PreProcess()
- SaveLast()
- canFinish()
- canGoBack()
- canGoNext()
- changePersistent()
- changedFileType()
- doBrowse()
- drawDone()
- getIndexValues()
- getPackages()
- getTypeValues()
- hasMultiplePages()
- nextPage()
- onPopupAction()
- onresizeHandler()
- onstartHandler()
- previousPage()
- updateFile()
- updateURL()
Parameters
parameter HELPID = GXML_schema_wizard_ui;
Inherited description: DOCBOOK Topic Id that offers help for this template.
parameter PAGETITLE = XML Schema Wizard;
Display title of this page
parameter TEMPLATEDESCRIPTION = Creates class definitions from an XML Schema file.;
Inherited description: Short description of the template to show in Studio.
If DOMAIN is defined this will be localized.
If DOMAIN is defined this will be localized.
parameter TEMPLATENAME = XML Schema Wizard;
Inherited description: Name of the template to show in Studio.
If DOMAIN is defined this will be localized.
If DOMAIN is defined this will be localized.
parameter TEMPLATETITLE = XML Schema Wizard;
Inherited description: Title of the template to show in the template window.
parameter TEMPLATETYPE = cls;
Inherited description: Comma separated list of 'CSP', 'CSR', 'MAC', 'INT', 'INC',
'BAS', 'CLS' to say what type of code this template
generates; CSP, CSR, Routine, or Class code.
You can also specify '*' for all types.
Properties
property Multiple as %ZEN.Datatype.boolean;
Property methods: MultipleDisplayToLogical(), MultipleGet(), MultipleIsValid(), MultipleLogicalToDisplay(), MultipleLogicalToOdbc(), MultipleLogicalToXSD(), MultipleNormalize(), MultipleSet(), MultipleXSDToLogical()
property Packages as %ZEN.Datatype.string;
String that contains package names delimited by comma.
Property methods: PackagesDisplayToLogical(), PackagesGet(), PackagesIsValid(), PackagesLogicalToDisplay(), PackagesLogicalToOdbc(), PackagesNormalize(), PackagesSet()
property TotalPackages as %ZEN.Datatype.integer;
Number of total Namespaces which is the same as total packages
Property methods: TotalPackagesDisplayToLogical(), TotalPackagesGet(), TotalPackagesIsValid(), TotalPackagesLogicalToDisplay(), TotalPackagesLogicalToOdbc(), TotalPackagesNormalize(), TotalPackagesSet()
property lblSchemaFile as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("Enter or select the path and name of a Schema File:") ];
Property methods: lblSchemaFileDisplayToLogical(), lblSchemaFileGet(), lblSchemaFileIsValid(), lblSchemaFileLogicalToDisplay(), lblSchemaFileLogicalToOdbc(), lblSchemaFileNormalize(), lblSchemaFileSet()
property lblURL as %ZEN.Datatype.caption [ InitialExpression = $$$TextJS("Enter a URL:") ];
Property methods: lblURLDisplayToLogical(), lblURLGet(), lblURLIsValid(), lblURLLogicalToDisplay(), lblURLLogicalToOdbc(), lblURLNormalize(), lblURLSet()
Methods
method %OnAfterCreatePage() as %Status
Load the recent list. Set last file type so that onstartHandler can hide/show fields appropriately.
classmethod %OnPreHTTP() as %Boolean
Zen page notification of an HTTP request. This method can be overwritten
by subclasses.
This is called before the standard Zen pre-HTTP processing occurs.
This is called before the standard Zen pre-HTTP processing occurs.
method %OnTemplateAction() as %Status
This method is called when the template is complete. Any
output to the principal device is returned to the Studio.
(1) adding classes to the project; (2) classes may be opened if Studio's option "Open file to added project" is checked.
(1) adding classes to the project; (2) classes may be opened if Studio's option "Open file to added project" is checked.
classmethod DrawClasses(proxy As %ZEN.proxyObject) as %Status
Draw page 4, Classes
classmethod DrawNS(proxy As %ZEN.proxyObject) as %Status
Draw page 3, namespaces
classmethod DrawSaving(proxy As %ZEN.proxyObject) as %Status
Draw page 5, Saving Classes
classmethod FileExists(filename) as %Boolean [ ZenMethod ]
Check if file exists
classmethod GetRecentList(filetype) as %String [ ZenMethod ]
Get recent list for URLs or Files. filetype = "FILE" or "URL".
classmethod GetSRC(filetype As %String, filename As %String, sslConfig As %String = "") as %String [ ZenMethod ]
Given the source and filename, load the file.
Save the source and filename to %session.Data.
classmethod GetStatus(tab) as %ZEN.proxyObject [ ZenMethod ]
tab = 3: NS - when DrawNS is finished, Status is "Done".
tab = 4: Classes - when DrawClasses is finished, Status is "Done".
classmethod PreProcess(proxy As %ZEN.proxyObject) as %String [ ZenMethod ]
For page 3, do preprocess to find out whether it is multiple
classmethod SaveLast(filetype, url, sslConfig="") as %Boolean [ ZenMethod ]
FileType is either "FILE" or "URL".
clientmethod canFinish() [ Language = javascript ]
Return true if this template can Finish (i.e., enable
the Finish button).
clientmethod canGoBack() [ Language = javascript ]
Return true if this template can go to the previous page (i.e., enable
the Back button).
This is implemented by subclasses.
This is implemented by subclasses.
clientmethod canGoNext() [ Language = javascript ]
Return true if this template can go to the next page (i.e., enable
the Next button).
clientmethod changePersistent(flag) [ Language = javascript ]
clientmethod changedFileType(thisObj) [ Language = javascript ]
User changed file type. Change label. Show local FILENAME if it is a local server. OW show filename and browse button.
clientmethod doBrowse() [ Language = javascript ]
Launching a file selector window.
clientmethod drawDone(tab) [ Language = javascript ]
This method is fired up after onDrawContent is finished. Hide progress message and display error if exists.
clientmethod getIndexValues(n) [ Language = javascript ]
Go through the Index values (checkboxes) for each class. Return index names that are checked.
clientmethod getPackages() [ Language = javascript ]
Validate and return packages string. If a package name is empty, display message and return 0.
clientmethod getTypeValues() [ Language = javascript ]
Go through the Type values (radio buttons) for all classes
clientmethod hasMultiplePages() [ Language = javascript ]
Inherited description: Return true if this template has more than one "page".
This will display Back and Next buttons.
This is implemented by subclasses.
clientmethod nextPage() [ Language = javascript ]
Go to the next page of the template (if there is one).
clientmethod onPopupAction(popupName, action, value) [ Language = javascript ]
Returning from file select OR qualifers dialog and setting the value into the appropriate field.
The id of the field that needs to be updated is saved in "dialogClicked".
clientmethod onresizeHandler() [ Language = javascript ]
This client event, if present, is fired when the page is resized.
clientmethod onstartHandler() [ Language = javascript ]
This is called when the template is first displayed;
This provides a chance to set focus etc.
clientmethod previousPage() [ Language = javascript ]
Go to the previous page of the template (if there is one).
This is implemented by subclasses.
This is implemented by subclasses.
clientmethod updateFile(file) [ Language = javascript ]
Load the recently used file into textbox
clientmethod updateURL(url) [ Language = javascript ]
Load the recently used url into textbox
Inherited Members
Inherited Properties
- %condition
- %import
- %includeFiles
- %page
- %resource
- CSPSessionCookie
- DocumentName
- DocumentNamespace
- Language
- Namespace
- Project
- SelectedText
- User
- align
- aux
- backgroundTimerInterval
- cellAlign
- cellSize
- cellStyle
- cellVAlign
- children
- composite
- containerStyle
- cssLevel
- disabled
- dragAndDrop
- dragEnabled
- dropEnabled
- enclosingClass
- enclosingStyle
- error
- groupClass
- groupStyle
- height
- helpId
- hidden
- hint
- hintClass
- hintStyle
- id
- index
- isExit
- label
- labelClass
- labelDisabledClass
- labelPosition
- labelStyle
- layout
- lblExit
- lblFinish
- lblNoRespond
- lblNotExist
- name
- onafterdrag
- onbeforedrag
- onclick
- ondrag
- ondrop
- onhide
- onrefresh
- onshow
- onupdate
- parent
- showLabel
- slice
- title
- tuple
- useSVG
- useSoftModals
- valign
- visible
- width
- window
- zenPersistentPopup
Inherited Methods
- %AddChild()
- %AddChildAfter()
- %AddChildBefore()
- %AddComponent()
- %AddImportedComponents()
- %AddToProject()
- %AddToSaveSet()
- %AddToSourceControl()
- %ApplyURLParms()
- %Attr()
- %BindExport()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %DrawAutoLogout()
- %DrawClassDefinitions()
- %DrawComponentHTML()
- %DrawHTML()
- %DrawHTMLPage()
- %DrawJSStrings()
- %DrawObjectDefinitions()
- %DrawTitle()
- %EnclosingDivId()
- %EndBackgroundMethod()
- %EndScript()
- %Eval()
- %EvalC()
- %Extends()
- %ForceClientRender()
- %GetChildIndex()
- %GetComponent()
- %GetComponentById()
- %GetComponentByName()
- %GetEventHandlers()
- %GetLinks()
- %GetPageName()
- %GetParameter()
- %GetValueById()
- %GetValueByName()
- %GetXMLName()
- %IsA()
- %IsModified()
- %Link()
- %LinkCSS()
- %LinkScript()
- %MakeId()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnAddToPageAfter()
- %OnAddToPageBefore()
- %OnBeforeCreatePage()
- %OnCreateApplication()
- %OnCreatePage()
- %OnDetermineCSSLevel()
- %OnDrawEnclosingDiv()
- %OnDrawHTMLBody()
- %OnDrawHTMLHead()
- %OnDrawHTMLMeta()
- %OnDrawObjectProperties()
- %OnFinishBackgroundTask()
- %OnMonitorBackgroundTask()
- %OnMutateChildren()
- %OnObjectSynch()
- %OnSubmit()
- %OnUseSoftModals()
- %OnZENDeserialize()
- %OriginalNamespace()
- %PackageName()
- %QuoteValue()
- %QuoteValueL10N()
- %RemoveChild()
- %RemoveChildren()
- %RemoveComponent()
- %RemoveFromSaveSet()
- %RunBackgroundMethod()
- %Self()
- %SerializeObject()
- %SetBackgroundMethodStatus()
- %SetClassName()
- %SetErrorById()
- %SetErrorByName()
- %SetModified()
- %SetValueById()
- %SetValueByName()
- %SetValuesByName()
- %StartScript()
- %TemplateHeader()
- %ValidateObject()
- %ZENVersion()
- CheckAllBlanks()
- ConvertParameter()
- Decrypt()
- Encrypt()
- EscapeHTML()
- EscapeURL()
- HyperEventCall()
- HyperEventHead()
- Include()
- InsertHiddenField()
- InsertHiddenFields()
- IsEnabled()
- IsPrivate()
- IsValidClassName()
- Link()
- LocalizeName()
- OnHTTPHeader()
- OnPage()
- OnPageError()
- OnPostHTTP()
- OnPostHyperEvent()
- OnPreHTTP()
- OnPreHyperEvent()
- Page()
- QuoteJS()
- RewriteURL()
- ShowError()
- StartTimer()
- StopTimer()
- ThrowError()
- UnescapeHTML()
- UnescapeURL()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()
- addChild()
- addChildAfter()
- addChildBefore()
- adjustSize()
- cancelPopup()
- cancelTemplate()
- childrenMutated()
- correctIELayering()
- createComponent()
- createComponentNS()
- deleteComponent()
- dragFinishHandler()
- dragHandler()
- dragNotifyHandler()
- dragStartHandler()
- dropHandler()
- dropStartHandler()
- endModal()
- exposeComponent()
- findElement()
- finishTemplate()
- fireOnResizeEvent()
- fireOnUnloadEvent()
- fireOnUpdateEvent()
- firePopupAction()
- formValidationHandler()
- getChildIndex()
- getComponent()
- getComponentById()
- getEnclosingDiv()
- getHidden()
- getHintElement()
- getLabelElement()
- getOpener()
- getProperty()
- getSettings()
- getType()
- gotoPage()
- invokeSuper()
- isOfType()
- launchPopupWindow()
- makeId()
- onCreate()
- onDelete()
- onDisplayHandler()
- onEndModalHandler()
- onRefreshContents()
- onSerialize()
- onServerMethodCall()
- onServerMethodError()
- onServerMethodReturn()
- onStartModalHandler()
- ondisabledHandler()
- onfinishHandler()
- onkeydownHandler()
- onkeyupHandler()
- onlayoutHandler()
- onloadHandler()
- onlogoutHandler()
- onoverlayHandler()
- onunloadHandler()
- onupdateHandler()
- popupActionHandler()
- refreshContents()
- removeChild()
- render()
- renderContents()
- renderSVG()
- resetMsg()
- setComponentId()
- setHidden()
- setOverlayMode()
- setProperty()
- setPropertyAll()
- setTraceOption()
- showDocumentation()
- showHelp()
- showMsg()
- startModal()
- startProgressBar()
- stopProgressBar()
- updateState()
- validateRequired()