diff --git a/.gitignore b/.gitignore index fac0b9c..dda28f5 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ repo/ consumer/generated* out .DS_Store +./gradle.properties diff --git a/LICENSE b/LICENSE index 89eabd6..b92c2e4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014 Nils Larsgård, nilsmagnus@gmail.com +Copyright (c) 2021 Peter Vermes, peter.vermes@yupzip.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 79c6514..61ea72b 100644 --- a/README.md +++ b/README.md @@ -1,45 +1,31 @@ -### Deprecation notice +### Note -This plugin is no longer maintained by its creator since I dont have any interest in using this plugin anymore and find no pleasure in maintaining it for free/fun. Please fork it and use it as you like. The plugin is not published to any relevant plugin-portals. +* Version 3.0.0 contains a breaking change: 'cxfVersion' and 'cxfPluginVersion' properties are now required. +* This plugin is forked from deprecated nilsmagnus/wsdl2java to make the plugin compatible with Gradle 7+. wsdl2java gradle plugin ========= - -[![Known Vulnerabilities](https://snyk.io/test/github/nilsmagnus/wsdl2java/badge.svg?targetFile=build.gradle)](https://snyk.io/test/github/nilsmagnus/wsdl2java?targetFile=build.gradle) -[![Build Status](https://cloud.drone.io/api/badges/nilsmagnus/wsdl2java/status.svg)](https://cloud.drone.io/nilsmagnus/wsdl2java) -[ ![Download](https://api.bintray.com/packages/nilsmagnus/maven/wsdl2java/images/download.svg?version=0.12) ](https://bintray.com/nilsmagnus/maven/wsdl2java/0.12/link) - Gradle plugin for generating java from wsdl, using cxf under the hood and the same options as the maven wsdl-2-java plugin from apache-cxf. -The plugin binaries are downloadable from bintray: https://bintray.com/nilsmagnus/maven/wsdl2java/ - ### Issues -If you have any issues with the plugin, please file an issue at github, https://github.com/nilsmagnus/wsdl2java/issues +If you have any issues with the plugin, please file an issue at github, https://github.com/yupzip/wsdl2java/issues ### Contribution Contributions are welcome as long as they are sane. #### Contributors -- Nils Larsgård , https://github.com/nilsmagnus -- Mats Faugli, https://github.com/fowlie -- Thorben Schiller, https://github.com/thorbolo -- Stefan Kloe, https://github.com/Pentadrago -- Mattias Rundgren, https://github.com/matrun -- Steffen Döring, https://github.com/s-doering -- Jesper Skov, https://github.com/jskovjyskebankdk -- Manuel Sanches Ortiz, https://github.com/manuelsanchezortiz -- Ruben Gees, https://github.com/rubengees -- Stefan Krause-Kjær, https://github.com/KrauseStefan +- Peter Vermes , https://github.com/yupzip +- Nicklas Bondesson , https://github.com/nicklasbondesson ### CXF This plugin uses the apache-cxf tools to do the actual work. +(Version must be defined in gradle task config!) ### Tasks | Name | Description | Dependecy | | ---- | ----------- | --------- | -| wsdl2java | Generate java source from wsdl-files | CompileJava/CompileKotlin depends on wsdl2java | -| ~~xsd2java~~ | ~~Generate java source from xsd-files~~ Removed in version 0.8 | ~~CompileJava depends on xsd2java~~ | +| wsdl2javaTask | Generate java source from wsdl-files | CompileJava/CompileKotlin depends on wsdl2java | ## Usage @@ -53,17 +39,10 @@ To use this plugin, you must Groovy: ```groovy -buildscript{ - repositories{ - jcenter() - mavenCentral() - } - dependencies { - classpath 'no.nils:wsdl2java:0.12' - } +plugins { + id 'java' + id 'com.yupzip.wsdl2java' version '3.0.0' } - -apply plugin: 'no.nils.wsdl2java' ``` Kotlin: @@ -71,7 +50,7 @@ Kotlin: ```kotlin plugins { id("java") - id("no.nils.wsdl2java") version "0.12" + id("com.yupzip.wsdl2java") version "3.0.0" } ``` @@ -81,11 +60,13 @@ plugins { | ------ | ------------- | ----------- | | wsdlDir | src/main/resources | Define the wsdl files directory to support incremental build. This means that the task will be up-to-date if nothing in this directory has changed. | | wsdlsToGenerate | empty | This is the main input to the plugin that defines the wsdls to process. It is a list of arguments where each argument is a list of arguments to process a wsdl-file. The Wsdl-file with full path is the last argument. The array can be supplied with the same options as described for the maven-cxf plugin(http://cxf.apache.org/docs/wsdl-to-java.html). | +| generatedWsdlDir | build/generated/wsdl | Destination directory for generated sources. The task will be up-to-date if nothing in this directory changes between builds. | | locale | Locale.getDefault() | The locale for the generated sources – especially the JavaDoc. This might be necessary to prevent differing sources due to several development environments. | | encoding | platform default encoding | Set the encoding name for generated sources, such as EUC-JP or UTF-8. | | stabilizeAndMergeObjectFactory| false | If multiple WSDLs target the same package, merge their `ObjectFactory` classes. | -| cxfVersion | "+" | Controls the CXF version used to generate code. | -| cxfPluginVersion | "+" | Controls the CXF XJC-plugins version used to generate code. | +| cxfVersion | none, has to be specified | Controls the CXF version used to generate code. | +| cxfPluginVersion | none, has to be specified | Controls the CXF XJC-plugins version used to generate code. | +| includeJava8XmlDependencies | true | If on Java 9 or later this flag includes xml libraries that were previously included with the JRE. Set to false if you use recent versions of Java and the Jakarta xml implementations. | Example setting of options: @@ -99,16 +80,16 @@ wsdl2java { ['-xjc','-b','bindingfile.xml','src/main/resources/wsdl/secondwsdl.wsdl'] ] locale = Locale.GERMANY - cxfVersion = "2.5.1" - cxfPluginVersion = "2.4.0" + cxfVersion = "4.0.0" + cxfPluginVersion = "4.0.0" } ``` Kotlin: ```kotlin -extra["cxfVersion"] = "3.3.2" -extra["cxfPluginVersion"] = "3.2.2" +extra["cxfVersion"] = "4.0.0" +extra["cxfPluginVersion"] = "4.0.0" wsdl2java { wsdlDir = file("$projectDir/src/main/wsdl") @@ -119,61 +100,98 @@ wsdl2java { } ``` -### Options for xsd2java (deprecated, separate plugin coming soon) - -This will not work for version 0.8+! - -| Option | Default value | Description | -| ------ | ------------- | ----------- | -| generatedXsdDir | "generatedsources/src/main/java" | Destination directory for generated sources | -| xsdsToGenerate | null | 2-d array consisting of 2 or 3 values in each array: 1. xsd-file(input), 2. package for the generated sources, 3. (optional) a map containing additional options for the xjc task | -| encoding | platform default encoding | Set the encoding name for generated sources, such as EUC-JP or UTF-8. | - -Example setting of options: - +## Example gradle configuration for Spring Boot 3+ with jakarta namespace ```groovy -xsd2java { - encoding = 'utf-8' - xsdsToGenerate = [ - ["src/main/resources/xsd/CustomersAndOrders.xsd", 'no.nils.xsd2java.sample', [header: false] /* optional map */] - ] - generatedXsdDir = file("generatedsources/xsd2java") +plugins { + id "java" + id "org.springframework.boot" version "3.0.1" + id "io.spring.dependency-management" version "1.1.0" + id "com.yupzip.wsdl2java" version "3.0.0" } -``` -## Complete example usage -This is a an example of a working build.gradle for a java project. You can also take a look at the test resources, which contain two working projects. +bootJar { + duplicatesStrategy(DuplicatesStrategy.WARN) +} -```groovy -buildscript { - repositories { - jcenter() - mavenCentral() - } - dependencies { - classpath 'no.nils:wsdl2java:0.12' - } +compileJava { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + options.compilerArgs << '-parameters' } -apply plugin: 'java' -apply plugin: 'no.nils.wsdl2java' +sourceSets.main.java.srcDirs "src/generated-sources/java" -repositories { - mavenCentral() +dependencies { + implementation 'org.springframework.boot:spring-boot-starter-actuator' + implementation 'org.springframework.boot:spring-boot-starter-data-jpa' + implementation 'org.springframework.boot:spring-boot-starter-security' + implementation 'org.springframework.boot:spring-boot-starter-web' + implementation 'org.springframework.boot:spring-boot-starter-web-services' + implementation 'org.springframework.ws:spring-ws-support:4.0.0' + // your project dependencies + + implementation 'com.sun.xml.bind:jaxb-impl:4.0.1' + implementation 'com.sun.xml.messaging.saaj:saaj-impl:3.0.0' + implementation 'com.sun.xml.ws:jaxws-ri:4.0.0' + + implementation 'io.swagger.core.v3:swagger-jaxrs2-jakarta:2.2.7' + + implementation 'jakarta.xml.bind:jakarta.xml.bind-api:4.0.0' + implementation 'jakarta.xml.soap:jakarta.xml.soap-api:3.0.0' + implementation 'jakarta.xml.ws:jakarta.xml.ws-api:4.0.0' + + implementation 'org.jvnet.jaxb2_commons:jaxb2-namespace-prefix:2.0' + implementation 'codes.rafael.jaxb2_commons:jaxb2-basics:3.0.0' + implementation 'codes.rafael.jaxb2_commons:jaxb2-basics-runtime:3.0.0' + + implementation 'org.apache.cxf.xjc-utils:cxf-xjc-runtime:4.0.0' + implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.1' +} + +configurations { + wsdl2java } dependencies { - testCompile 'junit:junit:+' + wsdl2java ( + 'com.sun.xml.bind:jaxb-impl:4.0.1', + 'org.apache.cxf.xjc-utils:cxf-xjc-runtime:4.0.0', + 'jakarta.xml.ws:jakarta.xml.ws-api:4.0.0', + 'com.sun.xml.ws:rt:4.0.0', + 'org.jvnet.jaxb2_commons:jaxb2-namespace-prefix:2.0', + 'codes.rafael.jaxb2_commons:jaxb2-basics-runtime:3.0.0', + 'codes.rafael.jaxb2_commons:jaxb2-basics:3.0.0' + ) } wsdl2java { + wsdlDir = file("$projectDir/src/main/resources/wsdl/") + stabilizeAndMergeObjectFactory = true + includeJava8XmlDependencies = false + cxfVersion = "4.0.0" + cxfPluginVersion = "4.0.0" wsdlsToGenerate = [ - ['-p', 'com.acme.mypackage', '-autoNameResolution', "$projectDir/src/main/resources/wsdl/stockqoute.wsdl"] + ['-xjc', + '-xjc-Xnamespace-prefix', + '-b',"$projectDir/src/main/resources/wsdl/wsdlBindings.xml", + '-b',"$projectDir/src/main/resources/wsdl/wsdlTypeDefBindings.xjb", + '-wsdlLocation', 'classPath:wsdl/myWsdl.wsdl', + '-p', 'my.package', + '-autoNameResolution', + '-verbose', + "$projectDir/src/main/resources/wsdl/myWsdl.wsdl" + ], + ['-xjc', + '-xjc-Xnamespace-prefix', + '-b',"$projectDir/src/main/resources/wsdl/wsdlBindings2.xml", + '-b',"$projectDir/src/main/resources/wsdl/wsdlTypeDefBindings2.xjb", + '-wsdlLocation', 'classPath:wsdl/myWsdl2.wsdl', + '-p', 'my.package', + '-autoNameResolution', + '-verbose', + "$projectDir/src/main/resources/wsdl/myWsdl2.wsdl"] ] - wsdlDir = file("$projectDir/src/main/resources/wsdl") - locale = Locale.FRANCE - cxfVersion = "2.5.1" - cxfPluginVersion = "2.4.0" + generatedWsdlDir = file("src/generated-sources/java") } ``` @@ -184,10 +202,10 @@ This plugin automatically adds the necessary dependencies to work on Java 9+ whe As of now, these dependencies are added: ```groovy -implementation "javax.xml.bind:jaxb-api:2.3.1", -implementation "javax.xml.ws:jaxws-api:2.3.1", -implementation "org.glassfish.jaxb:jaxb-runtime:2.3.2", -implementation "org.glassfish.main.javaee-api:javax.jws:3.1.2.2", +implementation "javax.xml.bind:jaxb-api:2.3.1" +implementation "javax.xml.ws:jaxws-api:2.3.1" +implementation "org.glassfish.jaxb:jaxb-runtime:2.3.2" +implementation "org.glassfish.main.javaee-api:javax.jws:3.1.2.2" implementation "com.sun.xml.messaging.saaj:saaj-impl:1.5.1" ``` @@ -198,7 +216,7 @@ To use those extensions some more dependencies are necessary. ```groovy dependencies() { - compile 'org.jvnet.jaxb2_commons:jaxb2-basics-runtime:0.11.0' + implementation 'org.jvnet.jaxb2_commons:jaxb2-basics-runtime:0.11.0' // enable extension support for wsdl2java wsdl2java 'org.jvnet.jaxb2_commons:jaxb2-basics-runtime:0.11.0' @@ -212,22 +230,8 @@ wsdl2java{ } ``` -This example creates the hashCode and the equals method. +This example creates hashCode and equals methods. ### A notice on multi-module projects Instead of referring to absolute paths in your build-file, try using $projectDir as a prefix to your files and directories. As shown in the "Complete example usage". - - -# Releasing - -* set version to final in build.gradle & commit - -* build artifact and upload - - export BINTRAY_USER= - export BINTRAY_API_KEY= - ./gradlew clean bintrayPublish bintrayUpload - -* increment version and set to SNAPSHOT & commit -* git push diff --git a/build.gradle b/build.gradle index e86418c..717f079 100644 --- a/build.gradle +++ b/build.gradle @@ -2,20 +2,20 @@ plugins { id "groovy" id "maven-publish" id "java-gradle-plugin" - id "com.jfrog.bintray" version "1.8.4" + id 'com.gradle.plugin-publish' version '0.14.0' id 'idea' id 'eclipse' } -group = 'no.nils' -version = '0.13-SNAPSHOT' +group = 'com.yupzip' +version = '3.0.0' // stay compatible with the crowd sourceCompatibility = JavaVersion.VERSION_1_6 targetCompatibility = JavaVersion.VERSION_1_6 repositories { - jcenter() + mavenCentral() } dependencies { @@ -41,12 +41,20 @@ test { gradlePlugin { plugins { wsdl2java { - id = 'no.nils.wsdl2java' - implementationClass = 'no.nils.wsdl2java.Wsdl2JavaPlugin' + id = 'com.yupzip.wsdl2java' + implementationClass = 'com.yupzip.wsdl2java.Wsdl2JavaPlugin' + displayName = 'com.yupzip.wsdl2java' + description = 'Generate java code form wsdl/xsd with cxf' } } } +pluginBundle { + website = 'https://github.com/yupzip/wsdl2java' + vcsUrl = 'https://github.com/yupzip/wsdl2java' + tags = ['wsdl2java'] +} + publishing { publications { maven(MavenPublication) { @@ -55,38 +63,6 @@ publishing { } } -bintray { - apiUrl = "https://api.bintray.com" - user = System.env.BINTRAY_USER - key = System.env.BINTRAY_API_KEY - - publications = ['maven'] //When uploading Maven-based publication files - // - AND/OR - - dryRun = false //Whether to run this as dry-run, without deploying - publish = true //If version should be auto published after an upload - pkg { - repo = 'maven' - //userOrg = 'no.nils' //An optional organization name when the repo belongs to one of the user's orgs - name = 'wsdl2java' - desc = 'Gradle wsdl2java plugin' - websiteUrl = 'https://github.com/nilsmagnus/wsdl2java' - issueTrackerUrl = 'https://github.com/nilsmagnus/wsdl2java/issues' - vcsUrl = 'https://github.com/nilsmagnus/wsdl2java.git' - licenses = ['MIT'] - labels = ['gradle', 'wsdl2java', 'plugin'] - publicDownloadNumbers = true - //Optional version descriptor - version { - name = project.version //Bintray logical version name - desc = '' - //released = '' //2 possible values: date in the format of 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ' OR a java.util.Date instance - vcsTag = project.version - attributes = ['gradle-plugin': 'no.nils.wsdl2java:no.nils:wsdl2java'] - //Optional version-level attributes - } - } -} - wrapper { gradleVersion = '6.0.1' } diff --git a/gradle.properties b/gradle.properties deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/groovy/com/yupzip/wsdl2java/LineEnding.groovy b/src/main/groovy/com/yupzip/wsdl2java/LineEnding.groovy new file mode 100644 index 0000000..5b5fffa --- /dev/null +++ b/src/main/groovy/com/yupzip/wsdl2java/LineEnding.groovy @@ -0,0 +1,31 @@ +package com.yupzip.wsdl2java + +enum LineEnding { + /** + * {@code \n} on unix systems, {@code \r\n} on windows systems. + */ + PLATFORM_NATIVE(System.lineSeparator()), + /** + * {@code \r\n} + */ + WINDOWS("\r\n"), + /** + * {@code \n} + */ + UNIX("\n"), + /** + * {@code \r} + */ + MAC_CLASSIC("\r"); + + + private LineEnding(String value) { + this.value = value; + } + + private final String value; + + String getValue() { + return value; + } +} diff --git a/src/main/groovy/no/nils/wsdl2java/ObjectFactoryMerger.groovy b/src/main/groovy/com/yupzip/wsdl2java/ObjectFactoryMerger.groovy similarity index 99% rename from src/main/groovy/no/nils/wsdl2java/ObjectFactoryMerger.groovy rename to src/main/groovy/com/yupzip/wsdl2java/ObjectFactoryMerger.groovy index 80dfc4a..bb0743a 100644 --- a/src/main/groovy/no/nils/wsdl2java/ObjectFactoryMerger.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/ObjectFactoryMerger.groovy @@ -1,4 +1,4 @@ -package no.nils.wsdl2java; +package com.yupzip.wsdl2java; /** * Takes one or more ObjectFactory java files and merge them, sorting the lines in the process. diff --git a/src/main/groovy/no/nils/wsdl2java/Wsdl2JavaPlugin.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy similarity index 71% rename from src/main/groovy/no/nils/wsdl2java/Wsdl2JavaPlugin.groovy rename to src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy index c0d705d..051517c 100644 --- a/src/main/groovy/no/nils/wsdl2java/Wsdl2JavaPlugin.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPlugin.groovy @@ -1,4 +1,4 @@ -package no.nils.wsdl2java +package com.yupzip.wsdl2java import org.gradle.api.JavaVersion import org.gradle.api.Plugin @@ -7,6 +7,7 @@ import org.gradle.api.Task class Wsdl2JavaPlugin implements Plugin { public static final String WSDL2JAVA = "wsdl2java" + public static final String WSDL2JAVA_TASK = "wsdl2javaTask" private static final JAVA_9_DEPENDENCIES = [ "javax.xml.bind:jaxb-api:2.3.1", @@ -26,16 +27,16 @@ class Wsdl2JavaPlugin implements Plugin { // Add new configuration for our plugin and add required dependencies to it later. def wsdl2javaConfiguration = project.configurations.maybeCreate(WSDL2JAVA) - // Get compile configuration and add Java 9+ dependencies if required. - project.configurations.named("compile").configure { + // Get implementation configuration and add Java 9+ dependencies if required. + project.configurations.named("implementation").configure { it.withDependencies { - if (JavaVersion.current().isJava9Compatible()) { + if (JavaVersion.current().isJava9Compatible() && extension.includeJava8XmlDependencies) { JAVA_9_DEPENDENCIES.each { dep -> it.add(project.dependencies.create(dep)) } } } } - def wsdl2JavaTask = project.tasks.register(WSDL2JAVA, Wsdl2JavaTask.class) { task -> + def wsdl2JavaTask = project.tasks.register(WSDL2JAVA_TASK, Wsdl2JavaTask.class) { task -> wsdl2javaConfiguration.withDependencies { it.add(project.dependencies.create("org.apache.cxf:cxf-tools-wsdlto-databinding-jaxb:${cxfVersion.get()}")) it.add(project.dependencies.create("org.apache.cxf:cxf-tools-wsdlto-frontend-jaxws:${cxfVersion.get()}")) @@ -46,7 +47,7 @@ class Wsdl2JavaPlugin implements Plugin { it.add(project.dependencies.create("org.apache.cxf.xjcplugins:cxf-xjc-boolean:${cxfPluginVersion.get()}")) } - if (JavaVersion.current().isJava9Compatible()) { + if (JavaVersion.current().isJava9Compatible() && extension.includeJava8XmlDependencies) { JAVA_9_DEPENDENCIES.each { dep -> it.add(project.dependencies.create(dep)) } } } @@ -61,24 +62,14 @@ class Wsdl2JavaPlugin implements Plugin { it.dependsOn wsdl2JavaTask } - project.pluginManager.withPlugin("org.jetbrains.kotlin.jvm") { - project.tasks.withType(getTaskClass("org.jetbrains.kotlin.gradle.tasks.KotlinCompile")).configureEach { - it.dependsOn wsdl2JavaTask - } - } - - project.pluginManager.withPlugin("org.jetbrains.kotlin.kapt") { - project.tasks.withType(getTaskClass("org.jetbrains.kotlin.gradle.internal.KaptGenerateStubsTask")).configureEach { + if (project.tasks.findByName("compileKotlin") != null) { + project.tasks.named("compileKotlin").configure { it.dependsOn wsdl2JavaTask } } project.sourceSets { - main.java.srcDirs += Wsdl2JavaTask.DESTINATION_DIR + main.java.srcDirs += extension.generatedWsdlDir } } - - static Class getTaskClass(name) { - return Class.forName(name) as Class - } } diff --git a/src/main/groovy/no/nils/wsdl2java/Wsdl2JavaPluginExtension.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy similarity index 67% rename from src/main/groovy/no/nils/wsdl2java/Wsdl2JavaPluginExtension.groovy rename to src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy index 38cdf48..832867d 100644 --- a/src/main/groovy/no/nils/wsdl2java/Wsdl2JavaPluginExtension.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaPluginExtension.groovy @@ -1,4 +1,4 @@ -package no.nils.wsdl2java +package com.yupzip.wsdl2java import org.gradle.api.tasks.* @@ -21,6 +21,9 @@ class Wsdl2JavaPluginExtension { @Input String encoding = Charset.defaultCharset().name() + @Input + LineEnding lineEnding = LineEnding.PLATFORM_NATIVE + @Input boolean stabilize = false @@ -28,9 +31,15 @@ class Wsdl2JavaPluginExtension { boolean stabilizeAndMergeObjectFactory = false @Input - String cxfVersion = "+" + String cxfVersion = null + + @Input + String cxfPluginVersion = null + + @Input + String generatedWsdlDir = "build/generated/wsdl" @Input - String cxfPluginVersion = "+" + boolean includeJava8XmlDependencies = true; } diff --git a/src/main/groovy/no/nils/wsdl2java/Wsdl2JavaTask.groovy b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy similarity index 94% rename from src/main/groovy/no/nils/wsdl2java/Wsdl2JavaTask.groovy rename to src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy index b422cee..02e3c64 100644 --- a/src/main/groovy/no/nils/wsdl2java/Wsdl2JavaTask.groovy +++ b/src/main/groovy/com/yupzip/wsdl2java/Wsdl2JavaTask.groovy @@ -1,4 +1,4 @@ -package no.nils.wsdl2java +package com.yupzip.wsdl2java import groovy.io.FileType import org.gradle.api.DefaultTask @@ -9,12 +9,6 @@ import java.security.MessageDigest @CacheableTask class Wsdl2JavaTask extends DefaultTask { - static final DESTINATION_DIR = "build/generated/wsdl" - - private static final NEWLINE = System.getProperty("line.separator") - - @OutputDirectory - File generatedWsdlDir = new File(DESTINATION_DIR) @InputFiles @Classpath @@ -26,8 +20,17 @@ class Wsdl2JavaTask extends DefaultTask { @Nested Wsdl2JavaPluginExtension extension + @Internal + File generatedWsdlDir + + @OutputDirectory + File getGeneratedWsdlFile() { + return new File(extension != null ? extension.generatedWsdlDir : "build/generated/wsdl") + } + @TaskAction def wsdl2java() { + generatedWsdlDir = getGeneratedWsdlFile() deleteOutputFolders() MessageDigest md5 = MessageDigest.getInstance("MD5") @@ -46,8 +49,8 @@ class Wsdl2JavaTask extends DefaultTask { String wsdlPath = md5.digest(argsCopy[-1].toString().bytes).encodeHex().toString() File targetDir = new File(tmpDir, wsdlPath) - argsCopy.add(argsCopy.size - 1, '-d') - argsCopy.add(argsCopy.size - 1, targetDir) + argsCopy.add(argsCopy.size() - 1, '-d') + argsCopy.add(argsCopy.size() - 1, targetDir) String[] wsdl2JavaArgs = new String[argsCopy.size()] for (int i = 0; i < argsCopy.size(); i++) wsdl2JavaArgs[i] = argsCopy[i] @@ -139,7 +142,8 @@ class Wsdl2JavaTask extends DefaultTask { } protected void switchToEncoding(File file) { - List lines = file.getText().split(NEWLINE) + String lineEnding = extension.lineEnding.value + List lines = file.getText().split(lineEnding) file.delete() if (extension.stabilize) { @@ -148,8 +152,7 @@ class Wsdl2JavaTask extends DefaultTask { stabilizeXmlElementRef(file, lines) stabilizeXmlSeeAlso(file, lines) } - - String text = lines.join(NEWLINE) + NEWLINE // want empty line last + String text = lines.join(lineEnding) + lineEnding // want empty line last file.withWriter(extension.encoding) { w -> w.write(text) } } diff --git a/src/test/groovy/no/nils/wsdl2java/ObjectFactoryMergerTest.groovy b/src/test/groovy/no/nils/wsdl2java/ObjectFactoryMergerTest.groovy deleted file mode 100644 index dd536e7..0000000 --- a/src/test/groovy/no/nils/wsdl2java/ObjectFactoryMergerTest.groovy +++ /dev/null @@ -1,42 +0,0 @@ -package no.nils.wsdl2java - -import org.junit.jupiter.api.BeforeEach -import org.junit.jupiter.api.Test - -import static org.junit.jupiter.api.Assertions.assertEquals - -class ObjectFactoryMergerTest { - File outputDir = new File("build/test") - - @BeforeEach - void cleanOutput() { - outputDir.deleteDir() - outputDir.mkdirs() - } - - @Test - void mergeWithEmptyCreatorsWorks() { - File input = new File(this.class.classLoader.getResource("objectfactorymerger/dokumentutil/ObjectFactory.java").toURI()) - File output = new File(outputDir, "ObjectFactory.java") - - output.withWriter("UTF-8") { w -> w.write(input.getText("UTF-8")) } - - ObjectFactoryMerger.merge(input, output, "UTF-8") - - File expected = new File(this.class.classLoader.getResource("objectfactorymerger/dokumentutil/ObjectFactory_sorted.java").toURI()) - assertEquals(expected.getText("UTF-8"), output.getText("UTF-8"), "Sorting should be stable") - } - - @Test - void mergeWithoutNoCreatorWorks() { - File input = new File(this.class.classLoader.getResource("objectfactorymerger/autodesktopservice/ObjectFactory.java").toURI()) - File output = new File(outputDir, "ObjectFactory.java") - - output.withWriter("UTF-8") { w -> w.write(input.getText("UTF-8")) } - - ObjectFactoryMerger.merge(input, output, "UTF-8") - - File expected = new File(this.class.classLoader.getResource("objectfactorymerger/autodesktopservice/ObjectFactory_sorted.java").toURI()) - assertEquals(expected.getText("UTF-8"), output.getText("UTF-8"), "Sorting should be stable") - } -} diff --git a/src/test/groovy/no/nils/wsdl2java/Wsdl2JavaPluginFunctionalTest.groovy b/src/test/groovy/no/nils/wsdl2java/Wsdl2JavaPluginFunctionalTest.groovy deleted file mode 100644 index d2eba12..0000000 --- a/src/test/groovy/no/nils/wsdl2java/Wsdl2JavaPluginFunctionalTest.groovy +++ /dev/null @@ -1,84 +0,0 @@ -package no.nils.wsdl2java - -import org.gradle.testkit.runner.GradleRunner -import org.junit.jupiter.api.Test -import org.junit.jupiter.params.ParameterizedTest -import org.junit.jupiter.params.provider.ValueSource - -import static org.gradle.testkit.runner.TaskOutcome.FROM_CACHE -import static org.gradle.testkit.runner.TaskOutcome.SUCCESS -import static org.junit.jupiter.api.Assertions.assertEquals - -class Wsdl2JavaPluginFunctionalTest { - - private File projectDir = new File(this.class.classLoader.getResource("test-project").toURI()) - private File kotlinProjectDir = new File(this.class.classLoader.getResource("test-project-kotlin").toURI()) - - @Test - void canRunWsdl2Java() { - def result = GradleRunner.create() - .withPluginClasspath() - .withProjectDir(projectDir) - .withArguments("clean", "wsdl2java", "--stacktrace") - .build() - - assertEquals(SUCCESS, result.task(":wsdl2java").getOutcome()) - } - - @Test - void canCompileProjectWithGeneratedWsdls() { - def result = GradleRunner.create() - .withPluginClasspath() - .withProjectDir(projectDir) - .withArguments("clean", "build", "--stacktrace") - .build() - - assertEquals(SUCCESS, result.task(":build").getOutcome()) - } - - @Test - void canCompileKotlinProject() { - def result = GradleRunner.create() - .withPluginClasspath() - .withProjectDir(kotlinProjectDir) - .withArguments("clean", "build", "--stacktrace") - .build() - - assertEquals(SUCCESS, result.task(":build").getOutcome()) - } - - @ParameterizedTest(name = "{0}") - @ValueSource(strings = ["5.6.4", "4.10.3"]) - void worksWithOlderGradleVersions(String version) { - def result = GradleRunner.create() - .withPluginClasspath() - .withProjectDir(projectDir) - .withGradleVersion(version) - .withArguments("clean", "build", "--stacktrace") - .build() - - assertEquals(SUCCESS, result.task(":build").getOutcome()) - } - - @Test - void buildCacheWorks() { - // Delete build cache form previous test runs. - new File(projectDir, "build-cache").deleteDir() - - def result1 = GradleRunner.create() - .withPluginClasspath() - .withProjectDir(projectDir) - .withArguments("clean", "wsdl2java", "--build-cache", "--stacktrace") - .build() - - assertEquals(SUCCESS, result1.task(":wsdl2java").getOutcome()) - - def result2 = GradleRunner.create() - .withPluginClasspath() - .withProjectDir(projectDir) - .withArguments("clean", "wsdl2java", "--build-cache", "--stacktrace") - .build() - - assertEquals(FROM_CACHE, result2.task(":wsdl2java").getOutcome()) - } -} diff --git a/src/test/groovy/no/nils/wsdl2java/Wsdl2JavaPluginTest.groovy b/src/test/groovy/no/nils/wsdl2java/Wsdl2JavaPluginTest.groovy deleted file mode 100644 index ada1b0f..0000000 --- a/src/test/groovy/no/nils/wsdl2java/Wsdl2JavaPluginTest.groovy +++ /dev/null @@ -1,25 +0,0 @@ -package no.nils.wsdl2java - -import org.gradle.api.Project -import org.gradle.testfixtures.ProjectBuilder -import org.junit.jupiter.api.Test - -import static org.junit.jupiter.api.Assertions.assertTrue - -class Wsdl2JavaPluginTest { - - @Test - void canAddWsdlTaskToProject() { - Project project = ProjectBuilder.builder().build() - def task = project.task('wsdl2java', type: Wsdl2JavaTask) - assertTrue(task instanceof Wsdl2JavaTask) - } - - @Test - void wsdl2javaPluginAddsWsdl2javaTaskToProject() { - Project project = ProjectBuilder.builder().build() - project.apply(plugin: Wsdl2JavaPlugin) - - assertTrue(project.tasks.wsdl2java instanceof Wsdl2JavaTask) - } -} diff --git a/src/test/resources/objectfactorymerger/autodesktopservice/ObjectFactory.java b/src/test/resources/objectfactorymerger/autodesktopservice/ObjectFactory.java deleted file mode 100644 index 01cb8fb..0000000 --- a/src/test/resources/objectfactorymerger/autodesktopservice/ObjectFactory.java +++ /dev/null @@ -1,170 +0,0 @@ - -package https.www_jyffi_dk.autodesktopservice.v1_0; - -import javax.xml.bind.annotation.XmlRegistry; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the https.www_jyffi_dk.autodesktopservice.v1_0 package. - *

An ObjectFactory allows you to programatically - * construct new instances of the Java representation - * for XML content. The Java representation of XML - * content can consist of schema derived interfaces - * and classes representing the binding of schema - * type definitions, element declarations and model - * groups. Factory methods for each of these are - * provided in this class. - * - */ -@XmlRegistry -public class ObjectFactory { - - - - /** - * Create an instance of {@link UsedCar } - * - */ - public UsedCar createUsedCar() { - return new UsedCar(); - } - - /** - * Create an instance of {@link Car } - * - */ - public Car createCar() { - return new Car(); - } - - /** - * Create an instance of {@link ClientFault } - * - */ - public ClientFault createClientFault() { - return new ClientFault(); - } - - /** - * Create an instance of {@link CommercialCustomerType } - * - */ - public CommercialCustomerType createCommercialCustomerType() { - return new CommercialCustomerType(); - } - - /** - * Create an instance of {@link ConsumerCustomerType } - * - */ - public ConsumerCustomerType createConsumerCustomerType() { - return new ConsumerCustomerType(); - } - - /** - * Create an instance of {@link ContactPersonType } - * - */ - public ContactPersonType createContactPersonType() { - return new ContactPersonType(); - } - - /** - * Create an instance of {@link CustomerType } - * - */ - public CustomerType createCustomerType() { - return new CustomerType(); - } - - /** - * Create an instance of {@link DbiCar } - * - */ - public DbiCar createDbiCar() { - return new DbiCar(); - } - - /** - * Create an instance of {@link DbiEquipment } - * - */ - public DbiEquipment createDbiEquipment() { - return new DbiEquipment(); - } - - /** - * Create an instance of {@link DocumentKey } - * - */ - public DocumentKey createDocumentKey() { - return new DocumentKey(); - } - - /** - * Create an instance of {@link DocumentListRequest } - * - */ - public DocumentListRequest createDocumentListRequest() { - return new DocumentListRequest(); - } - - /** - * Create an instance of {@link DocumentListResponse } - * - */ - public DocumentListResponse createDocumentListResponse() { - return new DocumentListResponse(); - } - - /** - * Create an instance of {@link Equipment } - * - */ - public Equipment createEquipment() { - return new Equipment(); - } - - /** - * Create an instance of {@link ServiceAgreement } - * - */ - public ServiceAgreement createServiceAgreement() { - return new ServiceAgreement(); - } - - /** - * Create an instance of {@link TokenRequest } - * - */ - public TokenRequest createTokenRequest() { - return new TokenRequest(); - } - - /** - * Create an instance of {@link TokenResponse } - * - */ - public TokenResponse createTokenResponse() { - return new TokenResponse(); - } - - /** - * Create an instance of {@link TradeInCar } - * - */ - public TradeInCar createTradeInCar() { - return new TradeInCar(); - } - - /** - * Create an instance of {@link UserDataType } - * - */ - public UserDataType createUserDataType() { - return new UserDataType(); - } - -} diff --git a/src/test/resources/objectfactorymerger/autodesktopservice/ObjectFactory_sorted.java b/src/test/resources/objectfactorymerger/autodesktopservice/ObjectFactory_sorted.java deleted file mode 100644 index aab787a..0000000 --- a/src/test/resources/objectfactorymerger/autodesktopservice/ObjectFactory_sorted.java +++ /dev/null @@ -1,171 +0,0 @@ - -package https.www_jyffi_dk.autodesktopservice.v1_0; - -import javax.xml.bind.annotation.XmlRegistry; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the https.www_jyffi_dk.autodesktopservice.v1_0 package. - *

An ObjectFactory allows you to programatically - * construct new instances of the Java representation - * for XML content. The Java representation of XML - * content can consist of schema derived interfaces - * and classes representing the binding of schema - * type definitions, element declarations and model - * groups. Factory methods for each of these are - * provided in this class. - * - */ -@XmlRegistry -public class ObjectFactory { - - - - - /** - * Create an instance of {@link Car } - * - */ - public Car createCar() { - return new Car(); - } - - /** - * Create an instance of {@link ClientFault } - * - */ - public ClientFault createClientFault() { - return new ClientFault(); - } - - /** - * Create an instance of {@link CommercialCustomerType } - * - */ - public CommercialCustomerType createCommercialCustomerType() { - return new CommercialCustomerType(); - } - - /** - * Create an instance of {@link ConsumerCustomerType } - * - */ - public ConsumerCustomerType createConsumerCustomerType() { - return new ConsumerCustomerType(); - } - - /** - * Create an instance of {@link ContactPersonType } - * - */ - public ContactPersonType createContactPersonType() { - return new ContactPersonType(); - } - - /** - * Create an instance of {@link CustomerType } - * - */ - public CustomerType createCustomerType() { - return new CustomerType(); - } - - /** - * Create an instance of {@link DbiCar } - * - */ - public DbiCar createDbiCar() { - return new DbiCar(); - } - - /** - * Create an instance of {@link DbiEquipment } - * - */ - public DbiEquipment createDbiEquipment() { - return new DbiEquipment(); - } - - /** - * Create an instance of {@link DocumentKey } - * - */ - public DocumentKey createDocumentKey() { - return new DocumentKey(); - } - - /** - * Create an instance of {@link DocumentListRequest } - * - */ - public DocumentListRequest createDocumentListRequest() { - return new DocumentListRequest(); - } - - /** - * Create an instance of {@link DocumentListResponse } - * - */ - public DocumentListResponse createDocumentListResponse() { - return new DocumentListResponse(); - } - - /** - * Create an instance of {@link Equipment } - * - */ - public Equipment createEquipment() { - return new Equipment(); - } - - /** - * Create an instance of {@link ServiceAgreement } - * - */ - public ServiceAgreement createServiceAgreement() { - return new ServiceAgreement(); - } - - /** - * Create an instance of {@link TokenRequest } - * - */ - public TokenRequest createTokenRequest() { - return new TokenRequest(); - } - - /** - * Create an instance of {@link TokenResponse } - * - */ - public TokenResponse createTokenResponse() { - return new TokenResponse(); - } - - /** - * Create an instance of {@link TradeInCar } - * - */ - public TradeInCar createTradeInCar() { - return new TradeInCar(); - } - - /** - * Create an instance of {@link UsedCar } - * - */ - public UsedCar createUsedCar() { - return new UsedCar(); - } - - /** - * Create an instance of {@link UserDataType } - * - */ - public UserDataType createUserDataType() { - return new UserDataType(); - } - -} diff --git a/src/test/resources/objectfactorymerger/dokumentutil/ObjectFactory.java b/src/test/resources/objectfactorymerger/dokumentutil/ObjectFactory.java deleted file mode 100644 index 053f3e1..0000000 --- a/src/test/resources/objectfactorymerger/dokumentutil/ObjectFactory.java +++ /dev/null @@ -1,930 +0,0 @@ - -package dk.jyskebank.service.dokumentutil.ws; - -import java.math.BigDecimal; -import java.math.BigInteger; -import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlElementDecl; -import javax.xml.bind.annotation.XmlRegistry; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the dk.jyskebank.service.dokumentutil.ws package. - *

An ObjectFactory allows you to programatically - * construct new instances of the Java representation - * for XML content. The Java representation of XML - * content can consist of schema derived interfaces - * and classes representing the binding of schema - * type definitions, element declarations and model - * groups. Factory methods for each of these are - * provided in this class. - * - */ -@XmlRegistry -public class ObjectFactory { - - private final static QName _UnsignedLong_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedLong"); - private final static QName _UnsignedByte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedByte"); - private final static QName _UnsignedShort_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedShort"); - private final static QName _MessageHeader_QNAME = new QName("http://v1.messageheader.esv.bankdata.dk", "MessageHeader"); - private final static QName _DocumentInfoList_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentInfoList"); - private final static QName _Duration_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "duration"); - private final static QName _DocumentTypeList_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypeList"); - private final static QName _ReferenceNumberList_QNAME = new QName("http://did.esv.bankdata.dk", "ReferenceNumberList"); - private final static QName _DocumentType_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentType"); - private final static QName _DocumentTypes_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypes"); - private final static QName _Long_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "long"); - private final static QName _HentDokumentSvarConvres_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", "hentDokumentSvarConvres"); - private final static QName _Float_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "float"); - private final static QName _DocumentInfo_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentInfo"); - private final static QName _DateTime_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "dateTime"); - private final static QName _HentDokumentSvar_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", "hentDokumentSvar"); - private final static QName _ArchivePdfDocument_QNAME = new QName("http://did.esv.bankdata.dk", "ArchivePdfDocument"); - private final static QName _AnyType_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyType"); - private final static QName _String_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "string"); - private final static QName _ParameterList_QNAME = new QName("http://did.esv.bankdata.dk", "ParameterList"); - private final static QName _Parameter_QNAME = new QName("http://did.esv.bankdata.dk", "Parameter"); - private final static QName _UnsignedInt_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedInt"); - private final static QName _Char_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "char"); - private final static QName _Short_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "short"); - private final static QName _Guid_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "guid"); - private final static QName _GetDocumentTypes_QNAME = new QName("http://did.esv.bankdata.dk", "GetDocumentTypes"); - private final static QName _Decimal_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "decimal"); - private final static QName _Boolean_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "boolean"); - private final static QName _FieldList_QNAME = new QName("http://did.esv.bankdata.dk", "FieldList"); - private final static QName _HentDokumentResp_QNAME = new QName("http://did.esv.bankdata.dk", "HentDokumentResp"); - private final static QName _HentDokumentSvarConvresNettrans_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", "hentDokumentSvarConvresNettrans"); - private final static QName _Base64Binary_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "base64Binary"); - private final static QName _ArchivedPdfDocument_QNAME = new QName("http://did.esv.bankdata.dk", "ArchivedPdfDocument"); - private final static QName _Int_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "int"); - private final static QName _AnyURI_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyURI"); - private final static QName _Field_QNAME = new QName("http://did.esv.bankdata.dk", "Field"); - private final static QName _Byte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "byte"); - private final static QName _Double_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "double"); - private final static QName _QName_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "QName"); - private final static QName _HentDokumentReqBody_QNAME = new QName("http://did.esv.bankdata.dk", "HentDokumentReqBody"); - private final static QName _DocumentArea_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentArea"); - private final static QName _HentDokumentRequestBody_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "HentDokumentRequestBody"); - private final static QName _DocumentAreaList_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentAreaList"); - private final static QName _ParameterKey_QNAME = new QName("http://did.esv.bankdata.dk", "Key"); - private final static QName _ParameterValue_QNAME = new QName("http://did.esv.bankdata.dk", "Value"); - private final static QName _DocumentAreaName_QNAME = new QName("http://did.esv.bankdata.dk", "Name"); - private final static QName _DocumentAreaId_QNAME = new QName("http://did.esv.bankdata.dk", "Id"); - private final static QName _ArchivePdfDocumentDocument_QNAME = new QName("http://did.esv.bankdata.dk", "Document"); - private final static QName _DocumentTypeShowCustomerCode_QNAME = new QName("http://did.esv.bankdata.dk", "ShowCustomerCode"); - private final static QName _DocumentTypeMessage_QNAME = new QName("http://did.esv.bankdata.dk", "Message"); - private final static QName _DocumentTypePrintId_QNAME = new QName("http://did.esv.bankdata.dk", "PrintId"); - private final static QName _DocumentTypeDocumentTypeId_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypeId"); - private final static QName _DocumentTypeDocumentTypeName_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypeName"); - private final static QName _DocumentTypeAccessOnlineBankingCode_QNAME = new QName("http://did.esv.bankdata.dk", "AccessOnlineBankingCode"); - private final static QName _DocumentTypeDocumentAreaId_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentAreaId"); - private final static QName _FieldTypeCodeText_QNAME = new QName("http://did.esv.bankdata.dk", "TypeCodeText"); - private final static QName _FieldObltorCode_QNAME = new QName("http://did.esv.bankdata.dk", "ObltorCode"); - private final static QName _FieldSortNumber_QNAME = new QName("http://did.esv.bankdata.dk", "SortNumber"); - private final static QName _FieldFieldName_QNAME = new QName("http://did.esv.bankdata.dk", "FieldName"); - private final static QName _FieldPlaceCode_QNAME = new QName("http://did.esv.bankdata.dk", "PlaceCode"); - private final static QName _HentDokumentRequestBodyUserId_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "userId"); - private final static QName _HentDokumentRequestBodyDokId_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "dokId"); - private final static QName _HentDokumentRequestBodyBankNr_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "bankNr"); - private final static QName _HentDokumentRequestBodyRefNr_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "refNr"); - private final static QName _DocumentInfoReferenceNumber_QNAME = new QName("http://did.esv.bankdata.dk", "ReferenceNumber"); - private final static QName _DocumentInfoDocumentId_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentId"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: dk.jyskebank.service.dokumentutil.ws - * - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link Parameter } - * - */ - public Parameter createParameter() { - return new Parameter(); - } - - /** - * Create an instance of {@link DocumentAreaList } - * - */ - public DocumentAreaList createDocumentAreaList() { - return new DocumentAreaList(); - } - - /** - * Create an instance of {@link DocumentType } - * - */ - public DocumentType createDocumentType() { - return new DocumentType(); - } - - /** - * Create an instance of {@link GetDocumentTypes } - * - */ - public GetDocumentTypes createGetDocumentTypes() { - return new GetDocumentTypes(); - } - - /** - * Create an instance of {@link HentDokumentSvarConvres } - * - */ - public HentDokumentSvarConvres createHentDokumentSvarConvres() { - return new HentDokumentSvarConvres(); - } - - /** - * Create an instance of {@link Field } - * - */ - public Field createField() { - return new Field(); - } - - /** - * Create an instance of {@link DocumentTypes } - * - */ - public DocumentTypes createDocumentTypes() { - return new DocumentTypes(); - } - - /** - * Create an instance of {@link ReferenceNumberList } - * - */ - public ReferenceNumberList createReferenceNumberList() { - return new ReferenceNumberList(); - } - - /** - * Create an instance of {@link HentDokumentRequestBody } - * - */ - public HentDokumentRequestBody createHentDokumentRequestBody() { - return new HentDokumentRequestBody(); - } - - /** - * Create an instance of {@link HentDokumentSvar } - * - */ - public HentDokumentSvar createHentDokumentSvar() { - return new HentDokumentSvar(); - } - - /** - * Create an instance of {@link ParameterList } - * - */ - public ParameterList createParameterList() { - return new ParameterList(); - } - - /** - * Create an instance of {@link MessageHeader } - * - */ - public MessageHeader createMessageHeader() { - return new MessageHeader(); - } - - /** - * Create an instance of {@link ArchivePdfDocumentRequest } - * - */ - public ArchivePdfDocumentRequest createArchivePdfDocumentRequest() { - return new ArchivePdfDocumentRequest(); - } - - /** - * Create an instance of {@link DocumentInfo } - * - */ - public DocumentInfo createDocumentInfo() { - return new DocumentInfo(); - } - - /** - * Create an instance of {@link DocumentTypeList } - * - */ - public DocumentTypeList createDocumentTypeList() { - return new DocumentTypeList(); - } - - /** - * Create an instance of {@link DocumentArea } - * - */ - public DocumentArea createDocumentArea() { - return new DocumentArea(); - } - - /** - * Create an instance of {@link FieldList } - * - */ - public FieldList createFieldList() { - return new FieldList(); - } - - /** - * Create an instance of {@link ArchivePdfDocument } - * - */ - public ArchivePdfDocument createArchivePdfDocument() { - return new ArchivePdfDocument(); - } - - /** - * Create an instance of {@link ArchivedPdfDocument } - * - */ - public ArchivedPdfDocument createArchivedPdfDocument() { - return new ArchivedPdfDocument(); - } - - /** - * Create an instance of {@link HentDokumentSvarConvresNettrans } - * - */ - public HentDokumentSvarConvresNettrans createHentDokumentSvarConvresNettrans() { - return new HentDokumentSvarConvresNettrans(); - } - - /** - * Create an instance of {@link DocumentInfoList } - * - */ - public DocumentInfoList createDocumentInfoList() { - return new DocumentInfoList(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedLong") - public JAXBElement createUnsignedLong(BigInteger value) { - return new JAXBElement(_UnsignedLong_QNAME, BigInteger.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedByte") - public JAXBElement createUnsignedByte(Short value) { - return new JAXBElement(_UnsignedByte_QNAME, Short.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedShort") - public JAXBElement createUnsignedShort(Integer value) { - return new JAXBElement(_UnsignedShort_QNAME, Integer.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link MessageHeader }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://v1.messageheader.esv.bankdata.dk", name = "MessageHeader") - public JAXBElement createMessageHeader(MessageHeader value) { - return new JAXBElement(_MessageHeader_QNAME, MessageHeader.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentInfoList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentInfoList") - public JAXBElement createDocumentInfoList(DocumentInfoList value) { - return new JAXBElement(_DocumentInfoList_QNAME, DocumentInfoList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Duration }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "duration") - public JAXBElement createDuration(Duration value) { - return new JAXBElement(_Duration_QNAME, Duration.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentTypeList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeList") - public JAXBElement createDocumentTypeList(DocumentTypeList value) { - return new JAXBElement(_DocumentTypeList_QNAME, DocumentTypeList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ReferenceNumberList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ReferenceNumberList") - public JAXBElement createReferenceNumberList(ReferenceNumberList value) { - return new JAXBElement(_ReferenceNumberList_QNAME, ReferenceNumberList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentType") - public JAXBElement createDocumentType(DocumentType value) { - return new JAXBElement(_DocumentType_QNAME, DocumentType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentTypes }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypes") - public JAXBElement createDocumentTypes(DocumentTypes value) { - return new JAXBElement(_DocumentTypes_QNAME, DocumentTypes.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "long") - public JAXBElement createLong(Long value) { - return new JAXBElement(_Long_QNAME, Long.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentSvarConvres }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", name = "hentDokumentSvarConvres") - public JAXBElement createHentDokumentSvarConvres(HentDokumentSvarConvres value) { - return new JAXBElement(_HentDokumentSvarConvres_QNAME, HentDokumentSvarConvres.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Float }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "float") - public JAXBElement createFloat(Float value) { - return new JAXBElement(_Float_QNAME, Float.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentInfo }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentInfo") - public JAXBElement createDocumentInfo(DocumentInfo value) { - return new JAXBElement(_DocumentInfo_QNAME, DocumentInfo.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "dateTime") - public JAXBElement createDateTime(XMLGregorianCalendar value) { - return new JAXBElement(_DateTime_QNAME, XMLGregorianCalendar.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentSvar }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", name = "hentDokumentSvar") - public JAXBElement createHentDokumentSvar(HentDokumentSvar value) { - return new JAXBElement(_HentDokumentSvar_QNAME, HentDokumentSvar.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchivePdfDocument }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ArchivePdfDocument") - public JAXBElement createArchivePdfDocument(ArchivePdfDocument value) { - return new JAXBElement(_ArchivePdfDocument_QNAME, ArchivePdfDocument.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "anyType") - public JAXBElement createAnyType(Object value) { - return new JAXBElement(_AnyType_QNAME, Object.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "string") - public JAXBElement createString(String value) { - return new JAXBElement(_String_QNAME, String.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ParameterList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ParameterList") - public JAXBElement createParameterList(ParameterList value) { - return new JAXBElement(_ParameterList_QNAME, ParameterList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Parameter }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Parameter") - public JAXBElement createParameter(Parameter value) { - return new JAXBElement(_Parameter_QNAME, Parameter.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedInt") - public JAXBElement createUnsignedInt(Long value) { - return new JAXBElement(_UnsignedInt_QNAME, Long.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "char") - public JAXBElement createChar(Integer value) { - return new JAXBElement(_Char_QNAME, Integer.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "short") - public JAXBElement createShort(Short value) { - return new JAXBElement(_Short_QNAME, Short.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "guid") - public JAXBElement createGuid(String value) { - return new JAXBElement(_Guid_QNAME, String.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link GetDocumentTypes }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "GetDocumentTypes") - public JAXBElement createGetDocumentTypes(GetDocumentTypes value) { - return new JAXBElement(_GetDocumentTypes_QNAME, GetDocumentTypes.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "decimal") - public JAXBElement createDecimal(BigDecimal value) { - return new JAXBElement(_Decimal_QNAME, BigDecimal.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "boolean") - public JAXBElement createBoolean(Boolean value) { - return new JAXBElement(_Boolean_QNAME, Boolean.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link FieldList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "FieldList") - public JAXBElement createFieldList(FieldList value) { - return new JAXBElement(_FieldList_QNAME, FieldList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentSvar }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "HentDokumentResp") - public JAXBElement createHentDokumentResp(HentDokumentSvar value) { - return new JAXBElement(_HentDokumentResp_QNAME, HentDokumentSvar.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentSvarConvresNettrans }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", name = "hentDokumentSvarConvresNettrans") - public JAXBElement createHentDokumentSvarConvresNettrans(HentDokumentSvarConvresNettrans value) { - return new JAXBElement(_HentDokumentSvarConvresNettrans_QNAME, HentDokumentSvarConvresNettrans.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "base64Binary") - public JAXBElement createBase64Binary(byte[] value) { - return new JAXBElement(_Base64Binary_QNAME, byte[].class, null, ((byte[]) value)); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchivedPdfDocument }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ArchivedPdfDocument") - public JAXBElement createArchivedPdfDocument(ArchivedPdfDocument value) { - return new JAXBElement(_ArchivedPdfDocument_QNAME, ArchivedPdfDocument.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "int") - public JAXBElement createInt(Integer value) { - return new JAXBElement(_Int_QNAME, Integer.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "anyURI") - public JAXBElement createAnyURI(String value) { - return new JAXBElement(_AnyURI_QNAME, String.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Field }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Field") - public JAXBElement createField(Field value) { - return new JAXBElement(_Field_QNAME, Field.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Byte }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "byte") - public JAXBElement createByte(Byte value) { - return new JAXBElement(_Byte_QNAME, Byte.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "double") - public JAXBElement createDouble(Double value) { - return new JAXBElement(_Double_QNAME, Double.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "QName") - public JAXBElement createQName(QName value) { - return new JAXBElement(_QName_QNAME, QName.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentRequestBody }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "HentDokumentReqBody") - public JAXBElement createHentDokumentReqBody(HentDokumentRequestBody value) { - return new JAXBElement(_HentDokumentReqBody_QNAME, HentDokumentRequestBody.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentArea }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentArea") - public JAXBElement createDocumentArea(DocumentArea value) { - return new JAXBElement(_DocumentArea_QNAME, DocumentArea.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentRequestBody }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "HentDokumentRequestBody") - public JAXBElement createHentDokumentRequestBody(HentDokumentRequestBody value) { - return new JAXBElement(_HentDokumentRequestBody_QNAME, HentDokumentRequestBody.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentAreaList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentAreaList") - public JAXBElement createDocumentAreaList(DocumentAreaList value) { - return new JAXBElement(_DocumentAreaList_QNAME, DocumentAreaList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Key", scope = Parameter.class) - public JAXBElement createParameterKey(String value) { - return new JAXBElement(_ParameterKey_QNAME, String.class, Parameter.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Value", scope = Parameter.class) - public JAXBElement createParameterValue(String value) { - return new JAXBElement(_ParameterValue_QNAME, String.class, Parameter.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Name", scope = DocumentArea.class) - public JAXBElement createDocumentAreaName(String value) { - return new JAXBElement(_DocumentAreaName_QNAME, String.class, DocumentArea.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Id", scope = DocumentArea.class) - public JAXBElement createDocumentAreaId(String value) { - return new JAXBElement(_DocumentAreaId_QNAME, String.class, DocumentArea.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Document", scope = ArchivePdfDocument.class) - public JAXBElement createArchivePdfDocumentDocument(byte[] value) { - return new JAXBElement(_ArchivePdfDocumentDocument_QNAME, byte[].class, ArchivePdfDocument.class, ((byte[]) value)); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ReferenceNumberList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ReferenceNumberList", scope = ArchivePdfDocument.class) - public JAXBElement createArchivePdfDocumentReferenceNumberList(ReferenceNumberList value) { - return new JAXBElement(_ReferenceNumberList_QNAME, ReferenceNumberList.class, ArchivePdfDocument.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ParameterList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ParameterList", scope = ArchivePdfDocument.class) - public JAXBElement createArchivePdfDocumentParameterList(ParameterList value) { - return new JAXBElement(_ParameterList_QNAME, ParameterList.class, ArchivePdfDocument.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ShowCustomerCode", scope = DocumentType.class) - public JAXBElement createDocumentTypeShowCustomerCode(String value) { - return new JAXBElement(_DocumentTypeShowCustomerCode_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Message", scope = DocumentType.class) - public JAXBElement createDocumentTypeMessage(String value) { - return new JAXBElement(_DocumentTypeMessage_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "PrintId", scope = DocumentType.class) - public JAXBElement createDocumentTypePrintId(String value) { - return new JAXBElement(_DocumentTypePrintId_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeId", scope = DocumentType.class) - public JAXBElement createDocumentTypeDocumentTypeId(String value) { - return new JAXBElement(_DocumentTypeDocumentTypeId_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeName", scope = DocumentType.class) - public JAXBElement createDocumentTypeDocumentTypeName(String value) { - return new JAXBElement(_DocumentTypeDocumentTypeName_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link FieldList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "FieldList", scope = DocumentType.class) - public JAXBElement createDocumentTypeFieldList(FieldList value) { - return new JAXBElement(_FieldList_QNAME, FieldList.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "AccessOnlineBankingCode", scope = DocumentType.class) - public JAXBElement createDocumentTypeAccessOnlineBankingCode(String value) { - return new JAXBElement(_DocumentTypeAccessOnlineBankingCode_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentAreaId", scope = DocumentType.class) - public JAXBElement createDocumentTypeDocumentAreaId(String value) { - return new JAXBElement(_DocumentTypeDocumentAreaId_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentInfoList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentInfoList", scope = ArchivedPdfDocument.class) - public JAXBElement createArchivedPdfDocumentDocumentInfoList(DocumentInfoList value) { - return new JAXBElement(_DocumentInfoList_QNAME, DocumentInfoList.class, ArchivedPdfDocument.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentTypeList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeList", scope = DocumentTypes.class) - public JAXBElement createDocumentTypesDocumentTypeList(DocumentTypeList value) { - return new JAXBElement(_DocumentTypeList_QNAME, DocumentTypeList.class, DocumentTypes.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentAreaList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentAreaList", scope = DocumentTypes.class) - public JAXBElement createDocumentTypesDocumentAreaList(DocumentAreaList value) { - return new JAXBElement(_DocumentAreaList_QNAME, DocumentAreaList.class, DocumentTypes.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "TypeCodeText", scope = Field.class) - public JAXBElement createFieldTypeCodeText(String value) { - return new JAXBElement(_FieldTypeCodeText_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ObltorCode", scope = Field.class) - public JAXBElement createFieldObltorCode(String value) { - return new JAXBElement(_FieldObltorCode_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "SortNumber", scope = Field.class) - public JAXBElement createFieldSortNumber(String value) { - return new JAXBElement(_FieldSortNumber_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "FieldName", scope = Field.class) - public JAXBElement createFieldFieldName(String value) { - return new JAXBElement(_FieldFieldName_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "PlaceCode", scope = Field.class) - public JAXBElement createFieldPlaceCode(String value) { - return new JAXBElement(_FieldPlaceCode_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "userId", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyUserId(String value) { - return new JAXBElement(_HentDokumentRequestBodyUserId_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "dokId", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyDokId(String value) { - return new JAXBElement(_HentDokumentRequestBodyDokId_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "bankNr", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyBankNr(String value) { - return new JAXBElement(_HentDokumentRequestBodyBankNr_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "refNr", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyRefNr(String value) { - return new JAXBElement(_HentDokumentRequestBodyRefNr_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchivePdfDocument }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ArchivePdfDocument", scope = ArchivePdfDocumentRequest.class) - public JAXBElement createArchivePdfDocumentRequestArchivePdfDocument(ArchivePdfDocument value) { - return new JAXBElement(_ArchivePdfDocument_QNAME, ArchivePdfDocument.class, ArchivePdfDocumentRequest.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ReferenceNumber", scope = DocumentInfo.class) - public JAXBElement createDocumentInfoReferenceNumber(String value) { - return new JAXBElement(_DocumentInfoReferenceNumber_QNAME, String.class, DocumentInfo.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentId", scope = DocumentInfo.class) - public JAXBElement createDocumentInfoDocumentId(String value) { - return new JAXBElement(_DocumentInfoDocumentId_QNAME, String.class, DocumentInfo.class, value); - } - -} diff --git a/src/test/resources/objectfactorymerger/dokumentutil/ObjectFactory_sorted.java b/src/test/resources/objectfactorymerger/dokumentutil/ObjectFactory_sorted.java deleted file mode 100644 index fe36c7d..0000000 --- a/src/test/resources/objectfactorymerger/dokumentutil/ObjectFactory_sorted.java +++ /dev/null @@ -1,930 +0,0 @@ - -package dk.jyskebank.service.dokumentutil.ws; - -import java.math.BigDecimal; -import java.math.BigInteger; -import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlElementDecl; -import javax.xml.bind.annotation.XmlRegistry; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; - - -/** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the dk.jyskebank.service.dokumentutil.ws package. - *

An ObjectFactory allows you to programatically - * construct new instances of the Java representation - * for XML content. The Java representation of XML - * content can consist of schema derived interfaces - * and classes representing the binding of schema - * type definitions, element declarations and model - * groups. Factory methods for each of these are - * provided in this class. - * - */ -@XmlRegistry -public class ObjectFactory { - - private final static QName _AnyType_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyType"); - private final static QName _AnyURI_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyURI"); - private final static QName _ArchivePdfDocumentDocument_QNAME = new QName("http://did.esv.bankdata.dk", "Document"); - private final static QName _ArchivePdfDocument_QNAME = new QName("http://did.esv.bankdata.dk", "ArchivePdfDocument"); - private final static QName _ArchivedPdfDocument_QNAME = new QName("http://did.esv.bankdata.dk", "ArchivedPdfDocument"); - private final static QName _Base64Binary_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "base64Binary"); - private final static QName _Boolean_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "boolean"); - private final static QName _Byte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "byte"); - private final static QName _Char_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "char"); - private final static QName _DateTime_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "dateTime"); - private final static QName _Decimal_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "decimal"); - private final static QName _DocumentAreaId_QNAME = new QName("http://did.esv.bankdata.dk", "Id"); - private final static QName _DocumentAreaList_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentAreaList"); - private final static QName _DocumentAreaName_QNAME = new QName("http://did.esv.bankdata.dk", "Name"); - private final static QName _DocumentArea_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentArea"); - private final static QName _DocumentInfoDocumentId_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentId"); - private final static QName _DocumentInfoList_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentInfoList"); - private final static QName _DocumentInfoReferenceNumber_QNAME = new QName("http://did.esv.bankdata.dk", "ReferenceNumber"); - private final static QName _DocumentInfo_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentInfo"); - private final static QName _DocumentTypeAccessOnlineBankingCode_QNAME = new QName("http://did.esv.bankdata.dk", "AccessOnlineBankingCode"); - private final static QName _DocumentTypeDocumentAreaId_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentAreaId"); - private final static QName _DocumentTypeDocumentTypeId_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypeId"); - private final static QName _DocumentTypeDocumentTypeName_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypeName"); - private final static QName _DocumentTypeList_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypeList"); - private final static QName _DocumentTypeMessage_QNAME = new QName("http://did.esv.bankdata.dk", "Message"); - private final static QName _DocumentTypePrintId_QNAME = new QName("http://did.esv.bankdata.dk", "PrintId"); - private final static QName _DocumentTypeShowCustomerCode_QNAME = new QName("http://did.esv.bankdata.dk", "ShowCustomerCode"); - private final static QName _DocumentType_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentType"); - private final static QName _DocumentTypes_QNAME = new QName("http://did.esv.bankdata.dk", "DocumentTypes"); - private final static QName _Double_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "double"); - private final static QName _Duration_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "duration"); - private final static QName _FieldFieldName_QNAME = new QName("http://did.esv.bankdata.dk", "FieldName"); - private final static QName _FieldList_QNAME = new QName("http://did.esv.bankdata.dk", "FieldList"); - private final static QName _FieldObltorCode_QNAME = new QName("http://did.esv.bankdata.dk", "ObltorCode"); - private final static QName _FieldPlaceCode_QNAME = new QName("http://did.esv.bankdata.dk", "PlaceCode"); - private final static QName _FieldSortNumber_QNAME = new QName("http://did.esv.bankdata.dk", "SortNumber"); - private final static QName _FieldTypeCodeText_QNAME = new QName("http://did.esv.bankdata.dk", "TypeCodeText"); - private final static QName _Field_QNAME = new QName("http://did.esv.bankdata.dk", "Field"); - private final static QName _Float_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "float"); - private final static QName _GetDocumentTypes_QNAME = new QName("http://did.esv.bankdata.dk", "GetDocumentTypes"); - private final static QName _Guid_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "guid"); - private final static QName _HentDokumentReqBody_QNAME = new QName("http://did.esv.bankdata.dk", "HentDokumentReqBody"); - private final static QName _HentDokumentRequestBodyBankNr_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "bankNr"); - private final static QName _HentDokumentRequestBodyDokId_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "dokId"); - private final static QName _HentDokumentRequestBodyRefNr_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "refNr"); - private final static QName _HentDokumentRequestBodyUserId_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "userId"); - private final static QName _HentDokumentRequestBody_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", "HentDokumentRequestBody"); - private final static QName _HentDokumentResp_QNAME = new QName("http://did.esv.bankdata.dk", "HentDokumentResp"); - private final static QName _HentDokumentSvarConvresNettrans_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", "hentDokumentSvarConvresNettrans"); - private final static QName _HentDokumentSvarConvres_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", "hentDokumentSvarConvres"); - private final static QName _HentDokumentSvar_QNAME = new QName("http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", "hentDokumentSvar"); - private final static QName _Int_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "int"); - private final static QName _Long_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "long"); - private final static QName _MessageHeader_QNAME = new QName("http://v1.messageheader.esv.bankdata.dk", "MessageHeader"); - private final static QName _ParameterKey_QNAME = new QName("http://did.esv.bankdata.dk", "Key"); - private final static QName _ParameterList_QNAME = new QName("http://did.esv.bankdata.dk", "ParameterList"); - private final static QName _ParameterValue_QNAME = new QName("http://did.esv.bankdata.dk", "Value"); - private final static QName _Parameter_QNAME = new QName("http://did.esv.bankdata.dk", "Parameter"); - private final static QName _QName_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "QName"); - private final static QName _ReferenceNumberList_QNAME = new QName("http://did.esv.bankdata.dk", "ReferenceNumberList"); - private final static QName _Short_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "short"); - private final static QName _String_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "string"); - private final static QName _UnsignedByte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedByte"); - private final static QName _UnsignedInt_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedInt"); - private final static QName _UnsignedLong_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedLong"); - private final static QName _UnsignedShort_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedShort"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: dk.jyskebank.service.dokumentutil.ws - * - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link ArchivePdfDocument } - * - */ - public ArchivePdfDocument createArchivePdfDocument() { - return new ArchivePdfDocument(); - } - - /** - * Create an instance of {@link ArchivePdfDocumentRequest } - * - */ - public ArchivePdfDocumentRequest createArchivePdfDocumentRequest() { - return new ArchivePdfDocumentRequest(); - } - - /** - * Create an instance of {@link ArchivedPdfDocument } - * - */ - public ArchivedPdfDocument createArchivedPdfDocument() { - return new ArchivedPdfDocument(); - } - - /** - * Create an instance of {@link DocumentArea } - * - */ - public DocumentArea createDocumentArea() { - return new DocumentArea(); - } - - /** - * Create an instance of {@link DocumentAreaList } - * - */ - public DocumentAreaList createDocumentAreaList() { - return new DocumentAreaList(); - } - - /** - * Create an instance of {@link DocumentInfo } - * - */ - public DocumentInfo createDocumentInfo() { - return new DocumentInfo(); - } - - /** - * Create an instance of {@link DocumentInfoList } - * - */ - public DocumentInfoList createDocumentInfoList() { - return new DocumentInfoList(); - } - - /** - * Create an instance of {@link DocumentType } - * - */ - public DocumentType createDocumentType() { - return new DocumentType(); - } - - /** - * Create an instance of {@link DocumentTypeList } - * - */ - public DocumentTypeList createDocumentTypeList() { - return new DocumentTypeList(); - } - - /** - * Create an instance of {@link DocumentTypes } - * - */ - public DocumentTypes createDocumentTypes() { - return new DocumentTypes(); - } - - /** - * Create an instance of {@link Field } - * - */ - public Field createField() { - return new Field(); - } - - /** - * Create an instance of {@link FieldList } - * - */ - public FieldList createFieldList() { - return new FieldList(); - } - - /** - * Create an instance of {@link GetDocumentTypes } - * - */ - public GetDocumentTypes createGetDocumentTypes() { - return new GetDocumentTypes(); - } - - /** - * Create an instance of {@link HentDokumentRequestBody } - * - */ - public HentDokumentRequestBody createHentDokumentRequestBody() { - return new HentDokumentRequestBody(); - } - - /** - * Create an instance of {@link HentDokumentSvar } - * - */ - public HentDokumentSvar createHentDokumentSvar() { - return new HentDokumentSvar(); - } - - /** - * Create an instance of {@link HentDokumentSvarConvres } - * - */ - public HentDokumentSvarConvres createHentDokumentSvarConvres() { - return new HentDokumentSvarConvres(); - } - - /** - * Create an instance of {@link HentDokumentSvarConvresNettrans } - * - */ - public HentDokumentSvarConvresNettrans createHentDokumentSvarConvresNettrans() { - return new HentDokumentSvarConvresNettrans(); - } - - /** - * Create an instance of {@link MessageHeader } - * - */ - public MessageHeader createMessageHeader() { - return new MessageHeader(); - } - - /** - * Create an instance of {@link Parameter } - * - */ - public Parameter createParameter() { - return new Parameter(); - } - - /** - * Create an instance of {@link ParameterList } - * - */ - public ParameterList createParameterList() { - return new ParameterList(); - } - - /** - * Create an instance of {@link ReferenceNumberList } - * - */ - public ReferenceNumberList createReferenceNumberList() { - return new ReferenceNumberList(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "anyType") - public JAXBElement createAnyType(Object value) { - return new JAXBElement(_AnyType_QNAME, Object.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "anyURI") - public JAXBElement createAnyURI(String value) { - return new JAXBElement(_AnyURI_QNAME, String.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchivePdfDocument }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ArchivePdfDocument") - public JAXBElement createArchivePdfDocument(ArchivePdfDocument value) { - return new JAXBElement(_ArchivePdfDocument_QNAME, ArchivePdfDocument.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Document", scope = ArchivePdfDocument.class) - public JAXBElement createArchivePdfDocumentDocument(byte[] value) { - return new JAXBElement(_ArchivePdfDocumentDocument_QNAME, byte[].class, ArchivePdfDocument.class, ((byte[]) value)); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ParameterList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ParameterList", scope = ArchivePdfDocument.class) - public JAXBElement createArchivePdfDocumentParameterList(ParameterList value) { - return new JAXBElement(_ParameterList_QNAME, ParameterList.class, ArchivePdfDocument.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ReferenceNumberList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ReferenceNumberList", scope = ArchivePdfDocument.class) - public JAXBElement createArchivePdfDocumentReferenceNumberList(ReferenceNumberList value) { - return new JAXBElement(_ReferenceNumberList_QNAME, ReferenceNumberList.class, ArchivePdfDocument.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchivePdfDocument }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ArchivePdfDocument", scope = ArchivePdfDocumentRequest.class) - public JAXBElement createArchivePdfDocumentRequestArchivePdfDocument(ArchivePdfDocument value) { - return new JAXBElement(_ArchivePdfDocument_QNAME, ArchivePdfDocument.class, ArchivePdfDocumentRequest.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchivedPdfDocument }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ArchivedPdfDocument") - public JAXBElement createArchivedPdfDocument(ArchivedPdfDocument value) { - return new JAXBElement(_ArchivedPdfDocument_QNAME, ArchivedPdfDocument.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentInfoList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentInfoList", scope = ArchivedPdfDocument.class) - public JAXBElement createArchivedPdfDocumentDocumentInfoList(DocumentInfoList value) { - return new JAXBElement(_DocumentInfoList_QNAME, DocumentInfoList.class, ArchivedPdfDocument.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "base64Binary") - public JAXBElement createBase64Binary(byte[] value) { - return new JAXBElement(_Base64Binary_QNAME, byte[].class, null, ((byte[]) value)); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "boolean") - public JAXBElement createBoolean(Boolean value) { - return new JAXBElement(_Boolean_QNAME, Boolean.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Byte }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "byte") - public JAXBElement createByte(Byte value) { - return new JAXBElement(_Byte_QNAME, Byte.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "char") - public JAXBElement createChar(Integer value) { - return new JAXBElement(_Char_QNAME, Integer.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "dateTime") - public JAXBElement createDateTime(XMLGregorianCalendar value) { - return new JAXBElement(_DateTime_QNAME, XMLGregorianCalendar.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "decimal") - public JAXBElement createDecimal(BigDecimal value) { - return new JAXBElement(_Decimal_QNAME, BigDecimal.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentArea }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentArea") - public JAXBElement createDocumentArea(DocumentArea value) { - return new JAXBElement(_DocumentArea_QNAME, DocumentArea.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Id", scope = DocumentArea.class) - public JAXBElement createDocumentAreaId(String value) { - return new JAXBElement(_DocumentAreaId_QNAME, String.class, DocumentArea.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentAreaList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentAreaList") - public JAXBElement createDocumentAreaList(DocumentAreaList value) { - return new JAXBElement(_DocumentAreaList_QNAME, DocumentAreaList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Name", scope = DocumentArea.class) - public JAXBElement createDocumentAreaName(String value) { - return new JAXBElement(_DocumentAreaName_QNAME, String.class, DocumentArea.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentInfo }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentInfo") - public JAXBElement createDocumentInfo(DocumentInfo value) { - return new JAXBElement(_DocumentInfo_QNAME, DocumentInfo.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentId", scope = DocumentInfo.class) - public JAXBElement createDocumentInfoDocumentId(String value) { - return new JAXBElement(_DocumentInfoDocumentId_QNAME, String.class, DocumentInfo.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentInfoList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentInfoList") - public JAXBElement createDocumentInfoList(DocumentInfoList value) { - return new JAXBElement(_DocumentInfoList_QNAME, DocumentInfoList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ReferenceNumber", scope = DocumentInfo.class) - public JAXBElement createDocumentInfoReferenceNumber(String value) { - return new JAXBElement(_DocumentInfoReferenceNumber_QNAME, String.class, DocumentInfo.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentType") - public JAXBElement createDocumentType(DocumentType value) { - return new JAXBElement(_DocumentType_QNAME, DocumentType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "AccessOnlineBankingCode", scope = DocumentType.class) - public JAXBElement createDocumentTypeAccessOnlineBankingCode(String value) { - return new JAXBElement(_DocumentTypeAccessOnlineBankingCode_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentAreaId", scope = DocumentType.class) - public JAXBElement createDocumentTypeDocumentAreaId(String value) { - return new JAXBElement(_DocumentTypeDocumentAreaId_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeId", scope = DocumentType.class) - public JAXBElement createDocumentTypeDocumentTypeId(String value) { - return new JAXBElement(_DocumentTypeDocumentTypeId_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeName", scope = DocumentType.class) - public JAXBElement createDocumentTypeDocumentTypeName(String value) { - return new JAXBElement(_DocumentTypeDocumentTypeName_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link FieldList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "FieldList", scope = DocumentType.class) - public JAXBElement createDocumentTypeFieldList(FieldList value) { - return new JAXBElement(_FieldList_QNAME, FieldList.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentTypeList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeList") - public JAXBElement createDocumentTypeList(DocumentTypeList value) { - return new JAXBElement(_DocumentTypeList_QNAME, DocumentTypeList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Message", scope = DocumentType.class) - public JAXBElement createDocumentTypeMessage(String value) { - return new JAXBElement(_DocumentTypeMessage_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "PrintId", scope = DocumentType.class) - public JAXBElement createDocumentTypePrintId(String value) { - return new JAXBElement(_DocumentTypePrintId_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ShowCustomerCode", scope = DocumentType.class) - public JAXBElement createDocumentTypeShowCustomerCode(String value) { - return new JAXBElement(_DocumentTypeShowCustomerCode_QNAME, String.class, DocumentType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentTypes }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypes") - public JAXBElement createDocumentTypes(DocumentTypes value) { - return new JAXBElement(_DocumentTypes_QNAME, DocumentTypes.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentAreaList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentAreaList", scope = DocumentTypes.class) - public JAXBElement createDocumentTypesDocumentAreaList(DocumentAreaList value) { - return new JAXBElement(_DocumentAreaList_QNAME, DocumentAreaList.class, DocumentTypes.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DocumentTypeList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "DocumentTypeList", scope = DocumentTypes.class) - public JAXBElement createDocumentTypesDocumentTypeList(DocumentTypeList value) { - return new JAXBElement(_DocumentTypeList_QNAME, DocumentTypeList.class, DocumentTypes.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "double") - public JAXBElement createDouble(Double value) { - return new JAXBElement(_Double_QNAME, Double.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Duration }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "duration") - public JAXBElement createDuration(Duration value) { - return new JAXBElement(_Duration_QNAME, Duration.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Field }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Field") - public JAXBElement createField(Field value) { - return new JAXBElement(_Field_QNAME, Field.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "FieldName", scope = Field.class) - public JAXBElement createFieldFieldName(String value) { - return new JAXBElement(_FieldFieldName_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link FieldList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "FieldList") - public JAXBElement createFieldList(FieldList value) { - return new JAXBElement(_FieldList_QNAME, FieldList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ObltorCode", scope = Field.class) - public JAXBElement createFieldObltorCode(String value) { - return new JAXBElement(_FieldObltorCode_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "PlaceCode", scope = Field.class) - public JAXBElement createFieldPlaceCode(String value) { - return new JAXBElement(_FieldPlaceCode_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "SortNumber", scope = Field.class) - public JAXBElement createFieldSortNumber(String value) { - return new JAXBElement(_FieldSortNumber_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "TypeCodeText", scope = Field.class) - public JAXBElement createFieldTypeCodeText(String value) { - return new JAXBElement(_FieldTypeCodeText_QNAME, String.class, Field.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Float }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "float") - public JAXBElement createFloat(Float value) { - return new JAXBElement(_Float_QNAME, Float.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link GetDocumentTypes }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "GetDocumentTypes") - public JAXBElement createGetDocumentTypes(GetDocumentTypes value) { - return new JAXBElement(_GetDocumentTypes_QNAME, GetDocumentTypes.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "guid") - public JAXBElement createGuid(String value) { - return new JAXBElement(_Guid_QNAME, String.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentRequestBody }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "HentDokumentReqBody") - public JAXBElement createHentDokumentReqBody(HentDokumentRequestBody value) { - return new JAXBElement(_HentDokumentReqBody_QNAME, HentDokumentRequestBody.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentRequestBody }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "HentDokumentRequestBody") - public JAXBElement createHentDokumentRequestBody(HentDokumentRequestBody value) { - return new JAXBElement(_HentDokumentRequestBody_QNAME, HentDokumentRequestBody.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "bankNr", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyBankNr(String value) { - return new JAXBElement(_HentDokumentRequestBodyBankNr_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "dokId", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyDokId(String value) { - return new JAXBElement(_HentDokumentRequestBodyDokId_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "refNr", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyRefNr(String value) { - return new JAXBElement(_HentDokumentRequestBodyRefNr_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.ESV.DID.DokumentUtil", name = "userId", scope = HentDokumentRequestBody.class) - public JAXBElement createHentDokumentRequestBodyUserId(String value) { - return new JAXBElement(_HentDokumentRequestBodyUserId_QNAME, String.class, HentDokumentRequestBody.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentSvar }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "HentDokumentResp") - public JAXBElement createHentDokumentResp(HentDokumentSvar value) { - return new JAXBElement(_HentDokumentResp_QNAME, HentDokumentSvar.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentSvar }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", name = "hentDokumentSvar") - public JAXBElement createHentDokumentSvar(HentDokumentSvar value) { - return new JAXBElement(_HentDokumentSvar_QNAME, HentDokumentSvar.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentSvarConvres }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", name = "hentDokumentSvarConvres") - public JAXBElement createHentDokumentSvarConvres(HentDokumentSvarConvres value) { - return new JAXBElement(_HentDokumentSvarConvres_QNAME, HentDokumentSvarConvres.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link HentDokumentSvarConvresNettrans }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.datacontract.org/2004/07/BD.DID.DokumentUtil.Generated", name = "hentDokumentSvarConvresNettrans") - public JAXBElement createHentDokumentSvarConvresNettrans(HentDokumentSvarConvresNettrans value) { - return new JAXBElement(_HentDokumentSvarConvresNettrans_QNAME, HentDokumentSvarConvresNettrans.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "int") - public JAXBElement createInt(Integer value) { - return new JAXBElement(_Int_QNAME, Integer.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "long") - public JAXBElement createLong(Long value) { - return new JAXBElement(_Long_QNAME, Long.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link MessageHeader }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://v1.messageheader.esv.bankdata.dk", name = "MessageHeader") - public JAXBElement createMessageHeader(MessageHeader value) { - return new JAXBElement(_MessageHeader_QNAME, MessageHeader.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Parameter }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Parameter") - public JAXBElement createParameter(Parameter value) { - return new JAXBElement(_Parameter_QNAME, Parameter.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Key", scope = Parameter.class) - public JAXBElement createParameterKey(String value) { - return new JAXBElement(_ParameterKey_QNAME, String.class, Parameter.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ParameterList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ParameterList") - public JAXBElement createParameterList(ParameterList value) { - return new JAXBElement(_ParameterList_QNAME, ParameterList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "Value", scope = Parameter.class) - public JAXBElement createParameterValue(String value) { - return new JAXBElement(_ParameterValue_QNAME, String.class, Parameter.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "QName") - public JAXBElement createQName(QName value) { - return new JAXBElement(_QName_QNAME, QName.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ReferenceNumberList }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://did.esv.bankdata.dk", name = "ReferenceNumberList") - public JAXBElement createReferenceNumberList(ReferenceNumberList value) { - return new JAXBElement(_ReferenceNumberList_QNAME, ReferenceNumberList.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "short") - public JAXBElement createShort(Short value) { - return new JAXBElement(_Short_QNAME, Short.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "string") - public JAXBElement createString(String value) { - return new JAXBElement(_String_QNAME, String.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedByte") - public JAXBElement createUnsignedByte(Short value) { - return new JAXBElement(_UnsignedByte_QNAME, Short.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedInt") - public JAXBElement createUnsignedInt(Long value) { - return new JAXBElement(_UnsignedInt_QNAME, Long.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedLong") - public JAXBElement createUnsignedLong(BigInteger value) { - return new JAXBElement(_UnsignedLong_QNAME, BigInteger.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedShort") - public JAXBElement createUnsignedShort(Integer value) { - return new JAXBElement(_UnsignedShort_QNAME, Integer.class, null, value); - } - -} diff --git a/src/test/resources/test-project-kotlin/build.gradle.kts b/src/test/resources/test-project-kotlin/build.gradle.kts deleted file mode 100644 index 7d90a48..0000000 --- a/src/test/resources/test-project-kotlin/build.gradle.kts +++ /dev/null @@ -1,28 +0,0 @@ -plugins { - kotlin("jvm") version "1.3.61" - kotlin("kapt") version "1.3.61" - id("no.nils.wsdl2java") -} - -repositories { - jcenter() -} - -dependencies { - implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61") - - testImplementation("org.junit.jupiter:junit-jupiter-api:5.5.2") - testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.2") -} - -tasks.test { - useJUnitPlatform() -} - -wsdl2java { - wsdlsToGenerate = listOf( - listOf(project.file("src/main/resources/custom/stockqoute.wsdl")) - ) - wsdlDir = project.file("src/main/resources/custom") - cxfVersion = "+" -} diff --git a/src/test/resources/test-project-kotlin/settings.gradle.kts b/src/test/resources/test-project-kotlin/settings.gradle.kts deleted file mode 100644 index e69de29..0000000 diff --git a/src/test/resources/test-project-kotlin/src/main/java/no/nils/consumers/StockQuoteConsumer.kt b/src/test/resources/test-project-kotlin/src/main/java/no/nils/consumers/StockQuoteConsumer.kt deleted file mode 100644 index 50d5272..0000000 --- a/src/test/resources/test-project-kotlin/src/main/java/no/nils/consumers/StockQuoteConsumer.kt +++ /dev/null @@ -1,9 +0,0 @@ -package no.nils.consumers - -import net.webservicex.GetQuote - -class StockQuoteConsumer { - fun iWillCompile() { - val getQuote = GetQuote() - } -} diff --git a/src/test/resources/test-project-kotlin/src/main/resources/custom/currencyconvertor.wsdl b/src/test/resources/test-project-kotlin/src/main/resources/custom/currencyconvertor.wsdl deleted file mode 100644 index e6510b7..0000000 --- a/src/test/resources/test-project-kotlin/src/main/resources/custom/currencyconvertor.wsdl +++ /dev/null @@ -1,281 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br><b>Get conversion rate from one currency to another currency <b><br><p><b><font color='#000080' size='1' face='Verdana'><u>Differenct currency Code and Names around the world</u></font></b></p><blockquote><p><font face='Verdana' size='1'>AFA-Afghanistan Afghani<br>ALL-Albanian Lek<br>DZD-Algerian Dinar<br>ARS-Argentine Peso<br>AWG-Aruba Florin<br>AUD-Australian Dollar<br>BSD-Bahamian Dollar<br>BHD-Bahraini Dinar<br>BDT-Bangladesh Taka<br>BBD-Barbados Dollar<br>BZD-Belize Dollar<br>BMD-Bermuda Dollar<br>BTN-Bhutan Ngultrum<br>BOB-Bolivian Boliviano<br>BWP-Botswana Pula<br>BRL-Brazilian Real<br>GBP-British Pound<br>BND-Brunei Dollar<br>BIF-Burundi Franc<br>XOF-CFA Franc (BCEAO)<br>XAF-CFA Franc (BEAC)<br>KHR-Cambodia Riel<br>CAD-Canadian Dollar<br>CVE-Cape Verde Escudo<br>KYD-Cayman Islands Dollar<br>CLP-Chilean Peso<br>CNY-Chinese Yuan<br>COP-Colombian Peso<br>KMF-Comoros Franc<br>CRC-Costa Rica Colon<br>HRK-Croatian Kuna<br>CUP-Cuban Peso<br>CYP-Cyprus Pound<br>CZK-Czech Koruna<br>DKK-Danish Krone<br>DJF-Dijibouti Franc<br>DOP-Dominican Peso<br>XCD-East Caribbean Dollar<br>EGP-Egyptian Pound<br>SVC-El Salvador Colon<br>EEK-Estonian Kroon<br>ETB-Ethiopian Birr<br>EUR-Euro<br>FKP-Falkland Islands Pound<br>GMD-Gambian Dalasi<br>GHC-Ghanian Cedi<br>GIP-Gibraltar Pound<br>XAU-Gold Ounces<br>GTQ-Guatemala Quetzal<br>GNF-Guinea Franc<br>GYD-Guyana Dollar<br>HTG-Haiti Gourde<br>HNL-Honduras Lempira<br>HKD-Hong Kong Dollar<br>HUF-Hungarian Forint<br>ISK-Iceland Krona<br>INR-Indian Rupee<br>IDR-Indonesian Rupiah<br>IQD-Iraqi Dinar<br>ILS-Israeli Shekel<br>JMD-Jamaican Dollar<br>JPY-Japanese Yen<br>JOD-Jordanian Dinar<br>KZT-Kazakhstan Tenge<br>KES-Kenyan Shilling<br>KRW-Korean Won<br>KWD-Kuwaiti Dinar<br>LAK-Lao Kip<br>LVL-Latvian Lat<br>LBP-Lebanese Pound<br>LSL-Lesotho Loti<br>LRD-Liberian Dollar<br>LYD-Libyan Dinar<br>LTL-Lithuanian Lita<br>MOP-Macau Pataca<br>MKD-Macedonian Denar<br>MGF-Malagasy Franc<br>MWK-Malawi Kwacha<br>MYR-Malaysian Ringgit<br>MVR-Maldives Rufiyaa<br>MTL-Maltese Lira<br>MRO-Mauritania Ougulya<br>MUR-Mauritius Rupee<br>MXN-Mexican Peso<br>MDL-Moldovan Leu<br>MNT-Mongolian Tugrik<br>MAD-Moroccan Dirham<br>MZM-Mozambique Metical<br>MMK-Myanmar Kyat<br>NAD-Namibian Dollar<br>NPR-Nepalese Rupee<br>ANG-Neth Antilles Guilder<br>NZD-New Zealand Dollar<br>NIO-Nicaragua Cordoba<br>NGN-Nigerian Naira<br>KPW-North Korean Won<br>NOK-Norwegian Krone<br>OMR-Omani Rial<br>XPF-Pacific Franc<br>PKR-Pakistani Rupee<br>XPD-Palladium Ounces<br>PAB-Panama Balboa<br>PGK-Papua New Guinea Kina<br>PYG-Paraguayan Guarani<br>PEN-Peruvian Nuevo Sol<br>PHP-Philippine Peso<br>XPT-Platinum Ounces<br>PLN-Polish Zloty<br>QAR-Qatar Rial<br>ROL-Romanian Leu<br>RUB-Russian Rouble<br>WST-Samoa Tala<br>STD-Sao Tome Dobra<br>SAR-Saudi Arabian Riyal<br>SCR-Seychelles Rupee<br>SLL-Sierra Leone Leone<br>XAG-Silver Ounces<br>SGD-Singapore Dollar<br>SKK-Slovak Koruna<br>SIT-Slovenian Tolar<br>SBD-Solomon Islands Dollar<br>SOS-Somali Shilling<br>ZAR-South African Rand<br>LKR-Sri Lanka Rupee<br>SHP-St Helena Pound<br>SDD-Sudanese Dinar<br>SRG-Surinam Guilder<br>SZL-Swaziland Lilageni<br>SEK-Swedish Krona<br>TRY-Turkey Lira<br>CHF-Swiss Franc<br>SYP-Syrian Pound<br>TWD-Taiwan Dollar<br>TZS-Tanzanian Shilling<br>THB-Thai Baht<br>TOP-Tonga Pa'anga<br>TTD-Trinidad&amp;amp;Tobago Dollar<br>TND-Tunisian Dinar<br>TRL-Turkish Lira<br>USD-U.S. Dollar<br>AED-UAE Dirham<br>UGX-Ugandan Shilling<br>UAH-Ukraine Hryvnia<br>UYU-Uruguayan New Peso<br>VUV-Vanuatu Vatu<br>VEB-Venezuelan Bolivar<br>VND-Vietnam Dong<br>YER-Yemen Riyal<br>YUM-Yugoslav Dinar<br>ZMK-Zambian Kwacha<br>ZWD-Zimbabwe Dollar</font></p></blockquote> - - - - - - - <br><b>Get conversion rate from one currency to another currency <b><br><p><b><font color='#000080' size='1' face='Verdana'><u>Differenct currency Code and Names around the world</u></font></b></p><blockquote><p><font face='Verdana' size='1'>AFA-Afghanistan Afghani<br>ALL-Albanian Lek<br>DZD-Algerian Dinar<br>ARS-Argentine Peso<br>AWG-Aruba Florin<br>AUD-Australian Dollar<br>BSD-Bahamian Dollar<br>BHD-Bahraini Dinar<br>BDT-Bangladesh Taka<br>BBD-Barbados Dollar<br>BZD-Belize Dollar<br>BMD-Bermuda Dollar<br>BTN-Bhutan Ngultrum<br>BOB-Bolivian Boliviano<br>BWP-Botswana Pula<br>BRL-Brazilian Real<br>GBP-British Pound<br>BND-Brunei Dollar<br>BIF-Burundi Franc<br>XOF-CFA Franc (BCEAO)<br>XAF-CFA Franc (BEAC)<br>KHR-Cambodia Riel<br>CAD-Canadian Dollar<br>CVE-Cape Verde Escudo<br>KYD-Cayman Islands Dollar<br>CLP-Chilean Peso<br>CNY-Chinese Yuan<br>COP-Colombian Peso<br>KMF-Comoros Franc<br>CRC-Costa Rica Colon<br>HRK-Croatian Kuna<br>CUP-Cuban Peso<br>CYP-Cyprus Pound<br>CZK-Czech Koruna<br>DKK-Danish Krone<br>DJF-Dijibouti Franc<br>DOP-Dominican Peso<br>XCD-East Caribbean Dollar<br>EGP-Egyptian Pound<br>SVC-El Salvador Colon<br>EEK-Estonian Kroon<br>ETB-Ethiopian Birr<br>EUR-Euro<br>FKP-Falkland Islands Pound<br>GMD-Gambian Dalasi<br>GHC-Ghanian Cedi<br>GIP-Gibraltar Pound<br>XAU-Gold Ounces<br>GTQ-Guatemala Quetzal<br>GNF-Guinea Franc<br>GYD-Guyana Dollar<br>HTG-Haiti Gourde<br>HNL-Honduras Lempira<br>HKD-Hong Kong Dollar<br>HUF-Hungarian Forint<br>ISK-Iceland Krona<br>INR-Indian Rupee<br>IDR-Indonesian Rupiah<br>IQD-Iraqi Dinar<br>ILS-Israeli Shekel<br>JMD-Jamaican Dollar<br>JPY-Japanese Yen<br>JOD-Jordanian Dinar<br>KZT-Kazakhstan Tenge<br>KES-Kenyan Shilling<br>KRW-Korean Won<br>KWD-Kuwaiti Dinar<br>LAK-Lao Kip<br>LVL-Latvian Lat<br>LBP-Lebanese Pound<br>LSL-Lesotho Loti<br>LRD-Liberian Dollar<br>LYD-Libyan Dinar<br>LTL-Lithuanian Lita<br>MOP-Macau Pataca<br>MKD-Macedonian Denar<br>MGF-Malagasy Franc<br>MWK-Malawi Kwacha<br>MYR-Malaysian Ringgit<br>MVR-Maldives Rufiyaa<br>MTL-Maltese Lira<br>MRO-Mauritania Ougulya<br>MUR-Mauritius Rupee<br>MXN-Mexican Peso<br>MDL-Moldovan Leu<br>MNT-Mongolian Tugrik<br>MAD-Moroccan Dirham<br>MZM-Mozambique Metical<br>MMK-Myanmar Kyat<br>NAD-Namibian Dollar<br>NPR-Nepalese Rupee<br>ANG-Neth Antilles Guilder<br>NZD-New Zealand Dollar<br>NIO-Nicaragua Cordoba<br>NGN-Nigerian Naira<br>KPW-North Korean Won<br>NOK-Norwegian Krone<br>OMR-Omani Rial<br>XPF-Pacific Franc<br>PKR-Pakistani Rupee<br>XPD-Palladium Ounces<br>PAB-Panama Balboa<br>PGK-Papua New Guinea Kina<br>PYG-Paraguayan Guarani<br>PEN-Peruvian Nuevo Sol<br>PHP-Philippine Peso<br>XPT-Platinum Ounces<br>PLN-Polish Zloty<br>QAR-Qatar Rial<br>ROL-Romanian Leu<br>RUB-Russian Rouble<br>WST-Samoa Tala<br>STD-Sao Tome Dobra<br>SAR-Saudi Arabian Riyal<br>SCR-Seychelles Rupee<br>SLL-Sierra Leone Leone<br>XAG-Silver Ounces<br>SGD-Singapore Dollar<br>SKK-Slovak Koruna<br>SIT-Slovenian Tolar<br>SBD-Solomon Islands Dollar<br>SOS-Somali Shilling<br>ZAR-South African Rand<br>LKR-Sri Lanka Rupee<br>SHP-St Helena Pound<br>SDD-Sudanese Dinar<br>SRG-Surinam Guilder<br>SZL-Swaziland Lilageni<br>SEK-Swedish Krona<br>TRY-Turkey Lira<br>CHF-Swiss Franc<br>SYP-Syrian Pound<br>TWD-Taiwan Dollar<br>TZS-Tanzanian Shilling<br>THB-Thai Baht<br>TOP-Tonga Pa'anga<br>TTD-Trinidad&amp;amp;Tobago Dollar<br>TND-Tunisian Dinar<br>TRL-Turkish Lira<br>USD-U.S. Dollar<br>AED-UAE Dirham<br>UGX-Ugandan Shilling<br>UAH-Ukraine Hryvnia<br>UYU-Uruguayan New Peso<br>VUV-Vanuatu Vatu<br>VEB-Venezuelan Bolivar<br>VND-Vietnam Dong<br>YER-Yemen Riyal<br>YUM-Yugoslav Dinar<br>ZMK-Zambian Kwacha<br>ZWD-Zimbabwe Dollar</font></p></blockquote> - - - - - - - <br><b>Get conversion rate from one currency to another currency <b><br><p><b><font color='#000080' size='1' face='Verdana'><u>Differenct currency Code and Names around the world</u></font></b></p><blockquote><p><font face='Verdana' size='1'>AFA-Afghanistan Afghani<br>ALL-Albanian Lek<br>DZD-Algerian Dinar<br>ARS-Argentine Peso<br>AWG-Aruba Florin<br>AUD-Australian Dollar<br>BSD-Bahamian Dollar<br>BHD-Bahraini Dinar<br>BDT-Bangladesh Taka<br>BBD-Barbados Dollar<br>BZD-Belize Dollar<br>BMD-Bermuda Dollar<br>BTN-Bhutan Ngultrum<br>BOB-Bolivian Boliviano<br>BWP-Botswana Pula<br>BRL-Brazilian Real<br>GBP-British Pound<br>BND-Brunei Dollar<br>BIF-Burundi Franc<br>XOF-CFA Franc (BCEAO)<br>XAF-CFA Franc (BEAC)<br>KHR-Cambodia Riel<br>CAD-Canadian Dollar<br>CVE-Cape Verde Escudo<br>KYD-Cayman Islands Dollar<br>CLP-Chilean Peso<br>CNY-Chinese Yuan<br>COP-Colombian Peso<br>KMF-Comoros Franc<br>CRC-Costa Rica Colon<br>HRK-Croatian Kuna<br>CUP-Cuban Peso<br>CYP-Cyprus Pound<br>CZK-Czech Koruna<br>DKK-Danish Krone<br>DJF-Dijibouti Franc<br>DOP-Dominican Peso<br>XCD-East Caribbean Dollar<br>EGP-Egyptian Pound<br>SVC-El Salvador Colon<br>EEK-Estonian Kroon<br>ETB-Ethiopian Birr<br>EUR-Euro<br>FKP-Falkland Islands Pound<br>GMD-Gambian Dalasi<br>GHC-Ghanian Cedi<br>GIP-Gibraltar Pound<br>XAU-Gold Ounces<br>GTQ-Guatemala Quetzal<br>GNF-Guinea Franc<br>GYD-Guyana Dollar<br>HTG-Haiti Gourde<br>HNL-Honduras Lempira<br>HKD-Hong Kong Dollar<br>HUF-Hungarian Forint<br>ISK-Iceland Krona<br>INR-Indian Rupee<br>IDR-Indonesian Rupiah<br>IQD-Iraqi Dinar<br>ILS-Israeli Shekel<br>JMD-Jamaican Dollar<br>JPY-Japanese Yen<br>JOD-Jordanian Dinar<br>KZT-Kazakhstan Tenge<br>KES-Kenyan Shilling<br>KRW-Korean Won<br>KWD-Kuwaiti Dinar<br>LAK-Lao Kip<br>LVL-Latvian Lat<br>LBP-Lebanese Pound<br>LSL-Lesotho Loti<br>LRD-Liberian Dollar<br>LYD-Libyan Dinar<br>LTL-Lithuanian Lita<br>MOP-Macau Pataca<br>MKD-Macedonian Denar<br>MGF-Malagasy Franc<br>MWK-Malawi Kwacha<br>MYR-Malaysian Ringgit<br>MVR-Maldives Rufiyaa<br>MTL-Maltese Lira<br>MRO-Mauritania Ougulya<br>MUR-Mauritius Rupee<br>MXN-Mexican Peso<br>MDL-Moldovan Leu<br>MNT-Mongolian Tugrik<br>MAD-Moroccan Dirham<br>MZM-Mozambique Metical<br>MMK-Myanmar Kyat<br>NAD-Namibian Dollar<br>NPR-Nepalese Rupee<br>ANG-Neth Antilles Guilder<br>NZD-New Zealand Dollar<br>NIO-Nicaragua Cordoba<br>NGN-Nigerian Naira<br>KPW-North Korean Won<br>NOK-Norwegian Krone<br>OMR-Omani Rial<br>XPF-Pacific Franc<br>PKR-Pakistani Rupee<br>XPD-Palladium Ounces<br>PAB-Panama Balboa<br>PGK-Papua New Guinea Kina<br>PYG-Paraguayan Guarani<br>PEN-Peruvian Nuevo Sol<br>PHP-Philippine Peso<br>XPT-Platinum Ounces<br>PLN-Polish Zloty<br>QAR-Qatar Rial<br>ROL-Romanian Leu<br>RUB-Russian Rouble<br>WST-Samoa Tala<br>STD-Sao Tome Dobra<br>SAR-Saudi Arabian Riyal<br>SCR-Seychelles Rupee<br>SLL-Sierra Leone Leone<br>XAG-Silver Ounces<br>SGD-Singapore Dollar<br>SKK-Slovak Koruna<br>SIT-Slovenian Tolar<br>SBD-Solomon Islands Dollar<br>SOS-Somali Shilling<br>ZAR-South African Rand<br>LKR-Sri Lanka Rupee<br>SHP-St Helena Pound<br>SDD-Sudanese Dinar<br>SRG-Surinam Guilder<br>SZL-Swaziland Lilageni<br>SEK-Swedish Krona<br>TRY-Turkey Lira<br>CHF-Swiss Franc<br>SYP-Syrian Pound<br>TWD-Taiwan Dollar<br>TZS-Tanzanian Shilling<br>THB-Thai Baht<br>TOP-Tonga Pa'anga<br>TTD-Trinidad&amp;amp;Tobago Dollar<br>TND-Tunisian Dinar<br>TRL-Turkish Lira<br>USD-U.S. Dollar<br>AED-UAE Dirham<br>UGX-Ugandan Shilling<br>UAH-Ukraine Hryvnia<br>UYU-Uruguayan New Peso<br>VUV-Vanuatu Vatu<br>VEB-Venezuelan Bolivar<br>VND-Vietnam Dong<br>YER-Yemen Riyal<br>YUM-Yugoslav Dinar<br>ZMK-Zambian Kwacha<br>ZWD-Zimbabwe Dollar</font></p></blockquote> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project-kotlin/src/main/resources/custom/glogalweather.wsdl b/src/test/resources/test-project-kotlin/src/main/resources/custom/glogalweather.wsdl deleted file mode 100644 index a81178c..0000000 --- a/src/test/resources/test-project-kotlin/src/main/resources/custom/glogalweather.wsdl +++ /dev/null @@ -1,209 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get weather report for all major cities around the world. - - - - - Get all major cities by country name(full / part). - - - - - - - Get weather report for all major cities around the world. - - - - - Get all major cities by country name(full / part). - - - - - - - Get weather report for all major cities around the world. - - - - - Get all major cities by country name(full / part). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project-kotlin/src/main/resources/custom/stockqoute.wsdl b/src/test/resources/test-project-kotlin/src/main/resources/custom/stockqoute.wsdl deleted file mode 100644 index 2214dfc..0000000 --- a/src/test/resources/test-project-kotlin/src/main/resources/custom/stockqoute.wsdl +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get Stock quote for a company Symbol - - - - - - - Get Stock quote for a company Symbol - - - - - - - Get Stock quote for a company Symbol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project-kotlin/src/main/resources/xsd/CustomersAndOrders.xsd b/src/test/resources/test-project-kotlin/src/main/resources/xsd/CustomersAndOrders.xsd deleted file mode 100644 index 014c008..0000000 --- a/src/test/resources/test-project-kotlin/src/main/resources/xsd/CustomersAndOrders.xsd +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project-kotlin/src/test/java/no/nils/consumers/StockQuoteConsumerTest.kt b/src/test/resources/test-project-kotlin/src/test/java/no/nils/consumers/StockQuoteConsumerTest.kt deleted file mode 100644 index aa934a8..0000000 --- a/src/test/resources/test-project-kotlin/src/test/java/no/nils/consumers/StockQuoteConsumerTest.kt +++ /dev/null @@ -1,10 +0,0 @@ -package no.nils.consumers - -import org.junit.jupiter.api.Test - -class StockQuoteConsumerTest { - @Test - fun willCompile() { - StockQuoteConsumer().iWillCompile() - } -} diff --git a/src/test/resources/test-project/build.gradle b/src/test/resources/test-project/build.gradle deleted file mode 100644 index b8bf494..0000000 --- a/src/test/resources/test-project/build.gradle +++ /dev/null @@ -1,28 +0,0 @@ -plugins { - id 'java' - id 'no.nils.wsdl2java' -} - -repositories { - jcenter() -} - -dependencies { - testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.2' - testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.2' - // enable extension support for wsdl2java - wsdl2java 'org.jvnet.jaxb2_commons:jaxb2-basics-runtime:0.11.0' - wsdl2java 'org.jvnet.jaxb2_commons:jaxb2-basics:0.11.0' - implementation 'org.jvnet.jaxb2_commons:jaxb2-basics-runtime:0.11.0' - implementation 'org.jvnet.jaxb2_commons:jaxb2-basics:0.11.0' -} - -test { - useJUnitPlatform() -} - -wsdl2java { - wsdlsToGenerate = [ - ['-xjc-Xequals', '-xjc-XhashCode', file('src/main/resources/wsdl/stockqoute.wsdl')] - ] -} diff --git a/src/test/resources/test-project/settings.gradle b/src/test/resources/test-project/settings.gradle deleted file mode 100644 index 21c46e6..0000000 --- a/src/test/resources/test-project/settings.gradle +++ /dev/null @@ -1,5 +0,0 @@ -buildCache { - local { - directory = new File(rootDir, 'build-cache') - } -} diff --git a/src/test/resources/test-project/src/main/java/no/nils/consumers/StockQuoteConsumer.java b/src/test/resources/test-project/src/main/java/no/nils/consumers/StockQuoteConsumer.java deleted file mode 100644 index d130ba5..0000000 --- a/src/test/resources/test-project/src/main/java/no/nils/consumers/StockQuoteConsumer.java +++ /dev/null @@ -1,9 +0,0 @@ -package no.nils.consumers; - -import net.webservicex.GetQuote; - -public class StockQuoteConsumer { - public void iWillCompile() { - GetQuote getQuote = new GetQuote(); - } -} diff --git a/src/test/resources/test-project/src/main/resources/wsdl/currencyconvertor.wsdl b/src/test/resources/test-project/src/main/resources/wsdl/currencyconvertor.wsdl deleted file mode 100644 index e6510b7..0000000 --- a/src/test/resources/test-project/src/main/resources/wsdl/currencyconvertor.wsdl +++ /dev/null @@ -1,281 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - <br><b>Get conversion rate from one currency to another currency <b><br><p><b><font color='#000080' size='1' face='Verdana'><u>Differenct currency Code and Names around the world</u></font></b></p><blockquote><p><font face='Verdana' size='1'>AFA-Afghanistan Afghani<br>ALL-Albanian Lek<br>DZD-Algerian Dinar<br>ARS-Argentine Peso<br>AWG-Aruba Florin<br>AUD-Australian Dollar<br>BSD-Bahamian Dollar<br>BHD-Bahraini Dinar<br>BDT-Bangladesh Taka<br>BBD-Barbados Dollar<br>BZD-Belize Dollar<br>BMD-Bermuda Dollar<br>BTN-Bhutan Ngultrum<br>BOB-Bolivian Boliviano<br>BWP-Botswana Pula<br>BRL-Brazilian Real<br>GBP-British Pound<br>BND-Brunei Dollar<br>BIF-Burundi Franc<br>XOF-CFA Franc (BCEAO)<br>XAF-CFA Franc (BEAC)<br>KHR-Cambodia Riel<br>CAD-Canadian Dollar<br>CVE-Cape Verde Escudo<br>KYD-Cayman Islands Dollar<br>CLP-Chilean Peso<br>CNY-Chinese Yuan<br>COP-Colombian Peso<br>KMF-Comoros Franc<br>CRC-Costa Rica Colon<br>HRK-Croatian Kuna<br>CUP-Cuban Peso<br>CYP-Cyprus Pound<br>CZK-Czech Koruna<br>DKK-Danish Krone<br>DJF-Dijibouti Franc<br>DOP-Dominican Peso<br>XCD-East Caribbean Dollar<br>EGP-Egyptian Pound<br>SVC-El Salvador Colon<br>EEK-Estonian Kroon<br>ETB-Ethiopian Birr<br>EUR-Euro<br>FKP-Falkland Islands Pound<br>GMD-Gambian Dalasi<br>GHC-Ghanian Cedi<br>GIP-Gibraltar Pound<br>XAU-Gold Ounces<br>GTQ-Guatemala Quetzal<br>GNF-Guinea Franc<br>GYD-Guyana Dollar<br>HTG-Haiti Gourde<br>HNL-Honduras Lempira<br>HKD-Hong Kong Dollar<br>HUF-Hungarian Forint<br>ISK-Iceland Krona<br>INR-Indian Rupee<br>IDR-Indonesian Rupiah<br>IQD-Iraqi Dinar<br>ILS-Israeli Shekel<br>JMD-Jamaican Dollar<br>JPY-Japanese Yen<br>JOD-Jordanian Dinar<br>KZT-Kazakhstan Tenge<br>KES-Kenyan Shilling<br>KRW-Korean Won<br>KWD-Kuwaiti Dinar<br>LAK-Lao Kip<br>LVL-Latvian Lat<br>LBP-Lebanese Pound<br>LSL-Lesotho Loti<br>LRD-Liberian Dollar<br>LYD-Libyan Dinar<br>LTL-Lithuanian Lita<br>MOP-Macau Pataca<br>MKD-Macedonian Denar<br>MGF-Malagasy Franc<br>MWK-Malawi Kwacha<br>MYR-Malaysian Ringgit<br>MVR-Maldives Rufiyaa<br>MTL-Maltese Lira<br>MRO-Mauritania Ougulya<br>MUR-Mauritius Rupee<br>MXN-Mexican Peso<br>MDL-Moldovan Leu<br>MNT-Mongolian Tugrik<br>MAD-Moroccan Dirham<br>MZM-Mozambique Metical<br>MMK-Myanmar Kyat<br>NAD-Namibian Dollar<br>NPR-Nepalese Rupee<br>ANG-Neth Antilles Guilder<br>NZD-New Zealand Dollar<br>NIO-Nicaragua Cordoba<br>NGN-Nigerian Naira<br>KPW-North Korean Won<br>NOK-Norwegian Krone<br>OMR-Omani Rial<br>XPF-Pacific Franc<br>PKR-Pakistani Rupee<br>XPD-Palladium Ounces<br>PAB-Panama Balboa<br>PGK-Papua New Guinea Kina<br>PYG-Paraguayan Guarani<br>PEN-Peruvian Nuevo Sol<br>PHP-Philippine Peso<br>XPT-Platinum Ounces<br>PLN-Polish Zloty<br>QAR-Qatar Rial<br>ROL-Romanian Leu<br>RUB-Russian Rouble<br>WST-Samoa Tala<br>STD-Sao Tome Dobra<br>SAR-Saudi Arabian Riyal<br>SCR-Seychelles Rupee<br>SLL-Sierra Leone Leone<br>XAG-Silver Ounces<br>SGD-Singapore Dollar<br>SKK-Slovak Koruna<br>SIT-Slovenian Tolar<br>SBD-Solomon Islands Dollar<br>SOS-Somali Shilling<br>ZAR-South African Rand<br>LKR-Sri Lanka Rupee<br>SHP-St Helena Pound<br>SDD-Sudanese Dinar<br>SRG-Surinam Guilder<br>SZL-Swaziland Lilageni<br>SEK-Swedish Krona<br>TRY-Turkey Lira<br>CHF-Swiss Franc<br>SYP-Syrian Pound<br>TWD-Taiwan Dollar<br>TZS-Tanzanian Shilling<br>THB-Thai Baht<br>TOP-Tonga Pa'anga<br>TTD-Trinidad&amp;amp;Tobago Dollar<br>TND-Tunisian Dinar<br>TRL-Turkish Lira<br>USD-U.S. Dollar<br>AED-UAE Dirham<br>UGX-Ugandan Shilling<br>UAH-Ukraine Hryvnia<br>UYU-Uruguayan New Peso<br>VUV-Vanuatu Vatu<br>VEB-Venezuelan Bolivar<br>VND-Vietnam Dong<br>YER-Yemen Riyal<br>YUM-Yugoslav Dinar<br>ZMK-Zambian Kwacha<br>ZWD-Zimbabwe Dollar</font></p></blockquote> - - - - - - - <br><b>Get conversion rate from one currency to another currency <b><br><p><b><font color='#000080' size='1' face='Verdana'><u>Differenct currency Code and Names around the world</u></font></b></p><blockquote><p><font face='Verdana' size='1'>AFA-Afghanistan Afghani<br>ALL-Albanian Lek<br>DZD-Algerian Dinar<br>ARS-Argentine Peso<br>AWG-Aruba Florin<br>AUD-Australian Dollar<br>BSD-Bahamian Dollar<br>BHD-Bahraini Dinar<br>BDT-Bangladesh Taka<br>BBD-Barbados Dollar<br>BZD-Belize Dollar<br>BMD-Bermuda Dollar<br>BTN-Bhutan Ngultrum<br>BOB-Bolivian Boliviano<br>BWP-Botswana Pula<br>BRL-Brazilian Real<br>GBP-British Pound<br>BND-Brunei Dollar<br>BIF-Burundi Franc<br>XOF-CFA Franc (BCEAO)<br>XAF-CFA Franc (BEAC)<br>KHR-Cambodia Riel<br>CAD-Canadian Dollar<br>CVE-Cape Verde Escudo<br>KYD-Cayman Islands Dollar<br>CLP-Chilean Peso<br>CNY-Chinese Yuan<br>COP-Colombian Peso<br>KMF-Comoros Franc<br>CRC-Costa Rica Colon<br>HRK-Croatian Kuna<br>CUP-Cuban Peso<br>CYP-Cyprus Pound<br>CZK-Czech Koruna<br>DKK-Danish Krone<br>DJF-Dijibouti Franc<br>DOP-Dominican Peso<br>XCD-East Caribbean Dollar<br>EGP-Egyptian Pound<br>SVC-El Salvador Colon<br>EEK-Estonian Kroon<br>ETB-Ethiopian Birr<br>EUR-Euro<br>FKP-Falkland Islands Pound<br>GMD-Gambian Dalasi<br>GHC-Ghanian Cedi<br>GIP-Gibraltar Pound<br>XAU-Gold Ounces<br>GTQ-Guatemala Quetzal<br>GNF-Guinea Franc<br>GYD-Guyana Dollar<br>HTG-Haiti Gourde<br>HNL-Honduras Lempira<br>HKD-Hong Kong Dollar<br>HUF-Hungarian Forint<br>ISK-Iceland Krona<br>INR-Indian Rupee<br>IDR-Indonesian Rupiah<br>IQD-Iraqi Dinar<br>ILS-Israeli Shekel<br>JMD-Jamaican Dollar<br>JPY-Japanese Yen<br>JOD-Jordanian Dinar<br>KZT-Kazakhstan Tenge<br>KES-Kenyan Shilling<br>KRW-Korean Won<br>KWD-Kuwaiti Dinar<br>LAK-Lao Kip<br>LVL-Latvian Lat<br>LBP-Lebanese Pound<br>LSL-Lesotho Loti<br>LRD-Liberian Dollar<br>LYD-Libyan Dinar<br>LTL-Lithuanian Lita<br>MOP-Macau Pataca<br>MKD-Macedonian Denar<br>MGF-Malagasy Franc<br>MWK-Malawi Kwacha<br>MYR-Malaysian Ringgit<br>MVR-Maldives Rufiyaa<br>MTL-Maltese Lira<br>MRO-Mauritania Ougulya<br>MUR-Mauritius Rupee<br>MXN-Mexican Peso<br>MDL-Moldovan Leu<br>MNT-Mongolian Tugrik<br>MAD-Moroccan Dirham<br>MZM-Mozambique Metical<br>MMK-Myanmar Kyat<br>NAD-Namibian Dollar<br>NPR-Nepalese Rupee<br>ANG-Neth Antilles Guilder<br>NZD-New Zealand Dollar<br>NIO-Nicaragua Cordoba<br>NGN-Nigerian Naira<br>KPW-North Korean Won<br>NOK-Norwegian Krone<br>OMR-Omani Rial<br>XPF-Pacific Franc<br>PKR-Pakistani Rupee<br>XPD-Palladium Ounces<br>PAB-Panama Balboa<br>PGK-Papua New Guinea Kina<br>PYG-Paraguayan Guarani<br>PEN-Peruvian Nuevo Sol<br>PHP-Philippine Peso<br>XPT-Platinum Ounces<br>PLN-Polish Zloty<br>QAR-Qatar Rial<br>ROL-Romanian Leu<br>RUB-Russian Rouble<br>WST-Samoa Tala<br>STD-Sao Tome Dobra<br>SAR-Saudi Arabian Riyal<br>SCR-Seychelles Rupee<br>SLL-Sierra Leone Leone<br>XAG-Silver Ounces<br>SGD-Singapore Dollar<br>SKK-Slovak Koruna<br>SIT-Slovenian Tolar<br>SBD-Solomon Islands Dollar<br>SOS-Somali Shilling<br>ZAR-South African Rand<br>LKR-Sri Lanka Rupee<br>SHP-St Helena Pound<br>SDD-Sudanese Dinar<br>SRG-Surinam Guilder<br>SZL-Swaziland Lilageni<br>SEK-Swedish Krona<br>TRY-Turkey Lira<br>CHF-Swiss Franc<br>SYP-Syrian Pound<br>TWD-Taiwan Dollar<br>TZS-Tanzanian Shilling<br>THB-Thai Baht<br>TOP-Tonga Pa'anga<br>TTD-Trinidad&amp;amp;Tobago Dollar<br>TND-Tunisian Dinar<br>TRL-Turkish Lira<br>USD-U.S. Dollar<br>AED-UAE Dirham<br>UGX-Ugandan Shilling<br>UAH-Ukraine Hryvnia<br>UYU-Uruguayan New Peso<br>VUV-Vanuatu Vatu<br>VEB-Venezuelan Bolivar<br>VND-Vietnam Dong<br>YER-Yemen Riyal<br>YUM-Yugoslav Dinar<br>ZMK-Zambian Kwacha<br>ZWD-Zimbabwe Dollar</font></p></blockquote> - - - - - - - <br><b>Get conversion rate from one currency to another currency <b><br><p><b><font color='#000080' size='1' face='Verdana'><u>Differenct currency Code and Names around the world</u></font></b></p><blockquote><p><font face='Verdana' size='1'>AFA-Afghanistan Afghani<br>ALL-Albanian Lek<br>DZD-Algerian Dinar<br>ARS-Argentine Peso<br>AWG-Aruba Florin<br>AUD-Australian Dollar<br>BSD-Bahamian Dollar<br>BHD-Bahraini Dinar<br>BDT-Bangladesh Taka<br>BBD-Barbados Dollar<br>BZD-Belize Dollar<br>BMD-Bermuda Dollar<br>BTN-Bhutan Ngultrum<br>BOB-Bolivian Boliviano<br>BWP-Botswana Pula<br>BRL-Brazilian Real<br>GBP-British Pound<br>BND-Brunei Dollar<br>BIF-Burundi Franc<br>XOF-CFA Franc (BCEAO)<br>XAF-CFA Franc (BEAC)<br>KHR-Cambodia Riel<br>CAD-Canadian Dollar<br>CVE-Cape Verde Escudo<br>KYD-Cayman Islands Dollar<br>CLP-Chilean Peso<br>CNY-Chinese Yuan<br>COP-Colombian Peso<br>KMF-Comoros Franc<br>CRC-Costa Rica Colon<br>HRK-Croatian Kuna<br>CUP-Cuban Peso<br>CYP-Cyprus Pound<br>CZK-Czech Koruna<br>DKK-Danish Krone<br>DJF-Dijibouti Franc<br>DOP-Dominican Peso<br>XCD-East Caribbean Dollar<br>EGP-Egyptian Pound<br>SVC-El Salvador Colon<br>EEK-Estonian Kroon<br>ETB-Ethiopian Birr<br>EUR-Euro<br>FKP-Falkland Islands Pound<br>GMD-Gambian Dalasi<br>GHC-Ghanian Cedi<br>GIP-Gibraltar Pound<br>XAU-Gold Ounces<br>GTQ-Guatemala Quetzal<br>GNF-Guinea Franc<br>GYD-Guyana Dollar<br>HTG-Haiti Gourde<br>HNL-Honduras Lempira<br>HKD-Hong Kong Dollar<br>HUF-Hungarian Forint<br>ISK-Iceland Krona<br>INR-Indian Rupee<br>IDR-Indonesian Rupiah<br>IQD-Iraqi Dinar<br>ILS-Israeli Shekel<br>JMD-Jamaican Dollar<br>JPY-Japanese Yen<br>JOD-Jordanian Dinar<br>KZT-Kazakhstan Tenge<br>KES-Kenyan Shilling<br>KRW-Korean Won<br>KWD-Kuwaiti Dinar<br>LAK-Lao Kip<br>LVL-Latvian Lat<br>LBP-Lebanese Pound<br>LSL-Lesotho Loti<br>LRD-Liberian Dollar<br>LYD-Libyan Dinar<br>LTL-Lithuanian Lita<br>MOP-Macau Pataca<br>MKD-Macedonian Denar<br>MGF-Malagasy Franc<br>MWK-Malawi Kwacha<br>MYR-Malaysian Ringgit<br>MVR-Maldives Rufiyaa<br>MTL-Maltese Lira<br>MRO-Mauritania Ougulya<br>MUR-Mauritius Rupee<br>MXN-Mexican Peso<br>MDL-Moldovan Leu<br>MNT-Mongolian Tugrik<br>MAD-Moroccan Dirham<br>MZM-Mozambique Metical<br>MMK-Myanmar Kyat<br>NAD-Namibian Dollar<br>NPR-Nepalese Rupee<br>ANG-Neth Antilles Guilder<br>NZD-New Zealand Dollar<br>NIO-Nicaragua Cordoba<br>NGN-Nigerian Naira<br>KPW-North Korean Won<br>NOK-Norwegian Krone<br>OMR-Omani Rial<br>XPF-Pacific Franc<br>PKR-Pakistani Rupee<br>XPD-Palladium Ounces<br>PAB-Panama Balboa<br>PGK-Papua New Guinea Kina<br>PYG-Paraguayan Guarani<br>PEN-Peruvian Nuevo Sol<br>PHP-Philippine Peso<br>XPT-Platinum Ounces<br>PLN-Polish Zloty<br>QAR-Qatar Rial<br>ROL-Romanian Leu<br>RUB-Russian Rouble<br>WST-Samoa Tala<br>STD-Sao Tome Dobra<br>SAR-Saudi Arabian Riyal<br>SCR-Seychelles Rupee<br>SLL-Sierra Leone Leone<br>XAG-Silver Ounces<br>SGD-Singapore Dollar<br>SKK-Slovak Koruna<br>SIT-Slovenian Tolar<br>SBD-Solomon Islands Dollar<br>SOS-Somali Shilling<br>ZAR-South African Rand<br>LKR-Sri Lanka Rupee<br>SHP-St Helena Pound<br>SDD-Sudanese Dinar<br>SRG-Surinam Guilder<br>SZL-Swaziland Lilageni<br>SEK-Swedish Krona<br>TRY-Turkey Lira<br>CHF-Swiss Franc<br>SYP-Syrian Pound<br>TWD-Taiwan Dollar<br>TZS-Tanzanian Shilling<br>THB-Thai Baht<br>TOP-Tonga Pa'anga<br>TTD-Trinidad&amp;amp;Tobago Dollar<br>TND-Tunisian Dinar<br>TRL-Turkish Lira<br>USD-U.S. Dollar<br>AED-UAE Dirham<br>UGX-Ugandan Shilling<br>UAH-Ukraine Hryvnia<br>UYU-Uruguayan New Peso<br>VUV-Vanuatu Vatu<br>VEB-Venezuelan Bolivar<br>VND-Vietnam Dong<br>YER-Yemen Riyal<br>YUM-Yugoslav Dinar<br>ZMK-Zambian Kwacha<br>ZWD-Zimbabwe Dollar</font></p></blockquote> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project/src/main/resources/wsdl/glogalweather.wsdl b/src/test/resources/test-project/src/main/resources/wsdl/glogalweather.wsdl deleted file mode 100644 index a81178c..0000000 --- a/src/test/resources/test-project/src/main/resources/wsdl/glogalweather.wsdl +++ /dev/null @@ -1,209 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get weather report for all major cities around the world. - - - - - Get all major cities by country name(full / part). - - - - - - - Get weather report for all major cities around the world. - - - - - Get all major cities by country name(full / part). - - - - - - - Get weather report for all major cities around the world. - - - - - Get all major cities by country name(full / part). - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project/src/main/resources/wsdl/stockqoute.wsdl b/src/test/resources/test-project/src/main/resources/wsdl/stockqoute.wsdl deleted file mode 100644 index 2214dfc..0000000 --- a/src/test/resources/test-project/src/main/resources/wsdl/stockqoute.wsdl +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Get Stock quote for a company Symbol - - - - - - - Get Stock quote for a company Symbol - - - - - - - Get Stock quote for a company Symbol - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project/src/main/resources/xsd/CustomersAndOrders.xsd b/src/test/resources/test-project/src/main/resources/xsd/CustomersAndOrders.xsd deleted file mode 100644 index 014c008..0000000 --- a/src/test/resources/test-project/src/main/resources/xsd/CustomersAndOrders.xsd +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/test/resources/test-project/src/test/java/no/nils/consumers/StockQuoteConsumerTest.java b/src/test/resources/test-project/src/test/java/no/nils/consumers/StockQuoteConsumerTest.java deleted file mode 100644 index a46239a..0000000 --- a/src/test/resources/test-project/src/test/java/no/nils/consumers/StockQuoteConsumerTest.java +++ /dev/null @@ -1,11 +0,0 @@ -package no.nils.consumers; - -import org.junit.jupiter.api.Test; - -public class StockQuoteConsumerTest { - - @Test - public void willCompile() { - new StockQuoteConsumer().iWillCompile(); - } -}