The example code listings below show how to deal with errors raised from the UModel API in different development environments.
Im folgenden Beispielcodefragment sehen Sie, wie mit Fehlern verfahren wird, die von der UModel API in unterschiedlichen Umgebungen ausgelöst werden.
For example, in the code listing below, the HTML object tag is used to instantiate a control that will host the Message window.
Im unten stehenden Codefragment wird z.B. der HTML object Tag verwendet, um ein Control zu instantiieren, das das Meldungsfenster aufnimmt.
If you haven't done that already, create a simple Java project with UModel, as shown in Example: Generate Java Code.
Erstellen Sie, wie in Beispiel: Generieren von Java-Code gezeigt, ein einfaches Java-Projekt mit UModel, falls Sie dies noch nicht getan haben.
The license parameters can also be set on the object directly, as shown in the code listing below, which adapts the code listing in the Browser-Independent Example.
These tasks are configured once for the entire project (see example below) and can then be executed by every developer on their local computer because the build scripts are included in the code repository as a part of the project.
Diese Aufgaben werden einmal für das gesamte Projekt konfiguriert (siehe Beispiel unten) und können dann von jedem Entwickler auf dem lokalen Rechner ausgeführt werden, da die Build-Skripte als Teil des Projekts ins Code-Repository aufgenommen werden.
Note that the code listed below might differ slightly from the code in the API Examples form.The listing below is commented for ease of understanding.
Beachten Sie, dass ich der unten aufgelistete Code geringfügig von dem Code im Formular unter API Examples unterscheiden kann. Der Code ist zum besseren Verständnis mit Kommentaren versehen.
The JScript code listing below illustrates how to open two documents from the XMLSpy Examples folder and set one of them as the active document.
Im unten aufgelisteten JScript-Code wird gezeigt, wie man Dokumente öffnet, ein Dokument zum aktiven Dokument macht, durch die offenen Dokumente iteriert und Dokumente schließt.
After you generate code from the Library schema (see Example Schema), a test Java project is created, along with several supporting Altova libraries.
Nachdem Sie anhand des Schemas "Library" (siehe Beispielschema) Code generiert haben, wird ein Java-Projekt sowie eine Reihe von unterstützenden Altova-Bibliotheken generiert.
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.