diff --git a/.gitignore b/.gitignore index eef074f6e45..18c92535dea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # no generated files in version control -src/main/gen/ +**/src/main/gen/ +**/out/ # private data /buildres/jabref-cert-2016.p12 @@ -8,7 +9,7 @@ src/main/gen/ status.md # Install4J -install4j6/ +install4j7/ # Gradle # generated when `gradlew --gui` is called diff --git a/.travis.yml b/.travis.yml index 63bf1713ef5..1067eef64f7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ env: global: - GRADLE_OPTS=-Dorg.gradle.daemon=false matrix: - - TEST_SUITE=check OPTIONS=modernizer + - TEST_SUITE=check - TEST_SUITE=fetcherTest - TEST_SUITE=databaseTest - TEST_SUITE=guiTest diff --git a/build.gradle b/build.gradle index 05c333f494f..6c92c9ffe5b 100644 --- a/build.gradle +++ b/build.gradle @@ -1,8 +1,4 @@ import groovy.json.JsonSlurper -import org.gradle.internal.os.OperatingSystem - -// to update the gradle wrapper, execute -// ./gradlew wrapper --gradle-version=4.4.1 --distribution-type=bin buildscript { repositories { @@ -19,466 +15,235 @@ buildscript { plugins { id 'com.gradle.build-scan' version '1.11' - id 'com.install4j.gradle' version '7.0.3' - id 'com.github.johnrengelman.shadow' version '2.0.2' - id "de.sebastianboegl.shadow.transformer.log4j" version "2.1.1" - id "com.simonharrer.modernizer" version '1.5.0-1' + + id 'nebula.lint' version '8.3.1' + id 'nebula.info' version '3.6.0' + + id 'com.install4j.gradle' version '7.0.4' + id 'me.champeau.gradle.jmh' version '0.4.3' id 'net.ltgt.errorprone' version '0.0.13' id 'com.github.ben-manes.versions' version '0.17.0' } -// use the gradle build scan feature: https://scans.gradle.com/get-started -buildScan { - licenseAgreementUrl = 'https://gradle.com/terms-of-service' - licenseAgree = 'yes' -} - -apply plugin: 'java' -apply plugin: 'application' -apply plugin: 'project-report' -apply plugin: 'jacoco' apply plugin: 'install4j' -apply plugin: 'me.champeau.gradle.jmh' -apply plugin: 'checkstyle' -apply plugin: 'org.junit.platform.gradle.plugin' -apply from: 'eclipse.gradle' -apply from: 'localization.gradle' -apply from: 'xjc.gradle' - -group = "org.jabref" -version = "4.2-dev" +String plainVersion = "4.2-dev" project.ext.threeDotVersion = "4.1.0.1" -project.ext.install4jDir = hasProperty("install4jDir") ? getProperty("install4jDir") : (OperatingSystem.current().isWindows() ? 'C:/Program Files/install4j6' : 'install4j6') -sourceCompatibility = 1.8 -targetCompatibility = 1.8 -mainClassName = "org.jabref.JabRefMain" - -// These are the Java version requirements we will check on each start of JabRef -ext.minRequiredJavaVersion = "1.8.0_144" -ext.allowJava9 = false - -sourceSets { - main { - java { - srcDirs = ["src/main/java", "src/main/gen"] - } +project.ext.install4jDir = hasProperty("install4jDir") ? getProperty("install4jDir") : (org.gradle.internal.os.OperatingSystem.current().isWindows() ? 'C:/Program Files/install4j7' : 'install4j7') - resources { - srcDirs = ["src/main/java", "src/main/resources"] - } +/* + * Set version to VERSION--snapshot--DATE--GIT_HASH + */ +String versionAppendix +if (project.hasProperty('dev')) { + String command = "git log --pretty=format:%cd--%h -n 1 --date=short" + String commitInfo = "" + if (org.gradle.internal.os.OperatingSystem.current().isWindows()) { + commitInfo = "cmd /c $command".execute().in.text + } else { + commitInfo = command.execute().in.text } -} -repositories { - mavenLocal() - jcenter() - maven { - url 'https://oss.sonatype.org/content/groups/public' + // determine branch + command = "git symbolic-ref -q --short HEAD" + String branchName = "" + if (org.gradle.internal.os.OperatingSystem.current().isWindows()) { + branchName = "cmd /c $command".execute().in.text + } else { + branchName = command.execute().in.text } -} - -configurations { - antlr3 - antlr4 -} - -dependencies { - compile fileTree(dir: 'lib', includes: ['*.jar']) - - compile 'com.jgoodies:jgoodies-common:1.8.1' - compile 'com.jgoodies:jgoodies-forms:1.9.0' - - // update to 2.0.x is not possible - see https://github.com/JabRef/jabref/pull/1096#issuecomment-208857517 - compile 'org.apache.pdfbox:pdfbox:1.8.13' - compile 'org.apache.pdfbox:fontbox:1.8.13' - compile 'org.apache.pdfbox:jempbox:1.8.13' - - // required for reading write-protected PDFs - see https://github.com/JabRef/jabref/pull/942#issuecomment-209252635 - compile 'org.bouncycastle:bcprov-jdk15on:1.59' - - compile 'commons-cli:commons-cli:1.4' - - compile "org.libreoffice:juh:5.4.2" - compile "org.libreoffice:jurt:5.4.2" - compile "org.libreoffice:ridl:5.4.2" - compile "org.libreoffice:unoil:5.4.2" - - compile 'com.github.bkromhout:java-diff-utils:2.1.1' - compile 'info.debatty:java-string-similarity:1.0.1' - - antlr3 'org.antlr:antlr:3.5.2' - compile 'org.antlr:antlr-runtime:3.5.2' + // A newline is returned. Remove it. (trim()) + // In the context of github, the branch name could be something like "pull/277" + // "/" is an illegal character. To be safe, all illegal filename characters are replaced by "_" + // http://stackoverflow.com/a/15075907/873282 describes the used pattern. + branchName = branchName.trim().replaceAll("[^a-zA-Z0-9.-]", "_") - antlr4 'org.antlr:antlr4:4.7.1' - compile 'org.antlr:antlr4-runtime:4.7.1' + // hack string + // first the date (%cd), then the branch name, and finally the commit id (%h) + String infoString = commitInfo.substring(0, 10) + "--" + branchName + "--" + commitInfo.substring(12) - // VersionEye states that 6.0.5 is the most recent version, but http://dev.mysql.com/downloads/connector/j/ shows that as "Development Release" - compile 'mysql:mysql-connector-java:5.1.45' + versionAppendix = "--snapshot--" + infoString +} else { + versionAppendix = "" +} - compile 'com.impossibl.pgjdbc-ng:pgjdbc-ng:0.7.1' +// enable buildscan providing insights to our build (speed, ...) +// see https://gradle.com/build-scans for more information +buildScan { licenseAgreementUrl = 'https://gradle.com/terms-of-service'; licenseAgree = 'yes' } - compile 'net.java.dev.glazedlists:glazedlists_java15:1.9.1' +allprojects { + group = "org.jabref" + version = plainVersion + versionAppendix - compile 'com.google.guava:guava:24.0-jre' + // These are the Java version requirements we will check on each start of JabRef + ext.minRequiredJavaVersion = "1.8.0_144" + ext.allowJava9 = false - // JavaFX stuff - compile 'com.airhacks:afterburner.fx:1.7.0' - compile 'de.codecentric.centerdevice:javafxsvg:1.2.1' - compile 'de.jensd:fontawesomefx-materialdesignfont:1.7.22-4' - compile 'de.saxsys:mvvmfx-validation:1.7.0' - compile 'org.fxmisc.easybind:easybind:1.0.3' - compile 'org.fxmisc.flowless:flowless:0.6' - compile 'org.fxmisc.richtext:richtextfx:0.8.2' + apply plugin: 'java' + apply plugin: 'checkstyle' - // Cannot be updated to 9.*.* until Jabref works with Java 9 - compile 'org.controlsfx:controlsfx:8.40.15-SNAPSHOT' + apply plugin: 'me.champeau.gradle.jmh' + apply plugin: 'com.github.ben-manes.versions' + apply plugin: 'project-report' + apply plugin: 'jacoco' + apply plugin: 'org.junit.platform.gradle.plugin' - compile 'org.jsoup:jsoup:1.11.2' - compile 'com.mashape.unirest:unirest-java:1.4.9' + sourceCompatibility = 1.8 + targetCompatibility = 1.8 - // >1.8.0-beta is required for java 9 compatibility - compile 'org.slf4j:slf4j-api:1.8.0-beta1' - compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.10.0' - compile 'org.apache.logging.log4j:log4j-jcl:2.10.0' - compile 'org.apache.logging.log4j:log4j-api:2.10.0' - compile 'org.apache.logging.log4j:log4j-core:2.10.0' + repositories { + mavenLocal() + jcenter() + maven { + url 'https://oss.sonatype.org/content/groups/public' + } + } - // need to use snapshots as the stable version is from 2013 and doesn't support v1.0.1 CitationStyles - compile 'org.citationstyles:styles:1.0.1-SNAPSHOT' - compile 'org.citationstyles:locales:1.0.1-SNAPSHOT' - compile 'de.undercouch:citeproc-java:1.0.1' + // linter for gradle - documentation: https://github.com/nebula-plugins/gradle-lint-plugin/wiki + apply plugin: 'nebula.lint' + gradleLint.rules = ['all-dependency'] - compile 'com.github.tomtung:latex2unicode_2.12:0.2.2' + dependencies { + checkstyle 'com.puppycrawl.tools:checkstyle:8.8' + + testCompile 'junit:junit:4.12' + testCompile 'org.junit.platform:junit-platform-commons:1.1.0-M2' + testCompile 'org.junit.jupiter:junit-jupiter-api:5.1.0-M2' + testCompile 'org.junit.jupiter:junit-jupiter-params:5.1.0-M2' + testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.1.0-M2' + testRuntime 'org.junit.vintage:junit-vintage-engine:5.1.0-M2' + testRuntime 'org.apache.logging.log4j:log4j-core:2.10.0' + testRuntime 'org.apache.logging.log4j:log4j-jul:2.10.0' + testCompile 'org.mockito:mockito-core:2.13.0' + testCompile 'org.hamcrest:hamcrest-core:1.3' + } - compile group: 'com.microsoft.azure', name: 'applicationinsights-core', version: '1.0.9' - compile group: 'com.microsoft.azure', name: 'applicationinsights-logging-log4j2', version: '1.0.9' + // Code quality tasks + checkstyle { + // do not use other packages for checkstyle, excluding gen(erated) sources + checkstyleMain.source = "src/main/java" + toolVersion = '8.5' + } - testCompile 'org.junit.jupiter:junit-jupiter-api:5.1.0-M2' - testCompile 'org.junit.jupiter:junit-jupiter-params:5.1.0-M2' - testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.1.0-M2' - testRuntime 'org.junit.vintage:junit-vintage-engine:5.1.0-M2' - testCompile 'org.junit.platform:junit-platform-launcher:1.1.0-M2' - testRuntime 'org.apache.logging.log4j:log4j-core:2.10.0' - testRuntime 'org.apache.logging.log4j:log4j-jul:2.10.0' - testCompile 'org.mockito:mockito-core:2.13.0' - testCompile 'com.github.tomakehurst:wiremock:2.14.0' - testCompile 'org.assertj:assertj-swing-junit:3.8.0' - testCompile 'org.reflections:reflections:0.9.11' - testCompile 'org.xmlunit:xmlunit-core:2.5.1' - testCompile 'org.xmlunit:xmlunit-matchers:2.5.1' - testCompile 'com.tngtech.archunit:archunit-junit:0.5.0' - testCompile "org.testfx:testfx-core:4.0.+" - testCompile "org.testfx:testfx-junit:4.0.+" + checkstyleMain.shouldRunAfter test + checkstyleTest.shouldRunAfter test - checkstyle 'com.puppycrawl.tools:checkstyle:8.8' -} + jmh { + warmupIterations = 5 + iterations = 10 + fork = 2 + } -jacoco { - toolVersion = '0.8.0' -} + dependencyUpdates { + outputFormatter = "json" + } -dependencyUpdates { - outputFormatter = "json" -} + task checkOutdatedDependencies(dependsOn: dependencyUpdates) { + doLast { + def dependencyReport = new JsonSlurper().parseText(new File("build/dependencyUpdates/report.json").text) + assert dependencyReport.outdated.count == 0: "There are outdated dependencies in build.gradle!\n Run ./gradlew dependencyUpdates to see which" + } + } -// We have some dependencies which cannot be updated due to various reasons. -dependencyUpdates.resolutionStrategy = { - componentSelection { - withModule("org.controlsfx:controlsfx") { ComponentSelection selection -> - if (selection.candidate.version ==~ /9.*/) { // Reject version 9 or higher - selection.reject("Cannot be updated to 9.*.* until Jabref works with Java 9") + // We have some dependencies which cannot be updated due to various reasons. + dependencyUpdates.resolutionStrategy = { + componentSelection { + withModule("org.controlsfx:controlsfx") { ComponentSelection selection -> + if (selection.candidate.version ==~ /9.*/) { // Reject version 9 or higher + selection.reject("Cannot be updated to 9.*.* until Jabref works with Java 9") + } } - } - withModule("com.microsoft.azure:applicationinsights-core") { ComponentSelection selection -> - if (selection.candidate.version.equals("1.0.10")) { - selection.reject("Version 1.0.10 is broken... waiting for 1.0.11") + withModule("com.microsoft.azure:applicationinsights-core") { ComponentSelection selection -> + if (selection.candidate.version.equals("1.0.10")) { + selection.reject("Version 1.0.10 is broken... waiting for 1.0.11") + } } - } - withModule("com.microsoft.azure:applicationinsights-logging-log4j2") { ComponentSelection selection -> - if (selection.candidate.version.equals("1.0.10")) { - selection.reject("Version 1.0.10 is broken... waiting for 1.0.11") + withModule("com.microsoft.azure:applicationinsights-logging-log4j2") { ComponentSelection selection -> + if (selection.candidate.version.equals("1.0.10")) { + selection.reject("Version 1.0.10 is broken... waiting for 1.0.11") + } } - } - withModule("com.microsoft.azure:applicationinsights-core") { ComponentSelection selection -> - if (selection.candidate.version.equals("2.0.0-BETA")) { - selection.reject("Version 2.0.0-BETA is broken... waiting for a working version... see #3561") + withModule("com.microsoft.azure:applicationinsights-core") { ComponentSelection selection -> + if (selection.candidate.version.equals("2.0.0-BETA")) { + selection.reject("Version 2.0.0-BETA is broken... waiting for a working version... see #3561") + } } - } - withModule("com.microsoft.azure:applicationinsights-logging-log4j2") { ComponentSelection selection -> - if (selection.candidate.version.equals("2.0.0-BETA")) { - selection.reject("Version 2.0.0-BETA is broken... waiting for a working version... see #3561") + withModule("com.microsoft.azure:applicationinsights-logging-log4j2") { ComponentSelection selection -> + if (selection.candidate.version.equals("2.0.0-BETA")) { + selection.reject("Version 2.0.0-BETA is broken... waiting for a working version... see #3561") + } } - } - withModule("de.jensd:fontawesomefx-materialdesignfont") { ComponentSelection selection -> - if (selection.candidate.version ==~ /2.*/) { - selection.reject("Cannot be upgraded to version 2") + withModule("de.jensd:fontawesomefx-materialdesignfont") { ComponentSelection selection -> + if (selection.candidate.version ==~ /2.*/) { + selection.reject("Cannot be upgraded to version 2") + } } - } - withModule("org.apache.pdfbox:fontbox") { ComponentSelection selection -> - if (selection.candidate.version ==~ /2.*/) { - selection.reject("update to 2.0.x is not possible - see https://github.com/JabRef/jabref/pull/1096#issuecomment-208857517") + withModule("org.apache.pdfbox:fontbox") { ComponentSelection selection -> + if (selection.candidate.version ==~ /2.*/) { + selection.reject("update to 2.0.x is not possible - see https://github.com/JabRef/jabref/pull/1096#issuecomment-208857517") + } } - } - withModule("org.apache.pdfbox:pdfbox") { ComponentSelection selection -> - if (selection.candidate.version ==~ /2.*/) { - selection.reject("update to 2.0.x is not possible - see https://github.com/JabRef/jabref/pull/1096#issuecomment-208857517") + withModule("org.apache.pdfbox:pdfbox") { ComponentSelection selection -> + if (selection.candidate.version ==~ /2.*/) { + selection.reject("update to 2.0.x is not possible - see https://github.com/JabRef/jabref/pull/1096#issuecomment-208857517") + } } - } - withModule("mysql:mysql-connector-java") { ComponentSelection selection -> - if (selection.candidate.version ==~ /[6-9].*/) { - selection.reject("http://dev.mysql.com/downloads/connector/j/ lists the version 5.* as last stable version.") + withModule("mysql:mysql-connector-java") { ComponentSelection selection -> + if (selection.candidate.version ==~ /[6-9].*/) { + selection.reject("http://dev.mysql.com/downloads/connector/j/ lists the version 5.* as last stable version.") + } } - } - withModule("org.jacoco.agent") { ComponentSelection selection -> - if (selection.candidate.version.equals("0.8.0")) { - selection.reject("As a native plugin we cannot control the actual version of jacoco. This dependency should be hidden.") + withModule("org.jacoco.agent") { ComponentSelection selection -> + if (selection.candidate.version.equals("0.8.0")) { + selection.reject("As a native plugin we cannot control the actual version of jacoco. This dependency should be hidden.") + } } - } - withModule("org.jacoco.ant") { ComponentSelection selection -> - if (selection.candidate.version.equals("0.8.0")) { - selection.reject("As a native plugin we cannot control the actual version of jacoco. This dependency should be hidden.") + withModule("org.jacoco.ant") { ComponentSelection selection -> + if (selection.candidate.version.equals("0.8.0")) { + selection.reject("As a native plugin we cannot control the actual version of jacoco. This dependency should be hidden.") + } } } } -} -task checkOutdatedDependencies(dependsOn: dependencyUpdates) { - doLast { - def dependencyReport = new JsonSlurper().parseText(new File("build/dependencyUpdates/report.json").text) - assert dependencyReport.outdated.count == 0: "There are outdated dependencies in build.gradle!\n Run ./gradlew dependencyUpdates to see which" + compileJava { + options.encoding = 'UTF-8' + options.compilerArgs << "-Xlint:none" } -} - -clean { - delete "src/main/gen" -} - -processResources { - filteringCharset = 'UTF-8' - - filesMatching("build.properties") { - expand(version: project.version, - "year": String.valueOf(Calendar.getInstance().get(Calendar.YEAR)), - "authors": new File('AUTHORS').readLines().findAll { !it.startsWith("#") }.join(", "), - "developers": new File('DEVELOPERS').readLines().findAll { !it.startsWith("#") }.join(", "), - "azureInstrumentationKey": System.getenv('AzureInstrumentationKey'), - "minRequiredJavaVersion": minRequiredJavaVersion, - "allowJava9": allowJava9 - - ) - filteringCharset = 'UTF-8' - } - - filesMatching("resource/**/meta.xml") { - expand version: project.version - } -} - - -task generateSource(dependsOn: ["generateBstGrammarSource", "generateSearchGrammarSource"]) { - group = 'JabRef' - description 'Generates all Java source files.' -} - -task generateBstGrammarSource(type: JavaExec) { - group 'JabRef' - description 'Generates BstLexer.java and BstParser.java from the Bst.g grammar file using antlr3.' - - File antlrSource = file('src/main/antlr3/org/jabref/bst/Bst.g') - - inputs.file antlrSource - outputs.file file('src/main/gen/org/jabref/logic/bst/BstLexer.java') - outputs.file file('src/main/gen/org/jabref/logic/bst/BstParser.java') - - main = 'org.antlr.Tool' - classpath = configurations.antlr3 - args = ["-o", file('src/main/gen/org/jabref/logic/bst/'), antlrSource] -} - -task generateSearchGrammarSource(type: JavaExec) { - String grammarFile = "Search" - - group 'JabRef' - description "Generates java files for ${grammarFile}.g antlr4." - - String packagePath = "org/jabref/search" - File antlrPath = file("src/main/antlr4") - File genPath = file("src/main/gen") - - File antlrSource = file("$antlrPath/$packagePath/${grammarFile}.g4") - File destinationDir = file("$genPath/$packagePath") - - inputs.file antlrSource - outputs.file file("$destinationDir/${grammarFile}Parser.java") - outputs.file file("$destinationDir/${grammarFile}Lexer.java") - outputs.file file("$destinationDir/${grammarFile}Visitor.java") - outputs.file file("$destinationDir/${grammarFile}BaseVisitor.java") - outputs.file file("$destinationDir/${grammarFile}.tokens") - outputs.file file("$destinationDir/${grammarFile}Lexer.tokens") - main = 'org.antlr.v4.Tool' - classpath = configurations.antlr4 - args = ["-o", destinationDir, "-visitor", "-no-listener", "-package", "org.jabref.search", antlrSource] -} - -compileJava { - options.encoding = 'UTF-8' - options.compilerArgs << "-Xlint:none" -} -compileJava.dependsOn "generateSource" - -compileTestJava { - options.encoding = 'UTF-8' -} - -javadoc { - options { - encoding = 'UTF-8' - version = true - author = true + compileTestJava { + options.encoding = 'UTF-8' } -} -// Test tasks -junitPlatform { - filters { - tags { - exclude 'DatabaseTest', 'FetcherTest', 'GUITest', 'org.jabref.testutils.category.FetcherTest', 'org.jabref.testutils.category.GUITest' + javadoc { + options { + encoding = 'UTF-8' + version = true + author = true } } - - logManager 'org.apache.logging.log4j.jul.LogManager' -} - -task databaseTest(type: Test) { - useJUnit { - includeCategories 'org.jabref.testutils.category.DatabaseTest' - } -} - -task fetcherTest(type: Test) { - useJUnit { - includeCategories 'org.jabref.testutils.category.FetcherTest' - } -} - -task guiTest(type: Test) { - useJUnit { - includeCategories 'org.jabref.testutils.category.GUITest' - } -} - -// Test result tasks -task copyTestResources(type: Copy) { - from "${projectDir}/src/test/resources" - into "${buildDir}/classes/test" -} -processTestResources.dependsOn copyTestResources - -tasks.withType(Test) { - reports.html.destination = file("${reporting.baseDir}/${name}") - - jacoco { - append = true - } -} - -task jacocoMerge(type: JacocoMerge) { - executionData file("$buildDir/jacoco/junitPlatformTest.exec"), file("$buildDir/jacoco/databaseTest.exec"), file("$buildDir/jacoco/fetcherTest.exec") - dependsOn junitPlatformTest, databaseTest, fetcherTest } -jacocoTestReport { - executionData jacocoMerge.destinationFile - dependsOn jacocoMerge - - reports { - xml.enabled = true // coveralls plugin depends on xml format report - html.enabled = true - } +install4j { + installDir = file(project.ext.install4jDir) } -afterEvaluate { - def junitPlatformTest = tasks.junitPlatformTest - - jacoco { - applyTo(junitPlatformTest) - } - - task jacocoJunit5TestReport(type: JacocoReport) { - executionData jacocoMerge.destinationFile - dependsOn jacocoMerge - sourceSets sourceSets.main - sourceDirectories = files(sourceSets.main.allSource.srcDirs) - classDirectories = files(sourceSets.main.output) - - reports { - xml.enabled true - html.enabled true +// has to be defined AFTER 'dev' things to have the correct project.version +task releaseJar(dependsOn: ":org.jabref.gui:shadowJar") { + group = 'JabRef - Release' + description "Creates a Jar release." + doLast { + copy { + from("org.jabref.gui/build/libs/org.jabref.gui-${project.version}-fat.jar") + into("$buildDir/releases") + rename { String fileName -> "JabRef-${project.version}.jar" } } + // set executable with read permissions (first true) and for all (false) + file("$buildDir/releases/JabRef-${project.version}.jar").setExecutable(true, false) } } -// Code quality tasks -checkstyle { - // do not use other packages for checkstyle, excluding gen(erated) sources - checkstyleMain.source = "src/main/java" - toolVersion = '8.5' -} - -checkstyleMain.shouldRunAfter test -checkstyleTest.shouldRunAfter test - -modernizer { - // We have more than 20 issues, which are not fixed yet. Nevertheless, we produce the modernizer output. - // See https://github.com/andrewgaul/modernizer-maven-plugin for more information on modernizer - failOnViolations = false -} - -// Release tasks -shadowJar { - classifier 'fat' -} - -/* - * Changes project.version to VERSION--snapshot--DATE--GIT_HASH - */ -if (hasProperty('dev')) { - String command = "git log --pretty=format:%cd--%h -n 1 --date=short" - String commitInfo = "" - if (OperatingSystem.current().isWindows()) { - commitInfo = "cmd /c $command".execute().in.text - } else { - commitInfo = command.execute().in.text - } - - // determine branch - command = "git symbolic-ref -q --short HEAD" - String branchName = "" - if (OperatingSystem.current().isWindows()) { - branchName = "cmd /c $command".execute().in.text - } else { - branchName = command.execute().in.text - } - // A newline is returned. Remove it. (trim()) - // In the context of github, the branch name could be something like "pull/277" - // "/" is an illegal character. To be safe, all illegal filename characters are replaced by "_" - // http://stackoverflow.com/a/15075907/873282 describes the used pattern. - branchName = branchName.trim().replaceAll("[^a-zA-Z0-9.-]", "_") - - // hack string - // first the date (%cd), then the branch name, and finally the commit id (%h) - String infoString = commitInfo.substring(0, 10) + "--" + branchName + "--" + commitInfo.substring(12) - - project.version += "--snapshot--" + infoString -} - -install4j { - installDir = file(project.ext.install4jDir) -} - // has to be defined AFTER 'dev' things to have the correct project.version task media(type: com.install4j.gradle.Install4jTask, dependsOn: "releaseJar") { projectFile = file('jabref.install4j') @@ -499,34 +264,11 @@ task media(type: com.install4j.gradle.Install4jTask, dependsOn: "releaseJar") { } } - -task release(dependsOn: ["media", "releaseJar"]) { +task release(dependsOn: ["media"]) { group = 'JabRef - Release' description 'Creates a release for all target platforms.' } -task releaseJar(dependsOn: "shadowJar") { - group = 'JabRef - Release' - description "Creates a Jar release." - doLast { - copy { - from("$buildDir/libs/JabRef-${project.version}-fat.jar") - into("$buildDir/releases") - rename { String fileName -> - fileName.replace('-fat', '') - } - } - // set executable with read permissions (first true) and for all (false) - file("$buildDir/releases/JabRef-${project.version}.jar").setExecutable(true, false) - } -} - task snapJar(dependsOn: "releaseJar", type: Delete) { delete fileTree(dir: "$buildDir/releases/", exclude: "JabRef-${project.version}.jar") } - -jmh { - warmupIterations = 5 - iterations = 10 - fork = 2 -} diff --git a/src/main/resources/icons/jabref.icns b/buildres/jabref.icns old mode 100755 new mode 100644 similarity index 100% rename from src/main/resources/icons/jabref.icns rename to buildres/jabref.icns diff --git a/src/main/resources/icons/jabref.ico b/buildres/jabref.ico similarity index 100% rename from src/main/resources/icons/jabref.ico rename to buildres/jabref.ico diff --git a/circle.yml b/circle.yml index 9ee9a6fa11d..2fd93f04ad0 100644 --- a/circle.yml +++ b/circle.yml @@ -10,18 +10,19 @@ dependencies: # openssl aes-256-cbc -e -in ./buildres/jabref-cert-2016.p12 -out jabref-cert-2016.p12.enc -k {PASSWORD} #- openssl aes-256-cbc -d -in ./buildres/jabref-cert-2016.p12.enc -out ./buildres/jabref-cert-2016.p12 -k $CERTIFICATE - scripts/prepare-install4j.sh - - install4j7/bin/install4jc --verbose --license=$INSTALL4J_KEY + - install4j7/bin/install4jc --verbose --license=$INSTALL4J_KEY #--win-keystore-password $CERTIFICATE_PW --mac-keystore-password $CERTIFICATE_PW override: # We do this to decrease build time by using CircleCI's cache. See https://discuss.circleci.com/t/effective-caching-for-gradle/540 for a longer motivation. - - ./gradlew compileJava + - ./gradlew --no-daemon -Pdev=true compileJava cache_directories: - "~/.install4j7" - "~/downloads" test: override: - - ./gradlew -Pdev=true -Pinstall4jDir="install4j7" release --stacktrace + - ./gradlew --no-daemon -Pdev=true -Pinstall4jDir="install4j7" --stacktrace release + - ./gradlew --no-daemon -Drevision=release -DoutputFormatter=json -DoutputDir=build/releases dependencyUpdates post: # save test reports as build artifacts - mkdir -p $CIRCLE_TEST_REPORTS/junit/ @@ -33,10 +34,9 @@ deployment: tag: /v[0-9]+(\.[0-9]+)*(-.+)?/ commands: # we have to do a clean build as changing gradle's "project.version" does not lead to a rebuild of resources (mirroring project.version) - - ./gradlew -Pinstall4jDir="install4j7" clean release --stacktrace + - ./gradlew --no-daemon -Pinstall4jDir="install4j7" --stacktrace clean release # upload at all circumstances - scripts/upload-to-builds.jabref.org.sh - - ./gradlew dependencyUpdates -Drevision=release -DoutputFormatter=json -DoutputDir=build/releases development: # match all branches; this is executed, if "release" is not matched - see https://circleci.com/docs/configuration/ branch: /.*/ @@ -44,8 +44,6 @@ deployment: # if upload fails, it is accepted; CircleCI provides deep links to the binaries as fallback - timeout 580 scripts/upload-to-builds.jabref.org.sh || exit 0 - - general: artifacts: - "build/releases" diff --git a/src/main/doc/Groups.uml b/docs/Groups.uml similarity index 100% rename from src/main/doc/Groups.uml rename to docs/Groups.uml diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 99340b4ad18..a5fe1cb94b9 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index be280bec023..568c50bf3a4 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.5-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-bin.zip diff --git a/jabref.install4j b/jabref.install4j index 28d3fad052e..eb3f11dc6b5 100644 --- a/jabref.install4j +++ b/jabref.install4j @@ -59,8 +59,8 @@ - - + + @@ -102,7 +102,7 @@ - + @@ -183,7 +183,7 @@ context.setInstallationDirectory(new File(System.getenv("LOCALAPPDATA"), "JabRef")); } else { context.setInstallationDirectory(new File(System.getProperty("user.home"), "JabRef")); - } + } } return true; @@ -608,7 +608,7 @@ return console.askOkCancel(message, true); - ./src/main/resources/icons/jabref.icns + ./buildres/jabref.icns @@ -622,7 +622,7 @@ return console.askOkCancel(message, true); - ./src/main/resources/icons/jabref.ico + ./buildres/jabref.ico diff --git a/org.jabref.cli.xmp/build.gradle b/org.jabref.cli.xmp/build.gradle new file mode 100644 index 00000000000..46ae020ae37 --- /dev/null +++ b/org.jabref.cli.xmp/build.gradle @@ -0,0 +1,6 @@ +dependencies { + compile project(':org.jabref.model') + compile project(':org.jabref.logic') + + compile 'org.apache.pdfbox:jempbox:1.8.13' +} diff --git a/org.jabref.cli.xmp/config/checkstyle/checkstyle.xml b/org.jabref.cli.xmp/config/checkstyle/checkstyle.xml new file mode 100644 index 00000000000..20cbcee3f60 --- /dev/null +++ b/org.jabref.cli.xmp/config/checkstyle/checkstyle.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.jabref.cli.xmp/config/checkstyle/suppressions.xml b/org.jabref.cli.xmp/config/checkstyle/suppressions.xml new file mode 100644 index 00000000000..7e853704d9d --- /dev/null +++ b/org.jabref.cli.xmp/config/checkstyle/suppressions.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/org.jabref.cli.xmp/settings.gradle b/org.jabref.cli.xmp/settings.gradle new file mode 100644 index 00000000000..1b2e190cd6a --- /dev/null +++ b/org.jabref.cli.xmp/settings.gradle @@ -0,0 +1 @@ +include 'org.jabref.model', 'org.jabref.logic' diff --git a/src/main/java/org/jabref/cli/XMPUtilMain.java b/org.jabref.cli.xmp/src/main/java/org/jabref/cli/XmpUtilMain.java similarity index 80% rename from src/main/java/org/jabref/cli/XMPUtilMain.java rename to org.jabref.cli.xmp/src/main/java/org/jabref/cli/XmpUtilMain.java index 517f572017c..918d11470b0 100644 --- a/src/main/java/org/jabref/cli/XMPUtilMain.java +++ b/org.jabref.cli.xmp/src/main/java/org/jabref/cli/XmpUtilMain.java @@ -6,29 +6,33 @@ import java.io.StringWriter; import java.nio.charset.StandardCharsets; import java.util.Collection; +import java.util.Collections; import java.util.List; import java.util.Optional; import javax.xml.transform.TransformerException; -import org.jabref.Globals; import org.jabref.logic.bibtex.BibEntryWriter; +import org.jabref.logic.bibtex.FieldContentParserPreferences; import org.jabref.logic.bibtex.LatexFieldFormatter; +import org.jabref.logic.bibtex.LatexFieldFormatterPreferences; +import org.jabref.logic.bibtexkeypattern.BibtexKeyPatternPreferences; import org.jabref.logic.importer.ImportFormatPreferences; import org.jabref.logic.importer.ParserResult; import org.jabref.logic.importer.fileformat.BibtexParser; import org.jabref.logic.xmp.XMPPreferences; import org.jabref.logic.xmp.XMPUtil; +import org.jabref.model.bibtexkeypattern.GlobalBibtexKeyPattern; import org.jabref.model.database.BibDatabaseMode; import org.jabref.model.entry.BibEntry; -import org.jabref.preferences.JabRefPreferences; +import org.jabref.model.util.DummyFileUpdateMonitor; import org.apache.jempbox.impl.XMLUtil; import org.apache.jempbox.xmp.XMPMetadata; -public class XMPUtilMain { +public class XmpUtilMain { - private XMPUtilMain() { + private XmpUtilMain() { } /** @@ -56,27 +60,27 @@ private XMPUtilMain() { * If the given BibEntry is malformed. */ public static void main(String[] args) throws IOException, TransformerException { - - // Don't forget to initialize the preferences - if (Globals.prefs == null) { - Globals.prefs = JabRefPreferences.getInstance(); - } - - XMPPreferences xmpPreferences = Globals.prefs.getXMPPreferences(); - ImportFormatPreferences importFormatPreferences = Globals.prefs.getImportFormatPreferences(); + final ImportFormatPreferences importFormatPreferences = new ImportFormatPreferences( + Collections.emptySet(), + StandardCharsets.UTF_8, + ',', + new BibtexKeyPatternPreferences("", "", false, true, true, GlobalBibtexKeyPattern.fromPattern("[auth][year]"), ','), + new FieldContentParserPreferences(), + false); + final BibtexParser bibtexParser = new BibtexParser(importFormatPreferences, new DummyFileUpdateMonitor()); + final XMPPreferences xmpPreferences = new XMPPreferences(false, Collections.emptyList(), ';'); switch (args.length) { case 0: usage(); break; case 1: - if (args[0].endsWith(".pdf")) { // Read from pdf and write as BibTex List l = XMPUtil.readXMP(new File(args[0]), xmpPreferences); BibEntryWriter bibtexEntryWriter = new BibEntryWriter( - new LatexFieldFormatter(Globals.prefs.getLatexFieldFormatterPreferences()), false); + new LatexFieldFormatter(new LatexFieldFormatterPreferences()), false); for (BibEntry entry : l) { StringWriter sw = new StringWriter(); @@ -87,7 +91,7 @@ public static void main(String[] args) throws IOException, TransformerException } else if (args[0].endsWith(".bib")) { // Read from BIB and write as XMP try (FileReader fr = new FileReader(args[0])) { - ParserResult result = new BibtexParser(importFormatPreferences, Globals.getFileUpdateMonitor()).parse(fr); + ParserResult result = bibtexParser.parse(fr); Collection entries = result.getDatabase().getEntries(); if (entries.isEmpty()) { @@ -114,7 +118,7 @@ public static void main(String[] args) throws IOException, TransformerException } if (args[0].endsWith(".bib") && args[1].endsWith(".pdf")) { - ParserResult result = new BibtexParser(importFormatPreferences, Globals.getFileUpdateMonitor()).parse(new FileReader(args[0])); + ParserResult result = bibtexParser.parse(new FileReader(args[0])); Collection entries = result.getDatabase().getEntries(); @@ -135,7 +139,7 @@ public static void main(String[] args) throws IOException, TransformerException break; } - ParserResult result = new BibtexParser(importFormatPreferences, Globals.getFileUpdateMonitor()).parse(new FileReader(args[1])); + ParserResult result = bibtexParser.parse(new FileReader(args[1])); Optional bibEntry = result.getDatabase().getEntryByKey(args[0]); @@ -155,8 +159,6 @@ public static void main(String[] args) throws IOException, TransformerException /** * Print usage information for the command line tool xmpUtil. - * - * @see XMPUtilMain#main(String[]) */ private static void usage() { System.out.println("Read or write XMP-metadata from or to pdf file."); diff --git a/org.jabref.gui/build.gradle b/org.jabref.gui/build.gradle new file mode 100644 index 00000000000..a8f87191992 --- /dev/null +++ b/org.jabref.gui/build.gradle @@ -0,0 +1,203 @@ +buildscript { + repositories { + mavenLocal() + jcenter() + maven { + url 'https://oss.sonatype.org/content/groups/public' + } + } + dependencies { + classpath 'org.junit.platform:junit-platform-gradle-plugin:1.1.0-M1' + } +} + +plugins { + id 'com.github.johnrengelman.shadow' version '2.0.2' + id "de.sebastianboegl.shadow.transformer.log4j" version "2.1.1" +} + +apply plugin: 'application' + +jacoco { + toolVersion = '0.8.0' +} + +mainClassName = "org.jabref.JabRefMain" + +sourceSets { + main { + java { + srcDirs = ["src/main/java"] + } + resources { + srcDirs = ["src/main/java", "src/main/resources"] + } + } +} + +dependencies { + compile project(':org.jabref.model') + compile project(':org.jabref.logic') + + compile fileTree(dir: 'lib', includes: ['*.jar']) + + compile 'org.json:json:20160212' + + compile 'org.antlr:antlr4-runtime:4.7.1' + + compile 'com.jgoodies:jgoodies-forms:1.9.0' + + // update to 2.0.x is not possible - see https://github.com/JabRef/jabref/pull/1096#issuecomment-208857517 + compile 'org.apache.pdfbox:pdfbox:1.8.13' + + compile 'commons-cli:commons-cli:1.4' + + compile "org.libreoffice:juh:5.4.2" + compile "org.libreoffice:ridl:5.4.2" + compile "org.libreoffice:unoil:5.4.2" + + + // VersionEye states that 6.0.5 is the most recent version, but http://dev.mysql.com/downloads/connector/j/ shows that as "Development Release" + runtime 'mysql:mysql-connector-java:5.1.45' + + compile 'com.impossibl.pgjdbc-ng:pgjdbc-ng:0.7.1' + + compile 'net.java.dev.glazedlists:glazedlists_java15:1.9.1' + + compile 'com.google.guava:guava:24.0-jre' + + // JavaFX stuff + + // compile 'com.airhacks:afterburner.fx:1.7.0' -- currently JabRef's fork - therefore, we have to include the indirect dependency: + compile group: 'javax.inject', name: 'javax.inject', version:'1' + + compile 'de.codecentric.centerdevice:javafxsvg:1.2.1' + compile 'de.jensd:fontawesomefx-commons:8.15' + compile 'de.jensd:fontawesomefx-materialdesignfont:1.7.22-4' + compile 'de.saxsys:mvvmfx-validation:1.7.0' + compile 'org.fxmisc.easybind:easybind:1.0.3' + compile 'org.fxmisc.flowless:flowless:0.6' + compile 'org.fxmisc.richtext:richtextfx:0.8.2' + compile 'org.reactfx:reactfx:2.0-M5' + + // Cannot be updated to 9.*.* until Jabref works with Java 9 + compile 'org.controlsfx:controlsfx:8.40.15-SNAPSHOT' + + compile 'com.mashape.unirest:unirest-java:1.4.9' + compile 'org.apache.httpcomponents:httpclient:4.5.3' + + // >1.8.0-beta is required for java 9 compatibility + compile 'org.slf4j:slf4j-api:1.8.0-beta1' + compile 'org.apache.logging.log4j:log4j-api:2.10.0' + compile 'org.apache.logging.log4j:log4j-core:2.10.0' + runtime 'org.apache.logging.log4j:log4j-slf4j-impl:2.10.0' + runtime 'org.apache.logging.log4j:log4j-jcl:2.10.0' + + // need to use snapshots as the stable version is from 2013 and doesn't support v1.0.1 CitationStyles + runtime 'org.citationstyles:styles:1.0.1-SNAPSHOT' + runtime 'org.citationstyles:locales:1.0.1-SNAPSHOT' + + compile group: 'com.microsoft.azure', name: 'applicationinsights-core', version: '1.0.9' + compile group: 'com.microsoft.azure', name: 'applicationinsights-logging-log4j2', version: '1.0.9' + + testCompile 'com.tngtech.archunit:archunit-junit:0.5.0' + + testCompile 'org.assertj:assertj-core:3.8.0' + testCompile 'org.assertj:assertj-swing:3.8.0' + testCompile 'org.assertj:assertj-swing-junit:3.8.0' + testCompile "org.testfx:testfx-core:4.0.+" + testCompile "org.testfx:testfx-junit:4.0.+" + testCompile 'com.tngtech.archunit:archunit:0.5.0' +} + +processResources { + filteringCharset = 'UTF-8' + + filesMatching("resource/**/meta.xml") { + expand version: project.version + } +} + +// Test tasks +junitPlatform { + filters { + tags { + exclude 'DatabaseTest', 'FetcherTest', 'GUITest', 'org.jabref.testutils.category.FetcherTest', 'org.jabref.testutils.category.GUITest' + } + } + + logManager 'org.apache.logging.log4j.jul.LogManager' +} + +task databaseTest(type: Test) { + useJUnit { + includeCategories 'org.jabref.testutils.category.DatabaseTest' + } +} + +task fetcherTest(type: Test) { + useJUnit { + includeCategories 'org.jabref.testutils.category.FetcherTest' + } +} + +task guiTest(type: Test) { + useJUnit { + includeCategories 'org.jabref.testutils.category.GUITest' + } +} + +// Test result tasks +task copyTestResources(type: Copy) { + from "${projectDir}/src/test/resources" + into "${buildDir}/classes/test" +} +processTestResources.dependsOn copyTestResources + +tasks.withType(Test) { + reports.html.destination = file("${reporting.baseDir}/${name}") + + jacoco { + append = true + } +} + +task jacocoMerge(type: JacocoMerge) { + executionData file("$buildDir/jacoco/junitPlatformTest.exec"), file("$buildDir/jacoco/databaseTest.exec"), file("$buildDir/jacoco/fetcherTest.exec") + dependsOn junitPlatformTest, databaseTest, fetcherTest +} + +jacocoTestReport { + executionData jacocoMerge.destinationFile + dependsOn jacocoMerge + + reports { + xml.enabled = true // coveralls plugin depends on xml format report + html.enabled = true + } +} + +afterEvaluate { + def junitPlatformTest = tasks.junitPlatformTest + + jacoco { + applyTo(junitPlatformTest) + } + + task jacocoJunit5TestReport(type: JacocoReport) { + executionData jacocoMerge.destinationFile + dependsOn jacocoMerge + sourceSets sourceSets.main + sourceDirectories = files(sourceSets.main.allSource.srcDirs) + classDirectories = files(sourceSets.main.output) + + reports { + xml.enabled true + html.enabled true + } + } +} + +shadowJar { + classifier 'fat' +} diff --git a/org.jabref.gui/config/checkstyle/checkstyle.xml b/org.jabref.gui/config/checkstyle/checkstyle.xml new file mode 100644 index 00000000000..20cbcee3f60 --- /dev/null +++ b/org.jabref.gui/config/checkstyle/checkstyle.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.jabref.gui/config/checkstyle/suppressions.xml b/org.jabref.gui/config/checkstyle/suppressions.xml new file mode 100644 index 00000000000..7e853704d9d --- /dev/null +++ b/org.jabref.gui/config/checkstyle/suppressions.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/lib/AppleJavaExtensions.jar b/org.jabref.gui/lib/AppleJavaExtensions.jar similarity index 100% rename from lib/AppleJavaExtensions.jar rename to org.jabref.gui/lib/AppleJavaExtensions.jar diff --git a/org.jabref.gui/lib/afterburner.fx-1.0.0.jar b/org.jabref.gui/lib/afterburner.fx-1.0.0.jar new file mode 100644 index 00000000000..d9363e6d88b Binary files /dev/null and b/org.jabref.gui/lib/afterburner.fx-1.0.0.jar differ diff --git a/lib/customjfx-1.0.0.jar b/org.jabref.gui/lib/customjfx-1.0.0.jar similarity index 100% rename from lib/customjfx-1.0.0.jar rename to org.jabref.gui/lib/customjfx-1.0.0.jar diff --git a/lib/spin.jar b/org.jabref.gui/lib/spin.jar similarity index 100% rename from lib/spin.jar rename to org.jabref.gui/lib/spin.jar diff --git a/org.jabref.gui/settings.gradle b/org.jabref.gui/settings.gradle new file mode 100644 index 00000000000..1b2e190cd6a --- /dev/null +++ b/org.jabref.gui/settings.gradle @@ -0,0 +1 @@ +include 'org.jabref.model', 'org.jabref.logic' diff --git a/src/jmh/java/org/jabref/benchmarks/Benchmarks.java b/org.jabref.gui/src/jmh/java/org/jabref/benchmarks/Benchmarks.java similarity index 100% rename from src/jmh/java/org/jabref/benchmarks/Benchmarks.java rename to org.jabref.gui/src/jmh/java/org/jabref/benchmarks/Benchmarks.java diff --git a/src/jmh/java/org/jabref/preferences/LastFocusedTabPreferencesTest.java b/org.jabref.gui/src/jmh/java/org/jabref/preferences/LastFocusedTabPreferencesTest.java similarity index 100% rename from src/jmh/java/org/jabref/preferences/LastFocusedTabPreferencesTest.java rename to org.jabref.gui/src/jmh/java/org/jabref/preferences/LastFocusedTabPreferencesTest.java diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Article.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Article.java new file mode 100644 index 00000000000..baac900ab4e --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Article.java @@ -0,0 +1,788 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="author" type="{http://bibtexml.sf.net/}authorType"/>
+ *         <element name="title" type="{http://bibtexml.sf.net/}titleType"/>
+ *         <element name="journal" type="{http://bibtexml.sf.net/}journalType"/>
+ *         <element name="year" type="{http://bibtexml.sf.net/}yearType"/>
+ *         <element name="volume" type="{http://bibtexml.sf.net/}volumeType" minOccurs="0"/>
+ *         <element name="number" type="{http://bibtexml.sf.net/}numberType" minOccurs="0"/>
+ *         <element name="pages" type="{http://bibtexml.sf.net/}pagesType" minOccurs="0"/>
+ *         <element name="month" type="{http://bibtexml.sf.net/}monthType" minOccurs="0"/>
+ *         <element name="note" type="{http://bibtexml.sf.net/}noteType" minOccurs="0"/>
+ *         <group ref="{http://bibtexml.sf.net/}common"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "author", + "title", + "journal", + "year", + "volume", + "number", + "pages", + "month", + "note", + "key", + "annotate", + "crossref", + "_abstract", + "affiliation", + "contents", + "copyright", + "doi", + "isbn", + "issn", + "keywords", + "language", + "lccn", + "location", + "mrnumber", + "price", + "size", + "url", + "category" +}) +@XmlRootElement(name = "article") +public class Article { + + @XmlElement(required = true) + protected String author; + @XmlElement(required = true) + protected String title; + @XmlElement(required = true) + protected String journal; + @XmlElement(required = true) + protected XMLGregorianCalendar year; + protected String volume; + protected BigInteger number; + protected String pages; + protected String month; + protected String note; + protected String key; + protected String annotate; + protected String crossref; + @XmlElement(name = "abstract") + protected String _abstract; + protected String affiliation; + protected String contents; + protected String copyright; + protected String doi; + protected String isbn; + protected String issn; + protected String keywords; + protected String language; + protected String lccn; + protected String location; + protected String mrnumber; + protected String price; + protected String size; + protected String url; + protected String category; + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the journal property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getJournal() { + return journal; + } + + /** + * Sets the value of the journal property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setJournal(String value) { + this.journal = value; + } + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setYear(XMLGregorianCalendar value) { + this.year = value; + } + + /** + * Gets the value of the volume property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVolume() { + return volume; + } + + /** + * Sets the value of the volume property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVolume(String value) { + this.volume = value; + } + + /** + * Gets the value of the number property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getNumber() { + return number; + } + + /** + * Sets the value of the number property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setNumber(BigInteger value) { + this.number = value; + } + + /** + * Gets the value of the pages property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPages() { + return pages; + } + + /** + * Sets the value of the pages property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPages(String value) { + this.pages = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the annotate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAnnotate() { + return annotate; + } + + /** + * Sets the value of the annotate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAnnotate(String value) { + this.annotate = value; + } + + /** + * Gets the value of the crossref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCrossref() { + return crossref; + } + + /** + * Sets the value of the crossref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCrossref(String value) { + this.crossref = value; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAbstract(String value) { + this._abstract = value; + } + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAffiliation(String value) { + this.affiliation = value; + } + + /** + * Gets the value of the contents property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContents() { + return contents; + } + + /** + * Sets the value of the contents property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContents(String value) { + this.contents = value; + } + + /** + * Gets the value of the copyright property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyright() { + return copyright; + } + + /** + * Sets the value of the copyright property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyright(String value) { + this.copyright = value; + } + + /** + * Gets the value of the doi property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoi() { + return doi; + } + + /** + * Sets the value of the doi property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoi(String value) { + this.doi = value; + } + + /** + * Gets the value of the isbn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIsbn() { + return isbn; + } + + /** + * Sets the value of the isbn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIsbn(String value) { + this.isbn = value; + } + + /** + * Gets the value of the issn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssn() { + return issn; + } + + /** + * Sets the value of the issn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssn(String value) { + this.issn = value; + } + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeywords(String value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the lccn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLccn() { + return lccn; + } + + /** + * Sets the value of the lccn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLccn(String value) { + this.lccn = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the mrnumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMrnumber() { + return mrnumber; + } + + /** + * Sets the value of the mrnumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMrnumber(String value) { + this.mrnumber = value; + } + + /** + * Gets the value of the price property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrice() { + return price; + } + + /** + * Sets the value of the price property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrice(String value) { + this.price = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSize(String value) { + this.size = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Book.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Book.java new file mode 100644 index 00000000000..2da0884d644 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Book.java @@ -0,0 +1,872 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <choice>
+ *           <element name="author" type="{http://bibtexml.sf.net/}authorType"/>
+ *           <element name="editor" type="{http://bibtexml.sf.net/}editorType"/>
+ *         </choice>
+ *         <element name="title" type="{http://bibtexml.sf.net/}titleType"/>
+ *         <element name="publisher" type="{http://bibtexml.sf.net/}publisherType"/>
+ *         <element name="year" type="{http://bibtexml.sf.net/}yearType"/>
+ *         <choice minOccurs="0">
+ *           <element name="volume" type="{http://bibtexml.sf.net/}volumeType" minOccurs="0"/>
+ *           <element name="number" type="{http://bibtexml.sf.net/}numberType" minOccurs="0"/>
+ *         </choice>
+ *         <element name="series" type="{http://bibtexml.sf.net/}seriesType" minOccurs="0"/>
+ *         <element name="address" type="{http://bibtexml.sf.net/}addressType" minOccurs="0"/>
+ *         <element name="edition" type="{http://bibtexml.sf.net/}editionType" minOccurs="0"/>
+ *         <element name="month" type="{http://bibtexml.sf.net/}monthType" minOccurs="0"/>
+ *         <element name="note" type="{http://bibtexml.sf.net/}noteType" minOccurs="0"/>
+ *         <group ref="{http://bibtexml.sf.net/}common"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "author", + "editor", + "title", + "publisher", + "year", + "volume", + "number", + "series", + "address", + "edition", + "month", + "note", + "key", + "annotate", + "crossref", + "_abstract", + "affiliation", + "contents", + "copyright", + "doi", + "isbn", + "issn", + "keywords", + "language", + "lccn", + "location", + "mrnumber", + "price", + "size", + "url", + "category" +}) +@XmlRootElement(name = "book") +public class Book { + + protected String author; + protected String editor; + @XmlElement(required = true) + protected String title; + @XmlElement(required = true) + protected String publisher; + @XmlElement(required = true) + protected XMLGregorianCalendar year; + protected String volume; + protected BigInteger number; + protected String series; + protected String address; + protected String edition; + protected String month; + protected String note; + protected String key; + protected String annotate; + protected String crossref; + @XmlElement(name = "abstract") + protected String _abstract; + protected String affiliation; + protected String contents; + protected String copyright; + protected String doi; + protected String isbn; + protected String issn; + protected String keywords; + protected String language; + protected String lccn; + protected String location; + protected String mrnumber; + protected String price; + protected String size; + protected String url; + protected String category; + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the editor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEditor() { + return editor; + } + + /** + * Sets the value of the editor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEditor(String value) { + this.editor = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the publisher property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPublisher() { + return publisher; + } + + /** + * Sets the value of the publisher property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPublisher(String value) { + this.publisher = value; + } + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setYear(XMLGregorianCalendar value) { + this.year = value; + } + + /** + * Gets the value of the volume property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVolume() { + return volume; + } + + /** + * Sets the value of the volume property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVolume(String value) { + this.volume = value; + } + + /** + * Gets the value of the number property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getNumber() { + return number; + } + + /** + * Sets the value of the number property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setNumber(BigInteger value) { + this.number = value; + } + + /** + * Gets the value of the series property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeries() { + return series; + } + + /** + * Sets the value of the series property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeries(String value) { + this.series = value; + } + + /** + * Gets the value of the address property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAddress() { + return address; + } + + /** + * Sets the value of the address property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAddress(String value) { + this.address = value; + } + + /** + * Gets the value of the edition property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEdition() { + return edition; + } + + /** + * Sets the value of the edition property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEdition(String value) { + this.edition = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the annotate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAnnotate() { + return annotate; + } + + /** + * Sets the value of the annotate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAnnotate(String value) { + this.annotate = value; + } + + /** + * Gets the value of the crossref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCrossref() { + return crossref; + } + + /** + * Sets the value of the crossref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCrossref(String value) { + this.crossref = value; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAbstract(String value) { + this._abstract = value; + } + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAffiliation(String value) { + this.affiliation = value; + } + + /** + * Gets the value of the contents property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContents() { + return contents; + } + + /** + * Sets the value of the contents property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContents(String value) { + this.contents = value; + } + + /** + * Gets the value of the copyright property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyright() { + return copyright; + } + + /** + * Sets the value of the copyright property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyright(String value) { + this.copyright = value; + } + + /** + * Gets the value of the doi property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoi() { + return doi; + } + + /** + * Sets the value of the doi property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoi(String value) { + this.doi = value; + } + + /** + * Gets the value of the isbn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIsbn() { + return isbn; + } + + /** + * Sets the value of the isbn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIsbn(String value) { + this.isbn = value; + } + + /** + * Gets the value of the issn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssn() { + return issn; + } + + /** + * Sets the value of the issn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssn(String value) { + this.issn = value; + } + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeywords(String value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the lccn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLccn() { + return lccn; + } + + /** + * Sets the value of the lccn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLccn(String value) { + this.lccn = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the mrnumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMrnumber() { + return mrnumber; + } + + /** + * Sets the value of the mrnumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMrnumber(String value) { + this.mrnumber = value; + } + + /** + * Gets the value of the price property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrice() { + return price; + } + + /** + * Sets the value of the price property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrice(String value) { + this.price = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSize(String value) { + this.size = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Booklet.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Booklet.java new file mode 100644 index 00000000000..798942fbf19 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Booklet.java @@ -0,0 +1,730 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="author" type="{http://bibtexml.sf.net/}authorType" minOccurs="0"/>
+ *         <element name="title" type="{http://bibtexml.sf.net/}titleType"/>
+ *         <element name="howpublished" type="{http://bibtexml.sf.net/}howpublishedType" minOccurs="0"/>
+ *         <element name="address" type="{http://bibtexml.sf.net/}addressType" minOccurs="0"/>
+ *         <element name="month" type="{http://bibtexml.sf.net/}monthType" minOccurs="0"/>
+ *         <element name="year" type="{http://bibtexml.sf.net/}yearType" minOccurs="0"/>
+ *         <element name="note" type="{http://bibtexml.sf.net/}noteType" minOccurs="0"/>
+ *         <group ref="{http://bibtexml.sf.net/}common"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "author", + "title", + "howpublished", + "address", + "month", + "year", + "note", + "key", + "annotate", + "crossref", + "_abstract", + "affiliation", + "contents", + "copyright", + "doi", + "isbn", + "issn", + "keywords", + "language", + "lccn", + "location", + "mrnumber", + "price", + "size", + "url", + "category" +}) +@XmlRootElement(name = "booklet") +public class Booklet { + + protected String author; + @XmlElement(required = true) + protected String title; + protected String howpublished; + protected String address; + protected String month; + protected XMLGregorianCalendar year; + protected String note; + protected String key; + protected String annotate; + protected String crossref; + @XmlElement(name = "abstract") + protected String _abstract; + protected String affiliation; + protected String contents; + protected String copyright; + protected String doi; + protected String isbn; + protected String issn; + protected String keywords; + protected String language; + protected String lccn; + protected String location; + protected String mrnumber; + protected String price; + protected String size; + protected String url; + protected String category; + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the howpublished property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHowpublished() { + return howpublished; + } + + /** + * Sets the value of the howpublished property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHowpublished(String value) { + this.howpublished = value; + } + + /** + * Gets the value of the address property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAddress() { + return address; + } + + /** + * Sets the value of the address property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAddress(String value) { + this.address = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setYear(XMLGregorianCalendar value) { + this.year = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the annotate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAnnotate() { + return annotate; + } + + /** + * Sets the value of the annotate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAnnotate(String value) { + this.annotate = value; + } + + /** + * Gets the value of the crossref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCrossref() { + return crossref; + } + + /** + * Sets the value of the crossref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCrossref(String value) { + this.crossref = value; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAbstract(String value) { + this._abstract = value; + } + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAffiliation(String value) { + this.affiliation = value; + } + + /** + * Gets the value of the contents property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContents() { + return contents; + } + + /** + * Sets the value of the contents property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContents(String value) { + this.contents = value; + } + + /** + * Gets the value of the copyright property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyright() { + return copyright; + } + + /** + * Sets the value of the copyright property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyright(String value) { + this.copyright = value; + } + + /** + * Gets the value of the doi property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoi() { + return doi; + } + + /** + * Sets the value of the doi property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoi(String value) { + this.doi = value; + } + + /** + * Gets the value of the isbn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIsbn() { + return isbn; + } + + /** + * Sets the value of the isbn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIsbn(String value) { + this.isbn = value; + } + + /** + * Gets the value of the issn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssn() { + return issn; + } + + /** + * Sets the value of the issn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssn(String value) { + this.issn = value; + } + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeywords(String value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the lccn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLccn() { + return lccn; + } + + /** + * Sets the value of the lccn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLccn(String value) { + this.lccn = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the mrnumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMrnumber() { + return mrnumber; + } + + /** + * Sets the value of the mrnumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMrnumber(String value) { + this.mrnumber = value; + } + + /** + * Gets the value of the price property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrice() { + return price; + } + + /** + * Sets the value of the price property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrice(String value) { + this.price = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSize(String value) { + this.size = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Conference.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Conference.java new file mode 100644 index 00000000000..4502bff5316 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Conference.java @@ -0,0 +1,909 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <group ref="{http://bibtexml.sf.net/}InProceedings"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "author", + "title", + "booktitle", + "year", + "editor", + "volume", + "number", + "series", + "pages", + "address", + "month", + "organization", + "publisher", + "note", + "key", + "annotate", + "crossref", + "_abstract", + "affiliation", + "contents", + "copyright", + "doi", + "isbn", + "issn", + "keywords", + "language", + "lccn", + "location", + "mrnumber", + "price", + "size", + "url", + "category" +}) +@XmlRootElement(name = "conference") +public class Conference { + + @XmlElement(required = true) + protected String author; + @XmlElement(required = true) + protected String title; + @XmlElement(required = true) + protected String booktitle; + @XmlElement(required = true) + protected XMLGregorianCalendar year; + protected String editor; + protected String volume; + protected BigInteger number; + protected String series; + protected String pages; + protected String address; + protected String month; + protected String organization; + protected String publisher; + protected String note; + protected String key; + protected String annotate; + protected String crossref; + @XmlElement(name = "abstract") + protected String _abstract; + protected String affiliation; + protected String contents; + protected String copyright; + protected String doi; + protected String isbn; + protected String issn; + protected String keywords; + protected String language; + protected String lccn; + protected String location; + protected String mrnumber; + protected String price; + protected String size; + protected String url; + protected String category; + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the booktitle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBooktitle() { + return booktitle; + } + + /** + * Sets the value of the booktitle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBooktitle(String value) { + this.booktitle = value; + } + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setYear(XMLGregorianCalendar value) { + this.year = value; + } + + /** + * Gets the value of the editor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEditor() { + return editor; + } + + /** + * Sets the value of the editor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEditor(String value) { + this.editor = value; + } + + /** + * Gets the value of the volume property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVolume() { + return volume; + } + + /** + * Sets the value of the volume property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVolume(String value) { + this.volume = value; + } + + /** + * Gets the value of the number property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getNumber() { + return number; + } + + /** + * Sets the value of the number property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setNumber(BigInteger value) { + this.number = value; + } + + /** + * Gets the value of the series property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeries() { + return series; + } + + /** + * Sets the value of the series property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeries(String value) { + this.series = value; + } + + /** + * Gets the value of the pages property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPages() { + return pages; + } + + /** + * Sets the value of the pages property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPages(String value) { + this.pages = value; + } + + /** + * Gets the value of the address property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAddress() { + return address; + } + + /** + * Sets the value of the address property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAddress(String value) { + this.address = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the organization property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOrganization() { + return organization; + } + + /** + * Sets the value of the organization property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOrganization(String value) { + this.organization = value; + } + + /** + * Gets the value of the publisher property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPublisher() { + return publisher; + } + + /** + * Sets the value of the publisher property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPublisher(String value) { + this.publisher = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the annotate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAnnotate() { + return annotate; + } + + /** + * Sets the value of the annotate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAnnotate(String value) { + this.annotate = value; + } + + /** + * Gets the value of the crossref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCrossref() { + return crossref; + } + + /** + * Sets the value of the crossref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCrossref(String value) { + this.crossref = value; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAbstract(String value) { + this._abstract = value; + } + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAffiliation(String value) { + this.affiliation = value; + } + + /** + * Gets the value of the contents property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContents() { + return contents; + } + + /** + * Sets the value of the contents property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContents(String value) { + this.contents = value; + } + + /** + * Gets the value of the copyright property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyright() { + return copyright; + } + + /** + * Sets the value of the copyright property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyright(String value) { + this.copyright = value; + } + + /** + * Gets the value of the doi property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoi() { + return doi; + } + + /** + * Sets the value of the doi property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoi(String value) { + this.doi = value; + } + + /** + * Gets the value of the isbn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIsbn() { + return isbn; + } + + /** + * Sets the value of the isbn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIsbn(String value) { + this.isbn = value; + } + + /** + * Gets the value of the issn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssn() { + return issn; + } + + /** + * Sets the value of the issn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssn(String value) { + this.issn = value; + } + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeywords(String value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the lccn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLccn() { + return lccn; + } + + /** + * Sets the value of the lccn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLccn(String value) { + this.lccn = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the mrnumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMrnumber() { + return mrnumber; + } + + /** + * Sets the value of the mrnumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMrnumber(String value) { + this.mrnumber = value; + } + + /** + * Gets the value of the price property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrice() { + return price; + } + + /** + * Sets the value of the price property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrice(String value) { + this.price = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSize(String value) { + this.size = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Entry.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Entry.java new file mode 100644 index 00000000000..26f4e7128c5 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Entry.java @@ -0,0 +1,457 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <choice>
+ *           <element ref="{http://bibtexml.sf.net/}article"/>
+ *           <element ref="{http://bibtexml.sf.net/}book"/>
+ *           <element ref="{http://bibtexml.sf.net/}booklet"/>
+ *           <element ref="{http://bibtexml.sf.net/}manual"/>
+ *           <element ref="{http://bibtexml.sf.net/}techreport"/>
+ *           <element ref="{http://bibtexml.sf.net/}mastersthesis"/>
+ *           <element ref="{http://bibtexml.sf.net/}phdthesis"/>
+ *           <element ref="{http://bibtexml.sf.net/}inbook"/>
+ *           <element ref="{http://bibtexml.sf.net/}incollection"/>
+ *           <element ref="{http://bibtexml.sf.net/}proceedings"/>
+ *           <element ref="{http://bibtexml.sf.net/}inproceedings"/>
+ *           <element ref="{http://bibtexml.sf.net/}conference"/>
+ *           <element ref="{http://bibtexml.sf.net/}unpublished"/>
+ *           <element ref="{http://bibtexml.sf.net/}misc"/>
+ *         </choice>
+ *       </sequence>
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "article", + "book", + "booklet", + "manual", + "techreport", + "mastersthesis", + "phdthesis", + "inbook", + "incollection", + "proceedings", + "inproceedings", + "conference", + "unpublished", + "misc" +}) +@XmlRootElement(name = "entry") +public class Entry { + + protected Article article; + protected Book book; + protected Booklet booklet; + protected Manual manual; + protected Techreport techreport; + protected Mastersthesis mastersthesis; + protected Phdthesis phdthesis; + protected Inbook inbook; + protected Incollection incollection; + protected Proceedings proceedings; + protected Inproceedings inproceedings; + protected Conference conference; + protected Unpublished unpublished; + protected Misc misc; + @XmlAttribute(name = "id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Gets the value of the article property. + * + * @return + * possible object is + * {@link Article } + * + */ + public Article getArticle() { + return article; + } + + /** + * Sets the value of the article property. + * + * @param value + * allowed object is + * {@link Article } + * + */ + public void setArticle(Article value) { + this.article = value; + } + + /** + * Gets the value of the book property. + * + * @return + * possible object is + * {@link Book } + * + */ + public Book getBook() { + return book; + } + + /** + * Sets the value of the book property. + * + * @param value + * allowed object is + * {@link Book } + * + */ + public void setBook(Book value) { + this.book = value; + } + + /** + * Gets the value of the booklet property. + * + * @return + * possible object is + * {@link Booklet } + * + */ + public Booklet getBooklet() { + return booklet; + } + + /** + * Sets the value of the booklet property. + * + * @param value + * allowed object is + * {@link Booklet } + * + */ + public void setBooklet(Booklet value) { + this.booklet = value; + } + + /** + * Gets the value of the manual property. + * + * @return + * possible object is + * {@link Manual } + * + */ + public Manual getManual() { + return manual; + } + + /** + * Sets the value of the manual property. + * + * @param value + * allowed object is + * {@link Manual } + * + */ + public void setManual(Manual value) { + this.manual = value; + } + + /** + * Gets the value of the techreport property. + * + * @return + * possible object is + * {@link Techreport } + * + */ + public Techreport getTechreport() { + return techreport; + } + + /** + * Sets the value of the techreport property. + * + * @param value + * allowed object is + * {@link Techreport } + * + */ + public void setTechreport(Techreport value) { + this.techreport = value; + } + + /** + * Gets the value of the mastersthesis property. + * + * @return + * possible object is + * {@link Mastersthesis } + * + */ + public Mastersthesis getMastersthesis() { + return mastersthesis; + } + + /** + * Sets the value of the mastersthesis property. + * + * @param value + * allowed object is + * {@link Mastersthesis } + * + */ + public void setMastersthesis(Mastersthesis value) { + this.mastersthesis = value; + } + + /** + * Gets the value of the phdthesis property. + * + * @return + * possible object is + * {@link Phdthesis } + * + */ + public Phdthesis getPhdthesis() { + return phdthesis; + } + + /** + * Sets the value of the phdthesis property. + * + * @param value + * allowed object is + * {@link Phdthesis } + * + */ + public void setPhdthesis(Phdthesis value) { + this.phdthesis = value; + } + + /** + * Gets the value of the inbook property. + * + * @return + * possible object is + * {@link Inbook } + * + */ + public Inbook getInbook() { + return inbook; + } + + /** + * Sets the value of the inbook property. + * + * @param value + * allowed object is + * {@link Inbook } + * + */ + public void setInbook(Inbook value) { + this.inbook = value; + } + + /** + * Gets the value of the incollection property. + * + * @return + * possible object is + * {@link Incollection } + * + */ + public Incollection getIncollection() { + return incollection; + } + + /** + * Sets the value of the incollection property. + * + * @param value + * allowed object is + * {@link Incollection } + * + */ + public void setIncollection(Incollection value) { + this.incollection = value; + } + + /** + * Gets the value of the proceedings property. + * + * @return + * possible object is + * {@link Proceedings } + * + */ + public Proceedings getProceedings() { + return proceedings; + } + + /** + * Sets the value of the proceedings property. + * + * @param value + * allowed object is + * {@link Proceedings } + * + */ + public void setProceedings(Proceedings value) { + this.proceedings = value; + } + + /** + * Gets the value of the inproceedings property. + * + * @return + * possible object is + * {@link Inproceedings } + * + */ + public Inproceedings getInproceedings() { + return inproceedings; + } + + /** + * Sets the value of the inproceedings property. + * + * @param value + * allowed object is + * {@link Inproceedings } + * + */ + public void setInproceedings(Inproceedings value) { + this.inproceedings = value; + } + + /** + * Gets the value of the conference property. + * + * @return + * possible object is + * {@link Conference } + * + */ + public Conference getConference() { + return conference; + } + + /** + * Sets the value of the conference property. + * + * @param value + * allowed object is + * {@link Conference } + * + */ + public void setConference(Conference value) { + this.conference = value; + } + + /** + * Gets the value of the unpublished property. + * + * @return + * possible object is + * {@link Unpublished } + * + */ + public Unpublished getUnpublished() { + return unpublished; + } + + /** + * Sets the value of the unpublished property. + * + * @param value + * allowed object is + * {@link Unpublished } + * + */ + public void setUnpublished(Unpublished value) { + this.unpublished = value; + } + + /** + * Gets the value of the misc property. + * + * @return + * possible object is + * {@link Misc } + * + */ + public Misc getMisc() { + return misc; + } + + /** + * Sets the value of the misc property. + * + * @param value + * allowed object is + * {@link Misc } + * + */ + public void setMisc(Misc value) { + this.misc = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setId(String value) { + this.id = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/File.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/File.java new file mode 100644 index 00000000000..9a1527186e2 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/File.java @@ -0,0 +1,76 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://bibtexml.sf.net/}entry" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "entry" +}) +@XmlRootElement(name = "file") +public class File { + + protected List entry; + + /** + * Gets the value of the entry property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the entry property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEntry().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Entry } + * + * + */ + public List getEntry() { + if (entry == null) { + entry = new ArrayList(); + } + return this.entry; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Inbook.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Inbook.java new file mode 100644 index 00000000000..7aa9f1413d6 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Inbook.java @@ -0,0 +1,181 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <choice>
+ *           <element name="author" type="{http://bibtexml.sf.net/}authorType"/>
+ *         </choice>
+ *         <element name="title" type="{http://bibtexml.sf.net/}titleType"/>
+ *         <choice>
+ *           <group ref="{http://bibtexml.sf.net/}inbookGroup1"/>
+ *           <element name="pages" type="{http://bibtexml.sf.net/}pagesType"/>
+ *         </choice>
+ *         <element name="publisher" type="{http://bibtexml.sf.net/}publisherType" minOccurs="0"/>
+ *         <element name="year" type="{http://bibtexml.sf.net/}yearType" minOccurs="0"/>
+ *         <choice minOccurs="0">
+ *           <element name="volume" type="{http://bibtexml.sf.net/}volumeType"/>
+ *           <element name="number" type="{http://bibtexml.sf.net/}numberType"/>
+ *         </choice>
+ *         <element name="series" type="{http://bibtexml.sf.net/}seriesType" minOccurs="0"/>
+ *         <element name="editor" type="{http://bibtexml.sf.net/}editorType"/>
+ *         <element name="type" type="{http://bibtexml.sf.net/}typeType" minOccurs="0"/>
+ *         <element name="address" type="{http://bibtexml.sf.net/}addressType" minOccurs="0"/>
+ *         <element name="edition" type="{http://bibtexml.sf.net/}editionType" minOccurs="0"/>
+ *         <element name="month" type="{http://bibtexml.sf.net/}monthType" minOccurs="0"/>
+ *         <element name="note" type="{http://bibtexml.sf.net/}noteType" minOccurs="0"/>
+ *         <group ref="{http://bibtexml.sf.net/}common"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "inbook") +public class Inbook { + + @XmlElementRefs({ + @XmlElementRef(name = "month", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "editor", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "url", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "pages", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "location", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "category", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "key", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "lccn", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "size", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "edition", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "abstract", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "volume", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "address", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "contents", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "chapter", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "series", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "note", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "title", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "annotate", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "isbn", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "copyright", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "publisher", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "keywords", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "author", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "crossref", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "price", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "language", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "year", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "affiliation", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "number", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "type", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "doi", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "issn", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false), + @XmlElementRef(name = "mrnumber", namespace = "http://bibtexml.sf.net/", type = JAXBElement.class, required = false) + }) + protected List> content; + + /** + * Gets the rest of the content model. + * + *

+ * You are getting this "catch-all" property because of the following reason: + * The field name "Pages" is used by two different parts of a schema. See: + * line 405 of file:/C:/git-repositories/jabref/jabref-multi-module-build/org.jabref.gui/src/main/resources/xjc/bibtexml/bibtexml.xsd + * line 446 of file:/C:/git-repositories/jabref/jabref-multi-module-build/org.jabref.gui/src/main/resources/xjc/bibtexml/bibtexml.xsd + *

+ * To get rid of this property, apply a property customization to one + * of both of the following declarations to change their names: + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getContent().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + * + */ + public List> getContent() { + if (content == null) { + content = new ArrayList>(); + } + return this.content; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Incollection.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Incollection.java new file mode 100644 index 00000000000..0466a3263be --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Incollection.java @@ -0,0 +1,980 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="author" type="{http://bibtexml.sf.net/}authorType"/>
+ *         <element name="title" type="{http://bibtexml.sf.net/}titleType"/>
+ *         <element name="booktitle" type="{http://bibtexml.sf.net/}booktitleType"/>
+ *         <element name="publisher" type="{http://bibtexml.sf.net/}publisherType"/>
+ *         <element name="year" type="{http://bibtexml.sf.net/}yearType"/>
+ *         <element name="editor" type="{http://bibtexml.sf.net/}editorType" minOccurs="0"/>
+ *         <choice minOccurs="0">
+ *           <element name="volume" type="{http://bibtexml.sf.net/}volumeType"/>
+ *           <element name="number" type="{http://bibtexml.sf.net/}numberType"/>
+ *         </choice>
+ *         <element name="series" type="{http://bibtexml.sf.net/}seriesType" minOccurs="0"/>
+ *         <element name="type" type="{http://bibtexml.sf.net/}typeType" minOccurs="0"/>
+ *         <element name="chapter" type="{http://bibtexml.sf.net/}chapterType" minOccurs="0"/>
+ *         <element name="pages" type="{http://bibtexml.sf.net/}pagesType" minOccurs="0"/>
+ *         <element name="address" type="{http://bibtexml.sf.net/}addressType" minOccurs="0"/>
+ *         <element name="edition" type="{http://bibtexml.sf.net/}editionType" minOccurs="0"/>
+ *         <element name="month" type="{http://bibtexml.sf.net/}monthType" minOccurs="0"/>
+ *         <element name="note" type="{http://bibtexml.sf.net/}noteType" minOccurs="0"/>
+ *         <group ref="{http://bibtexml.sf.net/}common"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "author", + "title", + "booktitle", + "publisher", + "year", + "editor", + "volume", + "number", + "series", + "type", + "chapter", + "pages", + "address", + "edition", + "month", + "note", + "key", + "annotate", + "crossref", + "_abstract", + "affiliation", + "contents", + "copyright", + "doi", + "isbn", + "issn", + "keywords", + "language", + "lccn", + "location", + "mrnumber", + "price", + "size", + "url", + "category" +}) +@XmlRootElement(name = "incollection") +public class Incollection { + + @XmlElement(required = true) + protected String author; + @XmlElement(required = true) + protected String title; + @XmlElement(required = true) + protected String booktitle; + @XmlElement(required = true) + protected String publisher; + @XmlElement(required = true) + protected XMLGregorianCalendar year; + protected String editor; + protected String volume; + protected BigInteger number; + protected String series; + protected String type; + protected BigInteger chapter; + protected String pages; + protected String address; + protected String edition; + protected String month; + protected String note; + protected String key; + protected String annotate; + protected String crossref; + @XmlElement(name = "abstract") + protected String _abstract; + protected String affiliation; + protected String contents; + protected String copyright; + protected String doi; + protected String isbn; + protected String issn; + protected String keywords; + protected String language; + protected String lccn; + protected String location; + protected String mrnumber; + protected String price; + protected String size; + protected String url; + protected String category; + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the booktitle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBooktitle() { + return booktitle; + } + + /** + * Sets the value of the booktitle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBooktitle(String value) { + this.booktitle = value; + } + + /** + * Gets the value of the publisher property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPublisher() { + return publisher; + } + + /** + * Sets the value of the publisher property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPublisher(String value) { + this.publisher = value; + } + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setYear(XMLGregorianCalendar value) { + this.year = value; + } + + /** + * Gets the value of the editor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEditor() { + return editor; + } + + /** + * Sets the value of the editor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEditor(String value) { + this.editor = value; + } + + /** + * Gets the value of the volume property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVolume() { + return volume; + } + + /** + * Sets the value of the volume property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVolume(String value) { + this.volume = value; + } + + /** + * Gets the value of the number property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getNumber() { + return number; + } + + /** + * Sets the value of the number property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setNumber(BigInteger value) { + this.number = value; + } + + /** + * Gets the value of the series property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeries() { + return series; + } + + /** + * Sets the value of the series property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeries(String value) { + this.series = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the chapter property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getChapter() { + return chapter; + } + + /** + * Sets the value of the chapter property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setChapter(BigInteger value) { + this.chapter = value; + } + + /** + * Gets the value of the pages property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPages() { + return pages; + } + + /** + * Sets the value of the pages property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPages(String value) { + this.pages = value; + } + + /** + * Gets the value of the address property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAddress() { + return address; + } + + /** + * Sets the value of the address property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAddress(String value) { + this.address = value; + } + + /** + * Gets the value of the edition property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEdition() { + return edition; + } + + /** + * Sets the value of the edition property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEdition(String value) { + this.edition = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the annotate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAnnotate() { + return annotate; + } + + /** + * Sets the value of the annotate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAnnotate(String value) { + this.annotate = value; + } + + /** + * Gets the value of the crossref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCrossref() { + return crossref; + } + + /** + * Sets the value of the crossref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCrossref(String value) { + this.crossref = value; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAbstract(String value) { + this._abstract = value; + } + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAffiliation(String value) { + this.affiliation = value; + } + + /** + * Gets the value of the contents property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContents() { + return contents; + } + + /** + * Sets the value of the contents property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContents(String value) { + this.contents = value; + } + + /** + * Gets the value of the copyright property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyright() { + return copyright; + } + + /** + * Sets the value of the copyright property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyright(String value) { + this.copyright = value; + } + + /** + * Gets the value of the doi property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoi() { + return doi; + } + + /** + * Sets the value of the doi property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoi(String value) { + this.doi = value; + } + + /** + * Gets the value of the isbn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIsbn() { + return isbn; + } + + /** + * Sets the value of the isbn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIsbn(String value) { + this.isbn = value; + } + + /** + * Gets the value of the issn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssn() { + return issn; + } + + /** + * Sets the value of the issn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssn(String value) { + this.issn = value; + } + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeywords(String value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the lccn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLccn() { + return lccn; + } + + /** + * Sets the value of the lccn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLccn(String value) { + this.lccn = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the mrnumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMrnumber() { + return mrnumber; + } + + /** + * Sets the value of the mrnumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMrnumber(String value) { + this.mrnumber = value; + } + + /** + * Gets the value of the price property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrice() { + return price; + } + + /** + * Sets the value of the price property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrice(String value) { + this.price = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSize(String value) { + this.size = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Inproceedings.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Inproceedings.java new file mode 100644 index 00000000000..83ee2f1d784 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Inproceedings.java @@ -0,0 +1,909 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <group ref="{http://bibtexml.sf.net/}InProceedings"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "author", + "title", + "booktitle", + "year", + "editor", + "volume", + "number", + "series", + "pages", + "address", + "month", + "organization", + "publisher", + "note", + "key", + "annotate", + "crossref", + "_abstract", + "affiliation", + "contents", + "copyright", + "doi", + "isbn", + "issn", + "keywords", + "language", + "lccn", + "location", + "mrnumber", + "price", + "size", + "url", + "category" +}) +@XmlRootElement(name = "inproceedings") +public class Inproceedings { + + @XmlElement(required = true) + protected String author; + @XmlElement(required = true) + protected String title; + @XmlElement(required = true) + protected String booktitle; + @XmlElement(required = true) + protected XMLGregorianCalendar year; + protected String editor; + protected String volume; + protected BigInteger number; + protected String series; + protected String pages; + protected String address; + protected String month; + protected String organization; + protected String publisher; + protected String note; + protected String key; + protected String annotate; + protected String crossref; + @XmlElement(name = "abstract") + protected String _abstract; + protected String affiliation; + protected String contents; + protected String copyright; + protected String doi; + protected String isbn; + protected String issn; + protected String keywords; + protected String language; + protected String lccn; + protected String location; + protected String mrnumber; + protected String price; + protected String size; + protected String url; + protected String category; + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the booktitle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBooktitle() { + return booktitle; + } + + /** + * Sets the value of the booktitle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBooktitle(String value) { + this.booktitle = value; + } + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setYear(XMLGregorianCalendar value) { + this.year = value; + } + + /** + * Gets the value of the editor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEditor() { + return editor; + } + + /** + * Sets the value of the editor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEditor(String value) { + this.editor = value; + } + + /** + * Gets the value of the volume property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVolume() { + return volume; + } + + /** + * Sets the value of the volume property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVolume(String value) { + this.volume = value; + } + + /** + * Gets the value of the number property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getNumber() { + return number; + } + + /** + * Sets the value of the number property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setNumber(BigInteger value) { + this.number = value; + } + + /** + * Gets the value of the series property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeries() { + return series; + } + + /** + * Sets the value of the series property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeries(String value) { + this.series = value; + } + + /** + * Gets the value of the pages property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPages() { + return pages; + } + + /** + * Sets the value of the pages property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPages(String value) { + this.pages = value; + } + + /** + * Gets the value of the address property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAddress() { + return address; + } + + /** + * Sets the value of the address property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAddress(String value) { + this.address = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the organization property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOrganization() { + return organization; + } + + /** + * Sets the value of the organization property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOrganization(String value) { + this.organization = value; + } + + /** + * Gets the value of the publisher property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPublisher() { + return publisher; + } + + /** + * Sets the value of the publisher property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPublisher(String value) { + this.publisher = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the annotate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAnnotate() { + return annotate; + } + + /** + * Sets the value of the annotate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAnnotate(String value) { + this.annotate = value; + } + + /** + * Gets the value of the crossref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCrossref() { + return crossref; + } + + /** + * Sets the value of the crossref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCrossref(String value) { + this.crossref = value; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAbstract(String value) { + this._abstract = value; + } + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAffiliation(String value) { + this.affiliation = value; + } + + /** + * Gets the value of the contents property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContents() { + return contents; + } + + /** + * Sets the value of the contents property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContents(String value) { + this.contents = value; + } + + /** + * Gets the value of the copyright property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyright() { + return copyright; + } + + /** + * Sets the value of the copyright property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyright(String value) { + this.copyright = value; + } + + /** + * Gets the value of the doi property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoi() { + return doi; + } + + /** + * Sets the value of the doi property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoi(String value) { + this.doi = value; + } + + /** + * Gets the value of the isbn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIsbn() { + return isbn; + } + + /** + * Sets the value of the isbn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIsbn(String value) { + this.isbn = value; + } + + /** + * Gets the value of the issn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssn() { + return issn; + } + + /** + * Sets the value of the issn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssn(String value) { + this.issn = value; + } + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeywords(String value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the lccn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLccn() { + return lccn; + } + + /** + * Sets the value of the lccn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLccn(String value) { + this.lccn = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the mrnumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMrnumber() { + return mrnumber; + } + + /** + * Sets the value of the mrnumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMrnumber(String value) { + this.mrnumber = value; + } + + /** + * Gets the value of the price property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrice() { + return price; + } + + /** + * Sets the value of the price property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrice(String value) { + this.price = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSize(String value) { + this.size = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Manual.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Manual.java new file mode 100644 index 00000000000..03b8bccf79c --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Manual.java @@ -0,0 +1,757 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="author" type="{http://bibtexml.sf.net/}authorType" minOccurs="0"/>
+ *         <element name="title" type="{http://bibtexml.sf.net/}titleType"/>
+ *         <element name="organization" type="{http://bibtexml.sf.net/}organizationType" minOccurs="0"/>
+ *         <element name="address" type="{http://bibtexml.sf.net/}addressType" minOccurs="0"/>
+ *         <element name="edition" type="{http://bibtexml.sf.net/}editionType" minOccurs="0"/>
+ *         <element name="month" type="{http://bibtexml.sf.net/}monthType" minOccurs="0"/>
+ *         <element name="year" type="{http://bibtexml.sf.net/}yearType" minOccurs="0"/>
+ *         <element name="note" type="{http://bibtexml.sf.net/}noteType" minOccurs="0"/>
+ *         <group ref="{http://bibtexml.sf.net/}common"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "author", + "title", + "organization", + "address", + "edition", + "month", + "year", + "note", + "key", + "annotate", + "crossref", + "_abstract", + "affiliation", + "contents", + "copyright", + "doi", + "isbn", + "issn", + "keywords", + "language", + "lccn", + "location", + "mrnumber", + "price", + "size", + "url", + "category" +}) +@XmlRootElement(name = "manual") +public class Manual { + + protected String author; + @XmlElement(required = true) + protected String title; + protected String organization; + protected String address; + protected String edition; + protected String month; + protected XMLGregorianCalendar year; + protected String note; + protected String key; + protected String annotate; + protected String crossref; + @XmlElement(name = "abstract") + protected String _abstract; + protected String affiliation; + protected String contents; + protected String copyright; + protected String doi; + protected String isbn; + protected String issn; + protected String keywords; + protected String language; + protected String lccn; + protected String location; + protected String mrnumber; + protected String price; + protected String size; + protected String url; + protected String category; + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the organization property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOrganization() { + return organization; + } + + /** + * Sets the value of the organization property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOrganization(String value) { + this.organization = value; + } + + /** + * Gets the value of the address property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAddress() { + return address; + } + + /** + * Sets the value of the address property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAddress(String value) { + this.address = value; + } + + /** + * Gets the value of the edition property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEdition() { + return edition; + } + + /** + * Sets the value of the edition property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEdition(String value) { + this.edition = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setYear(XMLGregorianCalendar value) { + this.year = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the annotate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAnnotate() { + return annotate; + } + + /** + * Sets the value of the annotate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAnnotate(String value) { + this.annotate = value; + } + + /** + * Gets the value of the crossref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCrossref() { + return crossref; + } + + /** + * Sets the value of the crossref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCrossref(String value) { + this.crossref = value; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAbstract(String value) { + this._abstract = value; + } + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAffiliation(String value) { + this.affiliation = value; + } + + /** + * Gets the value of the contents property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContents() { + return contents; + } + + /** + * Sets the value of the contents property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContents(String value) { + this.contents = value; + } + + /** + * Gets the value of the copyright property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyright() { + return copyright; + } + + /** + * Sets the value of the copyright property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyright(String value) { + this.copyright = value; + } + + /** + * Gets the value of the doi property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoi() { + return doi; + } + + /** + * Sets the value of the doi property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoi(String value) { + this.doi = value; + } + + /** + * Gets the value of the isbn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIsbn() { + return isbn; + } + + /** + * Sets the value of the isbn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIsbn(String value) { + this.isbn = value; + } + + /** + * Gets the value of the issn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssn() { + return issn; + } + + /** + * Sets the value of the issn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssn(String value) { + this.issn = value; + } + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeywords(String value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the lccn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLccn() { + return lccn; + } + + /** + * Sets the value of the lccn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLccn(String value) { + this.lccn = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the mrnumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMrnumber() { + return mrnumber; + } + + /** + * Sets the value of the mrnumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMrnumber(String value) { + this.mrnumber = value; + } + + /** + * Gets the value of the price property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrice() { + return price; + } + + /** + * Sets the value of the price property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrice(String value) { + this.price = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSize(String value) { + this.size = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Mastersthesis.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Mastersthesis.java new file mode 100644 index 00000000000..6fa9b8a5135 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Mastersthesis.java @@ -0,0 +1,752 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <group ref="{http://bibtexml.sf.net/}PHDThesis"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "author", + "title", + "school", + "year", + "type", + "address", + "month", + "note", + "key", + "annotate", + "crossref", + "_abstract", + "affiliation", + "contents", + "copyright", + "doi", + "isbn", + "issn", + "keywords", + "language", + "lccn", + "location", + "mrnumber", + "price", + "size", + "url", + "category" +}) +@XmlRootElement(name = "mastersthesis") +public class Mastersthesis { + + @XmlElement(required = true) + protected String author; + @XmlElement(required = true) + protected String title; + @XmlElement(required = true) + protected String school; + @XmlElement(required = true) + protected XMLGregorianCalendar year; + protected String type; + protected String address; + protected String month; + protected String note; + protected String key; + protected String annotate; + protected String crossref; + @XmlElement(name = "abstract") + protected String _abstract; + protected String affiliation; + protected String contents; + protected String copyright; + protected String doi; + protected String isbn; + protected String issn; + protected String keywords; + protected String language; + protected String lccn; + protected String location; + protected String mrnumber; + protected String price; + protected String size; + protected String url; + protected String category; + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the school property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchool() { + return school; + } + + /** + * Sets the value of the school property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchool(String value) { + this.school = value; + } + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setYear(XMLGregorianCalendar value) { + this.year = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the address property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAddress() { + return address; + } + + /** + * Sets the value of the address property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAddress(String value) { + this.address = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the annotate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAnnotate() { + return annotate; + } + + /** + * Sets the value of the annotate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAnnotate(String value) { + this.annotate = value; + } + + /** + * Gets the value of the crossref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCrossref() { + return crossref; + } + + /** + * Sets the value of the crossref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCrossref(String value) { + this.crossref = value; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAbstract(String value) { + this._abstract = value; + } + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAffiliation(String value) { + this.affiliation = value; + } + + /** + * Gets the value of the contents property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContents() { + return contents; + } + + /** + * Sets the value of the contents property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContents(String value) { + this.contents = value; + } + + /** + * Gets the value of the copyright property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyright() { + return copyright; + } + + /** + * Sets the value of the copyright property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyright(String value) { + this.copyright = value; + } + + /** + * Gets the value of the doi property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoi() { + return doi; + } + + /** + * Sets the value of the doi property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoi(String value) { + this.doi = value; + } + + /** + * Gets the value of the isbn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIsbn() { + return isbn; + } + + /** + * Sets the value of the isbn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIsbn(String value) { + this.isbn = value; + } + + /** + * Gets the value of the issn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssn() { + return issn; + } + + /** + * Sets the value of the issn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssn(String value) { + this.issn = value; + } + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeywords(String value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the lccn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLccn() { + return lccn; + } + + /** + * Sets the value of the lccn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLccn(String value) { + this.lccn = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the mrnumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMrnumber() { + return mrnumber; + } + + /** + * Sets the value of the mrnumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMrnumber(String value) { + this.mrnumber = value; + } + + /** + * Gets the value of the price property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrice() { + return price; + } + + /** + * Sets the value of the price property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrice(String value) { + this.price = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSize(String value) { + this.size = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Misc.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Misc.java new file mode 100644 index 00000000000..6373708e72d --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Misc.java @@ -0,0 +1,702 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="author" type="{http://bibtexml.sf.net/}authorType" minOccurs="0"/>
+ *         <element name="title" type="{http://bibtexml.sf.net/}titleType" minOccurs="0"/>
+ *         <element name="howpublished" type="{http://bibtexml.sf.net/}howpublishedType" minOccurs="0"/>
+ *         <element name="month" type="{http://bibtexml.sf.net/}monthType" minOccurs="0"/>
+ *         <element name="year" type="{http://bibtexml.sf.net/}yearType" minOccurs="0"/>
+ *         <element name="note" type="{http://bibtexml.sf.net/}noteType" minOccurs="0"/>
+ *         <group ref="{http://bibtexml.sf.net/}common"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "author", + "title", + "howpublished", + "month", + "year", + "note", + "key", + "annotate", + "crossref", + "_abstract", + "affiliation", + "contents", + "copyright", + "doi", + "isbn", + "issn", + "keywords", + "language", + "lccn", + "location", + "mrnumber", + "price", + "size", + "url", + "category" +}) +@XmlRootElement(name = "misc") +public class Misc { + + protected String author; + protected String title; + protected String howpublished; + protected String month; + protected XMLGregorianCalendar year; + protected String note; + protected String key; + protected String annotate; + protected String crossref; + @XmlElement(name = "abstract") + protected String _abstract; + protected String affiliation; + protected String contents; + protected String copyright; + protected String doi; + protected String isbn; + protected String issn; + protected String keywords; + protected String language; + protected String lccn; + protected String location; + protected String mrnumber; + protected String price; + protected String size; + protected String url; + protected String category; + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the howpublished property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHowpublished() { + return howpublished; + } + + /** + * Sets the value of the howpublished property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHowpublished(String value) { + this.howpublished = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setYear(XMLGregorianCalendar value) { + this.year = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the annotate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAnnotate() { + return annotate; + } + + /** + * Sets the value of the annotate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAnnotate(String value) { + this.annotate = value; + } + + /** + * Gets the value of the crossref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCrossref() { + return crossref; + } + + /** + * Sets the value of the crossref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCrossref(String value) { + this.crossref = value; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAbstract(String value) { + this._abstract = value; + } + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAffiliation(String value) { + this.affiliation = value; + } + + /** + * Gets the value of the contents property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContents() { + return contents; + } + + /** + * Sets the value of the contents property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContents(String value) { + this.contents = value; + } + + /** + * Gets the value of the copyright property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyright() { + return copyright; + } + + /** + * Sets the value of the copyright property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyright(String value) { + this.copyright = value; + } + + /** + * Gets the value of the doi property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoi() { + return doi; + } + + /** + * Sets the value of the doi property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoi(String value) { + this.doi = value; + } + + /** + * Gets the value of the isbn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIsbn() { + return isbn; + } + + /** + * Sets the value of the isbn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIsbn(String value) { + this.isbn = value; + } + + /** + * Gets the value of the issn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssn() { + return issn; + } + + /** + * Sets the value of the issn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssn(String value) { + this.issn = value; + } + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeywords(String value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the lccn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLccn() { + return lccn; + } + + /** + * Sets the value of the lccn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLccn(String value) { + this.lccn = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the mrnumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMrnumber() { + return mrnumber; + } + + /** + * Sets the value of the mrnumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMrnumber(String value) { + this.mrnumber = value; + } + + /** + * Gets the value of the price property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrice() { + return price; + } + + /** + * Sets the value of the price property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrice(String value) { + this.price = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSize(String value) { + this.size = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/MonthTypeString.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/MonthTypeString.java new file mode 100644 index 00000000000..fcb62763e77 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/MonthTypeString.java @@ -0,0 +1,88 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for monthTypeString. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="monthTypeString">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Jan"/>
+ *     <enumeration value="Feb"/>
+ *     <enumeration value="Mar"/>
+ *     <enumeration value="Apr"/>
+ *     <enumeration value="May"/>
+ *     <enumeration value="Jun"/>
+ *     <enumeration value="Jul"/>
+ *     <enumeration value="Aug"/>
+ *     <enumeration value="Sep"/>
+ *     <enumeration value="Oct"/>
+ *     <enumeration value="Nov"/>
+ *     <enumeration value="Dec"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "monthTypeString") +@XmlEnum +public enum MonthTypeString { + + @XmlEnumValue("Jan") + JAN("Jan"), + @XmlEnumValue("Feb") + FEB("Feb"), + @XmlEnumValue("Mar") + MAR("Mar"), + @XmlEnumValue("Apr") + APR("Apr"), + @XmlEnumValue("May") + MAY("May"), + @XmlEnumValue("Jun") + JUN("Jun"), + @XmlEnumValue("Jul") + JUL("Jul"), + @XmlEnumValue("Aug") + AUG("Aug"), + @XmlEnumValue("Sep") + SEP("Sep"), + @XmlEnumValue("Oct") + OCT("Oct"), + @XmlEnumValue("Nov") + NOV("Nov"), + @XmlEnumValue("Dec") + DEC("Dec"); + private final String value; + + MonthTypeString(String v) { + value = v; + } + + public String value() { + return value; + } + + public static MonthTypeString fromValue(String v) { + for (MonthTypeString c: MonthTypeString.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/ObjectFactory.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/ObjectFactory.java new file mode 100644 index 00000000000..4f793205c90 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/ObjectFactory.java @@ -0,0 +1,512 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +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.XMLGregorianCalendar; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the org.jabref.logic.importer.fileformat.bibtexml 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 _InbookCrossref_QNAME = new QName("http://bibtexml.sf.net/", "crossref"); + private final static QName _InbookKey_QNAME = new QName("http://bibtexml.sf.net/", "key"); + private final static QName _InbookLccn_QNAME = new QName("http://bibtexml.sf.net/", "lccn"); + private final static QName _InbookNumber_QNAME = new QName("http://bibtexml.sf.net/", "number"); + private final static QName _InbookMrnumber_QNAME = new QName("http://bibtexml.sf.net/", "mrnumber"); + private final static QName _InbookPages_QNAME = new QName("http://bibtexml.sf.net/", "pages"); + private final static QName _InbookAffiliation_QNAME = new QName("http://bibtexml.sf.net/", "affiliation"); + private final static QName _InbookPrice_QNAME = new QName("http://bibtexml.sf.net/", "price"); + private final static QName _InbookEdition_QNAME = new QName("http://bibtexml.sf.net/", "edition"); + private final static QName _InbookAnnotate_QNAME = new QName("http://bibtexml.sf.net/", "annotate"); + private final static QName _InbookLanguage_QNAME = new QName("http://bibtexml.sf.net/", "language"); + private final static QName _InbookTitle_QNAME = new QName("http://bibtexml.sf.net/", "title"); + private final static QName _InbookType_QNAME = new QName("http://bibtexml.sf.net/", "type"); + private final static QName _InbookChapter_QNAME = new QName("http://bibtexml.sf.net/", "chapter"); + private final static QName _InbookNote_QNAME = new QName("http://bibtexml.sf.net/", "note"); + private final static QName _InbookCopyright_QNAME = new QName("http://bibtexml.sf.net/", "copyright"); + private final static QName _InbookKeywords_QNAME = new QName("http://bibtexml.sf.net/", "keywords"); + private final static QName _InbookYear_QNAME = new QName("http://bibtexml.sf.net/", "year"); + private final static QName _InbookIsbn_QNAME = new QName("http://bibtexml.sf.net/", "isbn"); + private final static QName _InbookPublisher_QNAME = new QName("http://bibtexml.sf.net/", "publisher"); + private final static QName _InbookLocation_QNAME = new QName("http://bibtexml.sf.net/", "location"); + private final static QName _InbookCategory_QNAME = new QName("http://bibtexml.sf.net/", "category"); + private final static QName _InbookDoi_QNAME = new QName("http://bibtexml.sf.net/", "doi"); + private final static QName _InbookVolume_QNAME = new QName("http://bibtexml.sf.net/", "volume"); + private final static QName _InbookMonth_QNAME = new QName("http://bibtexml.sf.net/", "month"); + private final static QName _InbookIssn_QNAME = new QName("http://bibtexml.sf.net/", "issn"); + private final static QName _InbookSize_QNAME = new QName("http://bibtexml.sf.net/", "size"); + private final static QName _InbookContents_QNAME = new QName("http://bibtexml.sf.net/", "contents"); + private final static QName _InbookSeries_QNAME = new QName("http://bibtexml.sf.net/", "series"); + private final static QName _InbookAbstract_QNAME = new QName("http://bibtexml.sf.net/", "abstract"); + private final static QName _InbookUrl_QNAME = new QName("http://bibtexml.sf.net/", "url"); + private final static QName _InbookEditor_QNAME = new QName("http://bibtexml.sf.net/", "editor"); + private final static QName _InbookAddress_QNAME = new QName("http://bibtexml.sf.net/", "address"); + private final static QName _InbookAuthor_QNAME = new QName("http://bibtexml.sf.net/", "author"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jabref.logic.importer.fileformat.bibtexml + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Conference } + * + */ + public Conference createConference() { + return new Conference(); + } + + /** + * Create an instance of {@link Techreport } + * + */ + public Techreport createTechreport() { + return new Techreport(); + } + + /** + * Create an instance of {@link Book } + * + */ + public Book createBook() { + return new Book(); + } + + /** + * Create an instance of {@link Inbook } + * + */ + public Inbook createInbook() { + return new Inbook(); + } + + /** + * Create an instance of {@link Booklet } + * + */ + public Booklet createBooklet() { + return new Booklet(); + } + + /** + * Create an instance of {@link Manual } + * + */ + public Manual createManual() { + return new Manual(); + } + + /** + * Create an instance of {@link Unpublished } + * + */ + public Unpublished createUnpublished() { + return new Unpublished(); + } + + /** + * Create an instance of {@link Inproceedings } + * + */ + public Inproceedings createInproceedings() { + return new Inproceedings(); + } + + /** + * Create an instance of {@link Phdthesis } + * + */ + public Phdthesis createPhdthesis() { + return new Phdthesis(); + } + + /** + * Create an instance of {@link Article } + * + */ + public Article createArticle() { + return new Article(); + } + + /** + * Create an instance of {@link Entry } + * + */ + public Entry createEntry() { + return new Entry(); + } + + /** + * Create an instance of {@link Mastersthesis } + * + */ + public Mastersthesis createMastersthesis() { + return new Mastersthesis(); + } + + /** + * Create an instance of {@link Incollection } + * + */ + public Incollection createIncollection() { + return new Incollection(); + } + + /** + * Create an instance of {@link Proceedings } + * + */ + public Proceedings createProceedings() { + return new Proceedings(); + } + + /** + * Create an instance of {@link Misc } + * + */ + public Misc createMisc() { + return new Misc(); + } + + /** + * Create an instance of {@link File } + * + */ + public File createFile() { + return new File(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "crossref", scope = Inbook.class) + public JAXBElement createInbookCrossref(String value) { + return new JAXBElement(_InbookCrossref_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "key", scope = Inbook.class) + public JAXBElement createInbookKey(String value) { + return new JAXBElement(_InbookKey_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "lccn", scope = Inbook.class) + public JAXBElement createInbookLccn(String value) { + return new JAXBElement(_InbookLccn_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "number", scope = Inbook.class) + public JAXBElement createInbookNumber(BigInteger value) { + return new JAXBElement(_InbookNumber_QNAME, BigInteger.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "mrnumber", scope = Inbook.class) + public JAXBElement createInbookMrnumber(String value) { + return new JAXBElement(_InbookMrnumber_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "pages", scope = Inbook.class) + public JAXBElement createInbookPages(String value) { + return new JAXBElement(_InbookPages_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "affiliation", scope = Inbook.class) + public JAXBElement createInbookAffiliation(String value) { + return new JAXBElement(_InbookAffiliation_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "price", scope = Inbook.class) + public JAXBElement createInbookPrice(String value) { + return new JAXBElement(_InbookPrice_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "edition", scope = Inbook.class) + public JAXBElement createInbookEdition(String value) { + return new JAXBElement(_InbookEdition_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "annotate", scope = Inbook.class) + public JAXBElement createInbookAnnotate(String value) { + return new JAXBElement(_InbookAnnotate_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "language", scope = Inbook.class) + public JAXBElement createInbookLanguage(String value) { + return new JAXBElement(_InbookLanguage_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "title", scope = Inbook.class) + public JAXBElement createInbookTitle(String value) { + return new JAXBElement(_InbookTitle_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "type", scope = Inbook.class) + public JAXBElement createInbookType(String value) { + return new JAXBElement(_InbookType_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "chapter", scope = Inbook.class) + public JAXBElement createInbookChapter(BigInteger value) { + return new JAXBElement(_InbookChapter_QNAME, BigInteger.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "note", scope = Inbook.class) + public JAXBElement createInbookNote(String value) { + return new JAXBElement(_InbookNote_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "copyright", scope = Inbook.class) + public JAXBElement createInbookCopyright(String value) { + return new JAXBElement(_InbookCopyright_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "keywords", scope = Inbook.class) + public JAXBElement createInbookKeywords(String value) { + return new JAXBElement(_InbookKeywords_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "year", scope = Inbook.class) + public JAXBElement createInbookYear(XMLGregorianCalendar value) { + return new JAXBElement(_InbookYear_QNAME, XMLGregorianCalendar.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "isbn", scope = Inbook.class) + public JAXBElement createInbookIsbn(String value) { + return new JAXBElement(_InbookIsbn_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "publisher", scope = Inbook.class) + public JAXBElement createInbookPublisher(String value) { + return new JAXBElement(_InbookPublisher_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "location", scope = Inbook.class) + public JAXBElement createInbookLocation(String value) { + return new JAXBElement(_InbookLocation_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "category", scope = Inbook.class) + public JAXBElement createInbookCategory(String value) { + return new JAXBElement(_InbookCategory_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "doi", scope = Inbook.class) + public JAXBElement createInbookDoi(String value) { + return new JAXBElement(_InbookDoi_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "volume", scope = Inbook.class) + public JAXBElement createInbookVolume(String value) { + return new JAXBElement(_InbookVolume_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "month", scope = Inbook.class) + public JAXBElement createInbookMonth(String value) { + return new JAXBElement(_InbookMonth_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "issn", scope = Inbook.class) + public JAXBElement createInbookIssn(String value) { + return new JAXBElement(_InbookIssn_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "size", scope = Inbook.class) + public JAXBElement createInbookSize(String value) { + return new JAXBElement(_InbookSize_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "contents", scope = Inbook.class) + public JAXBElement createInbookContents(String value) { + return new JAXBElement(_InbookContents_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "series", scope = Inbook.class) + public JAXBElement createInbookSeries(String value) { + return new JAXBElement(_InbookSeries_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "abstract", scope = Inbook.class) + public JAXBElement createInbookAbstract(String value) { + return new JAXBElement(_InbookAbstract_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "url", scope = Inbook.class) + public JAXBElement createInbookUrl(String value) { + return new JAXBElement(_InbookUrl_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "editor", scope = Inbook.class) + public JAXBElement createInbookEditor(String value) { + return new JAXBElement(_InbookEditor_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "address", scope = Inbook.class) + public JAXBElement createInbookAddress(String value) { + return new JAXBElement(_InbookAddress_QNAME, String.class, Inbook.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://bibtexml.sf.net/", name = "author", scope = Inbook.class) + public JAXBElement createInbookAuthor(String value) { + return new JAXBElement(_InbookAuthor_QNAME, String.class, Inbook.class, value); + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Phdthesis.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Phdthesis.java new file mode 100644 index 00000000000..0e899bca2e9 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Phdthesis.java @@ -0,0 +1,752 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <group ref="{http://bibtexml.sf.net/}PHDThesis"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "author", + "title", + "school", + "year", + "type", + "address", + "month", + "note", + "key", + "annotate", + "crossref", + "_abstract", + "affiliation", + "contents", + "copyright", + "doi", + "isbn", + "issn", + "keywords", + "language", + "lccn", + "location", + "mrnumber", + "price", + "size", + "url", + "category" +}) +@XmlRootElement(name = "phdthesis") +public class Phdthesis { + + @XmlElement(required = true) + protected String author; + @XmlElement(required = true) + protected String title; + @XmlElement(required = true) + protected String school; + @XmlElement(required = true) + protected XMLGregorianCalendar year; + protected String type; + protected String address; + protected String month; + protected String note; + protected String key; + protected String annotate; + protected String crossref; + @XmlElement(name = "abstract") + protected String _abstract; + protected String affiliation; + protected String contents; + protected String copyright; + protected String doi; + protected String isbn; + protected String issn; + protected String keywords; + protected String language; + protected String lccn; + protected String location; + protected String mrnumber; + protected String price; + protected String size; + protected String url; + protected String category; + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the school property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchool() { + return school; + } + + /** + * Sets the value of the school property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchool(String value) { + this.school = value; + } + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setYear(XMLGregorianCalendar value) { + this.year = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the address property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAddress() { + return address; + } + + /** + * Sets the value of the address property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAddress(String value) { + this.address = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the annotate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAnnotate() { + return annotate; + } + + /** + * Sets the value of the annotate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAnnotate(String value) { + this.annotate = value; + } + + /** + * Gets the value of the crossref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCrossref() { + return crossref; + } + + /** + * Sets the value of the crossref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCrossref(String value) { + this.crossref = value; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAbstract(String value) { + this._abstract = value; + } + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAffiliation(String value) { + this.affiliation = value; + } + + /** + * Gets the value of the contents property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContents() { + return contents; + } + + /** + * Sets the value of the contents property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContents(String value) { + this.contents = value; + } + + /** + * Gets the value of the copyright property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyright() { + return copyright; + } + + /** + * Sets the value of the copyright property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyright(String value) { + this.copyright = value; + } + + /** + * Gets the value of the doi property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoi() { + return doi; + } + + /** + * Sets the value of the doi property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoi(String value) { + this.doi = value; + } + + /** + * Gets the value of the isbn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIsbn() { + return isbn; + } + + /** + * Sets the value of the isbn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIsbn(String value) { + this.isbn = value; + } + + /** + * Gets the value of the issn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssn() { + return issn; + } + + /** + * Sets the value of the issn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssn(String value) { + this.issn = value; + } + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeywords(String value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the lccn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLccn() { + return lccn; + } + + /** + * Sets the value of the lccn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLccn(String value) { + this.lccn = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the mrnumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMrnumber() { + return mrnumber; + } + + /** + * Sets the value of the mrnumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMrnumber(String value) { + this.mrnumber = value; + } + + /** + * Gets the value of the price property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrice() { + return price; + } + + /** + * Sets the value of the price property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrice(String value) { + this.price = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSize(String value) { + this.size = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Proceedings.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Proceedings.java new file mode 100644 index 00000000000..48535470559 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Proceedings.java @@ -0,0 +1,842 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="editor" type="{http://bibtexml.sf.net/}editorType" minOccurs="0"/>
+ *         <element name="title" type="{http://bibtexml.sf.net/}titleType"/>
+ *         <element name="year" type="{http://bibtexml.sf.net/}yearType"/>
+ *         <choice minOccurs="0">
+ *           <element name="volume" type="{http://bibtexml.sf.net/}volumeType" minOccurs="0"/>
+ *           <element name="number" type="{http://bibtexml.sf.net/}numberType" minOccurs="0"/>
+ *         </choice>
+ *         <element name="series" type="{http://bibtexml.sf.net/}seriesType" minOccurs="0"/>
+ *         <element name="address" type="{http://bibtexml.sf.net/}addressType" minOccurs="0"/>
+ *         <element name="month" type="{http://bibtexml.sf.net/}monthType" minOccurs="0"/>
+ *         <element name="organization" type="{http://bibtexml.sf.net/}organizationType" minOccurs="0"/>
+ *         <element name="publisher" type="{http://bibtexml.sf.net/}publisherType" minOccurs="0"/>
+ *         <element name="note" type="{http://bibtexml.sf.net/}noteType" minOccurs="0"/>
+ *         <group ref="{http://bibtexml.sf.net/}common"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "editor", + "title", + "year", + "volume", + "number", + "series", + "address", + "month", + "organization", + "publisher", + "note", + "key", + "annotate", + "crossref", + "_abstract", + "affiliation", + "contents", + "copyright", + "doi", + "isbn", + "issn", + "keywords", + "language", + "lccn", + "location", + "mrnumber", + "price", + "size", + "url", + "category" +}) +@XmlRootElement(name = "proceedings") +public class Proceedings { + + protected String editor; + @XmlElement(required = true) + protected String title; + @XmlElement(required = true) + protected XMLGregorianCalendar year; + protected String volume; + protected BigInteger number; + protected String series; + protected String address; + protected String month; + protected String organization; + protected String publisher; + protected String note; + protected String key; + protected String annotate; + protected String crossref; + @XmlElement(name = "abstract") + protected String _abstract; + protected String affiliation; + protected String contents; + protected String copyright; + protected String doi; + protected String isbn; + protected String issn; + protected String keywords; + protected String language; + protected String lccn; + protected String location; + protected String mrnumber; + protected String price; + protected String size; + protected String url; + protected String category; + + /** + * Gets the value of the editor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEditor() { + return editor; + } + + /** + * Sets the value of the editor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEditor(String value) { + this.editor = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setYear(XMLGregorianCalendar value) { + this.year = value; + } + + /** + * Gets the value of the volume property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVolume() { + return volume; + } + + /** + * Sets the value of the volume property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVolume(String value) { + this.volume = value; + } + + /** + * Gets the value of the number property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getNumber() { + return number; + } + + /** + * Sets the value of the number property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setNumber(BigInteger value) { + this.number = value; + } + + /** + * Gets the value of the series property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeries() { + return series; + } + + /** + * Sets the value of the series property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeries(String value) { + this.series = value; + } + + /** + * Gets the value of the address property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAddress() { + return address; + } + + /** + * Sets the value of the address property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAddress(String value) { + this.address = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the organization property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOrganization() { + return organization; + } + + /** + * Sets the value of the organization property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOrganization(String value) { + this.organization = value; + } + + /** + * Gets the value of the publisher property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPublisher() { + return publisher; + } + + /** + * Sets the value of the publisher property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPublisher(String value) { + this.publisher = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the annotate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAnnotate() { + return annotate; + } + + /** + * Sets the value of the annotate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAnnotate(String value) { + this.annotate = value; + } + + /** + * Gets the value of the crossref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCrossref() { + return crossref; + } + + /** + * Sets the value of the crossref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCrossref(String value) { + this.crossref = value; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAbstract(String value) { + this._abstract = value; + } + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAffiliation(String value) { + this.affiliation = value; + } + + /** + * Gets the value of the contents property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContents() { + return contents; + } + + /** + * Sets the value of the contents property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContents(String value) { + this.contents = value; + } + + /** + * Gets the value of the copyright property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyright() { + return copyright; + } + + /** + * Sets the value of the copyright property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyright(String value) { + this.copyright = value; + } + + /** + * Gets the value of the doi property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoi() { + return doi; + } + + /** + * Sets the value of the doi property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoi(String value) { + this.doi = value; + } + + /** + * Gets the value of the isbn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIsbn() { + return isbn; + } + + /** + * Sets the value of the isbn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIsbn(String value) { + this.isbn = value; + } + + /** + * Gets the value of the issn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssn() { + return issn; + } + + /** + * Sets the value of the issn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssn(String value) { + this.issn = value; + } + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeywords(String value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the lccn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLccn() { + return lccn; + } + + /** + * Sets the value of the lccn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLccn(String value) { + this.lccn = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the mrnumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMrnumber() { + return mrnumber; + } + + /** + * Sets the value of the mrnumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMrnumber(String value) { + this.mrnumber = value; + } + + /** + * Gets the value of the price property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrice() { + return price; + } + + /** + * Sets the value of the price property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrice(String value) { + this.price = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSize(String value) { + this.size = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Techreport.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Techreport.java new file mode 100644 index 00000000000..aa29a6ac198 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Techreport.java @@ -0,0 +1,788 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="author" type="{http://bibtexml.sf.net/}authorType"/>
+ *         <element name="title" type="{http://bibtexml.sf.net/}titleType"/>
+ *         <element name="institution" type="{http://bibtexml.sf.net/}institutionType"/>
+ *         <element name="year" type="{http://bibtexml.sf.net/}yearType"/>
+ *         <element name="type" type="{http://bibtexml.sf.net/}typeType" minOccurs="0"/>
+ *         <element name="number" type="{http://bibtexml.sf.net/}numberType" minOccurs="0"/>
+ *         <element name="address" type="{http://bibtexml.sf.net/}addressType" minOccurs="0"/>
+ *         <element name="month" type="{http://bibtexml.sf.net/}monthType" minOccurs="0"/>
+ *         <element name="note" type="{http://bibtexml.sf.net/}noteType" minOccurs="0"/>
+ *         <group ref="{http://bibtexml.sf.net/}common"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "author", + "title", + "institution", + "year", + "type", + "number", + "address", + "month", + "note", + "key", + "annotate", + "crossref", + "_abstract", + "affiliation", + "contents", + "copyright", + "doi", + "isbn", + "issn", + "keywords", + "language", + "lccn", + "location", + "mrnumber", + "price", + "size", + "url", + "category" +}) +@XmlRootElement(name = "techreport") +public class Techreport { + + @XmlElement(required = true) + protected String author; + @XmlElement(required = true) + protected String title; + @XmlElement(required = true) + protected String institution; + @XmlElement(required = true) + protected XMLGregorianCalendar year; + protected String type; + protected BigInteger number; + protected String address; + protected String month; + protected String note; + protected String key; + protected String annotate; + protected String crossref; + @XmlElement(name = "abstract") + protected String _abstract; + protected String affiliation; + protected String contents; + protected String copyright; + protected String doi; + protected String isbn; + protected String issn; + protected String keywords; + protected String language; + protected String lccn; + protected String location; + protected String mrnumber; + protected String price; + protected String size; + protected String url; + protected String category; + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the institution property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInstitution() { + return institution; + } + + /** + * Sets the value of the institution property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInstitution(String value) { + this.institution = value; + } + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setYear(XMLGregorianCalendar value) { + this.year = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the number property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getNumber() { + return number; + } + + /** + * Sets the value of the number property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setNumber(BigInteger value) { + this.number = value; + } + + /** + * Gets the value of the address property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAddress() { + return address; + } + + /** + * Sets the value of the address property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAddress(String value) { + this.address = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the annotate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAnnotate() { + return annotate; + } + + /** + * Sets the value of the annotate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAnnotate(String value) { + this.annotate = value; + } + + /** + * Gets the value of the crossref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCrossref() { + return crossref; + } + + /** + * Sets the value of the crossref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCrossref(String value) { + this.crossref = value; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAbstract(String value) { + this._abstract = value; + } + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAffiliation(String value) { + this.affiliation = value; + } + + /** + * Gets the value of the contents property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContents() { + return contents; + } + + /** + * Sets the value of the contents property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContents(String value) { + this.contents = value; + } + + /** + * Gets the value of the copyright property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyright() { + return copyright; + } + + /** + * Sets the value of the copyright property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyright(String value) { + this.copyright = value; + } + + /** + * Gets the value of the doi property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoi() { + return doi; + } + + /** + * Sets the value of the doi property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoi(String value) { + this.doi = value; + } + + /** + * Gets the value of the isbn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIsbn() { + return isbn; + } + + /** + * Sets the value of the isbn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIsbn(String value) { + this.isbn = value; + } + + /** + * Gets the value of the issn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssn() { + return issn; + } + + /** + * Sets the value of the issn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssn(String value) { + this.issn = value; + } + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeywords(String value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the lccn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLccn() { + return lccn; + } + + /** + * Sets the value of the lccn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLccn(String value) { + this.lccn = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the mrnumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMrnumber() { + return mrnumber; + } + + /** + * Sets the value of the mrnumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMrnumber(String value) { + this.mrnumber = value; + } + + /** + * Gets the value of the price property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrice() { + return price; + } + + /** + * Sets the value of the price property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrice(String value) { + this.price = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSize(String value) { + this.size = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Unpublished.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Unpublished.java new file mode 100644 index 00000000000..ca679d11d42 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/Unpublished.java @@ -0,0 +1,678 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + + +package org.jabref.logic.importer.fileformat.bibtexml; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="author" type="{http://bibtexml.sf.net/}authorType"/>
+ *         <element name="title" type="{http://bibtexml.sf.net/}titleType"/>
+ *         <element name="note" type="{http://bibtexml.sf.net/}noteType"/>
+ *         <element name="month" type="{http://bibtexml.sf.net/}monthType" minOccurs="0"/>
+ *         <element name="year" type="{http://bibtexml.sf.net/}yearType" minOccurs="0"/>
+ *         <group ref="{http://bibtexml.sf.net/}common"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "author", + "title", + "note", + "month", + "year", + "key", + "annotate", + "crossref", + "_abstract", + "affiliation", + "contents", + "copyright", + "doi", + "isbn", + "issn", + "keywords", + "language", + "lccn", + "location", + "mrnumber", + "price", + "size", + "url", + "category" +}) +@XmlRootElement(name = "unpublished") +public class Unpublished { + + @XmlElement(required = true) + protected String author; + @XmlElement(required = true) + protected String title; + @XmlElement(required = true) + protected String note; + protected String month; + protected XMLGregorianCalendar year; + protected String key; + protected String annotate; + protected String crossref; + @XmlElement(name = "abstract") + protected String _abstract; + protected String affiliation; + protected String contents; + protected String copyright; + protected String doi; + protected String isbn; + protected String issn; + protected String keywords; + protected String language; + protected String lccn; + protected String location; + protected String mrnumber; + protected String price; + protected String size; + protected String url; + protected String category; + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setYear(XMLGregorianCalendar value) { + this.year = value; + } + + /** + * Gets the value of the key property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKey() { + return key; + } + + /** + * Sets the value of the key property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKey(String value) { + this.key = value; + } + + /** + * Gets the value of the annotate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAnnotate() { + return annotate; + } + + /** + * Sets the value of the annotate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAnnotate(String value) { + this.annotate = value; + } + + /** + * Gets the value of the crossref property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCrossref() { + return crossref; + } + + /** + * Sets the value of the crossref property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCrossref(String value) { + this.crossref = value; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAbstract(String value) { + this._abstract = value; + } + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAffiliation(String value) { + this.affiliation = value; + } + + /** + * Gets the value of the contents property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContents() { + return contents; + } + + /** + * Sets the value of the contents property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContents(String value) { + this.contents = value; + } + + /** + * Gets the value of the copyright property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyright() { + return copyright; + } + + /** + * Sets the value of the copyright property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyright(String value) { + this.copyright = value; + } + + /** + * Gets the value of the doi property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoi() { + return doi; + } + + /** + * Sets the value of the doi property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoi(String value) { + this.doi = value; + } + + /** + * Gets the value of the isbn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIsbn() { + return isbn; + } + + /** + * Sets the value of the isbn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIsbn(String value) { + this.isbn = value; + } + + /** + * Gets the value of the issn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssn() { + return issn; + } + + /** + * Sets the value of the issn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssn(String value) { + this.issn = value; + } + + /** + * Gets the value of the keywords property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeywords() { + return keywords; + } + + /** + * Sets the value of the keywords property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeywords(String value) { + this.keywords = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + + /** + * Gets the value of the lccn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLccn() { + return lccn; + } + + /** + * Sets the value of the lccn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLccn(String value) { + this.lccn = value; + } + + /** + * Gets the value of the location property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocation() { + return location; + } + + /** + * Sets the value of the location property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocation(String value) { + this.location = value; + } + + /** + * Gets the value of the mrnumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMrnumber() { + return mrnumber; + } + + /** + * Sets the value of the mrnumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMrnumber(String value) { + this.mrnumber = value; + } + + /** + * Gets the value of the price property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPrice() { + return price; + } + + /** + * Sets the value of the price property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPrice(String value) { + this.price = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSize(String value) { + this.size = value; + } + + /** + * Gets the value of the url property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUrl() { + return url; + } + + /** + * Sets the value of the url property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUrl(String value) { + this.url = value; + } + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/package-info.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/package-info.java new file mode 100644 index 00000000000..f7eab28768f --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/bibtexml/package-info.java @@ -0,0 +1,9 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:32 PM CET +// + +@javax.xml.bind.annotation.XmlSchema(namespace = "http://bibtexml.sf.net/", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package org.jabref.logic.importer.fileformat.bibtexml; diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Abstract.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Abstract.java new file mode 100644 index 00000000000..d66def1e8bd --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Abstract.java @@ -0,0 +1,106 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}AbstractText" maxOccurs="unbounded"/>
+ *         <element ref="{}CopyrightInformation" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "abstractText", + "copyrightInformation" +}) +@XmlRootElement(name = "Abstract") +public class Abstract { + + @XmlElement(name = "AbstractText", required = true) + protected List abstractText; + @XmlElement(name = "CopyrightInformation") + protected String copyrightInformation; + + /** + * Gets the value of the abstractText property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the abstractText property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAbstractText().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AbstractText } + * + * + */ + public List getAbstractText() { + if (abstractText == null) { + abstractText = new ArrayList(); + } + return this.abstractText; + } + + /** + * Gets the value of the copyrightInformation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyrightInformation() { + return copyrightInformation; + } + + /** + * Sets the value of the copyrightInformation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyrightInformation(String value) { + this.copyrightInformation = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/AbstractText.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/AbstractText.java new file mode 100644 index 00000000000..24c41bcf0cd --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/AbstractText.java @@ -0,0 +1,100 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <extension base="{}text">
+ *       <attGroup ref="{}attlist.AbstractText"/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "AbstractText") +public class AbstractText + extends Text +{ + + @XmlAttribute(name = "Label") + @XmlSchemaType(name = "anySimpleType") + protected String label; + @XmlAttribute(name = "NlmCategory") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String nlmCategory; + + /** + * Gets the value of the label property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabel() { + return label; + } + + /** + * Sets the value of the label property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabel(String value) { + this.label = value; + } + + /** + * Gets the value of the nlmCategory property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNlmCategory() { + return nlmCategory; + } + + /** + * Sets the value of the nlmCategory property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNlmCategory(String value) { + this.nlmCategory = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/AccessionNumberList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/AccessionNumberList.java new file mode 100644 index 00000000000..6ee1caadb3f --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/AccessionNumberList.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}AccessionNumber" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "accessionNumber" +}) +@XmlRootElement(name = "AccessionNumberList") +public class AccessionNumberList { + + @XmlElement(name = "AccessionNumber", required = true) + protected List accessionNumber; + + /** + * Gets the value of the accessionNumber property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the accessionNumber property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAccessionNumber().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getAccessionNumber() { + if (accessionNumber == null) { + accessionNumber = new ArrayList(); + } + return this.accessionNumber; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/AffiliationInfo.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/AffiliationInfo.java new file mode 100644 index 00000000000..23d960f1240 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/AffiliationInfo.java @@ -0,0 +1,106 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Affiliation"/>
+ *         <element ref="{}Identifier" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "affiliation", + "identifier" +}) +@XmlRootElement(name = "AffiliationInfo") +public class AffiliationInfo { + + @XmlElement(name = "Affiliation", required = true) + protected Text affiliation; + @XmlElement(name = "Identifier") + protected List identifier; + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link Text } + * + */ + public Text getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link Text } + * + */ + public void setAffiliation(Text value) { + this.affiliation = value; + } + + /** + * Gets the value of the identifier property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the identifier property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getIdentifier().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Identifier } + * + * + */ + public List getIdentifier() { + if (identifier == null) { + identifier = new ArrayList(); + } + return this.identifier; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArtIdTypeInt.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArtIdTypeInt.java new file mode 100644 index 00000000000..6e58e3e2c1b --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArtIdTypeInt.java @@ -0,0 +1,67 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for art.id.type.int. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="art.id.type.int">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ *     <enumeration value="pubmed"/>
+ *     <enumeration value="medline"/>
+ *     <enumeration value="pmcid"/>
+ *     <enumeration value="pmcbook"/>
+ *     <enumeration value="bookaccession"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "art.id.type.int") +@XmlEnum +public enum ArtIdTypeInt { + + @XmlEnumValue("pubmed") + PUBMED("pubmed"), + @XmlEnumValue("medline") + MEDLINE("medline"), + @XmlEnumValue("pmcid") + PMCID("pmcid"), + @XmlEnumValue("pmcbook") + PMCBOOK("pmcbook"), + @XmlEnumValue("bookaccession") + BOOKACCESSION("bookaccession"); + private final String value; + + ArtIdTypeInt(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ArtIdTypeInt fromValue(String v) { + for (ArtIdTypeInt c: ArtIdTypeInt.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Article.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Article.java new file mode 100644 index 00000000000..45baaff17ab --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Article.java @@ -0,0 +1,161 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Journal"/>
+ *         <element ref="{}ArticleTitle"/>
+ *         <choice>
+ *           <sequence>
+ *             <element ref="{}Pagination"/>
+ *             <element ref="{}ELocationID" maxOccurs="unbounded" minOccurs="0"/>
+ *           </sequence>
+ *           <element ref="{}ELocationID" maxOccurs="unbounded"/>
+ *         </choice>
+ *         <element ref="{}Abstract" minOccurs="0"/>
+ *         <element ref="{}AuthorList" minOccurs="0"/>
+ *         <element ref="{}Language" maxOccurs="unbounded"/>
+ *         <element ref="{}DataBankList" minOccurs="0"/>
+ *         <element ref="{}GrantList" minOccurs="0"/>
+ *         <element ref="{}PublicationTypeList"/>
+ *         <element ref="{}VernacularTitle" minOccurs="0"/>
+ *         <element ref="{}ArticleDate" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{}attlist.Article"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "Article") +public class Article { + + @XmlElementRefs({ + @XmlElementRef(name = "Journal", type = Journal.class, required = false), + @XmlElementRef(name = "VernacularTitle", type = JAXBElement.class, required = false), + @XmlElementRef(name = "ArticleTitle", type = ArticleTitle.class, required = false), + @XmlElementRef(name = "Abstract", type = Abstract.class, required = false), + @XmlElementRef(name = "DataBankList", type = DataBankList.class, required = false), + @XmlElementRef(name = "PublicationTypeList", type = PublicationTypeList.class, required = false), + @XmlElementRef(name = "ELocationID", type = ELocationID.class, required = false), + @XmlElementRef(name = "ArticleDate", type = ArticleDate.class, required = false), + @XmlElementRef(name = "GrantList", type = GrantList.class, required = false), + @XmlElementRef(name = "AuthorList", type = AuthorList.class, required = false), + @XmlElementRef(name = "Language", type = JAXBElement.class, required = false), + @XmlElementRef(name = "Pagination", type = Pagination.class, required = false) + }) + protected List content; + @XmlAttribute(name = "PubModel", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String pubModel; + + /** + * Gets the rest of the content model. + * + *

+ * You are getting this "catch-all" property because of the following reason: + * The field name "ELocationID" is used by two different parts of a schema. See: + * line 185 of file:/C:/git-repositories/jabref/jabref-multi-module-build/org.jabref.gui/src/main/resources/xjc/medline/nlmmedlinecitationset_160101.xsd + * line 183 of file:/C:/git-repositories/jabref/jabref-multi-module-build/org.jabref.gui/src/main/resources/xjc/medline/nlmmedlinecitationset_160101.xsd + *

+ * To get rid of this property, apply a property customization to one + * of both of the following declarations to change their names: + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getContent().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Journal } + * {@link JAXBElement }{@code <}{@link Text }{@code >} + * {@link ArticleTitle } + * {@link Abstract } + * {@link DataBankList } + * {@link PublicationTypeList } + * {@link ELocationID } + * {@link ArticleDate } + * {@link GrantList } + * {@link AuthorList } + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link Pagination } + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + /** + * Gets the value of the pubModel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPubModel() { + return pubModel; + } + + /** + * Sets the value of the pubModel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPubModel(String value) { + this.pubModel = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArticleDate.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArticleDate.java new file mode 100644 index 00000000000..58c1cbf020a --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArticleDate.java @@ -0,0 +1,159 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Year"/>
+ *         <element ref="{}Month"/>
+ *         <element ref="{}Day"/>
+ *       </sequence>
+ *       <attGroup ref="{}attlist.ArticleDate"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "year", + "month", + "day" +}) +@XmlRootElement(name = "ArticleDate") +public class ArticleDate { + + @XmlElement(name = "Year", required = true) + protected String year; + @XmlElement(name = "Month", required = true) + protected String month; + @XmlElement(name = "Day", required = true) + protected String day; + @XmlAttribute(name = "DateType") + protected String dateType; + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setYear(String value) { + this.year = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the day property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDay() { + return day; + } + + /** + * Sets the value of the day property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDay(String value) { + this.day = value; + } + + /** + * Gets the value of the dateType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDateType() { + if (dateType == null) { + return "Electronic"; + } else { + return dateType; + } + } + + /** + * Sets the value of the dateType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDateType(String value) { + this.dateType = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArticleId.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArticleId.java new file mode 100644 index 00000000000..4e631af6c01 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArticleId.java @@ -0,0 +1,100 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{}attlist.ArticleId"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "ArticleId") +public class ArticleId { + + @XmlValue + protected String content; + @XmlAttribute(name = "IdType") + protected String idType; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the idType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIdType() { + if (idType == null) { + return "pubmed"; + } else { + return idType; + } + } + + /** + * Sets the value of the idType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIdType(String value) { + this.idType = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArticleIdList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArticleIdList.java new file mode 100644 index 00000000000..319048fd860 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArticleIdList.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}ArticleId" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "articleId" +}) +@XmlRootElement(name = "ArticleIdList") +public class ArticleIdList { + + @XmlElement(name = "ArticleId", required = true) + protected List articleId; + + /** + * Gets the value of the articleId property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the articleId property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getArticleId().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ArticleId } + * + * + */ + public List getArticleId() { + if (articleId == null) { + articleId = new ArrayList(); + } + return this.articleId; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArticleTitle.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArticleTitle.java new file mode 100644 index 00000000000..7fcb5e17004 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ArticleTitle.java @@ -0,0 +1,125 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <extension base="{}text">
+ *       <attGroup ref="{}attlist.ArticleTitle"/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "ArticleTitle") +public class ArticleTitle + extends Text +{ + + @XmlAttribute(name = "book") + @XmlSchemaType(name = "anySimpleType") + protected String book; + @XmlAttribute(name = "part") + @XmlSchemaType(name = "anySimpleType") + protected String part; + @XmlAttribute(name = "sec") + @XmlSchemaType(name = "anySimpleType") + protected String sec; + + /** + * Gets the value of the book property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBook() { + return book; + } + + /** + * Sets the value of the book property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBook(String value) { + this.book = value; + } + + /** + * Gets the value of the part property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPart() { + return part; + } + + /** + * Sets the value of the part property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPart(String value) { + this.part = value; + } + + /** + * Gets the value of the sec property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSec() { + return sec; + } + + /** + * Sets the value of the sec property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSec(String value) { + this.sec = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Author.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Author.java new file mode 100644 index 00000000000..5506e7073ea --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Author.java @@ -0,0 +1,290 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <choice>
+ *           <sequence>
+ *             <element ref="{}LastName"/>
+ *             <element ref="{}ForeName" minOccurs="0"/>
+ *             <element ref="{}Initials" minOccurs="0"/>
+ *             <element ref="{}Suffix" minOccurs="0"/>
+ *           </sequence>
+ *           <element ref="{}CollectiveName"/>
+ *         </choice>
+ *         <element ref="{}Identifier" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}AffiliationInfo" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{}attlist.Author"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "lastName", + "foreName", + "initials", + "suffix", + "collectiveName", + "identifier", + "affiliationInfo" +}) +@XmlRootElement(name = "Author") +public class Author { + + @XmlElement(name = "LastName") + protected String lastName; + @XmlElement(name = "ForeName") + protected String foreName; + @XmlElement(name = "Initials") + protected String initials; + @XmlElement(name = "Suffix") + protected Text suffix; + @XmlElement(name = "CollectiveName") + protected Text collectiveName; + @XmlElement(name = "Identifier") + protected List identifier; + @XmlElement(name = "AffiliationInfo") + protected List affiliationInfo; + @XmlAttribute(name = "ValidYN") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String validYN; + + /** + * Gets the value of the lastName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastName() { + return lastName; + } + + /** + * Sets the value of the lastName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastName(String value) { + this.lastName = value; + } + + /** + * Gets the value of the foreName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getForeName() { + return foreName; + } + + /** + * Sets the value of the foreName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setForeName(String value) { + this.foreName = value; + } + + /** + * Gets the value of the initials property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInitials() { + return initials; + } + + /** + * Sets the value of the initials property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInitials(String value) { + this.initials = value; + } + + /** + * Gets the value of the suffix property. + * + * @return + * possible object is + * {@link Text } + * + */ + public Text getSuffix() { + return suffix; + } + + /** + * Sets the value of the suffix property. + * + * @param value + * allowed object is + * {@link Text } + * + */ + public void setSuffix(Text value) { + this.suffix = value; + } + + /** + * Gets the value of the collectiveName property. + * + * @return + * possible object is + * {@link Text } + * + */ + public Text getCollectiveName() { + return collectiveName; + } + + /** + * Sets the value of the collectiveName property. + * + * @param value + * allowed object is + * {@link Text } + * + */ + public void setCollectiveName(Text value) { + this.collectiveName = value; + } + + /** + * Gets the value of the identifier property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the identifier property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getIdentifier().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Identifier } + * + * + */ + public List getIdentifier() { + if (identifier == null) { + identifier = new ArrayList(); + } + return this.identifier; + } + + /** + * Gets the value of the affiliationInfo property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the affiliationInfo property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAffiliationInfo().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AffiliationInfo } + * + * + */ + public List getAffiliationInfo() { + if (affiliationInfo == null) { + affiliationInfo = new ArrayList(); + } + return this.affiliationInfo; + } + + /** + * Gets the value of the validYN property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValidYN() { + if (validYN == null) { + return "Y"; + } else { + return validYN; + } + } + + /** + * Sets the value of the validYN property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValidYN(String value) { + this.validYN = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/AuthorList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/AuthorList.java new file mode 100644 index 00000000000..e0f5d0120b6 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/AuthorList.java @@ -0,0 +1,144 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Author" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attGroup ref="{}attlist.AuthorList"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "author" +}) +@XmlRootElement(name = "AuthorList") +public class AuthorList { + + @XmlElement(name = "Author", required = true) + protected List author; + @XmlAttribute(name = "CompleteYN") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String completeYN; + @XmlAttribute(name = "Type") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String type; + + /** + * Gets the value of the author property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the author property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAuthor().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Author } + * + * + */ + public List getAuthor() { + if (author == null) { + author = new ArrayList(); + } + return this.author; + } + + /** + * Gets the value of the completeYN property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCompleteYN() { + if (completeYN == null) { + return "Y"; + } else { + return completeYN; + } + } + + /** + * Sets the value of the completeYN property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCompleteYN(String value) { + this.completeYN = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "authors"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/BeginningDate.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/BeginningDate.java new file mode 100644 index 00000000000..aa438a25742 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/BeginningDate.java @@ -0,0 +1,159 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Year"/>
+ *         <choice minOccurs="0">
+ *           <sequence>
+ *             <element ref="{}Month"/>
+ *             <element ref="{}Day" minOccurs="0"/>
+ *           </sequence>
+ *           <element ref="{}Season"/>
+ *         </choice>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "year", + "month", + "day", + "season" +}) +@XmlRootElement(name = "BeginningDate") +public class BeginningDate { + + @XmlElement(name = "Year", required = true) + protected String year; + @XmlElement(name = "Month") + protected String month; + @XmlElement(name = "Day") + protected String day; + @XmlElement(name = "Season") + protected String season; + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setYear(String value) { + this.year = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the day property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDay() { + return day; + } + + /** + * Sets the value of the day property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDay(String value) { + this.day = value; + } + + /** + * Gets the value of the season property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeason() { + return season; + } + + /** + * Sets the value of the season property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeason(String value) { + this.season = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Book.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Book.java new file mode 100644 index 00000000000..97fb158e450 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Book.java @@ -0,0 +1,452 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Publisher"/>
+ *         <element ref="{}BookTitle"/>
+ *         <element ref="{}PubDate"/>
+ *         <element ref="{}BeginningDate" minOccurs="0"/>
+ *         <element ref="{}EndingDate" minOccurs="0"/>
+ *         <element ref="{}AuthorList" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}Volume" minOccurs="0"/>
+ *         <element ref="{}VolumeTitle" minOccurs="0"/>
+ *         <element ref="{}Edition" minOccurs="0"/>
+ *         <element ref="{}CollectionTitle" minOccurs="0"/>
+ *         <element ref="{}Isbn" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}ELocationID" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}Medium" minOccurs="0"/>
+ *         <element ref="{}ReportNumber" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "publisher", + "bookTitle", + "pubDate", + "beginningDate", + "endingDate", + "authorList", + "volume", + "volumeTitle", + "edition", + "collectionTitle", + "isbn", + "eLocationID", + "medium", + "reportNumber" +}) +@XmlRootElement(name = "Book") +public class Book { + + @XmlElement(name = "Publisher", required = true) + protected Publisher publisher; + @XmlElement(name = "BookTitle", required = true) + protected BookTitle bookTitle; + @XmlElement(name = "PubDate", required = true) + protected PubDate pubDate; + @XmlElement(name = "BeginningDate") + protected BeginningDate beginningDate; + @XmlElement(name = "EndingDate") + protected EndingDate endingDate; + @XmlElement(name = "AuthorList") + protected List authorList; + @XmlElement(name = "Volume") + protected String volume; + @XmlElement(name = "VolumeTitle") + protected Text volumeTitle; + @XmlElement(name = "Edition") + protected String edition; + @XmlElement(name = "CollectionTitle") + protected CollectionTitle collectionTitle; + @XmlElement(name = "Isbn") + protected List isbn; + @XmlElement(name = "ELocationID") + protected List eLocationID; + @XmlElement(name = "Medium") + protected String medium; + @XmlElement(name = "ReportNumber") + protected String reportNumber; + + /** + * Gets the value of the publisher property. + * + * @return + * possible object is + * {@link Publisher } + * + */ + public Publisher getPublisher() { + return publisher; + } + + /** + * Sets the value of the publisher property. + * + * @param value + * allowed object is + * {@link Publisher } + * + */ + public void setPublisher(Publisher value) { + this.publisher = value; + } + + /** + * Gets the value of the bookTitle property. + * + * @return + * possible object is + * {@link BookTitle } + * + */ + public BookTitle getBookTitle() { + return bookTitle; + } + + /** + * Sets the value of the bookTitle property. + * + * @param value + * allowed object is + * {@link BookTitle } + * + */ + public void setBookTitle(BookTitle value) { + this.bookTitle = value; + } + + /** + * Gets the value of the pubDate property. + * + * @return + * possible object is + * {@link PubDate } + * + */ + public PubDate getPubDate() { + return pubDate; + } + + /** + * Sets the value of the pubDate property. + * + * @param value + * allowed object is + * {@link PubDate } + * + */ + public void setPubDate(PubDate value) { + this.pubDate = value; + } + + /** + * Gets the value of the beginningDate property. + * + * @return + * possible object is + * {@link BeginningDate } + * + */ + public BeginningDate getBeginningDate() { + return beginningDate; + } + + /** + * Sets the value of the beginningDate property. + * + * @param value + * allowed object is + * {@link BeginningDate } + * + */ + public void setBeginningDate(BeginningDate value) { + this.beginningDate = value; + } + + /** + * Gets the value of the endingDate property. + * + * @return + * possible object is + * {@link EndingDate } + * + */ + public EndingDate getEndingDate() { + return endingDate; + } + + /** + * Sets the value of the endingDate property. + * + * @param value + * allowed object is + * {@link EndingDate } + * + */ + public void setEndingDate(EndingDate value) { + this.endingDate = value; + } + + /** + * Gets the value of the authorList property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the authorList property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAuthorList().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AuthorList } + * + * + */ + public List getAuthorList() { + if (authorList == null) { + authorList = new ArrayList(); + } + return this.authorList; + } + + /** + * Gets the value of the volume property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVolume() { + return volume; + } + + /** + * Sets the value of the volume property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVolume(String value) { + this.volume = value; + } + + /** + * Gets the value of the volumeTitle property. + * + * @return + * possible object is + * {@link Text } + * + */ + public Text getVolumeTitle() { + return volumeTitle; + } + + /** + * Sets the value of the volumeTitle property. + * + * @param value + * allowed object is + * {@link Text } + * + */ + public void setVolumeTitle(Text value) { + this.volumeTitle = value; + } + + /** + * Gets the value of the edition property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEdition() { + return edition; + } + + /** + * Sets the value of the edition property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEdition(String value) { + this.edition = value; + } + + /** + * Gets the value of the collectionTitle property. + * + * @return + * possible object is + * {@link CollectionTitle } + * + */ + public CollectionTitle getCollectionTitle() { + return collectionTitle; + } + + /** + * Sets the value of the collectionTitle property. + * + * @param value + * allowed object is + * {@link CollectionTitle } + * + */ + public void setCollectionTitle(CollectionTitle value) { + this.collectionTitle = value; + } + + /** + * Gets the value of the isbn property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the isbn property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getIsbn().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getIsbn() { + if (isbn == null) { + isbn = new ArrayList(); + } + return this.isbn; + } + + /** + * Gets the value of the eLocationID property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the eLocationID property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getELocationID().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ELocationID } + * + * + */ + public List getELocationID() { + if (eLocationID == null) { + eLocationID = new ArrayList(); + } + return this.eLocationID; + } + + /** + * Gets the value of the medium property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMedium() { + return medium; + } + + /** + * Sets the value of the medium property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMedium(String value) { + this.medium = value; + } + + /** + * Gets the value of the reportNumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getReportNumber() { + return reportNumber; + } + + /** + * Sets the value of the reportNumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setReportNumber(String value) { + this.reportNumber = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/BookDocument.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/BookDocument.java new file mode 100644 index 00000000000..c918b459ff4 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/BookDocument.java @@ -0,0 +1,579 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}PMID"/>
+ *         <element ref="{}ArticleIdList"/>
+ *         <element ref="{}Book"/>
+ *         <element ref="{}LocationLabel" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}ArticleTitle" minOccurs="0"/>
+ *         <element ref="{}VernacularTitle" minOccurs="0"/>
+ *         <element ref="{}Pagination" minOccurs="0"/>
+ *         <element ref="{}Language" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}AuthorList" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}PublicationType" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}Abstract" minOccurs="0"/>
+ *         <element ref="{}Sections" minOccurs="0"/>
+ *         <element ref="{}KeywordList" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}ContributionDate" minOccurs="0"/>
+ *         <element ref="{}DateRevised" minOccurs="0"/>
+ *         <element ref="{}CitationString" minOccurs="0"/>
+ *         <element ref="{}GrantList" minOccurs="0"/>
+ *         <element ref="{}ItemList" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "pmid", + "articleIdList", + "book", + "locationLabel", + "articleTitle", + "vernacularTitle", + "pagination", + "language", + "authorList", + "publicationType", + "_abstract", + "sections", + "keywordList", + "contributionDate", + "dateRevised", + "citationString", + "grantList", + "itemList" +}) +@XmlRootElement(name = "BookDocument") +public class BookDocument { + + @XmlElement(name = "PMID", required = true) + protected PMID pmid; + @XmlElement(name = "ArticleIdList", required = true) + protected ArticleIdList articleIdList; + @XmlElement(name = "Book", required = true) + protected Book book; + @XmlElement(name = "LocationLabel") + protected List locationLabel; + @XmlElement(name = "ArticleTitle") + protected ArticleTitle articleTitle; + @XmlElement(name = "VernacularTitle") + protected Text vernacularTitle; + @XmlElement(name = "Pagination") + protected Pagination pagination; + @XmlElement(name = "Language") + protected List language; + @XmlElement(name = "AuthorList") + protected List authorList; + @XmlElement(name = "PublicationType") + protected List publicationType; + @XmlElement(name = "Abstract") + protected Abstract _abstract; + @XmlElement(name = "Sections") + protected Sections sections; + @XmlElement(name = "KeywordList") + protected List keywordList; + @XmlElement(name = "ContributionDate") + protected ContributionDate contributionDate; + @XmlElement(name = "DateRevised") + protected DateRevised dateRevised; + @XmlElement(name = "CitationString") + protected Text citationString; + @XmlElement(name = "GrantList") + protected GrantList grantList; + @XmlElement(name = "ItemList") + protected List itemList; + + /** + * Gets the value of the pmid property. + * + * @return + * possible object is + * {@link PMID } + * + */ + public PMID getPMID() { + return pmid; + } + + /** + * Sets the value of the pmid property. + * + * @param value + * allowed object is + * {@link PMID } + * + */ + public void setPMID(PMID value) { + this.pmid = value; + } + + /** + * Gets the value of the articleIdList property. + * + * @return + * possible object is + * {@link ArticleIdList } + * + */ + public ArticleIdList getArticleIdList() { + return articleIdList; + } + + /** + * Sets the value of the articleIdList property. + * + * @param value + * allowed object is + * {@link ArticleIdList } + * + */ + public void setArticleIdList(ArticleIdList value) { + this.articleIdList = value; + } + + /** + * Gets the value of the book property. + * + * @return + * possible object is + * {@link Book } + * + */ + public Book getBook() { + return book; + } + + /** + * Sets the value of the book property. + * + * @param value + * allowed object is + * {@link Book } + * + */ + public void setBook(Book value) { + this.book = value; + } + + /** + * Gets the value of the locationLabel property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the locationLabel property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getLocationLabel().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link LocationLabel } + * + * + */ + public List getLocationLabel() { + if (locationLabel == null) { + locationLabel = new ArrayList(); + } + return this.locationLabel; + } + + /** + * Gets the value of the articleTitle property. + * + * @return + * possible object is + * {@link ArticleTitle } + * + */ + public ArticleTitle getArticleTitle() { + return articleTitle; + } + + /** + * Sets the value of the articleTitle property. + * + * @param value + * allowed object is + * {@link ArticleTitle } + * + */ + public void setArticleTitle(ArticleTitle value) { + this.articleTitle = value; + } + + /** + * Gets the value of the vernacularTitle property. + * + * @return + * possible object is + * {@link Text } + * + */ + public Text getVernacularTitle() { + return vernacularTitle; + } + + /** + * Sets the value of the vernacularTitle property. + * + * @param value + * allowed object is + * {@link Text } + * + */ + public void setVernacularTitle(Text value) { + this.vernacularTitle = value; + } + + /** + * Gets the value of the pagination property. + * + * @return + * possible object is + * {@link Pagination } + * + */ + public Pagination getPagination() { + return pagination; + } + + /** + * Sets the value of the pagination property. + * + * @param value + * allowed object is + * {@link Pagination } + * + */ + public void setPagination(Pagination value) { + this.pagination = value; + } + + /** + * Gets the value of the language property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the language property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getLanguage().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getLanguage() { + if (language == null) { + language = new ArrayList(); + } + return this.language; + } + + /** + * Gets the value of the authorList property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the authorList property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAuthorList().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AuthorList } + * + * + */ + public List getAuthorList() { + if (authorList == null) { + authorList = new ArrayList(); + } + return this.authorList; + } + + /** + * Gets the value of the publicationType property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the publicationType property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPublicationType().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PublicationType } + * + * + */ + public List getPublicationType() { + if (publicationType == null) { + publicationType = new ArrayList(); + } + return this.publicationType; + } + + /** + * Gets the value of the abstract property. + * + * @return + * possible object is + * {@link Abstract } + * + */ + public Abstract getAbstract() { + return _abstract; + } + + /** + * Sets the value of the abstract property. + * + * @param value + * allowed object is + * {@link Abstract } + * + */ + public void setAbstract(Abstract value) { + this._abstract = value; + } + + /** + * Gets the value of the sections property. + * + * @return + * possible object is + * {@link Sections } + * + */ + public Sections getSections() { + return sections; + } + + /** + * Sets the value of the sections property. + * + * @param value + * allowed object is + * {@link Sections } + * + */ + public void setSections(Sections value) { + this.sections = value; + } + + /** + * Gets the value of the keywordList property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the keywordList property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getKeywordList().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordList } + * + * + */ + public List getKeywordList() { + if (keywordList == null) { + keywordList = new ArrayList(); + } + return this.keywordList; + } + + /** + * Gets the value of the contributionDate property. + * + * @return + * possible object is + * {@link ContributionDate } + * + */ + public ContributionDate getContributionDate() { + return contributionDate; + } + + /** + * Sets the value of the contributionDate property. + * + * @param value + * allowed object is + * {@link ContributionDate } + * + */ + public void setContributionDate(ContributionDate value) { + this.contributionDate = value; + } + + /** + * Gets the value of the dateRevised property. + * + * @return + * possible object is + * {@link DateRevised } + * + */ + public DateRevised getDateRevised() { + return dateRevised; + } + + /** + * Sets the value of the dateRevised property. + * + * @param value + * allowed object is + * {@link DateRevised } + * + */ + public void setDateRevised(DateRevised value) { + this.dateRevised = value; + } + + /** + * Gets the value of the citationString property. + * + * @return + * possible object is + * {@link Text } + * + */ + public Text getCitationString() { + return citationString; + } + + /** + * Sets the value of the citationString property. + * + * @param value + * allowed object is + * {@link Text } + * + */ + public void setCitationString(Text value) { + this.citationString = value; + } + + /** + * Gets the value of the grantList property. + * + * @return + * possible object is + * {@link GrantList } + * + */ + public GrantList getGrantList() { + return grantList; + } + + /** + * Sets the value of the grantList property. + * + * @param value + * allowed object is + * {@link GrantList } + * + */ + public void setGrantList(GrantList value) { + this.grantList = value; + } + + /** + * Gets the value of the itemList property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the itemList property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getItemList().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ItemList } + * + * + */ + public List getItemList() { + if (itemList == null) { + itemList = new ArrayList(); + } + return this.itemList; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/BookDocumentSet.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/BookDocumentSet.java new file mode 100644 index 00000000000..f6686c2b651 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/BookDocumentSet.java @@ -0,0 +1,106 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}BookDocument" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}DeleteDocument" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "bookDocument", + "deleteDocument" +}) +@XmlRootElement(name = "BookDocumentSet") +public class BookDocumentSet { + + @XmlElement(name = "BookDocument") + protected List bookDocument; + @XmlElement(name = "DeleteDocument") + protected DeleteDocument deleteDocument; + + /** + * Gets the value of the bookDocument property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the bookDocument property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getBookDocument().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link BookDocument } + * + * + */ + public List getBookDocument() { + if (bookDocument == null) { + bookDocument = new ArrayList(); + } + return this.bookDocument; + } + + /** + * Gets the value of the deleteDocument property. + * + * @return + * possible object is + * {@link DeleteDocument } + * + */ + public DeleteDocument getDeleteDocument() { + return deleteDocument; + } + + /** + * Sets the value of the deleteDocument property. + * + * @param value + * allowed object is + * {@link DeleteDocument } + * + */ + public void setDeleteDocument(DeleteDocument value) { + this.deleteDocument = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/BookTitle.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/BookTitle.java new file mode 100644 index 00000000000..2c3964a1b7c --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/BookTitle.java @@ -0,0 +1,125 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <extension base="{}text">
+ *       <attGroup ref="{}attlist.BookTitle"/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "BookTitle") +public class BookTitle + extends Text +{ + + @XmlAttribute(name = "book") + @XmlSchemaType(name = "anySimpleType") + protected String book; + @XmlAttribute(name = "part") + @XmlSchemaType(name = "anySimpleType") + protected String part; + @XmlAttribute(name = "sec") + @XmlSchemaType(name = "anySimpleType") + protected String sec; + + /** + * Gets the value of the book property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBook() { + return book; + } + + /** + * Sets the value of the book property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBook(String value) { + this.book = value; + } + + /** + * Gets the value of the part property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPart() { + return part; + } + + /** + * Sets the value of the part property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPart(String value) { + this.part = value; + } + + /** + * Gets the value of the sec property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSec() { + return sec; + } + + /** + * Sets the value of the sec property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSec(String value) { + this.sec = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Chemical.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Chemical.java new file mode 100644 index 00000000000..3484c09c756 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Chemical.java @@ -0,0 +1,99 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}RegistryNumber"/>
+ *         <element ref="{}NameOfSubstance"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "registryNumber", + "nameOfSubstance" +}) +@XmlRootElement(name = "Chemical") +public class Chemical { + + @XmlElement(name = "RegistryNumber", required = true) + protected String registryNumber; + @XmlElement(name = "NameOfSubstance", required = true) + protected NameOfSubstance nameOfSubstance; + + /** + * Gets the value of the registryNumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRegistryNumber() { + return registryNumber; + } + + /** + * Sets the value of the registryNumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRegistryNumber(String value) { + this.registryNumber = value; + } + + /** + * Gets the value of the nameOfSubstance property. + * + * @return + * possible object is + * {@link NameOfSubstance } + * + */ + public NameOfSubstance getNameOfSubstance() { + return nameOfSubstance; + } + + /** + * Sets the value of the nameOfSubstance property. + * + * @param value + * allowed object is + * {@link NameOfSubstance } + * + */ + public void setNameOfSubstance(NameOfSubstance value) { + this.nameOfSubstance = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ChemicalList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ChemicalList.java new file mode 100644 index 00000000000..f4052954f44 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ChemicalList.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Chemical" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "chemical" +}) +@XmlRootElement(name = "ChemicalList") +public class ChemicalList { + + @XmlElement(name = "Chemical", required = true) + protected List chemical; + + /** + * Gets the value of the chemical property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the chemical property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getChemical().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Chemical } + * + * + */ + public List getChemical() { + if (chemical == null) { + chemical = new ArrayList(); + } + return this.chemical; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/CollectionTitle.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/CollectionTitle.java new file mode 100644 index 00000000000..2a358dd379f --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/CollectionTitle.java @@ -0,0 +1,125 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <extension base="{}text">
+ *       <attGroup ref="{}attlist.CollectionTitle"/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "CollectionTitle") +public class CollectionTitle + extends Text +{ + + @XmlAttribute(name = "book") + @XmlSchemaType(name = "anySimpleType") + protected String book; + @XmlAttribute(name = "part") + @XmlSchemaType(name = "anySimpleType") + protected String part; + @XmlAttribute(name = "sec") + @XmlSchemaType(name = "anySimpleType") + protected String sec; + + /** + * Gets the value of the book property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBook() { + return book; + } + + /** + * Sets the value of the book property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBook(String value) { + this.book = value; + } + + /** + * Gets the value of the part property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPart() { + return part; + } + + /** + * Sets the value of the part property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPart(String value) { + this.part = value; + } + + /** + * Gets the value of the sec property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSec() { + return sec; + } + + /** + * Sets the value of the sec property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSec(String value) { + this.sec = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/CommentsCorrections.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/CommentsCorrections.java new file mode 100644 index 00000000000..c541faaf471 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/CommentsCorrections.java @@ -0,0 +1,158 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}RefSource"/>
+ *         <element ref="{}PMID" minOccurs="0"/>
+ *         <element ref="{}Note" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{}attlist.CommentsCorrections"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "refSource", + "pmid", + "note" +}) +@XmlRootElement(name = "CommentsCorrections") +public class CommentsCorrections { + + @XmlElement(name = "RefSource", required = true) + protected String refSource; + @XmlElement(name = "PMID") + protected PMID pmid; + @XmlElement(name = "Note") + protected String note; + @XmlAttribute(name = "RefType", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String refType; + + /** + * Gets the value of the refSource property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRefSource() { + return refSource; + } + + /** + * Sets the value of the refSource property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRefSource(String value) { + this.refSource = value; + } + + /** + * Gets the value of the pmid property. + * + * @return + * possible object is + * {@link PMID } + * + */ + public PMID getPMID() { + return pmid; + } + + /** + * Sets the value of the pmid property. + * + * @param value + * allowed object is + * {@link PMID } + * + */ + public void setPMID(PMID value) { + this.pmid = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the refType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRefType() { + return refType; + } + + /** + * Sets the value of the refType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRefType(String value) { + this.refType = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/CommentsCorrectionsList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/CommentsCorrectionsList.java new file mode 100644 index 00000000000..f811a4aaed8 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/CommentsCorrectionsList.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}CommentsCorrections" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "commentsCorrections" +}) +@XmlRootElement(name = "CommentsCorrectionsList") +public class CommentsCorrectionsList { + + @XmlElement(name = "CommentsCorrections", required = true) + protected List commentsCorrections; + + /** + * Gets the value of the commentsCorrections property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the commentsCorrections property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCommentsCorrections().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CommentsCorrections } + * + * + */ + public List getCommentsCorrections() { + if (commentsCorrections == null) { + commentsCorrections = new ArrayList(); + } + return this.commentsCorrections; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ContributionDate.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ContributionDate.java new file mode 100644 index 00000000000..ce127c56d01 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ContributionDate.java @@ -0,0 +1,159 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Year"/>
+ *         <choice minOccurs="0">
+ *           <sequence>
+ *             <element ref="{}Month"/>
+ *             <element ref="{}Day" minOccurs="0"/>
+ *           </sequence>
+ *           <element ref="{}Season"/>
+ *         </choice>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "year", + "month", + "day", + "season" +}) +@XmlRootElement(name = "ContributionDate") +public class ContributionDate { + + @XmlElement(name = "Year", required = true) + protected String year; + @XmlElement(name = "Month") + protected String month; + @XmlElement(name = "Day") + protected String day; + @XmlElement(name = "Season") + protected String season; + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setYear(String value) { + this.year = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the day property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDay() { + return day; + } + + /** + * Sets the value of the day property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDay(String value) { + this.day = value; + } + + /** + * Gets the value of the season property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeason() { + return season; + } + + /** + * Sets the value of the season property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeason(String value) { + this.season = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DataBank.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DataBank.java new file mode 100644 index 00000000000..af2d7ce076e --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DataBank.java @@ -0,0 +1,99 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}DataBankName"/>
+ *         <element ref="{}AccessionNumberList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "dataBankName", + "accessionNumberList" +}) +@XmlRootElement(name = "DataBank") +public class DataBank { + + @XmlElement(name = "DataBankName", required = true) + protected String dataBankName; + @XmlElement(name = "AccessionNumberList") + protected AccessionNumberList accessionNumberList; + + /** + * Gets the value of the dataBankName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDataBankName() { + return dataBankName; + } + + /** + * Sets the value of the dataBankName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDataBankName(String value) { + this.dataBankName = value; + } + + /** + * Gets the value of the accessionNumberList property. + * + * @return + * possible object is + * {@link AccessionNumberList } + * + */ + public AccessionNumberList getAccessionNumberList() { + return accessionNumberList; + } + + /** + * Sets the value of the accessionNumberList property. + * + * @param value + * allowed object is + * {@link AccessionNumberList } + * + */ + public void setAccessionNumberList(AccessionNumberList value) { + this.accessionNumberList = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DataBankList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DataBankList.java new file mode 100644 index 00000000000..dc4934f9562 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DataBankList.java @@ -0,0 +1,113 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}DataBank" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attGroup ref="{}attlist.DataBankList"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "dataBank" +}) +@XmlRootElement(name = "DataBankList") +public class DataBankList { + + @XmlElement(name = "DataBank", required = true) + protected List dataBank; + @XmlAttribute(name = "CompleteYN") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String completeYN; + + /** + * Gets the value of the dataBank property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the dataBank property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDataBank().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link DataBank } + * + * + */ + public List getDataBank() { + if (dataBank == null) { + dataBank = new ArrayList(); + } + return this.dataBank; + } + + /** + * Gets the value of the completeYN property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCompleteYN() { + if (completeYN == null) { + return "Y"; + } else { + return completeYN; + } + } + + /** + * Sets the value of the completeYN property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCompleteYN(String value) { + this.completeYN = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DateCompleted.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DateCompleted.java new file mode 100644 index 00000000000..8c1a43d10e2 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DateCompleted.java @@ -0,0 +1,127 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Year"/>
+ *         <element ref="{}Month"/>
+ *         <element ref="{}Day"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "year", + "month", + "day" +}) +@XmlRootElement(name = "DateCompleted") +public class DateCompleted { + + @XmlElement(name = "Year", required = true) + protected String year; + @XmlElement(name = "Month", required = true) + protected String month; + @XmlElement(name = "Day", required = true) + protected String day; + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setYear(String value) { + this.year = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the day property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDay() { + return day; + } + + /** + * Sets the value of the day property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDay(String value) { + this.day = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DateCreated.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DateCreated.java new file mode 100644 index 00000000000..fe6d6120a1e --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DateCreated.java @@ -0,0 +1,127 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Year"/>
+ *         <element ref="{}Month"/>
+ *         <element ref="{}Day"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "year", + "month", + "day" +}) +@XmlRootElement(name = "DateCreated") +public class DateCreated { + + @XmlElement(name = "Year", required = true) + protected String year; + @XmlElement(name = "Month", required = true) + protected String month; + @XmlElement(name = "Day", required = true) + protected String day; + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setYear(String value) { + this.year = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the day property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDay() { + return day; + } + + /** + * Sets the value of the day property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDay(String value) { + this.day = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DateRevised.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DateRevised.java new file mode 100644 index 00000000000..e30cd9c6a1e --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DateRevised.java @@ -0,0 +1,127 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Year"/>
+ *         <element ref="{}Month"/>
+ *         <element ref="{}Day"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "year", + "month", + "day" +}) +@XmlRootElement(name = "DateRevised") +public class DateRevised { + + @XmlElement(name = "Year", required = true) + protected String year; + @XmlElement(name = "Month", required = true) + protected String month; + @XmlElement(name = "Day", required = true) + protected String day; + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setYear(String value) { + this.year = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the day property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDay() { + return day; + } + + /** + * Sets the value of the day property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDay(String value) { + this.day = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DeleteCitation.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DeleteCitation.java new file mode 100644 index 00000000000..3a50e920493 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DeleteCitation.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}PMID" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "pmid" +}) +@XmlRootElement(name = "DeleteCitation") +public class DeleteCitation { + + @XmlElement(name = "PMID", required = true) + protected List pmid; + + /** + * Gets the value of the pmid property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pmid property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPMID().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PMID } + * + * + */ + public List getPMID() { + if (pmid == null) { + pmid = new ArrayList(); + } + return this.pmid; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DeleteDocument.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DeleteDocument.java new file mode 100644 index 00000000000..b9cbbad084e --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DeleteDocument.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}PMID" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "pmid" +}) +@XmlRootElement(name = "DeleteDocument") +public class DeleteDocument { + + @XmlElement(name = "PMID") + protected List pmid; + + /** + * Gets the value of the pmid property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pmid property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPMID().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PMID } + * + * + */ + public List getPMID() { + if (pmid == null) { + pmid = new ArrayList(); + } + return this.pmid; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DescriptorName.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DescriptorName.java new file mode 100644 index 00000000000..e21e2d8ceea --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/DescriptorName.java @@ -0,0 +1,158 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{}attlist.DescriptorName"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "DescriptorName") +public class DescriptorName { + + @XmlValue + protected String content; + @XmlAttribute(name = "MajorTopicYN") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String majorTopicYN; + @XmlAttribute(name = "Type") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String type; + @XmlAttribute(name = "UI", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String ui; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the majorTopicYN property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMajorTopicYN() { + if (majorTopicYN == null) { + return "N"; + } else { + return majorTopicYN; + } + } + + /** + * Sets the value of the majorTopicYN property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMajorTopicYN(String value) { + this.majorTopicYN = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the ui property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUI() { + return ui; + } + + /** + * Sets the value of the ui property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUI(String value) { + this.ui = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ELocationID.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ELocationID.java new file mode 100644 index 00000000000..2462ac1971d --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ELocationID.java @@ -0,0 +1,130 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{}attlist.ELocationID"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "ELocationID") +public class ELocationID { + + @XmlValue + protected String content; + @XmlAttribute(name = "EIdType", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String eIdType; + @XmlAttribute(name = "ValidYN") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String validYN; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the eIdType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEIdType() { + return eIdType; + } + + /** + * Sets the value of the eIdType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEIdType(String value) { + this.eIdType = value; + } + + /** + * Gets the value of the validYN property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValidYN() { + if (validYN == null) { + return "Y"; + } else { + return validYN; + } + } + + /** + * Sets the value of the validYN property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValidYN(String value) { + this.validYN = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/EndingDate.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/EndingDate.java new file mode 100644 index 00000000000..757873b3609 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/EndingDate.java @@ -0,0 +1,159 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Year"/>
+ *         <choice minOccurs="0">
+ *           <sequence>
+ *             <element ref="{}Month"/>
+ *             <element ref="{}Day" minOccurs="0"/>
+ *           </sequence>
+ *           <element ref="{}Season"/>
+ *         </choice>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "year", + "month", + "day", + "season" +}) +@XmlRootElement(name = "EndingDate") +public class EndingDate { + + @XmlElement(name = "Year", required = true) + protected String year; + @XmlElement(name = "Month") + protected String month; + @XmlElement(name = "Day") + protected String day; + @XmlElement(name = "Season") + protected String season; + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setYear(String value) { + this.year = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the day property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDay() { + return day; + } + + /** + * Sets the value of the day property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDay(String value) { + this.day = value; + } + + /** + * Gets the value of the season property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeason() { + return season; + } + + /** + * Sets the value of the season property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeason(String value) { + this.season = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/GeneSymbolList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/GeneSymbolList.java new file mode 100644 index 00000000000..0c85d6900bd --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/GeneSymbolList.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}GeneSymbol" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "geneSymbol" +}) +@XmlRootElement(name = "GeneSymbolList") +public class GeneSymbolList { + + @XmlElement(name = "GeneSymbol", required = true) + protected List geneSymbol; + + /** + * Gets the value of the geneSymbol property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the geneSymbol property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getGeneSymbol().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getGeneSymbol() { + if (geneSymbol == null) { + geneSymbol = new ArrayList(); + } + return this.geneSymbol; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/GeneralNote.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/GeneralNote.java new file mode 100644 index 00000000000..2852ffe677d --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/GeneralNote.java @@ -0,0 +1,103 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{}attlist.GeneralNote"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "GeneralNote") +public class GeneralNote { + + @XmlValue + protected String content; + @XmlAttribute(name = "Owner") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String owner; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the owner property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOwner() { + if (owner == null) { + return "NLM"; + } else { + return owner; + } + } + + /** + * Sets the value of the owner property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOwner(String value) { + this.owner = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Grant.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Grant.java new file mode 100644 index 00000000000..e2e85ad4cc2 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Grant.java @@ -0,0 +1,155 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}GrantID" minOccurs="0"/>
+ *         <element ref="{}Acronym" minOccurs="0"/>
+ *         <element ref="{}Agency"/>
+ *         <element ref="{}Country"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "grantID", + "acronym", + "agency", + "country" +}) +@XmlRootElement(name = "Grant") +public class Grant { + + @XmlElement(name = "GrantID") + protected String grantID; + @XmlElement(name = "Acronym") + protected String acronym; + @XmlElement(name = "Agency", required = true) + protected String agency; + @XmlElement(name = "Country", required = true) + protected String country; + + /** + * Gets the value of the grantID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGrantID() { + return grantID; + } + + /** + * Sets the value of the grantID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGrantID(String value) { + this.grantID = value; + } + + /** + * Gets the value of the acronym property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAcronym() { + return acronym; + } + + /** + * Sets the value of the acronym property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAcronym(String value) { + this.acronym = value; + } + + /** + * Gets the value of the agency property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAgency() { + return agency; + } + + /** + * Sets the value of the agency property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAgency(String value) { + this.agency = value; + } + + /** + * Gets the value of the country property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCountry() { + return country; + } + + /** + * Sets the value of the country property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCountry(String value) { + this.country = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/GrantList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/GrantList.java new file mode 100644 index 00000000000..7ec7f02e26e --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/GrantList.java @@ -0,0 +1,113 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Grant" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attGroup ref="{}attlist.GrantList"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "grant" +}) +@XmlRootElement(name = "GrantList") +public class GrantList { + + @XmlElement(name = "Grant", required = true) + protected List grant; + @XmlAttribute(name = "CompleteYN") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String completeYN; + + /** + * Gets the value of the grant property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the grant property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getGrant().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Grant } + * + * + */ + public List getGrant() { + if (grant == null) { + grant = new ArrayList(); + } + return this.grant; + } + + /** + * Gets the value of the completeYN property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCompleteYN() { + if (completeYN == null) { + return "Y"; + } else { + return completeYN; + } + } + + /** + * Sets the value of the completeYN property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCompleteYN(String value) { + this.completeYN = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/History.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/History.java new file mode 100644 index 00000000000..23396b2278c --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/History.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}PubMedPubDate" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "pubMedPubDate" +}) +@XmlRootElement(name = "History") +public class History { + + @XmlElement(name = "PubMedPubDate", required = true) + protected List pubMedPubDate; + + /** + * Gets the value of the pubMedPubDate property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pubMedPubDate property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPubMedPubDate().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PubMedPubDate } + * + * + */ + public List getPubMedPubDate() { + if (pubMedPubDate == null) { + pubMedPubDate = new ArrayList(); + } + return this.pubMedPubDate; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ISSN.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ISSN.java new file mode 100644 index 00000000000..6cdafa1f669 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ISSN.java @@ -0,0 +1,99 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{}attlist.ISSN"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "ISSN") +public class ISSN { + + @XmlValue + protected String content; + @XmlAttribute(name = "IssnType", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String issnType; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the issnType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssnType() { + return issnType; + } + + /** + * Sets the value of the issnType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssnType(String value) { + this.issnType = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Identifier.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Identifier.java new file mode 100644 index 00000000000..039a069eb07 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Identifier.java @@ -0,0 +1,98 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{}attlist.Identifier"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "Identifier") +public class Identifier { + + @XmlValue + protected String content; + @XmlAttribute(name = "Source", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String source; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the source property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSource() { + return source; + } + + /** + * Sets the value of the source property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSource(String value) { + this.source = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Investigator.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Investigator.java new file mode 100644 index 00000000000..ad41f199e6d --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Investigator.java @@ -0,0 +1,258 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}LastName"/>
+ *         <element ref="{}ForeName" minOccurs="0"/>
+ *         <element ref="{}Initials" minOccurs="0"/>
+ *         <element ref="{}Suffix" minOccurs="0"/>
+ *         <element ref="{}Identifier" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}AffiliationInfo" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{}attlist.Investigator"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "lastName", + "foreName", + "initials", + "suffix", + "identifier", + "affiliationInfo" +}) +@XmlRootElement(name = "Investigator") +public class Investigator { + + @XmlElement(name = "LastName", required = true) + protected String lastName; + @XmlElement(name = "ForeName") + protected String foreName; + @XmlElement(name = "Initials") + protected String initials; + @XmlElement(name = "Suffix") + protected Text suffix; + @XmlElement(name = "Identifier") + protected List identifier; + @XmlElement(name = "AffiliationInfo") + protected List affiliationInfo; + @XmlAttribute(name = "ValidYN") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String validYN; + + /** + * Gets the value of the lastName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastName() { + return lastName; + } + + /** + * Sets the value of the lastName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastName(String value) { + this.lastName = value; + } + + /** + * Gets the value of the foreName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getForeName() { + return foreName; + } + + /** + * Sets the value of the foreName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setForeName(String value) { + this.foreName = value; + } + + /** + * Gets the value of the initials property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInitials() { + return initials; + } + + /** + * Sets the value of the initials property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInitials(String value) { + this.initials = value; + } + + /** + * Gets the value of the suffix property. + * + * @return + * possible object is + * {@link Text } + * + */ + public Text getSuffix() { + return suffix; + } + + /** + * Sets the value of the suffix property. + * + * @param value + * allowed object is + * {@link Text } + * + */ + public void setSuffix(Text value) { + this.suffix = value; + } + + /** + * Gets the value of the identifier property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the identifier property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getIdentifier().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Identifier } + * + * + */ + public List getIdentifier() { + if (identifier == null) { + identifier = new ArrayList(); + } + return this.identifier; + } + + /** + * Gets the value of the affiliationInfo property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the affiliationInfo property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAffiliationInfo().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AffiliationInfo } + * + * + */ + public List getAffiliationInfo() { + if (affiliationInfo == null) { + affiliationInfo = new ArrayList(); + } + return this.affiliationInfo; + } + + /** + * Gets the value of the validYN property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValidYN() { + if (validYN == null) { + return "Y"; + } else { + return validYN; + } + } + + /** + * Sets the value of the validYN property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValidYN(String value) { + this.validYN = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/InvestigatorList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/InvestigatorList.java new file mode 100644 index 00000000000..5b97c8e81f4 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/InvestigatorList.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Investigator" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "investigator" +}) +@XmlRootElement(name = "InvestigatorList") +public class InvestigatorList { + + @XmlElement(name = "Investigator", required = true) + protected List investigator; + + /** + * Gets the value of the investigator property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the investigator property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getInvestigator().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Investigator } + * + * + */ + public List getInvestigator() { + if (investigator == null) { + investigator = new ArrayList(); + } + return this.investigator; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/IsoLanguageCodes.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/IsoLanguageCodes.java new file mode 100644 index 00000000000..e9c5159ddda --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/IsoLanguageCodes.java @@ -0,0 +1,129 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for iso.language.codes. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="iso.language.codes">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ *     <enumeration value="AF"/>
+ *     <enumeration value="AR"/>
+ *     <enumeration value="AZ"/>
+ *     <enumeration value="BG"/>
+ *     <enumeration value="CS"/>
+ *     <enumeration value="DA"/>
+ *     <enumeration value="DE"/>
+ *     <enumeration value="EN"/>
+ *     <enumeration value="EL"/>
+ *     <enumeration value="ES"/>
+ *     <enumeration value="FA"/>
+ *     <enumeration value="FI"/>
+ *     <enumeration value="FR"/>
+ *     <enumeration value="HE"/>
+ *     <enumeration value="HU"/>
+ *     <enumeration value="HY"/>
+ *     <enumeration value="IN"/>
+ *     <enumeration value="IS"/>
+ *     <enumeration value="IT"/>
+ *     <enumeration value="IW"/>
+ *     <enumeration value="JA"/>
+ *     <enumeration value="KA"/>
+ *     <enumeration value="KO"/>
+ *     <enumeration value="LT"/>
+ *     <enumeration value="MK"/>
+ *     <enumeration value="ML"/>
+ *     <enumeration value="NL"/>
+ *     <enumeration value="NO"/>
+ *     <enumeration value="PL"/>
+ *     <enumeration value="PT"/>
+ *     <enumeration value="PS"/>
+ *     <enumeration value="RO"/>
+ *     <enumeration value="RU"/>
+ *     <enumeration value="SL"/>
+ *     <enumeration value="SK"/>
+ *     <enumeration value="SQ"/>
+ *     <enumeration value="SR"/>
+ *     <enumeration value="SV"/>
+ *     <enumeration value="SW"/>
+ *     <enumeration value="TH"/>
+ *     <enumeration value="TR"/>
+ *     <enumeration value="UK"/>
+ *     <enumeration value="VI"/>
+ *     <enumeration value="ZH"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "iso.language.codes") +@XmlEnum +public enum IsoLanguageCodes { + + AF, + AR, + AZ, + BG, + CS, + DA, + DE, + EN, + EL, + ES, + FA, + FI, + FR, + HE, + HU, + HY, + IN, + IS, + IT, + IW, + JA, + KA, + KO, + LT, + MK, + ML, + NL, + NO, + PL, + PT, + PS, + RO, + RU, + SL, + SK, + SQ, + SR, + SV, + SW, + TH, + TR, + UK, + VI, + ZH; + + public String value() { + return name(); + } + + public static IsoLanguageCodes fromValue(String v) { + return valueOf(v); + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ItemList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ItemList.java new file mode 100644 index 00000000000..584f75c93d7 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ItemList.java @@ -0,0 +1,108 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Item" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attGroup ref="{}attlist.ItemList"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "item" +}) +@XmlRootElement(name = "ItemList") +public class ItemList { + + @XmlElement(name = "Item", required = true) + protected List item; + @XmlAttribute(name = "ListType", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String listType; + + /** + * Gets the value of the item property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the item property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getItem().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getItem() { + if (item == null) { + item = new ArrayList(); + } + return this.item; + } + + /** + * Gets the value of the listType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getListType() { + return listType; + } + + /** + * Sets the value of the listType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setListType(String value) { + this.listType = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Journal.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Journal.java new file mode 100644 index 00000000000..90abcbf2176 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Journal.java @@ -0,0 +1,155 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}ISSN" minOccurs="0"/>
+ *         <element ref="{}JournalIssue"/>
+ *         <element ref="{}Title" minOccurs="0"/>
+ *         <element ref="{}ISOAbbreviation" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "issn", + "journalIssue", + "title", + "isoAbbreviation" +}) +@XmlRootElement(name = "Journal") +public class Journal { + + @XmlElement(name = "ISSN") + protected ISSN issn; + @XmlElement(name = "JournalIssue", required = true) + protected JournalIssue journalIssue; + @XmlElement(name = "Title") + protected String title; + @XmlElement(name = "ISOAbbreviation") + protected String isoAbbreviation; + + /** + * Gets the value of the issn property. + * + * @return + * possible object is + * {@link ISSN } + * + */ + public ISSN getISSN() { + return issn; + } + + /** + * Sets the value of the issn property. + * + * @param value + * allowed object is + * {@link ISSN } + * + */ + public void setISSN(ISSN value) { + this.issn = value; + } + + /** + * Gets the value of the journalIssue property. + * + * @return + * possible object is + * {@link JournalIssue } + * + */ + public JournalIssue getJournalIssue() { + return journalIssue; + } + + /** + * Sets the value of the journalIssue property. + * + * @param value + * allowed object is + * {@link JournalIssue } + * + */ + public void setJournalIssue(JournalIssue value) { + this.journalIssue = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the isoAbbreviation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getISOAbbreviation() { + return isoAbbreviation; + } + + /** + * Sets the value of the isoAbbreviation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setISOAbbreviation(String value) { + this.isoAbbreviation = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/JournalIssue.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/JournalIssue.java new file mode 100644 index 00000000000..8a1f04c149c --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/JournalIssue.java @@ -0,0 +1,158 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Volume" minOccurs="0"/>
+ *         <element ref="{}Issue" minOccurs="0"/>
+ *         <element ref="{}PubDate"/>
+ *       </sequence>
+ *       <attGroup ref="{}attlist.JournalIssue"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "volume", + "issue", + "pubDate" +}) +@XmlRootElement(name = "JournalIssue") +public class JournalIssue { + + @XmlElement(name = "Volume") + protected String volume; + @XmlElement(name = "Issue") + protected String issue; + @XmlElement(name = "PubDate", required = true) + protected PubDate pubDate; + @XmlAttribute(name = "CitedMedium", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String citedMedium; + + /** + * Gets the value of the volume property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVolume() { + return volume; + } + + /** + * Sets the value of the volume property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVolume(String value) { + this.volume = value; + } + + /** + * Gets the value of the issue property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIssue() { + return issue; + } + + /** + * Sets the value of the issue property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIssue(String value) { + this.issue = value; + } + + /** + * Gets the value of the pubDate property. + * + * @return + * possible object is + * {@link PubDate } + * + */ + public PubDate getPubDate() { + return pubDate; + } + + /** + * Sets the value of the pubDate property. + * + * @param value + * allowed object is + * {@link PubDate } + * + */ + public void setPubDate(PubDate value) { + this.pubDate = value; + } + + /** + * Gets the value of the citedMedium property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCitedMedium() { + return citedMedium; + } + + /** + * Sets the value of the citedMedium property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCitedMedium(String value) { + this.citedMedium = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Keyword.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Keyword.java new file mode 100644 index 00000000000..3b48260effc --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Keyword.java @@ -0,0 +1,76 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <extension base="{}text">
+ *       <attGroup ref="{}attlist.Keyword"/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "Keyword") +public class Keyword + extends Text +{ + + @XmlAttribute(name = "MajorTopicYN") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String majorTopicYN; + + /** + * Gets the value of the majorTopicYN property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMajorTopicYN() { + if (majorTopicYN == null) { + return "N"; + } else { + return majorTopicYN; + } + } + + /** + * Sets the value of the majorTopicYN property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMajorTopicYN(String value) { + this.majorTopicYN = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/KeywordList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/KeywordList.java new file mode 100644 index 00000000000..0b96e5ccb93 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/KeywordList.java @@ -0,0 +1,113 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Keyword" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attGroup ref="{}attlist.KeywordList"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "keyword" +}) +@XmlRootElement(name = "KeywordList") +public class KeywordList { + + @XmlElement(name = "Keyword", required = true) + protected List keyword; + @XmlAttribute(name = "Owner") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String owner; + + /** + * Gets the value of the keyword property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the keyword property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getKeyword().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Keyword } + * + * + */ + public List getKeyword() { + if (keyword == null) { + keyword = new ArrayList(); + } + return this.keyword; + } + + /** + * Gets the value of the owner property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOwner() { + if (owner == null) { + return "NLM"; + } else { + return owner; + } + } + + /** + * Sets the value of the owner property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOwner(String value) { + this.owner = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/LocationLabel.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/LocationLabel.java new file mode 100644 index 00000000000..9984436eac0 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/LocationLabel.java @@ -0,0 +1,99 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{}attlist.LocationLabel"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "LocationLabel") +public class LocationLabel { + + @XmlValue + protected String content; + @XmlAttribute(name = "Type") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String type; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MedlineCitation.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MedlineCitation.java new file mode 100644 index 00000000000..040524888ee --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MedlineCitation.java @@ -0,0 +1,752 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}PMID"/>
+ *         <element ref="{}DateCreated"/>
+ *         <element ref="{}DateCompleted" minOccurs="0"/>
+ *         <element ref="{}DateRevised" minOccurs="0"/>
+ *         <element ref="{}Article"/>
+ *         <element ref="{}MedlineJournalInfo"/>
+ *         <element ref="{}ChemicalList" minOccurs="0"/>
+ *         <element ref="{}SupplMeshList" minOccurs="0"/>
+ *         <element ref="{}CitationSubset" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}CommentsCorrectionsList" minOccurs="0"/>
+ *         <element ref="{}GeneSymbolList" minOccurs="0"/>
+ *         <element ref="{}MeshHeadingList" minOccurs="0"/>
+ *         <element ref="{}NumberOfReferences" minOccurs="0"/>
+ *         <element ref="{}PersonalNameSubjectList" minOccurs="0"/>
+ *         <element ref="{}OtherID" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}OtherAbstract" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}KeywordList" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}SpaceFlightMission" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}InvestigatorList" minOccurs="0"/>
+ *         <element ref="{}GeneralNote" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{}attlist.MedlineCitation"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "pmid", + "dateCreated", + "dateCompleted", + "dateRevised", + "article", + "medlineJournalInfo", + "chemicalList", + "supplMeshList", + "citationSubset", + "commentsCorrectionsList", + "geneSymbolList", + "meshHeadingList", + "numberOfReferences", + "personalNameSubjectList", + "otherID", + "otherAbstract", + "keywordList", + "spaceFlightMission", + "investigatorList", + "generalNote" +}) +@XmlRootElement(name = "MedlineCitation") +public class MedlineCitation { + + @XmlElement(name = "PMID", required = true) + protected PMID pmid; + @XmlElement(name = "DateCreated", required = true) + protected DateCreated dateCreated; + @XmlElement(name = "DateCompleted") + protected DateCompleted dateCompleted; + @XmlElement(name = "DateRevised") + protected DateRevised dateRevised; + @XmlElement(name = "Article", required = true) + protected Article article; + @XmlElement(name = "MedlineJournalInfo", required = true) + protected MedlineJournalInfo medlineJournalInfo; + @XmlElement(name = "ChemicalList") + protected ChemicalList chemicalList; + @XmlElement(name = "SupplMeshList") + protected SupplMeshList supplMeshList; + @XmlElement(name = "CitationSubset") + protected List citationSubset; + @XmlElement(name = "CommentsCorrectionsList") + protected CommentsCorrectionsList commentsCorrectionsList; + @XmlElement(name = "GeneSymbolList") + protected GeneSymbolList geneSymbolList; + @XmlElement(name = "MeshHeadingList") + protected MeshHeadingList meshHeadingList; + @XmlElement(name = "NumberOfReferences") + protected String numberOfReferences; + @XmlElement(name = "PersonalNameSubjectList") + protected PersonalNameSubjectList personalNameSubjectList; + @XmlElement(name = "OtherID") + protected List otherID; + @XmlElement(name = "OtherAbstract") + protected List otherAbstract; + @XmlElement(name = "KeywordList") + protected List keywordList; + @XmlElement(name = "SpaceFlightMission") + protected List spaceFlightMission; + @XmlElement(name = "InvestigatorList") + protected InvestigatorList investigatorList; + @XmlElement(name = "GeneralNote") + protected List generalNote; + @XmlAttribute(name = "Owner") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String owner; + @XmlAttribute(name = "Status", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String status; + @XmlAttribute(name = "VersionID") + @XmlSchemaType(name = "anySimpleType") + protected String versionID; + @XmlAttribute(name = "VersionDate") + @XmlSchemaType(name = "anySimpleType") + protected String versionDate; + + /** + * Gets the value of the pmid property. + * + * @return + * possible object is + * {@link PMID } + * + */ + public PMID getPMID() { + return pmid; + } + + /** + * Sets the value of the pmid property. + * + * @param value + * allowed object is + * {@link PMID } + * + */ + public void setPMID(PMID value) { + this.pmid = value; + } + + /** + * Gets the value of the dateCreated property. + * + * @return + * possible object is + * {@link DateCreated } + * + */ + public DateCreated getDateCreated() { + return dateCreated; + } + + /** + * Sets the value of the dateCreated property. + * + * @param value + * allowed object is + * {@link DateCreated } + * + */ + public void setDateCreated(DateCreated value) { + this.dateCreated = value; + } + + /** + * Gets the value of the dateCompleted property. + * + * @return + * possible object is + * {@link DateCompleted } + * + */ + public DateCompleted getDateCompleted() { + return dateCompleted; + } + + /** + * Sets the value of the dateCompleted property. + * + * @param value + * allowed object is + * {@link DateCompleted } + * + */ + public void setDateCompleted(DateCompleted value) { + this.dateCompleted = value; + } + + /** + * Gets the value of the dateRevised property. + * + * @return + * possible object is + * {@link DateRevised } + * + */ + public DateRevised getDateRevised() { + return dateRevised; + } + + /** + * Sets the value of the dateRevised property. + * + * @param value + * allowed object is + * {@link DateRevised } + * + */ + public void setDateRevised(DateRevised value) { + this.dateRevised = value; + } + + /** + * Gets the value of the article property. + * + * @return + * possible object is + * {@link Article } + * + */ + public Article getArticle() { + return article; + } + + /** + * Sets the value of the article property. + * + * @param value + * allowed object is + * {@link Article } + * + */ + public void setArticle(Article value) { + this.article = value; + } + + /** + * Gets the value of the medlineJournalInfo property. + * + * @return + * possible object is + * {@link MedlineJournalInfo } + * + */ + public MedlineJournalInfo getMedlineJournalInfo() { + return medlineJournalInfo; + } + + /** + * Sets the value of the medlineJournalInfo property. + * + * @param value + * allowed object is + * {@link MedlineJournalInfo } + * + */ + public void setMedlineJournalInfo(MedlineJournalInfo value) { + this.medlineJournalInfo = value; + } + + /** + * Gets the value of the chemicalList property. + * + * @return + * possible object is + * {@link ChemicalList } + * + */ + public ChemicalList getChemicalList() { + return chemicalList; + } + + /** + * Sets the value of the chemicalList property. + * + * @param value + * allowed object is + * {@link ChemicalList } + * + */ + public void setChemicalList(ChemicalList value) { + this.chemicalList = value; + } + + /** + * Gets the value of the supplMeshList property. + * + * @return + * possible object is + * {@link SupplMeshList } + * + */ + public SupplMeshList getSupplMeshList() { + return supplMeshList; + } + + /** + * Sets the value of the supplMeshList property. + * + * @param value + * allowed object is + * {@link SupplMeshList } + * + */ + public void setSupplMeshList(SupplMeshList value) { + this.supplMeshList = value; + } + + /** + * Gets the value of the citationSubset property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the citationSubset property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCitationSubset().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getCitationSubset() { + if (citationSubset == null) { + citationSubset = new ArrayList(); + } + return this.citationSubset; + } + + /** + * Gets the value of the commentsCorrectionsList property. + * + * @return + * possible object is + * {@link CommentsCorrectionsList } + * + */ + public CommentsCorrectionsList getCommentsCorrectionsList() { + return commentsCorrectionsList; + } + + /** + * Sets the value of the commentsCorrectionsList property. + * + * @param value + * allowed object is + * {@link CommentsCorrectionsList } + * + */ + public void setCommentsCorrectionsList(CommentsCorrectionsList value) { + this.commentsCorrectionsList = value; + } + + /** + * Gets the value of the geneSymbolList property. + * + * @return + * possible object is + * {@link GeneSymbolList } + * + */ + public GeneSymbolList getGeneSymbolList() { + return geneSymbolList; + } + + /** + * Sets the value of the geneSymbolList property. + * + * @param value + * allowed object is + * {@link GeneSymbolList } + * + */ + public void setGeneSymbolList(GeneSymbolList value) { + this.geneSymbolList = value; + } + + /** + * Gets the value of the meshHeadingList property. + * + * @return + * possible object is + * {@link MeshHeadingList } + * + */ + public MeshHeadingList getMeshHeadingList() { + return meshHeadingList; + } + + /** + * Sets the value of the meshHeadingList property. + * + * @param value + * allowed object is + * {@link MeshHeadingList } + * + */ + public void setMeshHeadingList(MeshHeadingList value) { + this.meshHeadingList = value; + } + + /** + * Gets the value of the numberOfReferences property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNumberOfReferences() { + return numberOfReferences; + } + + /** + * Sets the value of the numberOfReferences property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNumberOfReferences(String value) { + this.numberOfReferences = value; + } + + /** + * Gets the value of the personalNameSubjectList property. + * + * @return + * possible object is + * {@link PersonalNameSubjectList } + * + */ + public PersonalNameSubjectList getPersonalNameSubjectList() { + return personalNameSubjectList; + } + + /** + * Sets the value of the personalNameSubjectList property. + * + * @param value + * allowed object is + * {@link PersonalNameSubjectList } + * + */ + public void setPersonalNameSubjectList(PersonalNameSubjectList value) { + this.personalNameSubjectList = value; + } + + /** + * Gets the value of the otherID property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the otherID property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getOtherID().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link OtherID } + * + * + */ + public List getOtherID() { + if (otherID == null) { + otherID = new ArrayList(); + } + return this.otherID; + } + + /** + * Gets the value of the otherAbstract property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the otherAbstract property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getOtherAbstract().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link OtherAbstract } + * + * + */ + public List getOtherAbstract() { + if (otherAbstract == null) { + otherAbstract = new ArrayList(); + } + return this.otherAbstract; + } + + /** + * Gets the value of the keywordList property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the keywordList property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getKeywordList().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link KeywordList } + * + * + */ + public List getKeywordList() { + if (keywordList == null) { + keywordList = new ArrayList(); + } + return this.keywordList; + } + + /** + * Gets the value of the spaceFlightMission property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the spaceFlightMission property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSpaceFlightMission().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getSpaceFlightMission() { + if (spaceFlightMission == null) { + spaceFlightMission = new ArrayList(); + } + return this.spaceFlightMission; + } + + /** + * Gets the value of the investigatorList property. + * + * @return + * possible object is + * {@link InvestigatorList } + * + */ + public InvestigatorList getInvestigatorList() { + return investigatorList; + } + + /** + * Sets the value of the investigatorList property. + * + * @param value + * allowed object is + * {@link InvestigatorList } + * + */ + public void setInvestigatorList(InvestigatorList value) { + this.investigatorList = value; + } + + /** + * Gets the value of the generalNote property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the generalNote property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getGeneralNote().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link GeneralNote } + * + * + */ + public List getGeneralNote() { + if (generalNote == null) { + generalNote = new ArrayList(); + } + return this.generalNote; + } + + /** + * Gets the value of the owner property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOwner() { + if (owner == null) { + return "NLM"; + } else { + return owner; + } + } + + /** + * Sets the value of the owner property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOwner(String value) { + this.owner = value; + } + + /** + * Gets the value of the status property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStatus(String value) { + this.status = value; + } + + /** + * Gets the value of the versionID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersionID() { + return versionID; + } + + /** + * Sets the value of the versionID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersionID(String value) { + this.versionID = value; + } + + /** + * Gets the value of the versionDate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersionDate() { + return versionDate; + } + + /** + * Sets the value of the versionDate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersionDate(String value) { + this.versionDate = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MedlineCitationSet.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MedlineCitationSet.java new file mode 100644 index 00000000000..9aa9128ba15 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MedlineCitationSet.java @@ -0,0 +1,106 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}MedlineCitation" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{}DeleteCitation" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "medlineCitation", + "deleteCitation" +}) +@XmlRootElement(name = "MedlineCitationSet") +public class MedlineCitationSet { + + @XmlElement(name = "MedlineCitation") + protected List medlineCitation; + @XmlElement(name = "DeleteCitation") + protected DeleteCitation deleteCitation; + + /** + * Gets the value of the medlineCitation property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the medlineCitation property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMedlineCitation().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link MedlineCitation } + * + * + */ + public List getMedlineCitation() { + if (medlineCitation == null) { + medlineCitation = new ArrayList(); + } + return this.medlineCitation; + } + + /** + * Gets the value of the deleteCitation property. + * + * @return + * possible object is + * {@link DeleteCitation } + * + */ + public DeleteCitation getDeleteCitation() { + return deleteCitation; + } + + /** + * Sets the value of the deleteCitation property. + * + * @param value + * allowed object is + * {@link DeleteCitation } + * + */ + public void setDeleteCitation(DeleteCitation value) { + this.deleteCitation = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MedlineJournalInfo.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MedlineJournalInfo.java new file mode 100644 index 00000000000..0d1e1eec03b --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MedlineJournalInfo.java @@ -0,0 +1,155 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Country" minOccurs="0"/>
+ *         <element ref="{}MedlineTA"/>
+ *         <element ref="{}NlmUniqueID" minOccurs="0"/>
+ *         <element ref="{}ISSNLinking" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "country", + "medlineTA", + "nlmUniqueID", + "issnLinking" +}) +@XmlRootElement(name = "MedlineJournalInfo") +public class MedlineJournalInfo { + + @XmlElement(name = "Country") + protected String country; + @XmlElement(name = "MedlineTA", required = true) + protected String medlineTA; + @XmlElement(name = "NlmUniqueID") + protected String nlmUniqueID; + @XmlElement(name = "ISSNLinking") + protected String issnLinking; + + /** + * Gets the value of the country property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCountry() { + return country; + } + + /** + * Sets the value of the country property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCountry(String value) { + this.country = value; + } + + /** + * Gets the value of the medlineTA property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMedlineTA() { + return medlineTA; + } + + /** + * Sets the value of the medlineTA property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMedlineTA(String value) { + this.medlineTA = value; + } + + /** + * Gets the value of the nlmUniqueID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNlmUniqueID() { + return nlmUniqueID; + } + + /** + * Sets the value of the nlmUniqueID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNlmUniqueID(String value) { + this.nlmUniqueID = value; + } + + /** + * Gets the value of the issnLinking property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getISSNLinking() { + return issnLinking; + } + + /** + * Sets the value of the issnLinking property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setISSNLinking(String value) { + this.issnLinking = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MeshHeading.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MeshHeading.java new file mode 100644 index 00000000000..6ff67640567 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MeshHeading.java @@ -0,0 +1,106 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}DescriptorName"/>
+ *         <element ref="{}QualifierName" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "descriptorName", + "qualifierName" +}) +@XmlRootElement(name = "MeshHeading") +public class MeshHeading { + + @XmlElement(name = "DescriptorName", required = true) + protected DescriptorName descriptorName; + @XmlElement(name = "QualifierName") + protected List qualifierName; + + /** + * Gets the value of the descriptorName property. + * + * @return + * possible object is + * {@link DescriptorName } + * + */ + public DescriptorName getDescriptorName() { + return descriptorName; + } + + /** + * Sets the value of the descriptorName property. + * + * @param value + * allowed object is + * {@link DescriptorName } + * + */ + public void setDescriptorName(DescriptorName value) { + this.descriptorName = value; + } + + /** + * Gets the value of the qualifierName property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the qualifierName property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getQualifierName().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link QualifierName } + * + * + */ + public List getQualifierName() { + if (qualifierName == null) { + qualifierName = new ArrayList(); + } + return this.qualifierName; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MeshHeadingList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MeshHeadingList.java new file mode 100644 index 00000000000..3311f796add --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/MeshHeadingList.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}MeshHeading" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "meshHeading" +}) +@XmlRootElement(name = "MeshHeadingList") +public class MeshHeadingList { + + @XmlElement(name = "MeshHeading", required = true) + protected List meshHeading; + + /** + * Gets the value of the meshHeading property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the meshHeading property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMeshHeading().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link MeshHeading } + * + * + */ + public List getMeshHeading() { + if (meshHeading == null) { + meshHeading = new ArrayList(); + } + return this.meshHeading; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/NameOfSubstance.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/NameOfSubstance.java new file mode 100644 index 00000000000..2e84947b55b --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/NameOfSubstance.java @@ -0,0 +1,98 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{}attlist.NameOfSubstance"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "NameOfSubstance") +public class NameOfSubstance { + + @XmlValue + protected String content; + @XmlAttribute(name = "UI", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String ui; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the ui property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUI() { + return ui; + } + + /** + * Sets the value of the ui property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUI(String value) { + this.ui = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/NormalDate.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/NormalDate.java new file mode 100644 index 00000000000..b6e34f39d7d --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/NormalDate.java @@ -0,0 +1,217 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for normal.date complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="normal.date">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Year"/>
+ *         <element ref="{}Month"/>
+ *         <element ref="{}Day"/>
+ *         <sequence minOccurs="0">
+ *           <element ref="{}Hour"/>
+ *           <sequence minOccurs="0">
+ *             <element ref="{}Minute"/>
+ *             <element ref="{}Second" minOccurs="0"/>
+ *           </sequence>
+ *         </sequence>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "normal.date", propOrder = { + "year", + "month", + "day", + "hour", + "minute", + "second" +}) +@XmlSeeAlso({ + PubMedPubDate.class +}) +public class NormalDate { + + @XmlElement(name = "Year", required = true) + protected String year; + @XmlElement(name = "Month", required = true) + protected String month; + @XmlElement(name = "Day", required = true) + protected String day; + @XmlElement(name = "Hour") + protected String hour; + @XmlElement(name = "Minute") + protected String minute; + @XmlElement(name = "Second") + protected String second; + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setYear(String value) { + this.year = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the day property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDay() { + return day; + } + + /** + * Sets the value of the day property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDay(String value) { + this.day = value; + } + + /** + * Gets the value of the hour property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHour() { + return hour; + } + + /** + * Sets the value of the hour property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHour(String value) { + this.hour = value; + } + + /** + * Gets the value of the minute property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMinute() { + return minute; + } + + /** + * Sets the value of the minute property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMinute(String value) { + this.minute = value; + } + + /** + * Gets the value of the second property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSecond() { + return second; + } + + /** + * Sets the value of the second property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSecond(String value) { + this.second = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Object.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Object.java new file mode 100644 index 00000000000..0df07adf0d4 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Object.java @@ -0,0 +1,108 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Param" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{}attlist.Object"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "param" +}) +@XmlRootElement(name = "Object") +public class Object { + + @XmlElement(name = "Param") + protected List param; + @XmlAttribute(name = "Type", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String type; + + /** + * Gets the value of the param property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the param property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getParam().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Param } + * + * + */ + public List getParam() { + if (param == null) { + param = new ArrayList(); + } + return this.param; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ObjectFactory.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ObjectFactory.java new file mode 100644 index 00000000000..d7c47c0acf0 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ObjectFactory.java @@ -0,0 +1,1268 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the org.jabref.logic.importer.fileformat.medline 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 _MedlinePgn_QNAME = new QName("", "MedlinePgn"); + private final static QName _EndPage_QNAME = new QName("", "EndPage"); + private final static QName _NlmUniqueID_QNAME = new QName("", "NlmUniqueID"); + private final static QName _ContractNumber_QNAME = new QName("", "ContractNumber"); + private final static QName _Issue_QNAME = new QName("", "Issue"); + private final static QName _CopyrightInformation_QNAME = new QName("", "CopyrightInformation"); + private final static QName _ISOAbbreviation_QNAME = new QName("", "ISOAbbreviation"); + private final static QName _NumberOfReferences_QNAME = new QName("", "NumberOfReferences"); + private final static QName _Month_QNAME = new QName("", "Month"); + private final static QName _Item_QNAME = new QName("", "Item"); + private final static QName _CitationSubset_QNAME = new QName("", "CitationSubset"); + private final static QName _VolumeTitle_QNAME = new QName("", "VolumeTitle"); + private final static QName _PublicationStatus_QNAME = new QName("", "PublicationStatus"); + private final static QName _RefSource_QNAME = new QName("", "RefSource"); + private final static QName _Affiliation_QNAME = new QName("", "Affiliation"); + private final static QName _SpaceFlightMission_QNAME = new QName("", "SpaceFlightMission"); + private final static QName _ForeName_QNAME = new QName("", "ForeName"); + private final static QName _Hour_QNAME = new QName("", "Hour"); + private final static QName _Format_QNAME = new QName("", "format"); + private final static QName _MedlineTA_QNAME = new QName("", "MedlineTA"); + private final static QName _Initials_QNAME = new QName("", "Initials"); + private final static QName _Edition_QNAME = new QName("", "Edition"); + private final static QName _Suffix_QNAME = new QName("", "Suffix"); + private final static QName _Isbn_QNAME = new QName("", "Isbn"); + private final static QName _Volume_QNAME = new QName("", "Volume"); + private final static QName _Medium_QNAME = new QName("", "Medium"); + private final static QName _PublisherName_QNAME = new QName("", "PublisherName"); + private final static QName _Note_QNAME = new QName("", "Note"); + private final static QName _Country_QNAME = new QName("", "Country"); + private final static QName _LastName_QNAME = new QName("", "LastName"); + private final static QName _AccessionNumber_QNAME = new QName("", "AccessionNumber"); + private final static QName _MedlineDate_QNAME = new QName("", "MedlineDate"); + private final static QName _Sub_QNAME = new QName("", "sub"); + private final static QName _DataBankName_QNAME = new QName("", "DataBankName"); + private final static QName _Sup_QNAME = new QName("", "sup"); + private final static QName _PublisherLocation_QNAME = new QName("", "PublisherLocation"); + private final static QName _Minute_QNAME = new QName("", "Minute"); + private final static QName _Language_QNAME = new QName("", "Language"); + private final static QName _Season_QNAME = new QName("", "Season"); + private final static QName _GeneSymbol_QNAME = new QName("", "GeneSymbol"); + private final static QName _RegistryNumber_QNAME = new QName("", "RegistryNumber"); + private final static QName _B_QNAME = new QName("", "b"); + private final static QName _Agency_QNAME = new QName("", "Agency"); + private final static QName _Title_QNAME = new QName("", "Title"); + private final static QName _I_QNAME = new QName("", "i"); + private final static QName _CitationString_QNAME = new QName("", "CitationString"); + private final static QName _VernacularTitle_QNAME = new QName("", "VernacularTitle"); + private final static QName _Year_QNAME = new QName("", "Year"); + private final static QName _Second_QNAME = new QName("", "Second"); + private final static QName _StartPage_QNAME = new QName("", "StartPage"); + private final static QName _U_QNAME = new QName("", "u"); + private final static QName _ReportNumber_QNAME = new QName("", "ReportNumber"); + private final static QName _CollectiveName_QNAME = new QName("", "CollectiveName"); + private final static QName _GrantID_QNAME = new QName("", "GrantID"); + private final static QName _ISSNLinking_QNAME = new QName("", "ISSNLinking"); + private final static QName _Acronym_QNAME = new QName("", "Acronym"); + private final static QName _Day_QNAME = new QName("", "Day"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jabref.logic.importer.fileformat.medline + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link GrantList } + * + */ + public GrantList createGrantList() { + return new GrantList(); + } + + /** + * Create an instance of {@link Grant } + * + */ + public Grant createGrant() { + return new Grant(); + } + + /** + * Create an instance of {@link GeneSymbolList } + * + */ + public GeneSymbolList createGeneSymbolList() { + return new GeneSymbolList(); + } + + /** + * Create an instance of {@link History } + * + */ + public History createHistory() { + return new History(); + } + + /** + * Create an instance of {@link PubMedPubDate } + * + */ + public PubMedPubDate createPubMedPubDate() { + return new PubMedPubDate(); + } + + /** + * Create an instance of {@link NormalDate } + * + */ + public NormalDate createNormalDate() { + return new NormalDate(); + } + + /** + * Create an instance of {@link NameOfSubstance } + * + */ + public NameOfSubstance createNameOfSubstance() { + return new NameOfSubstance(); + } + + /** + * Create an instance of {@link MedlineJournalInfo } + * + */ + public MedlineJournalInfo createMedlineJournalInfo() { + return new MedlineJournalInfo(); + } + + /** + * Create an instance of {@link BeginningDate } + * + */ + public BeginningDate createBeginningDate() { + return new BeginningDate(); + } + + /** + * Create an instance of {@link CollectionTitle } + * + */ + public CollectionTitle createCollectionTitle() { + return new CollectionTitle(); + } + + /** + * Create an instance of {@link Text } + * + */ + public Text createText() { + return new Text(); + } + + /** + * Create an instance of {@link PubmedBookArticle } + * + */ + public PubmedBookArticle createPubmedBookArticle() { + return new PubmedBookArticle(); + } + + /** + * Create an instance of {@link BookDocument } + * + */ + public BookDocument createBookDocument() { + return new BookDocument(); + } + + /** + * Create an instance of {@link PMID } + * + */ + public PMID createPMID() { + return new PMID(); + } + + /** + * Create an instance of {@link ArticleIdList } + * + */ + public ArticleIdList createArticleIdList() { + return new ArticleIdList(); + } + + /** + * Create an instance of {@link ArticleId } + * + */ + public ArticleId createArticleId() { + return new ArticleId(); + } + + /** + * Create an instance of {@link Book } + * + */ + public Book createBook() { + return new Book(); + } + + /** + * Create an instance of {@link Publisher } + * + */ + public Publisher createPublisher() { + return new Publisher(); + } + + /** + * Create an instance of {@link BookTitle } + * + */ + public BookTitle createBookTitle() { + return new BookTitle(); + } + + /** + * Create an instance of {@link PubDate } + * + */ + public PubDate createPubDate() { + return new PubDate(); + } + + /** + * Create an instance of {@link EndingDate } + * + */ + public EndingDate createEndingDate() { + return new EndingDate(); + } + + /** + * Create an instance of {@link AuthorList } + * + */ + public AuthorList createAuthorList() { + return new AuthorList(); + } + + /** + * Create an instance of {@link Author } + * + */ + public Author createAuthor() { + return new Author(); + } + + /** + * Create an instance of {@link Identifier } + * + */ + public Identifier createIdentifier() { + return new Identifier(); + } + + /** + * Create an instance of {@link AffiliationInfo } + * + */ + public AffiliationInfo createAffiliationInfo() { + return new AffiliationInfo(); + } + + /** + * Create an instance of {@link ELocationID } + * + */ + public ELocationID createELocationID() { + return new ELocationID(); + } + + /** + * Create an instance of {@link LocationLabel } + * + */ + public LocationLabel createLocationLabel() { + return new LocationLabel(); + } + + /** + * Create an instance of {@link ArticleTitle } + * + */ + public ArticleTitle createArticleTitle() { + return new ArticleTitle(); + } + + /** + * Create an instance of {@link Pagination } + * + */ + public Pagination createPagination() { + return new Pagination(); + } + + /** + * Create an instance of {@link PublicationType } + * + */ + public PublicationType createPublicationType() { + return new PublicationType(); + } + + /** + * Create an instance of {@link Abstract } + * + */ + public Abstract createAbstract() { + return new Abstract(); + } + + /** + * Create an instance of {@link AbstractText } + * + */ + public AbstractText createAbstractText() { + return new AbstractText(); + } + + /** + * Create an instance of {@link Sections } + * + */ + public Sections createSections() { + return new Sections(); + } + + /** + * Create an instance of {@link Section } + * + */ + public Section createSection() { + return new Section(); + } + + /** + * Create an instance of {@link SectionTitle } + * + */ + public SectionTitle createSectionTitle() { + return new SectionTitle(); + } + + /** + * Create an instance of {@link KeywordList } + * + */ + public KeywordList createKeywordList() { + return new KeywordList(); + } + + /** + * Create an instance of {@link Keyword } + * + */ + public Keyword createKeyword() { + return new Keyword(); + } + + /** + * Create an instance of {@link ContributionDate } + * + */ + public ContributionDate createContributionDate() { + return new ContributionDate(); + } + + /** + * Create an instance of {@link DateRevised } + * + */ + public DateRevised createDateRevised() { + return new DateRevised(); + } + + /** + * Create an instance of {@link ItemList } + * + */ + public ItemList createItemList() { + return new ItemList(); + } + + /** + * Create an instance of {@link PubmedBookData } + * + */ + public PubmedBookData createPubmedBookData() { + return new PubmedBookData(); + } + + /** + * Create an instance of {@link ObjectList } + * + */ + public ObjectList createObjectList() { + return new ObjectList(); + } + + /** + * Create an instance of {@link Object } + * + */ + public Object createObject() { + return new Object(); + } + + /** + * Create an instance of {@link Param } + * + */ + public Param createParam() { + return new Param(); + } + + /** + * Create an instance of {@link GeneralNote } + * + */ + public GeneralNote createGeneralNote() { + return new GeneralNote(); + } + + /** + * Create an instance of {@link JournalIssue } + * + */ + public JournalIssue createJournalIssue() { + return new JournalIssue(); + } + + /** + * Create an instance of {@link BookDocumentSet } + * + */ + public BookDocumentSet createBookDocumentSet() { + return new BookDocumentSet(); + } + + /** + * Create an instance of {@link DeleteDocument } + * + */ + public DeleteDocument createDeleteDocument() { + return new DeleteDocument(); + } + + /** + * Create an instance of {@link PubmedArticleSet } + * + */ + public PubmedArticleSet createPubmedArticleSet() { + return new PubmedArticleSet(); + } + + /** + * Create an instance of {@link PubmedArticle } + * + */ + public PubmedArticle createPubmedArticle() { + return new PubmedArticle(); + } + + /** + * Create an instance of {@link MedlineCitation } + * + */ + public MedlineCitation createMedlineCitation() { + return new MedlineCitation(); + } + + /** + * Create an instance of {@link DateCreated } + * + */ + public DateCreated createDateCreated() { + return new DateCreated(); + } + + /** + * Create an instance of {@link DateCompleted } + * + */ + public DateCompleted createDateCompleted() { + return new DateCompleted(); + } + + /** + * Create an instance of {@link Article } + * + */ + public Article createArticle() { + return new Article(); + } + + /** + * Create an instance of {@link Journal } + * + */ + public Journal createJournal() { + return new Journal(); + } + + /** + * Create an instance of {@link ISSN } + * + */ + public ISSN createISSN() { + return new ISSN(); + } + + /** + * Create an instance of {@link DataBankList } + * + */ + public DataBankList createDataBankList() { + return new DataBankList(); + } + + /** + * Create an instance of {@link DataBank } + * + */ + public DataBank createDataBank() { + return new DataBank(); + } + + /** + * Create an instance of {@link AccessionNumberList } + * + */ + public AccessionNumberList createAccessionNumberList() { + return new AccessionNumberList(); + } + + /** + * Create an instance of {@link PublicationTypeList } + * + */ + public PublicationTypeList createPublicationTypeList() { + return new PublicationTypeList(); + } + + /** + * Create an instance of {@link ArticleDate } + * + */ + public ArticleDate createArticleDate() { + return new ArticleDate(); + } + + /** + * Create an instance of {@link ChemicalList } + * + */ + public ChemicalList createChemicalList() { + return new ChemicalList(); + } + + /** + * Create an instance of {@link Chemical } + * + */ + public Chemical createChemical() { + return new Chemical(); + } + + /** + * Create an instance of {@link SupplMeshList } + * + */ + public SupplMeshList createSupplMeshList() { + return new SupplMeshList(); + } + + /** + * Create an instance of {@link SupplMeshName } + * + */ + public SupplMeshName createSupplMeshName() { + return new SupplMeshName(); + } + + /** + * Create an instance of {@link CommentsCorrectionsList } + * + */ + public CommentsCorrectionsList createCommentsCorrectionsList() { + return new CommentsCorrectionsList(); + } + + /** + * Create an instance of {@link CommentsCorrections } + * + */ + public CommentsCorrections createCommentsCorrections() { + return new CommentsCorrections(); + } + + /** + * Create an instance of {@link MeshHeadingList } + * + */ + public MeshHeadingList createMeshHeadingList() { + return new MeshHeadingList(); + } + + /** + * Create an instance of {@link MeshHeading } + * + */ + public MeshHeading createMeshHeading() { + return new MeshHeading(); + } + + /** + * Create an instance of {@link DescriptorName } + * + */ + public DescriptorName createDescriptorName() { + return new DescriptorName(); + } + + /** + * Create an instance of {@link QualifierName } + * + */ + public QualifierName createQualifierName() { + return new QualifierName(); + } + + /** + * Create an instance of {@link PersonalNameSubjectList } + * + */ + public PersonalNameSubjectList createPersonalNameSubjectList() { + return new PersonalNameSubjectList(); + } + + /** + * Create an instance of {@link PersonalNameSubject } + * + */ + public PersonalNameSubject createPersonalNameSubject() { + return new PersonalNameSubject(); + } + + /** + * Create an instance of {@link OtherID } + * + */ + public OtherID createOtherID() { + return new OtherID(); + } + + /** + * Create an instance of {@link OtherAbstract } + * + */ + public OtherAbstract createOtherAbstract() { + return new OtherAbstract(); + } + + /** + * Create an instance of {@link InvestigatorList } + * + */ + public InvestigatorList createInvestigatorList() { + return new InvestigatorList(); + } + + /** + * Create an instance of {@link Investigator } + * + */ + public Investigator createInvestigator() { + return new Investigator(); + } + + /** + * Create an instance of {@link PubmedData } + * + */ + public PubmedData createPubmedData() { + return new PubmedData(); + } + + /** + * Create an instance of {@link PubmedBookArticleSet } + * + */ + public PubmedBookArticleSet createPubmedBookArticleSet() { + return new PubmedBookArticleSet(); + } + + /** + * Create an instance of {@link DeleteCitation } + * + */ + public DeleteCitation createDeleteCitation() { + return new DeleteCitation(); + } + + /** + * Create an instance of {@link URL } + * + */ + public URL createURL() { + return new URL(); + } + + /** + * Create an instance of {@link MedlineCitationSet } + * + */ + public MedlineCitationSet createMedlineCitationSet() { + return new MedlineCitationSet(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "MedlinePgn") + public JAXBElement createMedlinePgn(String value) { + return new JAXBElement(_MedlinePgn_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "EndPage") + public JAXBElement createEndPage(String value) { + return new JAXBElement(_EndPage_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "NlmUniqueID") + public JAXBElement createNlmUniqueID(String value) { + return new JAXBElement(_NlmUniqueID_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "ContractNumber") + public JAXBElement createContractNumber(String value) { + return new JAXBElement(_ContractNumber_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Issue") + public JAXBElement createIssue(String value) { + return new JAXBElement(_Issue_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "CopyrightInformation") + public JAXBElement createCopyrightInformation(String value) { + return new JAXBElement(_CopyrightInformation_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "ISOAbbreviation") + public JAXBElement createISOAbbreviation(String value) { + return new JAXBElement(_ISOAbbreviation_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "NumberOfReferences") + public JAXBElement createNumberOfReferences(String value) { + return new JAXBElement(_NumberOfReferences_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Month") + public JAXBElement createMonth(String value) { + return new JAXBElement(_Month_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Item") + public JAXBElement createItem(String value) { + return new JAXBElement(_Item_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "CitationSubset") + public JAXBElement createCitationSubset(String value) { + return new JAXBElement(_CitationSubset_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Text }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "VolumeTitle") + public JAXBElement createVolumeTitle(Text value) { + return new JAXBElement(_VolumeTitle_QNAME, Text.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "PublicationStatus") + public JAXBElement createPublicationStatus(String value) { + return new JAXBElement(_PublicationStatus_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "RefSource") + public JAXBElement createRefSource(String value) { + return new JAXBElement(_RefSource_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Text }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Affiliation") + public JAXBElement createAffiliation(Text value) { + return new JAXBElement(_Affiliation_QNAME, Text.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "SpaceFlightMission") + public JAXBElement createSpaceFlightMission(String value) { + return new JAXBElement(_SpaceFlightMission_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "ForeName") + public JAXBElement createForeName(String value) { + return new JAXBElement(_ForeName_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Hour") + public JAXBElement createHour(String value) { + return new JAXBElement(_Hour_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Text }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "format") + public JAXBElement createFormat(Text value) { + return new JAXBElement(_Format_QNAME, Text.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "MedlineTA") + public JAXBElement createMedlineTA(String value) { + return new JAXBElement(_MedlineTA_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Initials") + public JAXBElement createInitials(String value) { + return new JAXBElement(_Initials_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Edition") + public JAXBElement createEdition(String value) { + return new JAXBElement(_Edition_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Text }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Suffix") + public JAXBElement createSuffix(Text value) { + return new JAXBElement(_Suffix_QNAME, Text.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Isbn") + public JAXBElement createIsbn(String value) { + return new JAXBElement(_Isbn_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Volume") + public JAXBElement createVolume(String value) { + return new JAXBElement(_Volume_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Medium") + public JAXBElement createMedium(String value) { + return new JAXBElement(_Medium_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Text }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "PublisherName") + public JAXBElement createPublisherName(Text value) { + return new JAXBElement(_PublisherName_QNAME, Text.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Note") + public JAXBElement createNote(String value) { + return new JAXBElement(_Note_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Country") + public JAXBElement createCountry(String value) { + return new JAXBElement(_Country_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "LastName") + public JAXBElement createLastName(String value) { + return new JAXBElement(_LastName_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "AccessionNumber") + public JAXBElement createAccessionNumber(String value) { + return new JAXBElement(_AccessionNumber_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "MedlineDate") + public JAXBElement createMedlineDate(String value) { + return new JAXBElement(_MedlineDate_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Text }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "sub", substitutionHeadNamespace = "", substitutionHeadName = "format") + public JAXBElement createSub(Text value) { + return new JAXBElement(_Sub_QNAME, Text.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "DataBankName") + public JAXBElement createDataBankName(String value) { + return new JAXBElement(_DataBankName_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Text }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "sup", substitutionHeadNamespace = "", substitutionHeadName = "format") + public JAXBElement createSup(Text value) { + return new JAXBElement(_Sup_QNAME, Text.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "PublisherLocation") + public JAXBElement createPublisherLocation(String value) { + return new JAXBElement(_PublisherLocation_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Minute") + public JAXBElement createMinute(String value) { + return new JAXBElement(_Minute_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Language") + public JAXBElement createLanguage(String value) { + return new JAXBElement(_Language_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Season") + public JAXBElement createSeason(String value) { + return new JAXBElement(_Season_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "GeneSymbol") + public JAXBElement createGeneSymbol(String value) { + return new JAXBElement(_GeneSymbol_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "RegistryNumber") + public JAXBElement createRegistryNumber(String value) { + return new JAXBElement(_RegistryNumber_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Text }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "b", substitutionHeadNamespace = "", substitutionHeadName = "format") + public JAXBElement createB(Text value) { + return new JAXBElement(_B_QNAME, Text.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Agency") + public JAXBElement createAgency(String value) { + return new JAXBElement(_Agency_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Title") + public JAXBElement createTitle(String value) { + return new JAXBElement(_Title_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Text }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "i", substitutionHeadNamespace = "", substitutionHeadName = "format") + public JAXBElement createI(Text value) { + return new JAXBElement(_I_QNAME, Text.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Text }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "CitationString") + public JAXBElement createCitationString(Text value) { + return new JAXBElement(_CitationString_QNAME, Text.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Text }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "VernacularTitle") + public JAXBElement createVernacularTitle(Text value) { + return new JAXBElement(_VernacularTitle_QNAME, Text.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Year") + public JAXBElement createYear(String value) { + return new JAXBElement(_Year_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Second") + public JAXBElement createSecond(String value) { + return new JAXBElement(_Second_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "StartPage") + public JAXBElement createStartPage(String value) { + return new JAXBElement(_StartPage_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Text }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "u", substitutionHeadNamespace = "", substitutionHeadName = "format") + public JAXBElement createU(Text value) { + return new JAXBElement(_U_QNAME, Text.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "ReportNumber") + public JAXBElement createReportNumber(String value) { + return new JAXBElement(_ReportNumber_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Text }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "CollectiveName") + public JAXBElement createCollectiveName(Text value) { + return new JAXBElement(_CollectiveName_QNAME, Text.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "GrantID") + public JAXBElement createGrantID(String value) { + return new JAXBElement(_GrantID_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "ISSNLinking") + public JAXBElement createISSNLinking(String value) { + return new JAXBElement(_ISSNLinking_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Acronym") + public JAXBElement createAcronym(String value) { + return new JAXBElement(_Acronym_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "Day") + public JAXBElement createDay(String value) { + return new JAXBElement(_Day_QNAME, String.class, null, value); + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ObjectList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ObjectList.java new file mode 100644 index 00000000000..c38a9650336 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/ObjectList.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Object" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "object" +}) +@XmlRootElement(name = "ObjectList") +public class ObjectList { + + @XmlElement(name = "Object", required = true) + protected List object; + + /** + * Gets the value of the object property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the object property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getObject().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Object } + * + * + */ + public List getObject() { + if (object == null) { + object = new ArrayList(); + } + return this.object; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/OtherAbstract.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/OtherAbstract.java new file mode 100644 index 00000000000..9303e5f0097 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/OtherAbstract.java @@ -0,0 +1,169 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}AbstractText" maxOccurs="unbounded"/>
+ *         <element ref="{}CopyrightInformation" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{}attlist.OtherAbstract"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "abstractText", + "copyrightInformation" +}) +@XmlRootElement(name = "OtherAbstract") +public class OtherAbstract { + + @XmlElement(name = "AbstractText", required = true) + protected List abstractText; + @XmlElement(name = "CopyrightInformation") + protected String copyrightInformation; + @XmlAttribute(name = "Type", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String type; + @XmlAttribute(name = "Language") + @XmlSchemaType(name = "anySimpleType") + protected String language; + + /** + * Gets the value of the abstractText property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the abstractText property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAbstractText().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AbstractText } + * + * + */ + public List getAbstractText() { + if (abstractText == null) { + abstractText = new ArrayList(); + } + return this.abstractText; + } + + /** + * Gets the value of the copyrightInformation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyrightInformation() { + return copyrightInformation; + } + + /** + * Sets the value of the copyrightInformation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyrightInformation(String value) { + this.copyrightInformation = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLanguage() { + if (language == null) { + return "eng"; + } else { + return language; + } + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLanguage(String value) { + this.language = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/OtherID.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/OtherID.java new file mode 100644 index 00000000000..02a46d347bb --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/OtherID.java @@ -0,0 +1,99 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{}attlist.OtherID"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "OtherID") +public class OtherID { + + @XmlValue + protected String content; + @XmlAttribute(name = "Source", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String source; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the source property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSource() { + return source; + } + + /** + * Sets the value of the source property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSource(String value) { + this.source = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PMID.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PMID.java new file mode 100644 index 00000000000..9574fc7f9b9 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PMID.java @@ -0,0 +1,98 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{}attlist.PMID"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "PMID") +public class PMID { + + @XmlValue + protected String content; + @XmlAttribute(name = "Version", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String version; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the version property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersion() { + return version; + } + + /** + * Sets the value of the version property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersion(String value) { + this.version = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Pagination.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Pagination.java new file mode 100644 index 00000000000..19a31d91c84 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Pagination.java @@ -0,0 +1,101 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice>
+ *         <sequence>
+ *           <element ref="{}StartPage"/>
+ *           <element ref="{}EndPage" minOccurs="0"/>
+ *           <element ref="{}MedlinePgn" minOccurs="0"/>
+ *         </sequence>
+ *         <element ref="{}MedlinePgn"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "Pagination") +public class Pagination { + + @XmlElementRefs({ + @XmlElementRef(name = "EndPage", type = JAXBElement.class, required = false), + @XmlElementRef(name = "MedlinePgn", type = JAXBElement.class, required = false), + @XmlElementRef(name = "StartPage", type = JAXBElement.class, required = false) + }) + protected List> content; + + /** + * Gets the rest of the content model. + * + *

+ * You are getting this "catch-all" property because of the following reason: + * The field name "MedlinePgn" is used by two different parts of a schema. See: + * line 752 of file:/C:/git-repositories/jabref/jabref-multi-module-build/org.jabref.gui/src/main/resources/xjc/medline/nlmmedlinecitationset_160101.xsd + * line 750 of file:/C:/git-repositories/jabref/jabref-multi-module-build/org.jabref.gui/src/main/resources/xjc/medline/nlmmedlinecitationset_160101.xsd + *

+ * To get rid of this property, apply a property customization to one + * of both of the following declarations to change their names: + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getContent().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + * + */ + public List> getContent() { + if (content == null) { + content = new ArrayList>(); + } + return this.content; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Param.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Param.java new file mode 100644 index 00000000000..ad214420c0f --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Param.java @@ -0,0 +1,71 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <extension base="{}text">
+ *       <attGroup ref="{}attlist.Param"/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "Param") +public class Param + extends Text +{ + + @XmlAttribute(name = "Name", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String name; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PersonalNameSubject.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PersonalNameSubject.java new file mode 100644 index 00000000000..350d87ca072 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PersonalNameSubject.java @@ -0,0 +1,155 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}LastName"/>
+ *         <element ref="{}ForeName" minOccurs="0"/>
+ *         <element ref="{}Initials" minOccurs="0"/>
+ *         <element ref="{}Suffix" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "lastName", + "foreName", + "initials", + "suffix" +}) +@XmlRootElement(name = "PersonalNameSubject") +public class PersonalNameSubject { + + @XmlElement(name = "LastName", required = true) + protected String lastName; + @XmlElement(name = "ForeName") + protected String foreName; + @XmlElement(name = "Initials") + protected String initials; + @XmlElement(name = "Suffix") + protected Text suffix; + + /** + * Gets the value of the lastName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastName() { + return lastName; + } + + /** + * Sets the value of the lastName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastName(String value) { + this.lastName = value; + } + + /** + * Gets the value of the foreName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getForeName() { + return foreName; + } + + /** + * Sets the value of the foreName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setForeName(String value) { + this.foreName = value; + } + + /** + * Gets the value of the initials property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInitials() { + return initials; + } + + /** + * Sets the value of the initials property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInitials(String value) { + this.initials = value; + } + + /** + * Gets the value of the suffix property. + * + * @return + * possible object is + * {@link Text } + * + */ + public Text getSuffix() { + return suffix; + } + + /** + * Sets the value of the suffix property. + * + * @param value + * allowed object is + * {@link Text } + * + */ + public void setSuffix(Text value) { + this.suffix = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PersonalNameSubjectList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PersonalNameSubjectList.java new file mode 100644 index 00000000000..105f9afce33 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PersonalNameSubjectList.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}PersonalNameSubject" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "personalNameSubject" +}) +@XmlRootElement(name = "PersonalNameSubjectList") +public class PersonalNameSubjectList { + + @XmlElement(name = "PersonalNameSubject", required = true) + protected List personalNameSubject; + + /** + * Gets the value of the personalNameSubject property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the personalNameSubject property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPersonalNameSubject().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PersonalNameSubject } + * + * + */ + public List getPersonalNameSubject() { + if (personalNameSubject == null) { + personalNameSubject = new ArrayList(); + } + return this.personalNameSubject; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubDate.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubDate.java new file mode 100644 index 00000000000..c8cc0026a42 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubDate.java @@ -0,0 +1,189 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice>
+ *         <sequence>
+ *           <element ref="{}Year"/>
+ *           <choice minOccurs="0">
+ *             <sequence>
+ *               <element ref="{}Month"/>
+ *               <element ref="{}Day" minOccurs="0"/>
+ *             </sequence>
+ *             <element ref="{}Season"/>
+ *           </choice>
+ *         </sequence>
+ *         <element ref="{}MedlineDate"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "year", + "month", + "day", + "season", + "medlineDate" +}) +@XmlRootElement(name = "PubDate") +public class PubDate { + + @XmlElement(name = "Year") + protected String year; + @XmlElement(name = "Month") + protected String month; + @XmlElement(name = "Day") + protected String day; + @XmlElement(name = "Season") + protected String season; + @XmlElement(name = "MedlineDate") + protected String medlineDate; + + /** + * Gets the value of the year property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setYear(String value) { + this.year = value; + } + + /** + * Gets the value of the month property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMonth() { + return month; + } + + /** + * Sets the value of the month property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMonth(String value) { + this.month = value; + } + + /** + * Gets the value of the day property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDay() { + return day; + } + + /** + * Sets the value of the day property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDay(String value) { + this.day = value; + } + + /** + * Gets the value of the season property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSeason() { + return season; + } + + /** + * Sets the value of the season property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSeason(String value) { + this.season = value; + } + + /** + * Gets the value of the medlineDate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMedlineDate() { + return medlineDate; + } + + /** + * Sets the value of the medlineDate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMedlineDate(String value) { + this.medlineDate = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubMedPubDate.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubMedPubDate.java new file mode 100644 index 00000000000..ef3464a31f8 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubMedPubDate.java @@ -0,0 +1,69 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <extension base="{}normal.date">
+ *       <attGroup ref="{}attlist.PubMedPubDate"/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "PubMedPubDate") +public class PubMedPubDate + extends NormalDate +{ + + @XmlAttribute(name = "PubStatus", required = true) + protected String pubStatus; + + /** + * Gets the value of the pubStatus property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPubStatus() { + return pubStatus; + } + + /** + * Sets the value of the pubStatus property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPubStatus(String value) { + this.pubStatus = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubStatusInt.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubStatusInt.java new file mode 100644 index 00000000000..715beecf33f --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubStatusInt.java @@ -0,0 +1,79 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for pub.status.int. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="pub.status.int">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
+ *     <enumeration value="pmc"/>
+ *     <enumeration value="pmcr"/>
+ *     <enumeration value="pubmed"/>
+ *     <enumeration value="pubmedr"/>
+ *     <enumeration value="premedline"/>
+ *     <enumeration value="medline"/>
+ *     <enumeration value="medliner"/>
+ *     <enumeration value="entrez"/>
+ *     <enumeration value="pmc-release"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "pub.status.int") +@XmlEnum +public enum PubStatusInt { + + @XmlEnumValue("pmc") + PMC("pmc"), + @XmlEnumValue("pmcr") + PMCR("pmcr"), + @XmlEnumValue("pubmed") + PUBMED("pubmed"), + @XmlEnumValue("pubmedr") + PUBMEDR("pubmedr"), + @XmlEnumValue("premedline") + PREMEDLINE("premedline"), + @XmlEnumValue("medline") + MEDLINE("medline"), + @XmlEnumValue("medliner") + MEDLINER("medliner"), + @XmlEnumValue("entrez") + ENTREZ("entrez"), + @XmlEnumValue("pmc-release") + PMC_RELEASE("pmc-release"); + private final String value; + + PubStatusInt(String v) { + value = v; + } + + public String value() { + return value; + } + + public static PubStatusInt fromValue(String v) { + for (PubStatusInt c: PubStatusInt.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PublicationType.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PublicationType.java new file mode 100644 index 00000000000..bc6f58c5172 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PublicationType.java @@ -0,0 +1,98 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{}attlist.PublicationType"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "PublicationType") +public class PublicationType { + + @XmlValue + protected String content; + @XmlAttribute(name = "UI", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String ui; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the ui property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUI() { + return ui; + } + + /** + * Sets the value of the ui property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUI(String value) { + this.ui = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PublicationTypeList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PublicationTypeList.java new file mode 100644 index 00000000000..2b068bd15e9 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PublicationTypeList.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}PublicationType" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "publicationType" +}) +@XmlRootElement(name = "PublicationTypeList") +public class PublicationTypeList { + + @XmlElement(name = "PublicationType", required = true) + protected List publicationType; + + /** + * Gets the value of the publicationType property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the publicationType property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPublicationType().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PublicationType } + * + * + */ + public List getPublicationType() { + if (publicationType == null) { + publicationType = new ArrayList(); + } + return this.publicationType; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Publisher.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Publisher.java new file mode 100644 index 00000000000..38ea6b5d9d0 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Publisher.java @@ -0,0 +1,99 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}PublisherName"/>
+ *         <element ref="{}PublisherLocation" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "publisherName", + "publisherLocation" +}) +@XmlRootElement(name = "Publisher") +public class Publisher { + + @XmlElement(name = "PublisherName", required = true) + protected Text publisherName; + @XmlElement(name = "PublisherLocation") + protected String publisherLocation; + + /** + * Gets the value of the publisherName property. + * + * @return + * possible object is + * {@link Text } + * + */ + public Text getPublisherName() { + return publisherName; + } + + /** + * Sets the value of the publisherName property. + * + * @param value + * allowed object is + * {@link Text } + * + */ + public void setPublisherName(Text value) { + this.publisherName = value; + } + + /** + * Gets the value of the publisherLocation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPublisherLocation() { + return publisherLocation; + } + + /** + * Sets the value of the publisherLocation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPublisherLocation(String value) { + this.publisherLocation = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedArticle.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedArticle.java new file mode 100644 index 00000000000..dc46ad0307c --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedArticle.java @@ -0,0 +1,99 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}MedlineCitation"/>
+ *         <element ref="{}PubmedData" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "medlineCitation", + "pubmedData" +}) +@XmlRootElement(name = "PubmedArticle") +public class PubmedArticle { + + @XmlElement(name = "MedlineCitation", required = true) + protected MedlineCitation medlineCitation; + @XmlElement(name = "PubmedData") + protected PubmedData pubmedData; + + /** + * Gets the value of the medlineCitation property. + * + * @return + * possible object is + * {@link MedlineCitation } + * + */ + public MedlineCitation getMedlineCitation() { + return medlineCitation; + } + + /** + * Sets the value of the medlineCitation property. + * + * @param value + * allowed object is + * {@link MedlineCitation } + * + */ + public void setMedlineCitation(MedlineCitation value) { + this.medlineCitation = value; + } + + /** + * Gets the value of the pubmedData property. + * + * @return + * possible object is + * {@link PubmedData } + * + */ + public PubmedData getPubmedData() { + return pubmedData; + } + + /** + * Sets the value of the pubmedData property. + * + * @param value + * allowed object is + * {@link PubmedData } + * + */ + public void setPubmedData(PubmedData value) { + this.pubmedData = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedArticleSet.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedArticleSet.java new file mode 100644 index 00000000000..38d0138c859 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedArticleSet.java @@ -0,0 +1,84 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element ref="{}PubmedArticle"/>
+ *         <element ref="{}PubmedBookArticle"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "pubmedArticleOrPubmedBookArticle" +}) +@XmlRootElement(name = "PubmedArticleSet") +public class PubmedArticleSet { + + @XmlElements({ + @XmlElement(name = "PubmedArticle", type = PubmedArticle.class), + @XmlElement(name = "PubmedBookArticle", type = PubmedBookArticle.class) + }) + protected List pubmedArticleOrPubmedBookArticle; + + /** + * Gets the value of the pubmedArticleOrPubmedBookArticle property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pubmedArticleOrPubmedBookArticle property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPubmedArticleOrPubmedBookArticle().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PubmedArticle } + * {@link PubmedBookArticle } + * + * + */ + public List getPubmedArticleOrPubmedBookArticle() { + if (pubmedArticleOrPubmedBookArticle == null) { + pubmedArticleOrPubmedBookArticle = new ArrayList(); + } + return this.pubmedArticleOrPubmedBookArticle; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedBookArticle.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedBookArticle.java new file mode 100644 index 00000000000..0c5584f3154 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedBookArticle.java @@ -0,0 +1,99 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}BookDocument"/>
+ *         <element ref="{}PubmedBookData" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "bookDocument", + "pubmedBookData" +}) +@XmlRootElement(name = "PubmedBookArticle") +public class PubmedBookArticle { + + @XmlElement(name = "BookDocument", required = true) + protected BookDocument bookDocument; + @XmlElement(name = "PubmedBookData") + protected PubmedBookData pubmedBookData; + + /** + * Gets the value of the bookDocument property. + * + * @return + * possible object is + * {@link BookDocument } + * + */ + public BookDocument getBookDocument() { + return bookDocument; + } + + /** + * Sets the value of the bookDocument property. + * + * @param value + * allowed object is + * {@link BookDocument } + * + */ + public void setBookDocument(BookDocument value) { + this.bookDocument = value; + } + + /** + * Gets the value of the pubmedBookData property. + * + * @return + * possible object is + * {@link PubmedBookData } + * + */ + public PubmedBookData getPubmedBookData() { + return pubmedBookData; + } + + /** + * Sets the value of the pubmedBookData property. + * + * @param value + * allowed object is + * {@link PubmedBookData } + * + */ + public void setPubmedBookData(PubmedBookData value) { + this.pubmedBookData = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedBookArticleSet.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedBookArticleSet.java new file mode 100644 index 00000000000..9a73c4133a1 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedBookArticleSet.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}PubmedBookArticle" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "pubmedBookArticle" +}) +@XmlRootElement(name = "PubmedBookArticleSet") +public class PubmedBookArticleSet { + + @XmlElement(name = "PubmedBookArticle") + protected List pubmedBookArticle; + + /** + * Gets the value of the pubmedBookArticle property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pubmedBookArticle property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPubmedBookArticle().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PubmedBookArticle } + * + * + */ + public List getPubmedBookArticle() { + if (pubmedBookArticle == null) { + pubmedBookArticle = new ArrayList(); + } + return this.pubmedBookArticle; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedBookData.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedBookData.java new file mode 100644 index 00000000000..f5467bc76c9 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedBookData.java @@ -0,0 +1,155 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}History" minOccurs="0"/>
+ *         <element ref="{}PublicationStatus"/>
+ *         <element ref="{}ArticleIdList"/>
+ *         <element ref="{}ObjectList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "history", + "publicationStatus", + "articleIdList", + "objectList" +}) +@XmlRootElement(name = "PubmedBookData") +public class PubmedBookData { + + @XmlElement(name = "History") + protected History history; + @XmlElement(name = "PublicationStatus", required = true) + protected String publicationStatus; + @XmlElement(name = "ArticleIdList", required = true) + protected ArticleIdList articleIdList; + @XmlElement(name = "ObjectList") + protected ObjectList objectList; + + /** + * Gets the value of the history property. + * + * @return + * possible object is + * {@link History } + * + */ + public History getHistory() { + return history; + } + + /** + * Sets the value of the history property. + * + * @param value + * allowed object is + * {@link History } + * + */ + public void setHistory(History value) { + this.history = value; + } + + /** + * Gets the value of the publicationStatus property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPublicationStatus() { + return publicationStatus; + } + + /** + * Sets the value of the publicationStatus property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPublicationStatus(String value) { + this.publicationStatus = value; + } + + /** + * Gets the value of the articleIdList property. + * + * @return + * possible object is + * {@link ArticleIdList } + * + */ + public ArticleIdList getArticleIdList() { + return articleIdList; + } + + /** + * Sets the value of the articleIdList property. + * + * @param value + * allowed object is + * {@link ArticleIdList } + * + */ + public void setArticleIdList(ArticleIdList value) { + this.articleIdList = value; + } + + /** + * Gets the value of the objectList property. + * + * @return + * possible object is + * {@link ObjectList } + * + */ + public ObjectList getObjectList() { + return objectList; + } + + /** + * Sets the value of the objectList property. + * + * @param value + * allowed object is + * {@link ObjectList } + * + */ + public void setObjectList(ObjectList value) { + this.objectList = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedData.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedData.java new file mode 100644 index 00000000000..ffe1f89fec2 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/PubmedData.java @@ -0,0 +1,155 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}History" minOccurs="0"/>
+ *         <element ref="{}PublicationStatus"/>
+ *         <element ref="{}ArticleIdList"/>
+ *         <element ref="{}ObjectList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "history", + "publicationStatus", + "articleIdList", + "objectList" +}) +@XmlRootElement(name = "PubmedData") +public class PubmedData { + + @XmlElement(name = "History") + protected History history; + @XmlElement(name = "PublicationStatus", required = true) + protected String publicationStatus; + @XmlElement(name = "ArticleIdList", required = true) + protected ArticleIdList articleIdList; + @XmlElement(name = "ObjectList") + protected ObjectList objectList; + + /** + * Gets the value of the history property. + * + * @return + * possible object is + * {@link History } + * + */ + public History getHistory() { + return history; + } + + /** + * Sets the value of the history property. + * + * @param value + * allowed object is + * {@link History } + * + */ + public void setHistory(History value) { + this.history = value; + } + + /** + * Gets the value of the publicationStatus property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPublicationStatus() { + return publicationStatus; + } + + /** + * Sets the value of the publicationStatus property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPublicationStatus(String value) { + this.publicationStatus = value; + } + + /** + * Gets the value of the articleIdList property. + * + * @return + * possible object is + * {@link ArticleIdList } + * + */ + public ArticleIdList getArticleIdList() { + return articleIdList; + } + + /** + * Sets the value of the articleIdList property. + * + * @param value + * allowed object is + * {@link ArticleIdList } + * + */ + public void setArticleIdList(ArticleIdList value) { + this.articleIdList = value; + } + + /** + * Gets the value of the objectList property. + * + * @return + * possible object is + * {@link ObjectList } + * + */ + public ObjectList getObjectList() { + return objectList; + } + + /** + * Sets the value of the objectList property. + * + * @param value + * allowed object is + * {@link ObjectList } + * + */ + public void setObjectList(ObjectList value) { + this.objectList = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/QualifierName.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/QualifierName.java new file mode 100644 index 00000000000..5c952f90574 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/QualifierName.java @@ -0,0 +1,131 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{}attlist.QualifierName"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "QualifierName") +public class QualifierName { + + @XmlValue + protected String content; + @XmlAttribute(name = "MajorTopicYN") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String majorTopicYN; + @XmlAttribute(name = "UI", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String ui; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the majorTopicYN property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMajorTopicYN() { + if (majorTopicYN == null) { + return "N"; + } else { + return majorTopicYN; + } + } + + /** + * Sets the value of the majorTopicYN property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMajorTopicYN(String value) { + this.majorTopicYN = value; + } + + /** + * Gets the value of the ui property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUI() { + return ui; + } + + /** + * Sets the value of the ui property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUI(String value) { + this.ui = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Section.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Section.java new file mode 100644 index 00000000000..254b37ab242 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Section.java @@ -0,0 +1,134 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}LocationLabel" minOccurs="0"/>
+ *         <element ref="{}SectionTitle"/>
+ *         <element ref="{}Section" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "locationLabel", + "sectionTitle", + "section" +}) +@XmlRootElement(name = "Section") +public class Section { + + @XmlElement(name = "LocationLabel") + protected LocationLabel locationLabel; + @XmlElement(name = "SectionTitle", required = true) + protected SectionTitle sectionTitle; + @XmlElement(name = "Section") + protected List
section; + + /** + * Gets the value of the locationLabel property. + * + * @return + * possible object is + * {@link LocationLabel } + * + */ + public LocationLabel getLocationLabel() { + return locationLabel; + } + + /** + * Sets the value of the locationLabel property. + * + * @param value + * allowed object is + * {@link LocationLabel } + * + */ + public void setLocationLabel(LocationLabel value) { + this.locationLabel = value; + } + + /** + * Gets the value of the sectionTitle property. + * + * @return + * possible object is + * {@link SectionTitle } + * + */ + public SectionTitle getSectionTitle() { + return sectionTitle; + } + + /** + * Sets the value of the sectionTitle property. + * + * @param value + * allowed object is + * {@link SectionTitle } + * + */ + public void setSectionTitle(SectionTitle value) { + this.sectionTitle = value; + } + + /** + * Gets the value of the section property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the section property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSection().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Section } + * + * + */ + public List

getSection() { + if (section == null) { + section = new ArrayList
(); + } + return this.section; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/SectionTitle.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/SectionTitle.java new file mode 100644 index 00000000000..ab79cec2cda --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/SectionTitle.java @@ -0,0 +1,125 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <extension base="{}text">
+ *       <attGroup ref="{}attlist.SectionTitle"/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "SectionTitle") +public class SectionTitle + extends Text +{ + + @XmlAttribute(name = "book") + @XmlSchemaType(name = "anySimpleType") + protected String book; + @XmlAttribute(name = "part") + @XmlSchemaType(name = "anySimpleType") + protected String part; + @XmlAttribute(name = "sec") + @XmlSchemaType(name = "anySimpleType") + protected String sec; + + /** + * Gets the value of the book property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBook() { + return book; + } + + /** + * Sets the value of the book property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBook(String value) { + this.book = value; + } + + /** + * Gets the value of the part property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPart() { + return part; + } + + /** + * Sets the value of the part property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPart(String value) { + this.part = value; + } + + /** + * Gets the value of the sec property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSec() { + return sec; + } + + /** + * Sets the value of the sec property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSec(String value) { + this.sec = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Sections.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Sections.java new file mode 100644 index 00000000000..9be94c85c4a --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Sections.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}Section" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "section" +}) +@XmlRootElement(name = "Sections") +public class Sections { + + @XmlElement(name = "Section", required = true) + protected List
section; + + /** + * Gets the value of the section property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the section property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSection().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Section } + * + * + */ + public List

getSection() { + if (section == null) { + section = new ArrayList
(); + } + return this.section; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/SupplMeshList.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/SupplMeshList.java new file mode 100644 index 00000000000..31d57542b88 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/SupplMeshList.java @@ -0,0 +1,78 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}SupplMeshName" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "supplMeshName" +}) +@XmlRootElement(name = "SupplMeshList") +public class SupplMeshList { + + @XmlElement(name = "SupplMeshName", required = true) + protected List supplMeshName; + + /** + * Gets the value of the supplMeshName property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the supplMeshName property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSupplMeshName().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link SupplMeshName } + * + * + */ + public List getSupplMeshName() { + if (supplMeshName == null) { + supplMeshName = new ArrayList(); + } + return this.supplMeshName; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/SupplMeshName.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/SupplMeshName.java new file mode 100644 index 00000000000..6fff834f664 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/SupplMeshName.java @@ -0,0 +1,127 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{}attlist.SupplMeshName"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "SupplMeshName") +public class SupplMeshName { + + @XmlValue + protected String content; + @XmlAttribute(name = "Type", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String type; + @XmlAttribute(name = "UI", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String ui; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the ui property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUI() { + return ui; + } + + /** + * Sets the value of the ui property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUI(String value) { + this.ui = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Text.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Text.java new file mode 100644 index 00000000000..51fe1267dda --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/Text.java @@ -0,0 +1,96 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for text complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="text">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{}format" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "text", propOrder = { + "content" +}) +@XmlSeeAlso({ + Param.class, + Keyword.class, + SectionTitle.class, + AbstractText.class, + ArticleTitle.class, + BookTitle.class, + CollectionTitle.class +}) +public class Text { + + @XmlElementRef(name = "format", type = JAXBElement.class, required = false) + @XmlMixed + protected List content; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getContent().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link Text }{@code >} + * {@link JAXBElement }{@code <}{@link Text }{@code >} + * {@link JAXBElement }{@code <}{@link Text }{@code >} + * {@link JAXBElement }{@code <}{@link Text }{@code >} + * {@link JAXBElement }{@code <}{@link Text }{@code >} + * {@link String } + * {@link JAXBElement }{@code <}{@link Text }{@code >} + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/URL.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/URL.java new file mode 100644 index 00000000000..76c602d41c0 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/medline/URL.java @@ -0,0 +1,125 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:29 PM CET +// + + +package org.jabref.logic.importer.fileformat.medline; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{}attlist.URL"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "content" +}) +@XmlRootElement(name = "URL") +public class URL { + + @XmlValue + protected String content; + @XmlAttribute(name = "lang") + protected IsoLanguageCodes lang; + @XmlAttribute(name = "Type") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String type; + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link IsoLanguageCodes } + * + */ + public IsoLanguageCodes getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link IsoLanguageCodes } + * + */ + public void setLang(IsoLanguageCodes value) { + this.lang = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/AbstractDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/AbstractDefinition.java new file mode 100644 index 00000000000..5aac6dd2d3e --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/AbstractDefinition.java @@ -0,0 +1,396 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for abstractDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="abstractDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}altFormatAttributeGroup"/>
+ *       <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="shareable" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="no" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "abstractDefinition", namespace = "http://www.loc.gov/mods/v3") +public class AbstractDefinition + extends StringPlusLanguage +{ + + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "type") + protected String atType; + @XmlAttribute(name = "shareable") + @XmlSchemaType(name = "anySimpleType") + protected String shareable; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "altFormat") + @XmlSchemaType(name = "anyURI") + protected String altFormat; + @XmlAttribute(name = "contentType") + protected String contentType; + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected String type; + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + @XmlSchemaType(name = "anyURI") + protected String href; + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected String show; + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected String actuate; + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the atType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtType() { + return atType; + } + + /** + * Sets the value of the atType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtType(String value) { + this.atType = value; + } + + /** + * Gets the value of the shareable property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShareable() { + if (shareable == null) { + return "no"; + } else { + return shareable; + } + } + + /** + * Sets the value of the shareable property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShareable(String value) { + this.shareable = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the altFormat property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltFormat() { + return altFormat; + } + + /** + * Sets the value of the altFormat property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltFormat(String value) { + this.altFormat = value; + } + + /** + * Gets the value of the contentType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContentType() { + return contentType; + } + + /** + * Sets the value of the contentType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContentType(String value) { + this.contentType = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "simple"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShow(String value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActuate(String value) { + this.actuate = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/AccessConditionDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/AccessConditionDefinition.java new file mode 100644 index 00000000000..ed59599354e --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/AccessConditionDefinition.java @@ -0,0 +1,442 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for accessConditionDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="accessConditionDefinition">
+ *   <complexContent>
+ *     <extension base="{http://www.loc.gov/mods/v3}extensionDefinition">
+ *       <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}languageAttributeGroup"/>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}altFormatAttributeGroup"/>
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "accessConditionDefinition", namespace = "http://www.loc.gov/mods/v3") +public class AccessConditionDefinition + extends ExtensionDefinition +{ + + @XmlAttribute(name = "type") + protected String atType; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected String type; + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + @XmlSchemaType(name = "anyURI") + protected String href; + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected String show; + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected String actuate; + @XmlAttribute(name = "lang") + protected String atlang; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; + @XmlAttribute(name = "script") + protected String script; + @XmlAttribute(name = "transliteration") + protected String transliteration; + @XmlAttribute(name = "altFormat") + @XmlSchemaType(name = "anyURI") + protected String altFormat; + @XmlAttribute(name = "contentType") + protected String contentType; + + /** + * Gets the value of the atType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtType() { + return atType; + } + + /** + * Sets the value of the atType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtType(String value) { + this.atType = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "simple"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShow(String value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActuate(String value) { + this.actuate = value; + } + + /** + * Gets the value of the atlang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtlang() { + return atlang; + } + + /** + * Sets the value of the atlang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtlang(String value) { + this.atlang = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + + /** + * Gets the value of the script property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScript() { + return script; + } + + /** + * Sets the value of the script property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScript(String value) { + this.script = value; + } + + /** + * Gets the value of the transliteration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTransliteration() { + return transliteration; + } + + /** + * Sets the value of the transliteration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTransliteration(String value) { + this.transliteration = value; + } + + /** + * Gets the value of the altFormat property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltFormat() { + return altFormat; + } + + /** + * Sets the value of the altFormat property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltFormat(String value) { + this.altFormat = value; + } + + /** + * Gets the value of the contentType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContentType() { + return contentType; + } + + /** + * Sets the value of the contentType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContentType(String value) { + this.contentType = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/AreaDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/AreaDefinition.java new file mode 100644 index 00000000000..a7cab3d4596 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/AreaDefinition.java @@ -0,0 +1,69 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for areaDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="areaDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>hierarchicalPart">
+ *       <attribute name="areaType" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "areaDefinition", namespace = "http://www.loc.gov/mods/v3") +public class AreaDefinition + extends HierarchicalPart +{ + + @XmlAttribute(name = "areaType") + @XmlSchemaType(name = "anySimpleType") + protected String areaType; + + /** + * Gets the value of the areaType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAreaType() { + return areaType; + } + + /** + * Sets the value of the areaType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAreaType(String value) { + this.areaType = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/CartographicsDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/CartographicsDefinition.java new file mode 100644 index 00000000000..521df08155c --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/CartographicsDefinition.java @@ -0,0 +1,248 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for cartographicsDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cartographicsDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.loc.gov/mods/v3}scale" minOccurs="0"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}projection" minOccurs="0"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}coordinates" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}cartographicExtension" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}authorityAttributeGroup"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cartographicsDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "scale", + "projection", + "coordinates", + "cartographicExtension" +}) +public class CartographicsDefinition { + + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected StringPlusLanguage scale; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected StringPlusLanguage projection; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected List coordinates; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected List cartographicExtension; + @XmlAttribute(name = "authority") + protected String authority; + @XmlAttribute(name = "authorityURI") + @XmlSchemaType(name = "anyURI") + protected String authorityURI; + @XmlAttribute(name = "valueURI") + @XmlSchemaType(name = "anyURI") + protected String valueURI; + + /** + * Gets the value of the scale property. + * + * @return + * possible object is + * {@link StringPlusLanguage } + * + */ + public StringPlusLanguage getScale() { + return scale; + } + + /** + * Sets the value of the scale property. + * + * @param value + * allowed object is + * {@link StringPlusLanguage } + * + */ + public void setScale(StringPlusLanguage value) { + this.scale = value; + } + + /** + * Gets the value of the projection property. + * + * @return + * possible object is + * {@link StringPlusLanguage } + * + */ + public StringPlusLanguage getProjection() { + return projection; + } + + /** + * Sets the value of the projection property. + * + * @param value + * allowed object is + * {@link StringPlusLanguage } + * + */ + public void setProjection(StringPlusLanguage value) { + this.projection = value; + } + + /** + * Gets the value of the coordinates property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the coordinates property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCoordinates().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link StringPlusLanguage } + * + * + */ + public List getCoordinates() { + if (coordinates == null) { + coordinates = new ArrayList(); + } + return this.coordinates; + } + + /** + * Gets the value of the cartographicExtension property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the cartographicExtension property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCartographicExtension().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ExtensionDefinition } + * + * + */ + public List getCartographicExtension() { + if (cartographicExtension == null) { + cartographicExtension = new ArrayList(); + } + return this.cartographicExtension; + } + + /** + * Gets the value of the authority property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthority() { + return authority; + } + + /** + * Sets the value of the authority property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthority(String value) { + this.authority = value; + } + + /** + * Gets the value of the authorityURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthorityURI() { + return authorityURI; + } + + /** + * Sets the value of the authorityURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthorityURI(String value) { + this.authorityURI = value; + } + + /** + * Gets the value of the valueURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValueURI() { + return valueURI; + } + + /** + * Sets the value of the valueURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValueURI(String value) { + this.valueURI = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/CitySectionDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/CitySectionDefinition.java new file mode 100644 index 00000000000..98ec5e59847 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/CitySectionDefinition.java @@ -0,0 +1,69 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for citySectionDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="citySectionDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>hierarchicalPart">
+ *       <attribute name="citySectionType" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "citySectionDefinition", namespace = "http://www.loc.gov/mods/v3") +public class CitySectionDefinition + extends HierarchicalPart +{ + + @XmlAttribute(name = "citySectionType") + @XmlSchemaType(name = "anySimpleType") + protected String citySectionType; + + /** + * Gets the value of the citySectionType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCitySectionType() { + return citySectionType; + } + + /** + * Sets the value of the citySectionType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCitySectionType(String value) { + this.citySectionType = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ClassificationDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ClassificationDefinition.java new file mode 100644 index 00000000000..55491269b29 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ClassificationDefinition.java @@ -0,0 +1,181 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for classificationDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="classificationDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguagePlusAuthority">
+ *       <attribute name="edition" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="usage" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="primary" />
+ *       <attribute name="generator" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "classificationDefinition", namespace = "http://www.loc.gov/mods/v3") +public class ClassificationDefinition + extends StringPlusLanguagePlusAuthority +{ + + @XmlAttribute(name = "edition") + protected String edition; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "usage") + @XmlSchemaType(name = "anySimpleType") + protected String usage; + @XmlAttribute(name = "generator") + protected String generator; + + /** + * Gets the value of the edition property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEdition() { + return edition; + } + + /** + * Sets the value of the edition property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEdition(String value) { + this.edition = value; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the usage property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUsage() { + if (usage == null) { + return "primary"; + } else { + return usage; + } + } + + /** + * Sets the value of the usage property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUsage(String value) { + this.usage = value; + } + + /** + * Gets the value of the generator property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGenerator() { + return generator; + } + + /** + * Sets the value of the generator property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGenerator(String value) { + this.generator = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/CodeOrText.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/CodeOrText.java new file mode 100644 index 00000000000..7bbd4815f1e --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/CodeOrText.java @@ -0,0 +1,58 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for codeOrText. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="codeOrText">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="code"/>
+ *     <enumeration value="text"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "codeOrText", namespace = "http://www.loc.gov/mods/v3") +@XmlEnum +public enum CodeOrText { + + @XmlEnumValue("code") + CODE("code"), + @XmlEnumValue("text") + TEXT("text"); + private final String value; + + CodeOrText(String v) { + value = v; + } + + public String value() { + return value; + } + + public static CodeOrText fromValue(String v) { + for (CodeOrText c: CodeOrText.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/CopyInformationDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/CopyInformationDefinition.java new file mode 100644 index 00000000000..844a807ecc2 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/CopyInformationDefinition.java @@ -0,0 +1,583 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for copyInformationDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="copyInformationDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.loc.gov/mods/v3}form" minOccurs="0"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}subLocation" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}shelfLocator" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}electronicLocator" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="note" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <simpleContent>
+ *               <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *                 <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+ *                 <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *               </extension>
+ *             </simpleContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://www.loc.gov/mods/v3}enumerationAndChronology" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}itemIdentifier" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "copyInformationDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "form", + "subLocation", + "shelfLocator", + "electronicLocator", + "note", + "enumerationAndChronology", + "itemIdentifier" +}) +public class CopyInformationDefinition { + + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected FormDefinition form; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected List subLocation; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected List shelfLocator; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected List electronicLocator; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected List note; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected List enumerationAndChronology; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected List itemIdentifier; + + /** + * Gets the value of the form property. + * + * @return + * possible object is + * {@link FormDefinition } + * + */ + public FormDefinition getForm() { + return form; + } + + /** + * Sets the value of the form property. + * + * @param value + * allowed object is + * {@link FormDefinition } + * + */ + public void setForm(FormDefinition value) { + this.form = value; + } + + /** + * Gets the value of the subLocation property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the subLocation property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSubLocation().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link StringPlusLanguage } + * + * + */ + public List getSubLocation() { + if (subLocation == null) { + subLocation = new ArrayList(); + } + return this.subLocation; + } + + /** + * Gets the value of the shelfLocator property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the shelfLocator property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getShelfLocator().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link StringPlusLanguage } + * + * + */ + public List getShelfLocator() { + if (shelfLocator == null) { + shelfLocator = new ArrayList(); + } + return this.shelfLocator; + } + + /** + * Gets the value of the electronicLocator property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the electronicLocator property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getElectronicLocator().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link StringPlusLanguage } + * + * + */ + public List getElectronicLocator() { + if (electronicLocator == null) { + electronicLocator = new ArrayList(); + } + return this.electronicLocator; + } + + /** + * Gets the value of the note property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the note property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getNote().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CopyInformationDefinition.Note } + * + * + */ + public List getNote() { + if (note == null) { + note = new ArrayList(); + } + return this.note; + } + + /** + * Gets the value of the enumerationAndChronology property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the enumerationAndChronology property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEnumerationAndChronology().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link EnumerationAndChronologyDefinition } + * + * + */ + public List getEnumerationAndChronology() { + if (enumerationAndChronology == null) { + enumerationAndChronology = new ArrayList(); + } + return this.enumerationAndChronology; + } + + /** + * Gets the value of the itemIdentifier property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the itemIdentifier property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getItemIdentifier().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ItemIdentifierDefinition } + * + * + */ + public List getItemIdentifier() { + if (itemIdentifier == null) { + itemIdentifier = new ArrayList(); + } + return this.itemIdentifier; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <simpleContent>
+     *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+     *       <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+     *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
+     *     </extension>
+     *   </simpleContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Note + extends StringPlusLanguage + { + + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "type") + protected String atType; + @XmlAttribute(name = "ID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected String type; + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + @XmlSchemaType(name = "anyURI") + protected String href; + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected String show; + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected String actuate; + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the atType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtType() { + return atType; + } + + /** + * Sets the value of the atType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtType(String value) { + this.atType = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getID() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setID(String value) { + this.id = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "simple"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShow(String value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActuate(String value) { + this.actuate = value; + } + + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/DateDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/DateDefinition.java new file mode 100644 index 00000000000..80f1af77fbb --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/DateDefinition.java @@ -0,0 +1,184 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for dateDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="dateDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attribute name="encoding">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="w3cdtf"/>
+ *             <enumeration value="iso8601"/>
+ *             <enumeration value="marc"/>
+ *             <enumeration value="temper"/>
+ *             <enumeration value="edtf"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="qualifier">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="approximate"/>
+ *             <enumeration value="inferred"/>
+ *             <enumeration value="questionable"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="point">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="start"/>
+ *             <enumeration value="end"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="keyDate" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="yes" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "dateDefinition", namespace = "http://www.loc.gov/mods/v3") +@XmlSeeAlso({ + TemporalDefinition.class, + DateOtherDefinition.class +}) +public class DateDefinition + extends StringPlusLanguage +{ + + @XmlAttribute(name = "encoding") + protected String encoding; + @XmlAttribute(name = "qualifier") + protected String qualifier; + @XmlAttribute(name = "point") + protected String point; + @XmlAttribute(name = "keyDate") + @XmlSchemaType(name = "anySimpleType") + protected String keyDate; + + /** + * Gets the value of the encoding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEncoding() { + return encoding; + } + + /** + * Sets the value of the encoding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEncoding(String value) { + this.encoding = value; + } + + /** + * Gets the value of the qualifier property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getQualifier() { + return qualifier; + } + + /** + * Sets the value of the qualifier property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setQualifier(String value) { + this.qualifier = value; + } + + /** + * Gets the value of the point property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPoint() { + return point; + } + + /** + * Sets the value of the point property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPoint(String value) { + this.point = value; + } + + /** + * Gets the value of the keyDate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getKeyDate() { + if (keyDate == null) { + return "yes"; + } else { + return keyDate; + } + } + + /** + * Sets the value of the keyDate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setKeyDate(String value) { + this.keyDate = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/DateOtherDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/DateOtherDefinition.java new file mode 100644 index 00000000000..17d9e22e247 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/DateOtherDefinition.java @@ -0,0 +1,67 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for dateOtherDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="dateOtherDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>dateDefinition">
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "dateOtherDefinition", namespace = "http://www.loc.gov/mods/v3") +public class DateOtherDefinition + extends DateDefinition +{ + + @XmlAttribute(name = "type") + protected String type; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/DetailDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/DetailDefinition.java new file mode 100644 index 00000000000..b0edd970115 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/DetailDefinition.java @@ -0,0 +1,144 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for detailDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="detailDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element ref="{http://www.loc.gov/mods/v3}number"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}caption"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}title"/>
+ *       </choice>
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="level" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "detailDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "numberOrCaptionOrTitle" +}) +public class DetailDefinition { + + @XmlElementRefs({ + @XmlElementRef(name = "number", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "title", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "caption", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false) + }) + protected List> numberOrCaptionOrTitle; + @XmlAttribute(name = "type") + protected String type; + @XmlAttribute(name = "level") + @XmlSchemaType(name = "positiveInteger") + protected BigInteger level; + + /** + * Gets the value of the numberOrCaptionOrTitle property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the numberOrCaptionOrTitle property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getNumberOrCaptionOrTitle().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * + * + */ + public List> getNumberOrCaptionOrTitle() { + if (numberOrCaptionOrTitle == null) { + numberOrCaptionOrTitle = new ArrayList>(); + } + return this.numberOrCaptionOrTitle; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the level property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getLevel() { + return level; + } + + /** + * Sets the value of the level property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setLevel(BigInteger value) { + this.level = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/DigitalOriginDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/DigitalOriginDefinition.java new file mode 100644 index 00000000000..8218382fdff --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/DigitalOriginDefinition.java @@ -0,0 +1,64 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for digitalOriginDefinition. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="digitalOriginDefinition">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="born digital"/>
+ *     <enumeration value="reformatted digital"/>
+ *     <enumeration value="digitized microfilm"/>
+ *     <enumeration value="digitized other analog"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "digitalOriginDefinition", namespace = "http://www.loc.gov/mods/v3") +@XmlEnum +public enum DigitalOriginDefinition { + + @XmlEnumValue("born digital") + BORN_DIGITAL("born digital"), + @XmlEnumValue("reformatted digital") + REFORMATTED_DIGITAL("reformatted digital"), + @XmlEnumValue("digitized microfilm") + DIGITIZED_MICROFILM("digitized microfilm"), + @XmlEnumValue("digitized other analog") + DIGITIZED_OTHER_ANALOG("digitized other analog"); + private final String value; + + DigitalOriginDefinition(String v) { + value = v; + } + + public String value() { + return value; + } + + public static DigitalOriginDefinition fromValue(String v) { + for (DigitalOriginDefinition c: DigitalOriginDefinition.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/EnumerationAndChronologyDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/EnumerationAndChronologyDefinition.java new file mode 100644 index 00000000000..209a1887778 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/EnumerationAndChronologyDefinition.java @@ -0,0 +1,75 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for enumerationAndChronologyDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="enumerationAndChronologyDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attribute name="unitType">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="1"/>
+ *             <enumeration value="2"/>
+ *             <enumeration value="3"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "enumerationAndChronologyDefinition", namespace = "http://www.loc.gov/mods/v3") +public class EnumerationAndChronologyDefinition + extends StringPlusLanguage +{ + + @XmlAttribute(name = "unitType") + protected String unitType; + + /** + * Gets the value of the unitType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUnitType() { + return unitType; + } + + /** + * Sets the value of the unitType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUnitType(String value) { + this.unitType = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ExtensionDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ExtensionDefinition.java new file mode 100644 index 00000000000..6458fc7b998 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ExtensionDefinition.java @@ -0,0 +1,113 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + *

Java class for extensionDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="extensionDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "extensionDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "content" +}) +@XmlSeeAlso({ + AccessConditionDefinition.class +}) +public class ExtensionDefinition { + + @XmlMixed + @XmlAnyElement(lax = true) + protected List content; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getContent().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * {@link String } + * {@link Object } + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/Extent.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/Extent.java new file mode 100644 index 00000000000..4547019bf10 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/Extent.java @@ -0,0 +1,71 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguagePlusSupplied">
+ *       <attribute name="unit" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "extent", namespace = "http://www.loc.gov/mods/v3") +public class Extent + extends StringPlusLanguagePlusSupplied +{ + + @XmlAttribute(name = "unit") + @XmlSchemaType(name = "anySimpleType") + protected String unit; + + /** + * Gets the value of the unit property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUnit() { + return unit; + } + + /** + * Sets the value of the unit property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUnit(String value) { + this.unit = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ExtentDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ExtentDefinition.java new file mode 100644 index 00000000000..1deb1dfc7f5 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ExtentDefinition.java @@ -0,0 +1,184 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for extentDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="extentDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.loc.gov/mods/v3}start" minOccurs="0"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}end" minOccurs="0"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}total" minOccurs="0"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}list" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="unit" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "extentDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "start", + "end", + "total", + "list" +}) +public class ExtentDefinition { + + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected StringPlusLanguage start; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected StringPlusLanguage end; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + @XmlSchemaType(name = "positiveInteger") + protected BigInteger total; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected StringPlusLanguage list; + @XmlAttribute(name = "unit") + protected String unit; + + /** + * Gets the value of the start property. + * + * @return + * possible object is + * {@link StringPlusLanguage } + * + */ + public StringPlusLanguage getStart() { + return start; + } + + /** + * Sets the value of the start property. + * + * @param value + * allowed object is + * {@link StringPlusLanguage } + * + */ + public void setStart(StringPlusLanguage value) { + this.start = value; + } + + /** + * Gets the value of the end property. + * + * @return + * possible object is + * {@link StringPlusLanguage } + * + */ + public StringPlusLanguage getEnd() { + return end; + } + + /** + * Sets the value of the end property. + * + * @param value + * allowed object is + * {@link StringPlusLanguage } + * + */ + public void setEnd(StringPlusLanguage value) { + this.end = value; + } + + /** + * Gets the value of the total property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getTotal() { + return total; + } + + /** + * Sets the value of the total property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setTotal(BigInteger value) { + this.total = value; + } + + /** + * Gets the value of the list property. + * + * @return + * possible object is + * {@link StringPlusLanguage } + * + */ + public StringPlusLanguage getList() { + return list; + } + + /** + * Sets the value of the list property. + * + * @param value + * allowed object is + * {@link StringPlusLanguage } + * + */ + public void setList(StringPlusLanguage value) { + this.list = value; + } + + /** + * Gets the value of the unit property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUnit() { + return unit; + } + + /** + * Sets the value of the unit property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUnit(String value) { + this.unit = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/FormDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/FormDefinition.java new file mode 100644 index 00000000000..b1a73b5c40a --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/FormDefinition.java @@ -0,0 +1,67 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for formDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="formDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguagePlusAuthority">
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "formDefinition", namespace = "http://www.loc.gov/mods/v3") +public class FormDefinition + extends StringPlusLanguagePlusAuthority +{ + + @XmlAttribute(name = "type") + protected String type; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/GenreDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/GenreDefinition.java new file mode 100644 index 00000000000..34f434ccc15 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/GenreDefinition.java @@ -0,0 +1,154 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for genreDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="genreDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguagePlusAuthority">
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="usage" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="primary" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "genreDefinition", namespace = "http://www.loc.gov/mods/v3") +public class GenreDefinition + extends StringPlusLanguagePlusAuthority +{ + + @XmlAttribute(name = "type") + protected String type; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "usage") + @XmlSchemaType(name = "anySimpleType") + protected String usage; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the usage property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUsage() { + if (usage == null) { + return "primary"; + } else { + return usage; + } + } + + /** + * Sets the value of the usage property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUsage(String value) { + this.usage = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/GeographicCodeDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/GeographicCodeDefinition.java new file mode 100644 index 00000000000..4ab866fb1dc --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/GeographicCodeDefinition.java @@ -0,0 +1,132 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for geographicCodeDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="geographicCodeDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attribute name="authorityURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *       <attribute name="valueURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *       <attribute name="authority">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="marcgac"/>
+ *             <enumeration value="marccountry"/>
+ *             <enumeration value="iso3166"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "geographicCodeDefinition", namespace = "http://www.loc.gov/mods/v3") +public class GeographicCodeDefinition + extends StringPlusLanguage +{ + + @XmlAttribute(name = "authorityURI") + @XmlSchemaType(name = "anyURI") + protected String authorityURI; + @XmlAttribute(name = "valueURI") + @XmlSchemaType(name = "anyURI") + protected String valueURI; + @XmlAttribute(name = "authority") + protected String authority; + + /** + * Gets the value of the authorityURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthorityURI() { + return authorityURI; + } + + /** + * Sets the value of the authorityURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthorityURI(String value) { + this.authorityURI = value; + } + + /** + * Gets the value of the valueURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValueURI() { + return valueURI; + } + + /** + * Sets the value of the valueURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValueURI(String value) { + this.valueURI = value; + } + + /** + * Gets the value of the authority property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthority() { + return authority; + } + + /** + * Sets the value of the authority property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthority(String value) { + this.authority = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/HierarchicalGeographicDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/HierarchicalGeographicDefinition.java new file mode 100644 index 00000000000..52654cc346d --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/HierarchicalGeographicDefinition.java @@ -0,0 +1,196 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for hierarchicalGeographicDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="hierarchicalGeographicDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element ref="{http://www.loc.gov/mods/v3}extraTerrestrialArea"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}continent"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}country"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}province"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}region"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}state"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}territory"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}county"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}city"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}citySection"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}island"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}area"/>
+ *       </choice>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}authorityAttributeGroup"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "hierarchicalGeographicDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "extraTerrestrialAreaOrContinentOrCountry" +}) +public class HierarchicalGeographicDefinition { + + @XmlElementRefs({ + @XmlElementRef(name = "continent", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "city", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "island", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "territory", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "state", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "extraTerrestrialArea", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "country", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "province", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "county", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "region", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "area", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "citySection", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false) + }) + protected List> extraTerrestrialAreaOrContinentOrCountry; + @XmlAttribute(name = "authority") + protected String authority; + @XmlAttribute(name = "authorityURI") + @XmlSchemaType(name = "anyURI") + protected String authorityURI; + @XmlAttribute(name = "valueURI") + @XmlSchemaType(name = "anyURI") + protected String valueURI; + + /** + * Gets the value of the extraTerrestrialAreaOrContinentOrCountry property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the extraTerrestrialAreaOrContinentOrCountry property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getExtraTerrestrialAreaOrContinentOrCountry().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >} + * {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >} + * {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >} + * {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >} + * {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >} + * {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >} + * {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >} + * {@link JAXBElement }{@code <}{@link RegionDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link AreaDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link CitySectionDefinition }{@code >} + * + * + */ + public List> getExtraTerrestrialAreaOrContinentOrCountry() { + if (extraTerrestrialAreaOrContinentOrCountry == null) { + extraTerrestrialAreaOrContinentOrCountry = new ArrayList>(); + } + return this.extraTerrestrialAreaOrContinentOrCountry; + } + + /** + * Gets the value of the authority property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthority() { + return authority; + } + + /** + * Sets the value of the authority property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthority(String value) { + this.authority = value; + } + + /** + * Gets the value of the authorityURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthorityURI() { + return authorityURI; + } + + /** + * Sets the value of the authorityURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthorityURI(String value) { + this.authorityURI = value; + } + + /** + * Gets the value of the valueURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValueURI() { + return valueURI; + } + + /** + * Sets the value of the valueURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValueURI(String value) { + this.valueURI = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/HierarchicalPart.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/HierarchicalPart.java new file mode 100644 index 00000000000..6390db37241 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/HierarchicalPart.java @@ -0,0 +1,184 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for hierarchicalPart complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="hierarchicalPart">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}authorityAttributeGroup"/>
+ *       <attribute name="level" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="period" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "hierarchicalPart", namespace = "http://www.loc.gov/mods/v3") +@XmlSeeAlso({ + CitySectionDefinition.class, + AreaDefinition.class, + RegionDefinition.class +}) +public class HierarchicalPart + extends StringPlusLanguage +{ + + @XmlAttribute(name = "level") + @XmlSchemaType(name = "anySimpleType") + protected String level; + @XmlAttribute(name = "period") + @XmlSchemaType(name = "anySimpleType") + protected String period; + @XmlAttribute(name = "authority") + protected String authority; + @XmlAttribute(name = "authorityURI") + @XmlSchemaType(name = "anyURI") + protected String authorityURI; + @XmlAttribute(name = "valueURI") + @XmlSchemaType(name = "anyURI") + protected String valueURI; + + /** + * Gets the value of the level property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLevel() { + return level; + } + + /** + * Sets the value of the level property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLevel(String value) { + this.level = value; + } + + /** + * Gets the value of the period property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPeriod() { + return period; + } + + /** + * Sets the value of the period property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPeriod(String value) { + this.period = value; + } + + /** + * Gets the value of the authority property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthority() { + return authority; + } + + /** + * Sets the value of the authority property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthority(String value) { + this.authority = value; + } + + /** + * Gets the value of the authorityURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthorityURI() { + return authorityURI; + } + + /** + * Sets the value of the authorityURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthorityURI(String value) { + this.authorityURI = value; + } + + /** + * Gets the value of the valueURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValueURI() { + return valueURI; + } + + /** + * Sets the value of the valueURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValueURI(String value) { + this.valueURI = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/HoldingSimpleDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/HoldingSimpleDefinition.java new file mode 100644 index 00000000000..537df76ef0e --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/HoldingSimpleDefinition.java @@ -0,0 +1,76 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for holdingSimpleDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="holdingSimpleDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.loc.gov/mods/v3}copyInformation" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "holdingSimpleDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "copyInformation" +}) +public class HoldingSimpleDefinition { + + @XmlElement(namespace = "http://www.loc.gov/mods/v3", required = true) + protected List copyInformation; + + /** + * Gets the value of the copyInformation property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the copyInformation property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getCopyInformation().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CopyInformationDefinition } + * + * + */ + public List getCopyInformation() { + if (copyInformation == null) { + copyInformation = new ArrayList(); + } + return this.copyInformation; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/IdentifierDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/IdentifierDefinition.java new file mode 100644 index 00000000000..420ac2c244b --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/IdentifierDefinition.java @@ -0,0 +1,182 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for identifierDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="identifierDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="typeURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *       <attribute name="invalid" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="yes" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "identifierDefinition", namespace = "http://www.loc.gov/mods/v3") +public class IdentifierDefinition + extends StringPlusLanguage +{ + + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "type") + protected String type; + @XmlAttribute(name = "typeURI") + @XmlSchemaType(name = "anyURI") + protected String typeURI; + @XmlAttribute(name = "invalid") + @XmlSchemaType(name = "anySimpleType") + protected String invalid; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the typeURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeURI() { + return typeURI; + } + + /** + * Sets the value of the typeURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeURI(String value) { + this.typeURI = value; + } + + /** + * Gets the value of the invalid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInvalid() { + if (invalid == null) { + return "yes"; + } else { + return invalid; + } + } + + /** + * Sets the value of the invalid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInvalid(String value) { + this.invalid = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/IssuanceDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/IssuanceDefinition.java new file mode 100644 index 00000000000..46515d57169 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/IssuanceDefinition.java @@ -0,0 +1,70 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for issuanceDefinition. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="issuanceDefinition">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="continuing"/>
+ *     <enumeration value="monographic"/>
+ *     <enumeration value="single unit"/>
+ *     <enumeration value="multipart monograph"/>
+ *     <enumeration value="serial"/>
+ *     <enumeration value="integrating resource"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "issuanceDefinition", namespace = "http://www.loc.gov/mods/v3") +@XmlEnum +public enum IssuanceDefinition { + + @XmlEnumValue("continuing") + CONTINUING("continuing"), + @XmlEnumValue("monographic") + MONOGRAPHIC("monographic"), + @XmlEnumValue("single unit") + SINGLE_UNIT("single unit"), + @XmlEnumValue("multipart monograph") + MULTIPART_MONOGRAPH("multipart monograph"), + @XmlEnumValue("serial") + SERIAL("serial"), + @XmlEnumValue("integrating resource") + INTEGRATING_RESOURCE("integrating resource"); + private final String value; + + IssuanceDefinition(String v) { + value = v; + } + + public String value() { + return value; + } + + public static IssuanceDefinition fromValue(String v) { + for (IssuanceDefinition c: IssuanceDefinition.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ItemIdentifierDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ItemIdentifierDefinition.java new file mode 100644 index 00000000000..9b879ad0449 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ItemIdentifierDefinition.java @@ -0,0 +1,67 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for itemIdentifierDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="itemIdentifierDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "itemIdentifierDefinition", namespace = "http://www.loc.gov/mods/v3") +public class ItemIdentifierDefinition + extends StringPlusLanguage +{ + + @XmlAttribute(name = "type") + protected String type; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/LanguageDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/LanguageDefinition.java new file mode 100644 index 00000000000..33900198544 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/LanguageDefinition.java @@ -0,0 +1,329 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for languageDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="languageDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.loc.gov/mods/v3}languageTerm" maxOccurs="unbounded"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}scriptTerm" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}languageAttributeGroup"/>
+ *       <attribute name="objectPart" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="usage" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="primary" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "languageDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "languageTerm", + "scriptTerm" +}) +public class LanguageDefinition { + + @XmlElement(namespace = "http://www.loc.gov/mods/v3", required = true) + protected List languageTerm; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected List scriptTerm; + @XmlAttribute(name = "objectPart") + protected String objectPart; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "usage") + @XmlSchemaType(name = "anySimpleType") + protected String usage; + @XmlAttribute(name = "lang") + protected String atlang; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; + @XmlAttribute(name = "script") + protected String script; + @XmlAttribute(name = "transliteration") + protected String transliteration; + + /** + * Gets the value of the languageTerm property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the languageTerm property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getLanguageTerm().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link LanguageTermDefinition } + * + * + */ + public List getLanguageTerm() { + if (languageTerm == null) { + languageTerm = new ArrayList(); + } + return this.languageTerm; + } + + /** + * Gets the value of the scriptTerm property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the scriptTerm property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getScriptTerm().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ScriptTermDefinition } + * + * + */ + public List getScriptTerm() { + if (scriptTerm == null) { + scriptTerm = new ArrayList(); + } + return this.scriptTerm; + } + + /** + * Gets the value of the objectPart property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getObjectPart() { + return objectPart; + } + + /** + * Sets the value of the objectPart property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setObjectPart(String value) { + this.objectPart = value; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the usage property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUsage() { + if (usage == null) { + return "primary"; + } else { + return usage; + } + } + + /** + * Sets the value of the usage property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUsage(String value) { + this.usage = value; + } + + /** + * Gets the value of the atlang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtlang() { + return atlang; + } + + /** + * Sets the value of the atlang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtlang(String value) { + this.atlang = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + + /** + * Gets the value of the script property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScript() { + return script; + } + + /** + * Sets the value of the script property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScript(String value) { + this.script = value; + } + + /** + * Gets the value of the transliteration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTransliteration() { + return transliteration; + } + + /** + * Sets the value of the transliteration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTransliteration(String value) { + this.transliteration = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/LanguageTermDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/LanguageTermDefinition.java new file mode 100644 index 00000000000..4e92fc10fef --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/LanguageTermDefinition.java @@ -0,0 +1,161 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for languageTermDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="languageTermDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attribute name="authorityURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *       <attribute name="valueURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *       <attribute name="authority">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="rfc3066"/>
+ *             <enumeration value="iso639-2b"/>
+ *             <enumeration value="iso639-3"/>
+ *             <enumeration value="rfc4646"/>
+ *             <enumeration value="rfc5646"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="type" type="{http://www.loc.gov/mods/v3}codeOrText" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "languageTermDefinition", namespace = "http://www.loc.gov/mods/v3") +public class LanguageTermDefinition + extends StringPlusLanguage +{ + + @XmlAttribute(name = "authorityURI") + @XmlSchemaType(name = "anyURI") + protected String authorityURI; + @XmlAttribute(name = "valueURI") + @XmlSchemaType(name = "anyURI") + protected String valueURI; + @XmlAttribute(name = "authority") + protected String authority; + @XmlAttribute(name = "type") + protected CodeOrText type; + + /** + * Gets the value of the authorityURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthorityURI() { + return authorityURI; + } + + /** + * Sets the value of the authorityURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthorityURI(String value) { + this.authorityURI = value; + } + + /** + * Gets the value of the valueURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValueURI() { + return valueURI; + } + + /** + * Sets the value of the valueURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValueURI(String value) { + this.valueURI = value; + } + + /** + * Gets the value of the authority property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthority() { + return authority; + } + + /** + * Sets the value of the authority property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthority(String value) { + this.authority = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link CodeOrText } + * + */ + public CodeOrText getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link CodeOrText } + * + */ + public void setType(CodeOrText value) { + this.type = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/LocationDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/LocationDefinition.java new file mode 100644 index 00000000000..2fc5b8f45f3 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/LocationDefinition.java @@ -0,0 +1,358 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for locationDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="locationDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.loc.gov/mods/v3}physicalLocation" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}shelfLocator" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}url" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}holdingSimple" minOccurs="0"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}holdingExternal" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}languageAttributeGroup"/>
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "locationDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "physicalLocation", + "shelfLocator", + "url", + "holdingSimple", + "holdingExternal" +}) +public class LocationDefinition { + + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected List physicalLocation; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected List shelfLocator; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected List url; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected HoldingSimpleDefinition holdingSimple; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected ExtensionDefinition holdingExternal; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "lang") + protected String atlang; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; + @XmlAttribute(name = "script") + protected String script; + @XmlAttribute(name = "transliteration") + protected String transliteration; + + /** + * Gets the value of the physicalLocation property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the physicalLocation property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPhysicalLocation().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PhysicalLocationDefinition } + * + * + */ + public List getPhysicalLocation() { + if (physicalLocation == null) { + physicalLocation = new ArrayList(); + } + return this.physicalLocation; + } + + /** + * Gets the value of the shelfLocator property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the shelfLocator property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getShelfLocator().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link StringPlusLanguage } + * + * + */ + public List getShelfLocator() { + if (shelfLocator == null) { + shelfLocator = new ArrayList(); + } + return this.shelfLocator; + } + + /** + * Gets the value of the url property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the url property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getUrl().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link UrlDefinition } + * + * + */ + public List getUrl() { + if (url == null) { + url = new ArrayList(); + } + return this.url; + } + + /** + * Gets the value of the holdingSimple property. + * + * @return + * possible object is + * {@link HoldingSimpleDefinition } + * + */ + public HoldingSimpleDefinition getHoldingSimple() { + return holdingSimple; + } + + /** + * Sets the value of the holdingSimple property. + * + * @param value + * allowed object is + * {@link HoldingSimpleDefinition } + * + */ + public void setHoldingSimple(HoldingSimpleDefinition value) { + this.holdingSimple = value; + } + + /** + * Gets the value of the holdingExternal property. + * + * @return + * possible object is + * {@link ExtensionDefinition } + * + */ + public ExtensionDefinition getHoldingExternal() { + return holdingExternal; + } + + /** + * Sets the value of the holdingExternal property. + * + * @param value + * allowed object is + * {@link ExtensionDefinition } + * + */ + public void setHoldingExternal(ExtensionDefinition value) { + this.holdingExternal = value; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the atlang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtlang() { + return atlang; + } + + /** + * Sets the value of the atlang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtlang(String value) { + this.atlang = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + + /** + * Gets the value of the script property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScript() { + return script; + } + + /** + * Sets the value of the script property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScript(String value) { + this.script = value; + } + + /** + * Gets the value of the transliteration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTransliteration() { + return transliteration; + } + + /** + * Sets the value of the transliteration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTransliteration(String value) { + this.transliteration = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ModsCollectionDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ModsCollectionDefinition.java new file mode 100644 index 00000000000..28def4c7ee4 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ModsCollectionDefinition.java @@ -0,0 +1,76 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for modsCollectionDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="modsCollectionDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.loc.gov/mods/v3}mods" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "modsCollectionDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "mods" +}) +public class ModsCollectionDefinition { + + @XmlElement(namespace = "http://www.loc.gov/mods/v3", required = true) + protected List mods; + + /** + * Gets the value of the mods property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mods property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMods().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ModsDefinition } + * + * + */ + public List getMods() { + if (mods == null) { + mods = new ArrayList(); + } + return this.mods; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ModsDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ModsDefinition.java new file mode 100644 index 00000000000..94295885492 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ModsDefinition.java @@ -0,0 +1,189 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for modsDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="modsDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <group ref="{http://www.loc.gov/mods/v3}modsGroup" maxOccurs="unbounded"/>
+ *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="version">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="3.6"/>
+ *             <enumeration value="3.5"/>
+ *             <enumeration value="3.4"/>
+ *             <enumeration value="3.3"/>
+ *             <enumeration value="3.2"/>
+ *             <enumeration value="3.1"/>
+ *             <enumeration value="3.0"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "modsDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "modsGroup" +}) +public class ModsDefinition { + + @XmlElements({ + @XmlElement(name = "abstract", namespace = "http://www.loc.gov/mods/v3", type = AbstractDefinition.class), + @XmlElement(name = "accessCondition", namespace = "http://www.loc.gov/mods/v3", type = AccessConditionDefinition.class), + @XmlElement(name = "classification", namespace = "http://www.loc.gov/mods/v3", type = ClassificationDefinition.class), + @XmlElement(name = "extension", namespace = "http://www.loc.gov/mods/v3", type = ExtensionDefinition.class), + @XmlElement(name = "genre", namespace = "http://www.loc.gov/mods/v3", type = GenreDefinition.class), + @XmlElement(name = "identifier", namespace = "http://www.loc.gov/mods/v3", type = IdentifierDefinition.class), + @XmlElement(name = "language", namespace = "http://www.loc.gov/mods/v3", type = LanguageDefinition.class), + @XmlElement(name = "location", namespace = "http://www.loc.gov/mods/v3", type = LocationDefinition.class), + @XmlElement(name = "name", namespace = "http://www.loc.gov/mods/v3", type = NameDefinition.class), + @XmlElement(name = "note", namespace = "http://www.loc.gov/mods/v3", type = NoteDefinition.class), + @XmlElement(name = "originInfo", namespace = "http://www.loc.gov/mods/v3", type = OriginInfoDefinition.class), + @XmlElement(name = "part", namespace = "http://www.loc.gov/mods/v3", type = PartDefinition.class), + @XmlElement(name = "physicalDescription", namespace = "http://www.loc.gov/mods/v3", type = PhysicalDescriptionDefinition.class), + @XmlElement(name = "recordInfo", namespace = "http://www.loc.gov/mods/v3", type = RecordInfoDefinition.class), + @XmlElement(name = "relatedItem", namespace = "http://www.loc.gov/mods/v3", type = RelatedItemDefinition.class), + @XmlElement(name = "subject", namespace = "http://www.loc.gov/mods/v3", type = SubjectDefinition.class), + @XmlElement(name = "tableOfContents", namespace = "http://www.loc.gov/mods/v3", type = TableOfContentsDefinition.class), + @XmlElement(name = "targetAudience", namespace = "http://www.loc.gov/mods/v3", type = TargetAudienceDefinition.class), + @XmlElement(name = "titleInfo", namespace = "http://www.loc.gov/mods/v3", type = TitleInfoDefinition.class), + @XmlElement(name = "typeOfResource", namespace = "http://www.loc.gov/mods/v3", type = TypeOfResourceDefinition.class) + }) + protected List modsGroup; + @XmlAttribute(name = "ID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "version") + protected String version; + + /** + * Gets the value of the modsGroup property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the modsGroup property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getModsGroup().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AbstractDefinition } + * {@link AccessConditionDefinition } + * {@link ClassificationDefinition } + * {@link ExtensionDefinition } + * {@link GenreDefinition } + * {@link IdentifierDefinition } + * {@link LanguageDefinition } + * {@link LocationDefinition } + * {@link NameDefinition } + * {@link NoteDefinition } + * {@link OriginInfoDefinition } + * {@link PartDefinition } + * {@link PhysicalDescriptionDefinition } + * {@link RecordInfoDefinition } + * {@link RelatedItemDefinition } + * {@link SubjectDefinition } + * {@link TableOfContentsDefinition } + * {@link TargetAudienceDefinition } + * {@link TitleInfoDefinition } + * {@link TypeOfResourceDefinition } + * + * + */ + public List getModsGroup() { + if (modsGroup == null) { + modsGroup = new ArrayList(); + } + return this.modsGroup; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getID() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setID(String value) { + this.id = value; + } + + /** + * Gets the value of the version property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersion() { + return version; + } + + /** + * Sets the value of the version property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersion(String value) { + this.version = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/NameDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/NameDefinition.java new file mode 100644 index 00000000000..0553f4c7e91 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/NameDefinition.java @@ -0,0 +1,729 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for nameDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="nameDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice>
+ *         <choice maxOccurs="unbounded" minOccurs="0">
+ *           <element ref="{http://www.loc.gov/mods/v3}namePart"/>
+ *           <element ref="{http://www.loc.gov/mods/v3}displayForm"/>
+ *           <element ref="{http://www.loc.gov/mods/v3}affiliation"/>
+ *           <element ref="{http://www.loc.gov/mods/v3}role"/>
+ *           <element ref="{http://www.loc.gov/mods/v3}description"/>
+ *           <element ref="{http://www.loc.gov/mods/v3}nameIdentifier"/>
+ *         </choice>
+ *         <sequence>
+ *           <element ref="{http://www.loc.gov/mods/v3}etal"/>
+ *           <choice maxOccurs="unbounded" minOccurs="0">
+ *             <element ref="{http://www.loc.gov/mods/v3}affiliation"/>
+ *             <element ref="{http://www.loc.gov/mods/v3}role"/>
+ *             <element ref="{http://www.loc.gov/mods/v3}description"/>
+ *           </choice>
+ *         </sequence>
+ *       </choice>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}languageAttributeGroup"/>
+ *       <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}authorityAttributeGroup"/>
+ *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="nameTitleGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="usage" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="primary" />
+ *       <attribute name="type">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="personal"/>
+ *             <enumeration value="corporate"/>
+ *             <enumeration value="conference"/>
+ *             <enumeration value="family"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "nameDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "namePartOrDisplayFormOrAffiliation", + "etal", + "affiliationOrRoleOrDescription" +}) +public class NameDefinition { + + @XmlElementRefs({ + @XmlElementRef(name = "displayForm", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "description", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "namePart", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "nameIdentifier", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "affiliation", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "role", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false) + }) + protected List> namePartOrDisplayFormOrAffiliation; + @XmlElement(namespace = "http://www.loc.gov/mods/v3") + protected StringPlusLanguage etal; + @XmlElementRefs({ + @XmlElementRef(name = "description", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "affiliation", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "role", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false) + }) + protected List> affiliationOrRoleOrDescription; + @XmlAttribute(name = "ID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "nameTitleGroup") + protected String nameTitleGroup; + @XmlAttribute(name = "usage") + @XmlSchemaType(name = "anySimpleType") + protected String usage; + @XmlAttribute(name = "type") + protected String atType; + @XmlAttribute(name = "lang") + protected String atlang; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; + @XmlAttribute(name = "script") + protected String script; + @XmlAttribute(name = "transliteration") + protected String transliteration; + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected String type; + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + @XmlSchemaType(name = "anyURI") + protected String href; + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected String show; + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected String actuate; + @XmlAttribute(name = "authority") + protected String authority; + @XmlAttribute(name = "authorityURI") + @XmlSchemaType(name = "anyURI") + protected String authorityURI; + @XmlAttribute(name = "valueURI") + @XmlSchemaType(name = "anyURI") + protected String valueURI; + + /** + * Gets the value of the namePartOrDisplayFormOrAffiliation property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the namePartOrDisplayFormOrAffiliation property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getNamePartOrDisplayFormOrAffiliation().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link IdentifierDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link NamePartDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link RoleDefinition }{@code >} + * + * + */ + public List> getNamePartOrDisplayFormOrAffiliation() { + if (namePartOrDisplayFormOrAffiliation == null) { + namePartOrDisplayFormOrAffiliation = new ArrayList>(); + } + return this.namePartOrDisplayFormOrAffiliation; + } + + /** + * Gets the value of the etal property. + * + * @return + * possible object is + * {@link StringPlusLanguage } + * + */ + public StringPlusLanguage getEtal() { + return etal; + } + + /** + * Sets the value of the etal property. + * + * @param value + * allowed object is + * {@link StringPlusLanguage } + * + */ + public void setEtal(StringPlusLanguage value) { + this.etal = value; + } + + /** + * Gets the value of the affiliationOrRoleOrDescription property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the affiliationOrRoleOrDescription property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAffiliationOrRoleOrDescription().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link RoleDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * + * + */ + public List> getAffiliationOrRoleOrDescription() { + if (affiliationOrRoleOrDescription == null) { + affiliationOrRoleOrDescription = new ArrayList>(); + } + return this.affiliationOrRoleOrDescription; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getID() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setID(String value) { + this.id = value; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the nameTitleGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNameTitleGroup() { + return nameTitleGroup; + } + + /** + * Sets the value of the nameTitleGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNameTitleGroup(String value) { + this.nameTitleGroup = value; + } + + /** + * Gets the value of the usage property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUsage() { + if (usage == null) { + return "primary"; + } else { + return usage; + } + } + + /** + * Sets the value of the usage property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUsage(String value) { + this.usage = value; + } + + /** + * Gets the value of the atType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtType() { + return atType; + } + + /** + * Sets the value of the atType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtType(String value) { + this.atType = value; + } + + /** + * Gets the value of the atlang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtlang() { + return atlang; + } + + /** + * Sets the value of the atlang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtlang(String value) { + this.atlang = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + + /** + * Gets the value of the script property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScript() { + return script; + } + + /** + * Sets the value of the script property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScript(String value) { + this.script = value; + } + + /** + * Gets the value of the transliteration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTransliteration() { + return transliteration; + } + + /** + * Sets the value of the transliteration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTransliteration(String value) { + this.transliteration = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "simple"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShow(String value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActuate(String value) { + this.actuate = value; + } + + /** + * Gets the value of the authority property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthority() { + return authority; + } + + /** + * Sets the value of the authority property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthority(String value) { + this.authority = value; + } + + /** + * Gets the value of the authorityURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthorityURI() { + return authorityURI; + } + + /** + * Sets the value of the authorityURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthorityURI(String value) { + this.authorityURI = value; + } + + /** + * Gets the value of the valueURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValueURI() { + return valueURI; + } + + /** + * Sets the value of the valueURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValueURI(String value) { + this.valueURI = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/NamePartDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/NamePartDefinition.java new file mode 100644 index 00000000000..1be4706a3c8 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/NamePartDefinition.java @@ -0,0 +1,76 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for namePartDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="namePartDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attribute name="type">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="date"/>
+ *             <enumeration value="family"/>
+ *             <enumeration value="given"/>
+ *             <enumeration value="termsOfAddress"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "namePartDefinition", namespace = "http://www.loc.gov/mods/v3") +public class NamePartDefinition + extends StringPlusLanguage +{ + + @XmlAttribute(name = "type") + protected String atType; + + /** + * Gets the value of the atType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtType() { + return atType; + } + + /** + * Sets the value of the atType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtType(String value) { + this.atType = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/NonSort.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/NonSort.java new file mode 100644 index 00000000000..03895c545d0 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/NonSort.java @@ -0,0 +1,72 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attribute ref="{http://www.w3.org/XML/1998/namespace}space"/>
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "nonSort", namespace = "http://www.loc.gov/mods/v3") +public class NonSort + extends StringPlusLanguage +{ + + @XmlAttribute(name = "space", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String space; + + /** + * Gets the value of the space property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSpace() { + return space; + } + + /** + * Sets the value of the space property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSpace(String value) { + this.space = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/NoteDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/NoteDefinition.java new file mode 100644 index 00000000000..8be8ab14fa4 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/NoteDefinition.java @@ -0,0 +1,371 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for noteDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="noteDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="typeURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "noteDefinition", namespace = "http://www.loc.gov/mods/v3") +public class NoteDefinition + extends StringPlusLanguage +{ + + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "type") + protected String atType; + @XmlAttribute(name = "typeURI") + @XmlSchemaType(name = "anyURI") + protected String typeURI; + @XmlAttribute(name = "ID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected String type; + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + @XmlSchemaType(name = "anyURI") + protected String href; + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected String show; + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected String actuate; + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the atType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtType() { + return atType; + } + + /** + * Sets the value of the atType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtType(String value) { + this.atType = value; + } + + /** + * Gets the value of the typeURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeURI() { + return typeURI; + } + + /** + * Sets the value of the typeURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeURI(String value) { + this.typeURI = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getID() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setID(String value) { + this.id = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "simple"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShow(String value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActuate(String value) { + this.actuate = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ObjectFactory.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ObjectFactory.java new file mode 100644 index 00000000000..78b04652abf --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ObjectFactory.java @@ -0,0 +1,1553 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.math.BigInteger; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the org.jabref.logic.importer.fileformat.mods 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 _Total_QNAME = new QName("http://www.loc.gov/mods/v3", "total"); + private final static QName _DateCreated_QNAME = new QName("http://www.loc.gov/mods/v3", "dateCreated"); + private final static QName _RecordCreationDate_QNAME = new QName("http://www.loc.gov/mods/v3", "recordCreationDate"); + private final static QName _End_QNAME = new QName("http://www.loc.gov/mods/v3", "end"); + private final static QName _ElectronicLocator_QNAME = new QName("http://www.loc.gov/mods/v3", "electronicLocator"); + private final static QName _Projection_QNAME = new QName("http://www.loc.gov/mods/v3", "projection"); + private final static QName _Note_QNAME = new QName("http://www.loc.gov/mods/v3", "note"); + private final static QName _PlaceTerm_QNAME = new QName("http://www.loc.gov/mods/v3", "placeTerm"); + private final static QName _Part_QNAME = new QName("http://www.loc.gov/mods/v3", "part"); + private final static QName _Description_QNAME = new QName("http://www.loc.gov/mods/v3", "description"); + private final static QName _Edition_QNAME = new QName("http://www.loc.gov/mods/v3", "edition"); + private final static QName _Scale_QNAME = new QName("http://www.loc.gov/mods/v3", "scale"); + private final static QName _Title_QNAME = new QName("http://www.loc.gov/mods/v3", "title"); + private final static QName _PartName_QNAME = new QName("http://www.loc.gov/mods/v3", "partName"); + private final static QName _Form_QNAME = new QName("http://www.loc.gov/mods/v3", "form"); + private final static QName _TargetAudience_QNAME = new QName("http://www.loc.gov/mods/v3", "targetAudience"); + private final static QName _Issuance_QNAME = new QName("http://www.loc.gov/mods/v3", "issuance"); + private final static QName _Location_QNAME = new QName("http://www.loc.gov/mods/v3", "location"); + private final static QName _CopyrightDate_QNAME = new QName("http://www.loc.gov/mods/v3", "copyrightDate"); + private final static QName _Territory_QNAME = new QName("http://www.loc.gov/mods/v3", "territory"); + private final static QName _Start_QNAME = new QName("http://www.loc.gov/mods/v3", "start"); + private final static QName _DateModified_QNAME = new QName("http://www.loc.gov/mods/v3", "dateModified"); + private final static QName _RecordChangeDate_QNAME = new QName("http://www.loc.gov/mods/v3", "recordChangeDate"); + private final static QName _Geographic_QNAME = new QName("http://www.loc.gov/mods/v3", "geographic"); + private final static QName _SubTitle_QNAME = new QName("http://www.loc.gov/mods/v3", "subTitle"); + private final static QName _Affiliation_QNAME = new QName("http://www.loc.gov/mods/v3", "affiliation"); + private final static QName _DateCaptured_QNAME = new QName("http://www.loc.gov/mods/v3", "dateCaptured"); + private final static QName _HoldingExternal_QNAME = new QName("http://www.loc.gov/mods/v3", "holdingExternal"); + private final static QName _Date_QNAME = new QName("http://www.loc.gov/mods/v3", "date"); + private final static QName _InternetMediaType_QNAME = new QName("http://www.loc.gov/mods/v3", "internetMediaType"); + private final static QName _Country_QNAME = new QName("http://www.loc.gov/mods/v3", "country"); + private final static QName _Mods_QNAME = new QName("http://www.loc.gov/mods/v3", "mods"); + private final static QName _HierarchicalGeographic_QNAME = new QName("http://www.loc.gov/mods/v3", "hierarchicalGeographic"); + private final static QName _Subject_QNAME = new QName("http://www.loc.gov/mods/v3", "subject"); + private final static QName _TitleInfo_QNAME = new QName("http://www.loc.gov/mods/v3", "titleInfo"); + private final static QName _Language_QNAME = new QName("http://www.loc.gov/mods/v3", "language"); + private final static QName _RelatedItem_QNAME = new QName("http://www.loc.gov/mods/v3", "relatedItem"); + private final static QName _DisplayForm_QNAME = new QName("http://www.loc.gov/mods/v3", "displayForm"); + private final static QName _Frequency_QNAME = new QName("http://www.loc.gov/mods/v3", "frequency"); + private final static QName _LanguageTerm_QNAME = new QName("http://www.loc.gov/mods/v3", "languageTerm"); + private final static QName _DigitalOrigin_QNAME = new QName("http://www.loc.gov/mods/v3", "digitalOrigin"); + private final static QName _Name_QNAME = new QName("http://www.loc.gov/mods/v3", "name"); + private final static QName _Publisher_QNAME = new QName("http://www.loc.gov/mods/v3", "publisher"); + private final static QName _Topic_QNAME = new QName("http://www.loc.gov/mods/v3", "topic"); + private final static QName _SubLocation_QNAME = new QName("http://www.loc.gov/mods/v3", "subLocation"); + private final static QName _Region_QNAME = new QName("http://www.loc.gov/mods/v3", "region"); + private final static QName _TableOfContents_QNAME = new QName("http://www.loc.gov/mods/v3", "tableOfContents"); + private final static QName _NameIdentifier_QNAME = new QName("http://www.loc.gov/mods/v3", "nameIdentifier"); + private final static QName _RecordContentSource_QNAME = new QName("http://www.loc.gov/mods/v3", "recordContentSource"); + private final static QName _Area_QNAME = new QName("http://www.loc.gov/mods/v3", "area"); + private final static QName _ExtraTerrestrialArea_QNAME = new QName("http://www.loc.gov/mods/v3", "extraTerrestrialArea"); + private final static QName _ShelfLocator_QNAME = new QName("http://www.loc.gov/mods/v3", "shelfLocator"); + private final static QName _Island_QNAME = new QName("http://www.loc.gov/mods/v3", "island"); + private final static QName _List_QNAME = new QName("http://www.loc.gov/mods/v3", "list"); + private final static QName _CartographicExtension_QNAME = new QName("http://www.loc.gov/mods/v3", "cartographicExtension"); + private final static QName _NamePart_QNAME = new QName("http://www.loc.gov/mods/v3", "namePart"); + private final static QName _DescriptionStandard_QNAME = new QName("http://www.loc.gov/mods/v3", "descriptionStandard"); + private final static QName _CitySection_QNAME = new QName("http://www.loc.gov/mods/v3", "citySection"); + private final static QName _LanguageOfCataloging_QNAME = new QName("http://www.loc.gov/mods/v3", "languageOfCataloging"); + private final static QName _RecordInfo_QNAME = new QName("http://www.loc.gov/mods/v3", "recordInfo"); + private final static QName _Genre_QNAME = new QName("http://www.loc.gov/mods/v3", "genre"); + private final static QName _OriginInfo_QNAME = new QName("http://www.loc.gov/mods/v3", "originInfo"); + private final static QName _Place_QNAME = new QName("http://www.loc.gov/mods/v3", "place"); + private final static QName _Continent_QNAME = new QName("http://www.loc.gov/mods/v3", "continent"); + private final static QName _Extension_QNAME = new QName("http://www.loc.gov/mods/v3", "extension"); + private final static QName _Role_QNAME = new QName("http://www.loc.gov/mods/v3", "role"); + private final static QName _City_QNAME = new QName("http://www.loc.gov/mods/v3", "city"); + private final static QName _ModsCollection_QNAME = new QName("http://www.loc.gov/mods/v3", "modsCollection"); + private final static QName _DateOther_QNAME = new QName("http://www.loc.gov/mods/v3", "dateOther"); + private final static QName _DateValid_QNAME = new QName("http://www.loc.gov/mods/v3", "dateValid"); + private final static QName _EnumerationAndChronology_QNAME = new QName("http://www.loc.gov/mods/v3", "enumerationAndChronology"); + private final static QName _CopyInformation_QNAME = new QName("http://www.loc.gov/mods/v3", "copyInformation"); + private final static QName _PartNumber_QNAME = new QName("http://www.loc.gov/mods/v3", "partNumber"); + private final static QName _DateIssued_QNAME = new QName("http://www.loc.gov/mods/v3", "dateIssued"); + private final static QName _GeographicCode_QNAME = new QName("http://www.loc.gov/mods/v3", "geographicCode"); + private final static QName _PhysicalLocation_QNAME = new QName("http://www.loc.gov/mods/v3", "physicalLocation"); + private final static QName _AccessCondition_QNAME = new QName("http://www.loc.gov/mods/v3", "accessCondition"); + private final static QName _Coordinates_QNAME = new QName("http://www.loc.gov/mods/v3", "coordinates"); + private final static QName _ReformattingQuality_QNAME = new QName("http://www.loc.gov/mods/v3", "reformattingQuality"); + private final static QName _Abstract_QNAME = new QName("http://www.loc.gov/mods/v3", "abstract"); + private final static QName _Url_QNAME = new QName("http://www.loc.gov/mods/v3", "url"); + private final static QName _Number_QNAME = new QName("http://www.loc.gov/mods/v3", "number"); + private final static QName _Province_QNAME = new QName("http://www.loc.gov/mods/v3", "province"); + private final static QName _State_QNAME = new QName("http://www.loc.gov/mods/v3", "state"); + private final static QName _Cartographics_QNAME = new QName("http://www.loc.gov/mods/v3", "cartographics"); + private final static QName _RoleTerm_QNAME = new QName("http://www.loc.gov/mods/v3", "roleTerm"); + private final static QName _Temporal_QNAME = new QName("http://www.loc.gov/mods/v3", "temporal"); + private final static QName _Occupation_QNAME = new QName("http://www.loc.gov/mods/v3", "occupation"); + private final static QName _ScriptTerm_QNAME = new QName("http://www.loc.gov/mods/v3", "scriptTerm"); + private final static QName _RecordInfoNote_QNAME = new QName("http://www.loc.gov/mods/v3", "recordInfoNote"); + private final static QName _County_QNAME = new QName("http://www.loc.gov/mods/v3", "county"); + private final static QName _Caption_QNAME = new QName("http://www.loc.gov/mods/v3", "caption"); + private final static QName _TypeOfResource_QNAME = new QName("http://www.loc.gov/mods/v3", "typeOfResource"); + private final static QName _RecordOrigin_QNAME = new QName("http://www.loc.gov/mods/v3", "recordOrigin"); + private final static QName _Etal_QNAME = new QName("http://www.loc.gov/mods/v3", "etal"); + private final static QName _ItemIdentifier_QNAME = new QName("http://www.loc.gov/mods/v3", "itemIdentifier"); + private final static QName _Detail_QNAME = new QName("http://www.loc.gov/mods/v3", "detail"); + private final static QName _PhysicalDescription_QNAME = new QName("http://www.loc.gov/mods/v3", "physicalDescription"); + private final static QName _RecordIdentifier_QNAME = new QName("http://www.loc.gov/mods/v3", "recordIdentifier"); + private final static QName _Identifier_QNAME = new QName("http://www.loc.gov/mods/v3", "identifier"); + private final static QName _HoldingSimple_QNAME = new QName("http://www.loc.gov/mods/v3", "holdingSimple"); + private final static QName _Classification_QNAME = new QName("http://www.loc.gov/mods/v3", "classification"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jabref.logic.importer.fileformat.mods + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link CopyInformationDefinition } + * + */ + public CopyInformationDefinition createCopyInformationDefinition() { + return new CopyInformationDefinition(); + } + + /** + * Create an instance of {@link Extent } + * + */ + public Extent createExtent() { + return new Extent(); + } + + /** + * Create an instance of {@link StringPlusLanguagePlusSupplied } + * + */ + public StringPlusLanguagePlusSupplied createStringPlusLanguagePlusSupplied() { + return new StringPlusLanguagePlusSupplied(); + } + + /** + * Create an instance of {@link StringPlusLanguage } + * + */ + public StringPlusLanguage createStringPlusLanguage() { + return new StringPlusLanguage(); + } + + /** + * Create an instance of {@link StringPlusLanguagePlusAuthority } + * + */ + public StringPlusLanguagePlusAuthority createStringPlusLanguagePlusAuthority() { + return new StringPlusLanguagePlusAuthority(); + } + + /** + * Create an instance of {@link ScriptTermDefinition } + * + */ + public ScriptTermDefinition createScriptTermDefinition() { + return new ScriptTermDefinition(); + } + + /** + * Create an instance of {@link NoteDefinition } + * + */ + public NoteDefinition createNoteDefinition() { + return new NoteDefinition(); + } + + /** + * Create an instance of {@link HierarchicalPart } + * + */ + public HierarchicalPart createHierarchicalPart() { + return new HierarchicalPart(); + } + + /** + * Create an instance of {@link TypeOfResourceDefinition } + * + */ + public TypeOfResourceDefinition createTypeOfResourceDefinition() { + return new TypeOfResourceDefinition(); + } + + /** + * Create an instance of {@link Text } + * + */ + public Text createText() { + return new Text(); + } + + /** + * Create an instance of {@link CartographicsDefinition } + * + */ + public CartographicsDefinition createCartographicsDefinition() { + return new CartographicsDefinition(); + } + + /** + * Create an instance of {@link RoleTermDefinition } + * + */ + public RoleTermDefinition createRoleTermDefinition() { + return new RoleTermDefinition(); + } + + /** + * Create an instance of {@link TemporalDefinition } + * + */ + public TemporalDefinition createTemporalDefinition() { + return new TemporalDefinition(); + } + + /** + * Create an instance of {@link IdentifierDefinition } + * + */ + public IdentifierDefinition createIdentifierDefinition() { + return new IdentifierDefinition(); + } + + /** + * Create an instance of {@link HoldingSimpleDefinition } + * + */ + public HoldingSimpleDefinition createHoldingSimpleDefinition() { + return new HoldingSimpleDefinition(); + } + + /** + * Create an instance of {@link ClassificationDefinition } + * + */ + public ClassificationDefinition createClassificationDefinition() { + return new ClassificationDefinition(); + } + + /** + * Create an instance of {@link ItemIdentifierDefinition } + * + */ + public ItemIdentifierDefinition createItemIdentifierDefinition() { + return new ItemIdentifierDefinition(); + } + + /** + * Create an instance of {@link DetailDefinition } + * + */ + public DetailDefinition createDetailDefinition() { + return new DetailDefinition(); + } + + /** + * Create an instance of {@link PhysicalDescriptionDefinition } + * + */ + public PhysicalDescriptionDefinition createPhysicalDescriptionDefinition() { + return new PhysicalDescriptionDefinition(); + } + + /** + * Create an instance of {@link RecordIdentifierDefinition } + * + */ + public RecordIdentifierDefinition createRecordIdentifierDefinition() { + return new RecordIdentifierDefinition(); + } + + /** + * Create an instance of {@link ExtensionDefinition } + * + */ + public ExtensionDefinition createExtensionDefinition() { + return new ExtensionDefinition(); + } + + /** + * Create an instance of {@link RoleDefinition } + * + */ + public RoleDefinition createRoleDefinition() { + return new RoleDefinition(); + } + + /** + * Create an instance of {@link ModsCollectionDefinition } + * + */ + public ModsCollectionDefinition createModsCollectionDefinition() { + return new ModsCollectionDefinition(); + } + + /** + * Create an instance of {@link DateOtherDefinition } + * + */ + public DateOtherDefinition createDateOtherDefinition() { + return new DateOtherDefinition(); + } + + /** + * Create an instance of {@link DateDefinition } + * + */ + public DateDefinition createDateDefinition() { + return new DateDefinition(); + } + + /** + * Create an instance of {@link CitySectionDefinition } + * + */ + public CitySectionDefinition createCitySectionDefinition() { + return new CitySectionDefinition(); + } + + /** + * Create an instance of {@link LanguageDefinition } + * + */ + public LanguageDefinition createLanguageDefinition() { + return new LanguageDefinition(); + } + + /** + * Create an instance of {@link RecordInfoDefinition } + * + */ + public RecordInfoDefinition createRecordInfoDefinition() { + return new RecordInfoDefinition(); + } + + /** + * Create an instance of {@link GenreDefinition } + * + */ + public GenreDefinition createGenreDefinition() { + return new GenreDefinition(); + } + + /** + * Create an instance of {@link OriginInfoDefinition } + * + */ + public OriginInfoDefinition createOriginInfoDefinition() { + return new OriginInfoDefinition(); + } + + /** + * Create an instance of {@link PlaceDefinition } + * + */ + public PlaceDefinition createPlaceDefinition() { + return new PlaceDefinition(); + } + + /** + * Create an instance of {@link GeographicCodeDefinition } + * + */ + public GeographicCodeDefinition createGeographicCodeDefinition() { + return new GeographicCodeDefinition(); + } + + /** + * Create an instance of {@link PhysicalLocationDefinition } + * + */ + public PhysicalLocationDefinition createPhysicalLocationDefinition() { + return new PhysicalLocationDefinition(); + } + + /** + * Create an instance of {@link AccessConditionDefinition } + * + */ + public AccessConditionDefinition createAccessConditionDefinition() { + return new AccessConditionDefinition(); + } + + /** + * Create an instance of {@link AbstractDefinition } + * + */ + public AbstractDefinition createAbstractDefinition() { + return new AbstractDefinition(); + } + + /** + * Create an instance of {@link UrlDefinition } + * + */ + public UrlDefinition createUrlDefinition() { + return new UrlDefinition(); + } + + /** + * Create an instance of {@link EnumerationAndChronologyDefinition } + * + */ + public EnumerationAndChronologyDefinition createEnumerationAndChronologyDefinition() { + return new EnumerationAndChronologyDefinition(); + } + + /** + * Create an instance of {@link ModsDefinition } + * + */ + public ModsDefinition createModsDefinition() { + return new ModsDefinition(); + } + + /** + * Create an instance of {@link HierarchicalGeographicDefinition } + * + */ + public HierarchicalGeographicDefinition createHierarchicalGeographicDefinition() { + return new HierarchicalGeographicDefinition(); + } + + /** + * Create an instance of {@link SubjectDefinition } + * + */ + public SubjectDefinition createSubjectDefinition() { + return new SubjectDefinition(); + } + + /** + * Create an instance of {@link NonSort } + * + */ + public NonSort createNonSort() { + return new NonSort(); + } + + /** + * Create an instance of {@link TitleInfoDefinition } + * + */ + public TitleInfoDefinition createTitleInfoDefinition() { + return new TitleInfoDefinition(); + } + + /** + * Create an instance of {@link RelatedItemDefinition } + * + */ + public RelatedItemDefinition createRelatedItemDefinition() { + return new RelatedItemDefinition(); + } + + /** + * Create an instance of {@link AreaDefinition } + * + */ + public AreaDefinition createAreaDefinition() { + return new AreaDefinition(); + } + + /** + * Create an instance of {@link NamePartDefinition } + * + */ + public NamePartDefinition createNamePartDefinition() { + return new NamePartDefinition(); + } + + /** + * Create an instance of {@link LanguageTermDefinition } + * + */ + public LanguageTermDefinition createLanguageTermDefinition() { + return new LanguageTermDefinition(); + } + + /** + * Create an instance of {@link NameDefinition } + * + */ + public NameDefinition createNameDefinition() { + return new NameDefinition(); + } + + /** + * Create an instance of {@link RegionDefinition } + * + */ + public RegionDefinition createRegionDefinition() { + return new RegionDefinition(); + } + + /** + * Create an instance of {@link TableOfContentsDefinition } + * + */ + public TableOfContentsDefinition createTableOfContentsDefinition() { + return new TableOfContentsDefinition(); + } + + /** + * Create an instance of {@link PlaceTermDefinition } + * + */ + public PlaceTermDefinition createPlaceTermDefinition() { + return new PlaceTermDefinition(); + } + + /** + * Create an instance of {@link PartDefinition } + * + */ + public PartDefinition createPartDefinition() { + return new PartDefinition(); + } + + /** + * Create an instance of {@link FormDefinition } + * + */ + public FormDefinition createFormDefinition() { + return new FormDefinition(); + } + + /** + * Create an instance of {@link TargetAudienceDefinition } + * + */ + public TargetAudienceDefinition createTargetAudienceDefinition() { + return new TargetAudienceDefinition(); + } + + /** + * Create an instance of {@link LocationDefinition } + * + */ + public LocationDefinition createLocationDefinition() { + return new LocationDefinition(); + } + + /** + * Create an instance of {@link SubjectNameDefinition } + * + */ + public SubjectNameDefinition createSubjectNameDefinition() { + return new SubjectNameDefinition(); + } + + /** + * Create an instance of {@link PhysicalDescriptionNote } + * + */ + public PhysicalDescriptionNote createPhysicalDescriptionNote() { + return new PhysicalDescriptionNote(); + } + + /** + * Create an instance of {@link SubjectTitleInfoDefinition } + * + */ + public SubjectTitleInfoDefinition createSubjectTitleInfoDefinition() { + return new SubjectTitleInfoDefinition(); + } + + /** + * Create an instance of {@link ExtentDefinition } + * + */ + public ExtentDefinition createExtentDefinition() { + return new ExtentDefinition(); + } + + /** + * Create an instance of {@link CopyInformationDefinition.Note } + * + */ + public CopyInformationDefinition.Note createCopyInformationDefinitionNote() { + return new CopyInformationDefinition.Note(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "total") + public JAXBElement createTotal(BigInteger value) { + return new JAXBElement(_Total_QNAME, BigInteger.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DateDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "dateCreated") + public JAXBElement createDateCreated(DateDefinition value) { + return new JAXBElement(_DateCreated_QNAME, DateDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DateDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "recordCreationDate") + public JAXBElement createRecordCreationDate(DateDefinition value) { + return new JAXBElement(_RecordCreationDate_QNAME, DateDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "end") + public JAXBElement createEnd(StringPlusLanguage value) { + return new JAXBElement(_End_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "electronicLocator") + public JAXBElement createElectronicLocator(StringPlusLanguage value) { + return new JAXBElement(_ElectronicLocator_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "projection") + public JAXBElement createProjection(StringPlusLanguage value) { + return new JAXBElement(_Projection_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NoteDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "note") + public JAXBElement createNote(NoteDefinition value) { + return new JAXBElement(_Note_QNAME, NoteDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link PlaceTermDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "placeTerm") + public JAXBElement createPlaceTerm(PlaceTermDefinition value) { + return new JAXBElement(_PlaceTerm_QNAME, PlaceTermDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link PartDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "part") + public JAXBElement createPart(PartDefinition value) { + return new JAXBElement(_Part_QNAME, PartDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "description") + public JAXBElement createDescription(StringPlusLanguage value) { + return new JAXBElement(_Description_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusSupplied }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "edition") + public JAXBElement createEdition(StringPlusLanguagePlusSupplied value) { + return new JAXBElement(_Edition_QNAME, StringPlusLanguagePlusSupplied.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "scale") + public JAXBElement createScale(StringPlusLanguage value) { + return new JAXBElement(_Scale_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "title") + public JAXBElement createTitle(StringPlusLanguage value) { + return new JAXBElement(_Title_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "partName") + public JAXBElement createPartName(StringPlusLanguage value) { + return new JAXBElement(_PartName_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link FormDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "form") + public JAXBElement createForm(FormDefinition value) { + return new JAXBElement(_Form_QNAME, FormDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TargetAudienceDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "targetAudience") + public JAXBElement createTargetAudience(TargetAudienceDefinition value) { + return new JAXBElement(_TargetAudience_QNAME, TargetAudienceDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link IssuanceDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "issuance") + public JAXBElement createIssuance(IssuanceDefinition value) { + return new JAXBElement(_Issuance_QNAME, IssuanceDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link LocationDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "location") + public JAXBElement createLocation(LocationDefinition value) { + return new JAXBElement(_Location_QNAME, LocationDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DateDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "copyrightDate") + public JAXBElement createCopyrightDate(DateDefinition value) { + return new JAXBElement(_CopyrightDate_QNAME, DateDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "territory") + public JAXBElement createTerritory(HierarchicalPart value) { + return new JAXBElement(_Territory_QNAME, HierarchicalPart.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "start") + public JAXBElement createStart(StringPlusLanguage value) { + return new JAXBElement(_Start_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DateDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "dateModified") + public JAXBElement createDateModified(DateDefinition value) { + return new JAXBElement(_DateModified_QNAME, DateDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DateDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "recordChangeDate") + public JAXBElement createRecordChangeDate(DateDefinition value) { + return new JAXBElement(_RecordChangeDate_QNAME, DateDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusAuthority }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "geographic") + public JAXBElement createGeographic(StringPlusLanguagePlusAuthority value) { + return new JAXBElement(_Geographic_QNAME, StringPlusLanguagePlusAuthority.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "subTitle") + public JAXBElement createSubTitle(StringPlusLanguage value) { + return new JAXBElement(_SubTitle_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "affiliation") + public JAXBElement createAffiliation(StringPlusLanguage value) { + return new JAXBElement(_Affiliation_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DateDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "dateCaptured") + public JAXBElement createDateCaptured(DateDefinition value) { + return new JAXBElement(_DateCaptured_QNAME, DateDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ExtensionDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "holdingExternal") + public JAXBElement createHoldingExternal(ExtensionDefinition value) { + return new JAXBElement(_HoldingExternal_QNAME, ExtensionDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DateDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "date") + public JAXBElement createDate(DateDefinition value) { + return new JAXBElement(_Date_QNAME, DateDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "internetMediaType") + public JAXBElement createInternetMediaType(StringPlusLanguage value) { + return new JAXBElement(_InternetMediaType_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "country") + public JAXBElement createCountry(HierarchicalPart value) { + return new JAXBElement(_Country_QNAME, HierarchicalPart.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ModsDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "mods") + public JAXBElement createMods(ModsDefinition value) { + return new JAXBElement(_Mods_QNAME, ModsDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link HierarchicalGeographicDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "hierarchicalGeographic") + public JAXBElement createHierarchicalGeographic(HierarchicalGeographicDefinition value) { + return new JAXBElement(_HierarchicalGeographic_QNAME, HierarchicalGeographicDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SubjectDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "subject") + public JAXBElement createSubject(SubjectDefinition value) { + return new JAXBElement(_Subject_QNAME, SubjectDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TitleInfoDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "titleInfo") + public JAXBElement createTitleInfo(TitleInfoDefinition value) { + return new JAXBElement(_TitleInfo_QNAME, TitleInfoDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link LanguageDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "language") + public JAXBElement createLanguage(LanguageDefinition value) { + return new JAXBElement(_Language_QNAME, LanguageDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RelatedItemDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "relatedItem") + public JAXBElement createRelatedItem(RelatedItemDefinition value) { + return new JAXBElement(_RelatedItem_QNAME, RelatedItemDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "displayForm") + public JAXBElement createDisplayForm(StringPlusLanguage value) { + return new JAXBElement(_DisplayForm_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusAuthority }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "frequency") + public JAXBElement createFrequency(StringPlusLanguagePlusAuthority value) { + return new JAXBElement(_Frequency_QNAME, StringPlusLanguagePlusAuthority.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link LanguageTermDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "languageTerm") + public JAXBElement createLanguageTerm(LanguageTermDefinition value) { + return new JAXBElement(_LanguageTerm_QNAME, LanguageTermDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DigitalOriginDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "digitalOrigin") + public JAXBElement createDigitalOrigin(DigitalOriginDefinition value) { + return new JAXBElement(_DigitalOrigin_QNAME, DigitalOriginDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NameDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "name") + public JAXBElement createName(NameDefinition value) { + return new JAXBElement(_Name_QNAME, NameDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusSupplied }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "publisher") + public JAXBElement createPublisher(StringPlusLanguagePlusSupplied value) { + return new JAXBElement(_Publisher_QNAME, StringPlusLanguagePlusSupplied.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusAuthority }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "topic") + public JAXBElement createTopic(StringPlusLanguagePlusAuthority value) { + return new JAXBElement(_Topic_QNAME, StringPlusLanguagePlusAuthority.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "subLocation") + public JAXBElement createSubLocation(StringPlusLanguage value) { + return new JAXBElement(_SubLocation_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RegionDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "region") + public JAXBElement createRegion(RegionDefinition value) { + return new JAXBElement(_Region_QNAME, RegionDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TableOfContentsDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "tableOfContents") + public JAXBElement createTableOfContents(TableOfContentsDefinition value) { + return new JAXBElement(_TableOfContents_QNAME, TableOfContentsDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link IdentifierDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "nameIdentifier") + public JAXBElement createNameIdentifier(IdentifierDefinition value) { + return new JAXBElement(_NameIdentifier_QNAME, IdentifierDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusAuthority }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "recordContentSource") + public JAXBElement createRecordContentSource(StringPlusLanguagePlusAuthority value) { + return new JAXBElement(_RecordContentSource_QNAME, StringPlusLanguagePlusAuthority.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AreaDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "area") + public JAXBElement createArea(AreaDefinition value) { + return new JAXBElement(_Area_QNAME, AreaDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "extraTerrestrialArea") + public JAXBElement createExtraTerrestrialArea(HierarchicalPart value) { + return new JAXBElement(_ExtraTerrestrialArea_QNAME, HierarchicalPart.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "shelfLocator") + public JAXBElement createShelfLocator(StringPlusLanguage value) { + return new JAXBElement(_ShelfLocator_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "island") + public JAXBElement createIsland(HierarchicalPart value) { + return new JAXBElement(_Island_QNAME, HierarchicalPart.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "list") + public JAXBElement createList(StringPlusLanguage value) { + return new JAXBElement(_List_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ExtensionDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "cartographicExtension") + public JAXBElement createCartographicExtension(ExtensionDefinition value) { + return new JAXBElement(_CartographicExtension_QNAME, ExtensionDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NamePartDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "namePart") + public JAXBElement createNamePart(NamePartDefinition value) { + return new JAXBElement(_NamePart_QNAME, NamePartDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusAuthority }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "descriptionStandard") + public JAXBElement createDescriptionStandard(StringPlusLanguagePlusAuthority value) { + return new JAXBElement(_DescriptionStandard_QNAME, StringPlusLanguagePlusAuthority.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CitySectionDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "citySection") + public JAXBElement createCitySection(CitySectionDefinition value) { + return new JAXBElement(_CitySection_QNAME, CitySectionDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link LanguageDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "languageOfCataloging") + public JAXBElement createLanguageOfCataloging(LanguageDefinition value) { + return new JAXBElement(_LanguageOfCataloging_QNAME, LanguageDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RecordInfoDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "recordInfo") + public JAXBElement createRecordInfo(RecordInfoDefinition value) { + return new JAXBElement(_RecordInfo_QNAME, RecordInfoDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GenreDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "genre") + public JAXBElement createGenre(GenreDefinition value) { + return new JAXBElement(_Genre_QNAME, GenreDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link OriginInfoDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "originInfo") + public JAXBElement createOriginInfo(OriginInfoDefinition value) { + return new JAXBElement(_OriginInfo_QNAME, OriginInfoDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link PlaceDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "place") + public JAXBElement createPlace(PlaceDefinition value) { + return new JAXBElement(_Place_QNAME, PlaceDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "continent") + public JAXBElement createContinent(HierarchicalPart value) { + return new JAXBElement(_Continent_QNAME, HierarchicalPart.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ExtensionDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "extension") + public JAXBElement createExtension(ExtensionDefinition value) { + return new JAXBElement(_Extension_QNAME, ExtensionDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RoleDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "role") + public JAXBElement createRole(RoleDefinition value) { + return new JAXBElement(_Role_QNAME, RoleDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "city") + public JAXBElement createCity(HierarchicalPart value) { + return new JAXBElement(_City_QNAME, HierarchicalPart.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ModsCollectionDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "modsCollection") + public JAXBElement createModsCollection(ModsCollectionDefinition value) { + return new JAXBElement(_ModsCollection_QNAME, ModsCollectionDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DateOtherDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "dateOther") + public JAXBElement createDateOther(DateOtherDefinition value) { + return new JAXBElement(_DateOther_QNAME, DateOtherDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DateDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "dateValid") + public JAXBElement createDateValid(DateDefinition value) { + return new JAXBElement(_DateValid_QNAME, DateDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EnumerationAndChronologyDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "enumerationAndChronology") + public JAXBElement createEnumerationAndChronology(EnumerationAndChronologyDefinition value) { + return new JAXBElement(_EnumerationAndChronology_QNAME, EnumerationAndChronologyDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CopyInformationDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "copyInformation") + public JAXBElement createCopyInformation(CopyInformationDefinition value) { + return new JAXBElement(_CopyInformation_QNAME, CopyInformationDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "partNumber") + public JAXBElement createPartNumber(StringPlusLanguage value) { + return new JAXBElement(_PartNumber_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DateDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "dateIssued") + public JAXBElement createDateIssued(DateDefinition value) { + return new JAXBElement(_DateIssued_QNAME, DateDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link GeographicCodeDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "geographicCode") + public JAXBElement createGeographicCode(GeographicCodeDefinition value) { + return new JAXBElement(_GeographicCode_QNAME, GeographicCodeDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link PhysicalLocationDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "physicalLocation") + public JAXBElement createPhysicalLocation(PhysicalLocationDefinition value) { + return new JAXBElement(_PhysicalLocation_QNAME, PhysicalLocationDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AccessConditionDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "accessCondition") + public JAXBElement createAccessCondition(AccessConditionDefinition value) { + return new JAXBElement(_AccessCondition_QNAME, AccessConditionDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "coordinates") + public JAXBElement createCoordinates(StringPlusLanguage value) { + return new JAXBElement(_Coordinates_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ReformattingQualityDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "reformattingQuality") + public JAXBElement createReformattingQuality(ReformattingQualityDefinition value) { + return new JAXBElement(_ReformattingQuality_QNAME, ReformattingQualityDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AbstractDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "abstract") + public JAXBElement createAbstract(AbstractDefinition value) { + return new JAXBElement(_Abstract_QNAME, AbstractDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link UrlDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "url") + public JAXBElement createUrl(UrlDefinition value) { + return new JAXBElement(_Url_QNAME, UrlDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "number") + public JAXBElement createNumber(StringPlusLanguage value) { + return new JAXBElement(_Number_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "province") + public JAXBElement createProvince(StringPlusLanguage value) { + return new JAXBElement(_Province_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "state") + public JAXBElement createState(HierarchicalPart value) { + return new JAXBElement(_State_QNAME, HierarchicalPart.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CartographicsDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "cartographics") + public JAXBElement createCartographics(CartographicsDefinition value) { + return new JAXBElement(_Cartographics_QNAME, CartographicsDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RoleTermDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "roleTerm") + public JAXBElement createRoleTerm(RoleTermDefinition value) { + return new JAXBElement(_RoleTerm_QNAME, RoleTermDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TemporalDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "temporal") + public JAXBElement createTemporal(TemporalDefinition value) { + return new JAXBElement(_Temporal_QNAME, TemporalDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusAuthority }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "occupation") + public JAXBElement createOccupation(StringPlusLanguagePlusAuthority value) { + return new JAXBElement(_Occupation_QNAME, StringPlusLanguagePlusAuthority.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ScriptTermDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "scriptTerm") + public JAXBElement createScriptTerm(ScriptTermDefinition value) { + return new JAXBElement(_ScriptTerm_QNAME, ScriptTermDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NoteDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "recordInfoNote") + public JAXBElement createRecordInfoNote(NoteDefinition value) { + return new JAXBElement(_RecordInfoNote_QNAME, NoteDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link HierarchicalPart }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "county") + public JAXBElement createCounty(HierarchicalPart value) { + return new JAXBElement(_County_QNAME, HierarchicalPart.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "caption") + public JAXBElement createCaption(StringPlusLanguage value) { + return new JAXBElement(_Caption_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TypeOfResourceDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "typeOfResource") + public JAXBElement createTypeOfResource(TypeOfResourceDefinition value) { + return new JAXBElement(_TypeOfResource_QNAME, TypeOfResourceDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "recordOrigin") + public JAXBElement createRecordOrigin(StringPlusLanguage value) { + return new JAXBElement(_RecordOrigin_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "etal") + public JAXBElement createEtal(StringPlusLanguage value) { + return new JAXBElement(_Etal_QNAME, StringPlusLanguage.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ItemIdentifierDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "itemIdentifier") + public JAXBElement createItemIdentifier(ItemIdentifierDefinition value) { + return new JAXBElement(_ItemIdentifier_QNAME, ItemIdentifierDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DetailDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "detail") + public JAXBElement createDetail(DetailDefinition value) { + return new JAXBElement(_Detail_QNAME, DetailDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link PhysicalDescriptionDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "physicalDescription") + public JAXBElement createPhysicalDescription(PhysicalDescriptionDefinition value) { + return new JAXBElement(_PhysicalDescription_QNAME, PhysicalDescriptionDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RecordIdentifierDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "recordIdentifier") + public JAXBElement createRecordIdentifier(RecordIdentifierDefinition value) { + return new JAXBElement(_RecordIdentifier_QNAME, RecordIdentifierDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link IdentifierDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "identifier") + public JAXBElement createIdentifier(IdentifierDefinition value) { + return new JAXBElement(_Identifier_QNAME, IdentifierDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link HoldingSimpleDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "holdingSimple") + public JAXBElement createHoldingSimple(HoldingSimpleDefinition value) { + return new JAXBElement(_HoldingSimple_QNAME, HoldingSimpleDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ClassificationDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "classification") + public JAXBElement createClassification(ClassificationDefinition value) { + return new JAXBElement(_Classification_QNAME, ClassificationDefinition.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SubjectTitleInfoDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "titleInfo", scope = SubjectDefinition.class) + public JAXBElement createSubjectDefinitionTitleInfo(SubjectTitleInfoDefinition value) { + return new JAXBElement(_TitleInfo_QNAME, SubjectTitleInfoDefinition.class, SubjectDefinition.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SubjectNameDefinition }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.loc.gov/mods/v3", name = "name", scope = SubjectDefinition.class) + public JAXBElement createSubjectDefinitionName(SubjectNameDefinition value) { + return new JAXBElement(_Name_QNAME, SubjectNameDefinition.class, SubjectDefinition.class, value); + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/OriginInfoDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/OriginInfoDefinition.java new file mode 100644 index 00000000000..92cdf65f6f7 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/OriginInfoDefinition.java @@ -0,0 +1,300 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for originInfoDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="originInfoDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element ref="{http://www.loc.gov/mods/v3}place"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}publisher"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}dateIssued"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}dateCreated"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}dateCaptured"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}dateValid"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}dateModified"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}copyrightDate"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}dateOther"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}edition"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}issuance"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}frequency"/>
+ *       </choice>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}languageAttributeGroup"/>
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="eventType" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "originInfoDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "placeOrPublisherOrDateIssued" +}) +public class OriginInfoDefinition { + + @XmlElementRefs({ + @XmlElementRef(name = "dateValid", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "dateCaptured", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "dateModified", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "issuance", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "copyrightDate", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "frequency", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "publisher", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "edition", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "dateIssued", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "place", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "dateOther", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "dateCreated", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false) + }) + protected List> placeOrPublisherOrDateIssued; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "eventType") + protected String eventType; + @XmlAttribute(name = "lang") + protected String atlang; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; + @XmlAttribute(name = "script") + protected String script; + @XmlAttribute(name = "transliteration") + protected String transliteration; + + /** + * Gets the value of the placeOrPublisherOrDateIssued property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the placeOrPublisherOrDateIssued property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPlaceOrPublisherOrDateIssued().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link DateDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link DateDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link DateDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link IssuanceDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link DateDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusAuthority }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusSupplied }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusSupplied }{@code >} + * {@link JAXBElement }{@code <}{@link DateDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link PlaceDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link DateOtherDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link DateDefinition }{@code >} + * + * + */ + public List> getPlaceOrPublisherOrDateIssued() { + if (placeOrPublisherOrDateIssued == null) { + placeOrPublisherOrDateIssued = new ArrayList>(); + } + return this.placeOrPublisherOrDateIssued; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the eventType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEventType() { + return eventType; + } + + /** + * Sets the value of the eventType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEventType(String value) { + this.eventType = value; + } + + /** + * Gets the value of the atlang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtlang() { + return atlang; + } + + /** + * Sets the value of the atlang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtlang(String value) { + this.atlang = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + + /** + * Gets the value of the script property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScript() { + return script; + } + + /** + * Sets the value of the script property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScript(String value) { + this.script = value; + } + + /** + * Gets the value of the transliteration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTransliteration() { + return transliteration; + } + + /** + * Sets the value of the transliteration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTransliteration(String value) { + this.transliteration = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PartDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PartDefinition.java new file mode 100644 index 00000000000..a0c38fafb59 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PartDefinition.java @@ -0,0 +1,337 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for partDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="partDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element ref="{http://www.loc.gov/mods/v3}detail"/>
+ *         <element name="extent" type="{http://www.loc.gov/mods/v3}extentDefinition"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}date"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}text"/>
+ *       </choice>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}languageAttributeGroup"/>
+ *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="order" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "partDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "detailOrExtentOrDate" +}) +public class PartDefinition { + + @XmlElements({ + @XmlElement(name = "detail", namespace = "http://www.loc.gov/mods/v3", type = DetailDefinition.class), + @XmlElement(name = "extent", namespace = "http://www.loc.gov/mods/v3", type = ExtentDefinition.class), + @XmlElement(name = "date", namespace = "http://www.loc.gov/mods/v3", type = DateDefinition.class), + @XmlElement(name = "text", namespace = "http://www.loc.gov/mods/v3", type = Text.class) + }) + protected List detailOrExtentOrDate; + @XmlAttribute(name = "ID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "type") + protected String type; + @XmlAttribute(name = "order") + protected BigInteger order; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "lang") + protected String atlang; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; + @XmlAttribute(name = "script") + protected String script; + @XmlAttribute(name = "transliteration") + protected String transliteration; + + /** + * Gets the value of the detailOrExtentOrDate property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the detailOrExtentOrDate property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDetailOrExtentOrDate().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link DetailDefinition } + * {@link ExtentDefinition } + * {@link DateDefinition } + * {@link Text } + * + * + */ + public List getDetailOrExtentOrDate() { + if (detailOrExtentOrDate == null) { + detailOrExtentOrDate = new ArrayList(); + } + return this.detailOrExtentOrDate; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getID() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setID(String value) { + this.id = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the order property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getOrder() { + return order; + } + + /** + * Sets the value of the order property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setOrder(BigInteger value) { + this.order = value; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the atlang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtlang() { + return atlang; + } + + /** + * Sets the value of the atlang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtlang(String value) { + this.atlang = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + + /** + * Gets the value of the script property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScript() { + return script; + } + + /** + * Sets the value of the script property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScript(String value) { + this.script = value; + } + + /** + * Gets the value of the transliteration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTransliteration() { + return transliteration; + } + + /** + * Sets the value of the transliteration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTransliteration(String value) { + this.transliteration = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PhysicalDescriptionDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PhysicalDescriptionDefinition.java new file mode 100644 index 00000000000..ad61c54c519 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PhysicalDescriptionDefinition.java @@ -0,0 +1,254 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for physicalDescriptionDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="physicalDescriptionDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element ref="{http://www.loc.gov/mods/v3}form"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}reformattingQuality"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}internetMediaType"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}extent"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}digitalOrigin"/>
+ *         <element name="note" type="{http://www.loc.gov/mods/v3}physicalDescriptionNote"/>
+ *       </choice>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}languageAttributeGroup"/>
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "physicalDescriptionDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "formOrReformattingQualityOrInternetMediaType" +}) +public class PhysicalDescriptionDefinition { + + @XmlElements({ + @XmlElement(name = "form", namespace = "http://www.loc.gov/mods/v3", type = FormDefinition.class), + @XmlElement(name = "reformattingQuality", namespace = "http://www.loc.gov/mods/v3", type = ReformattingQualityDefinition.class), + @XmlElement(name = "internetMediaType", namespace = "http://www.loc.gov/mods/v3", type = StringPlusLanguage.class), + @XmlElement(name = "extent", namespace = "http://www.loc.gov/mods/v3", type = Extent.class), + @XmlElement(name = "digitalOrigin", namespace = "http://www.loc.gov/mods/v3", type = DigitalOriginDefinition.class), + @XmlElement(name = "note", namespace = "http://www.loc.gov/mods/v3", type = PhysicalDescriptionNote.class) + }) + protected List formOrReformattingQualityOrInternetMediaType; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "lang") + protected String atlang; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; + @XmlAttribute(name = "script") + protected String script; + @XmlAttribute(name = "transliteration") + protected String transliteration; + + /** + * Gets the value of the formOrReformattingQualityOrInternetMediaType property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the formOrReformattingQualityOrInternetMediaType property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFormOrReformattingQualityOrInternetMediaType().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link FormDefinition } + * {@link ReformattingQualityDefinition } + * {@link StringPlusLanguage } + * {@link Extent } + * {@link DigitalOriginDefinition } + * {@link PhysicalDescriptionNote } + * + * + */ + public List getFormOrReformattingQualityOrInternetMediaType() { + if (formOrReformattingQualityOrInternetMediaType == null) { + formOrReformattingQualityOrInternetMediaType = new ArrayList(); + } + return this.formOrReformattingQualityOrInternetMediaType; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the atlang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtlang() { + return atlang; + } + + /** + * Sets the value of the atlang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtlang(String value) { + this.atlang = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + + /** + * Gets the value of the script property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScript() { + return script; + } + + /** + * Sets the value of the script property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScript(String value) { + this.script = value; + } + + /** + * Gets the value of the transliteration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTransliteration() { + return transliteration; + } + + /** + * Sets the value of the transliteration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTransliteration(String value) { + this.transliteration = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PhysicalDescriptionNote.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PhysicalDescriptionNote.java new file mode 100644 index 00000000000..1cc3eab7369 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PhysicalDescriptionNote.java @@ -0,0 +1,344 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for physicalDescriptionNote complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="physicalDescriptionNote">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="typeURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "physicalDescriptionNote", namespace = "http://www.loc.gov/mods/v3") +public class PhysicalDescriptionNote + extends StringPlusLanguage +{ + + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "type") + protected String atType; + @XmlAttribute(name = "typeURI") + @XmlSchemaType(name = "anyURI") + protected String typeURI; + @XmlAttribute(name = "ID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected String type; + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + @XmlSchemaType(name = "anyURI") + protected String href; + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected String show; + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected String actuate; + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the atType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtType() { + return atType; + } + + /** + * Sets the value of the atType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtType(String value) { + this.atType = value; + } + + /** + * Gets the value of the typeURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTypeURI() { + return typeURI; + } + + /** + * Sets the value of the typeURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTypeURI(String value) { + this.typeURI = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getID() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setID(String value) { + this.id = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "simple"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShow(String value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActuate(String value) { + this.actuate = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PhysicalLocationDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PhysicalLocationDefinition.java new file mode 100644 index 00000000000..5058e67adc6 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PhysicalLocationDefinition.java @@ -0,0 +1,283 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for physicalLocationDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="physicalLocationDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguagePlusAuthority">
+ *       <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "physicalLocationDefinition", namespace = "http://www.loc.gov/mods/v3") +public class PhysicalLocationDefinition + extends StringPlusLanguagePlusAuthority +{ + + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "type") + protected String atType; + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected String type; + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + @XmlSchemaType(name = "anyURI") + protected String href; + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected String show; + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected String actuate; + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the atType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtType() { + return atType; + } + + /** + * Sets the value of the atType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtType(String value) { + this.atType = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "simple"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShow(String value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActuate(String value) { + this.actuate = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PlaceDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PlaceDefinition.java new file mode 100644 index 00000000000..0440cc53181 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PlaceDefinition.java @@ -0,0 +1,110 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for placeDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="placeDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.loc.gov/mods/v3}placeTerm" maxOccurs="unbounded"/>
+ *       </sequence>
+ *       <attribute name="supplied" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="yes" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "placeDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "placeTerm" +}) +public class PlaceDefinition { + + @XmlElement(namespace = "http://www.loc.gov/mods/v3", required = true) + protected List placeTerm; + @XmlAttribute(name = "supplied") + @XmlSchemaType(name = "anySimpleType") + protected String supplied; + + /** + * Gets the value of the placeTerm property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the placeTerm property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getPlaceTerm().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PlaceTermDefinition } + * + * + */ + public List getPlaceTerm() { + if (placeTerm == null) { + placeTerm = new ArrayList(); + } + return this.placeTerm; + } + + /** + * Gets the value of the supplied property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSupplied() { + if (supplied == null) { + return "yes"; + } else { + return supplied; + } + } + + /** + * Sets the value of the supplied property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSupplied(String value) { + this.supplied = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PlaceTermDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PlaceTermDefinition.java new file mode 100644 index 00000000000..fd10d732feb --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/PlaceTermDefinition.java @@ -0,0 +1,159 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for placeTermDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="placeTermDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attribute name="authorityURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *       <attribute name="valueURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
+ *       <attribute name="authority">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="marcgac"/>
+ *             <enumeration value="marccountry"/>
+ *             <enumeration value="iso3166"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="type" type="{http://www.loc.gov/mods/v3}codeOrText" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "placeTermDefinition", namespace = "http://www.loc.gov/mods/v3") +public class PlaceTermDefinition + extends StringPlusLanguage +{ + + @XmlAttribute(name = "authorityURI") + @XmlSchemaType(name = "anyURI") + protected String authorityURI; + @XmlAttribute(name = "valueURI") + @XmlSchemaType(name = "anyURI") + protected String valueURI; + @XmlAttribute(name = "authority") + protected String authority; + @XmlAttribute(name = "type") + protected CodeOrText type; + + /** + * Gets the value of the authorityURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthorityURI() { + return authorityURI; + } + + /** + * Sets the value of the authorityURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthorityURI(String value) { + this.authorityURI = value; + } + + /** + * Gets the value of the valueURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValueURI() { + return valueURI; + } + + /** + * Sets the value of the valueURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValueURI(String value) { + this.valueURI = value; + } + + /** + * Gets the value of the authority property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthority() { + return authority; + } + + /** + * Sets the value of the authority property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthority(String value) { + this.authority = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link CodeOrText } + * + */ + public CodeOrText getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link CodeOrText } + * + */ + public void setType(CodeOrText value) { + this.type = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RecordIdentifierDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RecordIdentifierDefinition.java new file mode 100644 index 00000000000..7468e949b9d --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RecordIdentifierDefinition.java @@ -0,0 +1,67 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for recordIdentifierDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="recordIdentifierDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attribute name="source" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "recordIdentifierDefinition", namespace = "http://www.loc.gov/mods/v3") +public class RecordIdentifierDefinition + extends StringPlusLanguage +{ + + @XmlAttribute(name = "source") + protected String source; + + /** + * Gets the value of the source property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSource() { + return source; + } + + /** + * Sets the value of the source property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSource(String value) { + this.source = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RecordInfoDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RecordInfoDefinition.java new file mode 100644 index 00000000000..dfb5693c9d7 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RecordInfoDefinition.java @@ -0,0 +1,261 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for recordInfoDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="recordInfoDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element ref="{http://www.loc.gov/mods/v3}recordContentSource"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}recordCreationDate"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}recordChangeDate"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}recordIdentifier"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}languageOfCataloging"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}recordOrigin"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}descriptionStandard"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}recordInfoNote"/>
+ *       </choice>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}languageAttributeGroup"/>
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "recordInfoDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "recordContentSourceOrRecordCreationDateOrRecordChangeDate" +}) +public class RecordInfoDefinition { + + @XmlElementRefs({ + @XmlElementRef(name = "recordOrigin", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "recordInfoNote", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "recordCreationDate", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "recordIdentifier", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "languageOfCataloging", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "recordContentSource", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "recordChangeDate", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "descriptionStandard", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false) + }) + protected List> recordContentSourceOrRecordCreationDateOrRecordChangeDate; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "lang") + protected String atlang; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; + @XmlAttribute(name = "script") + protected String script; + @XmlAttribute(name = "transliteration") + protected String transliteration; + + /** + * Gets the value of the recordContentSourceOrRecordCreationDateOrRecordChangeDate property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the recordContentSourceOrRecordCreationDateOrRecordChangeDate property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRecordContentSourceOrRecordCreationDateOrRecordChangeDate().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link NoteDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link DateDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link RecordIdentifierDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link LanguageDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusAuthority }{@code >} + * {@link JAXBElement }{@code <}{@link DateDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusAuthority }{@code >} + * + * + */ + public List> getRecordContentSourceOrRecordCreationDateOrRecordChangeDate() { + if (recordContentSourceOrRecordCreationDateOrRecordChangeDate == null) { + recordContentSourceOrRecordCreationDateOrRecordChangeDate = new ArrayList>(); + } + return this.recordContentSourceOrRecordCreationDateOrRecordChangeDate; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the atlang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtlang() { + return atlang; + } + + /** + * Sets the value of the atlang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtlang(String value) { + this.atlang = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + + /** + * Gets the value of the script property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScript() { + return script; + } + + /** + * Sets the value of the script property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScript(String value) { + this.script = value; + } + + /** + * Gets the value of the transliteration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTransliteration() { + return transliteration; + } + + /** + * Sets the value of the transliteration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTransliteration(String value) { + this.transliteration = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ReformattingQualityDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ReformattingQualityDefinition.java new file mode 100644 index 00000000000..a61cd3ec00c --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ReformattingQualityDefinition.java @@ -0,0 +1,61 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for reformattingQualityDefinition. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="reformattingQualityDefinition">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="access"/>
+ *     <enumeration value="preservation"/>
+ *     <enumeration value="replacement"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "reformattingQualityDefinition", namespace = "http://www.loc.gov/mods/v3") +@XmlEnum +public enum ReformattingQualityDefinition { + + @XmlEnumValue("access") + ACCESS("access"), + @XmlEnumValue("preservation") + PRESERVATION("preservation"), + @XmlEnumValue("replacement") + REPLACEMENT("replacement"); + private final String value; + + ReformattingQualityDefinition(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ReformattingQualityDefinition fromValue(String v) { + for (ReformattingQualityDefinition c: ReformattingQualityDefinition.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RegionDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RegionDefinition.java new file mode 100644 index 00000000000..c95a3c7f3b2 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RegionDefinition.java @@ -0,0 +1,69 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for regionDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="regionDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>hierarchicalPart">
+ *       <attribute name="regionType" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "regionDefinition", namespace = "http://www.loc.gov/mods/v3") +public class RegionDefinition + extends HierarchicalPart +{ + + @XmlAttribute(name = "regionType") + @XmlSchemaType(name = "anySimpleType") + protected String regionType; + + /** + * Gets the value of the regionType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRegionType() { + return regionType; + } + + /** + * Sets the value of the regionType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRegionType(String value) { + this.regionType = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RelatedItemDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RelatedItemDefinition.java new file mode 100644 index 00000000000..c20f71c2052 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RelatedItemDefinition.java @@ -0,0 +1,516 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for relatedItemDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="relatedItemDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <group ref="{http://www.loc.gov/mods/v3}modsGroup" maxOccurs="unbounded" minOccurs="0"/>
+ *       <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+ *       <attribute name="type">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="preceding"/>
+ *             <enumeration value="succeeding"/>
+ *             <enumeration value="original"/>
+ *             <enumeration value="host"/>
+ *             <enumeration value="constituent"/>
+ *             <enumeration value="series"/>
+ *             <enumeration value="otherVersion"/>
+ *             <enumeration value="otherFormat"/>
+ *             <enumeration value="isReferencedBy"/>
+ *             <enumeration value="references"/>
+ *             <enumeration value="reviewOf"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="otherType" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="otherTypeAuth" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="otherTypeAuthURI" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="otherTypeURI" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "relatedItemDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "modsGroup" +}) +public class RelatedItemDefinition { + + @XmlElements({ + @XmlElement(name = "abstract", namespace = "http://www.loc.gov/mods/v3", type = AbstractDefinition.class), + @XmlElement(name = "accessCondition", namespace = "http://www.loc.gov/mods/v3", type = AccessConditionDefinition.class), + @XmlElement(name = "classification", namespace = "http://www.loc.gov/mods/v3", type = ClassificationDefinition.class), + @XmlElement(name = "extension", namespace = "http://www.loc.gov/mods/v3", type = ExtensionDefinition.class), + @XmlElement(name = "genre", namespace = "http://www.loc.gov/mods/v3", type = GenreDefinition.class), + @XmlElement(name = "identifier", namespace = "http://www.loc.gov/mods/v3", type = IdentifierDefinition.class), + @XmlElement(name = "language", namespace = "http://www.loc.gov/mods/v3", type = LanguageDefinition.class), + @XmlElement(name = "location", namespace = "http://www.loc.gov/mods/v3", type = LocationDefinition.class), + @XmlElement(name = "name", namespace = "http://www.loc.gov/mods/v3", type = NameDefinition.class), + @XmlElement(name = "note", namespace = "http://www.loc.gov/mods/v3", type = NoteDefinition.class), + @XmlElement(name = "originInfo", namespace = "http://www.loc.gov/mods/v3", type = OriginInfoDefinition.class), + @XmlElement(name = "part", namespace = "http://www.loc.gov/mods/v3", type = PartDefinition.class), + @XmlElement(name = "physicalDescription", namespace = "http://www.loc.gov/mods/v3", type = PhysicalDescriptionDefinition.class), + @XmlElement(name = "recordInfo", namespace = "http://www.loc.gov/mods/v3", type = RecordInfoDefinition.class), + @XmlElement(name = "relatedItem", namespace = "http://www.loc.gov/mods/v3", type = RelatedItemDefinition.class), + @XmlElement(name = "subject", namespace = "http://www.loc.gov/mods/v3", type = SubjectDefinition.class), + @XmlElement(name = "tableOfContents", namespace = "http://www.loc.gov/mods/v3", type = TableOfContentsDefinition.class), + @XmlElement(name = "targetAudience", namespace = "http://www.loc.gov/mods/v3", type = TargetAudienceDefinition.class), + @XmlElement(name = "titleInfo", namespace = "http://www.loc.gov/mods/v3", type = TitleInfoDefinition.class), + @XmlElement(name = "typeOfResource", namespace = "http://www.loc.gov/mods/v3", type = TypeOfResourceDefinition.class) + }) + protected List modsGroup; + @XmlAttribute(name = "type") + protected String atType; + @XmlAttribute(name = "otherType") + protected String otherType; + @XmlAttribute(name = "otherTypeAuth") + protected String otherTypeAuth; + @XmlAttribute(name = "otherTypeAuthURI") + protected String otherTypeAuthURI; + @XmlAttribute(name = "otherTypeURI") + protected String otherTypeURI; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "ID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected String type; + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + @XmlSchemaType(name = "anyURI") + protected String href; + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected String show; + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected String actuate; + + /** + * Gets the value of the modsGroup property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the modsGroup property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getModsGroup().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AbstractDefinition } + * {@link AccessConditionDefinition } + * {@link ClassificationDefinition } + * {@link ExtensionDefinition } + * {@link GenreDefinition } + * {@link IdentifierDefinition } + * {@link LanguageDefinition } + * {@link LocationDefinition } + * {@link NameDefinition } + * {@link NoteDefinition } + * {@link OriginInfoDefinition } + * {@link PartDefinition } + * {@link PhysicalDescriptionDefinition } + * {@link RecordInfoDefinition } + * {@link RelatedItemDefinition } + * {@link SubjectDefinition } + * {@link TableOfContentsDefinition } + * {@link TargetAudienceDefinition } + * {@link TitleInfoDefinition } + * {@link TypeOfResourceDefinition } + * + * + */ + public List getModsGroup() { + if (modsGroup == null) { + modsGroup = new ArrayList(); + } + return this.modsGroup; + } + + /** + * Gets the value of the atType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtType() { + return atType; + } + + /** + * Sets the value of the atType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtType(String value) { + this.atType = value; + } + + /** + * Gets the value of the otherType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOtherType() { + return otherType; + } + + /** + * Sets the value of the otherType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOtherType(String value) { + this.otherType = value; + } + + /** + * Gets the value of the otherTypeAuth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOtherTypeAuth() { + return otherTypeAuth; + } + + /** + * Sets the value of the otherTypeAuth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOtherTypeAuth(String value) { + this.otherTypeAuth = value; + } + + /** + * Gets the value of the otherTypeAuthURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOtherTypeAuthURI() { + return otherTypeAuthURI; + } + + /** + * Sets the value of the otherTypeAuthURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOtherTypeAuthURI(String value) { + this.otherTypeAuthURI = value; + } + + /** + * Gets the value of the otherTypeURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOtherTypeURI() { + return otherTypeURI; + } + + /** + * Sets the value of the otherTypeURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOtherTypeURI(String value) { + this.otherTypeURI = value; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getID() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setID(String value) { + this.id = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "simple"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShow(String value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActuate(String value) { + this.actuate = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RoleDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RoleDefinition.java new file mode 100644 index 00000000000..b17aafd3a5c --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RoleDefinition.java @@ -0,0 +1,76 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for roleDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="roleDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded">
+ *         <element ref="{http://www.loc.gov/mods/v3}roleTerm"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "roleDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "roleTerm" +}) +public class RoleDefinition { + + @XmlElement(namespace = "http://www.loc.gov/mods/v3", required = true) + protected List roleTerm; + + /** + * Gets the value of the roleTerm property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the roleTerm property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getRoleTerm().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link RoleTermDefinition } + * + * + */ + public List getRoleTerm() { + if (roleTerm == null) { + roleTerm = new ArrayList(); + } + return this.roleTerm; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RoleTermDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RoleTermDefinition.java new file mode 100644 index 00000000000..d0affd2992c --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/RoleTermDefinition.java @@ -0,0 +1,67 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for roleTermDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="roleTermDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguagePlusAuthority">
+ *       <attribute name="type" type="{http://www.loc.gov/mods/v3}codeOrText" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "roleTermDefinition", namespace = "http://www.loc.gov/mods/v3") +public class RoleTermDefinition + extends StringPlusLanguagePlusAuthority +{ + + @XmlAttribute(name = "type") + protected CodeOrText type; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link CodeOrText } + * + */ + public CodeOrText getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link CodeOrText } + * + */ + public void setType(CodeOrText value) { + this.type = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ScriptTermDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ScriptTermDefinition.java new file mode 100644 index 00000000000..7d6b69966c1 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/ScriptTermDefinition.java @@ -0,0 +1,67 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for scriptTermDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="scriptTermDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguagePlusAuthority">
+ *       <attribute name="type" type="{http://www.loc.gov/mods/v3}codeOrText" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "scriptTermDefinition", namespace = "http://www.loc.gov/mods/v3") +public class ScriptTermDefinition + extends StringPlusLanguagePlusAuthority +{ + + @XmlAttribute(name = "type") + protected CodeOrText type; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link CodeOrText } + * + */ + public CodeOrText getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link CodeOrText } + * + */ + public void setType(CodeOrText value) { + this.type = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/StringPlusLanguage.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/StringPlusLanguage.java new file mode 100644 index 00000000000..af51146ea3f --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/StringPlusLanguage.java @@ -0,0 +1,194 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for stringPlusLanguage complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="stringPlusLanguage">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}languageAttributeGroup"/>
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "stringPlusLanguage", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "value" +}) +@XmlSeeAlso({ + NoteDefinition.class, + IdentifierDefinition.class, + ItemIdentifierDefinition.class, + RecordIdentifierDefinition.class, + DateDefinition.class, + GeographicCodeDefinition.class, + AbstractDefinition.class, + EnumerationAndChronologyDefinition.class, + org.jabref.logic.importer.fileformat.mods.CopyInformationDefinition.Note.class, + NamePartDefinition.class, + LanguageTermDefinition.class, + HierarchicalPart.class, + TableOfContentsDefinition.class, + PlaceTermDefinition.class, + StringPlusLanguagePlusAuthority.class, + PhysicalDescriptionNote.class, + NonSort.class, + Text.class, + StringPlusLanguagePlusSupplied.class +}) +public class StringPlusLanguage { + + @XmlValue + protected String value; + @XmlAttribute(name = "lang") + protected String atlang; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; + @XmlAttribute(name = "script") + protected String script; + @XmlAttribute(name = "transliteration") + protected String transliteration; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the atlang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtlang() { + return atlang; + } + + /** + * Sets the value of the atlang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtlang(String value) { + this.atlang = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + + /** + * Gets the value of the script property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScript() { + return script; + } + + /** + * Sets the value of the script property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScript(String value) { + this.script = value; + } + + /** + * Gets the value of the transliteration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTransliteration() { + return transliteration; + } + + /** + * Sets the value of the transliteration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTransliteration(String value) { + this.transliteration = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/StringPlusLanguagePlusAuthority.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/StringPlusLanguagePlusAuthority.java new file mode 100644 index 00000000000..44786433ff7 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/StringPlusLanguagePlusAuthority.java @@ -0,0 +1,132 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for stringPlusLanguagePlusAuthority complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="stringPlusLanguagePlusAuthority">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}authorityAttributeGroup"/>
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "stringPlusLanguagePlusAuthority", namespace = "http://www.loc.gov/mods/v3") +@XmlSeeAlso({ + ScriptTermDefinition.class, + RoleTermDefinition.class, + ClassificationDefinition.class, + GenreDefinition.class, + PhysicalLocationDefinition.class, + FormDefinition.class, + TargetAudienceDefinition.class +}) +public class StringPlusLanguagePlusAuthority + extends StringPlusLanguage +{ + + @XmlAttribute(name = "authority") + protected String authority; + @XmlAttribute(name = "authorityURI") + @XmlSchemaType(name = "anyURI") + protected String authorityURI; + @XmlAttribute(name = "valueURI") + @XmlSchemaType(name = "anyURI") + protected String valueURI; + + /** + * Gets the value of the authority property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthority() { + return authority; + } + + /** + * Sets the value of the authority property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthority(String value) { + this.authority = value; + } + + /** + * Gets the value of the authorityURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthorityURI() { + return authorityURI; + } + + /** + * Sets the value of the authorityURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthorityURI(String value) { + this.authorityURI = value; + } + + /** + * Gets the value of the valueURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValueURI() { + return valueURI; + } + + /** + * Sets the value of the valueURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValueURI(String value) { + this.valueURI = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/StringPlusLanguagePlusSupplied.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/StringPlusLanguagePlusSupplied.java new file mode 100644 index 00000000000..f372ed69c8e --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/StringPlusLanguagePlusSupplied.java @@ -0,0 +1,77 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for stringPlusLanguagePlusSupplied complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="stringPlusLanguagePlusSupplied">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attribute name="supplied" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="yes" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "stringPlusLanguagePlusSupplied", namespace = "http://www.loc.gov/mods/v3") +@XmlSeeAlso({ + Extent.class +}) +public class StringPlusLanguagePlusSupplied + extends StringPlusLanguage +{ + + @XmlAttribute(name = "supplied") + @XmlSchemaType(name = "anySimpleType") + protected String supplied; + + /** + * Gets the value of the supplied property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSupplied() { + if (supplied == null) { + return "yes"; + } else { + return supplied; + } + } + + /** + * Sets the value of the supplied property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSupplied(String value) { + this.supplied = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/SubjectDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/SubjectDefinition.java new file mode 100644 index 00000000000..ad573d7218e --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/SubjectDefinition.java @@ -0,0 +1,602 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for subjectDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="subjectDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element ref="{http://www.loc.gov/mods/v3}topic"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}geographic"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}temporal"/>
+ *         <element name="titleInfo" type="{http://www.loc.gov/mods/v3}subjectTitleInfoDefinition"/>
+ *         <element name="name" type="{http://www.loc.gov/mods/v3}subjectNameDefinition"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}geographicCode"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}hierarchicalGeographic"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}cartographics"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}occupation"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}genre"/>
+ *       </choice>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}languageAttributeGroup"/>
+ *       <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}authorityAttributeGroup"/>
+ *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="usage" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="primary" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "subjectDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "topicOrGeographicOrTemporal" +}) +public class SubjectDefinition { + + @XmlElementRefs({ + @XmlElementRef(name = "hierarchicalGeographic", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "geographicCode", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "geographic", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "cartographics", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "occupation", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "titleInfo", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "genre", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "temporal", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "name", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "topic", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false) + }) + protected List> topicOrGeographicOrTemporal; + @XmlAttribute(name = "ID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "usage") + @XmlSchemaType(name = "anySimpleType") + protected String usage; + @XmlAttribute(name = "lang") + protected String atlang; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; + @XmlAttribute(name = "script") + protected String script; + @XmlAttribute(name = "transliteration") + protected String transliteration; + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected String type; + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + @XmlSchemaType(name = "anyURI") + protected String href; + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected String show; + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected String actuate; + @XmlAttribute(name = "authority") + protected String authority; + @XmlAttribute(name = "authorityURI") + @XmlSchemaType(name = "anyURI") + protected String authorityURI; + @XmlAttribute(name = "valueURI") + @XmlSchemaType(name = "anyURI") + protected String valueURI; + + /** + * Gets the value of the topicOrGeographicOrTemporal property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the topicOrGeographicOrTemporal property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTopicOrGeographicOrTemporal().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link HierarchicalGeographicDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link GeographicCodeDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusAuthority }{@code >} + * {@link JAXBElement }{@code <}{@link CartographicsDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusAuthority }{@code >} + * {@link JAXBElement }{@code <}{@link SubjectTitleInfoDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link GenreDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link TemporalDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link SubjectNameDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguagePlusAuthority }{@code >} + * + * + */ + public List> getTopicOrGeographicOrTemporal() { + if (topicOrGeographicOrTemporal == null) { + topicOrGeographicOrTemporal = new ArrayList>(); + } + return this.topicOrGeographicOrTemporal; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getID() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setID(String value) { + this.id = value; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the usage property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUsage() { + if (usage == null) { + return "primary"; + } else { + return usage; + } + } + + /** + * Sets the value of the usage property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUsage(String value) { + this.usage = value; + } + + /** + * Gets the value of the atlang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtlang() { + return atlang; + } + + /** + * Sets the value of the atlang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtlang(String value) { + this.atlang = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + + /** + * Gets the value of the script property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScript() { + return script; + } + + /** + * Sets the value of the script property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScript(String value) { + this.script = value; + } + + /** + * Gets the value of the transliteration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTransliteration() { + return transliteration; + } + + /** + * Sets the value of the transliteration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTransliteration(String value) { + this.transliteration = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "simple"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShow(String value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActuate(String value) { + this.actuate = value; + } + + /** + * Gets the value of the authority property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthority() { + return authority; + } + + /** + * Sets the value of the authority property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthority(String value) { + this.authority = value; + } + + /** + * Gets the value of the authorityURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthorityURI() { + return authorityURI; + } + + /** + * Sets the value of the authorityURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthorityURI(String value) { + this.authorityURI = value; + } + + /** + * Gets the value of the valueURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValueURI() { + return valueURI; + } + + /** + * Sets the value of the valueURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValueURI(String value) { + this.valueURI = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/SubjectNameDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/SubjectNameDefinition.java new file mode 100644 index 00000000000..313ac6a781d --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/SubjectNameDefinition.java @@ -0,0 +1,567 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for subjectNameDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="subjectNameDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element ref="{http://www.loc.gov/mods/v3}namePart"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}displayForm"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}affiliation"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}role"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}description"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}nameIdentifier"/>
+ *       </choice>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}authorityAttributeGroup"/>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}languageAttributeGroup"/>
+ *       <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+ *       <attribute name="type">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="personal"/>
+ *             <enumeration value="corporate"/>
+ *             <enumeration value="conference"/>
+ *             <enumeration value="family"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "subjectNameDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "namePartOrDisplayFormOrAffiliation" +}) +public class SubjectNameDefinition { + + @XmlElementRefs({ + @XmlElementRef(name = "displayForm", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "description", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "namePart", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "nameIdentifier", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "affiliation", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "role", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false) + }) + protected List> namePartOrDisplayFormOrAffiliation; + @XmlAttribute(name = "type") + protected String atType; + @XmlAttribute(name = "ID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "authority") + protected String authority; + @XmlAttribute(name = "authorityURI") + @XmlSchemaType(name = "anyURI") + protected String authorityURI; + @XmlAttribute(name = "valueURI") + @XmlSchemaType(name = "anyURI") + protected String valueURI; + @XmlAttribute(name = "lang") + protected String atlang; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; + @XmlAttribute(name = "script") + protected String script; + @XmlAttribute(name = "transliteration") + protected String transliteration; + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected String type; + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + @XmlSchemaType(name = "anyURI") + protected String href; + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected String show; + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected String actuate; + + /** + * Gets the value of the namePartOrDisplayFormOrAffiliation property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the namePartOrDisplayFormOrAffiliation property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getNamePartOrDisplayFormOrAffiliation().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link IdentifierDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link NamePartDefinition }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link RoleDefinition }{@code >} + * + * + */ + public List> getNamePartOrDisplayFormOrAffiliation() { + if (namePartOrDisplayFormOrAffiliation == null) { + namePartOrDisplayFormOrAffiliation = new ArrayList>(); + } + return this.namePartOrDisplayFormOrAffiliation; + } + + /** + * Gets the value of the atType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtType() { + return atType; + } + + /** + * Sets the value of the atType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtType(String value) { + this.atType = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getID() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setID(String value) { + this.id = value; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the authority property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthority() { + return authority; + } + + /** + * Sets the value of the authority property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthority(String value) { + this.authority = value; + } + + /** + * Gets the value of the authorityURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthorityURI() { + return authorityURI; + } + + /** + * Sets the value of the authorityURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthorityURI(String value) { + this.authorityURI = value; + } + + /** + * Gets the value of the valueURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValueURI() { + return valueURI; + } + + /** + * Sets the value of the valueURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValueURI(String value) { + this.valueURI = value; + } + + /** + * Gets the value of the atlang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtlang() { + return atlang; + } + + /** + * Sets the value of the atlang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtlang(String value) { + this.atlang = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + + /** + * Gets the value of the script property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScript() { + return script; + } + + /** + * Sets the value of the script property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScript(String value) { + this.script = value; + } + + /** + * Gets the value of the transliteration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTransliteration() { + return transliteration; + } + + /** + * Sets the value of the transliteration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTransliteration(String value) { + this.transliteration = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "simple"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShow(String value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActuate(String value) { + this.actuate = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/SubjectTitleInfoDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/SubjectTitleInfoDefinition.java new file mode 100644 index 00000000000..275f10ec8da --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/SubjectTitleInfoDefinition.java @@ -0,0 +1,564 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for subjectTitleInfoDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="subjectTitleInfoDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element ref="{http://www.loc.gov/mods/v3}title"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}subTitle"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}partNumber"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}partName"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}nonSort"/>
+ *       </choice>
+ *       <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}languageAttributeGroup"/>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}authorityAttributeGroup"/>
+ *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="type">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="abbreviated"/>
+ *             <enumeration value="translated"/>
+ *             <enumeration value="alternative"/>
+ *             <enumeration value="uniform"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "subjectTitleInfoDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "titleOrSubTitleOrPartNumber" +}) +public class SubjectTitleInfoDefinition { + + @XmlElementRefs({ + @XmlElementRef(name = "subTitle", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "partNumber", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "title", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "nonSort", namespace = "http://www.loc.gov/mods/v3", type = NonSort.class, required = false), + @XmlElementRef(name = "partName", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false) + }) + protected List titleOrSubTitleOrPartNumber; + @XmlAttribute(name = "ID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "type") + protected String atType; + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected String type; + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + @XmlSchemaType(name = "anyURI") + protected String href; + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected String show; + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected String actuate; + @XmlAttribute(name = "lang") + protected String atlang; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; + @XmlAttribute(name = "script") + protected String script; + @XmlAttribute(name = "transliteration") + protected String transliteration; + @XmlAttribute(name = "authority") + protected String authority; + @XmlAttribute(name = "authorityURI") + @XmlSchemaType(name = "anyURI") + protected String authorityURI; + @XmlAttribute(name = "valueURI") + @XmlSchemaType(name = "anyURI") + protected String valueURI; + + /** + * Gets the value of the titleOrSubTitleOrPartNumber property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the titleOrSubTitleOrPartNumber property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTitleOrSubTitleOrPartNumber().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link NonSort } + * + * + */ + public List getTitleOrSubTitleOrPartNumber() { + if (titleOrSubTitleOrPartNumber == null) { + titleOrSubTitleOrPartNumber = new ArrayList(); + } + return this.titleOrSubTitleOrPartNumber; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getID() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setID(String value) { + this.id = value; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the atType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtType() { + return atType; + } + + /** + * Sets the value of the atType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtType(String value) { + this.atType = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "simple"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShow(String value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActuate(String value) { + this.actuate = value; + } + + /** + * Gets the value of the atlang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtlang() { + return atlang; + } + + /** + * Sets the value of the atlang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtlang(String value) { + this.atlang = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + + /** + * Gets the value of the script property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScript() { + return script; + } + + /** + * Sets the value of the script property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScript(String value) { + this.script = value; + } + + /** + * Gets the value of the transliteration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTransliteration() { + return transliteration; + } + + /** + * Sets the value of the transliteration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTransliteration(String value) { + this.transliteration = value; + } + + /** + * Gets the value of the authority property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthority() { + return authority; + } + + /** + * Sets the value of the authority property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthority(String value) { + this.authority = value; + } + + /** + * Gets the value of the authorityURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthorityURI() { + return authorityURI; + } + + /** + * Sets the value of the authorityURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthorityURI(String value) { + this.authorityURI = value; + } + + /** + * Gets the value of the valueURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValueURI() { + return valueURI; + } + + /** + * Sets the value of the valueURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValueURI(String value) { + this.valueURI = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TableOfContentsDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TableOfContentsDefinition.java new file mode 100644 index 00000000000..c06a970dc85 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TableOfContentsDefinition.java @@ -0,0 +1,396 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for tableOfContentsDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="tableOfContentsDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}altFormatAttributeGroup"/>
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="shareable" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="no" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "tableOfContentsDefinition", namespace = "http://www.loc.gov/mods/v3") +public class TableOfContentsDefinition + extends StringPlusLanguage +{ + + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "type") + protected String atType; + @XmlAttribute(name = "shareable") + @XmlSchemaType(name = "anySimpleType") + protected String shareable; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected String type; + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + @XmlSchemaType(name = "anyURI") + protected String href; + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected String show; + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected String actuate; + @XmlAttribute(name = "altFormat") + @XmlSchemaType(name = "anyURI") + protected String altFormat; + @XmlAttribute(name = "contentType") + protected String contentType; + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the atType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtType() { + return atType; + } + + /** + * Sets the value of the atType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtType(String value) { + this.atType = value; + } + + /** + * Gets the value of the shareable property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShareable() { + if (shareable == null) { + return "no"; + } else { + return shareable; + } + } + + /** + * Sets the value of the shareable property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShareable(String value) { + this.shareable = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "simple"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShow(String value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActuate(String value) { + this.actuate = value; + } + + /** + * Gets the value of the altFormat property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltFormat() { + return altFormat; + } + + /** + * Sets the value of the altFormat property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltFormat(String value) { + this.altFormat = value; + } + + /** + * Gets the value of the contentType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContentType() { + return contentType; + } + + /** + * Sets the value of the contentType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContentType(String value) { + this.contentType = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TargetAudienceDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TargetAudienceDefinition.java new file mode 100644 index 00000000000..beef1923be5 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TargetAudienceDefinition.java @@ -0,0 +1,94 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for targetAudienceDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="targetAudienceDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguagePlusAuthority">
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "targetAudienceDefinition", namespace = "http://www.loc.gov/mods/v3") +public class TargetAudienceDefinition + extends StringPlusLanguagePlusAuthority +{ + + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TemporalDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TemporalDefinition.java new file mode 100644 index 00000000000..7e9531684bb --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TemporalDefinition.java @@ -0,0 +1,122 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for temporalDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="temporalDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>dateDefinition">
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}authorityAttributeGroup"/>
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "temporalDefinition", namespace = "http://www.loc.gov/mods/v3") +public class TemporalDefinition + extends DateDefinition +{ + + @XmlAttribute(name = "authority") + protected String authority; + @XmlAttribute(name = "authorityURI") + @XmlSchemaType(name = "anyURI") + protected String authorityURI; + @XmlAttribute(name = "valueURI") + @XmlSchemaType(name = "anyURI") + protected String valueURI; + + /** + * Gets the value of the authority property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthority() { + return authority; + } + + /** + * Sets the value of the authority property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthority(String value) { + this.authority = value; + } + + /** + * Gets the value of the authorityURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthorityURI() { + return authorityURI; + } + + /** + * Sets the value of the authorityURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthorityURI(String value) { + this.authorityURI = value; + } + + /** + * Gets the value of the valueURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValueURI() { + return valueURI; + } + + /** + * Sets the value of the valueURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValueURI(String value) { + this.valueURI = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/Text.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/Text.java new file mode 100644 index 00000000000..ae0c6bc5c16 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/Text.java @@ -0,0 +1,285 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>stringPlusLanguage">
+ *       <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "text", namespace = "http://www.loc.gov/mods/v3") +public class Text + extends StringPlusLanguage +{ + + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "type") + protected String atType; + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected String type; + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + @XmlSchemaType(name = "anyURI") + protected String href; + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected String show; + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected String actuate; + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the atType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtType() { + return atType; + } + + /** + * Sets the value of the atType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtType(String value) { + this.atType = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "simple"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShow(String value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActuate(String value) { + this.actuate = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TitleInfoDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TitleInfoDefinition.java new file mode 100644 index 00000000000..c92903f0e0b --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TitleInfoDefinition.java @@ -0,0 +1,764 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlID; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; + + +/** + *

Java class for titleInfoDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="titleInfoDefinition">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element ref="{http://www.loc.gov/mods/v3}title"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}subTitle"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}partNumber"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}partName"/>
+ *         <element ref="{http://www.loc.gov/mods/v3}nonSort"/>
+ *       </choice>
+ *       <attGroup ref="{http://www.w3.org/1999/xlink}simpleLink"/>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}altFormatAttributeGroup"/>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}languageAttributeGroup"/>
+ *       <attGroup ref="{http://www.loc.gov/mods/v3}authorityAttributeGroup"/>
+ *       <attribute name="type">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="abbreviated"/>
+ *             <enumeration value="translated"/>
+ *             <enumeration value="alternative"/>
+ *             <enumeration value="uniform"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="otherType" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="supplied" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="yes" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="nameTitleGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="usage" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="primary" />
+ *       <attribute name="ID" type="{http://www.w3.org/2001/XMLSchema}ID" />
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "titleInfoDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "titleOrSubTitleOrPartNumber" +}) +public class TitleInfoDefinition { + + @XmlElementRefs({ + @XmlElementRef(name = "subTitle", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "partNumber", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "title", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "nonSort", namespace = "http://www.loc.gov/mods/v3", type = NonSort.class, required = false), + @XmlElementRef(name = "partName", namespace = "http://www.loc.gov/mods/v3", type = JAXBElement.class, required = false) + }) + protected List titleOrSubTitleOrPartNumber; + @XmlAttribute(name = "type") + protected String atType; + @XmlAttribute(name = "otherType") + @XmlSchemaType(name = "anySimpleType") + protected String otherType; + @XmlAttribute(name = "supplied") + @XmlSchemaType(name = "anySimpleType") + protected String supplied; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "nameTitleGroup") + protected String nameTitleGroup; + @XmlAttribute(name = "usage") + @XmlSchemaType(name = "anySimpleType") + protected String usage; + @XmlAttribute(name = "ID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected String type; + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + @XmlSchemaType(name = "anyURI") + protected String href; + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected String show; + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected String actuate; + @XmlAttribute(name = "altFormat") + @XmlSchemaType(name = "anyURI") + protected String altFormat; + @XmlAttribute(name = "contentType") + protected String contentType; + @XmlAttribute(name = "lang") + protected String atlang; + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; + @XmlAttribute(name = "script") + protected String script; + @XmlAttribute(name = "transliteration") + protected String transliteration; + @XmlAttribute(name = "authority") + protected String authority; + @XmlAttribute(name = "authorityURI") + @XmlSchemaType(name = "anyURI") + protected String authorityURI; + @XmlAttribute(name = "valueURI") + @XmlSchemaType(name = "anyURI") + protected String valueURI; + + /** + * Gets the value of the titleOrSubTitleOrPartNumber property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the titleOrSubTitleOrPartNumber property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getTitleOrSubTitleOrPartNumber().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link JAXBElement }{@code <}{@link StringPlusLanguage }{@code >} + * {@link NonSort } + * + * + */ + public List getTitleOrSubTitleOrPartNumber() { + if (titleOrSubTitleOrPartNumber == null) { + titleOrSubTitleOrPartNumber = new ArrayList(); + } + return this.titleOrSubTitleOrPartNumber; + } + + /** + * Gets the value of the atType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtType() { + return atType; + } + + /** + * Sets the value of the atType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtType(String value) { + this.atType = value; + } + + /** + * Gets the value of the otherType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOtherType() { + return otherType; + } + + /** + * Sets the value of the otherType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOtherType(String value) { + this.otherType = value; + } + + /** + * Gets the value of the supplied property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSupplied() { + if (supplied == null) { + return "yes"; + } else { + return supplied; + } + } + + /** + * Sets the value of the supplied property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSupplied(String value) { + this.supplied = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the nameTitleGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNameTitleGroup() { + return nameTitleGroup; + } + + /** + * Sets the value of the nameTitleGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNameTitleGroup(String value) { + this.nameTitleGroup = value; + } + + /** + * Gets the value of the usage property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUsage() { + if (usage == null) { + return "primary"; + } else { + return usage; + } + } + + /** + * Sets the value of the usage property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUsage(String value) { + this.usage = value; + } + + /** + * Gets the value of the id property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getID() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setID(String value) { + this.id = value; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "simple"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShow(String value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActuate(String value) { + this.actuate = value; + } + + /** + * Gets the value of the altFormat property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltFormat() { + return altFormat; + } + + /** + * Sets the value of the altFormat property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltFormat(String value) { + this.altFormat = value; + } + + /** + * Gets the value of the contentType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContentType() { + return contentType; + } + + /** + * Sets the value of the contentType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContentType(String value) { + this.contentType = value; + } + + /** + * Gets the value of the atlang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAtlang() { + return atlang; + } + + /** + * Sets the value of the atlang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAtlang(String value) { + this.atlang = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + + /** + * Gets the value of the script property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScript() { + return script; + } + + /** + * Sets the value of the script property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScript(String value) { + this.script = value; + } + + /** + * Gets the value of the transliteration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTransliteration() { + return transliteration; + } + + /** + * Sets the value of the transliteration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTransliteration(String value) { + this.transliteration = value; + } + + /** + * Gets the value of the authority property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthority() { + return authority; + } + + /** + * Sets the value of the authority property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthority(String value) { + this.authority = value; + } + + /** + * Gets the value of the authorityURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthorityURI() { + return authorityURI; + } + + /** + * Sets the value of the authorityURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthorityURI(String value) { + this.authorityURI = value; + } + + /** + * Gets the value of the valueURI property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValueURI() { + return valueURI; + } + + /** + * Sets the value of the valueURI property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValueURI(String value) { + this.valueURI = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TypeOfResourceDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TypeOfResourceDefinition.java new file mode 100644 index 00000000000..fba1d8c4c9f --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/TypeOfResourceDefinition.java @@ -0,0 +1,218 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for typeOfResourceDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="typeOfResourceDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.loc.gov/mods/v3>resourceTypeDefinition">
+ *       <attribute name="collection" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="yes" />
+ *       <attribute name="manuscript" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="yes" />
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="altRepGroup" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="usage" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" fixed="primary" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "typeOfResourceDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "value" +}) +public class TypeOfResourceDefinition { + + @XmlValue + protected String value; + @XmlAttribute(name = "collection") + @XmlSchemaType(name = "anySimpleType") + protected String collection; + @XmlAttribute(name = "manuscript") + @XmlSchemaType(name = "anySimpleType") + protected String manuscript; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "altRepGroup") + protected String altRepGroup; + @XmlAttribute(name = "usage") + @XmlSchemaType(name = "anySimpleType") + protected String usage; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the collection property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCollection() { + if (collection == null) { + return "yes"; + } else { + return collection; + } + } + + /** + * Sets the value of the collection property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCollection(String value) { + this.collection = value; + } + + /** + * Gets the value of the manuscript property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getManuscript() { + if (manuscript == null) { + return "yes"; + } else { + return manuscript; + } + } + + /** + * Sets the value of the manuscript property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setManuscript(String value) { + this.manuscript = value; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the altRepGroup property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAltRepGroup() { + return altRepGroup; + } + + /** + * Sets the value of the altRepGroup property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAltRepGroup(String value) { + this.altRepGroup = value; + } + + /** + * Gets the value of the usage property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUsage() { + if (usage == null) { + return "primary"; + } else { + return usage; + } + } + + /** + * Sets the value of the usage property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUsage(String value) { + this.usage = value; + } + +} diff --git a/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/UrlDefinition.java b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/UrlDefinition.java new file mode 100644 index 00000000000..403da136d79 --- /dev/null +++ b/org.jabref.gui/src/main/gen/org/jabref/logic/importer/fileformat/mods/UrlDefinition.java @@ -0,0 +1,219 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2018.02.06 at 09:03:38 PM CET +// + + +package org.jabref.logic.importer.fileformat.mods; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for urlDefinition complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="urlDefinition">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>anyURI">
+ *       <attribute name="dateLastAccessed" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="displayLabel" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="note" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="access">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="preview"/>
+ *             <enumeration value="raw object"/>
+ *             <enumeration value="object in context"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="usage">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="primary display"/>
+ *             <enumeration value="primary"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "urlDefinition", namespace = "http://www.loc.gov/mods/v3", propOrder = { + "value" +}) +public class UrlDefinition { + + @XmlValue + @XmlSchemaType(name = "anyURI") + protected String value; + @XmlAttribute(name = "dateLastAccessed") + protected String dateLastAccessed; + @XmlAttribute(name = "displayLabel") + protected String displayLabel; + @XmlAttribute(name = "note") + protected String note; + @XmlAttribute(name = "access") + protected String access; + @XmlAttribute(name = "usage") + protected String usage; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the dateLastAccessed property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDateLastAccessed() { + return dateLastAccessed; + } + + /** + * Sets the value of the dateLastAccessed property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDateLastAccessed(String value) { + this.dateLastAccessed = value; + } + + /** + * Gets the value of the displayLabel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayLabel() { + return displayLabel; + } + + /** + * Sets the value of the displayLabel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayLabel(String value) { + this.displayLabel = value; + } + + /** + * Gets the value of the note property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNote() { + return note; + } + + /** + * Sets the value of the note property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNote(String value) { + this.note = value; + } + + /** + * Gets the value of the access property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAccess() { + return access; + } + + /** + * Sets the value of the access property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAccess(String value) { + this.access = value; + } + + /** + * Gets the value of the usage property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUsage() { + return usage; + } + + /** + * Sets the value of the usage property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUsage(String value) { + this.usage = value; + } + +} diff --git a/src/main/java/oracle/jdbc/OracleConnection.java b/org.jabref.gui/src/main/java/oracle/jdbc/OracleConnection.java similarity index 100% rename from src/main/java/oracle/jdbc/OracleConnection.java rename to org.jabref.gui/src/main/java/oracle/jdbc/OracleConnection.java diff --git a/src/main/java/oracle/jdbc/OracleStatement.java b/org.jabref.gui/src/main/java/oracle/jdbc/OracleStatement.java similarity index 100% rename from src/main/java/oracle/jdbc/OracleStatement.java rename to org.jabref.gui/src/main/java/oracle/jdbc/OracleStatement.java diff --git a/src/main/java/oracle/jdbc/dcn/DatabaseChangeEvent.java b/org.jabref.gui/src/main/java/oracle/jdbc/dcn/DatabaseChangeEvent.java similarity index 100% rename from src/main/java/oracle/jdbc/dcn/DatabaseChangeEvent.java rename to org.jabref.gui/src/main/java/oracle/jdbc/dcn/DatabaseChangeEvent.java diff --git a/src/main/java/oracle/jdbc/dcn/DatabaseChangeListener.java b/org.jabref.gui/src/main/java/oracle/jdbc/dcn/DatabaseChangeListener.java similarity index 100% rename from src/main/java/oracle/jdbc/dcn/DatabaseChangeListener.java rename to org.jabref.gui/src/main/java/oracle/jdbc/dcn/DatabaseChangeListener.java diff --git a/src/main/java/oracle/jdbc/dcn/DatabaseChangeRegistration.java b/org.jabref.gui/src/main/java/oracle/jdbc/dcn/DatabaseChangeRegistration.java similarity index 100% rename from src/main/java/oracle/jdbc/dcn/DatabaseChangeRegistration.java rename to org.jabref.gui/src/main/java/oracle/jdbc/dcn/DatabaseChangeRegistration.java diff --git a/src/main/java/oracle/jdbc/driver/OracleDriver.java b/org.jabref.gui/src/main/java/oracle/jdbc/driver/OracleDriver.java similarity index 100% rename from src/main/java/oracle/jdbc/driver/OracleDriver.java rename to org.jabref.gui/src/main/java/oracle/jdbc/driver/OracleDriver.java diff --git a/src/main/java/oracle/jdbc/package-info.java b/org.jabref.gui/src/main/java/oracle/jdbc/package-info.java similarity index 100% rename from src/main/java/oracle/jdbc/package-info.java rename to org.jabref.gui/src/main/java/oracle/jdbc/package-info.java diff --git a/src/main/java/org/jabref/Globals.java b/org.jabref.gui/src/main/java/org/jabref/Globals.java similarity index 100% rename from src/main/java/org/jabref/Globals.java rename to org.jabref.gui/src/main/java/org/jabref/Globals.java diff --git a/src/main/java/org/jabref/JabRefGUI.java b/org.jabref.gui/src/main/java/org/jabref/JabRefGUI.java similarity index 100% rename from src/main/java/org/jabref/JabRefGUI.java rename to org.jabref.gui/src/main/java/org/jabref/JabRefGUI.java diff --git a/src/main/java/org/jabref/JabRefMain.java b/org.jabref.gui/src/main/java/org/jabref/JabRefMain.java similarity index 97% rename from src/main/java/org/jabref/JabRefMain.java rename to org.jabref.gui/src/main/java/org/jabref/JabRefMain.java index 8ad2341544c..e99efe12bed 100644 --- a/src/main/java/org/jabref/JabRefMain.java +++ b/org.jabref.gui/src/main/java/org/jabref/JabRefMain.java @@ -12,7 +12,7 @@ import org.jabref.cli.ArgumentProcessor; import org.jabref.gui.remote.JabRefMessageHandler; -import org.jabref.logic.exporter.ExporterFactory; +import org.jabref.logic.FallbackExceptionHandler; import org.jabref.logic.journals.JournalAbbreviationLoader; import org.jabref.logic.l10n.Localization; import org.jabref.logic.net.ProxyAuthenticator; @@ -28,6 +28,7 @@ import org.jabref.model.EntryTypes; import org.jabref.model.database.BibDatabaseMode; import org.jabref.model.entry.InternalBibtexFields; +import org.jabref.preferences.ExporterFactoryFactory; import org.jabref.preferences.JabRefPreferences; import org.slf4j.Logger; @@ -146,7 +147,7 @@ private static void start(String[] args) { Globals.prefs.getXMPPreferences(), Globals.getFileUpdateMonitor()); EntryTypes.loadCustomEntryTypes(preferences.loadCustomEntryTypes(BibDatabaseMode.BIBTEX), preferences.loadCustomEntryTypes(BibDatabaseMode.BIBLATEX)); - Globals.exportFactory = ExporterFactory.create(Globals.prefs, Globals.journalAbbreviationLoader); + Globals.exportFactory = ExporterFactoryFactory.create(Globals.prefs, Globals.journalAbbreviationLoader); // Initialize protected terms loader Globals.protectedTermsLoader = new ProtectedTermsLoader(Globals.prefs.getProtectedTermsPreferences()); diff --git a/src/main/java/org/jabref/cli/ArgumentProcessor.java b/org.jabref.gui/src/main/java/org/jabref/cli/ArgumentProcessor.java similarity index 98% rename from src/main/java/org/jabref/cli/ArgumentProcessor.java rename to org.jabref.gui/src/main/java/org/jabref/cli/ArgumentProcessor.java index b5579040cbe..3110a13eb94 100644 --- a/src/main/java/org/jabref/cli/ArgumentProcessor.java +++ b/org.jabref.gui/src/main/java/org/jabref/cli/ArgumentProcessor.java @@ -48,6 +48,7 @@ import org.jabref.model.database.BibDatabaseMode; import org.jabref.model.entry.BibEntry; import org.jabref.model.strings.StringUtil; +import org.jabref.preferences.JabRefPreferences; import org.jabref.preferences.SearchPreferences; import com.google.common.base.Throwables; @@ -358,7 +359,7 @@ private boolean generateAux(List loaded, String[] data) { try { System.out.println(Localization.lang("Saving") + ": " + subName); - SavePreferences prefs = SavePreferences.loadForSaveFromPreferences(Globals.prefs); + SavePreferences prefs = JabRefPreferences.loadForSaveFromPreferences(Globals.prefs); BibDatabaseWriter databaseWriter = new BibtexDatabaseWriter<>(FileSaveSession::new); Defaults defaults = new Defaults(Globals.prefs.getDefaultBibDatabaseMode()); SaveSession session = databaseWriter.saveDatabase(new BibDatabaseContext(newBase, defaults), prefs); @@ -397,7 +398,7 @@ private void exportFile(List loaded, String[] data) { if (!pr.isInvalid()) { try { System.out.println(Localization.lang("Saving") + ": " + data[0]); - SavePreferences prefs = SavePreferences.loadForSaveFromPreferences(Globals.prefs); + SavePreferences prefs = JabRefPreferences.loadForSaveFromPreferences(Globals.prefs); Defaults defaults = new Defaults(Globals.prefs.getDefaultBibDatabaseMode()); BibDatabaseWriter databaseWriter = new BibtexDatabaseWriter<>( FileSaveSession::new); @@ -465,7 +466,7 @@ private void importPreferences() { Globals.journalAbbreviationLoader); LayoutFormatterPreferences layoutPreferences = Globals.prefs .getLayoutFormatterPreferences(Globals.journalAbbreviationLoader); - SavePreferences savePreferences = SavePreferences.loadForExportFromPreferences(Globals.prefs); + SavePreferences savePreferences = JabRefPreferences.loadForExportFromPreferences(Globals.prefs); Globals.exportFactory = ExporterFactory.create(customExporters, layoutPreferences, savePreferences); } catch (JabRefException ex) { LOGGER.error("Cannot import preferences", ex); diff --git a/src/main/java/org/jabref/cli/AuxCommandLine.java b/org.jabref.gui/src/main/java/org/jabref/cli/AuxCommandLine.java similarity index 100% rename from src/main/java/org/jabref/cli/AuxCommandLine.java rename to org.jabref.gui/src/main/java/org/jabref/cli/AuxCommandLine.java diff --git a/src/main/java/org/jabref/cli/CrossrefFetcherEvaluator.java b/org.jabref.gui/src/main/java/org/jabref/cli/CrossrefFetcherEvaluator.java similarity index 100% rename from src/main/java/org/jabref/cli/CrossrefFetcherEvaluator.java rename to org.jabref.gui/src/main/java/org/jabref/cli/CrossrefFetcherEvaluator.java diff --git a/src/main/java/org/jabref/cli/ImportInspectionCommandLine.java b/org.jabref.gui/src/main/java/org/jabref/cli/ImportInspectionCommandLine.java similarity index 100% rename from src/main/java/org/jabref/cli/ImportInspectionCommandLine.java rename to org.jabref.gui/src/main/java/org/jabref/cli/ImportInspectionCommandLine.java diff --git a/src/main/java/org/jabref/cli/JabRefCLI.java b/org.jabref.gui/src/main/java/org/jabref/cli/JabRefCLI.java similarity index 100% rename from src/main/java/org/jabref/cli/JabRefCLI.java rename to org.jabref.gui/src/main/java/org/jabref/cli/JabRefCLI.java diff --git a/src/main/java/org/jabref/cli/SystemOutputPrinter.java b/org.jabref.gui/src/main/java/org/jabref/cli/SystemOutputPrinter.java similarity index 100% rename from src/main/java/org/jabref/cli/SystemOutputPrinter.java rename to org.jabref.gui/src/main/java/org/jabref/cli/SystemOutputPrinter.java diff --git a/src/main/java/org/jabref/gui/AbstractController.java b/org.jabref.gui/src/main/java/org/jabref/gui/AbstractController.java similarity index 100% rename from src/main/java/org/jabref/gui/AbstractController.java rename to org.jabref.gui/src/main/java/org/jabref/gui/AbstractController.java diff --git a/src/main/java/org/jabref/gui/AbstractDialogView.java b/org.jabref.gui/src/main/java/org/jabref/gui/AbstractDialogView.java similarity index 100% rename from src/main/java/org/jabref/gui/AbstractDialogView.java rename to org.jabref.gui/src/main/java/org/jabref/gui/AbstractDialogView.java diff --git a/src/main/java/org/jabref/gui/AbstractView.java b/org.jabref.gui/src/main/java/org/jabref/gui/AbstractView.java similarity index 100% rename from src/main/java/org/jabref/gui/AbstractView.java rename to org.jabref.gui/src/main/java/org/jabref/gui/AbstractView.java diff --git a/src/main/java/org/jabref/gui/AbstractViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/AbstractViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/AbstractViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/AbstractViewModel.java diff --git a/src/main/java/org/jabref/gui/BasePanel.java b/org.jabref.gui/src/main/java/org/jabref/gui/BasePanel.java similarity index 99% rename from src/main/java/org/jabref/gui/BasePanel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/BasePanel.java index dc098bb6d13..c19e3e0f505 100644 --- a/src/main/java/org/jabref/gui/BasePanel.java +++ b/org.jabref.gui/src/main/java/org/jabref/gui/BasePanel.java @@ -219,7 +219,7 @@ public BasePanel(JabRefFrame frame, BibDatabaseContext bibDatabaseContext) { this.tableModel = new MainTableDataModel(getBibDatabaseContext()); citationStyleCache = new CitationStyleCache(bibDatabaseContext); - annotationCache = new FileAnnotationCache(bibDatabaseContext); + annotationCache = new FileAnnotationCache(bibDatabaseContext, Globals.prefs.getFileDirectoryPreferences()); this.preview = new PreviewPanel(this, getBibDatabaseContext()); DefaultTaskExecutor.runInJavaFXThread(() -> frame().getGlobalSearchBar().getSearchQueryHighlightObservable().addSearchListener(preview)); @@ -1092,7 +1092,7 @@ private boolean saveDatabase(File file, boolean selectedOnly, Charset enc, frame.block(); final String SAVE_DATABASE = Localization.lang("Save library"); try { - SavePreferences prefs = SavePreferences.loadForSaveFromPreferences(Globals.prefs).withEncoding(enc) + SavePreferences prefs = JabRefPreferences.loadForSaveFromPreferences(Globals.prefs).withEncoding(enc) .withSaveType(saveType); BibtexDatabaseWriter databaseWriter = new BibtexDatabaseWriter<>( FileSaveSession::new); diff --git a/src/main/java/org/jabref/gui/BasePanelMode.java b/org.jabref.gui/src/main/java/org/jabref/gui/BasePanelMode.java similarity index 100% rename from src/main/java/org/jabref/gui/BasePanelMode.java rename to org.jabref.gui/src/main/java/org/jabref/gui/BasePanelMode.java diff --git a/src/main/java/org/jabref/gui/ClipBoardManager.java b/org.jabref.gui/src/main/java/org/jabref/gui/ClipBoardManager.java similarity index 100% rename from src/main/java/org/jabref/gui/ClipBoardManager.java rename to org.jabref.gui/src/main/java/org/jabref/gui/ClipBoardManager.java diff --git a/src/main/java/org/jabref/gui/DefaultInjector.java b/org.jabref.gui/src/main/java/org/jabref/gui/DefaultInjector.java similarity index 100% rename from src/main/java/org/jabref/gui/DefaultInjector.java rename to org.jabref.gui/src/main/java/org/jabref/gui/DefaultInjector.java diff --git a/src/main/java/org/jabref/gui/Dialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/Dialog.java similarity index 100% rename from src/main/java/org/jabref/gui/Dialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/Dialog.java diff --git a/src/main/java/org/jabref/gui/DialogService.java b/org.jabref.gui/src/main/java/org/jabref/gui/DialogService.java similarity index 100% rename from src/main/java/org/jabref/gui/DialogService.java rename to org.jabref.gui/src/main/java/org/jabref/gui/DialogService.java diff --git a/src/main/java/org/jabref/gui/DragAndDropDataFormats.java b/org.jabref.gui/src/main/java/org/jabref/gui/DragAndDropDataFormats.java similarity index 100% rename from src/main/java/org/jabref/gui/DragAndDropDataFormats.java rename to org.jabref.gui/src/main/java/org/jabref/gui/DragAndDropDataFormats.java diff --git a/src/main/java/org/jabref/gui/DragDropPane.java b/org.jabref.gui/src/main/java/org/jabref/gui/DragDropPane.java similarity index 100% rename from src/main/java/org/jabref/gui/DragDropPane.java rename to org.jabref.gui/src/main/java/org/jabref/gui/DragDropPane.java diff --git a/src/main/java/org/jabref/gui/DragDropPopupPane.java b/org.jabref.gui/src/main/java/org/jabref/gui/DragDropPopupPane.java similarity index 100% rename from src/main/java/org/jabref/gui/DragDropPopupPane.java rename to org.jabref.gui/src/main/java/org/jabref/gui/DragDropPopupPane.java diff --git a/src/main/java/org/jabref/gui/DuplicateResolverDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/DuplicateResolverDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/DuplicateResolverDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/DuplicateResolverDialog.java diff --git a/src/main/java/org/jabref/gui/DuplicateSearch.java b/org.jabref.gui/src/main/java/org/jabref/gui/DuplicateSearch.java similarity index 100% rename from src/main/java/org/jabref/gui/DuplicateSearch.java rename to org.jabref.gui/src/main/java/org/jabref/gui/DuplicateSearch.java diff --git a/src/main/java/org/jabref/gui/EntryContainer.java b/org.jabref.gui/src/main/java/org/jabref/gui/EntryContainer.java similarity index 100% rename from src/main/java/org/jabref/gui/EntryContainer.java rename to org.jabref.gui/src/main/java/org/jabref/gui/EntryContainer.java diff --git a/src/main/java/org/jabref/gui/EntryMarker.java b/org.jabref.gui/src/main/java/org/jabref/gui/EntryMarker.java similarity index 100% rename from src/main/java/org/jabref/gui/EntryMarker.java rename to org.jabref.gui/src/main/java/org/jabref/gui/EntryMarker.java diff --git a/src/main/java/org/jabref/gui/EntryTypeDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/EntryTypeDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/EntryTypeDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/EntryTypeDialog.java diff --git a/src/main/java/org/jabref/gui/FXDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/FXDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/FXDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/FXDialog.java diff --git a/src/main/java/org/jabref/gui/FXDialogService.java b/org.jabref.gui/src/main/java/org/jabref/gui/FXDialogService.java similarity index 100% rename from src/main/java/org/jabref/gui/FXDialogService.java rename to org.jabref.gui/src/main/java/org/jabref/gui/FXDialogService.java diff --git a/src/main/java/org/jabref/gui/FindUnlinkedFilesDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/FindUnlinkedFilesDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/FindUnlinkedFilesDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/FindUnlinkedFilesDialog.java diff --git a/src/main/java/org/jabref/gui/GUIGlobals.java b/org.jabref.gui/src/main/java/org/jabref/gui/GUIGlobals.java similarity index 100% rename from src/main/java/org/jabref/gui/GUIGlobals.java rename to org.jabref.gui/src/main/java/org/jabref/gui/GUIGlobals.java diff --git a/src/main/java/org/jabref/gui/GenFieldsCustomizer.java b/org.jabref.gui/src/main/java/org/jabref/gui/GenFieldsCustomizer.java similarity index 100% rename from src/main/java/org/jabref/gui/GenFieldsCustomizer.java rename to org.jabref.gui/src/main/java/org/jabref/gui/GenFieldsCustomizer.java diff --git a/src/main/java/org/jabref/gui/GlobalFocusListener.java b/org.jabref.gui/src/main/java/org/jabref/gui/GlobalFocusListener.java similarity index 100% rename from src/main/java/org/jabref/gui/GlobalFocusListener.java rename to org.jabref.gui/src/main/java/org/jabref/gui/GlobalFocusListener.java diff --git a/src/main/java/org/jabref/gui/IconTheme.java b/org.jabref.gui/src/main/java/org/jabref/gui/IconTheme.java similarity index 100% rename from src/main/java/org/jabref/gui/IconTheme.java rename to org.jabref.gui/src/main/java/org/jabref/gui/IconTheme.java diff --git a/src/main/java/org/jabref/gui/JEditorPaneWithHighlighting.java b/org.jabref.gui/src/main/java/org/jabref/gui/JEditorPaneWithHighlighting.java similarity index 100% rename from src/main/java/org/jabref/gui/JEditorPaneWithHighlighting.java rename to org.jabref.gui/src/main/java/org/jabref/gui/JEditorPaneWithHighlighting.java diff --git a/src/main/java/org/jabref/gui/JabRefDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/JabRefDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/JabRefDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/JabRefDialog.java diff --git a/src/main/java/org/jabref/gui/JabRefFrame.java b/org.jabref.gui/src/main/java/org/jabref/gui/JabRefFrame.java similarity index 100% rename from src/main/java/org/jabref/gui/JabRefFrame.java rename to org.jabref.gui/src/main/java/org/jabref/gui/JabRefFrame.java diff --git a/src/main/java/org/jabref/gui/Main.css b/org.jabref.gui/src/main/java/org/jabref/gui/Main.css similarity index 100% rename from src/main/java/org/jabref/gui/Main.css rename to org.jabref.gui/src/main/java/org/jabref/gui/Main.css diff --git a/src/main/java/org/jabref/gui/MergeDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/MergeDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/MergeDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/MergeDialog.java diff --git a/src/main/java/org/jabref/gui/OSXCompatibleToolbar.java b/org.jabref.gui/src/main/java/org/jabref/gui/OSXCompatibleToolbar.java similarity index 100% rename from src/main/java/org/jabref/gui/OSXCompatibleToolbar.java rename to org.jabref.gui/src/main/java/org/jabref/gui/OSXCompatibleToolbar.java diff --git a/src/main/java/org/jabref/gui/PreambleEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/PreambleEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/PreambleEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/PreambleEditor.java diff --git a/src/main/java/org/jabref/gui/PreviewPanel.java b/org.jabref.gui/src/main/java/org/jabref/gui/PreviewPanel.java similarity index 100% rename from src/main/java/org/jabref/gui/PreviewPanel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/PreviewPanel.java diff --git a/src/main/java/org/jabref/gui/ReplaceStringDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/ReplaceStringDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/ReplaceStringDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/ReplaceStringDialog.java diff --git a/src/main/java/org/jabref/gui/SaveOrderConfigDisplay.java b/org.jabref.gui/src/main/java/org/jabref/gui/SaveOrderConfigDisplay.java similarity index 100% rename from src/main/java/org/jabref/gui/SaveOrderConfigDisplay.java rename to org.jabref.gui/src/main/java/org/jabref/gui/SaveOrderConfigDisplay.java diff --git a/src/main/java/org/jabref/gui/SidePane.java b/org.jabref.gui/src/main/java/org/jabref/gui/SidePane.java similarity index 100% rename from src/main/java/org/jabref/gui/SidePane.java rename to org.jabref.gui/src/main/java/org/jabref/gui/SidePane.java diff --git a/src/main/java/org/jabref/gui/SidePaneComponent.java b/org.jabref.gui/src/main/java/org/jabref/gui/SidePaneComponent.java similarity index 100% rename from src/main/java/org/jabref/gui/SidePaneComponent.java rename to org.jabref.gui/src/main/java/org/jabref/gui/SidePaneComponent.java diff --git a/src/main/java/org/jabref/gui/SidePaneManager.java b/org.jabref.gui/src/main/java/org/jabref/gui/SidePaneManager.java similarity index 100% rename from src/main/java/org/jabref/gui/SidePaneManager.java rename to org.jabref.gui/src/main/java/org/jabref/gui/SidePaneManager.java diff --git a/src/main/java/org/jabref/gui/StateManager.java b/org.jabref.gui/src/main/java/org/jabref/gui/StateManager.java similarity index 100% rename from src/main/java/org/jabref/gui/StateManager.java rename to org.jabref.gui/src/main/java/org/jabref/gui/StateManager.java diff --git a/src/main/java/org/jabref/gui/StringDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/StringDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/StringDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/StringDialog.java diff --git a/src/main/java/org/jabref/gui/TransferableBibtexEntry.java b/org.jabref.gui/src/main/java/org/jabref/gui/TransferableBibtexEntry.java similarity index 100% rename from src/main/java/org/jabref/gui/TransferableBibtexEntry.java rename to org.jabref.gui/src/main/java/org/jabref/gui/TransferableBibtexEntry.java diff --git a/src/main/java/org/jabref/gui/UpdateTimestampListener.java b/org.jabref.gui/src/main/java/org/jabref/gui/UpdateTimestampListener.java similarity index 100% rename from src/main/java/org/jabref/gui/UpdateTimestampListener.java rename to org.jabref.gui/src/main/java/org/jabref/gui/UpdateTimestampListener.java diff --git a/src/main/java/org/jabref/gui/WaitForSaveOperation.java b/org.jabref.gui/src/main/java/org/jabref/gui/WaitForSaveOperation.java similarity index 100% rename from src/main/java/org/jabref/gui/WaitForSaveOperation.java rename to org.jabref.gui/src/main/java/org/jabref/gui/WaitForSaveOperation.java diff --git a/src/main/java/org/jabref/gui/WrapLayout.java b/org.jabref.gui/src/main/java/org/jabref/gui/WrapLayout.java similarity index 100% rename from src/main/java/org/jabref/gui/WrapLayout.java rename to org.jabref.gui/src/main/java/org/jabref/gui/WrapLayout.java diff --git a/src/main/java/org/jabref/gui/actions/Actions.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/Actions.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/Actions.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/Actions.java diff --git a/src/main/java/org/jabref/gui/actions/AutoLinkFilesAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/AutoLinkFilesAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/AutoLinkFilesAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/AutoLinkFilesAction.java diff --git a/src/main/java/org/jabref/gui/actions/BaseAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/BaseAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/BaseAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/BaseAction.java diff --git a/src/main/java/org/jabref/gui/actions/ChangeTypeAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/ChangeTypeAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/ChangeTypeAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/ChangeTypeAction.java diff --git a/src/main/java/org/jabref/gui/actions/CleanupAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/CleanupAction.java similarity index 97% rename from src/main/java/org/jabref/gui/actions/CleanupAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/CleanupAction.java index 89e8d94ab90..b2d4ac7c995 100644 --- a/src/main/java/org/jabref/gui/actions/CleanupAction.java +++ b/org.jabref.gui/src/main/java/org/jabref/gui/actions/CleanupAction.java @@ -62,14 +62,14 @@ public void run() { return; } CleanupPresetPanel presetPanel = new CleanupPresetPanel(panel.getBibDatabaseContext(), - CleanupPreset.loadFromPreferences(preferences)); + preferences.getCleanupPreset()); int choice = showDialog(presetPanel); if (choice != JOptionPane.OK_OPTION) { canceled = true; return; } CleanupPreset cleanupPreset = presetPanel.getCleanupPreset(); - cleanupPreset.storeInPreferences(preferences); + preferences.setCleanupPreset(cleanupPreset); if (cleanupPreset.isRenamePDF() && Globals.prefs.getBoolean(JabRefPreferences.ASK_AUTO_NAMING_PDFS_AGAIN)) { CheckBoxMessage cbm = new CheckBoxMessage( diff --git a/src/main/java/org/jabref/gui/actions/ConnectToSharedDatabaseAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/ConnectToSharedDatabaseAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/ConnectToSharedDatabaseAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/ConnectToSharedDatabaseAction.java diff --git a/src/main/java/org/jabref/gui/actions/CopyBibTeXKeyAndLinkAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/CopyBibTeXKeyAndLinkAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/CopyBibTeXKeyAndLinkAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/CopyBibTeXKeyAndLinkAction.java diff --git a/src/main/java/org/jabref/gui/actions/CopyDoiUrlAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/CopyDoiUrlAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/CopyDoiUrlAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/CopyDoiUrlAction.java diff --git a/src/main/java/org/jabref/gui/actions/CopyVersionToClipboardAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/CopyVersionToClipboardAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/CopyVersionToClipboardAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/CopyVersionToClipboardAction.java diff --git a/src/main/java/org/jabref/gui/actions/ErrorConsoleAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/ErrorConsoleAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/ErrorConsoleAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/ErrorConsoleAction.java diff --git a/src/main/java/org/jabref/gui/actions/IntegrityCheckAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/IntegrityCheckAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/IntegrityCheckAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/IntegrityCheckAction.java diff --git a/src/main/java/org/jabref/gui/actions/LookupIdentifierAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/LookupIdentifierAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/LookupIdentifierAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/LookupIdentifierAction.java diff --git a/src/main/java/org/jabref/gui/actions/ManageKeywordsAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/ManageKeywordsAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/ManageKeywordsAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/ManageKeywordsAction.java diff --git a/src/main/java/org/jabref/gui/actions/MassSetFieldAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/MassSetFieldAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/MassSetFieldAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/MassSetFieldAction.java diff --git a/src/main/java/org/jabref/gui/actions/MnemonicAwareAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/MnemonicAwareAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/MnemonicAwareAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/MnemonicAwareAction.java diff --git a/src/main/java/org/jabref/gui/actions/NewDatabaseAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/NewDatabaseAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/NewDatabaseAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/NewDatabaseAction.java diff --git a/src/main/java/org/jabref/gui/actions/NewEntryAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/NewEntryAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/NewEntryAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/NewEntryAction.java diff --git a/src/main/java/org/jabref/gui/actions/NewSubDatabaseAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/NewSubDatabaseAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/NewSubDatabaseAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/NewSubDatabaseAction.java diff --git a/src/main/java/org/jabref/gui/actions/OpenBrowserAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/OpenBrowserAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/OpenBrowserAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/OpenBrowserAction.java diff --git a/src/main/java/org/jabref/gui/actions/SearchForUpdateAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/SearchForUpdateAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/SearchForUpdateAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/SearchForUpdateAction.java diff --git a/src/main/java/org/jabref/gui/actions/SortTabsAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/actions/SortTabsAction.java similarity index 100% rename from src/main/java/org/jabref/gui/actions/SortTabsAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/actions/SortTabsAction.java diff --git a/src/main/java/org/jabref/gui/autocompleter/AppendPersonNamesStrategy.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AppendPersonNamesStrategy.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/AppendPersonNamesStrategy.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AppendPersonNamesStrategy.java diff --git a/src/main/java/org/jabref/gui/autocompleter/AppendWordsStrategy.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AppendWordsStrategy.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/AppendWordsStrategy.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AppendWordsStrategy.java diff --git a/src/main/java/org/jabref/gui/autocompleter/AutoCompleteFirstNameMode.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AutoCompleteFirstNameMode.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/AutoCompleteFirstNameMode.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AutoCompleteFirstNameMode.java diff --git a/src/main/java/org/jabref/gui/autocompleter/AutoCompletePreferences.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AutoCompletePreferences.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/AutoCompletePreferences.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AutoCompletePreferences.java diff --git a/src/main/java/org/jabref/gui/autocompleter/AutoCompleteSuggestionProvider.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AutoCompleteSuggestionProvider.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/AutoCompleteSuggestionProvider.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AutoCompleteSuggestionProvider.java diff --git a/src/main/java/org/jabref/gui/autocompleter/AutoCompleteUpdater.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AutoCompleteUpdater.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/AutoCompleteUpdater.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AutoCompleteUpdater.java diff --git a/src/main/java/org/jabref/gui/autocompleter/AutoCompletionInput.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AutoCompletionInput.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/AutoCompletionInput.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AutoCompletionInput.java diff --git a/src/main/java/org/jabref/gui/autocompleter/AutoCompletionStrategy.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AutoCompletionStrategy.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/AutoCompletionStrategy.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AutoCompletionStrategy.java diff --git a/src/main/java/org/jabref/gui/autocompleter/AutoCompletionTextInputBinding.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AutoCompletionTextInputBinding.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/AutoCompletionTextInputBinding.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/AutoCompletionTextInputBinding.java diff --git a/src/main/java/org/jabref/gui/autocompleter/BibEntrySuggestionProvider.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/BibEntrySuggestionProvider.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/BibEntrySuggestionProvider.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/BibEntrySuggestionProvider.java diff --git a/src/main/java/org/jabref/gui/autocompleter/ContentSelectorSuggestionProvider.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/ContentSelectorSuggestionProvider.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/ContentSelectorSuggestionProvider.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/ContentSelectorSuggestionProvider.java diff --git a/src/main/java/org/jabref/gui/autocompleter/FieldValueSuggestionProvider.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/FieldValueSuggestionProvider.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/FieldValueSuggestionProvider.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/FieldValueSuggestionProvider.java diff --git a/src/main/java/org/jabref/gui/autocompleter/JournalsSuggestionProvider.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/JournalsSuggestionProvider.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/JournalsSuggestionProvider.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/JournalsSuggestionProvider.java diff --git a/src/main/java/org/jabref/gui/autocompleter/PersonNameStringConverter.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/PersonNameStringConverter.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/PersonNameStringConverter.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/PersonNameStringConverter.java diff --git a/src/main/java/org/jabref/gui/autocompleter/PersonNameSuggestionProvider.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/PersonNameSuggestionProvider.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/PersonNameSuggestionProvider.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/PersonNameSuggestionProvider.java diff --git a/src/main/java/org/jabref/gui/autocompleter/ReplaceStrategy.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/ReplaceStrategy.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/ReplaceStrategy.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/ReplaceStrategy.java diff --git a/src/main/java/org/jabref/gui/autocompleter/StringSuggestionProvider.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/StringSuggestionProvider.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/StringSuggestionProvider.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/StringSuggestionProvider.java diff --git a/src/main/java/org/jabref/gui/autocompleter/SuggestionProvider.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/SuggestionProvider.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/SuggestionProvider.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/SuggestionProvider.java diff --git a/src/main/java/org/jabref/gui/autocompleter/SuggestionProviders.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/SuggestionProviders.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/SuggestionProviders.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/SuggestionProviders.java diff --git a/src/main/java/org/jabref/gui/autocompleter/WordSuggestionProvider.java b/org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/WordSuggestionProvider.java similarity index 100% rename from src/main/java/org/jabref/gui/autocompleter/WordSuggestionProvider.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autocompleter/WordSuggestionProvider.java diff --git a/src/main/java/org/jabref/gui/autosaveandbackup/AutosaveUIManager.java b/org.jabref.gui/src/main/java/org/jabref/gui/autosaveandbackup/AutosaveUIManager.java similarity index 100% rename from src/main/java/org/jabref/gui/autosaveandbackup/AutosaveUIManager.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autosaveandbackup/AutosaveUIManager.java diff --git a/src/main/java/org/jabref/gui/autosaveandbackup/BackupUIManager.java b/org.jabref.gui/src/main/java/org/jabref/gui/autosaveandbackup/BackupUIManager.java similarity index 100% rename from src/main/java/org/jabref/gui/autosaveandbackup/BackupUIManager.java rename to org.jabref.gui/src/main/java/org/jabref/gui/autosaveandbackup/BackupUIManager.java diff --git a/src/main/java/org/jabref/gui/auximport/AuxParserResultViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/auximport/AuxParserResultViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/auximport/AuxParserResultViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/auximport/AuxParserResultViewModel.java diff --git a/src/main/java/org/jabref/gui/auximport/FromAuxDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/auximport/FromAuxDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/auximport/FromAuxDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/auximport/FromAuxDialog.java diff --git a/src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternDialog.java diff --git a/src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternPanel.java b/org.jabref.gui/src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternPanel.java similarity index 100% rename from src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternPanel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/bibtexkeypattern/BibtexKeyPatternPanel.java diff --git a/src/main/java/org/jabref/gui/bibtexkeypattern/ResolveDuplicateLabelDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/bibtexkeypattern/ResolveDuplicateLabelDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/bibtexkeypattern/ResolveDuplicateLabelDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/bibtexkeypattern/ResolveDuplicateLabelDialog.java diff --git a/src/main/java/org/jabref/gui/bibtexkeypattern/SearchFixDuplicateLabels.java b/org.jabref.gui/src/main/java/org/jabref/gui/bibtexkeypattern/SearchFixDuplicateLabels.java similarity index 100% rename from src/main/java/org/jabref/gui/bibtexkeypattern/SearchFixDuplicateLabels.java rename to org.jabref.gui/src/main/java/org/jabref/gui/bibtexkeypattern/SearchFixDuplicateLabels.java diff --git a/src/main/java/org/jabref/gui/cleanup/CleanupActionsListModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/cleanup/CleanupActionsListModel.java similarity index 100% rename from src/main/java/org/jabref/gui/cleanup/CleanupActionsListModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/cleanup/CleanupActionsListModel.java diff --git a/src/main/java/org/jabref/gui/cleanup/CleanupPresetPanel.java b/org.jabref.gui/src/main/java/org/jabref/gui/cleanup/CleanupPresetPanel.java similarity index 100% rename from src/main/java/org/jabref/gui/cleanup/CleanupPresetPanel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/cleanup/CleanupPresetPanel.java diff --git a/src/main/java/org/jabref/gui/cleanup/FieldFormatterCleanupsPanel.java b/org.jabref.gui/src/main/java/org/jabref/gui/cleanup/FieldFormatterCleanupsPanel.java similarity index 100% rename from src/main/java/org/jabref/gui/cleanup/FieldFormatterCleanupsPanel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/cleanup/FieldFormatterCleanupsPanel.java diff --git a/src/main/java/org/jabref/gui/collab/ChangeDisplayDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/ChangeDisplayDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/ChangeDisplayDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/ChangeDisplayDialog.java diff --git a/src/main/java/org/jabref/gui/collab/ChangeScanner.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/ChangeScanner.java similarity index 97% rename from src/main/java/org/jabref/gui/collab/ChangeScanner.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/ChangeScanner.java index 0353f50ef1e..1ce69aa3d7d 100644 --- a/src/main/java/org/jabref/gui/collab/ChangeScanner.java +++ b/org.jabref.gui/src/main/java/org/jabref/gui/collab/ChangeScanner.java @@ -33,6 +33,7 @@ import org.jabref.model.entry.BibEntry; import org.jabref.model.entry.BibtexString; import org.jabref.model.metadata.MetaData; +import org.jabref.preferences.JabRefPreferences; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -104,7 +105,7 @@ public void displayResult(final DisplayResultCallback fup) { private void storeTempDatabase() { JabRefExecutorService.INSTANCE.execute(() -> { try { - SavePreferences prefs = SavePreferences.loadForSaveFromPreferences(Globals.prefs).withMakeBackup(false) + SavePreferences prefs = JabRefPreferences.loadForSaveFromPreferences(Globals.prefs).withMakeBackup(false) .withEncoding(panel.getBibDatabaseContext().getMetaData().getEncoding() .orElse(Globals.prefs.getDefaultEncoding())); diff --git a/src/main/java/org/jabref/gui/collab/ChangeViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/ChangeViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/ChangeViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/ChangeViewModel.java diff --git a/src/main/java/org/jabref/gui/collab/DatabaseChangeMonitor.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/DatabaseChangeMonitor.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/DatabaseChangeMonitor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/DatabaseChangeMonitor.java diff --git a/src/main/java/org/jabref/gui/collab/EntryAddChangeViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/EntryAddChangeViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/EntryAddChangeViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/EntryAddChangeViewModel.java diff --git a/src/main/java/org/jabref/gui/collab/EntryChangeViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/EntryChangeViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/EntryChangeViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/EntryChangeViewModel.java diff --git a/src/main/java/org/jabref/gui/collab/EntryDeleteChangeViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/EntryDeleteChangeViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/EntryDeleteChangeViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/EntryDeleteChangeViewModel.java diff --git a/src/main/java/org/jabref/gui/collab/FileUpdatePanel.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/FileUpdatePanel.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/FileUpdatePanel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/FileUpdatePanel.java diff --git a/src/main/java/org/jabref/gui/collab/GroupChangeViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/GroupChangeViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/GroupChangeViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/GroupChangeViewModel.java diff --git a/src/main/java/org/jabref/gui/collab/InfoPane.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/InfoPane.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/InfoPane.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/InfoPane.java diff --git a/src/main/java/org/jabref/gui/collab/MetaDataChangeViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/MetaDataChangeViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/MetaDataChangeViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/MetaDataChangeViewModel.java diff --git a/src/main/java/org/jabref/gui/collab/PreambleChangeViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/PreambleChangeViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/PreambleChangeViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/PreambleChangeViewModel.java diff --git a/src/main/java/org/jabref/gui/collab/StringAddChangeViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/StringAddChangeViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/StringAddChangeViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/StringAddChangeViewModel.java diff --git a/src/main/java/org/jabref/gui/collab/StringChangeViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/StringChangeViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/StringChangeViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/StringChangeViewModel.java diff --git a/src/main/java/org/jabref/gui/collab/StringNameChangeViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/StringNameChangeViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/StringNameChangeViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/StringNameChangeViewModel.java diff --git a/src/main/java/org/jabref/gui/collab/StringRemoveChangeViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/collab/StringRemoveChangeViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/collab/StringRemoveChangeViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/collab/StringRemoveChangeViewModel.java diff --git a/src/main/java/org/jabref/gui/contentselector/ContentSelectorDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/contentselector/ContentSelectorDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/contentselector/ContentSelectorDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/contentselector/ContentSelectorDialog.java diff --git a/src/main/java/org/jabref/gui/copyfiles/CopyFilesAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/copyfiles/CopyFilesAction.java similarity index 100% rename from src/main/java/org/jabref/gui/copyfiles/CopyFilesAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/copyfiles/CopyFilesAction.java diff --git a/src/main/java/org/jabref/gui/copyfiles/CopyFilesDialogController.java b/org.jabref.gui/src/main/java/org/jabref/gui/copyfiles/CopyFilesDialogController.java similarity index 100% rename from src/main/java/org/jabref/gui/copyfiles/CopyFilesDialogController.java rename to org.jabref.gui/src/main/java/org/jabref/gui/copyfiles/CopyFilesDialogController.java diff --git a/src/main/java/org/jabref/gui/copyfiles/CopyFilesDialogView.java b/org.jabref.gui/src/main/java/org/jabref/gui/copyfiles/CopyFilesDialogView.java similarity index 100% rename from src/main/java/org/jabref/gui/copyfiles/CopyFilesDialogView.java rename to org.jabref.gui/src/main/java/org/jabref/gui/copyfiles/CopyFilesDialogView.java diff --git a/src/main/java/org/jabref/gui/copyfiles/CopyFilesDialogViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/copyfiles/CopyFilesDialogViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/copyfiles/CopyFilesDialogViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/copyfiles/CopyFilesDialogViewModel.java diff --git a/src/main/java/org/jabref/gui/copyfiles/CopyFilesResultItemViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/copyfiles/CopyFilesResultItemViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/copyfiles/CopyFilesResultItemViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/copyfiles/CopyFilesResultItemViewModel.java diff --git a/src/main/java/org/jabref/gui/copyfiles/CopyFilesResultListDependency.java b/org.jabref.gui/src/main/java/org/jabref/gui/copyfiles/CopyFilesResultListDependency.java similarity index 100% rename from src/main/java/org/jabref/gui/copyfiles/CopyFilesResultListDependency.java rename to org.jabref.gui/src/main/java/org/jabref/gui/copyfiles/CopyFilesResultListDependency.java diff --git a/src/main/java/org/jabref/gui/copyfiles/CopyFilesTask.java b/org.jabref.gui/src/main/java/org/jabref/gui/copyfiles/CopyFilesTask.java similarity index 100% rename from src/main/java/org/jabref/gui/copyfiles/CopyFilesTask.java rename to org.jabref.gui/src/main/java/org/jabref/gui/copyfiles/CopyFilesTask.java diff --git a/src/main/java/org/jabref/gui/customentrytypes/CustomEntryTypesManager.java b/org.jabref.gui/src/main/java/org/jabref/gui/customentrytypes/CustomEntryTypesManager.java similarity index 100% rename from src/main/java/org/jabref/gui/customentrytypes/CustomEntryTypesManager.java rename to org.jabref.gui/src/main/java/org/jabref/gui/customentrytypes/CustomEntryTypesManager.java diff --git a/src/main/java/org/jabref/gui/customentrytypes/EntryCustomizationDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/customentrytypes/EntryCustomizationDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/customentrytypes/EntryCustomizationDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/customentrytypes/EntryCustomizationDialog.java diff --git a/src/main/java/org/jabref/gui/customentrytypes/EntryTypeList.java b/org.jabref.gui/src/main/java/org/jabref/gui/customentrytypes/EntryTypeList.java similarity index 100% rename from src/main/java/org/jabref/gui/customentrytypes/EntryTypeList.java rename to org.jabref.gui/src/main/java/org/jabref/gui/customentrytypes/EntryTypeList.java diff --git a/src/main/java/org/jabref/gui/customentrytypes/FieldSetComponent.java b/org.jabref.gui/src/main/java/org/jabref/gui/customentrytypes/FieldSetComponent.java similarity index 100% rename from src/main/java/org/jabref/gui/customentrytypes/FieldSetComponent.java rename to org.jabref.gui/src/main/java/org/jabref/gui/customentrytypes/FieldSetComponent.java diff --git a/src/main/java/org/jabref/gui/customjfx/CustomJFXPanel.java b/org.jabref.gui/src/main/java/org/jabref/gui/customjfx/CustomJFXPanel.java similarity index 100% rename from src/main/java/org/jabref/gui/customjfx/CustomJFXPanel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/customjfx/CustomJFXPanel.java diff --git a/src/main/java/org/jabref/gui/dbproperties/DatabasePropertiesDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/dbproperties/DatabasePropertiesDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/dbproperties/DatabasePropertiesDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/dbproperties/DatabasePropertiesDialog.java diff --git a/src/main/java/org/jabref/gui/desktop/JabRefDesktop.java b/org.jabref.gui/src/main/java/org/jabref/gui/desktop/JabRefDesktop.java similarity index 100% rename from src/main/java/org/jabref/gui/desktop/JabRefDesktop.java rename to org.jabref.gui/src/main/java/org/jabref/gui/desktop/JabRefDesktop.java diff --git a/src/main/java/org/jabref/gui/desktop/os/DefaultDesktop.java b/org.jabref.gui/src/main/java/org/jabref/gui/desktop/os/DefaultDesktop.java similarity index 100% rename from src/main/java/org/jabref/gui/desktop/os/DefaultDesktop.java rename to org.jabref.gui/src/main/java/org/jabref/gui/desktop/os/DefaultDesktop.java diff --git a/src/main/java/org/jabref/gui/desktop/os/Linux.java b/org.jabref.gui/src/main/java/org/jabref/gui/desktop/os/Linux.java similarity index 100% rename from src/main/java/org/jabref/gui/desktop/os/Linux.java rename to org.jabref.gui/src/main/java/org/jabref/gui/desktop/os/Linux.java diff --git a/src/main/java/org/jabref/gui/desktop/os/NativeDesktop.java b/org.jabref.gui/src/main/java/org/jabref/gui/desktop/os/NativeDesktop.java similarity index 100% rename from src/main/java/org/jabref/gui/desktop/os/NativeDesktop.java rename to org.jabref.gui/src/main/java/org/jabref/gui/desktop/os/NativeDesktop.java diff --git a/src/main/java/org/jabref/gui/desktop/os/OSX.java b/org.jabref.gui/src/main/java/org/jabref/gui/desktop/os/OSX.java similarity index 100% rename from src/main/java/org/jabref/gui/desktop/os/OSX.java rename to org.jabref.gui/src/main/java/org/jabref/gui/desktop/os/OSX.java diff --git a/src/main/java/org/jabref/gui/desktop/os/Windows.java b/org.jabref.gui/src/main/java/org/jabref/gui/desktop/os/Windows.java similarity index 100% rename from src/main/java/org/jabref/gui/desktop/os/Windows.java rename to org.jabref.gui/src/main/java/org/jabref/gui/desktop/os/Windows.java diff --git a/src/main/java/org/jabref/gui/documentviewer/DocumentPageViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentPageViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/documentviewer/DocumentPageViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentPageViewModel.java diff --git a/src/main/java/org/jabref/gui/documentviewer/DocumentViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/documentviewer/DocumentViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentViewModel.java diff --git a/src/main/java/org/jabref/gui/documentviewer/DocumentViewer.css b/org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentViewer.css similarity index 100% rename from src/main/java/org/jabref/gui/documentviewer/DocumentViewer.css rename to org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentViewer.css diff --git a/src/main/java/org/jabref/gui/documentviewer/DocumentViewer.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentViewer.fxml similarity index 100% rename from src/main/java/org/jabref/gui/documentviewer/DocumentViewer.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentViewer.fxml diff --git a/src/main/java/org/jabref/gui/documentviewer/DocumentViewerControl.java b/org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentViewerControl.java similarity index 100% rename from src/main/java/org/jabref/gui/documentviewer/DocumentViewerControl.java rename to org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentViewerControl.java diff --git a/src/main/java/org/jabref/gui/documentviewer/DocumentViewerController.java b/org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentViewerController.java similarity index 100% rename from src/main/java/org/jabref/gui/documentviewer/DocumentViewerController.java rename to org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentViewerController.java diff --git a/src/main/java/org/jabref/gui/documentviewer/DocumentViewerView.java b/org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentViewerView.java similarity index 100% rename from src/main/java/org/jabref/gui/documentviewer/DocumentViewerView.java rename to org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentViewerView.java diff --git a/src/main/java/org/jabref/gui/documentviewer/DocumentViewerViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentViewerViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/documentviewer/DocumentViewerViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/DocumentViewerViewModel.java diff --git a/src/main/java/org/jabref/gui/documentviewer/PageDimension.java b/org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/PageDimension.java similarity index 100% rename from src/main/java/org/jabref/gui/documentviewer/PageDimension.java rename to org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/PageDimension.java diff --git a/src/main/java/org/jabref/gui/documentviewer/PdfDocumentPageViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/PdfDocumentPageViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/documentviewer/PdfDocumentPageViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/PdfDocumentPageViewModel.java diff --git a/src/main/java/org/jabref/gui/documentviewer/PdfDocumentViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/PdfDocumentViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/documentviewer/PdfDocumentViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/PdfDocumentViewModel.java diff --git a/src/main/java/org/jabref/gui/documentviewer/ShowDocumentViewerAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/ShowDocumentViewerAction.java similarity index 100% rename from src/main/java/org/jabref/gui/documentviewer/ShowDocumentViewerAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/documentviewer/ShowDocumentViewerAction.java diff --git a/src/main/java/org/jabref/gui/entryeditor/DeprecatedFieldsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/DeprecatedFieldsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/DeprecatedFieldsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/DeprecatedFieldsTab.java diff --git a/src/main/java/org/jabref/gui/entryeditor/EntryEditor.css b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/EntryEditor.css similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/EntryEditor.css rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/EntryEditor.css diff --git a/src/main/java/org/jabref/gui/entryeditor/EntryEditor.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/EntryEditor.fxml similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/EntryEditor.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/EntryEditor.fxml diff --git a/src/main/java/org/jabref/gui/entryeditor/EntryEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/EntryEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/EntryEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/EntryEditor.java diff --git a/src/main/java/org/jabref/gui/entryeditor/EntryEditorTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/EntryEditorTab.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/EntryEditorTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/EntryEditorTab.java diff --git a/src/main/java/org/jabref/gui/entryeditor/EntryEditorTabList.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/EntryEditorTabList.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/EntryEditorTabList.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/EntryEditorTabList.java diff --git a/src/main/java/org/jabref/gui/entryeditor/FieldsEditorTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/FieldsEditorTab.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/FieldsEditorTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/FieldsEditorTab.java diff --git a/src/main/java/org/jabref/gui/entryeditor/MathSciNetTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/MathSciNetTab.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/MathSciNetTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/MathSciNetTab.java diff --git a/src/main/java/org/jabref/gui/entryeditor/OptionalFields2Tab.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/OptionalFields2Tab.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/OptionalFields2Tab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/OptionalFields2Tab.java diff --git a/src/main/java/org/jabref/gui/entryeditor/OptionalFieldsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/OptionalFieldsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/OptionalFieldsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/OptionalFieldsTab.java diff --git a/src/main/java/org/jabref/gui/entryeditor/OtherFieldsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/OtherFieldsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/OtherFieldsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/OtherFieldsTab.java diff --git a/src/main/java/org/jabref/gui/entryeditor/RelatedArticlesTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/RelatedArticlesTab.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/RelatedArticlesTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/RelatedArticlesTab.java diff --git a/src/main/java/org/jabref/gui/entryeditor/RequiredFieldsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/RequiredFieldsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/RequiredFieldsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/RequiredFieldsTab.java diff --git a/src/main/java/org/jabref/gui/entryeditor/SourceTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/SourceTab.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/SourceTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/SourceTab.java diff --git a/src/main/java/org/jabref/gui/entryeditor/UserDefinedFieldsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/UserDefinedFieldsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/UserDefinedFieldsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/UserDefinedFieldsTab.java diff --git a/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTab.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTab.fxml similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTab.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTab.fxml diff --git a/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTab.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTab.java diff --git a/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTabController.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTabController.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTabController.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTabController.java diff --git a/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTabView.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTabView.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTabView.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTabView.java diff --git a/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTabViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTabViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTabViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationTabViewModel.java diff --git a/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FileAnnotationViewModel.java diff --git a/src/main/java/org/jabref/gui/errorconsole/ErrorConsole.css b/org.jabref.gui/src/main/java/org/jabref/gui/errorconsole/ErrorConsole.css similarity index 100% rename from src/main/java/org/jabref/gui/errorconsole/ErrorConsole.css rename to org.jabref.gui/src/main/java/org/jabref/gui/errorconsole/ErrorConsole.css diff --git a/src/main/java/org/jabref/gui/errorconsole/ErrorConsole.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/errorconsole/ErrorConsole.fxml similarity index 100% rename from src/main/java/org/jabref/gui/errorconsole/ErrorConsole.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/errorconsole/ErrorConsole.fxml diff --git a/src/main/java/org/jabref/gui/errorconsole/ErrorConsoleController.java b/org.jabref.gui/src/main/java/org/jabref/gui/errorconsole/ErrorConsoleController.java similarity index 100% rename from src/main/java/org/jabref/gui/errorconsole/ErrorConsoleController.java rename to org.jabref.gui/src/main/java/org/jabref/gui/errorconsole/ErrorConsoleController.java diff --git a/src/main/java/org/jabref/gui/errorconsole/ErrorConsoleView.java b/org.jabref.gui/src/main/java/org/jabref/gui/errorconsole/ErrorConsoleView.java similarity index 100% rename from src/main/java/org/jabref/gui/errorconsole/ErrorConsoleView.java rename to org.jabref.gui/src/main/java/org/jabref/gui/errorconsole/ErrorConsoleView.java diff --git a/src/main/java/org/jabref/gui/errorconsole/ErrorConsoleViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/errorconsole/ErrorConsoleViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/errorconsole/ErrorConsoleViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/errorconsole/ErrorConsoleViewModel.java diff --git a/src/main/java/org/jabref/gui/errorconsole/LogEventViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/errorconsole/LogEventViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/errorconsole/LogEventViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/errorconsole/LogEventViewModel.java diff --git a/src/main/java/org/jabref/gui/exporter/CustomExportDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/exporter/CustomExportDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/exporter/CustomExportDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/exporter/CustomExportDialog.java diff --git a/src/main/java/org/jabref/gui/exporter/ExportAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/exporter/ExportAction.java similarity index 97% rename from src/main/java/org/jabref/gui/exporter/ExportAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/exporter/ExportAction.java index 2ac783c2ebc..fa9cb42c713 100644 --- a/src/main/java/org/jabref/gui/exporter/ExportAction.java +++ b/org.jabref.gui/src/main/java/org/jabref/gui/exporter/ExportAction.java @@ -26,6 +26,7 @@ import org.jabref.logic.util.FileType; import org.jabref.logic.util.io.FileUtil; import org.jabref.model.entry.BibEntry; +import org.jabref.preferences.ExporterFactoryFactory; import org.jabref.preferences.JabRefPreferences; import org.slf4j.Logger; @@ -66,7 +67,7 @@ public InternalExportAction(JabRefFrame frame, boolean selectedOnly) { @Override public void actionPerformed(ActionEvent e) { - Globals.exportFactory = ExporterFactory.create(Globals.prefs, Globals.journalAbbreviationLoader); + Globals.exportFactory = ExporterFactoryFactory.create(Globals.prefs, Globals.journalAbbreviationLoader); FileDialogConfiguration fileDialogConfiguration = ExportAction.createExportFileChooser(Globals.exportFactory, Globals.prefs.get(JabRefPreferences.EXPORT_WORKING_DIRECTORY)); DialogService dialogService = new FXDialogService(); DefaultTaskExecutor.runInJavaFXThread(() -> diff --git a/src/main/java/org/jabref/gui/exporter/ExportCustomizationDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/exporter/ExportCustomizationDialog.java similarity index 96% rename from src/main/java/org/jabref/gui/exporter/ExportCustomizationDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/exporter/ExportCustomizationDialog.java index 148866ffc8a..639b757677e 100644 --- a/src/main/java/org/jabref/gui/exporter/ExportCustomizationDialog.java +++ b/org.jabref.gui/src/main/java/org/jabref/gui/exporter/ExportCustomizationDialog.java @@ -34,6 +34,8 @@ import ca.odell.glazedlists.swing.DefaultEventTableModel; import com.jgoodies.forms.builder.ButtonBarBuilder; +import static org.jabref.preferences.JabRefPreferences.loadForExportFromPreferences; + /** *

Title:

*

Description:

@@ -75,7 +77,7 @@ public ExportCustomizationDialog(final JabRefFrame frame) { if (ecd.okPressed()) { Globals.prefs.customExports.addFormat(ecd.name(), ecd.layoutFile(), ecd.extension(), Globals.prefs.getLayoutFormatterPreferences(Globals.journalAbbreviationLoader), - SavePreferences.loadForExportFromPreferences(Globals.prefs)); + loadForExportFromPreferences(Globals.prefs)); Globals.prefs.customExports.store(Globals.prefs); } }); @@ -111,7 +113,7 @@ public ExportCustomizationDialog(final JabRefFrame frame) { } LayoutFormatterPreferences layoutPreferences = Globals.prefs .getLayoutFormatterPreferences(Globals.journalAbbreviationLoader); - SavePreferences savePreferences = SavePreferences.loadForExportFromPreferences(Globals.prefs); + SavePreferences savePreferences = loadForExportFromPreferences(Globals.prefs); for (List list : entries) { Globals.prefs.customExports.remove(list, layoutPreferences, savePreferences); } diff --git a/src/main/java/org/jabref/gui/exporter/ExportFileFilter.java b/org.jabref.gui/src/main/java/org/jabref/gui/exporter/ExportFileFilter.java similarity index 100% rename from src/main/java/org/jabref/gui/exporter/ExportFileFilter.java rename to org.jabref.gui/src/main/java/org/jabref/gui/exporter/ExportFileFilter.java diff --git a/src/main/java/org/jabref/gui/exporter/ExportToClipboardAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/exporter/ExportToClipboardAction.java similarity index 100% rename from src/main/java/org/jabref/gui/exporter/ExportToClipboardAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/exporter/ExportToClipboardAction.java diff --git a/src/main/java/org/jabref/gui/exporter/RtfTransferable.java b/org.jabref.gui/src/main/java/org/jabref/gui/exporter/RtfTransferable.java similarity index 100% rename from src/main/java/org/jabref/gui/exporter/RtfTransferable.java rename to org.jabref.gui/src/main/java/org/jabref/gui/exporter/RtfTransferable.java diff --git a/src/main/java/org/jabref/gui/exporter/SaveAllAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/exporter/SaveAllAction.java similarity index 100% rename from src/main/java/org/jabref/gui/exporter/SaveAllAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/exporter/SaveAllAction.java diff --git a/src/main/java/org/jabref/gui/exporter/SaveDatabaseAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/exporter/SaveDatabaseAction.java similarity index 99% rename from src/main/java/org/jabref/gui/exporter/SaveDatabaseAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/exporter/SaveDatabaseAction.java index 720422289f4..967dc5463d4 100644 --- a/src/main/java/org/jabref/gui/exporter/SaveDatabaseAction.java +++ b/org.jabref.gui/src/main/java/org/jabref/gui/exporter/SaveDatabaseAction.java @@ -178,7 +178,7 @@ private boolean saveDatabase(File file, boolean selectedOnly, Charset encoding) frame.block(); try { - SavePreferences prefs = SavePreferences.loadForSaveFromPreferences(Globals.prefs).withEncoding(encoding); + SavePreferences prefs = JabRefPreferences.loadForSaveFromPreferences(Globals.prefs).withEncoding(encoding); BibtexDatabaseWriter databaseWriter = new BibtexDatabaseWriter<>(FileSaveSession::new); if (selectedOnly) { diff --git a/src/main/java/org/jabref/gui/externalfiles/AutoSetFileLinksUtil.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/AutoSetFileLinksUtil.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiles/AutoSetFileLinksUtil.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/AutoSetFileLinksUtil.java diff --git a/src/main/java/org/jabref/gui/externalfiles/AutoSetLinks.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/AutoSetLinks.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiles/AutoSetLinks.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/AutoSetLinks.java diff --git a/src/main/java/org/jabref/gui/externalfiles/DownloadExternalFile.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/DownloadExternalFile.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiles/DownloadExternalFile.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/DownloadExternalFile.java diff --git a/src/main/java/org/jabref/gui/externalfiles/DroppedFileHandler.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/DroppedFileHandler.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiles/DroppedFileHandler.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/DroppedFileHandler.java diff --git a/src/main/java/org/jabref/gui/externalfiles/FileDownloadTask.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/FileDownloadTask.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiles/FileDownloadTask.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/FileDownloadTask.java diff --git a/src/main/java/org/jabref/gui/externalfiles/FindFullTextAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/FindFullTextAction.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiles/FindFullTextAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/FindFullTextAction.java diff --git a/src/main/java/org/jabref/gui/externalfiles/SynchronizeFileField.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/SynchronizeFileField.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiles/SynchronizeFileField.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/SynchronizeFileField.java diff --git a/src/main/java/org/jabref/gui/externalfiles/TransferableFileLinkSelection.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/TransferableFileLinkSelection.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiles/TransferableFileLinkSelection.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/TransferableFileLinkSelection.java diff --git a/src/main/java/org/jabref/gui/externalfiles/WriteXMPAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/WriteXMPAction.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiles/WriteXMPAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiles/WriteXMPAction.java diff --git a/src/main/java/org/jabref/gui/externalfiletype/ExternalFileMenuItem.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiletype/ExternalFileMenuItem.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiletype/ExternalFileMenuItem.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiletype/ExternalFileMenuItem.java diff --git a/src/main/java/org/jabref/gui/externalfiletype/ExternalFileType.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiletype/ExternalFileType.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiletype/ExternalFileType.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiletype/ExternalFileType.java diff --git a/src/main/java/org/jabref/gui/externalfiletype/ExternalFileTypeEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiletype/ExternalFileTypeEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiletype/ExternalFileTypeEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiletype/ExternalFileTypeEditor.java diff --git a/src/main/java/org/jabref/gui/externalfiletype/ExternalFileTypeEntryEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiletype/ExternalFileTypeEntryEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiletype/ExternalFileTypeEntryEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiletype/ExternalFileTypeEntryEditor.java diff --git a/src/main/java/org/jabref/gui/externalfiletype/ExternalFileTypes.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiletype/ExternalFileTypes.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiletype/ExternalFileTypes.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiletype/ExternalFileTypes.java diff --git a/src/main/java/org/jabref/gui/externalfiletype/UnknownExternalFileType.java b/org.jabref.gui/src/main/java/org/jabref/gui/externalfiletype/UnknownExternalFileType.java similarity index 100% rename from src/main/java/org/jabref/gui/externalfiletype/UnknownExternalFileType.java rename to org.jabref.gui/src/main/java/org/jabref/gui/externalfiletype/UnknownExternalFileType.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/AbstractEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/AbstractEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/AbstractEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/AbstractEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/BibtexKeyEditor.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/BibtexKeyEditor.fxml similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/BibtexKeyEditor.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/BibtexKeyEditor.fxml diff --git a/src/main/java/org/jabref/gui/fieldeditors/BibtexKeyEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/BibtexKeyEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/BibtexKeyEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/BibtexKeyEditor.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/BibtexKeyEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/BibtexKeyEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/BibtexKeyEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/BibtexKeyEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/DateEditor.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/DateEditor.fxml similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/DateEditor.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/DateEditor.fxml diff --git a/src/main/java/org/jabref/gui/fieldeditors/DateEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/DateEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/DateEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/DateEditor.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/DateEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/DateEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/DateEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/DateEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/EditorTextArea.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/EditorTextArea.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/EditorTextArea.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/EditorTextArea.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/EditorTypeEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/EditorTypeEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/EditorTypeEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/EditorTypeEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/EditorValidator.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/EditorValidator.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/EditorValidator.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/EditorValidator.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/FieldEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/FieldEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/FieldEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/FieldEditor.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/FieldEditorFX.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/FieldEditorFX.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/FieldEditorFX.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/FieldEditorFX.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/FieldEditorFocusListener.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/FieldEditorFocusListener.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/FieldEditorFocusListener.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/FieldEditorFocusListener.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/FieldEditors.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/FieldEditors.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/FieldEditors.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/FieldEditors.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/FieldNameLabel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/FieldNameLabel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/FieldNameLabel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/FieldNameLabel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/FileListEditorTransferHandler.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/FileListEditorTransferHandler.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/FileListEditorTransferHandler.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/FileListEditorTransferHandler.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/GenderEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/GenderEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/GenderEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/GenderEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/HtmlTransferable.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/HtmlTransferable.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/HtmlTransferable.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/HtmlTransferable.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/IdentifierEditor.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/IdentifierEditor.fxml similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/IdentifierEditor.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/IdentifierEditor.fxml diff --git a/src/main/java/org/jabref/gui/fieldeditors/IdentifierEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/IdentifierEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/IdentifierEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/IdentifierEditor.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/IdentifierEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/IdentifierEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/IdentifierEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/IdentifierEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/JTextAreaWithHighlighting.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/JTextAreaWithHighlighting.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/JTextAreaWithHighlighting.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/JTextAreaWithHighlighting.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/JournalEditor.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/JournalEditor.fxml similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/JournalEditor.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/JournalEditor.fxml diff --git a/src/main/java/org/jabref/gui/fieldeditors/JournalEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/JournalEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/JournalEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/JournalEditor.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/JournalEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/JournalEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/JournalEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/JournalEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/KeywordsEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/KeywordsEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/KeywordsEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/KeywordsEditor.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/LinkedEntriesEditor.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/LinkedEntriesEditor.fxml similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/LinkedEntriesEditor.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/LinkedEntriesEditor.fxml diff --git a/src/main/java/org/jabref/gui/fieldeditors/LinkedEntriesEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/LinkedEntriesEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/LinkedEntriesEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/LinkedEntriesEditor.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/LinkedEntriesEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/LinkedEntriesEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/LinkedEntriesEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/LinkedEntriesEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/LinkedFileViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/LinkedFileViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/LinkedFileViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/LinkedFileViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/LinkedFilesEditor.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/LinkedFilesEditor.fxml similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/LinkedFilesEditor.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/LinkedFilesEditor.fxml diff --git a/src/main/java/org/jabref/gui/fieldeditors/LinkedFilesEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/LinkedFilesEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/LinkedFilesEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/LinkedFilesEditor.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/LinkedFilesEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/LinkedFilesEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/LinkedFilesEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/LinkedFilesEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/MapBasedEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/MapBasedEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/MapBasedEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/MapBasedEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/MonthEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/MonthEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/MonthEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/MonthEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/MultilineEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/MultilineEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/MultilineEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/MultilineEditor.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/OptionEditor.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/OptionEditor.fxml similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/OptionEditor.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/OptionEditor.fxml diff --git a/src/main/java/org/jabref/gui/fieldeditors/OptionEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/OptionEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/OptionEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/OptionEditor.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/OptionEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/OptionEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/OptionEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/OptionEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/OwnerEditor.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/OwnerEditor.fxml similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/OwnerEditor.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/OwnerEditor.fxml diff --git a/src/main/java/org/jabref/gui/fieldeditors/OwnerEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/OwnerEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/OwnerEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/OwnerEditor.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/OwnerEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/OwnerEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/OwnerEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/OwnerEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/PaginationEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/PaginationEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/PaginationEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/PaginationEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/PatentTypeEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/PatentTypeEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/PatentTypeEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/PatentTypeEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/PersonsEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/PersonsEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/PersonsEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/PersonsEditor.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/PersonsEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/PersonsEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/PersonsEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/PersonsEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/SimpleEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/SimpleEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/SimpleEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/SimpleEditor.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/SimpleEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/SimpleEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/SimpleEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/SimpleEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/TextArea.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/TextArea.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/TextArea.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/TextArea.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/TextField.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/TextField.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/TextField.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/TextField.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/TypeEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/TypeEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/TypeEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/TypeEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/UrlEditor.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/UrlEditor.fxml similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/UrlEditor.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/UrlEditor.fxml diff --git a/src/main/java/org/jabref/gui/fieldeditors/UrlEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/UrlEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/UrlEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/UrlEditor.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/UrlEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/UrlEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/UrlEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/UrlEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/XmlTransferable.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/XmlTransferable.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/XmlTransferable.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/XmlTransferable.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/YesNoEditorViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/YesNoEditorViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/YesNoEditorViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/YesNoEditorViewModel.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/contextmenu/CaseChangeMenu.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/contextmenu/CaseChangeMenu.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/contextmenu/CaseChangeMenu.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/contextmenu/CaseChangeMenu.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/contextmenu/ClearField.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/contextmenu/ClearField.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/contextmenu/ClearField.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/contextmenu/ClearField.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/contextmenu/ConversionMenu.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/contextmenu/ConversionMenu.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/contextmenu/ConversionMenu.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/contextmenu/ConversionMenu.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/contextmenu/EditorMenus.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/contextmenu/EditorMenus.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/contextmenu/EditorMenus.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/contextmenu/EditorMenus.java diff --git a/src/main/java/org/jabref/gui/fieldeditors/contextmenu/ProtectedTermsMenu.java b/org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/contextmenu/ProtectedTermsMenu.java similarity index 100% rename from src/main/java/org/jabref/gui/fieldeditors/contextmenu/ProtectedTermsMenu.java rename to org.jabref.gui/src/main/java/org/jabref/gui/fieldeditors/contextmenu/ProtectedTermsMenu.java diff --git a/src/main/java/org/jabref/gui/filelist/AttachFileAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/filelist/AttachFileAction.java similarity index 100% rename from src/main/java/org/jabref/gui/filelist/AttachFileAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/filelist/AttachFileAction.java diff --git a/src/main/java/org/jabref/gui/filelist/ConfirmCloseFileListEntryEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/filelist/ConfirmCloseFileListEntryEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/filelist/ConfirmCloseFileListEntryEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/filelist/ConfirmCloseFileListEntryEditor.java diff --git a/src/main/java/org/jabref/gui/filelist/FileListEntry.java b/org.jabref.gui/src/main/java/org/jabref/gui/filelist/FileListEntry.java similarity index 100% rename from src/main/java/org/jabref/gui/filelist/FileListEntry.java rename to org.jabref.gui/src/main/java/org/jabref/gui/filelist/FileListEntry.java diff --git a/src/main/java/org/jabref/gui/filelist/FileListEntryEditor.java b/org.jabref.gui/src/main/java/org/jabref/gui/filelist/FileListEntryEditor.java similarity index 100% rename from src/main/java/org/jabref/gui/filelist/FileListEntryEditor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/filelist/FileListEntryEditor.java diff --git a/src/main/java/org/jabref/gui/filelist/FileListTableModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/filelist/FileListTableModel.java similarity index 100% rename from src/main/java/org/jabref/gui/filelist/FileListTableModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/filelist/FileListTableModel.java diff --git a/src/main/java/org/jabref/gui/groups/DroppingMouseLocation.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/DroppingMouseLocation.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/DroppingMouseLocation.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/DroppingMouseLocation.java diff --git a/src/main/java/org/jabref/gui/groups/EntryTableTransferHandler.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/EntryTableTransferHandler.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/EntryTableTransferHandler.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/EntryTableTransferHandler.java diff --git a/src/main/java/org/jabref/gui/groups/GroupAddRemoveDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupAddRemoveDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/GroupAddRemoveDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupAddRemoveDialog.java diff --git a/src/main/java/org/jabref/gui/groups/GroupDescriptions.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupDescriptions.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/GroupDescriptions.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupDescriptions.java diff --git a/src/main/java/org/jabref/gui/groups/GroupDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/GroupDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupDialog.java diff --git a/src/main/java/org/jabref/gui/groups/GroupMatcher.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupMatcher.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/GroupMatcher.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupMatcher.java diff --git a/src/main/java/org/jabref/gui/groups/GroupNodeViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupNodeViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/GroupNodeViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupNodeViewModel.java diff --git a/src/main/java/org/jabref/gui/groups/GroupSidePane.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupSidePane.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/GroupSidePane.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupSidePane.java diff --git a/src/main/java/org/jabref/gui/groups/GroupTree.css b/org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupTree.css similarity index 100% rename from src/main/java/org/jabref/gui/groups/GroupTree.css rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupTree.css diff --git a/src/main/java/org/jabref/gui/groups/GroupTree.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupTree.fxml similarity index 100% rename from src/main/java/org/jabref/gui/groups/GroupTree.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupTree.fxml diff --git a/src/main/java/org/jabref/gui/groups/GroupTreeCellRenderer.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupTreeCellRenderer.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/GroupTreeCellRenderer.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupTreeCellRenderer.java diff --git a/src/main/java/org/jabref/gui/groups/GroupTreeController.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupTreeController.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/GroupTreeController.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupTreeController.java diff --git a/src/main/java/org/jabref/gui/groups/GroupTreeNodeViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupTreeNodeViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/GroupTreeNodeViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupTreeNodeViewModel.java diff --git a/src/main/java/org/jabref/gui/groups/GroupTreeView.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupTreeView.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/GroupTreeView.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupTreeView.java diff --git a/src/main/java/org/jabref/gui/groups/GroupTreeViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupTreeViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/GroupTreeViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupTreeViewModel.java diff --git a/src/main/java/org/jabref/gui/groups/GroupingWorker.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupingWorker.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/GroupingWorker.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/GroupingWorker.java diff --git a/src/main/java/org/jabref/gui/groups/MoveGroupChange.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/MoveGroupChange.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/MoveGroupChange.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/MoveGroupChange.java diff --git a/src/main/java/org/jabref/gui/groups/TransferableEntrySelection.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/TransferableEntrySelection.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/TransferableEntrySelection.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/TransferableEntrySelection.java diff --git a/src/main/java/org/jabref/gui/groups/UndoableAddOrRemoveGroup.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/UndoableAddOrRemoveGroup.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/UndoableAddOrRemoveGroup.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/UndoableAddOrRemoveGroup.java diff --git a/src/main/java/org/jabref/gui/groups/UndoableChangeEntriesOfGroup.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/UndoableChangeEntriesOfGroup.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/UndoableChangeEntriesOfGroup.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/UndoableChangeEntriesOfGroup.java diff --git a/src/main/java/org/jabref/gui/groups/UndoableModifyGroup.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/UndoableModifyGroup.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/UndoableModifyGroup.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/UndoableModifyGroup.java diff --git a/src/main/java/org/jabref/gui/groups/UndoableModifySubtree.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/UndoableModifySubtree.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/UndoableModifySubtree.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/UndoableModifySubtree.java diff --git a/src/main/java/org/jabref/gui/groups/UndoableMoveGroup.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/UndoableMoveGroup.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/UndoableMoveGroup.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/UndoableMoveGroup.java diff --git a/src/main/java/org/jabref/gui/groups/WarnAssignmentSideEffects.java b/org.jabref.gui/src/main/java/org/jabref/gui/groups/WarnAssignmentSideEffects.java similarity index 100% rename from src/main/java/org/jabref/gui/groups/WarnAssignmentSideEffects.java rename to org.jabref.gui/src/main/java/org/jabref/gui/groups/WarnAssignmentSideEffects.java diff --git a/src/main/java/org/jabref/gui/help/AboutAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/help/AboutAction.java similarity index 100% rename from src/main/java/org/jabref/gui/help/AboutAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/help/AboutAction.java diff --git a/src/main/java/org/jabref/gui/help/AboutDialogController.java b/org.jabref.gui/src/main/java/org/jabref/gui/help/AboutDialogController.java similarity index 100% rename from src/main/java/org/jabref/gui/help/AboutDialogController.java rename to org.jabref.gui/src/main/java/org/jabref/gui/help/AboutDialogController.java diff --git a/src/main/java/org/jabref/gui/help/AboutDialogView.java b/org.jabref.gui/src/main/java/org/jabref/gui/help/AboutDialogView.java similarity index 100% rename from src/main/java/org/jabref/gui/help/AboutDialogView.java rename to org.jabref.gui/src/main/java/org/jabref/gui/help/AboutDialogView.java diff --git a/src/main/java/org/jabref/gui/help/AboutDialogViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/help/AboutDialogViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/help/AboutDialogViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/help/AboutDialogViewModel.java diff --git a/src/main/java/org/jabref/gui/help/HelpAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/help/HelpAction.java similarity index 100% rename from src/main/java/org/jabref/gui/help/HelpAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/help/HelpAction.java diff --git a/src/main/java/org/jabref/gui/help/NewVersionDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/help/NewVersionDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/help/NewVersionDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/help/NewVersionDialog.java diff --git a/src/main/java/org/jabref/gui/importer/EntryFromExternalFileCreator.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/EntryFromExternalFileCreator.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/EntryFromExternalFileCreator.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/EntryFromExternalFileCreator.java diff --git a/src/main/java/org/jabref/gui/importer/EntryFromFileCreator.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/EntryFromFileCreator.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/EntryFromFileCreator.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/EntryFromFileCreator.java diff --git a/src/main/java/org/jabref/gui/importer/EntryFromFileCreatorManager.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/EntryFromFileCreatorManager.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/EntryFromFileCreatorManager.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/EntryFromFileCreatorManager.java diff --git a/src/main/java/org/jabref/gui/importer/EntryFromPDFCreator.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/EntryFromPDFCreator.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/EntryFromPDFCreator.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/EntryFromPDFCreator.java diff --git a/src/main/java/org/jabref/gui/importer/FetcherPreviewDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/FetcherPreviewDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/FetcherPreviewDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/FetcherPreviewDialog.java diff --git a/src/main/java/org/jabref/gui/importer/ImportCustomizationDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/ImportCustomizationDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/ImportCustomizationDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/ImportCustomizationDialog.java diff --git a/src/main/java/org/jabref/gui/importer/ImportFormats.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/ImportFormats.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/ImportFormats.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/ImportFormats.java diff --git a/src/main/java/org/jabref/gui/importer/ImportInspectionDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/ImportInspectionDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/ImportInspectionDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/ImportInspectionDialog.java diff --git a/src/main/java/org/jabref/gui/importer/ImportMenuItem.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/ImportMenuItem.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/ImportMenuItem.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/ImportMenuItem.java diff --git a/src/main/java/org/jabref/gui/importer/ParserResultWarningDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/ParserResultWarningDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/ParserResultWarningDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/ParserResultWarningDialog.java diff --git a/src/main/java/org/jabref/gui/importer/UnlinkedFilesCrawler.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/UnlinkedFilesCrawler.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/UnlinkedFilesCrawler.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/UnlinkedFilesCrawler.java diff --git a/src/main/java/org/jabref/gui/importer/UnlinkedPDFFileFilter.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/UnlinkedPDFFileFilter.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/UnlinkedPDFFileFilter.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/UnlinkedPDFFileFilter.java diff --git a/src/main/java/org/jabref/gui/importer/ZipFileChooser.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/ZipFileChooser.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/ZipFileChooser.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/ZipFileChooser.java diff --git a/src/main/java/org/jabref/gui/importer/actions/AppendDatabaseAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/actions/AppendDatabaseAction.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/actions/AppendDatabaseAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/actions/AppendDatabaseAction.java diff --git a/src/main/java/org/jabref/gui/importer/actions/CheckForNewEntryTypesAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/actions/CheckForNewEntryTypesAction.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/actions/CheckForNewEntryTypesAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/actions/CheckForNewEntryTypesAction.java diff --git a/src/main/java/org/jabref/gui/importer/actions/GUIPostOpenAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/actions/GUIPostOpenAction.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/actions/GUIPostOpenAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/actions/GUIPostOpenAction.java diff --git a/src/main/java/org/jabref/gui/importer/actions/HandleDuplicateWarnings.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/actions/HandleDuplicateWarnings.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/actions/HandleDuplicateWarnings.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/actions/HandleDuplicateWarnings.java diff --git a/src/main/java/org/jabref/gui/importer/actions/OpenDatabaseAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/actions/OpenDatabaseAction.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/actions/OpenDatabaseAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/actions/OpenDatabaseAction.java diff --git a/src/main/java/org/jabref/gui/importer/fetcher/ACMPortalFetcher.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/ACMPortalFetcher.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/fetcher/ACMPortalFetcher.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/ACMPortalFetcher.java diff --git a/src/main/java/org/jabref/gui/importer/fetcher/CiteSeerXFetcher.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/CiteSeerXFetcher.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/fetcher/CiteSeerXFetcher.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/CiteSeerXFetcher.java diff --git a/src/main/java/org/jabref/gui/importer/fetcher/DOAJFetcher.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/DOAJFetcher.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/fetcher/DOAJFetcher.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/DOAJFetcher.java diff --git a/src/main/java/org/jabref/gui/importer/fetcher/EntryFetcher.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/EntryFetcher.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/fetcher/EntryFetcher.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/EntryFetcher.java diff --git a/src/main/java/org/jabref/gui/importer/fetcher/EntryFetchers.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/EntryFetchers.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/fetcher/EntryFetchers.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/EntryFetchers.java diff --git a/src/main/java/org/jabref/gui/importer/fetcher/GeneralFetcher.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/GeneralFetcher.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/fetcher/GeneralFetcher.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/GeneralFetcher.java diff --git a/src/main/java/org/jabref/gui/importer/fetcher/IEEEXploreFetcher.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/IEEEXploreFetcher.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/fetcher/IEEEXploreFetcher.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/IEEEXploreFetcher.java diff --git a/src/main/java/org/jabref/gui/importer/fetcher/INSPIREFetcher.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/INSPIREFetcher.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/fetcher/INSPIREFetcher.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/INSPIREFetcher.java diff --git a/src/main/java/org/jabref/gui/importer/fetcher/OAI2Fetcher.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/OAI2Fetcher.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/fetcher/OAI2Fetcher.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/OAI2Fetcher.java diff --git a/src/main/java/org/jabref/gui/importer/fetcher/PreviewEntryFetcher.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/PreviewEntryFetcher.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/fetcher/PreviewEntryFetcher.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/PreviewEntryFetcher.java diff --git a/src/main/java/org/jabref/gui/importer/fetcher/SearchBasedEntryFetcher.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/SearchBasedEntryFetcher.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/fetcher/SearchBasedEntryFetcher.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/SearchBasedEntryFetcher.java diff --git a/src/main/java/org/jabref/gui/importer/fetcher/SpringerFetcher.java b/org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/SpringerFetcher.java similarity index 100% rename from src/main/java/org/jabref/gui/importer/fetcher/SpringerFetcher.java rename to org.jabref.gui/src/main/java/org/jabref/gui/importer/fetcher/SpringerFetcher.java diff --git a/src/main/java/org/jabref/gui/journals/AbbreviateAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/journals/AbbreviateAction.java similarity index 100% rename from src/main/java/org/jabref/gui/journals/AbbreviateAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/journals/AbbreviateAction.java diff --git a/src/main/java/org/jabref/gui/journals/AbbreviationViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/journals/AbbreviationViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/journals/AbbreviationViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/journals/AbbreviationViewModel.java diff --git a/src/main/java/org/jabref/gui/journals/AbbreviationsFileViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/journals/AbbreviationsFileViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/journals/AbbreviationsFileViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/journals/AbbreviationsFileViewModel.java diff --git a/src/main/java/org/jabref/gui/journals/JournalAbbreviationsUtil.java b/org.jabref.gui/src/main/java/org/jabref/gui/journals/JournalAbbreviationsUtil.java similarity index 100% rename from src/main/java/org/jabref/gui/journals/JournalAbbreviationsUtil.java rename to org.jabref.gui/src/main/java/org/jabref/gui/journals/JournalAbbreviationsUtil.java diff --git a/src/main/java/org/jabref/gui/journals/ManageJournalAbbreviationsController.java b/org.jabref.gui/src/main/java/org/jabref/gui/journals/ManageJournalAbbreviationsController.java similarity index 100% rename from src/main/java/org/jabref/gui/journals/ManageJournalAbbreviationsController.java rename to org.jabref.gui/src/main/java/org/jabref/gui/journals/ManageJournalAbbreviationsController.java diff --git a/src/main/java/org/jabref/gui/journals/ManageJournalAbbreviationsView.java b/org.jabref.gui/src/main/java/org/jabref/gui/journals/ManageJournalAbbreviationsView.java similarity index 100% rename from src/main/java/org/jabref/gui/journals/ManageJournalAbbreviationsView.java rename to org.jabref.gui/src/main/java/org/jabref/gui/journals/ManageJournalAbbreviationsView.java diff --git a/src/main/java/org/jabref/gui/journals/ManageJournalAbbreviationsViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/journals/ManageJournalAbbreviationsViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/journals/ManageJournalAbbreviationsViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/journals/ManageJournalAbbreviationsViewModel.java diff --git a/src/main/java/org/jabref/gui/journals/ManageJournalsAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/journals/ManageJournalsAction.java similarity index 100% rename from src/main/java/org/jabref/gui/journals/ManageJournalsAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/journals/ManageJournalsAction.java diff --git a/src/main/java/org/jabref/gui/journals/UnabbreviateAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/journals/UnabbreviateAction.java similarity index 100% rename from src/main/java/org/jabref/gui/journals/UnabbreviateAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/journals/UnabbreviateAction.java diff --git a/src/main/java/org/jabref/gui/journals/UndoableAbbreviator.java b/org.jabref.gui/src/main/java/org/jabref/gui/journals/UndoableAbbreviator.java similarity index 100% rename from src/main/java/org/jabref/gui/journals/UndoableAbbreviator.java rename to org.jabref.gui/src/main/java/org/jabref/gui/journals/UndoableAbbreviator.java diff --git a/src/main/java/org/jabref/gui/journals/UndoableUnabbreviator.java b/org.jabref.gui/src/main/java/org/jabref/gui/journals/UndoableUnabbreviator.java similarity index 100% rename from src/main/java/org/jabref/gui/journals/UndoableUnabbreviator.java rename to org.jabref.gui/src/main/java/org/jabref/gui/journals/UndoableUnabbreviator.java diff --git a/src/main/java/org/jabref/gui/keyboard/EmacsKeyBindings.java b/org.jabref.gui/src/main/java/org/jabref/gui/keyboard/EmacsKeyBindings.java similarity index 100% rename from src/main/java/org/jabref/gui/keyboard/EmacsKeyBindings.java rename to org.jabref.gui/src/main/java/org/jabref/gui/keyboard/EmacsKeyBindings.java diff --git a/src/main/java/org/jabref/gui/keyboard/KeyBinder.java b/org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBinder.java similarity index 100% rename from src/main/java/org/jabref/gui/keyboard/KeyBinder.java rename to org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBinder.java diff --git a/src/main/java/org/jabref/gui/keyboard/KeyBinding.java b/org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBinding.java similarity index 100% rename from src/main/java/org/jabref/gui/keyboard/KeyBinding.java rename to org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBinding.java diff --git a/src/main/java/org/jabref/gui/keyboard/KeyBindingAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBindingAction.java similarity index 100% rename from src/main/java/org/jabref/gui/keyboard/KeyBindingAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBindingAction.java diff --git a/src/main/java/org/jabref/gui/keyboard/KeyBindingCategory.java b/org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBindingCategory.java similarity index 100% rename from src/main/java/org/jabref/gui/keyboard/KeyBindingCategory.java rename to org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBindingCategory.java diff --git a/src/main/java/org/jabref/gui/keyboard/KeyBindingRepository.java b/org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBindingRepository.java similarity index 100% rename from src/main/java/org/jabref/gui/keyboard/KeyBindingRepository.java rename to org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBindingRepository.java diff --git a/src/main/java/org/jabref/gui/keyboard/KeyBindingViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBindingViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/keyboard/KeyBindingViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBindingViewModel.java diff --git a/src/main/java/org/jabref/gui/keyboard/KeyBindingsDialogController.java b/org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBindingsDialogController.java similarity index 100% rename from src/main/java/org/jabref/gui/keyboard/KeyBindingsDialogController.java rename to org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBindingsDialogController.java diff --git a/src/main/java/org/jabref/gui/keyboard/KeyBindingsDialogView.java b/org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBindingsDialogView.java similarity index 100% rename from src/main/java/org/jabref/gui/keyboard/KeyBindingsDialogView.java rename to org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBindingsDialogView.java diff --git a/src/main/java/org/jabref/gui/keyboard/KeyBindingsDialogViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBindingsDialogViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/keyboard/KeyBindingsDialogViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/keyboard/KeyBindingsDialogViewModel.java diff --git a/src/main/java/org/jabref/gui/logging/ApplicationInsightsAppender.java b/org.jabref.gui/src/main/java/org/jabref/gui/logging/ApplicationInsightsAppender.java similarity index 100% rename from src/main/java/org/jabref/gui/logging/ApplicationInsightsAppender.java rename to org.jabref.gui/src/main/java/org/jabref/gui/logging/ApplicationInsightsAppender.java diff --git a/src/main/java/org/jabref/gui/logging/GuiAppender.java b/org.jabref.gui/src/main/java/org/jabref/gui/logging/GuiAppender.java similarity index 100% rename from src/main/java/org/jabref/gui/logging/GuiAppender.java rename to org.jabref.gui/src/main/java/org/jabref/gui/logging/GuiAppender.java diff --git a/src/main/java/org/jabref/gui/maintable/ListSynchronizer.java b/org.jabref.gui/src/main/java/org/jabref/gui/maintable/ListSynchronizer.java similarity index 100% rename from src/main/java/org/jabref/gui/maintable/ListSynchronizer.java rename to org.jabref.gui/src/main/java/org/jabref/gui/maintable/ListSynchronizer.java diff --git a/src/main/java/org/jabref/gui/maintable/MainTable.java b/org.jabref.gui/src/main/java/org/jabref/gui/maintable/MainTable.java similarity index 100% rename from src/main/java/org/jabref/gui/maintable/MainTable.java rename to org.jabref.gui/src/main/java/org/jabref/gui/maintable/MainTable.java diff --git a/src/main/java/org/jabref/gui/maintable/MainTableColumn.java b/org.jabref.gui/src/main/java/org/jabref/gui/maintable/MainTableColumn.java similarity index 100% rename from src/main/java/org/jabref/gui/maintable/MainTableColumn.java rename to org.jabref.gui/src/main/java/org/jabref/gui/maintable/MainTableColumn.java diff --git a/src/main/java/org/jabref/gui/maintable/MainTableDataModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/maintable/MainTableDataModel.java similarity index 100% rename from src/main/java/org/jabref/gui/maintable/MainTableDataModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/maintable/MainTableDataModel.java diff --git a/src/main/java/org/jabref/gui/maintable/MainTableFormat.java b/org.jabref.gui/src/main/java/org/jabref/gui/maintable/MainTableFormat.java similarity index 100% rename from src/main/java/org/jabref/gui/maintable/MainTableFormat.java rename to org.jabref.gui/src/main/java/org/jabref/gui/maintable/MainTableFormat.java diff --git a/src/main/java/org/jabref/gui/maintable/MainTableHeaderRenderer.java b/org.jabref.gui/src/main/java/org/jabref/gui/maintable/MainTableHeaderRenderer.java similarity index 100% rename from src/main/java/org/jabref/gui/maintable/MainTableHeaderRenderer.java rename to org.jabref.gui/src/main/java/org/jabref/gui/maintable/MainTableHeaderRenderer.java diff --git a/src/main/java/org/jabref/gui/maintable/MainTableNameFormatter.java b/org.jabref.gui/src/main/java/org/jabref/gui/maintable/MainTableNameFormatter.java similarity index 100% rename from src/main/java/org/jabref/gui/maintable/MainTableNameFormatter.java rename to org.jabref.gui/src/main/java/org/jabref/gui/maintable/MainTableNameFormatter.java diff --git a/src/main/java/org/jabref/gui/maintable/MainTableSelectionListener.java b/org.jabref.gui/src/main/java/org/jabref/gui/maintable/MainTableSelectionListener.java similarity index 100% rename from src/main/java/org/jabref/gui/maintable/MainTableSelectionListener.java rename to org.jabref.gui/src/main/java/org/jabref/gui/maintable/MainTableSelectionListener.java diff --git a/src/main/java/org/jabref/gui/maintable/PersistenceTableColumnListener.java b/org.jabref.gui/src/main/java/org/jabref/gui/maintable/PersistenceTableColumnListener.java similarity index 100% rename from src/main/java/org/jabref/gui/maintable/PersistenceTableColumnListener.java rename to org.jabref.gui/src/main/java/org/jabref/gui/maintable/PersistenceTableColumnListener.java diff --git a/src/main/java/org/jabref/gui/maintable/PreventDraggingJTableHeader.java b/org.jabref.gui/src/main/java/org/jabref/gui/maintable/PreventDraggingJTableHeader.java similarity index 100% rename from src/main/java/org/jabref/gui/maintable/PreventDraggingJTableHeader.java rename to org.jabref.gui/src/main/java/org/jabref/gui/maintable/PreventDraggingJTableHeader.java diff --git a/src/main/java/org/jabref/gui/maintable/SpecialMainTableColumnsBuilder.java b/org.jabref.gui/src/main/java/org/jabref/gui/maintable/SpecialMainTableColumnsBuilder.java similarity index 100% rename from src/main/java/org/jabref/gui/maintable/SpecialMainTableColumnsBuilder.java rename to org.jabref.gui/src/main/java/org/jabref/gui/maintable/SpecialMainTableColumnsBuilder.java diff --git a/src/main/java/org/jabref/gui/menus/ChangeEntryTypeMenu.java b/org.jabref.gui/src/main/java/org/jabref/gui/menus/ChangeEntryTypeMenu.java similarity index 100% rename from src/main/java/org/jabref/gui/menus/ChangeEntryTypeMenu.java rename to org.jabref.gui/src/main/java/org/jabref/gui/menus/ChangeEntryTypeMenu.java diff --git a/src/main/java/org/jabref/gui/menus/FileHistoryMenu.java b/org.jabref.gui/src/main/java/org/jabref/gui/menus/FileHistoryMenu.java similarity index 100% rename from src/main/java/org/jabref/gui/menus/FileHistoryMenu.java rename to org.jabref.gui/src/main/java/org/jabref/gui/menus/FileHistoryMenu.java diff --git a/src/main/java/org/jabref/gui/menus/RightClickMenu.java b/org.jabref.gui/src/main/java/org/jabref/gui/menus/RightClickMenu.java similarity index 100% rename from src/main/java/org/jabref/gui/menus/RightClickMenu.java rename to org.jabref.gui/src/main/java/org/jabref/gui/menus/RightClickMenu.java diff --git a/src/main/java/org/jabref/gui/mergeentries/EntryFetchAndMergeWorker.java b/org.jabref.gui/src/main/java/org/jabref/gui/mergeentries/EntryFetchAndMergeWorker.java similarity index 100% rename from src/main/java/org/jabref/gui/mergeentries/EntryFetchAndMergeWorker.java rename to org.jabref.gui/src/main/java/org/jabref/gui/mergeentries/EntryFetchAndMergeWorker.java diff --git a/src/main/java/org/jabref/gui/mergeentries/FetchAndMergeEntry.java b/org.jabref.gui/src/main/java/org/jabref/gui/mergeentries/FetchAndMergeEntry.java similarity index 100% rename from src/main/java/org/jabref/gui/mergeentries/FetchAndMergeEntry.java rename to org.jabref.gui/src/main/java/org/jabref/gui/mergeentries/FetchAndMergeEntry.java diff --git a/src/main/java/org/jabref/gui/mergeentries/FetchAndMergeWorker.java b/org.jabref.gui/src/main/java/org/jabref/gui/mergeentries/FetchAndMergeWorker.java similarity index 100% rename from src/main/java/org/jabref/gui/mergeentries/FetchAndMergeWorker.java rename to org.jabref.gui/src/main/java/org/jabref/gui/mergeentries/FetchAndMergeWorker.java diff --git a/src/main/java/org/jabref/gui/mergeentries/MergeEntries.java b/org.jabref.gui/src/main/java/org/jabref/gui/mergeentries/MergeEntries.java similarity index 100% rename from src/main/java/org/jabref/gui/mergeentries/MergeEntries.java rename to org.jabref.gui/src/main/java/org/jabref/gui/mergeentries/MergeEntries.java diff --git a/src/main/java/org/jabref/gui/mergeentries/MergeEntriesDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/mergeentries/MergeEntriesDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/mergeentries/MergeEntriesDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/mergeentries/MergeEntriesDialog.java diff --git a/src/main/java/org/jabref/gui/mergeentries/MergeFetchedEntryDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/mergeentries/MergeFetchedEntryDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/mergeentries/MergeFetchedEntryDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/mergeentries/MergeFetchedEntryDialog.java diff --git a/src/main/java/org/jabref/gui/mergeentries/MergeWithFetchedEntryAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/mergeentries/MergeWithFetchedEntryAction.java similarity index 100% rename from src/main/java/org/jabref/gui/mergeentries/MergeWithFetchedEntryAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/mergeentries/MergeWithFetchedEntryAction.java diff --git a/src/main/java/org/jabref/gui/openoffice/AdvancedCiteDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/AdvancedCiteDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/openoffice/AdvancedCiteDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/openoffice/AdvancedCiteDialog.java diff --git a/src/main/java/org/jabref/gui/openoffice/BibEntryNotFoundException.java b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/BibEntryNotFoundException.java similarity index 100% rename from src/main/java/org/jabref/gui/openoffice/BibEntryNotFoundException.java rename to org.jabref.gui/src/main/java/org/jabref/gui/openoffice/BibEntryNotFoundException.java diff --git a/src/main/java/org/jabref/gui/openoffice/CitationManager.java b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/CitationManager.java similarity index 100% rename from src/main/java/org/jabref/gui/openoffice/CitationManager.java rename to org.jabref.gui/src/main/java/org/jabref/gui/openoffice/CitationManager.java diff --git a/src/main/java/org/jabref/gui/openoffice/ConnectionLostException.java b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/ConnectionLostException.java similarity index 100% rename from src/main/java/org/jabref/gui/openoffice/ConnectionLostException.java rename to org.jabref.gui/src/main/java/org/jabref/gui/openoffice/ConnectionLostException.java diff --git a/src/main/java/org/jabref/gui/openoffice/CreationException.java b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/CreationException.java similarity index 100% rename from src/main/java/org/jabref/gui/openoffice/CreationException.java rename to org.jabref.gui/src/main/java/org/jabref/gui/openoffice/CreationException.java diff --git a/src/main/java/org/jabref/gui/openoffice/DetectOpenOfficeInstallation.java b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/DetectOpenOfficeInstallation.java similarity index 98% rename from src/main/java/org/jabref/gui/openoffice/DetectOpenOfficeInstallation.java rename to org.jabref.gui/src/main/java/org/jabref/gui/openoffice/DetectOpenOfficeInstallation.java index 14501f74f0a..b20c2ad5355 100644 --- a/src/main/java/org/jabref/gui/openoffice/DetectOpenOfficeInstallation.java +++ b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/DetectOpenOfficeInstallation.java @@ -124,7 +124,7 @@ private boolean setOpenOfficePreferences(Path installDir) { Optional jarFilePath = FileUtil.find(OpenOfficePreferences.OO_JARS.get(0), installDir); if (execPath.isPresent() && jarFilePath.isPresent()) { - preferences.setOOPath(installDir.toString()); + preferences.setInstallationPath(installDir.toString()); preferences.setExecutablePath(execPath.get().toString()); preferences.setJarsPath(jarFilePath.get().getParent().toString()); return true; diff --git a/src/main/java/org/jabref/gui/openoffice/NoDocumentException.java b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/NoDocumentException.java similarity index 100% rename from src/main/java/org/jabref/gui/openoffice/NoDocumentException.java rename to org.jabref.gui/src/main/java/org/jabref/gui/openoffice/NoDocumentException.java diff --git a/src/main/java/org/jabref/gui/openoffice/OOBibBase.java b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/OOBibBase.java similarity index 100% rename from src/main/java/org/jabref/gui/openoffice/OOBibBase.java rename to org.jabref.gui/src/main/java/org/jabref/gui/openoffice/OOBibBase.java diff --git a/src/main/java/org/jabref/gui/openoffice/OpenOfficePanel.java b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/OpenOfficePanel.java similarity index 97% rename from src/main/java/org/jabref/gui/openoffice/OpenOfficePanel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/openoffice/OpenOfficePanel.java index cb148c7df4d..3546a712e5b 100644 --- a/src/main/java/org/jabref/gui/openoffice/OpenOfficePanel.java +++ b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/OpenOfficePanel.java @@ -129,7 +129,7 @@ public OpenOfficePanel(JabRefFrame jabRefFrame, SidePaneManager spManager) { update = new JButton(IconTheme.JabRefIcon.REFRESH.getSmallIcon()); update.setToolTipText(Localization.lang("Sync OpenOffice/LibreOffice bibliography")); update.setPreferredSize(new Dimension(24, 24)); - preferences = new OpenOfficePreferences(Globals.prefs); + preferences = Globals.prefs.getOpenOfficePreferences(); loader = new StyleLoader(preferences, Globals.prefs.getLayoutFormatterPreferences(Globals.journalAbbreviationLoader), Globals.prefs.getDefaultEncoding()); @@ -353,7 +353,7 @@ private void exportEntries() { private List getBaseList() { List databases = new ArrayList<>(); - if (preferences.useAllDatabases()) { + if (preferences.getUseAllDatabases()) { for (BasePanel basePanel : frame.getBasePanelList()) { databases.add(basePanel.getDatabase()); } @@ -599,7 +599,7 @@ private void pushEntries(boolean inParenthesisIn, boolean withText, boolean addP style = loader.getUsedStyle(); } ooBase.insertEntry(entries, database, getBaseList(), style, inParenthesis, withText, pageInfo, - preferences.syncWhenCiting()); + preferences.getSyncWhenCiting()); } catch (FileNotFoundException ex) { JOptionPane.showMessageDialog(frame, Localization @@ -717,7 +717,7 @@ private void showSettingsPopup() { JPopupMenu menu = new JPopupMenu(); final JCheckBoxMenuItem autoSync = new JCheckBoxMenuItem( Localization.lang("Automatically sync bibliography when inserting citations"), - preferences.syncWhenCiting()); + preferences.getSyncWhenCiting()); final JRadioButtonMenuItem useActiveBase = new JRadioButtonMenuItem( Localization.lang("Look up BibTeX entries in the active tab only")); final JRadioButtonMenuItem useAllBases = new JRadioButtonMenuItem( @@ -726,7 +726,7 @@ private void showSettingsPopup() { ButtonGroup bg = new ButtonGroup(); bg.add(useActiveBase); bg.add(useAllBases); - if (preferences.useAllDatabases()) { + if (preferences.getUseAllDatabases()) { useAllBases.setSelected(true); } else { useActiveBase.setSelected(true); @@ -738,7 +738,16 @@ private void showSettingsPopup() { useActiveBase.addActionListener(e -> preferences.setUseAllDatabases(!useActiveBase.isSelected())); - clearConnectionSettings.addActionListener(e -> frame.output(preferences.clearConnectionSettings())); + // TODO: implement this again + /* + public String clearConnectionSettings() { + preferences.clear(JabRefPreferences.OO_PATH); + preferences.clear(JabRefPreferences.OO_EXECUTABLE_PATH); + preferences.clear(JabRefPreferences.OO_JARS_PATH); + return Localization.lang("Cleared connection settings."); + } + */ + // clearConnectionSettings.addActionListener(e -> frame.output(preferences.clearConnectionSettings())); menu.add(autoSync); menu.addSeparator(); diff --git a/src/main/java/org/jabref/gui/openoffice/OpenOfficeSidePanel.java b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/OpenOfficeSidePanel.java similarity index 97% rename from src/main/java/org/jabref/gui/openoffice/OpenOfficeSidePanel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/openoffice/OpenOfficeSidePanel.java index a7dd9257707..7c93b857973 100644 --- a/src/main/java/org/jabref/gui/openoffice/OpenOfficeSidePanel.java +++ b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/OpenOfficeSidePanel.java @@ -19,7 +19,7 @@ public OpenOfficeSidePanel(SidePaneManager sidePaneManager, Icon icon, String ti super(sidePaneManager, icon, title); this.preferences = preferences; sidePaneManager.register(this); - if (preferences.showPanel()) { + if (preferences.getShowPanel()) { manager.show(OpenOfficeSidePanel.class); } diff --git a/src/main/java/org/jabref/gui/openoffice/StyleSelectDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/StyleSelectDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/openoffice/StyleSelectDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/openoffice/StyleSelectDialog.java diff --git a/src/main/java/org/jabref/gui/openoffice/UndefinedCharacterFormatException.java b/org.jabref.gui/src/main/java/org/jabref/gui/openoffice/UndefinedCharacterFormatException.java similarity index 100% rename from src/main/java/org/jabref/gui/openoffice/UndefinedCharacterFormatException.java rename to org.jabref.gui/src/main/java/org/jabref/gui/openoffice/UndefinedCharacterFormatException.java diff --git a/src/main/java/org/jabref/gui/plaintextimport/TagToMarkedTextStore.java b/org.jabref.gui/src/main/java/org/jabref/gui/plaintextimport/TagToMarkedTextStore.java similarity index 100% rename from src/main/java/org/jabref/gui/plaintextimport/TagToMarkedTextStore.java rename to org.jabref.gui/src/main/java/org/jabref/gui/plaintextimport/TagToMarkedTextStore.java diff --git a/src/main/java/org/jabref/gui/plaintextimport/TextInputDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/plaintextimport/TextInputDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/plaintextimport/TextInputDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/plaintextimport/TextInputDialog.java diff --git a/src/main/java/org/jabref/gui/preftabs/AdvancedTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/AdvancedTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/AdvancedTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/AdvancedTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/AppearancePrefsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/AppearancePrefsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/AppearancePrefsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/AppearancePrefsTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/BibtexKeyPatternPrefTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/BibtexKeyPatternPrefTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/BibtexKeyPatternPrefTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/BibtexKeyPatternPrefTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/ColorSetupPanel.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/ColorSetupPanel.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/ColorSetupPanel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/ColorSetupPanel.java diff --git a/src/main/java/org/jabref/gui/preftabs/EntryEditorPrefsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/EntryEditorPrefsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/EntryEditorPrefsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/EntryEditorPrefsTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/ExportSortingPrefsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/ExportSortingPrefsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/ExportSortingPrefsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/ExportSortingPrefsTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/ExternalTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/ExternalTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/ExternalTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/ExternalTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/FileTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/FileTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/FileTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/FileTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/FontSelectorDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/FontSelectorDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/FontSelectorDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/FontSelectorDialog.java diff --git a/src/main/java/org/jabref/gui/preftabs/GeneralTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/GeneralTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/GeneralTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/GeneralTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/GroupsPrefsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/GroupsPrefsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/GroupsPrefsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/GroupsPrefsTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/ImportSettingsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/ImportSettingsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/ImportSettingsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/ImportSettingsTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/NameFormatterTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/NameFormatterTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/NameFormatterTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/NameFormatterTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/NetworkTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/NetworkTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/NetworkTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/NetworkTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/PreferencesDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/PreferencesDialog.java similarity index 98% rename from src/main/java/org/jabref/gui/preftabs/PreferencesDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/PreferencesDialog.java index 4c882105e00..4dfcf53ac30 100644 --- a/src/main/java/org/jabref/gui/preftabs/PreferencesDialog.java +++ b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/PreferencesDialog.java @@ -31,10 +31,10 @@ import org.jabref.gui.maintable.MainTable; import org.jabref.gui.util.DefaultTaskExecutor; import org.jabref.gui.util.FileDialogConfiguration; -import org.jabref.logic.exporter.ExporterFactory; import org.jabref.logic.l10n.Localization; import org.jabref.logic.shared.prefs.SharedDatabasePreferences; import org.jabref.logic.util.FileType; +import org.jabref.preferences.ExporterFactoryFactory; import org.jabref.preferences.JabRefPreferences; import org.jabref.preferences.JabRefPreferencesFilter; @@ -225,7 +225,7 @@ private String getPrefsExportPath() { private void updateAfterPreferenceChanges() { setValues(); - Globals.exportFactory = ExporterFactory.create(Globals.prefs, Globals.journalAbbreviationLoader); + Globals.exportFactory = ExporterFactoryFactory.create(Globals.prefs, Globals.journalAbbreviationLoader); Globals.prefs.updateEntryEditorTabList(); } diff --git a/src/main/java/org/jabref/gui/preftabs/PreferencesFilterDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/PreferencesFilterDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/PreferencesFilterDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/PreferencesFilterDialog.java diff --git a/src/main/java/org/jabref/gui/preftabs/PrefsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/PrefsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/PrefsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/PrefsTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/PreviewPrefsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/PreviewPrefsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/PreviewPrefsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/PreviewPrefsTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/TableColumnsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/TableColumnsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/TableColumnsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/TableColumnsTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/TablePrefsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/TablePrefsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/TablePrefsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/TablePrefsTab.java diff --git a/src/main/java/org/jabref/gui/preftabs/XmpPrefsTab.java b/org.jabref.gui/src/main/java/org/jabref/gui/preftabs/XmpPrefsTab.java similarity index 100% rename from src/main/java/org/jabref/gui/preftabs/XmpPrefsTab.java rename to org.jabref.gui/src/main/java/org/jabref/gui/preftabs/XmpPrefsTab.java diff --git a/src/main/java/org/jabref/gui/protectedterms/NewProtectedTermsFileDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/protectedterms/NewProtectedTermsFileDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/protectedterms/NewProtectedTermsFileDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/protectedterms/NewProtectedTermsFileDialog.java diff --git a/src/main/java/org/jabref/gui/protectedterms/ProtectedTermsDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/protectedterms/ProtectedTermsDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/protectedterms/ProtectedTermsDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/protectedterms/ProtectedTermsDialog.java diff --git a/src/main/java/org/jabref/gui/push/AbstractPushToApplication.java b/org.jabref.gui/src/main/java/org/jabref/gui/push/AbstractPushToApplication.java similarity index 100% rename from src/main/java/org/jabref/gui/push/AbstractPushToApplication.java rename to org.jabref.gui/src/main/java/org/jabref/gui/push/AbstractPushToApplication.java diff --git a/src/main/java/org/jabref/gui/push/PushToApplication.java b/org.jabref.gui/src/main/java/org/jabref/gui/push/PushToApplication.java similarity index 100% rename from src/main/java/org/jabref/gui/push/PushToApplication.java rename to org.jabref.gui/src/main/java/org/jabref/gui/push/PushToApplication.java diff --git a/src/main/java/org/jabref/gui/push/PushToApplicationAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/push/PushToApplicationAction.java similarity index 100% rename from src/main/java/org/jabref/gui/push/PushToApplicationAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/push/PushToApplicationAction.java diff --git a/src/main/java/org/jabref/gui/push/PushToApplicationButton.java b/org.jabref.gui/src/main/java/org/jabref/gui/push/PushToApplicationButton.java similarity index 100% rename from src/main/java/org/jabref/gui/push/PushToApplicationButton.java rename to org.jabref.gui/src/main/java/org/jabref/gui/push/PushToApplicationButton.java diff --git a/src/main/java/org/jabref/gui/push/PushToApplications.java b/org.jabref.gui/src/main/java/org/jabref/gui/push/PushToApplications.java similarity index 100% rename from src/main/java/org/jabref/gui/push/PushToApplications.java rename to org.jabref.gui/src/main/java/org/jabref/gui/push/PushToApplications.java diff --git a/src/main/java/org/jabref/gui/push/PushToEmacs.java b/org.jabref.gui/src/main/java/org/jabref/gui/push/PushToEmacs.java similarity index 100% rename from src/main/java/org/jabref/gui/push/PushToEmacs.java rename to org.jabref.gui/src/main/java/org/jabref/gui/push/PushToEmacs.java diff --git a/src/main/java/org/jabref/gui/push/PushToLyx.java b/org.jabref.gui/src/main/java/org/jabref/gui/push/PushToLyx.java similarity index 100% rename from src/main/java/org/jabref/gui/push/PushToLyx.java rename to org.jabref.gui/src/main/java/org/jabref/gui/push/PushToLyx.java diff --git a/src/main/java/org/jabref/gui/push/PushToTeXstudio.java b/org.jabref.gui/src/main/java/org/jabref/gui/push/PushToTeXstudio.java similarity index 100% rename from src/main/java/org/jabref/gui/push/PushToTeXstudio.java rename to org.jabref.gui/src/main/java/org/jabref/gui/push/PushToTeXstudio.java diff --git a/src/main/java/org/jabref/gui/push/PushToTexmaker.java b/org.jabref.gui/src/main/java/org/jabref/gui/push/PushToTexmaker.java similarity index 100% rename from src/main/java/org/jabref/gui/push/PushToTexmaker.java rename to org.jabref.gui/src/main/java/org/jabref/gui/push/PushToTexmaker.java diff --git a/src/main/java/org/jabref/gui/push/PushToVim.java b/org.jabref.gui/src/main/java/org/jabref/gui/push/PushToVim.java similarity index 100% rename from src/main/java/org/jabref/gui/push/PushToVim.java rename to org.jabref.gui/src/main/java/org/jabref/gui/push/PushToVim.java diff --git a/src/main/java/org/jabref/gui/push/PushToWinEdt.java b/org.jabref.gui/src/main/java/org/jabref/gui/push/PushToWinEdt.java similarity index 100% rename from src/main/java/org/jabref/gui/push/PushToWinEdt.java rename to org.jabref.gui/src/main/java/org/jabref/gui/push/PushToWinEdt.java diff --git a/src/main/java/org/jabref/gui/remote/JabRefMessageHandler.java b/org.jabref.gui/src/main/java/org/jabref/gui/remote/JabRefMessageHandler.java similarity index 100% rename from src/main/java/org/jabref/gui/remote/JabRefMessageHandler.java rename to org.jabref.gui/src/main/java/org/jabref/gui/remote/JabRefMessageHandler.java diff --git a/src/main/java/org/jabref/gui/renderer/CompleteRenderer.java b/org.jabref.gui/src/main/java/org/jabref/gui/renderer/CompleteRenderer.java similarity index 100% rename from src/main/java/org/jabref/gui/renderer/CompleteRenderer.java rename to org.jabref.gui/src/main/java/org/jabref/gui/renderer/CompleteRenderer.java diff --git a/src/main/java/org/jabref/gui/renderer/GeneralRenderer.java b/org.jabref.gui/src/main/java/org/jabref/gui/renderer/GeneralRenderer.java similarity index 100% rename from src/main/java/org/jabref/gui/renderer/GeneralRenderer.java rename to org.jabref.gui/src/main/java/org/jabref/gui/renderer/GeneralRenderer.java diff --git a/src/main/java/org/jabref/gui/renderer/IncompleteRenderer.java b/org.jabref.gui/src/main/java/org/jabref/gui/renderer/IncompleteRenderer.java similarity index 100% rename from src/main/java/org/jabref/gui/renderer/IncompleteRenderer.java rename to org.jabref.gui/src/main/java/org/jabref/gui/renderer/IncompleteRenderer.java diff --git a/src/main/java/org/jabref/gui/search/GlobalSearchBar.java b/org.jabref.gui/src/main/java/org/jabref/gui/search/GlobalSearchBar.java similarity index 100% rename from src/main/java/org/jabref/gui/search/GlobalSearchBar.java rename to org.jabref.gui/src/main/java/org/jabref/gui/search/GlobalSearchBar.java diff --git a/src/main/java/org/jabref/gui/search/GlobalSearchWorker.java b/org.jabref.gui/src/main/java/org/jabref/gui/search/GlobalSearchWorker.java similarity index 100% rename from src/main/java/org/jabref/gui/search/GlobalSearchWorker.java rename to org.jabref.gui/src/main/java/org/jabref/gui/search/GlobalSearchWorker.java diff --git a/src/main/java/org/jabref/gui/search/HitOrMissComparator.java b/org.jabref.gui/src/main/java/org/jabref/gui/search/HitOrMissComparator.java similarity index 100% rename from src/main/java/org/jabref/gui/search/HitOrMissComparator.java rename to org.jabref.gui/src/main/java/org/jabref/gui/search/HitOrMissComparator.java diff --git a/src/main/java/org/jabref/gui/search/SearchDisplayMode.java b/org.jabref.gui/src/main/java/org/jabref/gui/search/SearchDisplayMode.java similarity index 100% rename from src/main/java/org/jabref/gui/search/SearchDisplayMode.java rename to org.jabref.gui/src/main/java/org/jabref/gui/search/SearchDisplayMode.java diff --git a/src/main/java/org/jabref/gui/search/SearchResultFrame.java b/org.jabref.gui/src/main/java/org/jabref/gui/search/SearchResultFrame.java similarity index 100% rename from src/main/java/org/jabref/gui/search/SearchResultFrame.java rename to org.jabref.gui/src/main/java/org/jabref/gui/search/SearchResultFrame.java diff --git a/src/main/java/org/jabref/gui/search/SearchTextField.java b/org.jabref.gui/src/main/java/org/jabref/gui/search/SearchTextField.java similarity index 100% rename from src/main/java/org/jabref/gui/search/SearchTextField.java rename to org.jabref.gui/src/main/java/org/jabref/gui/search/SearchTextField.java diff --git a/src/main/java/org/jabref/gui/search/SearchWorker.java b/org.jabref.gui/src/main/java/org/jabref/gui/search/SearchWorker.java similarity index 100% rename from src/main/java/org/jabref/gui/search/SearchWorker.java rename to org.jabref.gui/src/main/java/org/jabref/gui/search/SearchWorker.java diff --git a/src/main/java/org/jabref/gui/search/matchers/EverythingMatcher.java b/org.jabref.gui/src/main/java/org/jabref/gui/search/matchers/EverythingMatcher.java similarity index 100% rename from src/main/java/org/jabref/gui/search/matchers/EverythingMatcher.java rename to org.jabref.gui/src/main/java/org/jabref/gui/search/matchers/EverythingMatcher.java diff --git a/src/main/java/org/jabref/gui/search/matchers/SearchMatcher.java b/org.jabref.gui/src/main/java/org/jabref/gui/search/matchers/SearchMatcher.java similarity index 100% rename from src/main/java/org/jabref/gui/search/matchers/SearchMatcher.java rename to org.jabref.gui/src/main/java/org/jabref/gui/search/matchers/SearchMatcher.java diff --git a/src/main/java/org/jabref/gui/search/rules/describer/ContainsAndRegexBasedSearchRuleDescriber.java b/org.jabref.gui/src/main/java/org/jabref/gui/search/rules/describer/ContainsAndRegexBasedSearchRuleDescriber.java similarity index 100% rename from src/main/java/org/jabref/gui/search/rules/describer/ContainsAndRegexBasedSearchRuleDescriber.java rename to org.jabref.gui/src/main/java/org/jabref/gui/search/rules/describer/ContainsAndRegexBasedSearchRuleDescriber.java diff --git a/src/main/java/org/jabref/gui/search/rules/describer/GrammarBasedSearchRuleDescriber.java b/org.jabref.gui/src/main/java/org/jabref/gui/search/rules/describer/GrammarBasedSearchRuleDescriber.java similarity index 100% rename from src/main/java/org/jabref/gui/search/rules/describer/GrammarBasedSearchRuleDescriber.java rename to org.jabref.gui/src/main/java/org/jabref/gui/search/rules/describer/GrammarBasedSearchRuleDescriber.java diff --git a/src/main/java/org/jabref/gui/search/rules/describer/SearchDescriber.java b/org.jabref.gui/src/main/java/org/jabref/gui/search/rules/describer/SearchDescriber.java similarity index 100% rename from src/main/java/org/jabref/gui/search/rules/describer/SearchDescriber.java rename to org.jabref.gui/src/main/java/org/jabref/gui/search/rules/describer/SearchDescriber.java diff --git a/src/main/java/org/jabref/gui/search/rules/describer/SearchDescribers.java b/org.jabref.gui/src/main/java/org/jabref/gui/search/rules/describer/SearchDescribers.java similarity index 100% rename from src/main/java/org/jabref/gui/search/rules/describer/SearchDescribers.java rename to org.jabref.gui/src/main/java/org/jabref/gui/search/rules/describer/SearchDescribers.java diff --git a/src/main/java/org/jabref/gui/shared/ConnectToSharedDatabaseDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/shared/ConnectToSharedDatabaseDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/shared/ConnectToSharedDatabaseDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/shared/ConnectToSharedDatabaseDialog.java diff --git a/src/main/java/org/jabref/gui/shared/MergeSharedEntryDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/shared/MergeSharedEntryDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/shared/MergeSharedEntryDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/shared/MergeSharedEntryDialog.java diff --git a/src/main/java/org/jabref/gui/shared/MigrationHelpDialog.java b/org.jabref.gui/src/main/java/org/jabref/gui/shared/MigrationHelpDialog.java similarity index 100% rename from src/main/java/org/jabref/gui/shared/MigrationHelpDialog.java rename to org.jabref.gui/src/main/java/org/jabref/gui/shared/MigrationHelpDialog.java diff --git a/src/main/java/org/jabref/gui/shared/SharedDatabaseUIManager.java b/org.jabref.gui/src/main/java/org/jabref/gui/shared/SharedDatabaseUIManager.java similarity index 100% rename from src/main/java/org/jabref/gui/shared/SharedDatabaseUIManager.java rename to org.jabref.gui/src/main/java/org/jabref/gui/shared/SharedDatabaseUIManager.java diff --git a/src/main/java/org/jabref/gui/specialfields/SpecialFieldAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/specialfields/SpecialFieldAction.java similarity index 100% rename from src/main/java/org/jabref/gui/specialfields/SpecialFieldAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/specialfields/SpecialFieldAction.java diff --git a/src/main/java/org/jabref/gui/specialfields/SpecialFieldDatabaseChangeListener.java b/org.jabref.gui/src/main/java/org/jabref/gui/specialfields/SpecialFieldDatabaseChangeListener.java similarity index 100% rename from src/main/java/org/jabref/gui/specialfields/SpecialFieldDatabaseChangeListener.java rename to org.jabref.gui/src/main/java/org/jabref/gui/specialfields/SpecialFieldDatabaseChangeListener.java diff --git a/src/main/java/org/jabref/gui/specialfields/SpecialFieldDropDown.java b/org.jabref.gui/src/main/java/org/jabref/gui/specialfields/SpecialFieldDropDown.java similarity index 100% rename from src/main/java/org/jabref/gui/specialfields/SpecialFieldDropDown.java rename to org.jabref.gui/src/main/java/org/jabref/gui/specialfields/SpecialFieldDropDown.java diff --git a/src/main/java/org/jabref/gui/specialfields/SpecialFieldMenuAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/specialfields/SpecialFieldMenuAction.java similarity index 100% rename from src/main/java/org/jabref/gui/specialfields/SpecialFieldMenuAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/specialfields/SpecialFieldMenuAction.java diff --git a/src/main/java/org/jabref/gui/specialfields/SpecialFieldUpdateListener.java b/org.jabref.gui/src/main/java/org/jabref/gui/specialfields/SpecialFieldUpdateListener.java similarity index 100% rename from src/main/java/org/jabref/gui/specialfields/SpecialFieldUpdateListener.java rename to org.jabref.gui/src/main/java/org/jabref/gui/specialfields/SpecialFieldUpdateListener.java diff --git a/src/main/java/org/jabref/gui/specialfields/SpecialFieldValueViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/specialfields/SpecialFieldValueViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/specialfields/SpecialFieldValueViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/specialfields/SpecialFieldValueViewModel.java diff --git a/src/main/java/org/jabref/gui/specialfields/SpecialFieldViewModel.java b/org.jabref.gui/src/main/java/org/jabref/gui/specialfields/SpecialFieldViewModel.java similarity index 100% rename from src/main/java/org/jabref/gui/specialfields/SpecialFieldViewModel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/specialfields/SpecialFieldViewModel.java diff --git a/src/main/java/org/jabref/gui/undo/AbstractUndoableJabRefEdit.java b/org.jabref.gui/src/main/java/org/jabref/gui/undo/AbstractUndoableJabRefEdit.java similarity index 100% rename from src/main/java/org/jabref/gui/undo/AbstractUndoableJabRefEdit.java rename to org.jabref.gui/src/main/java/org/jabref/gui/undo/AbstractUndoableJabRefEdit.java diff --git a/src/main/java/org/jabref/gui/undo/CountingUndoManager.java b/org.jabref.gui/src/main/java/org/jabref/gui/undo/CountingUndoManager.java similarity index 100% rename from src/main/java/org/jabref/gui/undo/CountingUndoManager.java rename to org.jabref.gui/src/main/java/org/jabref/gui/undo/CountingUndoManager.java diff --git a/src/main/java/org/jabref/gui/undo/NamedCompound.java b/org.jabref.gui/src/main/java/org/jabref/gui/undo/NamedCompound.java similarity index 100% rename from src/main/java/org/jabref/gui/undo/NamedCompound.java rename to org.jabref.gui/src/main/java/org/jabref/gui/undo/NamedCompound.java diff --git a/src/main/java/org/jabref/gui/undo/UndoableChangeType.java b/org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableChangeType.java similarity index 100% rename from src/main/java/org/jabref/gui/undo/UndoableChangeType.java rename to org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableChangeType.java diff --git a/src/main/java/org/jabref/gui/undo/UndoableFieldChange.java b/org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableFieldChange.java similarity index 100% rename from src/main/java/org/jabref/gui/undo/UndoableFieldChange.java rename to org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableFieldChange.java diff --git a/src/main/java/org/jabref/gui/undo/UndoableInsertEntry.java b/org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableInsertEntry.java similarity index 100% rename from src/main/java/org/jabref/gui/undo/UndoableInsertEntry.java rename to org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableInsertEntry.java diff --git a/src/main/java/org/jabref/gui/undo/UndoableInsertString.java b/org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableInsertString.java similarity index 100% rename from src/main/java/org/jabref/gui/undo/UndoableInsertString.java rename to org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableInsertString.java diff --git a/src/main/java/org/jabref/gui/undo/UndoableKeyChange.java b/org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableKeyChange.java similarity index 100% rename from src/main/java/org/jabref/gui/undo/UndoableKeyChange.java rename to org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableKeyChange.java diff --git a/src/main/java/org/jabref/gui/undo/UndoablePreambleChange.java b/org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoablePreambleChange.java similarity index 100% rename from src/main/java/org/jabref/gui/undo/UndoablePreambleChange.java rename to org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoablePreambleChange.java diff --git a/src/main/java/org/jabref/gui/undo/UndoableRemoveEntry.java b/org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableRemoveEntry.java similarity index 100% rename from src/main/java/org/jabref/gui/undo/UndoableRemoveEntry.java rename to org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableRemoveEntry.java diff --git a/src/main/java/org/jabref/gui/undo/UndoableRemoveString.java b/org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableRemoveString.java similarity index 100% rename from src/main/java/org/jabref/gui/undo/UndoableRemoveString.java rename to org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableRemoveString.java diff --git a/src/main/java/org/jabref/gui/undo/UndoableStringChange.java b/org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableStringChange.java similarity index 100% rename from src/main/java/org/jabref/gui/undo/UndoableStringChange.java rename to org.jabref.gui/src/main/java/org/jabref/gui/undo/UndoableStringChange.java diff --git a/src/main/java/org/jabref/gui/util/BackgroundTask.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/BackgroundTask.java similarity index 100% rename from src/main/java/org/jabref/gui/util/BackgroundTask.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/BackgroundTask.java diff --git a/src/main/java/org/jabref/gui/util/BindingsHelper.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/BindingsHelper.java similarity index 100% rename from src/main/java/org/jabref/gui/util/BindingsHelper.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/BindingsHelper.java diff --git a/src/main/java/org/jabref/gui/util/ControlHelper.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/ControlHelper.java similarity index 100% rename from src/main/java/org/jabref/gui/util/ControlHelper.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/ControlHelper.java diff --git a/src/main/java/org/jabref/gui/util/CurrentThreadTaskExecutor.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/CurrentThreadTaskExecutor.java similarity index 100% rename from src/main/java/org/jabref/gui/util/CurrentThreadTaskExecutor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/CurrentThreadTaskExecutor.java diff --git a/src/main/java/org/jabref/gui/util/DefaultFileUpdateMonitor.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/DefaultFileUpdateMonitor.java similarity index 100% rename from src/main/java/org/jabref/gui/util/DefaultFileUpdateMonitor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/DefaultFileUpdateMonitor.java diff --git a/src/main/java/org/jabref/gui/util/DefaultTaskExecutor.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/DefaultTaskExecutor.java similarity index 100% rename from src/main/java/org/jabref/gui/util/DefaultTaskExecutor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/DefaultTaskExecutor.java diff --git a/src/main/java/org/jabref/gui/util/DirectoryDialogConfiguration.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/DirectoryDialogConfiguration.java similarity index 100% rename from src/main/java/org/jabref/gui/util/DirectoryDialogConfiguration.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/DirectoryDialogConfiguration.java diff --git a/src/main/java/org/jabref/gui/util/FileDialogConfiguration.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/FileDialogConfiguration.java similarity index 100% rename from src/main/java/org/jabref/gui/util/FileDialogConfiguration.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/FileDialogConfiguration.java diff --git a/src/main/java/org/jabref/gui/util/FileFilterConverter.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/FileFilterConverter.java similarity index 100% rename from src/main/java/org/jabref/gui/util/FileFilterConverter.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/FileFilterConverter.java diff --git a/src/main/java/org/jabref/gui/util/IconValidationDecorator.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/IconValidationDecorator.java similarity index 100% rename from src/main/java/org/jabref/gui/util/IconValidationDecorator.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/IconValidationDecorator.java diff --git a/src/main/java/org/jabref/gui/util/MappedList.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/MappedList.java similarity index 100% rename from src/main/java/org/jabref/gui/util/MappedList.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/MappedList.java diff --git a/src/main/java/org/jabref/gui/util/OnlyIntegerFormatter.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/OnlyIntegerFormatter.java similarity index 100% rename from src/main/java/org/jabref/gui/util/OnlyIntegerFormatter.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/OnlyIntegerFormatter.java diff --git a/src/main/java/org/jabref/gui/util/OpenHyperlinksInExternalBrowser.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/OpenHyperlinksInExternalBrowser.java similarity index 100% rename from src/main/java/org/jabref/gui/util/OpenHyperlinksInExternalBrowser.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/OpenHyperlinksInExternalBrowser.java diff --git a/src/main/java/org/jabref/gui/util/RecursiveTreeItem.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/RecursiveTreeItem.java similarity index 100% rename from src/main/java/org/jabref/gui/util/RecursiveTreeItem.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/RecursiveTreeItem.java diff --git a/src/main/java/org/jabref/gui/util/TaskExecutor.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/TaskExecutor.java similarity index 100% rename from src/main/java/org/jabref/gui/util/TaskExecutor.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/TaskExecutor.java diff --git a/src/main/java/org/jabref/gui/util/TooltipTextUtil.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/TooltipTextUtil.java similarity index 100% rename from src/main/java/org/jabref/gui/util/TooltipTextUtil.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/TooltipTextUtil.java diff --git a/src/main/java/org/jabref/gui/util/ValueTableCellFactory.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/ValueTableCellFactory.java similarity index 100% rename from src/main/java/org/jabref/gui/util/ValueTableCellFactory.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/ValueTableCellFactory.java diff --git a/src/main/java/org/jabref/gui/util/ViewModelListCellFactory.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/ViewModelListCellFactory.java similarity index 100% rename from src/main/java/org/jabref/gui/util/ViewModelListCellFactory.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/ViewModelListCellFactory.java diff --git a/src/main/java/org/jabref/gui/util/ViewModelTreeTableCellFactory.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/ViewModelTreeTableCellFactory.java similarity index 100% rename from src/main/java/org/jabref/gui/util/ViewModelTreeTableCellFactory.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/ViewModelTreeTableCellFactory.java diff --git a/src/main/java/org/jabref/gui/util/WindowLocation.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/WindowLocation.java similarity index 100% rename from src/main/java/org/jabref/gui/util/WindowLocation.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/WindowLocation.java diff --git a/src/main/java/org/jabref/gui/util/comparator/FirstColumnComparator.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/comparator/FirstColumnComparator.java similarity index 100% rename from src/main/java/org/jabref/gui/util/comparator/FirstColumnComparator.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/comparator/FirstColumnComparator.java diff --git a/src/main/java/org/jabref/gui/util/comparator/IconComparator.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/comparator/IconComparator.java similarity index 100% rename from src/main/java/org/jabref/gui/util/comparator/IconComparator.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/comparator/IconComparator.java diff --git a/src/main/java/org/jabref/gui/util/comparator/IsMarkedComparator.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/comparator/IsMarkedComparator.java similarity index 100% rename from src/main/java/org/jabref/gui/util/comparator/IsMarkedComparator.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/comparator/IsMarkedComparator.java diff --git a/src/main/java/org/jabref/gui/util/comparator/RankingFieldComparator.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/comparator/RankingFieldComparator.java similarity index 100% rename from src/main/java/org/jabref/gui/util/comparator/RankingFieldComparator.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/comparator/RankingFieldComparator.java diff --git a/src/main/java/org/jabref/gui/util/component/CheckBoxMessage.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/component/CheckBoxMessage.java similarity index 100% rename from src/main/java/org/jabref/gui/util/component/CheckBoxMessage.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/component/CheckBoxMessage.java diff --git a/src/main/java/org/jabref/gui/util/component/DiffHighlightingTextPane.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/component/DiffHighlightingTextPane.java similarity index 100% rename from src/main/java/org/jabref/gui/util/component/DiffHighlightingTextPane.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/component/DiffHighlightingTextPane.java diff --git a/src/main/java/org/jabref/gui/util/component/JTextAreaWithPlaceholder.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/component/JTextAreaWithPlaceholder.java similarity index 100% rename from src/main/java/org/jabref/gui/util/component/JTextAreaWithPlaceholder.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/component/JTextAreaWithPlaceholder.java diff --git a/src/main/java/org/jabref/gui/util/component/JTextFieldWithPlaceholder.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/component/JTextFieldWithPlaceholder.java similarity index 100% rename from src/main/java/org/jabref/gui/util/component/JTextFieldWithPlaceholder.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/component/JTextFieldWithPlaceholder.java diff --git a/src/main/java/org/jabref/gui/util/component/OverlayPanel.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/component/OverlayPanel.java similarity index 100% rename from src/main/java/org/jabref/gui/util/component/OverlayPanel.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/component/OverlayPanel.java diff --git a/src/main/java/org/jabref/gui/util/component/Tag.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/util/component/Tag.fxml similarity index 100% rename from src/main/java/org/jabref/gui/util/component/Tag.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/util/component/Tag.fxml diff --git a/src/main/java/org/jabref/gui/util/component/Tag.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/component/Tag.java similarity index 100% rename from src/main/java/org/jabref/gui/util/component/Tag.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/component/Tag.java diff --git a/src/main/java/org/jabref/gui/util/component/TagBar.css b/org.jabref.gui/src/main/java/org/jabref/gui/util/component/TagBar.css similarity index 100% rename from src/main/java/org/jabref/gui/util/component/TagBar.css rename to org.jabref.gui/src/main/java/org/jabref/gui/util/component/TagBar.css diff --git a/src/main/java/org/jabref/gui/util/component/TagBar.fxml b/org.jabref.gui/src/main/java/org/jabref/gui/util/component/TagBar.fxml similarity index 100% rename from src/main/java/org/jabref/gui/util/component/TagBar.fxml rename to org.jabref.gui/src/main/java/org/jabref/gui/util/component/TagBar.fxml diff --git a/src/main/java/org/jabref/gui/util/component/TagBar.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/component/TagBar.java similarity index 100% rename from src/main/java/org/jabref/gui/util/component/TagBar.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/component/TagBar.java diff --git a/src/main/java/org/jabref/gui/util/component/TemporalAccessorPicker.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/component/TemporalAccessorPicker.java similarity index 100% rename from src/main/java/org/jabref/gui/util/component/TemporalAccessorPicker.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/component/TemporalAccessorPicker.java diff --git a/src/main/java/org/jabref/gui/util/component/VerticalLabelUI.java b/org.jabref.gui/src/main/java/org/jabref/gui/util/component/VerticalLabelUI.java similarity index 100% rename from src/main/java/org/jabref/gui/util/component/VerticalLabelUI.java rename to org.jabref.gui/src/main/java/org/jabref/gui/util/component/VerticalLabelUI.java diff --git a/src/main/java/org/jabref/gui/worker/AbstractWorker.java b/org.jabref.gui/src/main/java/org/jabref/gui/worker/AbstractWorker.java similarity index 100% rename from src/main/java/org/jabref/gui/worker/AbstractWorker.java rename to org.jabref.gui/src/main/java/org/jabref/gui/worker/AbstractWorker.java diff --git a/src/main/java/org/jabref/gui/worker/CallBack.java b/org.jabref.gui/src/main/java/org/jabref/gui/worker/CallBack.java similarity index 100% rename from src/main/java/org/jabref/gui/worker/CallBack.java rename to org.jabref.gui/src/main/java/org/jabref/gui/worker/CallBack.java diff --git a/src/main/java/org/jabref/gui/worker/CitationStyleToClipboardWorker.java b/org.jabref.gui/src/main/java/org/jabref/gui/worker/CitationStyleToClipboardWorker.java similarity index 100% rename from src/main/java/org/jabref/gui/worker/CitationStyleToClipboardWorker.java rename to org.jabref.gui/src/main/java/org/jabref/gui/worker/CitationStyleToClipboardWorker.java diff --git a/src/main/java/org/jabref/gui/worker/LookupIdentifiersWorker.java b/org.jabref.gui/src/main/java/org/jabref/gui/worker/LookupIdentifiersWorker.java similarity index 100% rename from src/main/java/org/jabref/gui/worker/LookupIdentifiersWorker.java rename to org.jabref.gui/src/main/java/org/jabref/gui/worker/LookupIdentifiersWorker.java diff --git a/src/main/java/org/jabref/gui/worker/MarkEntriesAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/worker/MarkEntriesAction.java similarity index 100% rename from src/main/java/org/jabref/gui/worker/MarkEntriesAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/worker/MarkEntriesAction.java diff --git a/src/main/java/org/jabref/gui/worker/SendAsEMailAction.java b/org.jabref.gui/src/main/java/org/jabref/gui/worker/SendAsEMailAction.java similarity index 100% rename from src/main/java/org/jabref/gui/worker/SendAsEMailAction.java rename to org.jabref.gui/src/main/java/org/jabref/gui/worker/SendAsEMailAction.java diff --git a/src/main/java/org/jabref/gui/worker/VersionWorker.java b/org.jabref.gui/src/main/java/org/jabref/gui/worker/VersionWorker.java similarity index 100% rename from src/main/java/org/jabref/gui/worker/VersionWorker.java rename to org.jabref.gui/src/main/java/org/jabref/gui/worker/VersionWorker.java diff --git a/src/main/java/org/jabref/logic/autosaveandbackup/AutosaveManager.java b/org.jabref.gui/src/main/java/org/jabref/logic/autosaveandbackup/AutosaveManager.java similarity index 100% rename from src/main/java/org/jabref/logic/autosaveandbackup/AutosaveManager.java rename to org.jabref.gui/src/main/java/org/jabref/logic/autosaveandbackup/AutosaveManager.java diff --git a/src/main/java/org/jabref/logic/autosaveandbackup/BackupManager.java b/org.jabref.gui/src/main/java/org/jabref/logic/autosaveandbackup/BackupManager.java similarity index 98% rename from src/main/java/org/jabref/logic/autosaveandbackup/BackupManager.java rename to org.jabref.gui/src/main/java/org/jabref/logic/autosaveandbackup/BackupManager.java index f3e7e813352..ca3af773ac5 100644 --- a/src/main/java/org/jabref/logic/autosaveandbackup/BackupManager.java +++ b/org.jabref.gui/src/main/java/org/jabref/logic/autosaveandbackup/BackupManager.java @@ -118,7 +118,7 @@ private Optional determineBackupPath() { private void performBackup(Path backupPath) { try { Charset charset = bibDatabaseContext.getMetaData().getEncoding().orElse(preferences.getDefaultEncoding()); - SavePreferences savePreferences = SavePreferences.loadForSaveFromPreferences(preferences).withEncoding + SavePreferences savePreferences = JabRefPreferences.loadForSaveFromPreferences(preferences).withEncoding (charset).withMakeBackup(false); new BibtexDatabaseWriter<>(FileSaveSession::new).saveDatabase(bibDatabaseContext, savePreferences).commit (backupPath); diff --git a/src/main/java/org/jabref/logic/remote/RemotePreferences.java b/org.jabref.gui/src/main/java/org/jabref/logic/remote/RemotePreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/remote/RemotePreferences.java rename to org.jabref.gui/src/main/java/org/jabref/logic/remote/RemotePreferences.java diff --git a/src/main/java/org/jabref/logic/remote/RemoteUtil.java b/org.jabref.gui/src/main/java/org/jabref/logic/remote/RemoteUtil.java similarity index 100% rename from src/main/java/org/jabref/logic/remote/RemoteUtil.java rename to org.jabref.gui/src/main/java/org/jabref/logic/remote/RemoteUtil.java diff --git a/src/main/java/org/jabref/logic/remote/client/RemoteListenerClient.java b/org.jabref.gui/src/main/java/org/jabref/logic/remote/client/RemoteListenerClient.java similarity index 100% rename from src/main/java/org/jabref/logic/remote/client/RemoteListenerClient.java rename to org.jabref.gui/src/main/java/org/jabref/logic/remote/client/RemoteListenerClient.java diff --git a/src/main/java/org/jabref/logic/remote/server/MessageHandler.java b/org.jabref.gui/src/main/java/org/jabref/logic/remote/server/MessageHandler.java similarity index 100% rename from src/main/java/org/jabref/logic/remote/server/MessageHandler.java rename to org.jabref.gui/src/main/java/org/jabref/logic/remote/server/MessageHandler.java diff --git a/src/main/java/org/jabref/logic/remote/server/RemoteListenerServer.java b/org.jabref.gui/src/main/java/org/jabref/logic/remote/server/RemoteListenerServer.java similarity index 100% rename from src/main/java/org/jabref/logic/remote/server/RemoteListenerServer.java rename to org.jabref.gui/src/main/java/org/jabref/logic/remote/server/RemoteListenerServer.java diff --git a/src/main/java/org/jabref/logic/remote/server/RemoteListenerServerLifecycle.java b/org.jabref.gui/src/main/java/org/jabref/logic/remote/server/RemoteListenerServerLifecycle.java similarity index 100% rename from src/main/java/org/jabref/logic/remote/server/RemoteListenerServerLifecycle.java rename to org.jabref.gui/src/main/java/org/jabref/logic/remote/server/RemoteListenerServerLifecycle.java diff --git a/src/main/java/org/jabref/logic/remote/server/RemoteListenerServerThread.java b/org.jabref.gui/src/main/java/org/jabref/logic/remote/server/RemoteListenerServerThread.java similarity index 100% rename from src/main/java/org/jabref/logic/remote/server/RemoteListenerServerThread.java rename to org.jabref.gui/src/main/java/org/jabref/logic/remote/server/RemoteListenerServerThread.java diff --git a/src/main/java/org/jabref/logic/remote/shared/Protocol.java b/org.jabref.gui/src/main/java/org/jabref/logic/remote/shared/Protocol.java similarity index 100% rename from src/main/java/org/jabref/logic/remote/shared/Protocol.java rename to org.jabref.gui/src/main/java/org/jabref/logic/remote/shared/Protocol.java diff --git a/src/main/java/org/jabref/logic/shared/DBMSConnection.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/DBMSConnection.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/DBMSConnection.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/DBMSConnection.java diff --git a/src/main/java/org/jabref/logic/shared/DBMSConnectionProperties.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/DBMSConnectionProperties.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/DBMSConnectionProperties.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/DBMSConnectionProperties.java diff --git a/src/main/java/org/jabref/logic/shared/DBMSProcessor.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/DBMSProcessor.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/DBMSProcessor.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/DBMSProcessor.java diff --git a/src/main/java/org/jabref/logic/shared/DBMSSynchronizer.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/DBMSSynchronizer.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/DBMSSynchronizer.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/DBMSSynchronizer.java diff --git a/src/main/java/org/jabref/logic/shared/MySQLProcessor.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/MySQLProcessor.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/MySQLProcessor.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/MySQLProcessor.java diff --git a/src/main/java/org/jabref/logic/shared/OracleProcessor.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/OracleProcessor.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/OracleProcessor.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/OracleProcessor.java diff --git a/src/main/java/org/jabref/logic/shared/PostgreSQLProcessor.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/PostgreSQLProcessor.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/PostgreSQLProcessor.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/PostgreSQLProcessor.java diff --git a/src/main/java/org/jabref/logic/shared/event/ConnectionLostEvent.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/event/ConnectionLostEvent.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/event/ConnectionLostEvent.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/event/ConnectionLostEvent.java diff --git a/src/main/java/org/jabref/logic/shared/event/SharedEntryNotPresentEvent.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/event/SharedEntryNotPresentEvent.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/event/SharedEntryNotPresentEvent.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/event/SharedEntryNotPresentEvent.java diff --git a/src/main/java/org/jabref/logic/shared/event/UpdateRefusedEvent.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/event/UpdateRefusedEvent.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/event/UpdateRefusedEvent.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/event/UpdateRefusedEvent.java diff --git a/src/main/java/org/jabref/logic/shared/exception/InvalidDBMSConnectionPropertiesException.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/exception/InvalidDBMSConnectionPropertiesException.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/exception/InvalidDBMSConnectionPropertiesException.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/exception/InvalidDBMSConnectionPropertiesException.java diff --git a/src/main/java/org/jabref/logic/shared/exception/NotASharedDatabaseException.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/exception/NotASharedDatabaseException.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/exception/NotASharedDatabaseException.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/exception/NotASharedDatabaseException.java diff --git a/src/main/java/org/jabref/logic/shared/exception/OfflineLockException.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/exception/OfflineLockException.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/exception/OfflineLockException.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/exception/OfflineLockException.java diff --git a/src/main/java/org/jabref/logic/shared/exception/SharedEntryNotPresentException.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/exception/SharedEntryNotPresentException.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/exception/SharedEntryNotPresentException.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/exception/SharedEntryNotPresentException.java diff --git a/src/main/java/org/jabref/logic/shared/listener/OracleNotificationListener.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/listener/OracleNotificationListener.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/listener/OracleNotificationListener.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/listener/OracleNotificationListener.java diff --git a/src/main/java/org/jabref/logic/shared/listener/PostgresSQLNotificationListener.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/listener/PostgresSQLNotificationListener.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/listener/PostgresSQLNotificationListener.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/listener/PostgresSQLNotificationListener.java diff --git a/src/main/java/org/jabref/logic/shared/prefs/SharedDatabasePreferences.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/prefs/SharedDatabasePreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/prefs/SharedDatabasePreferences.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/prefs/SharedDatabasePreferences.java diff --git a/src/main/java/org/jabref/logic/shared/security/Password.java b/org.jabref.gui/src/main/java/org/jabref/logic/shared/security/Password.java similarity index 100% rename from src/main/java/org/jabref/logic/shared/security/Password.java rename to org.jabref.gui/src/main/java/org/jabref/logic/shared/security/Password.java diff --git a/src/main/java/org/jabref/migrations/CustomEntryTypePreferenceMigration.java b/org.jabref.gui/src/main/java/org/jabref/migrations/CustomEntryTypePreferenceMigration.java similarity index 100% rename from src/main/java/org/jabref/migrations/CustomEntryTypePreferenceMigration.java rename to org.jabref.gui/src/main/java/org/jabref/migrations/CustomEntryTypePreferenceMigration.java diff --git a/src/main/java/org/jabref/migrations/FileLinksUpgradeWarning.java b/org.jabref.gui/src/main/java/org/jabref/migrations/FileLinksUpgradeWarning.java similarity index 100% rename from src/main/java/org/jabref/migrations/FileLinksUpgradeWarning.java rename to org.jabref.gui/src/main/java/org/jabref/migrations/FileLinksUpgradeWarning.java diff --git a/src/main/java/org/jabref/migrations/PreferencesMigrations.java b/org.jabref.gui/src/main/java/org/jabref/migrations/PreferencesMigrations.java similarity index 100% rename from src/main/java/org/jabref/migrations/PreferencesMigrations.java rename to org.jabref.gui/src/main/java/org/jabref/migrations/PreferencesMigrations.java diff --git a/src/main/java/org/jabref/pdfimport/ImportDialog.java b/org.jabref.gui/src/main/java/org/jabref/pdfimport/ImportDialog.java similarity index 100% rename from src/main/java/org/jabref/pdfimport/ImportDialog.java rename to org.jabref.gui/src/main/java/org/jabref/pdfimport/ImportDialog.java diff --git a/src/main/java/org/jabref/pdfimport/PdfFileFilter.java b/org.jabref.gui/src/main/java/org/jabref/pdfimport/PdfFileFilter.java similarity index 100% rename from src/main/java/org/jabref/pdfimport/PdfFileFilter.java rename to org.jabref.gui/src/main/java/org/jabref/pdfimport/PdfFileFilter.java diff --git a/src/main/java/org/jabref/pdfimport/PdfImporter.java b/org.jabref.gui/src/main/java/org/jabref/pdfimport/PdfImporter.java similarity index 100% rename from src/main/java/org/jabref/pdfimport/PdfImporter.java rename to org.jabref.gui/src/main/java/org/jabref/pdfimport/PdfImporter.java diff --git a/src/main/java/org/jabref/preferences/CustomExportList.java b/org.jabref.gui/src/main/java/org/jabref/preferences/CustomExportList.java similarity index 98% rename from src/main/java/org/jabref/preferences/CustomExportList.java rename to org.jabref.gui/src/main/java/org/jabref/preferences/CustomExportList.java index d42409763f2..b2f5dfb511f 100644 --- a/src/main/java/org/jabref/preferences/CustomExportList.java +++ b/org.jabref.gui/src/main/java/org/jabref/preferences/CustomExportList.java @@ -70,7 +70,7 @@ private void readPrefs(JabRefPreferences prefs, JournalAbbreviationLoader loader int i = 0; List s; LayoutFormatterPreferences layoutPreferences = prefs.getLayoutFormatterPreferences(loader); - SavePreferences savePreferences = SavePreferences.loadForExportFromPreferences(prefs); + SavePreferences savePreferences = JabRefPreferences.loadForExportFromPreferences(prefs); while (!((s = prefs.getStringList(JabRefPreferences.CUSTOM_EXPORT_FORMAT + i)).isEmpty())) { Optional format = createFormat(s.get(EXPORTER_NAME_INDEX), s.get(EXPORTER_FILENAME_INDEX), s.get(EXPORTER_EXTENSION_INDEX), layoutPreferences, savePreferences); if (format.isPresent()) { diff --git a/src/main/java/org/jabref/preferences/CustomImportList.java b/org.jabref.gui/src/main/java/org/jabref/preferences/CustomImportList.java similarity index 100% rename from src/main/java/org/jabref/preferences/CustomImportList.java rename to org.jabref.gui/src/main/java/org/jabref/preferences/CustomImportList.java diff --git a/src/main/java/org/jabref/preferences/ExportComparator.java b/org.jabref.gui/src/main/java/org/jabref/preferences/ExportComparator.java similarity index 100% rename from src/main/java/org/jabref/preferences/ExportComparator.java rename to org.jabref.gui/src/main/java/org/jabref/preferences/ExportComparator.java diff --git a/org.jabref.gui/src/main/java/org/jabref/preferences/ExporterFactoryFactory.java b/org.jabref.gui/src/main/java/org/jabref/preferences/ExporterFactoryFactory.java new file mode 100644 index 00000000000..f8928015c44 --- /dev/null +++ b/org.jabref.gui/src/main/java/org/jabref/preferences/ExporterFactoryFactory.java @@ -0,0 +1,20 @@ +package org.jabref.preferences; + +import java.util.Map; + +import org.jabref.logic.exporter.ExporterFactory; +import org.jabref.logic.exporter.SavePreferences; +import org.jabref.logic.exporter.TemplateExporter; +import org.jabref.logic.journals.JournalAbbreviationLoader; +import org.jabref.logic.layout.LayoutFormatterPreferences; + +public class ExporterFactoryFactory { + + public static ExporterFactory create(JabRefPreferences preferences, JournalAbbreviationLoader abbreviationLoader) { + Map customFormats = preferences.customExports.getCustomExportFormats(preferences, abbreviationLoader); + LayoutFormatterPreferences layoutPreferences = preferences.getLayoutFormatterPreferences(abbreviationLoader); + SavePreferences savePreferences = JabRefPreferences.loadForExportFromPreferences(preferences); + return ExporterFactory.create(customFormats, layoutPreferences, savePreferences); + } + +} diff --git a/src/main/java/org/jabref/preferences/JabRefPreferences.java b/org.jabref.gui/src/main/java/org/jabref/preferences/JabRefPreferences.java similarity index 92% rename from src/main/java/org/jabref/preferences/JabRefPreferences.java rename to org.jabref.gui/src/main/java/org/jabref/preferences/JabRefPreferences.java index 149dec57782..c5a3e25d838 100644 --- a/src/main/java/org/jabref/preferences/JabRefPreferences.java +++ b/org.jabref.gui/src/main/java/org/jabref/preferences/JabRefPreferences.java @@ -49,6 +49,7 @@ import org.jabref.logic.cleanup.CleanupPreferences; import org.jabref.logic.cleanup.CleanupPreset; import org.jabref.logic.cleanup.Cleanups; +import org.jabref.logic.exporter.SavePreferences; import org.jabref.logic.importer.ImportFormatPreferences; import org.jabref.logic.importer.fetcher.DoiFetcher; import org.jabref.logic.journals.JournalAbbreviationLoader; @@ -72,6 +73,7 @@ import org.jabref.logic.util.io.FileHistory; import org.jabref.logic.xmp.XMPPreferences; import org.jabref.model.bibtexkeypattern.GlobalBibtexKeyPattern; +import org.jabref.model.cleanup.FieldFormatterCleanups; import org.jabref.model.database.BibDatabaseMode; import org.jabref.model.entry.BibEntry; import org.jabref.model.entry.CustomEntryType; @@ -325,6 +327,7 @@ public class JabRefPreferences implements PreferencesService { // Remote public static final String USE_REMOTE_SERVER = "useRemoteServer"; public static final String REMOTE_SERVER_PORT = "remoteServerPort"; + /** * The OpenOffice/LibreOffice connection preferences are: * OO_PATH main directory for OO/LO installation, used to detect location on Win/OS X when using manual connect @@ -345,6 +348,7 @@ public class JabRefPreferences implements PreferencesService { public static final String OO_USE_ALL_OPEN_BASES = "useAllOpenBases"; public static final String OO_BIBLIOGRAPHY_STYLE_FILE = "ooBibliographyStyleFile"; public static final String OO_EXTERNAL_STYLE_FILES = "ooExternalStyleFiles"; + public static final String STYLES_SIZE_Y = "stylesSizeY"; public static final String STYLES_SIZE_X = "stylesSizeX"; public static final String STYLES_POS_Y = "stylesPosY"; @@ -1421,6 +1425,41 @@ public ImportFormatPreferences getImportFormatPreferences() { isKeywordSyncEnabled()); } + public static SavePreferences loadForExportFromPreferences(JabRefPreferences preferences) { + Boolean saveInOriginalOrder = preferences.getBoolean(JabRefPreferences.EXPORT_IN_ORIGINAL_ORDER); + SaveOrderConfig saveOrder = null; + if (!saveInOriginalOrder) { + if (preferences.getBoolean(JabRefPreferences.EXPORT_IN_SPECIFIED_ORDER)) { + saveOrder = preferences.loadExportSaveOrder(); + } else { + saveOrder = preferences.loadTableSaveOrder(); + } + } + Charset encoding = preferences.getDefaultEncoding(); + Boolean makeBackup = preferences.getBoolean(JabRefPreferences.BACKUP); + SavePreferences.DatabaseSaveType saveType = SavePreferences.DatabaseSaveType.ALL; + Boolean takeMetadataSaveOrderInAccount = false; + Boolean reformatFile = preferences.getBoolean(JabRefPreferences.REFORMAT_FILE_ON_SAVE_AND_EXPORT); + LatexFieldFormatterPreferences latexFieldFormatterPreferences = preferences.getLatexFieldFormatterPreferences(); + GlobalBibtexKeyPattern globalCiteKeyPattern = preferences.getKeyPattern(); + return new SavePreferences(saveInOriginalOrder, saveOrder, encoding, makeBackup, saveType, + takeMetadataSaveOrderInAccount, reformatFile, latexFieldFormatterPreferences, globalCiteKeyPattern); + } + + public static SavePreferences loadForSaveFromPreferences(JabRefPreferences preferences) { + Boolean saveInOriginalOrder = false; + SaveOrderConfig saveOrder = null; + Charset encoding = preferences.getDefaultEncoding(); + Boolean makeBackup = preferences.getBoolean(JabRefPreferences.BACKUP); + SavePreferences.DatabaseSaveType saveType = SavePreferences.DatabaseSaveType.ALL; + Boolean takeMetadataSaveOrderInAccount = true; + Boolean reformatFile = preferences.getBoolean(JabRefPreferences.REFORMAT_FILE_ON_SAVE_AND_EXPORT); + LatexFieldFormatterPreferences latexFieldFormatterPreferences = preferences.getLatexFieldFormatterPreferences(); + GlobalBibtexKeyPattern globalCiteKeyPattern = preferences.getKeyPattern(); + return new SavePreferences(saveInOriginalOrder, saveOrder, encoding, makeBackup, saveType, + takeMetadataSaveOrderInAccount, reformatFile, latexFieldFormatterPreferences, globalCiteKeyPattern); + } + public BibtexKeyPatternPreferences getBibtexKeyPatternPreferences() { return new BibtexKeyPatternPreferences(get(KEY_PATTERN_REGEX), get(KEY_PATTERN_REPLACEMENT), getBoolean(KEY_GEN_ALWAYS_ADD_LETTER), getBoolean(KEY_GEN_FIRST_LETTER_A), @@ -1438,6 +1477,18 @@ public LayoutFormatterPreferences getLayoutFormatterPreferences( getFileLinkPreferences(), journalAbbreviationLoader); } + public OpenOfficePreferences getOpenOfficePreferences() { + return new OpenOfficePreferences( + this.get(JabRefPreferences.OO_JARS_PATH), + this.get(JabRefPreferences.OO_EXECUTABLE_PATH), + this.get(JabRefPreferences.OO_PATH), + this.getBoolean(JabRefPreferences.OO_USE_ALL_OPEN_BASES), + this.getBoolean(JabRefPreferences.OO_SYNC_WHEN_CITING), + this.getBoolean(JabRefPreferences.OO_SHOW_PANEL), + this.getStringList(JabRefPreferences.OO_EXTERNAL_STYLE_FILES), + this.get(JabRefPreferences.OO_BIBLIOGRAPHY_STYLE_FILE)); + } + public XMPPreferences getXMPPreferences() { return new XMPPreferences(getBoolean(USE_XMP_PRIVACY_FILTER), getStringList(XMP_PRIVACY_FILTERS), getKeywordDelimiter()); @@ -1547,6 +1598,62 @@ public CleanupPreferences getCleanupPreferences(JournalAbbreviationLoader journa getLayoutFormatterPreferences(journalAbbreviationLoader), getFileDirectoryPreferences()); } + public CleanupPreset getCleanupPreset() { + Set activeJobs = EnumSet.noneOf(CleanupPreset.CleanupStep.class); + + if (this.getBoolean(JabRefPreferences.CLEANUP_DOI)) { + activeJobs.add(CleanupPreset.CleanupStep.CLEAN_UP_DOI); + } + if (this.getBoolean(JabRefPreferences.CLEANUP_ISSN)) { + activeJobs.add(CleanupPreset.CleanupStep.CLEAN_UP_ISSN); + } + if (this.getBoolean(JabRefPreferences.CLEANUP_MOVE_PDF)) { + activeJobs.add(CleanupPreset.CleanupStep.MOVE_PDF); + } + if (this.getBoolean(JabRefPreferences.CLEANUP_MAKE_PATHS_RELATIVE)) { + activeJobs.add(CleanupPreset.CleanupStep.MAKE_PATHS_RELATIVE); + } + if (this.getBoolean(JabRefPreferences.CLEANUP_RENAME_PDF)) { + activeJobs.add(CleanupPreset.CleanupStep.RENAME_PDF); + } + if (this.getBoolean(JabRefPreferences.CLEANUP_RENAME_PDF_ONLY_RELATIVE_PATHS)) { + activeJobs.add(CleanupPreset.CleanupStep.RENAME_PDF_ONLY_RELATIVE_PATHS); + } + if (this.getBoolean(JabRefPreferences.CLEANUP_UPGRADE_EXTERNAL_LINKS)) { + activeJobs.add(CleanupPreset.CleanupStep.CLEAN_UP_UPGRADE_EXTERNAL_LINKS); + } + if (this.getBoolean(JabRefPreferences.CLEANUP_CONVERT_TO_BIBLATEX)) { + activeJobs.add(CleanupPreset.CleanupStep.CONVERT_TO_BIBLATEX); + } + if (this.getBoolean(JabRefPreferences.CLEANUP_CONVERT_TO_BIBTEX)) { + activeJobs.add(CleanupPreset.CleanupStep.CONVERT_TO_BIBTEX); + } + if (this.getBoolean(JabRefPreferences.CLEANUP_FIX_FILE_LINKS)) { + activeJobs.add(CleanupPreset.CleanupStep.FIX_FILE_LINKS); + } + + FieldFormatterCleanups formatterCleanups = Cleanups.parse( + this.getStringList(JabRefPreferences.CLEANUP_FORMATTERS)); + + return new CleanupPreset(activeJobs, formatterCleanups); + } + + public void setCleanupPreset(CleanupPreset cleanupPreset) { + this.putBoolean(JabRefPreferences.CLEANUP_DOI, cleanupPreset.isActive(CleanupPreset.CleanupStep.CLEAN_UP_DOI)); + this.putBoolean(JabRefPreferences.CLEANUP_ISSN, cleanupPreset.isActive(CleanupPreset.CleanupStep.CLEAN_UP_ISSN)); + this.putBoolean(JabRefPreferences.CLEANUP_MOVE_PDF, cleanupPreset.isActive(CleanupPreset.CleanupStep.MOVE_PDF)); + this.putBoolean(JabRefPreferences.CLEANUP_MAKE_PATHS_RELATIVE, cleanupPreset.isActive(CleanupPreset.CleanupStep.MAKE_PATHS_RELATIVE)); + this.putBoolean(JabRefPreferences.CLEANUP_RENAME_PDF, cleanupPreset.isActive(CleanupPreset.CleanupStep.RENAME_PDF)); + this.putBoolean(JabRefPreferences.CLEANUP_RENAME_PDF_ONLY_RELATIVE_PATHS, + cleanupPreset.isActive(CleanupPreset.CleanupStep.RENAME_PDF_ONLY_RELATIVE_PATHS)); + this.putBoolean(JabRefPreferences.CLEANUP_UPGRADE_EXTERNAL_LINKS, + cleanupPreset.isActive(CleanupPreset.CleanupStep.CLEAN_UP_UPGRADE_EXTERNAL_LINKS)); + this.putBoolean(JabRefPreferences.CLEANUP_CONVERT_TO_BIBLATEX, cleanupPreset.isActive(CleanupPreset.CleanupStep.CONVERT_TO_BIBLATEX)); + this.putBoolean(JabRefPreferences.CLEANUP_CONVERT_TO_BIBTEX, cleanupPreset.isActive(CleanupPreset.CleanupStep.CONVERT_TO_BIBTEX)); + this.putBoolean(JabRefPreferences.CLEANUP_FIX_FILE_LINKS, cleanupPreset.isActive(CleanupPreset.CleanupStep.FIX_FILE_LINKS)); + this.putStringList(JabRefPreferences.CLEANUP_FORMATTERS, cleanupPreset.getFormatterCleanups().getAsStringList(OS.NEWLINE)); + } + public RemotePreferences getRemotePreferences() { return new RemotePreferences(getInt(REMOTE_SERVER_PORT), getBoolean(USE_REMOTE_SERVER)); } diff --git a/src/main/java/org/jabref/preferences/JabRefPreferencesFilter.java b/org.jabref.gui/src/main/java/org/jabref/preferences/JabRefPreferencesFilter.java similarity index 100% rename from src/main/java/org/jabref/preferences/JabRefPreferencesFilter.java rename to org.jabref.gui/src/main/java/org/jabref/preferences/JabRefPreferencesFilter.java diff --git a/src/main/java/org/jabref/preferences/LastFocusedTabPreferences.java b/org.jabref.gui/src/main/java/org/jabref/preferences/LastFocusedTabPreferences.java similarity index 100% rename from src/main/java/org/jabref/preferences/LastFocusedTabPreferences.java rename to org.jabref.gui/src/main/java/org/jabref/preferences/LastFocusedTabPreferences.java diff --git a/src/main/java/org/jabref/preferences/PreferencesService.java b/org.jabref.gui/src/main/java/org/jabref/preferences/PreferencesService.java similarity index 100% rename from src/main/java/org/jabref/preferences/PreferencesService.java rename to org.jabref.gui/src/main/java/org/jabref/preferences/PreferencesService.java diff --git a/src/main/java/org/jabref/preferences/PreviewPreferences.java b/org.jabref.gui/src/main/java/org/jabref/preferences/PreviewPreferences.java similarity index 100% rename from src/main/java/org/jabref/preferences/PreviewPreferences.java rename to org.jabref.gui/src/main/java/org/jabref/preferences/PreviewPreferences.java diff --git a/src/main/java/org/jabref/preferences/SearchPreferences.java b/org.jabref.gui/src/main/java/org/jabref/preferences/SearchPreferences.java similarity index 100% rename from src/main/java/org/jabref/preferences/SearchPreferences.java rename to org.jabref.gui/src/main/java/org/jabref/preferences/SearchPreferences.java diff --git a/src/main/java/org/jabref/preferences/VersionPreferences.java b/org.jabref.gui/src/main/java/org/jabref/preferences/VersionPreferences.java similarity index 100% rename from src/main/java/org/jabref/preferences/VersionPreferences.java rename to org.jabref.gui/src/main/java/org/jabref/preferences/VersionPreferences.java diff --git a/src/main/java/osx/macadapter/MacAdapter.java b/org.jabref.gui/src/main/java/osx/macadapter/MacAdapter.java similarity index 100% rename from src/main/java/osx/macadapter/MacAdapter.java rename to org.jabref.gui/src/main/java/osx/macadapter/MacAdapter.java diff --git a/src/main/resources/ApplicationInsights.xml b/org.jabref.gui/src/main/resources/ApplicationInsights.xml similarity index 100% rename from src/main/resources/ApplicationInsights.xml rename to org.jabref.gui/src/main/resources/ApplicationInsights.xml diff --git a/src/main/resources/META-INF/services/com.airhacks.afterburner.injection.PresenterFactory b/org.jabref.gui/src/main/resources/META-INF/services/com.airhacks.afterburner.injection.PresenterFactory similarity index 100% rename from src/main/resources/META-INF/services/com.airhacks.afterburner.injection.PresenterFactory rename to org.jabref.gui/src/main/resources/META-INF/services/com.airhacks.afterburner.injection.PresenterFactory diff --git a/src/main/resources/fonts/materialdesignicons-webfont.ttf b/org.jabref.gui/src/main/resources/fonts/materialdesignicons-webfont.ttf similarity index 100% rename from src/main/resources/fonts/materialdesignicons-webfont.ttf rename to org.jabref.gui/src/main/resources/fonts/materialdesignicons-webfont.ttf diff --git a/org.jabref.gui/src/main/resources/icons/jabref.icns b/org.jabref.gui/src/main/resources/icons/jabref.icns new file mode 100644 index 00000000000..2c87ce06a5c Binary files /dev/null and b/org.jabref.gui/src/main/resources/icons/jabref.icns differ diff --git a/org.jabref.gui/src/main/resources/icons/jabref.ico b/org.jabref.gui/src/main/resources/icons/jabref.ico new file mode 100644 index 00000000000..52d04280324 Binary files /dev/null and b/org.jabref.gui/src/main/resources/icons/jabref.ico differ diff --git a/src/main/resources/icons/jabref.svg b/org.jabref.gui/src/main/resources/icons/jabref.svg similarity index 100% rename from src/main/resources/icons/jabref.svg rename to org.jabref.gui/src/main/resources/icons/jabref.svg diff --git a/src/main/resources/images/Icons.properties b/org.jabref.gui/src/main/resources/images/Icons.properties similarity index 100% rename from src/main/resources/images/Icons.properties rename to org.jabref.gui/src/main/resources/images/Icons.properties diff --git a/src/main/resources/images/external/JabRef-icon-128.png b/org.jabref.gui/src/main/resources/images/external/JabRef-icon-128.png similarity index 100% rename from src/main/resources/images/external/JabRef-icon-128.png rename to org.jabref.gui/src/main/resources/images/external/JabRef-icon-128.png diff --git a/src/main/resources/images/external/JabRef-icon-16.png b/org.jabref.gui/src/main/resources/images/external/JabRef-icon-16.png similarity index 100% rename from src/main/resources/images/external/JabRef-icon-16.png rename to org.jabref.gui/src/main/resources/images/external/JabRef-icon-16.png diff --git a/src/main/resources/images/external/JabRef-icon-20.png b/org.jabref.gui/src/main/resources/images/external/JabRef-icon-20.png similarity index 100% rename from src/main/resources/images/external/JabRef-icon-20.png rename to org.jabref.gui/src/main/resources/images/external/JabRef-icon-20.png diff --git a/src/main/resources/images/external/JabRef-icon-32.png b/org.jabref.gui/src/main/resources/images/external/JabRef-icon-32.png similarity index 100% rename from src/main/resources/images/external/JabRef-icon-32.png rename to org.jabref.gui/src/main/resources/images/external/JabRef-icon-32.png diff --git a/src/main/resources/images/external/JabRef-icon-40.png b/org.jabref.gui/src/main/resources/images/external/JabRef-icon-40.png similarity index 100% rename from src/main/resources/images/external/JabRef-icon-40.png rename to org.jabref.gui/src/main/resources/images/external/JabRef-icon-40.png diff --git a/src/main/resources/images/external/JabRef-icon-48.png b/org.jabref.gui/src/main/resources/images/external/JabRef-icon-48.png similarity index 100% rename from src/main/resources/images/external/JabRef-icon-48.png rename to org.jabref.gui/src/main/resources/images/external/JabRef-icon-48.png diff --git a/src/main/resources/images/external/JabRef-icon-64.png b/org.jabref.gui/src/main/resources/images/external/JabRef-icon-64.png similarity index 100% rename from src/main/resources/images/external/JabRef-icon-64.png rename to org.jabref.gui/src/main/resources/images/external/JabRef-icon-64.png diff --git a/src/main/resources/images/external/arxiv_32.png b/org.jabref.gui/src/main/resources/images/external/arxiv_32.png similarity index 100% rename from src/main/resources/images/external/arxiv_32.png rename to org.jabref.gui/src/main/resources/images/external/arxiv_32.png diff --git a/src/main/resources/images/external/emacs.png b/org.jabref.gui/src/main/resources/images/external/emacs.png similarity index 100% rename from src/main/resources/images/external/emacs.png rename to org.jabref.gui/src/main/resources/images/external/emacs.png diff --git a/src/main/resources/images/external/lyx2.png b/org.jabref.gui/src/main/resources/images/external/lyx2.png similarity index 100% rename from src/main/resources/images/external/lyx2.png rename to org.jabref.gui/src/main/resources/images/external/lyx2.png diff --git a/src/main/resources/images/external/mdl-icon.png b/org.jabref.gui/src/main/resources/images/external/mdl-icon.png similarity index 100% rename from src/main/resources/images/external/mdl-icon.png rename to org.jabref.gui/src/main/resources/images/external/mdl-icon.png diff --git a/src/main/resources/images/external/mdlListIcon.png b/org.jabref.gui/src/main/resources/images/external/mdlListIcon.png similarity index 100% rename from src/main/resources/images/external/mdlListIcon.png rename to org.jabref.gui/src/main/resources/images/external/mdlListIcon.png diff --git a/src/main/resources/images/external/mdlloading.gif b/org.jabref.gui/src/main/resources/images/external/mdlloading.gif similarity index 100% rename from src/main/resources/images/external/mdlloading.gif rename to org.jabref.gui/src/main/resources/images/external/mdlloading.gif diff --git a/src/main/resources/images/external/openoffice.png b/org.jabref.gui/src/main/resources/images/external/openoffice.png similarity index 100% rename from src/main/resources/images/external/openoffice.png rename to org.jabref.gui/src/main/resources/images/external/openoffice.png diff --git a/src/main/resources/images/external/red.png b/org.jabref.gui/src/main/resources/images/external/red.png similarity index 100% rename from src/main/resources/images/external/red.png rename to org.jabref.gui/src/main/resources/images/external/red.png diff --git a/src/main/resources/images/external/texmaker.png b/org.jabref.gui/src/main/resources/images/external/texmaker.png similarity index 100% rename from src/main/resources/images/external/texmaker.png rename to org.jabref.gui/src/main/resources/images/external/texmaker.png diff --git a/src/main/resources/images/external/texstudio.png b/org.jabref.gui/src/main/resources/images/external/texstudio.png similarity index 100% rename from src/main/resources/images/external/texstudio.png rename to org.jabref.gui/src/main/resources/images/external/texstudio.png diff --git a/src/main/resources/images/external/vim.png b/org.jabref.gui/src/main/resources/images/external/vim.png similarity index 100% rename from src/main/resources/images/external/vim.png rename to org.jabref.gui/src/main/resources/images/external/vim.png diff --git a/src/main/resources/images/external/winedt.png b/org.jabref.gui/src/main/resources/images/external/winedt.png similarity index 100% rename from src/main/resources/images/external/winedt.png rename to org.jabref.gui/src/main/resources/images/external/winedt.png diff --git a/src/main/resources/images/external/wwwciteseer.png b/org.jabref.gui/src/main/resources/images/external/wwwciteseer.png similarity index 100% rename from src/main/resources/images/external/wwwciteseer.png rename to org.jabref.gui/src/main/resources/images/external/wwwciteseer.png diff --git a/src/main/resources/journals/IEEEJournalListCode.txt b/org.jabref.gui/src/main/resources/journals/IEEEJournalListCode.txt similarity index 100% rename from src/main/resources/journals/IEEEJournalListCode.txt rename to org.jabref.gui/src/main/resources/journals/IEEEJournalListCode.txt diff --git a/src/main/resources/journals/IEEEJournalListText.txt b/org.jabref.gui/src/main/resources/journals/IEEEJournalListText.txt similarity index 100% rename from src/main/resources/journals/IEEEJournalListText.txt rename to org.jabref.gui/src/main/resources/journals/IEEEJournalListText.txt diff --git a/src/main/resources/journals/journalList.txt b/org.jabref.gui/src/main/resources/journals/journalList.txt similarity index 100% rename from src/main/resources/journals/journalList.txt rename to org.jabref.gui/src/main/resources/journals/journalList.txt diff --git a/src/main/resources/l10n/JabRef_da.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_da.properties similarity index 100% rename from src/main/resources/l10n/JabRef_da.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_da.properties diff --git a/src/main/resources/l10n/JabRef_de.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_de.properties similarity index 100% rename from src/main/resources/l10n/JabRef_de.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_de.properties diff --git a/src/main/resources/l10n/JabRef_el.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_el.properties similarity index 100% rename from src/main/resources/l10n/JabRef_el.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_el.properties diff --git a/src/main/resources/l10n/JabRef_en.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_en.properties similarity index 100% rename from src/main/resources/l10n/JabRef_en.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_en.properties diff --git a/src/main/resources/l10n/JabRef_es.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_es.properties similarity index 100% rename from src/main/resources/l10n/JabRef_es.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_es.properties diff --git a/src/main/resources/l10n/JabRef_fa.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_fa.properties similarity index 100% rename from src/main/resources/l10n/JabRef_fa.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_fa.properties diff --git a/src/main/resources/l10n/JabRef_fr.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_fr.properties similarity index 100% rename from src/main/resources/l10n/JabRef_fr.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_fr.properties diff --git a/src/main/resources/l10n/JabRef_in.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_in.properties similarity index 100% rename from src/main/resources/l10n/JabRef_in.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_in.properties diff --git a/src/main/resources/l10n/JabRef_it.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_it.properties similarity index 100% rename from src/main/resources/l10n/JabRef_it.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_it.properties diff --git a/src/main/resources/l10n/JabRef_ja.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_ja.properties similarity index 100% rename from src/main/resources/l10n/JabRef_ja.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_ja.properties diff --git a/src/main/resources/l10n/JabRef_nl.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_nl.properties similarity index 100% rename from src/main/resources/l10n/JabRef_nl.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_nl.properties diff --git a/src/main/resources/l10n/JabRef_no.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_no.properties similarity index 100% rename from src/main/resources/l10n/JabRef_no.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_no.properties diff --git a/src/main/resources/l10n/JabRef_pt_BR.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_pt_BR.properties similarity index 100% rename from src/main/resources/l10n/JabRef_pt_BR.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_pt_BR.properties diff --git a/src/main/resources/l10n/JabRef_ru.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_ru.properties similarity index 100% rename from src/main/resources/l10n/JabRef_ru.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_ru.properties diff --git a/src/main/resources/l10n/JabRef_sv.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_sv.properties similarity index 100% rename from src/main/resources/l10n/JabRef_sv.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_sv.properties diff --git a/src/main/resources/l10n/JabRef_tr.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_tr.properties similarity index 100% rename from src/main/resources/l10n/JabRef_tr.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_tr.properties diff --git a/src/main/resources/l10n/JabRef_vi.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_vi.properties similarity index 100% rename from src/main/resources/l10n/JabRef_vi.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_vi.properties diff --git a/src/main/resources/l10n/JabRef_zh.properties b/org.jabref.gui/src/main/resources/l10n/JabRef_zh.properties similarity index 100% rename from src/main/resources/l10n/JabRef_zh.properties rename to org.jabref.gui/src/main/resources/l10n/JabRef_zh.properties diff --git a/src/main/resources/l10n/Menu_da.properties b/org.jabref.gui/src/main/resources/l10n/Menu_da.properties similarity index 100% rename from src/main/resources/l10n/Menu_da.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_da.properties diff --git a/src/main/resources/l10n/Menu_de.properties b/org.jabref.gui/src/main/resources/l10n/Menu_de.properties similarity index 100% rename from src/main/resources/l10n/Menu_de.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_de.properties diff --git a/src/main/resources/l10n/Menu_el.properties b/org.jabref.gui/src/main/resources/l10n/Menu_el.properties similarity index 100% rename from src/main/resources/l10n/Menu_el.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_el.properties diff --git a/src/main/resources/l10n/Menu_en.properties b/org.jabref.gui/src/main/resources/l10n/Menu_en.properties similarity index 100% rename from src/main/resources/l10n/Menu_en.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_en.properties diff --git a/src/main/resources/l10n/Menu_es.properties b/org.jabref.gui/src/main/resources/l10n/Menu_es.properties similarity index 100% rename from src/main/resources/l10n/Menu_es.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_es.properties diff --git a/src/main/resources/l10n/Menu_fa.properties b/org.jabref.gui/src/main/resources/l10n/Menu_fa.properties similarity index 100% rename from src/main/resources/l10n/Menu_fa.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_fa.properties diff --git a/src/main/resources/l10n/Menu_fr.properties b/org.jabref.gui/src/main/resources/l10n/Menu_fr.properties similarity index 100% rename from src/main/resources/l10n/Menu_fr.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_fr.properties diff --git a/src/main/resources/l10n/Menu_in.properties b/org.jabref.gui/src/main/resources/l10n/Menu_in.properties similarity index 100% rename from src/main/resources/l10n/Menu_in.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_in.properties diff --git a/src/main/resources/l10n/Menu_it.properties b/org.jabref.gui/src/main/resources/l10n/Menu_it.properties similarity index 100% rename from src/main/resources/l10n/Menu_it.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_it.properties diff --git a/src/main/resources/l10n/Menu_ja.properties b/org.jabref.gui/src/main/resources/l10n/Menu_ja.properties similarity index 100% rename from src/main/resources/l10n/Menu_ja.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_ja.properties diff --git a/src/main/resources/l10n/Menu_nl.properties b/org.jabref.gui/src/main/resources/l10n/Menu_nl.properties similarity index 100% rename from src/main/resources/l10n/Menu_nl.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_nl.properties diff --git a/src/main/resources/l10n/Menu_no.properties b/org.jabref.gui/src/main/resources/l10n/Menu_no.properties similarity index 100% rename from src/main/resources/l10n/Menu_no.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_no.properties diff --git a/src/main/resources/l10n/Menu_pt_BR.properties b/org.jabref.gui/src/main/resources/l10n/Menu_pt_BR.properties similarity index 100% rename from src/main/resources/l10n/Menu_pt_BR.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_pt_BR.properties diff --git a/src/main/resources/l10n/Menu_ru.properties b/org.jabref.gui/src/main/resources/l10n/Menu_ru.properties similarity index 100% rename from src/main/resources/l10n/Menu_ru.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_ru.properties diff --git a/src/main/resources/l10n/Menu_sv.properties b/org.jabref.gui/src/main/resources/l10n/Menu_sv.properties similarity index 100% rename from src/main/resources/l10n/Menu_sv.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_sv.properties diff --git a/src/main/resources/l10n/Menu_tr.properties b/org.jabref.gui/src/main/resources/l10n/Menu_tr.properties similarity index 100% rename from src/main/resources/l10n/Menu_tr.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_tr.properties diff --git a/src/main/resources/l10n/Menu_vi.properties b/org.jabref.gui/src/main/resources/l10n/Menu_vi.properties similarity index 100% rename from src/main/resources/l10n/Menu_vi.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_vi.properties diff --git a/src/main/resources/l10n/Menu_zh.properties b/org.jabref.gui/src/main/resources/l10n/Menu_zh.properties similarity index 100% rename from src/main/resources/l10n/Menu_zh.properties rename to org.jabref.gui/src/main/resources/l10n/Menu_zh.properties diff --git a/src/main/resources/log4j2.xml b/org.jabref.gui/src/main/resources/log4j2.xml similarity index 100% rename from src/main/resources/log4j2.xml rename to org.jabref.gui/src/main/resources/log4j2.xml diff --git a/src/main/resources/org/jabref/gui/copyfiles/CopyFilesDialog.fxml b/org.jabref.gui/src/main/resources/org/jabref/gui/copyfiles/CopyFilesDialog.fxml similarity index 100% rename from src/main/resources/org/jabref/gui/copyfiles/CopyFilesDialog.fxml rename to org.jabref.gui/src/main/resources/org/jabref/gui/copyfiles/CopyFilesDialog.fxml diff --git a/src/main/resources/org/jabref/gui/help/AboutDialog.css b/org.jabref.gui/src/main/resources/org/jabref/gui/help/AboutDialog.css similarity index 100% rename from src/main/resources/org/jabref/gui/help/AboutDialog.css rename to org.jabref.gui/src/main/resources/org/jabref/gui/help/AboutDialog.css diff --git a/src/main/resources/org/jabref/gui/help/AboutDialog.fxml b/org.jabref.gui/src/main/resources/org/jabref/gui/help/AboutDialog.fxml similarity index 100% rename from src/main/resources/org/jabref/gui/help/AboutDialog.fxml rename to org.jabref.gui/src/main/resources/org/jabref/gui/help/AboutDialog.fxml diff --git a/src/main/resources/org/jabref/gui/journals/ManageJournalAbbreviations.css b/org.jabref.gui/src/main/resources/org/jabref/gui/journals/ManageJournalAbbreviations.css similarity index 100% rename from src/main/resources/org/jabref/gui/journals/ManageJournalAbbreviations.css rename to org.jabref.gui/src/main/resources/org/jabref/gui/journals/ManageJournalAbbreviations.css diff --git a/src/main/resources/org/jabref/gui/journals/ManageJournalAbbreviations.fxml b/org.jabref.gui/src/main/resources/org/jabref/gui/journals/ManageJournalAbbreviations.fxml similarity index 100% rename from src/main/resources/org/jabref/gui/journals/ManageJournalAbbreviations.fxml rename to org.jabref.gui/src/main/resources/org/jabref/gui/journals/ManageJournalAbbreviations.fxml diff --git a/src/main/resources/org/jabref/gui/keyboard/KeyBindingsDialog.css b/org.jabref.gui/src/main/resources/org/jabref/gui/keyboard/KeyBindingsDialog.css similarity index 100% rename from src/main/resources/org/jabref/gui/keyboard/KeyBindingsDialog.css rename to org.jabref.gui/src/main/resources/org/jabref/gui/keyboard/KeyBindingsDialog.css diff --git a/src/main/resources/org/jabref/gui/keyboard/KeyBindingsDialog.fxml b/org.jabref.gui/src/main/resources/org/jabref/gui/keyboard/KeyBindingsDialog.fxml similarity index 100% rename from src/main/resources/org/jabref/gui/keyboard/KeyBindingsDialog.fxml rename to org.jabref.gui/src/main/resources/org/jabref/gui/keyboard/KeyBindingsDialog.fxml diff --git a/src/main/resources/protectedterms/countries_territories.terms b/org.jabref.gui/src/main/resources/protectedterms/countries_territories.terms similarity index 100% rename from src/main/resources/protectedterms/countries_territories.terms rename to org.jabref.gui/src/main/resources/protectedterms/countries_territories.terms diff --git a/src/main/resources/protectedterms/electrical_engineering.terms b/org.jabref.gui/src/main/resources/protectedterms/electrical_engineering.terms similarity index 100% rename from src/main/resources/protectedterms/electrical_engineering.terms rename to org.jabref.gui/src/main/resources/protectedterms/electrical_engineering.terms diff --git a/src/main/resources/protectedterms/months_weekdays.terms b/org.jabref.gui/src/main/resources/protectedterms/months_weekdays.terms similarity index 100% rename from src/main/resources/protectedterms/months_weekdays.terms rename to org.jabref.gui/src/main/resources/protectedterms/months_weekdays.terms diff --git a/src/main/resources/resource/layout/bibordf.article.layout b/org.jabref.gui/src/main/resources/resource/layout/bibordf.article.layout similarity index 100% rename from src/main/resources/resource/layout/bibordf.article.layout rename to org.jabref.gui/src/main/resources/resource/layout/bibordf.article.layout diff --git a/src/main/resources/resource/layout/bibordf.begin.layout b/org.jabref.gui/src/main/resources/resource/layout/bibordf.begin.layout similarity index 100% rename from src/main/resources/resource/layout/bibordf.begin.layout rename to org.jabref.gui/src/main/resources/resource/layout/bibordf.begin.layout diff --git a/src/main/resources/resource/layout/bibordf.end.layout b/org.jabref.gui/src/main/resources/resource/layout/bibordf.end.layout similarity index 100% rename from src/main/resources/resource/layout/bibordf.end.layout rename to org.jabref.gui/src/main/resources/resource/layout/bibordf.end.layout diff --git a/src/main/resources/resource/layout/bibordf.layout b/org.jabref.gui/src/main/resources/resource/layout/bibordf.layout similarity index 100% rename from src/main/resources/resource/layout/bibordf.layout rename to org.jabref.gui/src/main/resources/resource/layout/bibordf.layout diff --git a/src/main/resources/resource/layout/din1505/README.txt b/org.jabref.gui/src/main/resources/resource/layout/din1505/README.txt similarity index 100% rename from src/main/resources/resource/layout/din1505/README.txt rename to org.jabref.gui/src/main/resources/resource/layout/din1505/README.txt diff --git a/src/main/resources/resource/layout/din1505/din1505winword.article.layout b/org.jabref.gui/src/main/resources/resource/layout/din1505/din1505winword.article.layout similarity index 100% rename from src/main/resources/resource/layout/din1505/din1505winword.article.layout rename to org.jabref.gui/src/main/resources/resource/layout/din1505/din1505winword.article.layout diff --git a/src/main/resources/resource/layout/din1505/din1505winword.begin.layout b/org.jabref.gui/src/main/resources/resource/layout/din1505/din1505winword.begin.layout similarity index 100% rename from src/main/resources/resource/layout/din1505/din1505winword.begin.layout rename to org.jabref.gui/src/main/resources/resource/layout/din1505/din1505winword.begin.layout diff --git a/src/main/resources/resource/layout/din1505/din1505winword.conference.layout b/org.jabref.gui/src/main/resources/resource/layout/din1505/din1505winword.conference.layout similarity index 100% rename from src/main/resources/resource/layout/din1505/din1505winword.conference.layout rename to org.jabref.gui/src/main/resources/resource/layout/din1505/din1505winword.conference.layout diff --git a/src/main/resources/resource/layout/din1505/din1505winword.end.layout b/org.jabref.gui/src/main/resources/resource/layout/din1505/din1505winword.end.layout similarity index 100% rename from src/main/resources/resource/layout/din1505/din1505winword.end.layout rename to org.jabref.gui/src/main/resources/resource/layout/din1505/din1505winword.end.layout diff --git a/src/main/resources/resource/layout/din1505/din1505winword.inproceedings.layout b/org.jabref.gui/src/main/resources/resource/layout/din1505/din1505winword.inproceedings.layout similarity index 100% rename from src/main/resources/resource/layout/din1505/din1505winword.inproceedings.layout rename to org.jabref.gui/src/main/resources/resource/layout/din1505/din1505winword.inproceedings.layout diff --git a/src/main/resources/resource/layout/din1505/din1505winword.layout b/org.jabref.gui/src/main/resources/resource/layout/din1505/din1505winword.layout similarity index 100% rename from src/main/resources/resource/layout/din1505/din1505winword.layout rename to org.jabref.gui/src/main/resources/resource/layout/din1505/din1505winword.layout diff --git a/src/main/resources/resource/layout/docbook.begin.layout b/org.jabref.gui/src/main/resources/resource/layout/docbook.begin.layout similarity index 100% rename from src/main/resources/resource/layout/docbook.begin.layout rename to org.jabref.gui/src/main/resources/resource/layout/docbook.begin.layout diff --git a/src/main/resources/resource/layout/docbook.end.layout b/org.jabref.gui/src/main/resources/resource/layout/docbook.end.layout similarity index 100% rename from src/main/resources/resource/layout/docbook.end.layout rename to org.jabref.gui/src/main/resources/resource/layout/docbook.end.layout diff --git a/src/main/resources/resource/layout/docbook.layout b/org.jabref.gui/src/main/resources/resource/layout/docbook.layout similarity index 100% rename from src/main/resources/resource/layout/docbook.layout rename to org.jabref.gui/src/main/resources/resource/layout/docbook.layout diff --git a/src/main/resources/resource/layout/docbook.mastersthesis.layout b/org.jabref.gui/src/main/resources/resource/layout/docbook.mastersthesis.layout similarity index 100% rename from src/main/resources/resource/layout/docbook.mastersthesis.layout rename to org.jabref.gui/src/main/resources/resource/layout/docbook.mastersthesis.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.article.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.article.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.article.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.article.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.book.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.book.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.book.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.book.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.booklet.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.booklet.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.booklet.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.booklet.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.inbook.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.inbook.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.inbook.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.inbook.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.incollection.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.incollection.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.incollection.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.incollection.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.inproceedings.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.inproceedings.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.inproceedings.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.inproceedings.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.manual.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.manual.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.manual.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.manual.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.mastersthesis.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.mastersthesis.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.mastersthesis.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.mastersthesis.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.misc.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.misc.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.misc.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.misc.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.other.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.other.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.other.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.other.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.phdthesis.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.phdthesis.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.phdthesis.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.phdthesis.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.proceedings.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.proceedings.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.proceedings.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.proceedings.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.techreport.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.techreport.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.techreport.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.techreport.layout diff --git a/src/main/resources/resource/layout/endnote/EndNote.unpublished.layout b/org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.unpublished.layout similarity index 100% rename from src/main/resources/resource/layout/endnote/EndNote.unpublished.layout rename to org.jabref.gui/src/main/resources/resource/layout/endnote/EndNote.unpublished.layout diff --git a/src/main/resources/resource/layout/endnote/Readme.txt b/org.jabref.gui/src/main/resources/resource/layout/endnote/Readme.txt similarity index 100% rename from src/main/resources/resource/layout/endnote/Readme.txt rename to org.jabref.gui/src/main/resources/resource/layout/endnote/Readme.txt diff --git a/src/main/resources/resource/layout/harvard/harvard.article.layout b/org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.article.layout similarity index 100% rename from src/main/resources/resource/layout/harvard/harvard.article.layout rename to org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.article.layout diff --git a/src/main/resources/resource/layout/harvard/harvard.begin.layout b/org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.begin.layout similarity index 100% rename from src/main/resources/resource/layout/harvard/harvard.begin.layout rename to org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.begin.layout diff --git a/src/main/resources/resource/layout/harvard/harvard.book.layout b/org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.book.layout similarity index 100% rename from src/main/resources/resource/layout/harvard/harvard.book.layout rename to org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.book.layout diff --git a/src/main/resources/resource/layout/harvard/harvard.end.layout b/org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.end.layout similarity index 100% rename from src/main/resources/resource/layout/harvard/harvard.end.layout rename to org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.end.layout diff --git a/src/main/resources/resource/layout/harvard/harvard.inbook.layout b/org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.inbook.layout similarity index 100% rename from src/main/resources/resource/layout/harvard/harvard.inbook.layout rename to org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.inbook.layout diff --git a/src/main/resources/resource/layout/harvard/harvard.incollection.layout b/org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.incollection.layout similarity index 100% rename from src/main/resources/resource/layout/harvard/harvard.incollection.layout rename to org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.incollection.layout diff --git a/src/main/resources/resource/layout/harvard/harvard.inproceedings.layout b/org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.inproceedings.layout similarity index 100% rename from src/main/resources/resource/layout/harvard/harvard.inproceedings.layout rename to org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.inproceedings.layout diff --git a/src/main/resources/resource/layout/harvard/harvard.layout b/org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.layout similarity index 100% rename from src/main/resources/resource/layout/harvard/harvard.layout rename to org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.layout diff --git a/src/main/resources/resource/layout/harvard/harvard.mastersthesis.layout b/org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.mastersthesis.layout similarity index 100% rename from src/main/resources/resource/layout/harvard/harvard.mastersthesis.layout rename to org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.mastersthesis.layout diff --git a/src/main/resources/resource/layout/harvard/harvard.phdthesis.layout b/org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.phdthesis.layout similarity index 100% rename from src/main/resources/resource/layout/harvard/harvard.phdthesis.layout rename to org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.phdthesis.layout diff --git a/src/main/resources/resource/layout/harvard/harvard.proceedings.layout b/org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.proceedings.layout similarity index 100% rename from src/main/resources/resource/layout/harvard/harvard.proceedings.layout rename to org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.proceedings.layout diff --git a/src/main/resources/resource/layout/harvard/harvard.readme b/org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.readme similarity index 100% rename from src/main/resources/resource/layout/harvard/harvard.readme rename to org.jabref.gui/src/main/resources/resource/layout/harvard/harvard.readme diff --git a/src/main/resources/resource/layout/html.begin.layout b/org.jabref.gui/src/main/resources/resource/layout/html.begin.layout similarity index 100% rename from src/main/resources/resource/layout/html.begin.layout rename to org.jabref.gui/src/main/resources/resource/layout/html.begin.layout diff --git a/src/main/resources/resource/layout/html.book.layout b/org.jabref.gui/src/main/resources/resource/layout/html.book.layout similarity index 100% rename from src/main/resources/resource/layout/html.book.layout rename to org.jabref.gui/src/main/resources/resource/layout/html.book.layout diff --git a/src/main/resources/resource/layout/html.end.layout b/org.jabref.gui/src/main/resources/resource/layout/html.end.layout similarity index 100% rename from src/main/resources/resource/layout/html.end.layout rename to org.jabref.gui/src/main/resources/resource/layout/html.end.layout diff --git a/src/main/resources/resource/layout/html.inbook.layout b/org.jabref.gui/src/main/resources/resource/layout/html.inbook.layout similarity index 100% rename from src/main/resources/resource/layout/html.inbook.layout rename to org.jabref.gui/src/main/resources/resource/layout/html.inbook.layout diff --git a/src/main/resources/resource/layout/html.inproceedings.layout b/org.jabref.gui/src/main/resources/resource/layout/html.inproceedings.layout similarity index 100% rename from src/main/resources/resource/layout/html.inproceedings.layout rename to org.jabref.gui/src/main/resources/resource/layout/html.inproceedings.layout diff --git a/src/main/resources/resource/layout/html.layout b/org.jabref.gui/src/main/resources/resource/layout/html.layout similarity index 100% rename from src/main/resources/resource/layout/html.layout rename to org.jabref.gui/src/main/resources/resource/layout/html.layout diff --git a/src/main/resources/resource/layout/html.mastersthesis.layout b/org.jabref.gui/src/main/resources/resource/layout/html.mastersthesis.layout similarity index 100% rename from src/main/resources/resource/layout/html.mastersthesis.layout rename to org.jabref.gui/src/main/resources/resource/layout/html.mastersthesis.layout diff --git a/src/main/resources/resource/layout/html.phdthesis.layout b/org.jabref.gui/src/main/resources/resource/layout/html.phdthesis.layout similarity index 100% rename from src/main/resources/resource/layout/html.phdthesis.layout rename to org.jabref.gui/src/main/resources/resource/layout/html.phdthesis.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.article.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.article.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.article.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.article.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.begin.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.begin.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.begin.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.begin.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.book.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.book.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.book.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.book.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocs.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocs.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.edocs.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocs.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocsarticle.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocsarticle.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.edocsarticle.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocsarticle.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocscontribution.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocscontribution.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.edocscontribution.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocscontribution.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocsnews.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocsnews.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.edocsnews.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocsnews.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocsperiodical.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocsperiodical.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.edocsperiodical.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.edocsperiodical.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.email.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.email.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.email.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.email.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.emaillist.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.emaillist.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.emaillist.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.emaillist.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.end.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.end.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.end.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.end.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.graphics.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.graphics.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.graphics.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.graphics.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.inbook.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.inbook.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.inbook.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.inbook.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.inedocs.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.inedocs.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.inedocs.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.inedocs.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.inproceedings.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.inproceedings.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.inproceedings.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.inproceedings.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.legislation.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.legislation.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.legislation.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.legislation.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.mastersthesis.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.mastersthesis.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.mastersthesis.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.mastersthesis.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.patent.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.patent.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.patent.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.patent.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.periodical.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.periodical.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.periodical.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.periodical.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.proceeding.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.proceeding.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.proceeding.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.proceeding.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.radiotv.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.radiotv.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.radiotv.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.radiotv.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.recording.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.recording.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.recording.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.recording.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.standard.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.standard.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.standard.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.standard.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.techreport.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.techreport.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.techreport.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.techreport.layout diff --git a/src/main/resources/resource/layout/iso690rtf/iso690RTF.unpublished.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.unpublished.layout similarity index 100% rename from src/main/resources/resource/layout/iso690rtf/iso690RTF.unpublished.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690rtf/iso690RTF.unpublished.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.article.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.article.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.article.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.article.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.book.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.book.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.book.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.book.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.edocs.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.edocs.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.edocs.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.edocs.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.edocsarticle.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.edocsarticle.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.edocsarticle.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.edocsarticle.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.edocscontribution.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.edocscontribution.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.edocscontribution.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.edocscontribution.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.edocsnews.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.edocsnews.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.edocsnews.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.edocsnews.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.edocsperiodical.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.edocsperiodical.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.edocsperiodical.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.edocsperiodical.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.email.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.email.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.email.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.email.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.emaillist.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.emaillist.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.emaillist.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.emaillist.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.graphics.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.graphics.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.graphics.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.graphics.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.inbook.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.inbook.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.inbook.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.inbook.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.inedocs.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.inedocs.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.inedocs.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.inedocs.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.inproceedings.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.inproceedings.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.inproceedings.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.inproceedings.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.legislation.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.legislation.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.legislation.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.legislation.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.mastersthesis.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.mastersthesis.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.mastersthesis.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.mastersthesis.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.patent.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.patent.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.patent.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.patent.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.periodical.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.periodical.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.periodical.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.periodical.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.proceeding.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.proceeding.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.proceeding.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.proceeding.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.radiotv.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.radiotv.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.radiotv.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.radiotv.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.recording.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.recording.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.recording.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.recording.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.standard.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.standard.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.standard.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.standard.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.techreport.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.techreport.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.techreport.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.techreport.layout diff --git a/src/main/resources/resource/layout/iso690txt/iso690.unpublished.layout b/org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.unpublished.layout similarity index 100% rename from src/main/resources/resource/layout/iso690txt/iso690.unpublished.layout rename to org.jabref.gui/src/main/resources/resource/layout/iso690txt/iso690.unpublished.layout diff --git a/src/main/resources/resource/layout/listrefs/listrefs.begin.layout b/org.jabref.gui/src/main/resources/resource/layout/listrefs/listrefs.begin.layout similarity index 100% rename from src/main/resources/resource/layout/listrefs/listrefs.begin.layout rename to org.jabref.gui/src/main/resources/resource/layout/listrefs/listrefs.begin.layout diff --git a/src/main/resources/resource/layout/listrefs/listrefs.end.layout b/org.jabref.gui/src/main/resources/resource/layout/listrefs/listrefs.end.layout similarity index 100% rename from src/main/resources/resource/layout/listrefs/listrefs.end.layout rename to org.jabref.gui/src/main/resources/resource/layout/listrefs/listrefs.end.layout diff --git a/src/main/resources/resource/layout/listrefs/listrefs.layout b/org.jabref.gui/src/main/resources/resource/layout/listrefs/listrefs.layout similarity index 100% rename from src/main/resources/resource/layout/listrefs/listrefs.layout rename to org.jabref.gui/src/main/resources/resource/layout/listrefs/listrefs.layout diff --git a/src/main/resources/resource/layout/listrefs/listrefs.misc.layout b/org.jabref.gui/src/main/resources/resource/layout/listrefs/listrefs.misc.layout similarity index 100% rename from src/main/resources/resource/layout/listrefs/listrefs.misc.layout rename to org.jabref.gui/src/main/resources/resource/layout/listrefs/listrefs.misc.layout diff --git a/src/main/resources/resource/layout/misq/misq.article.layout b/org.jabref.gui/src/main/resources/resource/layout/misq/misq.article.layout similarity index 100% rename from src/main/resources/resource/layout/misq/misq.article.layout rename to org.jabref.gui/src/main/resources/resource/layout/misq/misq.article.layout diff --git a/src/main/resources/resource/layout/misq/misq.begin.layout b/org.jabref.gui/src/main/resources/resource/layout/misq/misq.begin.layout similarity index 100% rename from src/main/resources/resource/layout/misq/misq.begin.layout rename to org.jabref.gui/src/main/resources/resource/layout/misq/misq.begin.layout diff --git a/src/main/resources/resource/layout/misq/misq.book.layout b/org.jabref.gui/src/main/resources/resource/layout/misq/misq.book.layout similarity index 100% rename from src/main/resources/resource/layout/misq/misq.book.layout rename to org.jabref.gui/src/main/resources/resource/layout/misq/misq.book.layout diff --git a/src/main/resources/resource/layout/misq/misq.end.layout b/org.jabref.gui/src/main/resources/resource/layout/misq/misq.end.layout similarity index 100% rename from src/main/resources/resource/layout/misq/misq.end.layout rename to org.jabref.gui/src/main/resources/resource/layout/misq/misq.end.layout diff --git a/src/main/resources/resource/layout/misq/misq.layout b/org.jabref.gui/src/main/resources/resource/layout/misq/misq.layout similarity index 100% rename from src/main/resources/resource/layout/misq/misq.layout rename to org.jabref.gui/src/main/resources/resource/layout/misq/misq.layout diff --git a/src/main/resources/resource/layout/misq/readme.txt b/org.jabref.gui/src/main/resources/resource/layout/misq/readme.txt similarity index 100% rename from src/main/resources/resource/layout/misq/readme.txt rename to org.jabref.gui/src/main/resources/resource/layout/misq/readme.txt diff --git a/src/main/resources/resource/layout/openoffice/README b/org.jabref.gui/src/main/resources/resource/layout/openoffice/README similarity index 100% rename from src/main/resources/resource/layout/openoffice/README rename to org.jabref.gui/src/main/resources/resource/layout/openoffice/README diff --git a/src/main/resources/resource/layout/openoffice/openoffice-csv.begin.layout b/org.jabref.gui/src/main/resources/resource/layout/openoffice/openoffice-csv.begin.layout similarity index 100% rename from src/main/resources/resource/layout/openoffice/openoffice-csv.begin.layout rename to org.jabref.gui/src/main/resources/resource/layout/openoffice/openoffice-csv.begin.layout diff --git a/src/main/resources/resource/layout/openoffice/openoffice-csv.layout b/org.jabref.gui/src/main/resources/resource/layout/openoffice/openoffice-csv.layout similarity index 100% rename from src/main/resources/resource/layout/openoffice/openoffice-csv.layout rename to org.jabref.gui/src/main/resources/resource/layout/openoffice/openoffice-csv.layout diff --git a/src/main/resources/resource/layout/ris/ris.article.layout b/org.jabref.gui/src/main/resources/resource/layout/ris/ris.article.layout similarity index 100% rename from src/main/resources/resource/layout/ris/ris.article.layout rename to org.jabref.gui/src/main/resources/resource/layout/ris/ris.article.layout diff --git a/src/main/resources/resource/layout/ris/ris.book.layout b/org.jabref.gui/src/main/resources/resource/layout/ris/ris.book.layout similarity index 100% rename from src/main/resources/resource/layout/ris/ris.book.layout rename to org.jabref.gui/src/main/resources/resource/layout/ris/ris.book.layout diff --git a/src/main/resources/resource/layout/ris/ris.conference.layout b/org.jabref.gui/src/main/resources/resource/layout/ris/ris.conference.layout similarity index 100% rename from src/main/resources/resource/layout/ris/ris.conference.layout rename to org.jabref.gui/src/main/resources/resource/layout/ris/ris.conference.layout diff --git a/src/main/resources/resource/layout/ris/ris.incollection.layout b/org.jabref.gui/src/main/resources/resource/layout/ris/ris.incollection.layout similarity index 100% rename from src/main/resources/resource/layout/ris/ris.incollection.layout rename to org.jabref.gui/src/main/resources/resource/layout/ris/ris.incollection.layout diff --git a/src/main/resources/resource/layout/ris/ris.inproceedings.layout b/org.jabref.gui/src/main/resources/resource/layout/ris/ris.inproceedings.layout similarity index 100% rename from src/main/resources/resource/layout/ris/ris.inproceedings.layout rename to org.jabref.gui/src/main/resources/resource/layout/ris/ris.inproceedings.layout diff --git a/src/main/resources/resource/layout/ris/ris.layout b/org.jabref.gui/src/main/resources/resource/layout/ris/ris.layout similarity index 100% rename from src/main/resources/resource/layout/ris/ris.layout rename to org.jabref.gui/src/main/resources/resource/layout/ris/ris.layout diff --git a/src/main/resources/resource/layout/ris/ris.mastersthesis.layout b/org.jabref.gui/src/main/resources/resource/layout/ris/ris.mastersthesis.layout similarity index 100% rename from src/main/resources/resource/layout/ris/ris.mastersthesis.layout rename to org.jabref.gui/src/main/resources/resource/layout/ris/ris.mastersthesis.layout diff --git a/src/main/resources/resource/layout/ris/ris.patent.layout b/org.jabref.gui/src/main/resources/resource/layout/ris/ris.patent.layout similarity index 100% rename from src/main/resources/resource/layout/ris/ris.patent.layout rename to org.jabref.gui/src/main/resources/resource/layout/ris/ris.patent.layout diff --git a/src/main/resources/resource/layout/ris/ris.phdthesis.layout b/org.jabref.gui/src/main/resources/resource/layout/ris/ris.phdthesis.layout similarity index 100% rename from src/main/resources/resource/layout/ris/ris.phdthesis.layout rename to org.jabref.gui/src/main/resources/resource/layout/ris/ris.phdthesis.layout diff --git a/src/main/resources/resource/layout/ris/ris.techreport.layout b/org.jabref.gui/src/main/resources/resource/layout/ris/ris.techreport.layout similarity index 100% rename from src/main/resources/resource/layout/ris/ris.techreport.layout rename to org.jabref.gui/src/main/resources/resource/layout/ris/ris.techreport.layout diff --git a/src/main/resources/resource/layout/ris/ris.unpublished.layout b/org.jabref.gui/src/main/resources/resource/layout/ris/ris.unpublished.layout similarity index 100% rename from src/main/resources/resource/layout/ris/ris.unpublished.layout rename to org.jabref.gui/src/main/resources/resource/layout/ris/ris.unpublished.layout diff --git a/src/main/resources/resource/layout/ris/ris.www.layout b/org.jabref.gui/src/main/resources/resource/layout/ris/ris.www.layout similarity index 100% rename from src/main/resources/resource/layout/ris/ris.www.layout rename to org.jabref.gui/src/main/resources/resource/layout/ris/ris.www.layout diff --git a/src/main/resources/resource/layout/simplehtml.begin.layout b/org.jabref.gui/src/main/resources/resource/layout/simplehtml.begin.layout similarity index 100% rename from src/main/resources/resource/layout/simplehtml.begin.layout rename to org.jabref.gui/src/main/resources/resource/layout/simplehtml.begin.layout diff --git a/src/main/resources/resource/layout/simplehtml.end.layout b/org.jabref.gui/src/main/resources/resource/layout/simplehtml.end.layout similarity index 100% rename from src/main/resources/resource/layout/simplehtml.end.layout rename to org.jabref.gui/src/main/resources/resource/layout/simplehtml.end.layout diff --git a/src/main/resources/resource/layout/simplehtml.layout b/org.jabref.gui/src/main/resources/resource/layout/simplehtml.layout similarity index 100% rename from src/main/resources/resource/layout/simplehtml.layout rename to org.jabref.gui/src/main/resources/resource/layout/simplehtml.layout diff --git a/src/main/resources/resource/layout/tablerefs/tablerefs.begin.layout b/org.jabref.gui/src/main/resources/resource/layout/tablerefs/tablerefs.begin.layout similarity index 100% rename from src/main/resources/resource/layout/tablerefs/tablerefs.begin.layout rename to org.jabref.gui/src/main/resources/resource/layout/tablerefs/tablerefs.begin.layout diff --git a/src/main/resources/resource/layout/tablerefs/tablerefs.end.layout b/org.jabref.gui/src/main/resources/resource/layout/tablerefs/tablerefs.end.layout similarity index 100% rename from src/main/resources/resource/layout/tablerefs/tablerefs.end.layout rename to org.jabref.gui/src/main/resources/resource/layout/tablerefs/tablerefs.end.layout diff --git a/src/main/resources/resource/layout/tablerefs/tablerefs.layout b/org.jabref.gui/src/main/resources/resource/layout/tablerefs/tablerefs.layout similarity index 100% rename from src/main/resources/resource/layout/tablerefs/tablerefs.layout rename to org.jabref.gui/src/main/resources/resource/layout/tablerefs/tablerefs.layout diff --git a/src/main/resources/resource/layout/tablerefsabsbib/tablerefsabsbib.begin.layout b/org.jabref.gui/src/main/resources/resource/layout/tablerefsabsbib/tablerefsabsbib.begin.layout similarity index 100% rename from src/main/resources/resource/layout/tablerefsabsbib/tablerefsabsbib.begin.layout rename to org.jabref.gui/src/main/resources/resource/layout/tablerefsabsbib/tablerefsabsbib.begin.layout diff --git a/src/main/resources/resource/layout/tablerefsabsbib/tablerefsabsbib.end.layout b/org.jabref.gui/src/main/resources/resource/layout/tablerefsabsbib/tablerefsabsbib.end.layout similarity index 100% rename from src/main/resources/resource/layout/tablerefsabsbib/tablerefsabsbib.end.layout rename to org.jabref.gui/src/main/resources/resource/layout/tablerefsabsbib/tablerefsabsbib.end.layout diff --git a/src/main/resources/resource/layout/tablerefsabsbib/tablerefsabsbib.layout b/org.jabref.gui/src/main/resources/resource/layout/tablerefsabsbib/tablerefsabsbib.layout similarity index 100% rename from src/main/resources/resource/layout/tablerefsabsbib/tablerefsabsbib.layout rename to org.jabref.gui/src/main/resources/resource/layout/tablerefsabsbib/tablerefsabsbib.layout diff --git a/src/main/resources/resource/layout/text.layout b/org.jabref.gui/src/main/resources/resource/layout/text.layout similarity index 100% rename from src/main/resources/resource/layout/text.layout rename to org.jabref.gui/src/main/resources/resource/layout/text.layout diff --git a/src/main/resources/resource/ods/manifest.xml b/org.jabref.gui/src/main/resources/resource/ods/manifest.xml similarity index 100% rename from src/main/resources/resource/ods/manifest.xml rename to org.jabref.gui/src/main/resources/resource/ods/manifest.xml diff --git a/src/main/resources/resource/ods/meta.xml b/org.jabref.gui/src/main/resources/resource/ods/meta.xml similarity index 100% rename from src/main/resources/resource/ods/meta.xml rename to org.jabref.gui/src/main/resources/resource/ods/meta.xml diff --git a/src/main/resources/resource/ods/settings.xml b/org.jabref.gui/src/main/resources/resource/ods/settings.xml similarity index 100% rename from src/main/resources/resource/ods/settings.xml rename to org.jabref.gui/src/main/resources/resource/ods/settings.xml diff --git a/src/main/resources/resource/openoffice/default_authoryear.jstyle b/org.jabref.gui/src/main/resources/resource/openoffice/default_authoryear.jstyle similarity index 100% rename from src/main/resources/resource/openoffice/default_authoryear.jstyle rename to org.jabref.gui/src/main/resources/resource/openoffice/default_authoryear.jstyle diff --git a/src/main/resources/resource/openoffice/default_numerical.jstyle b/org.jabref.gui/src/main/resources/resource/openoffice/default_numerical.jstyle similarity index 100% rename from src/main/resources/resource/openoffice/default_numerical.jstyle rename to org.jabref.gui/src/main/resources/resource/openoffice/default_numerical.jstyle diff --git a/src/main/resources/resource/openoffice/manifest.xml b/org.jabref.gui/src/main/resources/resource/openoffice/manifest.xml similarity index 100% rename from src/main/resources/resource/openoffice/manifest.xml rename to org.jabref.gui/src/main/resources/resource/openoffice/manifest.xml diff --git a/src/main/resources/resource/openoffice/meta.xml b/org.jabref.gui/src/main/resources/resource/openoffice/meta.xml similarity index 100% rename from src/main/resources/resource/openoffice/meta.xml rename to org.jabref.gui/src/main/resources/resource/openoffice/meta.xml diff --git a/src/main/resources/resource/openoffice/mimetype b/org.jabref.gui/src/main/resources/resource/openoffice/mimetype similarity index 100% rename from src/main/resources/resource/openoffice/mimetype rename to org.jabref.gui/src/main/resources/resource/openoffice/mimetype diff --git a/src/test/java/org/jabref/CatchExceptionsFromThread.java b/org.jabref.gui/src/test/java/org/jabref/CatchExceptionsFromThread.java similarity index 93% rename from src/test/java/org/jabref/CatchExceptionsFromThread.java rename to org.jabref.gui/src/test/java/org/jabref/CatchExceptionsFromThread.java index 16cb2c6845c..ddac8697f96 100644 --- a/src/test/java/org/jabref/CatchExceptionsFromThread.java +++ b/org.jabref.gui/src/test/java/org/jabref/CatchExceptionsFromThread.java @@ -1,5 +1,7 @@ package org.jabref; +import org.jabref.logic.FallbackExceptionHandler; + import org.junit.rules.ExternalResource; /** diff --git a/src/test/java/org/jabref/JabRefPreferencesTest.java b/org.jabref.gui/src/test/java/org/jabref/JabRefPreferencesTest.java similarity index 100% rename from src/test/java/org/jabref/JabRefPreferencesTest.java rename to org.jabref.gui/src/test/java/org/jabref/JabRefPreferencesTest.java diff --git a/src/test/java/org/jabref/TestIconsProperties.java b/org.jabref.gui/src/test/java/org/jabref/TestIconsProperties.java similarity index 100% rename from src/test/java/org/jabref/TestIconsProperties.java rename to org.jabref.gui/src/test/java/org/jabref/TestIconsProperties.java diff --git a/src/test/java/org/jabref/architecture/MainArchitectureTests.java b/org.jabref.gui/src/test/java/org/jabref/architecture/MainArchitectureTests.java similarity index 100% rename from src/test/java/org/jabref/architecture/MainArchitectureTests.java rename to org.jabref.gui/src/test/java/org/jabref/architecture/MainArchitectureTests.java diff --git a/src/test/java/org/jabref/architecture/MainArchitectureTestsWithArchUnit.java b/org.jabref.gui/src/test/java/org/jabref/architecture/MainArchitectureTestsWithArchUnit.java similarity index 100% rename from src/test/java/org/jabref/architecture/MainArchitectureTestsWithArchUnit.java rename to org.jabref.gui/src/test/java/org/jabref/architecture/MainArchitectureTestsWithArchUnit.java diff --git a/src/test/java/org/jabref/architecture/TestArchitectureTests.java b/org.jabref.gui/src/test/java/org/jabref/architecture/TestArchitectureTests.java similarity index 100% rename from src/test/java/org/jabref/architecture/TestArchitectureTests.java rename to org.jabref.gui/src/test/java/org/jabref/architecture/TestArchitectureTests.java diff --git a/src/test/java/org/jabref/cleanup/CleanupActionsListModelTest.java b/org.jabref.gui/src/test/java/org/jabref/cleanup/CleanupActionsListModelTest.java similarity index 100% rename from src/test/java/org/jabref/cleanup/CleanupActionsListModelTest.java rename to org.jabref.gui/src/test/java/org/jabref/cleanup/CleanupActionsListModelTest.java diff --git a/src/test/java/org/jabref/cli/AuxCommandLineTest.java b/org.jabref.gui/src/test/java/org/jabref/cli/AuxCommandLineTest.java similarity index 100% rename from src/test/java/org/jabref/cli/AuxCommandLineTest.java rename to org.jabref.gui/src/test/java/org/jabref/cli/AuxCommandLineTest.java diff --git a/src/test/java/org/jabref/cli/JabRefCLITest.java b/org.jabref.gui/src/test/java/org/jabref/cli/JabRefCLITest.java similarity index 100% rename from src/test/java/org/jabref/cli/JabRefCLITest.java rename to org.jabref.gui/src/test/java/org/jabref/cli/JabRefCLITest.java diff --git a/src/test/java/org/jabref/gui/AWTExceptionHandler.java b/org.jabref.gui/src/test/java/org/jabref/gui/AWTExceptionHandler.java similarity index 100% rename from src/test/java/org/jabref/gui/AWTExceptionHandler.java rename to org.jabref.gui/src/test/java/org/jabref/gui/AWTExceptionHandler.java diff --git a/src/test/java/org/jabref/gui/AbstractUITest.java b/org.jabref.gui/src/test/java/org/jabref/gui/AbstractUITest.java similarity index 100% rename from src/test/java/org/jabref/gui/AbstractUITest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/AbstractUITest.java diff --git a/src/test/java/org/jabref/gui/ClipBoardManagerTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/ClipBoardManagerTest.java similarity index 100% rename from src/test/java/org/jabref/gui/ClipBoardManagerTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/ClipBoardManagerTest.java diff --git a/src/test/java/org/jabref/gui/DialogTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/DialogTest.java similarity index 100% rename from src/test/java/org/jabref/gui/DialogTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/DialogTest.java diff --git a/src/test/java/org/jabref/gui/DialogTest2.java b/org.jabref.gui/src/test/java/org/jabref/gui/DialogTest2.java similarity index 100% rename from src/test/java/org/jabref/gui/DialogTest2.java rename to org.jabref.gui/src/test/java/org/jabref/gui/DialogTest2.java diff --git a/src/test/java/org/jabref/gui/EntryTableTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/EntryTableTest.java similarity index 100% rename from src/test/java/org/jabref/gui/EntryTableTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/EntryTableTest.java diff --git a/src/test/java/org/jabref/gui/GUITest.java b/org.jabref.gui/src/test/java/org/jabref/gui/GUITest.java similarity index 100% rename from src/test/java/org/jabref/gui/GUITest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/GUITest.java diff --git a/src/test/java/org/jabref/gui/IdFetcherDialogTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/IdFetcherDialogTest.java similarity index 100% rename from src/test/java/org/jabref/gui/IdFetcherDialogTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/IdFetcherDialogTest.java diff --git a/src/test/java/org/jabref/gui/ParameterizedDialogNewEntryTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/ParameterizedDialogNewEntryTest.java similarity index 100% rename from src/test/java/org/jabref/gui/ParameterizedDialogNewEntryTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/ParameterizedDialogNewEntryTest.java diff --git a/src/test/java/org/jabref/gui/ParameterizedDialogTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/ParameterizedDialogTest.java similarity index 100% rename from src/test/java/org/jabref/gui/ParameterizedDialogTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/ParameterizedDialogTest.java diff --git a/src/test/java/org/jabref/gui/ParameterizedMenuNewEntryTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/ParameterizedMenuNewEntryTest.java similarity index 100% rename from src/test/java/org/jabref/gui/ParameterizedMenuNewEntryTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/ParameterizedMenuNewEntryTest.java diff --git a/src/test/java/org/jabref/gui/UndoTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/UndoTest.java similarity index 100% rename from src/test/java/org/jabref/gui/UndoTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/UndoTest.java diff --git a/src/test/java/org/jabref/gui/UpdateTimestampListenerTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/UpdateTimestampListenerTest.java similarity index 100% rename from src/test/java/org/jabref/gui/UpdateTimestampListenerTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/UpdateTimestampListenerTest.java diff --git a/src/test/java/org/jabref/gui/autocompleter/AutoCompleterUtil.java b/org.jabref.gui/src/test/java/org/jabref/gui/autocompleter/AutoCompleterUtil.java similarity index 100% rename from src/test/java/org/jabref/gui/autocompleter/AutoCompleterUtil.java rename to org.jabref.gui/src/test/java/org/jabref/gui/autocompleter/AutoCompleterUtil.java diff --git a/src/test/java/org/jabref/gui/autocompleter/BibEntrySuggestionProviderTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/autocompleter/BibEntrySuggestionProviderTest.java similarity index 100% rename from src/test/java/org/jabref/gui/autocompleter/BibEntrySuggestionProviderTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/autocompleter/BibEntrySuggestionProviderTest.java diff --git a/src/test/java/org/jabref/gui/autocompleter/DefaultAutoCompleterTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/autocompleter/DefaultAutoCompleterTest.java similarity index 100% rename from src/test/java/org/jabref/gui/autocompleter/DefaultAutoCompleterTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/autocompleter/DefaultAutoCompleterTest.java diff --git a/src/test/java/org/jabref/gui/autocompleter/FieldValueSuggestionProviderTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/autocompleter/FieldValueSuggestionProviderTest.java similarity index 100% rename from src/test/java/org/jabref/gui/autocompleter/FieldValueSuggestionProviderTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/autocompleter/FieldValueSuggestionProviderTest.java diff --git a/src/test/java/org/jabref/gui/autocompleter/PersonNameSuggestionProviderTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/autocompleter/PersonNameSuggestionProviderTest.java similarity index 100% rename from src/test/java/org/jabref/gui/autocompleter/PersonNameSuggestionProviderTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/autocompleter/PersonNameSuggestionProviderTest.java diff --git a/src/test/java/org/jabref/gui/entryeditor/EntryEditorTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/entryeditor/EntryEditorTest.java similarity index 100% rename from src/test/java/org/jabref/gui/entryeditor/EntryEditorTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/entryeditor/EntryEditorTest.java diff --git a/src/test/java/org/jabref/gui/externalfiles/AutoSetFileLinksUtilTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/externalfiles/AutoSetFileLinksUtilTest.java similarity index 100% rename from src/test/java/org/jabref/gui/externalfiles/AutoSetFileLinksUtilTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/externalfiles/AutoSetFileLinksUtilTest.java diff --git a/src/test/java/org/jabref/gui/externalfiletype/ExternalFileTypeTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/externalfiletype/ExternalFileTypeTest.java similarity index 100% rename from src/test/java/org/jabref/gui/externalfiletype/ExternalFileTypeTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/externalfiletype/ExternalFileTypeTest.java diff --git a/src/test/java/org/jabref/gui/fieldeditors/HtmlTransferableTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/fieldeditors/HtmlTransferableTest.java similarity index 100% rename from src/test/java/org/jabref/gui/fieldeditors/HtmlTransferableTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/fieldeditors/HtmlTransferableTest.java diff --git a/src/test/java/org/jabref/gui/fieldeditors/IdentifierEditorViewModelTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/fieldeditors/IdentifierEditorViewModelTest.java similarity index 100% rename from src/test/java/org/jabref/gui/fieldeditors/IdentifierEditorViewModelTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/fieldeditors/IdentifierEditorViewModelTest.java diff --git a/src/test/java/org/jabref/gui/fieldeditors/LinkedFileViewModelTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/fieldeditors/LinkedFileViewModelTest.java similarity index 100% rename from src/test/java/org/jabref/gui/fieldeditors/LinkedFileViewModelTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/fieldeditors/LinkedFileViewModelTest.java diff --git a/src/test/java/org/jabref/gui/groups/GroupNodeViewModelTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/groups/GroupNodeViewModelTest.java similarity index 100% rename from src/test/java/org/jabref/gui/groups/GroupNodeViewModelTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/groups/GroupNodeViewModelTest.java diff --git a/src/test/java/org/jabref/gui/groups/GroupTreeViewModelTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/groups/GroupTreeViewModelTest.java similarity index 100% rename from src/test/java/org/jabref/gui/groups/GroupTreeViewModelTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/groups/GroupTreeViewModelTest.java diff --git a/src/test/java/org/jabref/gui/importer/EntryFromFileCreatorManagerTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/importer/EntryFromFileCreatorManagerTest.java similarity index 73% rename from src/test/java/org/jabref/gui/importer/EntryFromFileCreatorManagerTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/importer/EntryFromFileCreatorManagerTest.java index 38301e769ef..e98cefd202b 100644 --- a/src/test/java/org/jabref/gui/importer/EntryFromFileCreatorManagerTest.java +++ b/org.jabref.gui/src/test/java/org/jabref/gui/importer/EntryFromFileCreatorManagerTest.java @@ -5,12 +5,13 @@ import java.io.IOException; import java.io.InputStreamReader; import java.nio.charset.StandardCharsets; +import java.nio.file.Paths; import java.util.ArrayList; +import java.util.Collection; import java.util.List; import java.util.Optional; import org.jabref.gui.externalfiletype.ExternalFileTypes; -import org.jabref.logic.importer.ImportDataTest; import org.jabref.logic.importer.ImportFormatPreferences; import org.jabref.logic.importer.ParserResult; import org.jabref.logic.importer.fileformat.BibtexParser; @@ -34,6 +35,8 @@ @GUITest public class EntryFromFileCreatorManagerTest { + private static final File UNLINKED_FILES_TEST_BIB = Paths + .get("src/test/resources/org/jabref/gui/importer/unlinkedFilesTestBib.bib").toFile(); private final ImportFormatPreferences prefs = mock(ImportFormatPreferences.class, Answers.RETURNS_DEEP_STUBS); private ExternalFileTypes externalFileTypes; @@ -41,7 +44,31 @@ public class EntryFromFileCreatorManagerTest { public void setUp() { externalFileTypes = mock(ExternalFileTypes.class, Answers.RETURNS_DEEP_STUBS); when(externalFileTypes.getExternalFileTypeByExt("pdf")).thenReturn(Optional.empty()); + } + + /** + * Tests the prerequisites of this test-class itself. + */ + @Test + public void testTestDatabase() throws IOException { + BibDatabase database; + Collection entries; + BibEntry entry1; + BibEntry entry2; + try (FileInputStream stream = new FileInputStream(UNLINKED_FILES_TEST_BIB); + InputStreamReader reader = new InputStreamReader(stream, StandardCharsets.UTF_8)) { + ParserResult result = new BibtexParser(mock(ImportFormatPreferences.class, Answers.RETURNS_DEEP_STUBS), new DummyFileUpdateMonitor()).parse(reader); + database = result.getDatabase(); + entries = database.getEntries(); + + entry1 = database.getEntryByKey("entry1").get(); + entry2 = database.getEntryByKey("entry2").get(); + } + assertEquals(2, database.getEntryCount()); + assertEquals(2, entries.size()); + assertNotNull(entry1); + assertNotNull(entry2); } @Test @@ -57,7 +84,7 @@ public void testGetCreator() { @Test public void testAddEntrysFromFiles() throws IOException { - try (FileInputStream stream = new FileInputStream(ImportDataTest.UNLINKED_FILES_TEST_BIB); + try (FileInputStream stream = new FileInputStream(UNLINKED_FILES_TEST_BIB); InputStreamReader reader = new InputStreamReader(stream, StandardCharsets.UTF_8)) { ParserResult result = new BibtexParser(prefs, new DummyFileUpdateMonitor()).parse(reader); BibDatabase database = result.getDatabase(); diff --git a/src/test/java/org/jabref/gui/importer/EntryFromPDFCreatorTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/importer/EntryFromPDFCreatorTest.java similarity index 97% rename from src/test/java/org/jabref/gui/importer/EntryFromPDFCreatorTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/importer/EntryFromPDFCreatorTest.java index 17817eeb6b4..cc1dd2c8ca0 100644 --- a/src/test/java/org/jabref/gui/importer/EntryFromPDFCreatorTest.java +++ b/org.jabref.gui/src/test/java/org/jabref/gui/importer/EntryFromPDFCreatorTest.java @@ -6,7 +6,6 @@ import org.jabref.JabRefGUI; import org.jabref.gui.JabRefFrame; import org.jabref.gui.externalfiletype.ExternalFileTypes; -import org.jabref.logic.importer.ImportDataTest; import org.jabref.model.entry.BibEntry; import org.jabref.testutils.category.GUITest; diff --git a/src/test/java/org/jabref/logic/importer/ImportDataTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/importer/ImportDataTest.java similarity index 65% rename from src/test/java/org/jabref/logic/importer/ImportDataTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/importer/ImportDataTest.java index a106633c567..1a6f670ac2d 100644 --- a/src/test/java/org/jabref/logic/importer/ImportDataTest.java +++ b/org.jabref.gui/src/test/java/org/jabref/gui/importer/ImportDataTest.java @@ -1,4 +1,4 @@ -package org.jabref.logic.importer; +package org.jabref.gui.importer; import java.io.File; import java.nio.file.Paths; @@ -8,25 +8,18 @@ import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; -/** - * @author Nosh&Dan - * @version 09.11.2008 | 19:41:40 - */ public class ImportDataTest { public static final File FILE_IN_DATABASE = Paths - .get("src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/pdfInDatabase.pdf").toFile(); + .get("src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/pdfInDatabase.pdf").toFile(); public static final File FILE_NOT_IN_DATABASE = Paths - .get("src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/pdfNotInDatabase.pdf") + .get("src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/pdfNotInDatabase.pdf") .toFile(); public static final File EXISTING_FOLDER = Paths - .get("src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder").toFile(); + .get("src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder").toFile(); public static final File NOT_EXISTING_FOLDER = Paths.get("notexistingfolder").toFile(); public static final File NOT_EXISTING_PDF = Paths - .get("src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/null.pdf").toFile(); - public static final File UNLINKED_FILES_TEST_BIB = Paths - .get("src/test/resources/org/jabref/util/unlinkedFilesTestBib.bib").toFile(); - + .get("src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/null.pdf").toFile(); /** * Tests the testing environment. diff --git a/src/test/java/org/jabref/gui/importer/fetcher/OAI2HandlerFetcherTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/importer/fetcher/OAI2HandlerFetcherTest.java similarity index 88% rename from src/test/java/org/jabref/gui/importer/fetcher/OAI2HandlerFetcherTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/importer/fetcher/OAI2HandlerFetcherTest.java index 46dd1e87880..edb44c7cb09 100644 --- a/src/test/java/org/jabref/gui/importer/fetcher/OAI2HandlerFetcherTest.java +++ b/org.jabref.gui/src/test/java/org/jabref/gui/importer/fetcher/OAI2HandlerFetcherTest.java @@ -9,10 +9,9 @@ import org.jabref.logic.importer.util.OAI2Handler; import org.jabref.model.entry.BibEntry; -import org.jabref.testutils.category.FetcherTest; -import org.junit.Ignore; import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.xml.sax.SAXException; @@ -23,12 +22,9 @@ /** * Test for OAI2-Handler and Fetcher. * - * @author Ulrich Stärk - * @author Christian Kopf - * @author Christopher Oezbek + * FIXME: Move this AND the OAI2HandlerFetcher to org.jabref.logic. Needs to be rewritten to new interface */ - -@FetcherTest +//@FetcherTest public class OAI2HandlerFetcherTest { protected OAI2Handler handler; @@ -123,23 +119,21 @@ public void testFixKey() { } @Test - @Ignore - public void testOnline() throws InterruptedException, IOException, SAXException { - - { - OAI2Fetcher fetcher = new OAI2Fetcher(); - be = fetcher.importOai2Entry("math.RA/0612188"); - assertNotNull(be); - - assertEquals(Optional.of("math/0612188"), be.getField("eprint")); - assertEquals(Optional.of("On the classification and properties of noncommutative duplicates"), - be.getField("title")); - assertEquals(Optional.of("Javier López Peña and Gabriel Navarro"), be.getField("author")); - assertEquals(Optional.of("2007"), be.getField("year")); + public void testMathRA0612188() throws Exception { + OAI2Fetcher fetcher = new OAI2Fetcher(); + be = fetcher.importOai2Entry("math.RA/0612188"); + assertNotNull(be); - Thread.sleep(20000); - } + assertEquals(Optional.of("math/0612188"), be.getField("eprint")); + assertEquals(Optional.of("On the classification and properties of noncommutative duplicates"), + be.getField("title")); + assertEquals(Optional.of("Javier López Peña and Gabriel Navarro"), be.getField("author")); + assertEquals(Optional.of("2"), be.getField("year")); + } + @Test + @Disabled + public void testOnline() throws InterruptedException, IOException, SAXException { { OAI2Fetcher fetcher = new OAI2Fetcher(); be = fetcher.importOai2Entry("astro-ph/0702080"); diff --git a/src/test/java/org/jabref/gui/journals/ManageJournalAbbreviationsViewModelTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/journals/ManageJournalAbbreviationsViewModelTest.java similarity index 100% rename from src/test/java/org/jabref/gui/journals/ManageJournalAbbreviationsViewModelTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/journals/ManageJournalAbbreviationsViewModelTest.java diff --git a/src/test/java/org/jabref/gui/keyboard/KeyBindingsDialogViewModelTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/keyboard/KeyBindingsDialogViewModelTest.java similarity index 100% rename from src/test/java/org/jabref/gui/keyboard/KeyBindingsDialogViewModelTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/keyboard/KeyBindingsDialogViewModelTest.java diff --git a/src/test/java/org/jabref/gui/search/ContainsAndRegexBasedSearchRuleDescriberTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/search/ContainsAndRegexBasedSearchRuleDescriberTest.java similarity index 100% rename from src/test/java/org/jabref/gui/search/ContainsAndRegexBasedSearchRuleDescriberTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/search/ContainsAndRegexBasedSearchRuleDescriberTest.java diff --git a/src/test/java/org/jabref/gui/search/GrammarBasedSearchRuleDescriberTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/search/GrammarBasedSearchRuleDescriberTest.java similarity index 100% rename from src/test/java/org/jabref/gui/search/GrammarBasedSearchRuleDescriberTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/search/GrammarBasedSearchRuleDescriberTest.java diff --git a/src/test/java/org/jabref/gui/search/SearchResultsTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/search/SearchResultsTest.java similarity index 100% rename from src/test/java/org/jabref/gui/search/SearchResultsTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/search/SearchResultsTest.java diff --git a/src/test/java/org/jabref/gui/search/TextFlowEqualityHelper.java b/org.jabref.gui/src/test/java/org/jabref/gui/search/TextFlowEqualityHelper.java similarity index 100% rename from src/test/java/org/jabref/gui/search/TextFlowEqualityHelper.java rename to org.jabref.gui/src/test/java/org/jabref/gui/search/TextFlowEqualityHelper.java diff --git a/src/test/java/org/jabref/gui/util/FileDialogConfigurationTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/util/FileDialogConfigurationTest.java similarity index 100% rename from src/test/java/org/jabref/gui/util/FileDialogConfigurationTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/util/FileDialogConfigurationTest.java diff --git a/src/test/java/org/jabref/gui/util/RecursiveTreeItemTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/util/RecursiveTreeItemTest.java similarity index 97% rename from src/test/java/org/jabref/gui/util/RecursiveTreeItemTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/util/RecursiveTreeItemTest.java index 7fb07169950..ba030919160 100644 --- a/src/test/java/org/jabref/gui/util/RecursiveTreeItemTest.java +++ b/org.jabref.gui/src/test/java/org/jabref/gui/util/RecursiveTreeItemTest.java @@ -9,7 +9,7 @@ import javafx.scene.control.TreeItem; import org.jabref.model.TreeNode; -import org.jabref.model.TreeNodeTestData; +import org.jabref.gui.util.TreeNodeTestData; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; diff --git a/src/test/java/org/jabref/gui/util/TooltipTextUtilTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/util/TooltipTextUtilTest.java similarity index 100% rename from src/test/java/org/jabref/gui/util/TooltipTextUtilTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/util/TooltipTextUtilTest.java diff --git a/org.jabref.gui/src/test/java/org/jabref/gui/util/TreeNodeTestData.java b/org.jabref.gui/src/test/java/org/jabref/gui/util/TreeNodeTestData.java new file mode 100644 index 00000000000..a0245522dd8 --- /dev/null +++ b/org.jabref.gui/src/test/java/org/jabref/gui/util/TreeNodeTestData.java @@ -0,0 +1,123 @@ +package org.jabref.gui.util; + +import org.jabref.model.TreeNode; + +public class TreeNodeTestData { + /** + * Gets the marked node in the following tree: + * Root + * A + * A (= parent) + * B (<-- this) + */ + public static TreeNodeMock getNodeInSimpleTree(TreeNodeMock root) { + root.addChild(new TreeNodeMock()); + TreeNodeMock parent = new TreeNodeMock(); + root.addChild(parent); + TreeNodeMock node = new TreeNodeMock(); + parent.addChild(node); + return node; + } + + public static TreeNodeMock getNodeInSimpleTree() { + return getNodeInSimpleTree(new TreeNodeMock()); + } + + /** + * Gets the marked node in the following tree: + * Root + * A + * A + * A (= grand parent) + * B + * B (= parent) + * C (<-- this) + * D (= child) + * C + * C + * C + * B + * B + * A + */ + public static TreeNodeMock getNodeInComplexTree(TreeNodeMock root) { + root.addChild(new TreeNodeMock()); + root.addChild(new TreeNodeMock()); + TreeNodeMock grandParent = new TreeNodeMock(); + root.addChild(grandParent); + root.addChild(new TreeNodeMock()); + + grandParent.addChild(new TreeNodeMock()); + TreeNodeMock parent = new TreeNodeMock(); + grandParent.addChild(parent); + grandParent.addChild(new TreeNodeMock()); + grandParent.addChild(new TreeNodeMock()); + + TreeNodeMock node = new TreeNodeMock(); + parent.addChild(node); + parent.addChild(new TreeNodeMock()); + parent.addChild(new TreeNodeMock()); + parent.addChild(new TreeNodeMock()); + + node.addChild(new TreeNodeMock()); + return node; + } + + public static TreeNodeMock getNodeInComplexTree() { + return getNodeInComplexTree(new TreeNodeMock()); + } + + /** + * Gets the marked in the following tree: + * Root + * A + * A + * A (<- this) + * A + */ + public static TreeNodeMock getNodeAsChild(TreeNodeMock root) { + root.addChild(new TreeNodeMock()); + root.addChild(new TreeNodeMock()); + TreeNodeMock node = new TreeNodeMock(); + root.addChild(node); + root.addChild(new TreeNodeMock()); + return node; + } + + /** + * This is just a dummy class deriving from TreeNode so that we can test the generic class + */ + public static class TreeNodeMock extends TreeNode { + + private String name; + + public TreeNodeMock() { + this(""); + } + + public TreeNodeMock(String name) { + super(TreeNodeMock.class); + this.name = name; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + @Override + public String toString() { + return "TreeNodeMock{" + + "name='" + name + '\'' + + '}'; + } + + @Override + public TreeNodeMock copyNode() { + return new TreeNodeMock(name); + } + } +} diff --git a/src/test/java/org/jabref/gui/worker/CitationStyleToClipboardWorkerTest.java b/org.jabref.gui/src/test/java/org/jabref/gui/worker/CitationStyleToClipboardWorkerTest.java similarity index 100% rename from src/test/java/org/jabref/gui/worker/CitationStyleToClipboardWorkerTest.java rename to org.jabref.gui/src/test/java/org/jabref/gui/worker/CitationStyleToClipboardWorkerTest.java diff --git a/src/test/java/org/jabref/logic/autosaveandbackup/BackupManagerTest.java b/org.jabref.gui/src/test/java/org/jabref/logic/autosaveandbackup/BackupManagerTest.java similarity index 100% rename from src/test/java/org/jabref/logic/autosaveandbackup/BackupManagerTest.java rename to org.jabref.gui/src/test/java/org/jabref/logic/autosaveandbackup/BackupManagerTest.java diff --git a/src/test/java/org/jabref/logic/remote/RemotePreferencesTest.java b/org.jabref.gui/src/test/java/org/jabref/logic/remote/RemotePreferencesTest.java similarity index 100% rename from src/test/java/org/jabref/logic/remote/RemotePreferencesTest.java rename to org.jabref.gui/src/test/java/org/jabref/logic/remote/RemotePreferencesTest.java diff --git a/src/test/java/org/jabref/logic/remote/RemoteTest.java b/org.jabref.gui/src/test/java/org/jabref/logic/remote/RemoteTest.java similarity index 100% rename from src/test/java/org/jabref/logic/remote/RemoteTest.java rename to org.jabref.gui/src/test/java/org/jabref/logic/remote/RemoteTest.java diff --git a/src/test/java/org/jabref/logic/remote/RemoteUtilTest.java b/org.jabref.gui/src/test/java/org/jabref/logic/remote/RemoteUtilTest.java similarity index 100% rename from src/test/java/org/jabref/logic/remote/RemoteUtilTest.java rename to org.jabref.gui/src/test/java/org/jabref/logic/remote/RemoteUtilTest.java diff --git a/src/test/java/org/jabref/logic/shared/DBMSConnectionTest.java b/org.jabref.gui/src/test/java/org/jabref/logic/shared/DBMSConnectionTest.java similarity index 100% rename from src/test/java/org/jabref/logic/shared/DBMSConnectionTest.java rename to org.jabref.gui/src/test/java/org/jabref/logic/shared/DBMSConnectionTest.java diff --git a/src/test/java/org/jabref/logic/shared/DBMSProcessorTest.java b/org.jabref.gui/src/test/java/org/jabref/logic/shared/DBMSProcessorTest.java similarity index 100% rename from src/test/java/org/jabref/logic/shared/DBMSProcessorTest.java rename to org.jabref.gui/src/test/java/org/jabref/logic/shared/DBMSProcessorTest.java diff --git a/src/test/java/org/jabref/logic/shared/DBMSSynchronizerTest.java b/org.jabref.gui/src/test/java/org/jabref/logic/shared/DBMSSynchronizerTest.java similarity index 100% rename from src/test/java/org/jabref/logic/shared/DBMSSynchronizerTest.java rename to org.jabref.gui/src/test/java/org/jabref/logic/shared/DBMSSynchronizerTest.java diff --git a/src/test/java/org/jabref/logic/shared/DBMSTypeTest.java b/org.jabref.gui/src/test/java/org/jabref/logic/shared/DBMSTypeTest.java similarity index 100% rename from src/test/java/org/jabref/logic/shared/DBMSTypeTest.java rename to org.jabref.gui/src/test/java/org/jabref/logic/shared/DBMSTypeTest.java diff --git a/src/test/java/org/jabref/logic/shared/SynchronizationTestEventListener.java b/org.jabref.gui/src/test/java/org/jabref/logic/shared/SynchronizationTestEventListener.java similarity index 100% rename from src/test/java/org/jabref/logic/shared/SynchronizationTestEventListener.java rename to org.jabref.gui/src/test/java/org/jabref/logic/shared/SynchronizationTestEventListener.java diff --git a/src/test/java/org/jabref/logic/shared/SynchronizationTestSimulator.java b/org.jabref.gui/src/test/java/org/jabref/logic/shared/SynchronizationTestSimulator.java similarity index 100% rename from src/test/java/org/jabref/logic/shared/SynchronizationTestSimulator.java rename to org.jabref.gui/src/test/java/org/jabref/logic/shared/SynchronizationTestSimulator.java diff --git a/src/test/java/org/jabref/logic/shared/TestConnector.java b/org.jabref.gui/src/test/java/org/jabref/logic/shared/TestConnector.java similarity index 100% rename from src/test/java/org/jabref/logic/shared/TestConnector.java rename to org.jabref.gui/src/test/java/org/jabref/logic/shared/TestConnector.java diff --git a/src/test/java/org/jabref/logic/shared/TestManager.java b/org.jabref.gui/src/test/java/org/jabref/logic/shared/TestManager.java similarity index 100% rename from src/test/java/org/jabref/logic/shared/TestManager.java rename to org.jabref.gui/src/test/java/org/jabref/logic/shared/TestManager.java diff --git a/src/test/java/org/jabref/migrations/PreferencesMigrationsTest.java b/org.jabref.gui/src/test/java/org/jabref/migrations/PreferencesMigrationsTest.java similarity index 100% rename from src/test/java/org/jabref/migrations/PreferencesMigrationsTest.java rename to org.jabref.gui/src/test/java/org/jabref/migrations/PreferencesMigrationsTest.java diff --git a/src/test/java/org/jabref/performance/BibtexEntryGenerator.java b/org.jabref.gui/src/test/java/org/jabref/performance/BibtexEntryGenerator.java similarity index 100% rename from src/test/java/org/jabref/performance/BibtexEntryGenerator.java rename to org.jabref.gui/src/test/java/org/jabref/performance/BibtexEntryGenerator.java diff --git a/src/test/java/org/jabref/testutils/TestUtils.java b/org.jabref.gui/src/test/java/org/jabref/testutils/TestUtils.java similarity index 100% rename from src/test/java/org/jabref/testutils/TestUtils.java rename to org.jabref.gui/src/test/java/org/jabref/testutils/TestUtils.java diff --git a/src/test/java/org/jabref/testutils/category/DatabaseTest.java b/org.jabref.gui/src/test/java/org/jabref/testutils/category/DatabaseTest.java similarity index 100% rename from src/test/java/org/jabref/testutils/category/DatabaseTest.java rename to org.jabref.gui/src/test/java/org/jabref/testutils/category/DatabaseTest.java diff --git a/src/test/java/org/jabref/testutils/category/GUITest.java b/org.jabref.gui/src/test/java/org/jabref/testutils/category/GUITest.java similarity index 100% rename from src/test/java/org/jabref/testutils/category/GUITest.java rename to org.jabref.gui/src/test/java/org/jabref/testutils/category/GUITest.java diff --git a/src/test/resources/log4j2.xml b/org.jabref.gui/src/test/resources/log4j2.xml similarity index 100% rename from src/test/resources/log4j2.xml rename to org.jabref.gui/src/test/resources/log4j2.xml diff --git a/src/test/resources/org/jabref/bibtexFiles/test.bib b/org.jabref.gui/src/test/resources/org/jabref/bibtexFiles/test.bib similarity index 100% rename from src/test/resources/org/jabref/bibtexFiles/test.bib rename to org.jabref.gui/src/test/resources/org/jabref/bibtexFiles/test.bib diff --git a/src/test/resources/org/jabref/cli/origin.bib b/org.jabref.gui/src/test/resources/org/jabref/cli/origin.bib similarity index 100% rename from src/test/resources/org/jabref/cli/origin.bib rename to org.jabref.gui/src/test/resources/org/jabref/cli/origin.bib diff --git a/src/test/resources/org/jabref/cli/paper.aux b/org.jabref.gui/src/test/resources/org/jabref/cli/paper.aux similarity index 100% rename from src/test/resources/org/jabref/cli/paper.aux rename to org.jabref.gui/src/test/resources/org/jabref/cli/paper.aux diff --git a/src/test/resources/org/jabref/customPreferences.xml b/org.jabref.gui/src/test/resources/org/jabref/customPreferences.xml similarity index 100% rename from src/test/resources/org/jabref/customPreferences.xml rename to org.jabref.gui/src/test/resources/org/jabref/customPreferences.xml diff --git a/src/test/resources/org/jabref/gui/importer/fetcher/oai2.xml b/org.jabref.gui/src/test/resources/org/jabref/gui/importer/fetcher/oai2.xml similarity index 100% rename from src/test/resources/org/jabref/gui/importer/fetcher/oai2.xml rename to org.jabref.gui/src/test/resources/org/jabref/gui/importer/fetcher/oai2.xml diff --git a/src/test/resources/org/jabref/gui/importer/fetcher/oai22.xml b/org.jabref.gui/src/test/resources/org/jabref/gui/importer/fetcher/oai22.xml similarity index 100% rename from src/test/resources/org/jabref/gui/importer/fetcher/oai22.xml rename to org.jabref.gui/src/test/resources/org/jabref/gui/importer/fetcher/oai22.xml diff --git a/src/test/resources/org/jabref/gui/importer/fetcher/oai23.xml b/org.jabref.gui/src/test/resources/org/jabref/gui/importer/fetcher/oai23.xml similarity index 100% rename from src/test/resources/org/jabref/gui/importer/fetcher/oai23.xml rename to org.jabref.gui/src/test/resources/org/jabref/gui/importer/fetcher/oai23.xml diff --git a/src/test/resources/org/jabref/util/unlinkedFilesTestBib.bib b/org.jabref.gui/src/test/resources/org/jabref/gui/importer/unlinkedFilesTestBib.bib similarity index 100% rename from src/test/resources/org/jabref/util/unlinkedFilesTestBib.bib rename to org.jabref.gui/src/test/resources/org/jabref/gui/importer/unlinkedFilesTestBib.bib diff --git a/src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/directory/subdirectory/2003_Hippel_209.pdf b/org.jabref.gui/src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/directory/subdirectory/2003_Hippel_209.pdf similarity index 100% rename from src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/directory/subdirectory/2003_Hippel_209.pdf rename to org.jabref.gui/src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/directory/subdirectory/2003_Hippel_209.pdf diff --git "a/src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/directory/subdirectory/2017_Gra\305\276ulis_726.pdf" "b/org.jabref.gui/src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/directory/subdirectory/2017_Gra\305\276ulis_726.pdf" similarity index 100% rename from "src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/directory/subdirectory/2017_Gra\305\276ulis_726.pdf" rename to "org.jabref.gui/src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/directory/subdirectory/2017_Gra\305\276ulis_726.pdf" diff --git a/src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/directory/subdirectory/pdfInSubdirectory.pdf b/org.jabref.gui/src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/directory/subdirectory/pdfInSubdirectory.pdf similarity index 100% rename from src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/directory/subdirectory/pdfInSubdirectory.pdf rename to org.jabref.gui/src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/directory/subdirectory/pdfInSubdirectory.pdf diff --git a/src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/pdfInDatabase.pdf b/org.jabref.gui/src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/pdfInDatabase.pdf similarity index 100% rename from src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/pdfInDatabase.pdf rename to org.jabref.gui/src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/pdfInDatabase.pdf diff --git a/src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/pdfNotInDatabase.pdf b/org.jabref.gui/src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/pdfNotInDatabase.pdf similarity index 100% rename from src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/pdfNotInDatabase.pdf rename to org.jabref.gui/src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/pdfNotInDatabase.pdf diff --git a/src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/testFile.txt b/org.jabref.gui/src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/testFile.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/unlinkedFilesTestFolder/testFile.txt rename to org.jabref.gui/src/test/resources/org/jabref/gui/importer/unlinkedFilesTestFolder/testFile.txt diff --git a/src/test/resources/org/jabref/util/build.properties b/org.jabref.gui/src/test/resources/org/jabref/util/build.properties similarity index 100% rename from src/test/resources/org/jabref/util/build.properties rename to org.jabref.gui/src/test/resources/org/jabref/util/build.properties diff --git a/src/test/resources/org/jabref/util/twente.bib b/org.jabref.gui/src/test/resources/org/jabref/util/twente.bib similarity index 100% rename from src/test/resources/org/jabref/util/twente.bib rename to org.jabref.gui/src/test/resources/org/jabref/util/twente.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/encrypted.pdf b/org.jabref.gui/src/test/resources/pdfs/encrypted.pdf similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/encrypted.pdf rename to org.jabref.gui/src/test/resources/pdfs/encrypted.pdf diff --git a/src/test/resources/pdfs/encrypted.txt b/org.jabref.gui/src/test/resources/pdfs/encrypted.txt similarity index 100% rename from src/test/resources/pdfs/encrypted.txt rename to org.jabref.gui/src/test/resources/pdfs/encrypted.txt diff --git a/src/test/resources/pdfs/minimal-foxithighlight.pdf b/org.jabref.gui/src/test/resources/pdfs/minimal-foxithighlight.pdf similarity index 100% rename from src/test/resources/pdfs/minimal-foxithighlight.pdf rename to org.jabref.gui/src/test/resources/pdfs/minimal-foxithighlight.pdf diff --git a/src/test/resources/pdfs/minimal-foxitnote.pdf b/org.jabref.gui/src/test/resources/pdfs/minimal-foxitnote.pdf similarity index 100% rename from src/test/resources/pdfs/minimal-foxitnote.pdf rename to org.jabref.gui/src/test/resources/pdfs/minimal-foxitnote.pdf diff --git a/src/test/resources/pdfs/minimal-highlight-no-note.pdf b/org.jabref.gui/src/test/resources/pdfs/minimal-highlight-no-note.pdf similarity index 100% rename from src/test/resources/pdfs/minimal-highlight-no-note.pdf rename to org.jabref.gui/src/test/resources/pdfs/minimal-highlight-no-note.pdf diff --git a/src/test/resources/pdfs/minimal-highlight-with-note.pdf b/org.jabref.gui/src/test/resources/pdfs/minimal-highlight-with-note.pdf similarity index 100% rename from src/test/resources/pdfs/minimal-highlight-with-note.pdf rename to org.jabref.gui/src/test/resources/pdfs/minimal-highlight-with-note.pdf diff --git a/src/test/resources/pdfs/minimal-inlinenote.pdf b/org.jabref.gui/src/test/resources/pdfs/minimal-inlinenote.pdf similarity index 100% rename from src/test/resources/pdfs/minimal-inlinenote.pdf rename to org.jabref.gui/src/test/resources/pdfs/minimal-inlinenote.pdf diff --git a/src/test/resources/pdfs/minimal-polygon.pdf b/org.jabref.gui/src/test/resources/pdfs/minimal-polygon.pdf similarity index 100% rename from src/test/resources/pdfs/minimal-polygon.pdf rename to org.jabref.gui/src/test/resources/pdfs/minimal-polygon.pdf diff --git a/src/test/resources/pdfs/minimal-popup.pdf b/org.jabref.gui/src/test/resources/pdfs/minimal-popup.pdf similarity index 100% rename from src/test/resources/pdfs/minimal-popup.pdf rename to org.jabref.gui/src/test/resources/pdfs/minimal-popup.pdf diff --git a/src/test/resources/pdfs/minimal-squiggly.pdf b/org.jabref.gui/src/test/resources/pdfs/minimal-squiggly.pdf similarity index 100% rename from src/test/resources/pdfs/minimal-squiggly.pdf rename to org.jabref.gui/src/test/resources/pdfs/minimal-squiggly.pdf diff --git a/src/test/resources/pdfs/minimal-strikeout.pdf b/org.jabref.gui/src/test/resources/pdfs/minimal-strikeout.pdf similarity index 100% rename from src/test/resources/pdfs/minimal-strikeout.pdf rename to org.jabref.gui/src/test/resources/pdfs/minimal-strikeout.pdf diff --git a/src/test/resources/pdfs/minimal-underline.pdf b/org.jabref.gui/src/test/resources/pdfs/minimal-underline.pdf similarity index 100% rename from src/test/resources/pdfs/minimal-underline.pdf rename to org.jabref.gui/src/test/resources/pdfs/minimal-underline.pdf diff --git a/src/test/resources/pdfs/minimal.pdf b/org.jabref.gui/src/test/resources/pdfs/minimal.pdf similarity index 100% rename from src/test/resources/pdfs/minimal.pdf rename to org.jabref.gui/src/test/resources/pdfs/minimal.pdf diff --git a/src/test/resources/pdfs/thesis-example.pdf b/org.jabref.gui/src/test/resources/pdfs/thesis-example.pdf similarity index 100% rename from src/test/resources/pdfs/thesis-example.pdf rename to org.jabref.gui/src/test/resources/pdfs/thesis-example.pdf diff --git a/src/test/resources/pdfs/write-protected.docx b/org.jabref.gui/src/test/resources/pdfs/write-protected.docx similarity index 100% rename from src/test/resources/pdfs/write-protected.docx rename to org.jabref.gui/src/test/resources/pdfs/write-protected.docx diff --git a/src/test/resources/pdfs/write-protected.pdf b/org.jabref.gui/src/test/resources/pdfs/write-protected.pdf similarity index 100% rename from src/test/resources/pdfs/write-protected.pdf rename to org.jabref.gui/src/test/resources/pdfs/write-protected.pdf diff --git a/src/test/resources/testbib/articleWithTitle.bib b/org.jabref.gui/src/test/resources/testbib/articleWithTitle.bib similarity index 100% rename from src/test/resources/testbib/articleWithTitle.bib rename to org.jabref.gui/src/test/resources/testbib/articleWithTitle.bib diff --git a/src/test/resources/testbib/articleWithTitleAndFile.bib b/org.jabref.gui/src/test/resources/testbib/articleWithTitleAndFile.bib similarity index 100% rename from src/test/resources/testbib/articleWithTitleAndFile.bib rename to org.jabref.gui/src/test/resources/testbib/articleWithTitleAndFile.bib diff --git a/src/test/resources/testbib/bibWithMixedContent.bib b/org.jabref.gui/src/test/resources/testbib/bibWithMixedContent.bib similarity index 100% rename from src/test/resources/testbib/bibWithMixedContent.bib rename to org.jabref.gui/src/test/resources/testbib/bibWithMixedContent.bib diff --git a/src/test/resources/testbib/bibWithUserCommentAndEntryChange.bib b/org.jabref.gui/src/test/resources/testbib/bibWithUserCommentAndEntryChange.bib similarity index 100% rename from src/test/resources/testbib/bibWithUserCommentAndEntryChange.bib rename to org.jabref.gui/src/test/resources/testbib/bibWithUserCommentAndEntryChange.bib diff --git a/src/test/resources/testbib/bibWithUserComments.bib b/org.jabref.gui/src/test/resources/testbib/bibWithUserComments.bib similarity index 100% rename from src/test/resources/testbib/bibWithUserComments.bib rename to org.jabref.gui/src/test/resources/testbib/bibWithUserComments.bib diff --git a/src/test/resources/testbib/bug1283.bib b/org.jabref.gui/src/test/resources/testbib/bug1283.bib similarity index 100% rename from src/test/resources/testbib/bug1283.bib rename to org.jabref.gui/src/test/resources/testbib/bug1283.bib diff --git a/src/test/resources/testbib/cleanup.bib b/org.jabref.gui/src/test/resources/testbib/cleanup.bib similarity index 100% rename from src/test/resources/testbib/cleanup.bib rename to org.jabref.gui/src/test/resources/testbib/cleanup.bib diff --git a/src/test/resources/testbib/complex.bib b/org.jabref.gui/src/test/resources/testbib/complex.bib similarity index 100% rename from src/test/resources/testbib/complex.bib rename to org.jabref.gui/src/test/resources/testbib/complex.bib diff --git a/src/test/resources/testbib/crossref.bib b/org.jabref.gui/src/test/resources/testbib/crossref.bib similarity index 100% rename from src/test/resources/testbib/crossref.bib rename to org.jabref.gui/src/test/resources/testbib/crossref.bib diff --git a/src/test/resources/testbib/issue_181_1.8.0_51-b16.bib b/org.jabref.gui/src/test/resources/testbib/issue_181_1.8.0_51-b16.bib similarity index 100% rename from src/test/resources/testbib/issue_181_1.8.0_51-b16.bib rename to org.jabref.gui/src/test/resources/testbib/issue_181_1.8.0_51-b16.bib diff --git a/src/test/resources/testbib/issue_181_1.8.0_60-b27.bib b/org.jabref.gui/src/test/resources/testbib/issue_181_1.8.0_60-b27.bib similarity index 100% rename from src/test/resources/testbib/issue_181_1.8.0_60-b27.bib rename to org.jabref.gui/src/test/resources/testbib/issue_181_1.8.0_60-b27.bib diff --git a/src/test/resources/testbib/jabref-authors.bib b/org.jabref.gui/src/test/resources/testbib/jabref-authors.bib similarity index 100% rename from src/test/resources/testbib/jabref-authors.bib rename to org.jabref.gui/src/test/resources/testbib/jabref-authors.bib diff --git a/src/test/resources/testbib/othertype.bib b/org.jabref.gui/src/test/resources/testbib/othertype.bib similarity index 100% rename from src/test/resources/testbib/othertype.bib rename to org.jabref.gui/src/test/resources/testbib/othertype.bib diff --git a/src/test/resources/testbib/pdf-field-upgrade.bib b/org.jabref.gui/src/test/resources/testbib/pdf-field-upgrade.bib similarity index 100% rename from src/test/resources/testbib/pdf-field-upgrade.bib rename to org.jabref.gui/src/test/resources/testbib/pdf-field-upgrade.bib diff --git a/src/test/resources/testbib/reallyunknowntype.bib b/org.jabref.gui/src/test/resources/testbib/reallyunknowntype.bib similarity index 100% rename from src/test/resources/testbib/reallyunknowntype.bib rename to org.jabref.gui/src/test/resources/testbib/reallyunknowntype.bib diff --git a/src/test/resources/testbib/save-actions.bib b/org.jabref.gui/src/test/resources/testbib/save-actions.bib similarity index 100% rename from src/test/resources/testbib/save-actions.bib rename to org.jabref.gui/src/test/resources/testbib/save-actions.bib diff --git a/src/test/resources/testbib/saveactions2.bib b/org.jabref.gui/src/test/resources/testbib/saveactions2.bib similarity index 100% rename from src/test/resources/testbib/saveactions2.bib rename to org.jabref.gui/src/test/resources/testbib/saveactions2.bib diff --git a/src/test/resources/testbib/special-fields.bib b/org.jabref.gui/src/test/resources/testbib/special-fields.bib similarity index 100% rename from src/test/resources/testbib/special-fields.bib rename to org.jabref.gui/src/test/resources/testbib/special-fields.bib diff --git a/src/test/resources/testbib/testdocument.tex b/org.jabref.gui/src/test/resources/testbib/testdocument.tex similarity index 100% rename from src/test/resources/testbib/testdocument.tex rename to org.jabref.gui/src/test/resources/testbib/testdocument.tex diff --git a/src/test/resources/testbib/testjabref.bib b/org.jabref.gui/src/test/resources/testbib/testjabref.bib similarity index 100% rename from src/test/resources/testbib/testjabref.bib rename to org.jabref.gui/src/test/resources/testbib/testjabref.bib diff --git a/src/test/resources/testbib/testjabref_210as292.bib b/org.jabref.gui/src/test/resources/testbib/testjabref_210as292.bib similarity index 100% rename from src/test/resources/testbib/testjabref_210as292.bib rename to org.jabref.gui/src/test/resources/testbib/testjabref_210as292.bib diff --git a/src/test/resources/testbib/testjabref_292.bib b/org.jabref.gui/src/test/resources/testbib/testjabref_292.bib similarity index 100% rename from src/test/resources/testbib/testjabref_292.bib rename to org.jabref.gui/src/test/resources/testbib/testjabref_292.bib diff --git a/src/test/resources/testbib/unknownMetaData.bib b/org.jabref.gui/src/test/resources/testbib/unknownMetaData.bib similarity index 100% rename from src/test/resources/testbib/unknownMetaData.bib rename to org.jabref.gui/src/test/resources/testbib/unknownMetaData.bib diff --git a/src/test/resources/testbib/utf8-bom.bib b/org.jabref.gui/src/test/resources/testbib/utf8-bom.bib similarity index 100% rename from src/test/resources/testbib/utf8-bom.bib rename to org.jabref.gui/src/test/resources/testbib/utf8-bom.bib diff --git a/org.jabref.logic/build.gradle b/org.jabref.logic/build.gradle new file mode 100644 index 00000000000..36652d7ca89 --- /dev/null +++ b/org.jabref.logic/build.gradle @@ -0,0 +1,146 @@ +apply from: 'xjc.gradle' + +sourceSets { + main { + java { + srcDirs = ["src/main/java", "src/main/gen"] + } + + resources { + srcDirs = ["src/main/java", "src/main/resources"] + } + } +} + +jacoco { + toolVersion = '0.8.0' +} + +dependencies { + compile project(':org.jabref.model') + + compile 'org.json:json:20160212' + + compile 'org.antlr:antlr-runtime:3.5.2' + + // update to 2.0.x is not possible - see https://github.com/JabRef/jabref/pull/1096#issuecomment-208857517 + compile 'org.apache.pdfbox:pdfbox:1.8.13' + compile 'org.apache.pdfbox:jempbox:1.8.13' + + compile 'org.apache.commons:commons-lang3:3.6' + + compile "org.libreoffice:ridl:5.4.2" + compile "org.libreoffice:unoil:5.4.2" + + compile 'com.github.bkromhout:java-diff-utils:2.1.1' + compile 'info.debatty:java-string-similarity:1.0.1' + + compile 'com.google.guava:guava:24.0-jre' + + compile 'de.jensd:fontawesomefx-materialdesignfont:1.7.22-4' + + compile 'org.jsoup:jsoup:1.11.2' + compile 'com.mashape.unirest:unirest-java:1.4.9' + compile 'org.apache.httpcomponents:httpclient:4.5.3' + compile 'commons-io:commons-io:2.4' + + // >1.8.0-beta is required for java 9 compatibility + compile 'org.slf4j:slf4j-api:1.8.0-beta1' + compile 'org.apache.logging.log4j:log4j-api:2.10.0' + compile 'org.apache.logging.log4j:log4j-core:2.10.0' + runtime 'org.apache.logging.log4j:log4j-slf4j-impl:2.10.0' + runtime 'org.apache.logging.log4j:log4j-jcl:2.10.0' + + compile 'de.undercouch:citeproc-java:1.0.1' + compile 'org.jbibtex:jbibtex:1.0.17' + // need to use snapshots as the stable version is from 2013 and doesn't support v1.0.1 CitationStyles + runtime 'org.citationstyles:styles:1.0.1-SNAPSHOT' + runtime 'org.citationstyles:locales:1.0.1-SNAPSHOT' + + testCompile 'org.antlr:antlr-runtime:3.5.2' + testCompile 'com.github.tomakehurst:wiremock:2.14.0' + testCompile 'org.reflections:reflections:0.9.11' + testCompile 'org.xmlunit:xmlunit-core:2.5.1' + testCompile 'org.xmlunit:xmlunit-matchers:2.5.1' +} + +processResources { + filteringCharset = 'UTF-8' + + filesMatching("build.properties") { + expand(version: project.version, + "year": String.valueOf(Calendar.getInstance().get(Calendar.YEAR)), + "authors": rootProject.file('AUTHORS').readLines().findAll { !it.startsWith("#") }.join(", "), + "developers": rootProject.file('DEVELOPERS').readLines().findAll { !it.startsWith("#") }.join(", "), + "azureInstrumentationKey": System.getenv('AzureInstrumentationKey'), + "minRequiredJavaVersion": minRequiredJavaVersion, + "allowJava9": allowJava9 + + ) + filteringCharset = 'UTF-8' + } + + filesMatching("resource/**/meta.xml") { + expand version: project.version + } +} + +clean { + delete "src/main/gen" +} + +// Test tasks +junitPlatform { + logManager 'org.apache.logging.log4j.jul.LogManager' +} + +// Test result tasks +task copyTestResources(type: Copy) { + from "${projectDir}/src/test/resources" + into "${buildDir}/classes/test" +} +processTestResources.dependsOn copyTestResources + +tasks.withType(Test) { + reports.html.destination = file("${reporting.baseDir}/${name}") + + jacoco { + append = true + } +} + +task jacocoMerge(type: JacocoMerge) { + executionData file("$buildDir/jacoco/junitPlatformTest.exec") + dependsOn junitPlatformTest +} + +jacocoTestReport { + executionData jacocoMerge.destinationFile + dependsOn jacocoMerge + + reports { + xml.enabled = true // coveralls plugin depends on xml format report + html.enabled = true + } +} + +afterEvaluate { + def junitPlatformTest = tasks.junitPlatformTest + + jacoco { + applyTo(junitPlatformTest) + } + + task jacocoJunit5TestReport(type: JacocoReport) { + executionData jacocoMerge.destinationFile + dependsOn jacocoMerge + sourceSets sourceSets.main + sourceDirectories = files(sourceSets.main.allSource.srcDirs) + classDirectories = files(sourceSets.main.output) + + reports { + xml.enabled true + html.enabled true + } + } +} diff --git a/org.jabref.logic/config/checkstyle/checkstyle.xml b/org.jabref.logic/config/checkstyle/checkstyle.xml new file mode 100644 index 00000000000..20cbcee3f60 --- /dev/null +++ b/org.jabref.logic/config/checkstyle/checkstyle.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.jabref.logic/config/checkstyle/suppressions.xml b/org.jabref.logic/config/checkstyle/suppressions.xml new file mode 100644 index 00000000000..7e853704d9d --- /dev/null +++ b/org.jabref.logic/config/checkstyle/suppressions.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/org.jabref.logic/settings.gradle b/org.jabref.logic/settings.gradle new file mode 100644 index 00000000000..08cd0c3de41 --- /dev/null +++ b/org.jabref.logic/settings.gradle @@ -0,0 +1 @@ +include 'org.jabref.model' diff --git a/src/main/java/org/jabref/FallbackExceptionHandler.java b/org.jabref.logic/src/main/java/org/jabref/logic/FallbackExceptionHandler.java similarity index 95% rename from src/main/java/org/jabref/FallbackExceptionHandler.java rename to org.jabref.logic/src/main/java/org/jabref/logic/FallbackExceptionHandler.java index ef65037ee54..a588c956bdf 100644 --- a/src/main/java/org/jabref/FallbackExceptionHandler.java +++ b/org.jabref.logic/src/main/java/org/jabref/logic/FallbackExceptionHandler.java @@ -1,4 +1,4 @@ -package org.jabref; +package org.jabref.logic; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/org/jabref/JabRefException.java b/org.jabref.logic/src/main/java/org/jabref/logic/JabRefException.java similarity index 100% rename from src/main/java/org/jabref/JabRefException.java rename to org.jabref.logic/src/main/java/org/jabref/logic/JabRefException.java diff --git a/src/main/java/org/jabref/JabRefExecutorService.java b/org.jabref.logic/src/main/java/org/jabref/logic/JabRefExecutorService.java similarity index 99% rename from src/main/java/org/jabref/JabRefExecutorService.java rename to org.jabref.logic/src/main/java/org/jabref/logic/JabRefExecutorService.java index b9c4886c257..216807f34ed 100644 --- a/src/main/java/org/jabref/JabRefExecutorService.java +++ b/org.jabref.logic/src/main/java/org/jabref/logic/JabRefExecutorService.java @@ -14,6 +14,8 @@ import java.util.concurrent.Executors; import java.util.concurrent.Future; +import org.jabref.logic.FallbackExceptionHandler; + import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/org/jabref/logic/TypedBibEntry.java b/org.jabref.logic/src/main/java/org/jabref/logic/TypedBibEntry.java similarity index 100% rename from src/main/java/org/jabref/logic/TypedBibEntry.java rename to org.jabref.logic/src/main/java/org/jabref/logic/TypedBibEntry.java diff --git a/src/main/java/org/jabref/logic/auxparser/DefaultAuxParser.java b/org.jabref.logic/src/main/java/org/jabref/logic/auxparser/DefaultAuxParser.java similarity index 100% rename from src/main/java/org/jabref/logic/auxparser/DefaultAuxParser.java rename to org.jabref.logic/src/main/java/org/jabref/logic/auxparser/DefaultAuxParser.java diff --git a/src/main/java/org/jabref/logic/bibtex/BibEntryWriter.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/BibEntryWriter.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/BibEntryWriter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/BibEntryWriter.java diff --git a/src/main/java/org/jabref/logic/bibtex/DuplicateCheck.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/DuplicateCheck.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/DuplicateCheck.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/DuplicateCheck.java diff --git a/src/main/java/org/jabref/logic/bibtex/FieldContentParser.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/FieldContentParser.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/FieldContentParser.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/FieldContentParser.java diff --git a/src/main/java/org/jabref/logic/bibtex/FieldContentParserPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/FieldContentParserPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/FieldContentParserPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/FieldContentParserPreferences.java diff --git a/src/main/java/org/jabref/logic/bibtex/InvalidFieldValueException.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/InvalidFieldValueException.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/InvalidFieldValueException.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/InvalidFieldValueException.java diff --git a/src/main/java/org/jabref/logic/bibtex/LatexFieldFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/LatexFieldFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/LatexFieldFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/LatexFieldFormatter.java diff --git a/src/main/java/org/jabref/logic/bibtex/LatexFieldFormatterPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/LatexFieldFormatterPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/LatexFieldFormatterPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/LatexFieldFormatterPreferences.java diff --git a/src/main/java/org/jabref/logic/bibtex/comparator/BibDatabaseDiff.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/BibDatabaseDiff.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/comparator/BibDatabaseDiff.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/BibDatabaseDiff.java diff --git a/src/main/java/org/jabref/logic/bibtex/comparator/BibEntryDiff.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/BibEntryDiff.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/comparator/BibEntryDiff.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/BibEntryDiff.java diff --git a/src/main/java/org/jabref/logic/bibtex/comparator/BibStringDiff.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/BibStringDiff.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/comparator/BibStringDiff.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/BibStringDiff.java diff --git a/src/main/java/org/jabref/logic/bibtex/comparator/BibtexStringComparator.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/BibtexStringComparator.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/comparator/BibtexStringComparator.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/BibtexStringComparator.java diff --git a/src/main/java/org/jabref/logic/bibtex/comparator/CrossRefEntryComparator.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/CrossRefEntryComparator.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/comparator/CrossRefEntryComparator.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/CrossRefEntryComparator.java diff --git a/src/main/java/org/jabref/logic/bibtex/comparator/EntryComparator.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/EntryComparator.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/comparator/EntryComparator.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/EntryComparator.java diff --git a/src/main/java/org/jabref/logic/bibtex/comparator/FieldComparator.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/FieldComparator.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/comparator/FieldComparator.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/FieldComparator.java diff --git a/src/main/java/org/jabref/logic/bibtex/comparator/FieldComparatorStack.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/FieldComparatorStack.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/comparator/FieldComparatorStack.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/FieldComparatorStack.java diff --git a/src/main/java/org/jabref/logic/bibtex/comparator/GroupDiff.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/GroupDiff.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/comparator/GroupDiff.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/GroupDiff.java diff --git a/src/main/java/org/jabref/logic/bibtex/comparator/IdComparator.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/IdComparator.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/comparator/IdComparator.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/IdComparator.java diff --git a/src/main/java/org/jabref/logic/bibtex/comparator/MetaDataDiff.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/MetaDataDiff.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/comparator/MetaDataDiff.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/MetaDataDiff.java diff --git a/src/main/java/org/jabref/logic/bibtex/comparator/PreambleDiff.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/PreambleDiff.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtex/comparator/PreambleDiff.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtex/comparator/PreambleDiff.java diff --git a/src/main/java/org/jabref/logic/bibtexkeypattern/BibtexKeyGenerator.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtexkeypattern/BibtexKeyGenerator.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtexkeypattern/BibtexKeyGenerator.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtexkeypattern/BibtexKeyGenerator.java diff --git a/src/main/java/org/jabref/logic/bibtexkeypattern/BibtexKeyPatternPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtexkeypattern/BibtexKeyPatternPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtexkeypattern/BibtexKeyPatternPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtexkeypattern/BibtexKeyPatternPreferences.java diff --git a/src/main/java/org/jabref/logic/bibtexkeypattern/BracketedPattern.java b/org.jabref.logic/src/main/java/org/jabref/logic/bibtexkeypattern/BracketedPattern.java similarity index 100% rename from src/main/java/org/jabref/logic/bibtexkeypattern/BracketedPattern.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bibtexkeypattern/BracketedPattern.java diff --git a/src/main/java/org/jabref/logic/bst/BibtexCaseChanger.java b/org.jabref.logic/src/main/java/org/jabref/logic/bst/BibtexCaseChanger.java similarity index 100% rename from src/main/java/org/jabref/logic/bst/BibtexCaseChanger.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bst/BibtexCaseChanger.java diff --git a/src/main/java/org/jabref/logic/bst/BibtexNameFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/bst/BibtexNameFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/bst/BibtexNameFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bst/BibtexNameFormatter.java diff --git a/src/main/java/org/jabref/logic/bst/BibtexPurify.java b/org.jabref.logic/src/main/java/org/jabref/logic/bst/BibtexPurify.java similarity index 100% rename from src/main/java/org/jabref/logic/bst/BibtexPurify.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bst/BibtexPurify.java diff --git a/src/main/java/org/jabref/logic/bst/BibtexTextPrefix.java b/org.jabref.logic/src/main/java/org/jabref/logic/bst/BibtexTextPrefix.java similarity index 100% rename from src/main/java/org/jabref/logic/bst/BibtexTextPrefix.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bst/BibtexTextPrefix.java diff --git a/src/main/java/org/jabref/logic/bst/BibtexWidth.java b/org.jabref.logic/src/main/java/org/jabref/logic/bst/BibtexWidth.java similarity index 100% rename from src/main/java/org/jabref/logic/bst/BibtexWidth.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bst/BibtexWidth.java diff --git a/src/main/java/org/jabref/logic/bst/ChangeCaseFunction.java b/org.jabref.logic/src/main/java/org/jabref/logic/bst/ChangeCaseFunction.java similarity index 100% rename from src/main/java/org/jabref/logic/bst/ChangeCaseFunction.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bst/ChangeCaseFunction.java diff --git a/src/main/java/org/jabref/logic/bst/FormatNameFunction.java b/org.jabref.logic/src/main/java/org/jabref/logic/bst/FormatNameFunction.java similarity index 100% rename from src/main/java/org/jabref/logic/bst/FormatNameFunction.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bst/FormatNameFunction.java diff --git a/src/main/java/org/jabref/logic/bst/PurifyFunction.java b/org.jabref.logic/src/main/java/org/jabref/logic/bst/PurifyFunction.java similarity index 100% rename from src/main/java/org/jabref/logic/bst/PurifyFunction.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bst/PurifyFunction.java diff --git a/src/main/java/org/jabref/logic/bst/TextPrefixFunction.java b/org.jabref.logic/src/main/java/org/jabref/logic/bst/TextPrefixFunction.java similarity index 100% rename from src/main/java/org/jabref/logic/bst/TextPrefixFunction.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bst/TextPrefixFunction.java diff --git a/src/main/java/org/jabref/logic/bst/VM.java b/org.jabref.logic/src/main/java/org/jabref/logic/bst/VM.java similarity index 100% rename from src/main/java/org/jabref/logic/bst/VM.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bst/VM.java diff --git a/src/main/java/org/jabref/logic/bst/VMException.java b/org.jabref.logic/src/main/java/org/jabref/logic/bst/VMException.java similarity index 100% rename from src/main/java/org/jabref/logic/bst/VMException.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bst/VMException.java diff --git a/src/main/java/org/jabref/logic/bst/Warn.java b/org.jabref.logic/src/main/java/org/jabref/logic/bst/Warn.java similarity index 100% rename from src/main/java/org/jabref/logic/bst/Warn.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bst/Warn.java diff --git a/src/main/java/org/jabref/logic/bst/WidthFunction.java b/org.jabref.logic/src/main/java/org/jabref/logic/bst/WidthFunction.java similarity index 100% rename from src/main/java/org/jabref/logic/bst/WidthFunction.java rename to org.jabref.logic/src/main/java/org/jabref/logic/bst/WidthFunction.java diff --git a/src/main/java/org/jabref/logic/citationstyle/CSLAdapter.java b/org.jabref.logic/src/main/java/org/jabref/logic/citationstyle/CSLAdapter.java similarity index 100% rename from src/main/java/org/jabref/logic/citationstyle/CSLAdapter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/citationstyle/CSLAdapter.java diff --git a/src/main/java/org/jabref/logic/citationstyle/CitationStyle.java b/org.jabref.logic/src/main/java/org/jabref/logic/citationstyle/CitationStyle.java similarity index 100% rename from src/main/java/org/jabref/logic/citationstyle/CitationStyle.java rename to org.jabref.logic/src/main/java/org/jabref/logic/citationstyle/CitationStyle.java diff --git a/src/main/java/org/jabref/logic/citationstyle/CitationStyleCache.java b/org.jabref.logic/src/main/java/org/jabref/logic/citationstyle/CitationStyleCache.java similarity index 100% rename from src/main/java/org/jabref/logic/citationstyle/CitationStyleCache.java rename to org.jabref.logic/src/main/java/org/jabref/logic/citationstyle/CitationStyleCache.java diff --git a/src/main/java/org/jabref/logic/citationstyle/CitationStyleGenerator.java b/org.jabref.logic/src/main/java/org/jabref/logic/citationstyle/CitationStyleGenerator.java similarity index 100% rename from src/main/java/org/jabref/logic/citationstyle/CitationStyleGenerator.java rename to org.jabref.logic/src/main/java/org/jabref/logic/citationstyle/CitationStyleGenerator.java diff --git a/src/main/java/org/jabref/logic/citationstyle/CitationStyleOutputFormat.java b/org.jabref.logic/src/main/java/org/jabref/logic/citationstyle/CitationStyleOutputFormat.java similarity index 100% rename from src/main/java/org/jabref/logic/citationstyle/CitationStyleOutputFormat.java rename to org.jabref.logic/src/main/java/org/jabref/logic/citationstyle/CitationStyleOutputFormat.java diff --git a/src/main/java/org/jabref/logic/cleanup/CleanupPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/CleanupPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/cleanup/CleanupPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/cleanup/CleanupPreferences.java diff --git a/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/CleanupPreset.java b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/CleanupPreset.java new file mode 100644 index 00000000000..06db606b591 --- /dev/null +++ b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/CleanupPreset.java @@ -0,0 +1,106 @@ +package org.jabref.logic.cleanup; + +import java.util.ArrayList; +import java.util.EnumSet; +import java.util.Objects; +import java.util.Set; + +import org.jabref.model.cleanup.FieldFormatterCleanups; + +public class CleanupPreset { + + private final Set activeJobs; + private final FieldFormatterCleanups formatterCleanups; + + + public CleanupPreset(Set activeJobs) { + this(activeJobs, new FieldFormatterCleanups(false, new ArrayList<>())); + } + + public CleanupPreset(CleanupStep activeJob) { + this(EnumSet.of(activeJob)); + } + + public CleanupPreset(FieldFormatterCleanups formatterCleanups) { + this(EnumSet.noneOf(CleanupStep.class), formatterCleanups); + } + + public CleanupPreset(Set activeJobs, FieldFormatterCleanups formatterCleanups) { + this.activeJobs = activeJobs; + this.formatterCleanups = Objects.requireNonNull(formatterCleanups); + } + + public boolean isCleanUpUpgradeExternalLinks() { + return isActive(CleanupStep.CLEAN_UP_UPGRADE_EXTERNAL_LINKS); + } + + public boolean isCleanUpDOI() { + return isActive(CleanupStep.CLEAN_UP_DOI); + } + + public boolean isCleanUpISSN() { + return isActive(CleanupStep.CLEAN_UP_ISSN); + } + + public boolean isFixFileLinks() { + return isActive(CleanupStep.FIX_FILE_LINKS); + } + + public boolean isMovePDF() { + return isActive(CleanupStep.MOVE_PDF); + } + + public boolean isMakePathsRelative() { + return isActive(CleanupStep.MAKE_PATHS_RELATIVE); + } + + public boolean isRenamePDF() { + return isActive(CleanupStep.RENAME_PDF) || isActive(CleanupStep.RENAME_PDF_ONLY_RELATIVE_PATHS); + } + + public boolean isConvertToBiblatex() { + return isActive(CleanupStep.CONVERT_TO_BIBLATEX); + } + + public boolean isConvertToBibtex() { + return isActive(CleanupStep.CONVERT_TO_BIBTEX); + } + + public boolean isRenamePdfOnlyRelativePaths() { + return isActive(CleanupStep.RENAME_PDF_ONLY_RELATIVE_PATHS); + } + + public Boolean isActive(CleanupStep step) { + return activeJobs.contains(step); + } + + public FieldFormatterCleanups getFormatterCleanups() { + return formatterCleanups; + } + + public enum CleanupStep { + /** + * Removes the http://... for each DOI. Moves DOIs from URL and NOTE filed to DOI field. + */ + CLEAN_UP_DOI, + MAKE_PATHS_RELATIVE, + RENAME_PDF, + RENAME_PDF_ONLY_RELATIVE_PATHS, + /** + * Collects file links from the pdf or ps field, and adds them to the list contained in the file field. + */ + CLEAN_UP_UPGRADE_EXTERNAL_LINKS, + /** + * Converts to biblatex format + */ + CONVERT_TO_BIBLATEX, + /** + * Converts to bibtex format + */ + CONVERT_TO_BIBTEX, + MOVE_PDF, + FIX_FILE_LINKS, + CLEAN_UP_ISSN + } + +} diff --git a/src/main/java/org/jabref/logic/cleanup/CleanupWorker.java b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/CleanupWorker.java similarity index 100% rename from src/main/java/org/jabref/logic/cleanup/CleanupWorker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/cleanup/CleanupWorker.java diff --git a/src/main/java/org/jabref/logic/cleanup/Cleanups.java b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/Cleanups.java similarity index 100% rename from src/main/java/org/jabref/logic/cleanup/Cleanups.java rename to org.jabref.logic/src/main/java/org/jabref/logic/cleanup/Cleanups.java diff --git a/src/main/java/org/jabref/logic/cleanup/ConvertToBiblatexCleanup.java b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/ConvertToBiblatexCleanup.java similarity index 100% rename from src/main/java/org/jabref/logic/cleanup/ConvertToBiblatexCleanup.java rename to org.jabref.logic/src/main/java/org/jabref/logic/cleanup/ConvertToBiblatexCleanup.java diff --git a/src/main/java/org/jabref/logic/cleanup/ConvertToBibtexCleanup.java b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/ConvertToBibtexCleanup.java similarity index 100% rename from src/main/java/org/jabref/logic/cleanup/ConvertToBibtexCleanup.java rename to org.jabref.logic/src/main/java/org/jabref/logic/cleanup/ConvertToBibtexCleanup.java diff --git a/src/main/java/org/jabref/logic/cleanup/DoiCleanup.java b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/DoiCleanup.java similarity index 100% rename from src/main/java/org/jabref/logic/cleanup/DoiCleanup.java rename to org.jabref.logic/src/main/java/org/jabref/logic/cleanup/DoiCleanup.java diff --git a/src/main/java/org/jabref/logic/cleanup/FileLinksCleanup.java b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/FileLinksCleanup.java similarity index 100% rename from src/main/java/org/jabref/logic/cleanup/FileLinksCleanup.java rename to org.jabref.logic/src/main/java/org/jabref/logic/cleanup/FileLinksCleanup.java diff --git a/src/main/java/org/jabref/logic/cleanup/ISSNCleanup.java b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/ISSNCleanup.java similarity index 100% rename from src/main/java/org/jabref/logic/cleanup/ISSNCleanup.java rename to org.jabref.logic/src/main/java/org/jabref/logic/cleanup/ISSNCleanup.java diff --git a/src/main/java/org/jabref/logic/cleanup/MoveFieldCleanup.java b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/MoveFieldCleanup.java similarity index 100% rename from src/main/java/org/jabref/logic/cleanup/MoveFieldCleanup.java rename to org.jabref.logic/src/main/java/org/jabref/logic/cleanup/MoveFieldCleanup.java diff --git a/src/main/java/org/jabref/logic/cleanup/MoveFilesCleanup.java b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/MoveFilesCleanup.java similarity index 100% rename from src/main/java/org/jabref/logic/cleanup/MoveFilesCleanup.java rename to org.jabref.logic/src/main/java/org/jabref/logic/cleanup/MoveFilesCleanup.java diff --git a/src/main/java/org/jabref/logic/cleanup/RelativePathsCleanup.java b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/RelativePathsCleanup.java similarity index 100% rename from src/main/java/org/jabref/logic/cleanup/RelativePathsCleanup.java rename to org.jabref.logic/src/main/java/org/jabref/logic/cleanup/RelativePathsCleanup.java diff --git a/src/main/java/org/jabref/logic/cleanup/RenamePdfCleanup.java b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/RenamePdfCleanup.java similarity index 100% rename from src/main/java/org/jabref/logic/cleanup/RenamePdfCleanup.java rename to org.jabref.logic/src/main/java/org/jabref/logic/cleanup/RenamePdfCleanup.java diff --git a/src/main/java/org/jabref/logic/cleanup/UpgradePdfPsToFileCleanup.java b/org.jabref.logic/src/main/java/org/jabref/logic/cleanup/UpgradePdfPsToFileCleanup.java similarity index 100% rename from src/main/java/org/jabref/logic/cleanup/UpgradePdfPsToFileCleanup.java rename to org.jabref.logic/src/main/java/org/jabref/logic/cleanup/UpgradePdfPsToFileCleanup.java diff --git a/src/main/java/org/jabref/logic/exporter/BibDatabaseWriter.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/BibDatabaseWriter.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/BibDatabaseWriter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/BibDatabaseWriter.java diff --git a/src/main/java/org/jabref/logic/exporter/BibTeXMLExporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/BibTeXMLExporter.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/BibTeXMLExporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/BibTeXMLExporter.java diff --git a/src/main/java/org/jabref/logic/exporter/BibtexDatabaseWriter.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/BibtexDatabaseWriter.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/BibtexDatabaseWriter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/BibtexDatabaseWriter.java diff --git a/src/main/java/org/jabref/logic/exporter/Exporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/Exporter.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/Exporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/Exporter.java diff --git a/src/main/java/org/jabref/logic/exporter/ExporterFactory.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/ExporterFactory.java similarity index 88% rename from src/main/java/org/jabref/logic/exporter/ExporterFactory.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/ExporterFactory.java index 5eb9145f6c5..69289612fd1 100644 --- a/src/main/java/org/jabref/logic/exporter/ExporterFactory.java +++ b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/ExporterFactory.java @@ -8,10 +8,8 @@ import java.util.Objects; import java.util.Optional; -import org.jabref.logic.journals.JournalAbbreviationLoader; import org.jabref.logic.layout.LayoutFormatterPreferences; import org.jabref.logic.util.FileType; -import org.jabref.preferences.JabRefPreferences; public class ExporterFactory { @@ -61,13 +59,6 @@ public static ExporterFactory create(Map customFormats return new ExporterFactory(exporters); } - public static ExporterFactory create(JabRefPreferences preferences, JournalAbbreviationLoader abbreviationLoader) { - Map customFormats = preferences.customExports.getCustomExportFormats(preferences, abbreviationLoader); - LayoutFormatterPreferences layoutPreferences = preferences.getLayoutFormatterPreferences(abbreviationLoader); - SavePreferences savePreferences = SavePreferences.loadForExportFromPreferences(preferences); - return create(customFormats, layoutPreferences, savePreferences); - } - /** * Build a string listing of all available exporters. * diff --git a/src/main/java/org/jabref/logic/exporter/FileSaveSession.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/FileSaveSession.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/FileSaveSession.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/FileSaveSession.java diff --git a/src/main/java/org/jabref/logic/exporter/GroupSerializer.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/GroupSerializer.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/GroupSerializer.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/GroupSerializer.java diff --git a/src/main/java/org/jabref/logic/exporter/MSBibExporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/MSBibExporter.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/MSBibExporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/MSBibExporter.java diff --git a/src/main/java/org/jabref/logic/exporter/MetaDataSerializer.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/MetaDataSerializer.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/MetaDataSerializer.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/MetaDataSerializer.java diff --git a/src/main/java/org/jabref/logic/exporter/ModsExporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/ModsExporter.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/ModsExporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/ModsExporter.java diff --git a/src/main/java/org/jabref/logic/exporter/OOCalcDatabase.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/OOCalcDatabase.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/OOCalcDatabase.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/OOCalcDatabase.java diff --git a/src/main/java/org/jabref/logic/exporter/OpenDocumentRepresentation.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/OpenDocumentRepresentation.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/OpenDocumentRepresentation.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/OpenDocumentRepresentation.java diff --git a/src/main/java/org/jabref/logic/exporter/OpenDocumentSpreadsheetCreator.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/OpenDocumentSpreadsheetCreator.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/OpenDocumentSpreadsheetCreator.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/OpenDocumentSpreadsheetCreator.java diff --git a/src/main/java/org/jabref/logic/exporter/OpenOfficeDocumentCreator.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/OpenOfficeDocumentCreator.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/OpenOfficeDocumentCreator.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/OpenOfficeDocumentCreator.java diff --git a/src/main/java/org/jabref/logic/exporter/SaveException.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/SaveException.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/SaveException.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/SaveException.java diff --git a/src/main/java/org/jabref/logic/exporter/SavePreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/SavePreferences.java similarity index 66% rename from src/main/java/org/jabref/logic/exporter/SavePreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/SavePreferences.java index 817868a1a64..c9d68b0c7b6 100644 --- a/src/main/java/org/jabref/logic/exporter/SavePreferences.java +++ b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/SavePreferences.java @@ -6,7 +6,6 @@ import org.jabref.logic.bibtex.LatexFieldFormatterPreferences; import org.jabref.model.bibtexkeypattern.GlobalBibtexKeyPattern; import org.jabref.model.metadata.SaveOrderConfig; -import org.jabref.preferences.JabRefPreferences; public class SavePreferences { @@ -42,41 +41,6 @@ public SavePreferences(Boolean saveInOriginalOrder, SaveOrderConfig saveOrder, C this.globalCiteKeyPattern = globalCiteKeyPattern; } - public static SavePreferences loadForExportFromPreferences(JabRefPreferences preferences) { - Boolean saveInOriginalOrder = preferences.getBoolean(JabRefPreferences.EXPORT_IN_ORIGINAL_ORDER); - SaveOrderConfig saveOrder = null; - if (!saveInOriginalOrder) { - if (preferences.getBoolean(JabRefPreferences.EXPORT_IN_SPECIFIED_ORDER)) { - saveOrder = preferences.loadExportSaveOrder(); - } else { - saveOrder = preferences.loadTableSaveOrder(); - } - } - Charset encoding = preferences.getDefaultEncoding(); - Boolean makeBackup = preferences.getBoolean(JabRefPreferences.BACKUP); - DatabaseSaveType saveType = DatabaseSaveType.ALL; - Boolean takeMetadataSaveOrderInAccount = false; - Boolean reformatFile = preferences.getBoolean(JabRefPreferences.REFORMAT_FILE_ON_SAVE_AND_EXPORT); - LatexFieldFormatterPreferences latexFieldFormatterPreferences = preferences.getLatexFieldFormatterPreferences(); - GlobalBibtexKeyPattern globalCiteKeyPattern = preferences.getKeyPattern(); - return new SavePreferences(saveInOriginalOrder, saveOrder, encoding, makeBackup, saveType, - takeMetadataSaveOrderInAccount, reformatFile, latexFieldFormatterPreferences, globalCiteKeyPattern); - } - - public static SavePreferences loadForSaveFromPreferences(JabRefPreferences preferences) { - Boolean saveInOriginalOrder = false; - SaveOrderConfig saveOrder = null; - Charset encoding = preferences.getDefaultEncoding(); - Boolean makeBackup = preferences.getBoolean(JabRefPreferences.BACKUP); - DatabaseSaveType saveType = DatabaseSaveType.ALL; - Boolean takeMetadataSaveOrderInAccount = true; - Boolean reformatFile = preferences.getBoolean(JabRefPreferences.REFORMAT_FILE_ON_SAVE_AND_EXPORT); - LatexFieldFormatterPreferences latexFieldFormatterPreferences = preferences.getLatexFieldFormatterPreferences(); - GlobalBibtexKeyPattern globalCiteKeyPattern = preferences.getKeyPattern(); - return new SavePreferences(saveInOriginalOrder, saveOrder, encoding, makeBackup, saveType, - takeMetadataSaveOrderInAccount, reformatFile, latexFieldFormatterPreferences, globalCiteKeyPattern); - } - public Boolean getTakeMetadataSaveOrderInAccount() { return takeMetadataSaveOrderInAccount; } diff --git a/src/main/java/org/jabref/logic/exporter/SaveSession.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/SaveSession.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/SaveSession.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/SaveSession.java diff --git a/src/main/java/org/jabref/logic/exporter/StringSaveSession.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/StringSaveSession.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/StringSaveSession.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/StringSaveSession.java diff --git a/src/main/java/org/jabref/logic/exporter/TemplateExporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/TemplateExporter.java similarity index 99% rename from src/main/java/org/jabref/logic/exporter/TemplateExporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/TemplateExporter.java index a37044ed1f3..ac576979dd8 100644 --- a/src/main/java/org/jabref/logic/exporter/TemplateExporter.java +++ b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/TemplateExporter.java @@ -16,7 +16,6 @@ import java.util.Objects; import java.util.regex.Pattern; -import org.jabref.JabRefMain; import org.jabref.logic.layout.Layout; import org.jabref.logic.layout.LayoutFormatterPreferences; import org.jabref.logic.layout.LayoutHelper; @@ -43,7 +42,7 @@ public class TemplateExporter extends Exporter { private static final Pattern BLANK_LINE_MATCHER = Pattern.compile("(?m)^\\s"); private static final Logger LOGGER = LoggerFactory.getLogger(TemplateExporter.class); - + private final String lfFileName; private final String directory; private final LayoutFormatterPreferences layoutPreferences; @@ -172,7 +171,7 @@ private Reader getReader(String filename) throws IOException { String name = dir + filename; Reader reader; // Try loading as a resource first. This works for files inside the JAR: - URL reso = JabRefMain.class.getResource(name); + URL reso = TemplateExporter.class.getResource(name); // If that did not work, try loading as a normal file URL: try { diff --git a/src/main/java/org/jabref/logic/exporter/VerifyingWriter.java b/org.jabref.logic/src/main/java/org/jabref/logic/exporter/VerifyingWriter.java similarity index 100% rename from src/main/java/org/jabref/logic/exporter/VerifyingWriter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/exporter/VerifyingWriter.java diff --git a/src/main/java/org/jabref/logic/formatter/Formatters.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/Formatters.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/Formatters.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/Formatters.java diff --git a/src/main/java/org/jabref/logic/formatter/IdentityFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/IdentityFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/IdentityFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/IdentityFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/ClearFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/ClearFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/ClearFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/ClearFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/EscapeUnderscoresFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/EscapeUnderscoresFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/EscapeUnderscoresFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/EscapeUnderscoresFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/HtmlToLatexFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/HtmlToLatexFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/HtmlToLatexFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/HtmlToLatexFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/HtmlToUnicodeFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/HtmlToUnicodeFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/HtmlToUnicodeFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/HtmlToUnicodeFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/LatexCleanupFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/LatexCleanupFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/LatexCleanupFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/LatexCleanupFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeDateFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeDateFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeDateFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeDateFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeMonthFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeMonthFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeMonthFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeMonthFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeNamesFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeNamesFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeNamesFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizeNamesFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizePagesFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizePagesFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizePagesFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/NormalizePagesFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/OrdinalsToSuperscriptFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/OrdinalsToSuperscriptFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/OrdinalsToSuperscriptFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/OrdinalsToSuperscriptFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/RegexFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/RegexFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/RegexFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/RegexFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveBracesFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveBracesFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveBracesFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveBracesFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveHyphenatedNewlinesFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveHyphenatedNewlinesFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveHyphenatedNewlinesFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveHyphenatedNewlinesFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveNewlinesFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveNewlinesFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveNewlinesFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/RemoveNewlinesFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/UnicodeToLatexFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/UnicodeToLatexFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/UnicodeToLatexFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/UnicodeToLatexFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/bibtexfields/UnitsToLatexFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/UnitsToLatexFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/bibtexfields/UnitsToLatexFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/bibtexfields/UnitsToLatexFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/casechanger/CapitalizeFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/CapitalizeFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/casechanger/CapitalizeFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/CapitalizeFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/casechanger/LowerCaseFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/LowerCaseFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/casechanger/LowerCaseFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/LowerCaseFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/casechanger/ProtectTermsFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/ProtectTermsFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/casechanger/ProtectTermsFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/ProtectTermsFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/casechanger/SentenceCaseFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/SentenceCaseFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/casechanger/SentenceCaseFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/SentenceCaseFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/casechanger/Title.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/Title.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/casechanger/Title.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/Title.java diff --git a/src/main/java/org/jabref/logic/formatter/casechanger/TitleCaseFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/TitleCaseFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/casechanger/TitleCaseFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/TitleCaseFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/casechanger/TitleParser.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/TitleParser.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/casechanger/TitleParser.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/TitleParser.java diff --git a/src/main/java/org/jabref/logic/formatter/casechanger/UpperCaseFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/UpperCaseFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/casechanger/UpperCaseFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/UpperCaseFormatter.java diff --git a/src/main/java/org/jabref/logic/formatter/casechanger/Word.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/Word.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/casechanger/Word.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/casechanger/Word.java diff --git a/src/main/java/org/jabref/logic/formatter/minifier/MinifyNameListFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/formatter/minifier/MinifyNameListFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/formatter/minifier/MinifyNameListFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/formatter/minifier/MinifyNameListFormatter.java diff --git a/src/main/java/org/jabref/logic/groups/DefaultGroupsFactory.java b/org.jabref.logic/src/main/java/org/jabref/logic/groups/DefaultGroupsFactory.java similarity index 100% rename from src/main/java/org/jabref/logic/groups/DefaultGroupsFactory.java rename to org.jabref.logic/src/main/java/org/jabref/logic/groups/DefaultGroupsFactory.java diff --git a/src/main/java/org/jabref/logic/help/HelpFile.java b/org.jabref.logic/src/main/java/org/jabref/logic/help/HelpFile.java similarity index 100% rename from src/main/java/org/jabref/logic/help/HelpFile.java rename to org.jabref.logic/src/main/java/org/jabref/logic/help/HelpFile.java diff --git a/src/main/java/org/jabref/logic/importer/EntryBasedFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/EntryBasedFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/EntryBasedFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/EntryBasedFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/EntryBasedParserFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/EntryBasedParserFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/EntryBasedParserFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/EntryBasedParserFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/FetcherException.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/FetcherException.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/FetcherException.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/FetcherException.java diff --git a/src/main/java/org/jabref/logic/importer/FulltextFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/FulltextFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/FulltextFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/FulltextFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/FulltextFetchers.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/FulltextFetchers.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/FulltextFetchers.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/FulltextFetchers.java diff --git a/src/main/java/org/jabref/logic/importer/IdBasedFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/IdBasedFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/IdBasedFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/IdBasedFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/IdBasedParserFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/IdBasedParserFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/IdBasedParserFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/IdBasedParserFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/IdFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/IdFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/IdFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/IdFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/IdParserFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/IdParserFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/IdParserFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/IdParserFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/ImportException.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/ImportException.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/ImportException.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/ImportException.java diff --git a/src/main/java/org/jabref/logic/importer/ImportFormatPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/ImportFormatPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/ImportFormatPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/ImportFormatPreferences.java diff --git a/src/main/java/org/jabref/logic/importer/ImportFormatReader.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/ImportFormatReader.java similarity index 99% rename from src/main/java/org/jabref/logic/importer/ImportFormatReader.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/ImportFormatReader.java index 6e7c31415b8..05564b7cc4d 100644 --- a/src/main/java/org/jabref/logic/importer/ImportFormatReader.java +++ b/org.jabref.logic/src/main/java/org/jabref/logic/importer/ImportFormatReader.java @@ -61,7 +61,7 @@ public void resetImportFormats(ImportFormatPreferences newImportFormatPreference formats.add(new IsiImporter()); formats.add(new MedlineImporter()); formats.add(new MedlinePlainImporter()); - formats.add(new ModsImporter()); + formats.add(new ModsImporter(importFormatPreferences)); formats.add(new MsBibImporter()); formats.add(new OvidImporter()); formats.add(new PdfContentImporter(importFormatPreferences)); diff --git a/src/main/java/org/jabref/logic/importer/ImportInspector.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/ImportInspector.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/ImportInspector.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/ImportInspector.java diff --git a/src/main/java/org/jabref/logic/importer/Importer.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/Importer.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/Importer.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/Importer.java diff --git a/src/main/java/org/jabref/logic/importer/OpenDatabase.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/OpenDatabase.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/OpenDatabase.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/OpenDatabase.java diff --git a/src/main/java/org/jabref/logic/importer/OutputPrinter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/OutputPrinter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/OutputPrinter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/OutputPrinter.java diff --git a/src/main/java/org/jabref/logic/importer/ParseException.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/ParseException.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/ParseException.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/ParseException.java diff --git a/src/main/java/org/jabref/logic/importer/Parser.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/Parser.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/Parser.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/Parser.java diff --git a/src/main/java/org/jabref/logic/importer/ParserResult.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/ParserResult.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/ParserResult.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/ParserResult.java diff --git a/src/main/java/org/jabref/logic/importer/SearchBasedFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/SearchBasedFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/SearchBasedFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/SearchBasedFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/SearchBasedParserFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/SearchBasedParserFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/SearchBasedParserFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/SearchBasedParserFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/WebFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/WebFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/WebFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/WebFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/WebFetchers.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/WebFetchers.java similarity index 98% rename from src/main/java/org/jabref/logic/importer/WebFetchers.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/WebFetchers.java index 6dbafe67896..07ecf3b54a9 100644 --- a/src/main/java/org/jabref/logic/importer/WebFetchers.java +++ b/org.jabref.logic/src/main/java/org/jabref/logic/importer/WebFetchers.java @@ -96,7 +96,7 @@ public static List getIdBasedFetchers(ImportFormatPreferences im list.add(new TitleFetcher(importFormatPreferences)); list.add(new MathSciNet(importFormatPreferences)); list.add(new CrossRef()); - list.add(new LibraryOfCongress()); + list.add(new LibraryOfCongress(importFormatPreferences)); list.add(new IacrEprintFetcher(importFormatPreferences)); list.sort(Comparator.comparing(WebFetcher::getName)); return list; diff --git a/src/main/java/org/jabref/logic/importer/fetcher/ACS.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/ACS.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/ACS.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/ACS.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/AbstractIsbnFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/AbstractIsbnFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/AbstractIsbnFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/AbstractIsbnFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/ArXiv.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/ArXiv.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/ArXiv.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/ArXiv.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/AstrophysicsDataSystem.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/AstrophysicsDataSystem.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/AstrophysicsDataSystem.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/AstrophysicsDataSystem.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/BibsonomyScraper.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/BibsonomyScraper.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/BibsonomyScraper.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/BibsonomyScraper.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/CrossRef.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/CrossRef.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/CrossRef.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/CrossRef.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/DBLPFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/DBLPFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/DBLPFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/DBLPFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/DiVA.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/DiVA.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/DiVA.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/DiVA.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/DoiFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/DoiFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/DoiFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/DoiFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/DoiResolution.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/DoiResolution.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/DoiResolution.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/DoiResolution.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/GoogleScholar.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/GoogleScholar.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/GoogleScholar.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/GoogleScholar.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/GvkFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/GvkFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/GvkFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/GvkFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/IEEE.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/IEEE.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/IEEE.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/IEEE.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/IacrEprintFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/IacrEprintFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/IacrEprintFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/IacrEprintFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/IsbnFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/IsbnFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/IsbnFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/IsbnFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/IsbnViaChimboriFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/IsbnViaChimboriFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/IsbnViaChimboriFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/IsbnViaChimboriFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/IsbnViaEbookDeFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/IsbnViaEbookDeFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/IsbnViaEbookDeFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/IsbnViaEbookDeFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/LibraryOfCongress.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/LibraryOfCongress.java similarity index 74% rename from src/main/java/org/jabref/logic/importer/fetcher/LibraryOfCongress.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/LibraryOfCongress.java index 60ca3bc13d8..2db7bce827e 100644 --- a/src/main/java/org/jabref/logic/importer/fetcher/LibraryOfCongress.java +++ b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/LibraryOfCongress.java @@ -6,6 +6,7 @@ import org.jabref.logic.importer.FetcherException; import org.jabref.logic.importer.IdBasedParserFetcher; +import org.jabref.logic.importer.ImportFormatPreferences; import org.jabref.logic.importer.Parser; import org.jabref.logic.importer.fileformat.ModsImporter; @@ -16,6 +17,12 @@ */ public class LibraryOfCongress implements IdBasedParserFetcher { + private final ImportFormatPreferences importFormatPreferences; + + public LibraryOfCongress(ImportFormatPreferences importFormatPreferences) { + this.importFormatPreferences = importFormatPreferences; + } + @Override public String getName() { return "Library of Congress"; @@ -29,6 +36,6 @@ public URL getURLForID(String identifier) throws URISyntaxException, MalformedUR @Override public Parser getParser() { - return new ModsImporter(); + return new ModsImporter(this.importFormatPreferences); } } diff --git a/src/main/java/org/jabref/logic/importer/fetcher/MathSciNet.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/MathSciNet.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/MathSciNet.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/MathSciNet.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/MedlineFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/MedlineFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/MedlineFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/MedlineFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/MrDLibFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/MrDLibFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/MrDLibFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/MrDLibFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/OpenAccessDoi.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/OpenAccessDoi.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/OpenAccessDoi.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/OpenAccessDoi.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/ScienceDirect.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/ScienceDirect.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/ScienceDirect.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/ScienceDirect.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/SpringerLink.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/SpringerLink.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/SpringerLink.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/SpringerLink.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/TitleFetcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/TitleFetcher.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/TitleFetcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/TitleFetcher.java diff --git a/src/main/java/org/jabref/logic/importer/fetcher/zbMATH.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/zbMATH.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fetcher/zbMATH.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fetcher/zbMATH.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/BibTeXMLImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/BibTeXMLImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/BibTeXMLImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/BibTeXMLImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/BiblioscapeImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/BiblioscapeImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/BiblioscapeImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/BiblioscapeImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/BibtexImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/BibtexImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/BibtexImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/BibtexImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/BibtexParser.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/BibtexParser.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/BibtexParser.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/BibtexParser.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/CopacImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/CopacImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/CopacImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/CopacImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/CustomImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/CustomImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/CustomImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/CustomImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/EndnoteImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/EndnoteImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/EndnoteImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/EndnoteImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/FreeCiteImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/FreeCiteImporter.java similarity index 95% rename from src/main/java/org/jabref/logic/importer/fileformat/FreeCiteImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/FreeCiteImporter.java index 0beeb312251..97411b53cf9 100644 --- a/src/main/java/org/jabref/logic/importer/fileformat/FreeCiteImporter.java +++ b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/FreeCiteImporter.java @@ -19,8 +19,6 @@ import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; -import org.jabref.JabRefGUI; -import org.jabref.logic.bibtexkeypattern.BibtexKeyGenerator; import org.jabref.logic.importer.ImportFormatPreferences; import org.jabref.logic.importer.Importer; import org.jabref.logic.importer.ParserResult; @@ -202,13 +200,6 @@ public ParserResult importEntries(String text) { // has to be done before label generation as label generation is dependent on entry type e.setType(type); - // autogenerate label (BibTeX key) - if (JabRefGUI.getMainFrame() != null) { - // only possible in GUI mode - new BibtexKeyGenerator(JabRefGUI.getMainFrame().getCurrentBasePanel().getBibDatabaseContext(), importFormatPreferences.getBibtexKeyPatternPreferences()) - .generateAndSetKey(e); - } - res.add(e); } parser.next(); diff --git a/src/main/java/org/jabref/logic/importer/fileformat/GvkParser.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/GvkParser.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/GvkParser.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/GvkParser.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/InspecImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/InspecImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/InspecImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/InspecImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/IsiImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/IsiImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/IsiImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/IsiImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/MedlineImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/MedlineImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/MedlineImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/MedlineImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/MedlinePlainImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/MedlinePlainImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/MedlinePlainImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/MedlinePlainImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/ModsImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/ModsImporter.java similarity index 98% rename from src/main/java/org/jabref/logic/importer/fileformat/ModsImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/ModsImporter.java index 1a4c3b940c3..81d3b45d55e 100644 --- a/src/main/java/org/jabref/logic/importer/fileformat/ModsImporter.java +++ b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/ModsImporter.java @@ -20,6 +20,7 @@ import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; +import org.jabref.logic.importer.ImportFormatPreferences; import org.jabref.logic.importer.Importer; import org.jabref.logic.importer.ParseException; import org.jabref.logic.importer.Parser; @@ -56,7 +57,6 @@ import org.jabref.logic.util.FileType; import org.jabref.model.entry.BibEntry; import org.jabref.model.entry.FieldName; -import org.jabref.preferences.JabRefPreferences; import com.google.common.base.Joiner; import org.slf4j.Logger; @@ -70,12 +70,16 @@ public class ModsImporter extends Importer implements Parser { private static final Logger LOGGER = LoggerFactory.getLogger(ModsImporter.class); - private static final String KEYWORD_SEPARATOR = JabRefPreferences.getInstance().getImportFormatPreferences() - .getKeywordSeparator() + " "; - private static final Pattern MODS_PATTERN = Pattern.compile(""); + + private final String keywordSeparator; + private JAXBContext context; + public ModsImporter(ImportFormatPreferences importFormatPreferences) { + keywordSeparator = importFormatPreferences.getKeywordSeparator() + " "; + } + @Override public boolean isRecognizedFormat(BufferedReader input) throws IOException { return input.lines().anyMatch(line -> MODS_PATTERN.matcher(line).find()); @@ -191,7 +195,7 @@ private void parseModsGroup(Map fields, List modsGroup, } //The element subject can appear more than one time, that's why the keywords has to be put out of the for loop - putIfListIsNotEmpty(fields, keywords, FieldName.KEYWORDS, KEYWORD_SEPARATOR); + putIfListIsNotEmpty(fields, keywords, FieldName.KEYWORDS, this.keywordSeparator); //same goes for authors and notes putIfListIsNotEmpty(fields, authors, FieldName.AUTHOR, " and "); putIfListIsNotEmpty(fields, notes, FieldName.NOTE, ", "); diff --git a/src/main/java/org/jabref/logic/importer/fileformat/MrDLibImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/MrDLibImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/MrDLibImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/MrDLibImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/MsBibImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/MsBibImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/MsBibImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/MsBibImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/OvidImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/OvidImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/OvidImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/OvidImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/PdfContentImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/PdfContentImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/PdfContentImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/PdfContentImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/PdfXmpImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/PdfXmpImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/PdfXmpImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/PdfXmpImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/RepecNepImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/RepecNepImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/RepecNepImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/RepecNepImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/RisImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/RisImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/RisImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/RisImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/SilverPlatterImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/SilverPlatterImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/SilverPlatterImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/SilverPlatterImporter.java diff --git a/src/main/java/org/jabref/logic/importer/fileformat/mods/package-info.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/mods/package-info.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/fileformat/mods/package-info.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/fileformat/mods/package-info.java diff --git a/src/main/java/org/jabref/logic/importer/util/ConvertLegacyExplicitGroups.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/util/ConvertLegacyExplicitGroups.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/util/ConvertLegacyExplicitGroups.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/util/ConvertLegacyExplicitGroups.java diff --git a/src/main/java/org/jabref/logic/importer/util/GroupsParser.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/util/GroupsParser.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/util/GroupsParser.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/util/GroupsParser.java diff --git a/src/main/java/org/jabref/logic/importer/util/INSPIREBibtexFilterReader.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/util/INSPIREBibtexFilterReader.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/util/INSPIREBibtexFilterReader.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/util/INSPIREBibtexFilterReader.java diff --git a/src/main/java/org/jabref/logic/importer/util/IdentifierParser.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/util/IdentifierParser.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/util/IdentifierParser.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/util/IdentifierParser.java diff --git a/src/main/java/org/jabref/logic/importer/util/JSONEntryParser.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/util/JSONEntryParser.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/util/JSONEntryParser.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/util/JSONEntryParser.java diff --git a/src/main/java/org/jabref/logic/importer/util/JsonReader.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/util/JsonReader.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/util/JsonReader.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/util/JsonReader.java diff --git a/src/main/java/org/jabref/logic/importer/util/MetaDataParser.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/util/MetaDataParser.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/util/MetaDataParser.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/util/MetaDataParser.java diff --git a/src/main/java/org/jabref/logic/importer/util/OAI2Handler.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/util/OAI2Handler.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/util/OAI2Handler.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/util/OAI2Handler.java diff --git a/src/main/java/org/jabref/logic/importer/util/PostOpenAction.java b/org.jabref.logic/src/main/java/org/jabref/logic/importer/util/PostOpenAction.java similarity index 100% rename from src/main/java/org/jabref/logic/importer/util/PostOpenAction.java rename to org.jabref.logic/src/main/java/org/jabref/logic/importer/util/PostOpenAction.java diff --git a/src/main/java/org/jabref/logic/integrity/ASCIICharacterChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/ASCIICharacterChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/ASCIICharacterChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/ASCIICharacterChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/AbbreviationChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/AbbreviationChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/AbbreviationChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/AbbreviationChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/BibStringChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/BibStringChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/BibStringChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/BibStringChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/BibTeXEntryTypeChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/BibTeXEntryTypeChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/BibTeXEntryTypeChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/BibTeXEntryTypeChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/BibtexKeyChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/BibtexKeyChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/BibtexKeyChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/BibtexKeyChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/BibtexKeyDuplicationChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/BibtexKeyDuplicationChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/BibtexKeyDuplicationChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/BibtexKeyDuplicationChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/BibtexkeyDeviationChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/BibtexkeyDeviationChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/BibtexkeyDeviationChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/BibtexkeyDeviationChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/BooktitleChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/BooktitleChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/BooktitleChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/BooktitleChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/BracesCorrector.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/BracesCorrector.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/BracesCorrector.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/BracesCorrector.java diff --git a/src/main/java/org/jabref/logic/integrity/BracketChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/BracketChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/BracketChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/BracketChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/DOIValidityChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/DOIValidityChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/DOIValidityChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/DOIValidityChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/EditionChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/EditionChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/EditionChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/EditionChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/EntryLinkChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/EntryLinkChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/EntryLinkChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/EntryLinkChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/FieldChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/FieldChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/FieldChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/FieldChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/FieldCheckers.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/FieldCheckers.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/FieldCheckers.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/FieldCheckers.java diff --git a/src/main/java/org/jabref/logic/integrity/FileChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/FileChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/FileChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/FileChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/HTMLCharacterChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/HTMLCharacterChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/HTMLCharacterChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/HTMLCharacterChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/HowPublishedChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/HowPublishedChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/HowPublishedChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/HowPublishedChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/ISBNChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/ISBNChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/ISBNChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/ISBNChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/ISSNChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/ISSNChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/ISSNChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/ISSNChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/IntegrityCheck.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/IntegrityCheck.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/IntegrityCheck.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/IntegrityCheck.java diff --git a/src/main/java/org/jabref/logic/integrity/IntegrityMessage.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/IntegrityMessage.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/IntegrityMessage.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/IntegrityMessage.java diff --git a/src/main/java/org/jabref/logic/integrity/JournalInAbbreviationListChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/JournalInAbbreviationListChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/JournalInAbbreviationListChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/JournalInAbbreviationListChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/MonthChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/MonthChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/MonthChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/MonthChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/NoBibtexFieldChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/NoBibtexFieldChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/NoBibtexFieldChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/NoBibtexFieldChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/NoteChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/NoteChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/NoteChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/NoteChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/PagesChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/PagesChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/PagesChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/PagesChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/PersonNamesChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/PersonNamesChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/PersonNamesChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/PersonNamesChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/TitleChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/TitleChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/TitleChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/TitleChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/TypeChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/TypeChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/TypeChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/TypeChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/UrlChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/UrlChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/UrlChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/UrlChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/ValidBibtexKeyChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/ValidBibtexKeyChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/ValidBibtexKeyChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/ValidBibtexKeyChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/ValueChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/ValueChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/ValueChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/ValueChecker.java diff --git a/src/main/java/org/jabref/logic/integrity/YearChecker.java b/org.jabref.logic/src/main/java/org/jabref/logic/integrity/YearChecker.java similarity index 100% rename from src/main/java/org/jabref/logic/integrity/YearChecker.java rename to org.jabref.logic/src/main/java/org/jabref/logic/integrity/YearChecker.java diff --git a/src/main/java/org/jabref/logic/journals/Abbreviation.java b/org.jabref.logic/src/main/java/org/jabref/logic/journals/Abbreviation.java similarity index 100% rename from src/main/java/org/jabref/logic/journals/Abbreviation.java rename to org.jabref.logic/src/main/java/org/jabref/logic/journals/Abbreviation.java diff --git a/src/main/java/org/jabref/logic/journals/AbbreviationParser.java b/org.jabref.logic/src/main/java/org/jabref/logic/journals/AbbreviationParser.java similarity index 100% rename from src/main/java/org/jabref/logic/journals/AbbreviationParser.java rename to org.jabref.logic/src/main/java/org/jabref/logic/journals/AbbreviationParser.java diff --git a/src/main/java/org/jabref/logic/journals/AbbreviationWriter.java b/org.jabref.logic/src/main/java/org/jabref/logic/journals/AbbreviationWriter.java similarity index 100% rename from src/main/java/org/jabref/logic/journals/AbbreviationWriter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/journals/AbbreviationWriter.java diff --git a/src/main/java/org/jabref/logic/journals/JournalAbbreviationLoader.java b/org.jabref.logic/src/main/java/org/jabref/logic/journals/JournalAbbreviationLoader.java similarity index 100% rename from src/main/java/org/jabref/logic/journals/JournalAbbreviationLoader.java rename to org.jabref.logic/src/main/java/org/jabref/logic/journals/JournalAbbreviationLoader.java diff --git a/src/main/java/org/jabref/logic/journals/JournalAbbreviationPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/journals/JournalAbbreviationPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/journals/JournalAbbreviationPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/journals/JournalAbbreviationPreferences.java diff --git a/src/main/java/org/jabref/logic/journals/JournalAbbreviationRepository.java b/org.jabref.logic/src/main/java/org/jabref/logic/journals/JournalAbbreviationRepository.java similarity index 100% rename from src/main/java/org/jabref/logic/journals/JournalAbbreviationRepository.java rename to org.jabref.logic/src/main/java/org/jabref/logic/journals/JournalAbbreviationRepository.java diff --git a/src/main/java/org/jabref/logic/l10n/EncodingControl.java b/org.jabref.logic/src/main/java/org/jabref/logic/l10n/EncodingControl.java similarity index 100% rename from src/main/java/org/jabref/logic/l10n/EncodingControl.java rename to org.jabref.logic/src/main/java/org/jabref/logic/l10n/EncodingControl.java diff --git a/src/main/java/org/jabref/logic/l10n/Encodings.java b/org.jabref.logic/src/main/java/org/jabref/logic/l10n/Encodings.java similarity index 100% rename from src/main/java/org/jabref/logic/l10n/Encodings.java rename to org.jabref.logic/src/main/java/org/jabref/logic/l10n/Encodings.java diff --git a/src/main/java/org/jabref/logic/l10n/Languages.java b/org.jabref.logic/src/main/java/org/jabref/logic/l10n/Languages.java similarity index 100% rename from src/main/java/org/jabref/logic/l10n/Languages.java rename to org.jabref.logic/src/main/java/org/jabref/logic/l10n/Languages.java diff --git a/src/main/java/org/jabref/logic/l10n/Localization.java b/org.jabref.logic/src/main/java/org/jabref/logic/l10n/Localization.java similarity index 100% rename from src/main/java/org/jabref/logic/l10n/Localization.java rename to org.jabref.logic/src/main/java/org/jabref/logic/l10n/Localization.java diff --git a/src/main/java/org/jabref/logic/l10n/LocalizationKey.java b/org.jabref.logic/src/main/java/org/jabref/logic/l10n/LocalizationKey.java similarity index 100% rename from src/main/java/org/jabref/logic/l10n/LocalizationKey.java rename to org.jabref.logic/src/main/java/org/jabref/logic/l10n/LocalizationKey.java diff --git a/src/main/java/org/jabref/logic/l10n/LocalizationKeyParams.java b/org.jabref.logic/src/main/java/org/jabref/logic/l10n/LocalizationKeyParams.java similarity index 100% rename from src/main/java/org/jabref/logic/l10n/LocalizationKeyParams.java rename to org.jabref.logic/src/main/java/org/jabref/logic/l10n/LocalizationKeyParams.java diff --git a/src/main/java/org/jabref/logic/layout/AbstractParamLayoutFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/AbstractParamLayoutFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/AbstractParamLayoutFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/AbstractParamLayoutFormatter.java diff --git a/src/main/java/org/jabref/logic/layout/Layout.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/Layout.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/Layout.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/Layout.java diff --git a/src/main/java/org/jabref/logic/layout/LayoutEntry.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/LayoutEntry.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/LayoutEntry.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/LayoutEntry.java diff --git a/src/main/java/org/jabref/logic/layout/LayoutFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/LayoutFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/LayoutFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/LayoutFormatter.java diff --git a/src/main/java/org/jabref/logic/layout/LayoutFormatterPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/LayoutFormatterPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/LayoutFormatterPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/LayoutFormatterPreferences.java diff --git a/src/main/java/org/jabref/logic/layout/LayoutHelper.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/LayoutHelper.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/LayoutHelper.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/LayoutHelper.java diff --git a/src/main/java/org/jabref/logic/layout/ParamLayoutFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/ParamLayoutFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/ParamLayoutFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/ParamLayoutFormatter.java diff --git a/src/main/java/org/jabref/logic/layout/StringInt.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/StringInt.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/StringInt.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/StringInt.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorAbbreviator.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorAbbreviator.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorAbbreviator.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorAbbreviator.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorAndToSemicolonReplacer.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorAndToSemicolonReplacer.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorAndToSemicolonReplacer.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorAndToSemicolonReplacer.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorAndsCommaReplacer.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorAndsCommaReplacer.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorAndsCommaReplacer.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorAndsCommaReplacer.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorAndsReplacer.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorAndsReplacer.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorAndsReplacer.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorAndsReplacer.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastCommas.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastCommas.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastCommas.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastCommas.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastOxfordCommas.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastOxfordCommas.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastOxfordCommas.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastOxfordCommas.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorFirstFirst.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorFirstFirst.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorFirstFirst.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorFirstFirst.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorFirstFirstCommas.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorFirstFirstCommas.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorFirstFirstCommas.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorFirstFirstCommas.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorFirstLastCommas.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorFirstLastCommas.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorFirstLastCommas.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorFirstLastCommas.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorFirstLastOxfordCommas.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorFirstLastOxfordCommas.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorFirstLastOxfordCommas.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorFirstLastOxfordCommas.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorLF_FF.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLF_FF.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorLF_FF.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLF_FF.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorLF_FFAbbr.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLF_FFAbbr.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorLF_FFAbbr.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLF_FFAbbr.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorLastFirst.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLastFirst.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorLastFirst.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLastFirst.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrCommas.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrCommas.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrCommas.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrCommas.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrOxfordCommas.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrOxfordCommas.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrOxfordCommas.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrOxfordCommas.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstAbbreviator.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstAbbreviator.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorLastFirstAbbreviator.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstAbbreviator.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstCommas.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstCommas.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorLastFirstCommas.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstCommas.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstOxfordCommas.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstOxfordCommas.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorLastFirstOxfordCommas.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorLastFirstOxfordCommas.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorNatBib.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorNatBib.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorNatBib.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorNatBib.java diff --git a/src/main/java/org/jabref/logic/layout/format/AuthorOrgSci.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorOrgSci.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/AuthorOrgSci.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/AuthorOrgSci.java diff --git a/src/main/java/org/jabref/logic/layout/format/Authors.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/Authors.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/Authors.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/Authors.java diff --git a/src/main/java/org/jabref/logic/layout/format/CompositeFormat.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/CompositeFormat.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/CompositeFormat.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/CompositeFormat.java diff --git a/src/main/java/org/jabref/logic/layout/format/CreateBibORDFAuthors.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/CreateBibORDFAuthors.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/CreateBibORDFAuthors.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/CreateBibORDFAuthors.java diff --git a/src/main/java/org/jabref/logic/layout/format/CreateDocBookAuthors.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/CreateDocBookAuthors.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/CreateDocBookAuthors.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/CreateDocBookAuthors.java diff --git a/src/main/java/org/jabref/logic/layout/format/CreateDocBookEditors.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/CreateDocBookEditors.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/CreateDocBookEditors.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/CreateDocBookEditors.java diff --git a/src/main/java/org/jabref/logic/layout/format/CurrentDate.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/CurrentDate.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/CurrentDate.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/CurrentDate.java diff --git a/src/main/java/org/jabref/logic/layout/format/DOICheck.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/DOICheck.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/DOICheck.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/DOICheck.java diff --git a/src/main/java/org/jabref/logic/layout/format/DOIStrip.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/DOIStrip.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/DOIStrip.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/DOIStrip.java diff --git a/src/main/java/org/jabref/logic/layout/format/DateFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/DateFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/DateFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/DateFormatter.java diff --git a/src/main/java/org/jabref/logic/layout/format/Default.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/Default.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/Default.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/Default.java diff --git a/src/main/java/org/jabref/logic/layout/format/EntryTypeFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/EntryTypeFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/EntryTypeFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/EntryTypeFormatter.java diff --git a/src/main/java/org/jabref/logic/layout/format/FileLink.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/FileLink.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/FileLink.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/FileLink.java diff --git a/src/main/java/org/jabref/logic/layout/format/FileLinkPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/FileLinkPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/FileLinkPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/FileLinkPreferences.java diff --git a/src/main/java/org/jabref/logic/layout/format/FirstPage.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/FirstPage.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/FirstPage.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/FirstPage.java diff --git a/src/main/java/org/jabref/logic/layout/format/FormatPagesForHTML.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/FormatPagesForHTML.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/FormatPagesForHTML.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/FormatPagesForHTML.java diff --git a/src/main/java/org/jabref/logic/layout/format/FormatPagesForXML.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/FormatPagesForXML.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/FormatPagesForXML.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/FormatPagesForXML.java diff --git a/src/main/java/org/jabref/logic/layout/format/GetOpenOfficeType.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/GetOpenOfficeType.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/GetOpenOfficeType.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/GetOpenOfficeType.java diff --git a/src/main/java/org/jabref/logic/layout/format/HTMLChars.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/HTMLChars.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/HTMLChars.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/HTMLChars.java diff --git a/src/main/java/org/jabref/logic/layout/format/HTMLParagraphs.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/HTMLParagraphs.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/HTMLParagraphs.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/HTMLParagraphs.java diff --git a/src/main/java/org/jabref/logic/layout/format/IfPlural.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/IfPlural.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/IfPlural.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/IfPlural.java diff --git a/src/main/java/org/jabref/logic/layout/format/Iso690FormatDate.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/Iso690FormatDate.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/Iso690FormatDate.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/Iso690FormatDate.java diff --git a/src/main/java/org/jabref/logic/layout/format/Iso690NamesAuthors.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/Iso690NamesAuthors.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/Iso690NamesAuthors.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/Iso690NamesAuthors.java diff --git a/src/main/java/org/jabref/logic/layout/format/JournalAbbreviator.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/JournalAbbreviator.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/JournalAbbreviator.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/JournalAbbreviator.java diff --git a/src/main/java/org/jabref/logic/layout/format/LastPage.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/LastPage.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/LastPage.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/LastPage.java diff --git a/src/main/java/org/jabref/logic/layout/format/LatexToUnicodeFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/LatexToUnicodeFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/LatexToUnicodeFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/LatexToUnicodeFormatter.java diff --git a/src/main/java/org/jabref/logic/layout/format/NameFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/NameFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/NameFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/NameFormatter.java diff --git a/src/main/java/org/jabref/logic/layout/format/NameFormatterPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/NameFormatterPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/NameFormatterPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/NameFormatterPreferences.java diff --git a/src/main/java/org/jabref/logic/layout/format/NoSpaceBetweenAbbreviations.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/NoSpaceBetweenAbbreviations.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/NoSpaceBetweenAbbreviations.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/NoSpaceBetweenAbbreviations.java diff --git a/src/main/java/org/jabref/logic/layout/format/NotFoundFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/NotFoundFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/NotFoundFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/NotFoundFormatter.java diff --git a/src/main/java/org/jabref/logic/layout/format/Number.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/Number.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/Number.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/Number.java diff --git a/src/main/java/org/jabref/logic/layout/format/Ordinal.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/Ordinal.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/Ordinal.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/Ordinal.java diff --git a/src/main/java/org/jabref/logic/layout/format/RTFChars.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RTFChars.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/RTFChars.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RTFChars.java diff --git a/src/main/java/org/jabref/logic/layout/format/RemoveBrackets.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RemoveBrackets.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/RemoveBrackets.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RemoveBrackets.java diff --git a/src/main/java/org/jabref/logic/layout/format/RemoveBracketsAddComma.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RemoveBracketsAddComma.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/RemoveBracketsAddComma.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RemoveBracketsAddComma.java diff --git a/src/main/java/org/jabref/logic/layout/format/RemoveLatexCommandsFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RemoveLatexCommandsFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/RemoveLatexCommandsFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RemoveLatexCommandsFormatter.java diff --git a/src/main/java/org/jabref/logic/layout/format/RemoveTilde.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RemoveTilde.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/RemoveTilde.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RemoveTilde.java diff --git a/src/main/java/org/jabref/logic/layout/format/RemoveWhitespace.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RemoveWhitespace.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/RemoveWhitespace.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RemoveWhitespace.java diff --git a/src/main/java/org/jabref/logic/layout/format/Replace.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/Replace.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/Replace.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/Replace.java diff --git a/src/main/java/org/jabref/logic/layout/format/ReplaceUnicodeLigaturesFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/ReplaceUnicodeLigaturesFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/ReplaceUnicodeLigaturesFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/ReplaceUnicodeLigaturesFormatter.java diff --git a/src/main/java/org/jabref/logic/layout/format/RisAuthors.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RisAuthors.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/RisAuthors.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RisAuthors.java diff --git a/src/main/java/org/jabref/logic/layout/format/RisKeywords.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RisKeywords.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/RisKeywords.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RisKeywords.java diff --git a/src/main/java/org/jabref/logic/layout/format/RisMonth.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RisMonth.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/RisMonth.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/RisMonth.java diff --git a/src/main/java/org/jabref/logic/layout/format/ToLowerCase.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/ToLowerCase.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/ToLowerCase.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/ToLowerCase.java diff --git a/src/main/java/org/jabref/logic/layout/format/ToUpperCase.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/ToUpperCase.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/ToUpperCase.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/ToUpperCase.java diff --git a/src/main/java/org/jabref/logic/layout/format/WrapContent.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/WrapContent.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/WrapContent.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/WrapContent.java diff --git a/src/main/java/org/jabref/logic/layout/format/WrapFileLinks.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/WrapFileLinks.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/WrapFileLinks.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/WrapFileLinks.java diff --git a/src/main/java/org/jabref/logic/layout/format/XMLChars.java b/org.jabref.logic/src/main/java/org/jabref/logic/layout/format/XMLChars.java similarity index 100% rename from src/main/java/org/jabref/logic/layout/format/XMLChars.java rename to org.jabref.logic/src/main/java/org/jabref/logic/layout/format/XMLChars.java diff --git a/src/main/java/org/jabref/logic/logging/JabRefLogger.java b/org.jabref.logic/src/main/java/org/jabref/logic/logging/JabRefLogger.java similarity index 100% rename from src/main/java/org/jabref/logic/logging/JabRefLogger.java rename to org.jabref.logic/src/main/java/org/jabref/logic/logging/JabRefLogger.java diff --git a/src/main/java/org/jabref/logic/logging/LogMessages.java b/org.jabref.logic/src/main/java/org/jabref/logic/logging/LogMessages.java similarity index 100% rename from src/main/java/org/jabref/logic/logging/LogMessages.java rename to org.jabref.logic/src/main/java/org/jabref/logic/logging/LogMessages.java diff --git a/src/main/java/org/jabref/logic/msbib/BibTeXConverter.java b/org.jabref.logic/src/main/java/org/jabref/logic/msbib/BibTeXConverter.java similarity index 100% rename from src/main/java/org/jabref/logic/msbib/BibTeXConverter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/msbib/BibTeXConverter.java diff --git a/src/main/java/org/jabref/logic/msbib/MSBibConverter.java b/org.jabref.logic/src/main/java/org/jabref/logic/msbib/MSBibConverter.java similarity index 100% rename from src/main/java/org/jabref/logic/msbib/MSBibConverter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/msbib/MSBibConverter.java diff --git a/src/main/java/org/jabref/logic/msbib/MSBibDatabase.java b/org.jabref.logic/src/main/java/org/jabref/logic/msbib/MSBibDatabase.java similarity index 100% rename from src/main/java/org/jabref/logic/msbib/MSBibDatabase.java rename to org.jabref.logic/src/main/java/org/jabref/logic/msbib/MSBibDatabase.java diff --git a/src/main/java/org/jabref/logic/msbib/MSBibEntry.java b/org.jabref.logic/src/main/java/org/jabref/logic/msbib/MSBibEntry.java similarity index 100% rename from src/main/java/org/jabref/logic/msbib/MSBibEntry.java rename to org.jabref.logic/src/main/java/org/jabref/logic/msbib/MSBibEntry.java diff --git a/src/main/java/org/jabref/logic/msbib/MSBibEntryType.java b/org.jabref.logic/src/main/java/org/jabref/logic/msbib/MSBibEntryType.java similarity index 100% rename from src/main/java/org/jabref/logic/msbib/MSBibEntryType.java rename to org.jabref.logic/src/main/java/org/jabref/logic/msbib/MSBibEntryType.java diff --git a/src/main/java/org/jabref/logic/msbib/MSBibMapping.java b/org.jabref.logic/src/main/java/org/jabref/logic/msbib/MSBibMapping.java similarity index 100% rename from src/main/java/org/jabref/logic/msbib/MSBibMapping.java rename to org.jabref.logic/src/main/java/org/jabref/logic/msbib/MSBibMapping.java diff --git a/src/main/java/org/jabref/logic/msbib/MsBibAuthor.java b/org.jabref.logic/src/main/java/org/jabref/logic/msbib/MsBibAuthor.java similarity index 100% rename from src/main/java/org/jabref/logic/msbib/MsBibAuthor.java rename to org.jabref.logic/src/main/java/org/jabref/logic/msbib/MsBibAuthor.java diff --git a/src/main/java/org/jabref/logic/msbib/PageNumbers.java b/org.jabref.logic/src/main/java/org/jabref/logic/msbib/PageNumbers.java similarity index 100% rename from src/main/java/org/jabref/logic/msbib/PageNumbers.java rename to org.jabref.logic/src/main/java/org/jabref/logic/msbib/PageNumbers.java diff --git a/src/main/java/org/jabref/logic/net/ProgressInputStream.java b/org.jabref.logic/src/main/java/org/jabref/logic/net/ProgressInputStream.java similarity index 100% rename from src/main/java/org/jabref/logic/net/ProgressInputStream.java rename to org.jabref.logic/src/main/java/org/jabref/logic/net/ProgressInputStream.java diff --git a/src/main/java/org/jabref/logic/net/ProxyAuthenticator.java b/org.jabref.logic/src/main/java/org/jabref/logic/net/ProxyAuthenticator.java similarity index 100% rename from src/main/java/org/jabref/logic/net/ProxyAuthenticator.java rename to org.jabref.logic/src/main/java/org/jabref/logic/net/ProxyAuthenticator.java diff --git a/src/main/java/org/jabref/logic/net/ProxyPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/net/ProxyPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/net/ProxyPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/net/ProxyPreferences.java diff --git a/src/main/java/org/jabref/logic/net/ProxyRegisterer.java b/org.jabref.logic/src/main/java/org/jabref/logic/net/ProxyRegisterer.java similarity index 100% rename from src/main/java/org/jabref/logic/net/ProxyRegisterer.java rename to org.jabref.logic/src/main/java/org/jabref/logic/net/ProxyRegisterer.java diff --git a/src/main/java/org/jabref/logic/net/URLDownload.java b/org.jabref.logic/src/main/java/org/jabref/logic/net/URLDownload.java similarity index 100% rename from src/main/java/org/jabref/logic/net/URLDownload.java rename to org.jabref.logic/src/main/java/org/jabref/logic/net/URLDownload.java diff --git a/src/main/java/org/jabref/logic/net/URLUtil.java b/org.jabref.logic/src/main/java/org/jabref/logic/net/URLUtil.java similarity index 100% rename from src/main/java/org/jabref/logic/net/URLUtil.java rename to org.jabref.logic/src/main/java/org/jabref/logic/net/URLUtil.java diff --git a/src/main/java/org/jabref/logic/openoffice/CitationEntry.java b/org.jabref.logic/src/main/java/org/jabref/logic/openoffice/CitationEntry.java similarity index 100% rename from src/main/java/org/jabref/logic/openoffice/CitationEntry.java rename to org.jabref.logic/src/main/java/org/jabref/logic/openoffice/CitationEntry.java diff --git a/src/main/java/org/jabref/logic/openoffice/OOBibStyle.java b/org.jabref.logic/src/main/java/org/jabref/logic/openoffice/OOBibStyle.java similarity index 100% rename from src/main/java/org/jabref/logic/openoffice/OOBibStyle.java rename to org.jabref.logic/src/main/java/org/jabref/logic/openoffice/OOBibStyle.java diff --git a/src/main/java/org/jabref/logic/openoffice/OOPreFormatter.java b/org.jabref.logic/src/main/java/org/jabref/logic/openoffice/OOPreFormatter.java similarity index 100% rename from src/main/java/org/jabref/logic/openoffice/OOPreFormatter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/openoffice/OOPreFormatter.java diff --git a/src/main/java/org/jabref/logic/openoffice/OOUtil.java b/org.jabref.logic/src/main/java/org/jabref/logic/openoffice/OOUtil.java similarity index 100% rename from src/main/java/org/jabref/logic/openoffice/OOUtil.java rename to org.jabref.logic/src/main/java/org/jabref/logic/openoffice/OOUtil.java diff --git a/src/main/java/org/jabref/logic/openoffice/OpenOfficeFileSearch.java b/org.jabref.logic/src/main/java/org/jabref/logic/openoffice/OpenOfficeFileSearch.java similarity index 100% rename from src/main/java/org/jabref/logic/openoffice/OpenOfficeFileSearch.java rename to org.jabref.logic/src/main/java/org/jabref/logic/openoffice/OpenOfficeFileSearch.java diff --git a/org.jabref.logic/src/main/java/org/jabref/logic/openoffice/OpenOfficePreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/openoffice/OpenOfficePreferences.java new file mode 100644 index 00000000000..1732a53c409 --- /dev/null +++ b/org.jabref.logic/src/main/java/org/jabref/logic/openoffice/OpenOfficePreferences.java @@ -0,0 +1,161 @@ +package org.jabref.logic.openoffice; + +import java.io.File; +import java.util.Arrays; +import java.util.List; + +public class OpenOfficePreferences { + + public static final String DEFAULT_WINDOWS_PATH = "C:\\Program Files\\LibreOffice 5"; + public static final String DEFAULT_WIN_EXEC_PATH = "C:\\Program Files\\LibreOffice 5\\program"; + public static final String WINDOWS_EXECUTABLE = "soffice.exe"; + + public static final String DEFAULT_OSX_PATH = "/Applications/OpenOffice.org.app"; + public static final String DEFAULT_OSX_EXEC_PATH = "/Applications/OpenOffice.org.app/Contents/MacOS/soffice"; + public static final String OSX_EXECUTABLE = "soffice"; + + public static final String DEFAULT_LINUX_PATH = "/usr/lib/libreoffice"; + public static final String DEFAULT_LINUX_EXEC_PATH = "/usr/lib/libreoffice/program/soffice"; + public static final String LINUX_EXECUTABLE = "soffice"; + + public static final List OO_JARS = Arrays.asList("unoil.jar", "jurt.jar", "juh.jar", "ridl.jar"); + + private String executablePath; + private String installationPath; + private Boolean useAllDatabases; + private Boolean syncWhenCiting; + private Boolean showPanel; + private List externalStyles; + private String currentStyle; + private String jarsPath; + + public OpenOfficePreferences( + String jarsPath, + String executablePath, + String installationPath, + Boolean useAllDatabases, + Boolean syncWhenCiting, + Boolean showPanel, + List externalStyles, + String currentStyle + ) { + this.jarsPath = jarsPath; + this.executablePath = executablePath; + this.installationPath = installationPath; + this.useAllDatabases = useAllDatabases; + this.syncWhenCiting = syncWhenCiting; + this.showPanel = showPanel; + this.externalStyles = externalStyles; + this.currentStyle = currentStyle; + } + + public void clearCurrentStyle() { + this.currentStyle = null; + // TODO: sync to prefs + } + + /** + * path to soffice-file + */ + public String getExecutablePath() { + return executablePath; + } + + public void setExecutablePath(String executablePath) { + this.executablePath = executablePath; + } + + /** + * main directory for OO/LO installation, used to detect location on Win/OS X when using manual connect + */ + public String getInstallationPath() { + return installationPath; + } + + public void setInstallationPath(String installationPath) { + this.installationPath = installationPath; + } + + /** + * true if all databases should be used when citing + */ + public Boolean getUseAllDatabases() { + return useAllDatabases; + } + + public void setUseAllDatabases(Boolean useAllDatabases) { + this.useAllDatabases = useAllDatabases; + } + + /** + * true if the reference list is updated when adding a new citation + */ + public Boolean getSyncWhenCiting() { + return syncWhenCiting; + } + + public void setSyncWhenCiting(Boolean syncWhenCiting) { + this.syncWhenCiting = syncWhenCiting; + } + + /** + * true if the OO panel is shown on startup + */ + public Boolean getShowPanel() { + return showPanel; + } + + public void setShowPanel(Boolean showPanel) { + this.showPanel = showPanel; + } + + /** + * list with paths to external style files + */ + public List getExternalStyles() { + return externalStyles; + } + + public void setExternalStyles(List externalStyles) { + this.externalStyles = externalStyles; + } + + /** + * path to the used style file + */ + public String getCurrentStyle() { + return currentStyle; + } + + public void setCurrentStyle(String currentStyle) { + this.currentStyle = currentStyle; + } + + /** + * directory that contains juh.jar, jurt.jar, ridl.jar, unoil.jar + */ + public String getJarsPath() { + return jarsPath; + } + + public void setJarsPath(String jarsPath) { + this.jarsPath = jarsPath; + } + + public void updateConnectionParams(String ooPath, String execPath, String jarsPath) { + setInstallationPath(ooPath); + setExecutablePath(execPath); + setJarsPath(jarsPath); + // TODO: caller should store that in the real preferences again + } + + /** + * Checks whether the executablePath exists + * + * TODO this should go elsewhere - no preference! + */ + public boolean checkAutoDetectedPaths() { + return ((executablePath != null) && new File(getExecutablePath()).exists()); + } + +} diff --git a/src/main/java/org/jabref/logic/openoffice/StyleLoader.java b/org.jabref.logic/src/main/java/org/jabref/logic/openoffice/StyleLoader.java similarity index 100% rename from src/main/java/org/jabref/logic/openoffice/StyleLoader.java rename to org.jabref.logic/src/main/java/org/jabref/logic/openoffice/StyleLoader.java diff --git a/src/main/java/org/jabref/logic/openoffice/UndefinedBibtexEntry.java b/org.jabref.logic/src/main/java/org/jabref/logic/openoffice/UndefinedBibtexEntry.java similarity index 100% rename from src/main/java/org/jabref/logic/openoffice/UndefinedBibtexEntry.java rename to org.jabref.logic/src/main/java/org/jabref/logic/openoffice/UndefinedBibtexEntry.java diff --git a/src/main/java/org/jabref/logic/openoffice/UndefinedParagraphFormatException.java b/org.jabref.logic/src/main/java/org/jabref/logic/openoffice/UndefinedParagraphFormatException.java similarity index 100% rename from src/main/java/org/jabref/logic/openoffice/UndefinedParagraphFormatException.java rename to org.jabref.logic/src/main/java/org/jabref/logic/openoffice/UndefinedParagraphFormatException.java diff --git a/src/main/java/org/jabref/logic/pdf/AnnotationImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/pdf/AnnotationImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/pdf/AnnotationImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/pdf/AnnotationImporter.java diff --git a/src/main/java/org/jabref/logic/pdf/EntryAnnotationImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/pdf/EntryAnnotationImporter.java similarity index 89% rename from src/main/java/org/jabref/logic/pdf/EntryAnnotationImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/pdf/EntryAnnotationImporter.java index b2e8c1557bc..8953c139e11 100644 --- a/src/main/java/org/jabref/logic/pdf/EntryAnnotationImporter.java +++ b/org.jabref.logic/src/main/java/org/jabref/logic/pdf/EntryAnnotationImporter.java @@ -9,8 +9,8 @@ import org.jabref.model.database.BibDatabaseContext; import org.jabref.model.entry.BibEntry; import org.jabref.model.entry.LinkedFile; +import org.jabref.model.metadata.FileDirectoryPreferences; import org.jabref.model.pdf.FileAnnotation; -import org.jabref.preferences.JabRefPreferences; /** @@ -44,13 +44,13 @@ private List getFilteredFileList() { * @param databaseContext The context is needed for the importer. * @return Map from each PDF to a list of file annotations */ - public Map> importAnnotationsFromFiles(BibDatabaseContext databaseContext) { + public Map> importAnnotationsFromFiles(BibDatabaseContext databaseContext, FileDirectoryPreferences fileDirectoryPreferences) { Map> annotations = new HashMap<>(); AnnotationImporter importer = new PdfAnnotationImporter(); //import annotationsOfFiles if the selected files are valid which is checked in getFilteredFileList() for (LinkedFile linkedFile : this.getFilteredFileList()) { - linkedFile.findIn(databaseContext, JabRefPreferences.getInstance().getFileDirectoryPreferences()) + linkedFile.findIn(databaseContext, fileDirectoryPreferences) .ifPresent(file -> annotations.put(file, importer.importAnnotations(file))); } return annotations; diff --git a/src/main/java/org/jabref/logic/pdf/FileAnnotationCache.java b/org.jabref.logic/src/main/java/org/jabref/logic/pdf/FileAnnotationCache.java similarity index 90% rename from src/main/java/org/jabref/logic/pdf/FileAnnotationCache.java rename to org.jabref.logic/src/main/java/org/jabref/logic/pdf/FileAnnotationCache.java index 46a3209eb01..fd59cfde876 100644 --- a/src/main/java/org/jabref/logic/pdf/FileAnnotationCache.java +++ b/org.jabref.logic/src/main/java/org/jabref/logic/pdf/FileAnnotationCache.java @@ -6,6 +6,7 @@ import org.jabref.model.database.BibDatabaseContext; import org.jabref.model.entry.BibEntry; +import org.jabref.model.metadata.FileDirectoryPreferences; import org.jabref.model.pdf.FileAnnotation; import com.google.common.cache.CacheBuilder; @@ -31,11 +32,11 @@ public FileAnnotationCache() { } - public FileAnnotationCache(BibDatabaseContext context) { + public FileAnnotationCache(BibDatabaseContext context, FileDirectoryPreferences fileDirectoryPreferences) { annotationCache = CacheBuilder.newBuilder().maximumSize(CACHE_SIZE).build(new CacheLoader>>() { @Override public Map> load(BibEntry entry) throws Exception { - return new EntryAnnotationImporter(entry).importAnnotationsFromFiles(context); + return new EntryAnnotationImporter(entry).importAnnotationsFromFiles(context, fileDirectoryPreferences); } }); } diff --git a/src/main/java/org/jabref/logic/pdf/PdfAnnotationImporter.java b/org.jabref.logic/src/main/java/org/jabref/logic/pdf/PdfAnnotationImporter.java similarity index 100% rename from src/main/java/org/jabref/logic/pdf/PdfAnnotationImporter.java rename to org.jabref.logic/src/main/java/org/jabref/logic/pdf/PdfAnnotationImporter.java diff --git a/src/main/java/org/jabref/logic/pdf/TextExtractor.java b/org.jabref.logic/src/main/java/org/jabref/logic/pdf/TextExtractor.java similarity index 100% rename from src/main/java/org/jabref/logic/pdf/TextExtractor.java rename to org.jabref.logic/src/main/java/org/jabref/logic/pdf/TextExtractor.java diff --git a/src/main/java/org/jabref/logic/preferences/TimestampPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/preferences/TimestampPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/preferences/TimestampPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/preferences/TimestampPreferences.java diff --git a/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsList.java b/org.jabref.logic/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsList.java similarity index 100% rename from src/main/java/org/jabref/logic/protectedterms/ProtectedTermsList.java rename to org.jabref.logic/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsList.java diff --git a/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsLoader.java b/org.jabref.logic/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsLoader.java similarity index 100% rename from src/main/java/org/jabref/logic/protectedterms/ProtectedTermsLoader.java rename to org.jabref.logic/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsLoader.java diff --git a/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsParser.java b/org.jabref.logic/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsParser.java similarity index 100% rename from src/main/java/org/jabref/logic/protectedterms/ProtectedTermsParser.java rename to org.jabref.logic/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsParser.java diff --git a/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/protectedterms/ProtectedTermsPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsPreferences.java diff --git a/src/main/java/org/jabref/logic/search/DatabaseSearcher.java b/org.jabref.logic/src/main/java/org/jabref/logic/search/DatabaseSearcher.java similarity index 100% rename from src/main/java/org/jabref/logic/search/DatabaseSearcher.java rename to org.jabref.logic/src/main/java/org/jabref/logic/search/DatabaseSearcher.java diff --git a/src/main/java/org/jabref/logic/search/SearchQuery.java b/org.jabref.logic/src/main/java/org/jabref/logic/search/SearchQuery.java similarity index 100% rename from src/main/java/org/jabref/logic/search/SearchQuery.java rename to org.jabref.logic/src/main/java/org/jabref/logic/search/SearchQuery.java diff --git a/src/main/java/org/jabref/logic/search/SearchQueryHighlightListener.java b/org.jabref.logic/src/main/java/org/jabref/logic/search/SearchQueryHighlightListener.java similarity index 100% rename from src/main/java/org/jabref/logic/search/SearchQueryHighlightListener.java rename to org.jabref.logic/src/main/java/org/jabref/logic/search/SearchQueryHighlightListener.java diff --git a/src/main/java/org/jabref/logic/search/SearchQueryHighlightObservable.java b/org.jabref.logic/src/main/java/org/jabref/logic/search/SearchQueryHighlightObservable.java similarity index 100% rename from src/main/java/org/jabref/logic/search/SearchQueryHighlightObservable.java rename to org.jabref.logic/src/main/java/org/jabref/logic/search/SearchQueryHighlightObservable.java diff --git a/src/main/java/org/jabref/logic/specialfields/SpecialFieldsUtils.java b/org.jabref.logic/src/main/java/org/jabref/logic/specialfields/SpecialFieldsUtils.java similarity index 100% rename from src/main/java/org/jabref/logic/specialfields/SpecialFieldsUtils.java rename to org.jabref.logic/src/main/java/org/jabref/logic/specialfields/SpecialFieldsUtils.java diff --git a/src/main/java/org/jabref/logic/undo/AddUndoableActionEvent.java b/org.jabref.logic/src/main/java/org/jabref/logic/undo/AddUndoableActionEvent.java similarity index 100% rename from src/main/java/org/jabref/logic/undo/AddUndoableActionEvent.java rename to org.jabref.logic/src/main/java/org/jabref/logic/undo/AddUndoableActionEvent.java diff --git a/src/main/java/org/jabref/logic/undo/UndoChangeEvent.java b/org.jabref.logic/src/main/java/org/jabref/logic/undo/UndoChangeEvent.java similarity index 100% rename from src/main/java/org/jabref/logic/undo/UndoChangeEvent.java rename to org.jabref.logic/src/main/java/org/jabref/logic/undo/UndoChangeEvent.java diff --git a/src/main/java/org/jabref/logic/undo/UndoRedoEvent.java b/org.jabref.logic/src/main/java/org/jabref/logic/undo/UndoRedoEvent.java similarity index 100% rename from src/main/java/org/jabref/logic/undo/UndoRedoEvent.java rename to org.jabref.logic/src/main/java/org/jabref/logic/undo/UndoRedoEvent.java diff --git a/src/main/java/org/jabref/logic/util/BuildInfo.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/BuildInfo.java similarity index 100% rename from src/main/java/org/jabref/logic/util/BuildInfo.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/BuildInfo.java diff --git a/src/main/java/org/jabref/logic/util/FileType.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/FileType.java similarity index 100% rename from src/main/java/org/jabref/logic/util/FileType.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/FileType.java diff --git a/src/main/java/org/jabref/logic/util/JavaVersion.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/JavaVersion.java similarity index 100% rename from src/main/java/org/jabref/logic/util/JavaVersion.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/JavaVersion.java diff --git a/src/main/java/org/jabref/logic/util/MetadataSerializationConfiguration.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/MetadataSerializationConfiguration.java similarity index 100% rename from src/main/java/org/jabref/logic/util/MetadataSerializationConfiguration.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/MetadataSerializationConfiguration.java diff --git a/src/main/java/org/jabref/logic/util/OS.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/OS.java similarity index 100% rename from src/main/java/org/jabref/logic/util/OS.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/OS.java diff --git a/src/main/java/org/jabref/logic/util/TestEntry.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/TestEntry.java similarity index 100% rename from src/main/java/org/jabref/logic/util/TestEntry.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/TestEntry.java diff --git a/src/main/java/org/jabref/logic/util/UpdateField.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/UpdateField.java similarity index 100% rename from src/main/java/org/jabref/logic/util/UpdateField.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/UpdateField.java diff --git a/src/main/java/org/jabref/logic/util/UpdateFieldPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/UpdateFieldPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/util/UpdateFieldPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/UpdateFieldPreferences.java diff --git a/src/main/java/org/jabref/logic/util/Version.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/Version.java similarity index 100% rename from src/main/java/org/jabref/logic/util/Version.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/Version.java diff --git a/src/main/java/org/jabref/logic/util/io/AutoLinkPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/io/AutoLinkPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/util/io/AutoLinkPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/io/AutoLinkPreferences.java diff --git a/src/main/java/org/jabref/logic/util/io/CiteKeyBasedFileFinder.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/io/CiteKeyBasedFileFinder.java similarity index 100% rename from src/main/java/org/jabref/logic/util/io/CiteKeyBasedFileFinder.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/io/CiteKeyBasedFileFinder.java diff --git a/src/main/java/org/jabref/logic/util/io/DatabaseFileLookup.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/io/DatabaseFileLookup.java similarity index 100% rename from src/main/java/org/jabref/logic/util/io/DatabaseFileLookup.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/io/DatabaseFileLookup.java diff --git a/src/main/java/org/jabref/logic/util/io/FileBasedLock.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/io/FileBasedLock.java similarity index 100% rename from src/main/java/org/jabref/logic/util/io/FileBasedLock.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/io/FileBasedLock.java diff --git a/src/main/java/org/jabref/logic/util/io/FileFinder.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/io/FileFinder.java similarity index 100% rename from src/main/java/org/jabref/logic/util/io/FileFinder.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/io/FileFinder.java diff --git a/src/main/java/org/jabref/logic/util/io/FileFinders.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/io/FileFinders.java similarity index 100% rename from src/main/java/org/jabref/logic/util/io/FileFinders.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/io/FileFinders.java diff --git a/src/main/java/org/jabref/logic/util/io/FileHistory.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/io/FileHistory.java similarity index 100% rename from src/main/java/org/jabref/logic/util/io/FileHistory.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/io/FileHistory.java diff --git a/src/main/java/org/jabref/logic/util/io/FileNameCleaner.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/io/FileNameCleaner.java similarity index 100% rename from src/main/java/org/jabref/logic/util/io/FileNameCleaner.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/io/FileNameCleaner.java diff --git a/src/main/java/org/jabref/logic/util/io/FileUtil.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/io/FileUtil.java similarity index 100% rename from src/main/java/org/jabref/logic/util/io/FileUtil.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/io/FileUtil.java diff --git a/src/main/java/org/jabref/logic/util/io/RegExpBasedFileFinder.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/io/RegExpBasedFileFinder.java similarity index 100% rename from src/main/java/org/jabref/logic/util/io/RegExpBasedFileFinder.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/io/RegExpBasedFileFinder.java diff --git a/src/main/java/org/jabref/logic/util/io/XMLUtil.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/io/XMLUtil.java similarity index 100% rename from src/main/java/org/jabref/logic/util/io/XMLUtil.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/io/XMLUtil.java diff --git a/src/main/java/org/jabref/logic/util/strings/DiffHighlighting.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/strings/DiffHighlighting.java similarity index 100% rename from src/main/java/org/jabref/logic/util/strings/DiffHighlighting.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/strings/DiffHighlighting.java diff --git a/src/main/java/org/jabref/logic/util/strings/HTMLUnicodeConversionMaps.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/strings/HTMLUnicodeConversionMaps.java similarity index 100% rename from src/main/java/org/jabref/logic/util/strings/HTMLUnicodeConversionMaps.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/strings/HTMLUnicodeConversionMaps.java diff --git a/src/main/java/org/jabref/logic/util/strings/QuotedStringTokenizer.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/strings/QuotedStringTokenizer.java similarity index 100% rename from src/main/java/org/jabref/logic/util/strings/QuotedStringTokenizer.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/strings/QuotedStringTokenizer.java diff --git a/src/main/java/org/jabref/logic/util/strings/RtfCharMap.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/strings/RtfCharMap.java similarity index 100% rename from src/main/java/org/jabref/logic/util/strings/RtfCharMap.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/strings/RtfCharMap.java diff --git a/src/main/java/org/jabref/logic/util/strings/StringLengthComparator.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/strings/StringLengthComparator.java similarity index 100% rename from src/main/java/org/jabref/logic/util/strings/StringLengthComparator.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/strings/StringLengthComparator.java diff --git a/src/main/java/org/jabref/logic/util/strings/StringSimilarity.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/strings/StringSimilarity.java similarity index 100% rename from src/main/java/org/jabref/logic/util/strings/StringSimilarity.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/strings/StringSimilarity.java diff --git a/src/main/java/org/jabref/logic/util/strings/UnicodeLigaturesMap.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/strings/UnicodeLigaturesMap.java similarity index 100% rename from src/main/java/org/jabref/logic/util/strings/UnicodeLigaturesMap.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/strings/UnicodeLigaturesMap.java diff --git a/src/main/java/org/jabref/logic/util/strings/XmlCharsMap.java b/org.jabref.logic/src/main/java/org/jabref/logic/util/strings/XmlCharsMap.java similarity index 100% rename from src/main/java/org/jabref/logic/util/strings/XmlCharsMap.java rename to org.jabref.logic/src/main/java/org/jabref/logic/util/strings/XmlCharsMap.java diff --git a/src/main/java/org/jabref/logic/xmp/EncryptedPdfsNotSupportedException.java b/org.jabref.logic/src/main/java/org/jabref/logic/xmp/EncryptedPdfsNotSupportedException.java similarity index 100% rename from src/main/java/org/jabref/logic/xmp/EncryptedPdfsNotSupportedException.java rename to org.jabref.logic/src/main/java/org/jabref/logic/xmp/EncryptedPdfsNotSupportedException.java diff --git a/src/main/java/org/jabref/logic/xmp/XMPPreferences.java b/org.jabref.logic/src/main/java/org/jabref/logic/xmp/XMPPreferences.java similarity index 100% rename from src/main/java/org/jabref/logic/xmp/XMPPreferences.java rename to org.jabref.logic/src/main/java/org/jabref/logic/xmp/XMPPreferences.java diff --git a/src/main/java/org/jabref/logic/xmp/XMPSchemaBibtex.java b/org.jabref.logic/src/main/java/org/jabref/logic/xmp/XMPSchemaBibtex.java similarity index 100% rename from src/main/java/org/jabref/logic/xmp/XMPSchemaBibtex.java rename to org.jabref.logic/src/main/java/org/jabref/logic/xmp/XMPSchemaBibtex.java diff --git a/src/main/java/org/jabref/logic/xmp/XMPUtil.java b/org.jabref.logic/src/main/java/org/jabref/logic/xmp/XMPUtil.java similarity index 100% rename from src/main/java/org/jabref/logic/xmp/XMPUtil.java rename to org.jabref.logic/src/main/java/org/jabref/logic/xmp/XMPUtil.java diff --git a/src/main/resources/build.properties b/org.jabref.logic/src/main/resources/build.properties similarity index 100% rename from src/main/resources/build.properties rename to org.jabref.logic/src/main/resources/build.properties diff --git a/src/main/resources/xjc/bibtexml/bibtexml.xsd b/org.jabref.logic/src/main/resources/xjc/bibtexml/bibtexml.xsd similarity index 100% rename from src/main/resources/xjc/bibtexml/bibtexml.xsd rename to org.jabref.logic/src/main/resources/xjc/bibtexml/bibtexml.xsd diff --git a/src/main/resources/xjc/medline/bookdoc_160101.xsd b/org.jabref.logic/src/main/resources/xjc/medline/bookdoc_160101.xsd similarity index 100% rename from src/main/resources/xjc/medline/bookdoc_160101.xsd rename to org.jabref.logic/src/main/resources/xjc/medline/bookdoc_160101.xsd diff --git a/src/main/resources/xjc/medline/medline.xsd b/org.jabref.logic/src/main/resources/xjc/medline/medline.xsd similarity index 100% rename from src/main/resources/xjc/medline/medline.xsd rename to org.jabref.logic/src/main/resources/xjc/medline/medline.xsd diff --git a/src/main/resources/xjc/medline/nlmmedlinecitationset_160101.xsd b/org.jabref.logic/src/main/resources/xjc/medline/nlmmedlinecitationset_160101.xsd similarity index 100% rename from src/main/resources/xjc/medline/nlmmedlinecitationset_160101.xsd rename to org.jabref.logic/src/main/resources/xjc/medline/nlmmedlinecitationset_160101.xsd diff --git a/src/main/resources/xjc/mods/mods-3-6.xsd b/org.jabref.logic/src/main/resources/xjc/mods/mods-3-6.xsd similarity index 100% rename from src/main/resources/xjc/mods/mods-3-6.xsd rename to org.jabref.logic/src/main/resources/xjc/mods/mods-3-6.xsd diff --git a/src/main/resources/xjc/mods/mods-binding.xjb b/org.jabref.logic/src/main/resources/xjc/mods/mods-binding.xjb similarity index 100% rename from src/main/resources/xjc/mods/mods-binding.xjb rename to org.jabref.logic/src/main/resources/xjc/mods/mods-binding.xjb diff --git a/src/test/java/org/jabref/logic/TypedBibEntryTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/TypedBibEntryTest.java similarity index 100% rename from src/test/java/org/jabref/logic/TypedBibEntryTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/TypedBibEntryTest.java diff --git a/src/test/java/org/jabref/logic/auxparser/AuxParserTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/auxparser/AuxParserTest.java similarity index 100% rename from src/test/java/org/jabref/logic/auxparser/AuxParserTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/auxparser/AuxParserTest.java diff --git a/src/test/java/org/jabref/logic/bibtex/BibEntryAssert.java b/org.jabref.logic/src/test/java/org/jabref/logic/bibtex/BibEntryAssert.java similarity index 100% rename from src/test/java/org/jabref/logic/bibtex/BibEntryAssert.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bibtex/BibEntryAssert.java diff --git a/src/test/java/org/jabref/logic/bibtex/BibEntryWriterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bibtex/BibEntryWriterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bibtex/BibEntryWriterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bibtex/BibEntryWriterTest.java diff --git a/src/test/java/org/jabref/logic/bibtex/DuplicateCheckTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bibtex/DuplicateCheckTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bibtex/DuplicateCheckTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bibtex/DuplicateCheckTest.java diff --git a/src/test/java/org/jabref/logic/bibtex/FieldContentParserTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bibtex/FieldContentParserTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bibtex/FieldContentParserTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bibtex/FieldContentParserTest.java diff --git a/src/test/java/org/jabref/logic/bibtex/LatexFieldFormatterTests.java b/org.jabref.logic/src/test/java/org/jabref/logic/bibtex/LatexFieldFormatterTests.java similarity index 100% rename from src/test/java/org/jabref/logic/bibtex/LatexFieldFormatterTests.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bibtex/LatexFieldFormatterTests.java diff --git a/src/test/java/org/jabref/logic/bibtex/comparator/BibDatabaseDiffTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bibtex/comparator/BibDatabaseDiffTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bibtex/comparator/BibDatabaseDiffTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bibtex/comparator/BibDatabaseDiffTest.java diff --git a/src/test/java/org/jabref/logic/bibtex/comparator/BibtexStringComparatorTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bibtex/comparator/BibtexStringComparatorTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bibtex/comparator/BibtexStringComparatorTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bibtex/comparator/BibtexStringComparatorTest.java diff --git a/src/test/java/org/jabref/logic/bibtex/comparator/CrossRefEntryComparatorTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bibtex/comparator/CrossRefEntryComparatorTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bibtex/comparator/CrossRefEntryComparatorTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bibtex/comparator/CrossRefEntryComparatorTest.java diff --git a/src/test/java/org/jabref/logic/bibtex/comparator/EntryComparatorTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bibtex/comparator/EntryComparatorTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bibtex/comparator/EntryComparatorTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bibtex/comparator/EntryComparatorTest.java diff --git a/src/test/java/org/jabref/logic/bibtex/comparator/FieldComparatorTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bibtex/comparator/FieldComparatorTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bibtex/comparator/FieldComparatorTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bibtex/comparator/FieldComparatorTest.java diff --git a/src/test/java/org/jabref/logic/bibtex/comparator/MetaDataDiffTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bibtex/comparator/MetaDataDiffTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bibtex/comparator/MetaDataDiffTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bibtex/comparator/MetaDataDiffTest.java diff --git a/src/test/java/org/jabref/logic/bibtexkeypattern/BibtexKeyGeneratorTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bibtexkeypattern/BibtexKeyGeneratorTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bibtexkeypattern/BibtexKeyGeneratorTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bibtexkeypattern/BibtexKeyGeneratorTest.java diff --git a/src/test/java/org/jabref/logic/bibtexkeypattern/MakeLabelWithDatabaseTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bibtexkeypattern/MakeLabelWithDatabaseTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bibtexkeypattern/MakeLabelWithDatabaseTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bibtexkeypattern/MakeLabelWithDatabaseTest.java diff --git a/src/test/java/org/jabref/logic/bibtexkeypattern/MakeLabelWithoutDatabaseTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bibtexkeypattern/MakeLabelWithoutDatabaseTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bibtexkeypattern/MakeLabelWithoutDatabaseTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bibtexkeypattern/MakeLabelWithoutDatabaseTest.java diff --git a/src/test/java/org/jabref/logic/bst/BibtexCaseChangersTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bst/BibtexCaseChangersTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bst/BibtexCaseChangersTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bst/BibtexCaseChangersTest.java diff --git a/src/test/java/org/jabref/logic/bst/BibtexNameFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bst/BibtexNameFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bst/BibtexNameFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bst/BibtexNameFormatterTest.java diff --git a/src/test/java/org/jabref/logic/bst/BibtexPurifyTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bst/BibtexPurifyTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bst/BibtexPurifyTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bst/BibtexPurifyTest.java diff --git a/src/test/java/org/jabref/logic/bst/BibtexWidthTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bst/BibtexWidthTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bst/BibtexWidthTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bst/BibtexWidthTest.java diff --git a/src/test/java/org/jabref/logic/bst/TestVM.java b/org.jabref.logic/src/test/java/org/jabref/logic/bst/TestVM.java similarity index 100% rename from src/test/java/org/jabref/logic/bst/TestVM.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bst/TestVM.java diff --git a/src/test/java/org/jabref/logic/bst/TextPrefixFunctionTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/bst/TextPrefixFunctionTest.java similarity index 100% rename from src/test/java/org/jabref/logic/bst/TextPrefixFunctionTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/bst/TextPrefixFunctionTest.java diff --git a/src/test/java/org/jabref/logic/citationstyle/CitationStyleGeneratorTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/citationstyle/CitationStyleGeneratorTest.java similarity index 100% rename from src/test/java/org/jabref/logic/citationstyle/CitationStyleGeneratorTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/citationstyle/CitationStyleGeneratorTest.java diff --git a/src/test/java/org/jabref/logic/citationstyle/CitationStyleTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/citationstyle/CitationStyleTest.java similarity index 100% rename from src/test/java/org/jabref/logic/citationstyle/CitationStyleTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/citationstyle/CitationStyleTest.java diff --git a/src/test/java/org/jabref/logic/cleanup/BibtexBiblatexRoundtripTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/cleanup/BibtexBiblatexRoundtripTest.java similarity index 100% rename from src/test/java/org/jabref/logic/cleanup/BibtexBiblatexRoundtripTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/cleanup/BibtexBiblatexRoundtripTest.java diff --git a/src/test/java/org/jabref/logic/cleanup/CleanupWorkerTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/cleanup/CleanupWorkerTest.java similarity index 100% rename from src/test/java/org/jabref/logic/cleanup/CleanupWorkerTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/cleanup/CleanupWorkerTest.java diff --git a/src/test/java/org/jabref/logic/cleanup/ConvertToBiblatexCleanupTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/cleanup/ConvertToBiblatexCleanupTest.java similarity index 100% rename from src/test/java/org/jabref/logic/cleanup/ConvertToBiblatexCleanupTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/cleanup/ConvertToBiblatexCleanupTest.java diff --git a/src/test/java/org/jabref/logic/cleanup/ConvertToBibtexCleanupTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/cleanup/ConvertToBibtexCleanupTest.java similarity index 100% rename from src/test/java/org/jabref/logic/cleanup/ConvertToBibtexCleanupTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/cleanup/ConvertToBibtexCleanupTest.java diff --git a/src/test/java/org/jabref/logic/cleanup/FieldFormatterCleanupTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/cleanup/FieldFormatterCleanupTest.java similarity index 100% rename from src/test/java/org/jabref/logic/cleanup/FieldFormatterCleanupTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/cleanup/FieldFormatterCleanupTest.java diff --git a/src/test/java/org/jabref/logic/cleanup/ISSNCleanupTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/cleanup/ISSNCleanupTest.java similarity index 100% rename from src/test/java/org/jabref/logic/cleanup/ISSNCleanupTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/cleanup/ISSNCleanupTest.java diff --git a/src/test/java/org/jabref/logic/cleanup/MoveFilesCleanupTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/cleanup/MoveFilesCleanupTest.java similarity index 100% rename from src/test/java/org/jabref/logic/cleanup/MoveFilesCleanupTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/cleanup/MoveFilesCleanupTest.java diff --git a/src/test/java/org/jabref/logic/cleanup/RenamePdfCleanupTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/cleanup/RenamePdfCleanupTest.java similarity index 100% rename from src/test/java/org/jabref/logic/cleanup/RenamePdfCleanupTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/cleanup/RenamePdfCleanupTest.java diff --git a/src/test/java/org/jabref/logic/exporter/BibTeXMLExporterTestFiles.java b/org.jabref.logic/src/test/java/org/jabref/logic/exporter/BibTeXMLExporterTestFiles.java similarity index 100% rename from src/test/java/org/jabref/logic/exporter/BibTeXMLExporterTestFiles.java rename to org.jabref.logic/src/test/java/org/jabref/logic/exporter/BibTeXMLExporterTestFiles.java diff --git a/src/test/java/org/jabref/logic/exporter/BibtexDatabaseWriterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/exporter/BibtexDatabaseWriterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/exporter/BibtexDatabaseWriterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/exporter/BibtexDatabaseWriterTest.java diff --git a/src/test/java/org/jabref/logic/exporter/CsvExportFormatTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/exporter/CsvExportFormatTest.java similarity index 100% rename from src/test/java/org/jabref/logic/exporter/CsvExportFormatTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/exporter/CsvExportFormatTest.java diff --git a/src/test/java/org/jabref/logic/exporter/ExporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/exporter/ExporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/exporter/ExporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/exporter/ExporterTest.java diff --git a/src/test/java/org/jabref/logic/exporter/FieldFormatterCleanupsTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/exporter/FieldFormatterCleanupsTest.java similarity index 100% rename from src/test/java/org/jabref/logic/exporter/FieldFormatterCleanupsTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/exporter/FieldFormatterCleanupsTest.java diff --git a/src/test/java/org/jabref/logic/exporter/GroupSerializerTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/exporter/GroupSerializerTest.java similarity index 100% rename from src/test/java/org/jabref/logic/exporter/GroupSerializerTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/exporter/GroupSerializerTest.java diff --git a/src/test/java/org/jabref/model/groups/GroupTreeNodeTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/exporter/GroupTreeNodeTest.java similarity index 100% rename from src/test/java/org/jabref/model/groups/GroupTreeNodeTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/exporter/GroupTreeNodeTest.java diff --git a/src/test/java/org/jabref/logic/exporter/HtmlExportFormatTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/exporter/HtmlExportFormatTest.java similarity index 100% rename from src/test/java/org/jabref/logic/exporter/HtmlExportFormatTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/exporter/HtmlExportFormatTest.java diff --git a/src/test/java/org/jabref/logic/exporter/MSBibExportFormatTestFiles.java b/org.jabref.logic/src/test/java/org/jabref/logic/exporter/MSBibExportFormatTestFiles.java similarity index 100% rename from src/test/java/org/jabref/logic/exporter/MSBibExportFormatTestFiles.java rename to org.jabref.logic/src/test/java/org/jabref/logic/exporter/MSBibExportFormatTestFiles.java diff --git a/src/test/java/org/jabref/logic/exporter/MetaDataSerializerTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/exporter/MetaDataSerializerTest.java similarity index 100% rename from src/test/java/org/jabref/logic/exporter/MetaDataSerializerTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/exporter/MetaDataSerializerTest.java diff --git a/src/test/java/org/jabref/logic/exporter/ModsExportFormatTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/exporter/ModsExportFormatTest.java similarity index 100% rename from src/test/java/org/jabref/logic/exporter/ModsExportFormatTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/exporter/ModsExportFormatTest.java diff --git a/src/test/java/org/jabref/logic/exporter/ModsExportFormatTestFiles.java b/org.jabref.logic/src/test/java/org/jabref/logic/exporter/ModsExportFormatTestFiles.java similarity index 97% rename from src/test/java/org/jabref/logic/exporter/ModsExportFormatTestFiles.java rename to org.jabref.logic/src/test/java/org/jabref/logic/exporter/ModsExportFormatTestFiles.java index 9a15c013765..3faf73dd291 100644 --- a/src/test/java/org/jabref/logic/exporter/ModsExportFormatTestFiles.java +++ b/org.jabref.logic/src/test/java/org/jabref/logic/exporter/ModsExportFormatTestFiles.java @@ -73,7 +73,7 @@ public void setUp() throws Exception { modsExportFormat = new ModsExporter(); tempFile = testFolder.newFile(); bibtexImporter = new BibtexImporter(mock(ImportFormatPreferences.class, Answers.RETURNS_DEEP_STUBS), new DummyFileUpdateMonitor()); - modsImporter = new ModsImporter(); + modsImporter = new ModsImporter(mock(ImportFormatPreferences.class, Answers.RETURNS_DEEP_STUBS)); } @Test diff --git a/src/test/java/org/jabref/logic/exporter/MsBibExportFormatTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/exporter/MsBibExportFormatTest.java similarity index 100% rename from src/test/java/org/jabref/logic/exporter/MsBibExportFormatTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/exporter/MsBibExportFormatTest.java diff --git a/src/test/java/org/jabref/logic/formatter/FormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/FormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/FormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/FormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/IdentityFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/IdentityFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/IdentityFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/IdentityFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/ClearFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/ClearFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/ClearFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/ClearFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/EscapeUnderscoresFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/EscapeUnderscoresFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/EscapeUnderscoresFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/EscapeUnderscoresFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/HtmlToLatexFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/HtmlToLatexFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/HtmlToLatexFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/HtmlToLatexFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/HtmlToUnicodeFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/HtmlToUnicodeFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/HtmlToUnicodeFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/HtmlToUnicodeFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/LatexCleanupFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/LatexCleanupFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/LatexCleanupFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/LatexCleanupFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizeDateFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizeDateFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizeDateFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizeDateFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizeMonthFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizeMonthFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizeMonthFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizeMonthFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizeNamesFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizeNamesFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizeNamesFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizeNamesFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizePagesFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizePagesFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizePagesFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/NormalizePagesFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/OrdinalsToSuperscriptFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/OrdinalsToSuperscriptFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/OrdinalsToSuperscriptFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/OrdinalsToSuperscriptFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/RegexFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/RegexFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/RegexFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/RegexFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/RemoveBracesFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/RemoveBracesFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/RemoveBracesFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/RemoveBracesFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/RemoveHyphenatedNewlinesFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/RemoveHyphenatedNewlinesFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/RemoveHyphenatedNewlinesFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/RemoveHyphenatedNewlinesFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/RemoveNewlinesFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/RemoveNewlinesFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/RemoveNewlinesFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/RemoveNewlinesFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/UnicodeConverterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/UnicodeConverterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/UnicodeConverterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/UnicodeConverterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/UnicodeToLatexFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/UnicodeToLatexFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/UnicodeToLatexFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/UnicodeToLatexFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/bibtexfields/UnitsToLatexFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/UnitsToLatexFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/bibtexfields/UnitsToLatexFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/bibtexfields/UnitsToLatexFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/casechanger/CapitalizeFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/casechanger/CapitalizeFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/casechanger/CapitalizeFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/casechanger/CapitalizeFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/casechanger/LowerCaseFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/casechanger/LowerCaseFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/casechanger/LowerCaseFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/casechanger/LowerCaseFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/casechanger/ProtectTermsFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/casechanger/ProtectTermsFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/casechanger/ProtectTermsFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/casechanger/ProtectTermsFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/casechanger/SentenceCaseFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/casechanger/SentenceCaseFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/casechanger/SentenceCaseFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/casechanger/SentenceCaseFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/casechanger/TitleCaseFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/casechanger/TitleCaseFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/casechanger/TitleCaseFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/casechanger/TitleCaseFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/casechanger/UpperCaseFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/casechanger/UpperCaseFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/casechanger/UpperCaseFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/casechanger/UpperCaseFormatterTest.java diff --git a/src/test/java/org/jabref/logic/formatter/minifier/MinifyNameListFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/formatter/minifier/MinifyNameListFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/formatter/minifier/MinifyNameListFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/formatter/minifier/MinifyNameListFormatterTest.java diff --git a/src/test/java/org/jabref/logic/help/HelpFileTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/help/HelpFileTest.java similarity index 100% rename from src/test/java/org/jabref/logic/help/HelpFileTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/help/HelpFileTest.java diff --git a/src/test/java/org/jabref/logic/importer/BibDatabaseTestsWithFiles.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/BibDatabaseTestsWithFiles.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/BibDatabaseTestsWithFiles.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/BibDatabaseTestsWithFiles.java diff --git a/src/test/java/org/jabref/logic/importer/FulltextFetchersTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/FulltextFetchersTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/FulltextFetchersTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/FulltextFetchersTest.java diff --git a/src/test/java/org/jabref/logic/importer/ImportFormatReaderIntegrationTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/ImportFormatReaderIntegrationTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/ImportFormatReaderIntegrationTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/ImportFormatReaderIntegrationTest.java diff --git a/src/test/java/org/jabref/logic/importer/ImportFormatReaderTestParameterless.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/ImportFormatReaderTestParameterless.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/ImportFormatReaderTestParameterless.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/ImportFormatReaderTestParameterless.java diff --git a/src/test/java/org/jabref/logic/importer/ImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/ImporterTest.java similarity index 98% rename from src/test/java/org/jabref/logic/importer/ImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/ImporterTest.java index e797e21ec2d..d39397085b2 100644 --- a/src/test/java/org/jabref/logic/importer/ImporterTest.java +++ b/org.jabref.logic/src/test/java/org/jabref/logic/importer/ImporterTest.java @@ -115,7 +115,7 @@ public static Collection instancesToTest() { new Object[]{new IsiImporter()}, new Object[]{new MedlineImporter()}, new Object[]{new MedlinePlainImporter()}, - new Object[]{new ModsImporter()}, + new Object[]{new ModsImporter(importFormatPreferences)}, new Object[]{new MsBibImporter()}, new Object[]{new OvidImporter()}, new Object[]{new PdfContentImporter(importFormatPreferences)}, diff --git a/src/test/java/org/jabref/logic/importer/OpenDatabaseTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/OpenDatabaseTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/OpenDatabaseTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/OpenDatabaseTest.java diff --git a/src/test/java/org/jabref/logic/importer/WebFetchersTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/WebFetchersTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/WebFetchersTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/WebFetchersTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/ACSTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/ACSTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/ACSTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/ACSTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/AbstractIsbnFetcherTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/AbstractIsbnFetcherTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/AbstractIsbnFetcherTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/AbstractIsbnFetcherTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/ArXivTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/ArXivTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/ArXivTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/ArXivTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/AstrophysicsDataSystemTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/AstrophysicsDataSystemTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/AstrophysicsDataSystemTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/AstrophysicsDataSystemTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/CrossRefTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/CrossRefTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/CrossRefTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/CrossRefTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/DBLPFetcherTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/DBLPFetcherTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/DBLPFetcherTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/DBLPFetcherTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/DiVATest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/DiVATest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/DiVATest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/DiVATest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/DoiFetcherTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/DoiFetcherTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/DoiFetcherTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/DoiFetcherTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/DoiResolutionTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/DoiResolutionTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/DoiResolutionTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/DoiResolutionTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/FulltextFetcherTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/FulltextFetcherTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/FulltextFetcherTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/FulltextFetcherTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/GoogleScholarTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/GoogleScholarTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/GoogleScholarTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/GoogleScholarTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/GvkFetcherTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/GvkFetcherTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/GvkFetcherTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/GvkFetcherTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/GvkParserTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/GvkParserTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/GvkParserTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/GvkParserTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/IEEETest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/IEEETest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/IEEETest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/IEEETest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/IacrEprintFetcherTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/IacrEprintFetcherTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/IacrEprintFetcherTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/IacrEprintFetcherTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/IsbnFetcherTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/IsbnFetcherTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/IsbnFetcherTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/IsbnFetcherTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/IsbnViaChimboriFetcherTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/IsbnViaChimboriFetcherTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/IsbnViaChimboriFetcherTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/IsbnViaChimboriFetcherTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/IsbnViaEbookDeFetcherTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/IsbnViaEbookDeFetcherTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/IsbnViaEbookDeFetcherTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/IsbnViaEbookDeFetcherTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/LibraryOfCongressTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/LibraryOfCongressTest.java similarity index 87% rename from src/test/java/org/jabref/logic/importer/fetcher/LibraryOfCongressTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/LibraryOfCongressTest.java index fe5b4b1946d..ecbdf9bfb49 100644 --- a/src/test/java/org/jabref/logic/importer/fetcher/LibraryOfCongressTest.java +++ b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/LibraryOfCongressTest.java @@ -2,17 +2,20 @@ import java.util.Optional; +import org.jabref.logic.importer.ImportFormatPreferences; import org.jabref.model.entry.BibEntry; import org.jabref.testutils.category.FetcherTest; import org.junit.jupiter.api.Test; +import org.mockito.Answers; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.mockito.Mockito.mock; @FetcherTest public class LibraryOfCongressTest { - private final LibraryOfCongress fetcher = new LibraryOfCongress(); + private final LibraryOfCongress fetcher = new LibraryOfCongress(mock(ImportFormatPreferences.class, Answers.RETURNS_DEEP_STUBS)); @Test public void performSearchById() throws Exception { diff --git a/src/test/java/org/jabref/logic/importer/fetcher/MathSciNetTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/MathSciNetTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/MathSciNetTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/MathSciNetTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/MedlineFetcherTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/MedlineFetcherTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/MedlineFetcherTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/MedlineFetcherTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/MrDLibFetcherTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/MrDLibFetcherTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/MrDLibFetcherTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/MrDLibFetcherTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/OpenAccessDoiTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/OpenAccessDoiTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/OpenAccessDoiTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/OpenAccessDoiTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/ScienceDirectTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/ScienceDirectTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/ScienceDirectTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/ScienceDirectTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/SpringerLinkTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/SpringerLinkTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/SpringerLinkTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/SpringerLinkTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/TitleFetcherTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/TitleFetcherTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/TitleFetcherTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/TitleFetcherTest.java diff --git a/src/test/java/org/jabref/logic/importer/fetcher/zbMATHTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/zbMATHTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fetcher/zbMATHTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fetcher/zbMATHTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/BibTeXMLImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BibTeXMLImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/BibTeXMLImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BibTeXMLImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestFiles.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestFiles.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestFiles.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestFiles.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestTypes.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestTypes.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestTypes.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestTypes.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/BiblioscapeImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BiblioscapeImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/BiblioscapeImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BiblioscapeImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestFiles.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestFiles.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestFiles.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestFiles.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestTypes.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestTypes.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestTypes.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestTypes.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/BibtexImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BibtexImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/BibtexImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BibtexImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/BibtexParserTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BibtexParserTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/BibtexParserTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/BibtexParserTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/CopacImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/CopacImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/CopacImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/CopacImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/CopacImporterTestFiles.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/CopacImporterTestFiles.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/CopacImporterTestFiles.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/CopacImporterTestFiles.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/CustomImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/CustomImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/CustomImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/CustomImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/EndnoteImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/EndnoteImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/EndnoteImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/EndnoteImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/FreeCiteImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/FreeCiteImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/FreeCiteImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/FreeCiteImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/ImporterTestEngine.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/ImporterTestEngine.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/ImporterTestEngine.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/ImporterTestEngine.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/InspecImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/InspecImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/InspecImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/InspecImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/IsiImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/IsiImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/IsiImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/IsiImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/MedlineImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/MedlineImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/MedlineImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/MedlineImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/MedlineImporterTestFiles.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/MedlineImporterTestFiles.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/MedlineImporterTestFiles.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/MedlineImporterTestFiles.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/MedlinePlainImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/MedlinePlainImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/MedlinePlainImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/MedlinePlainImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/ModsImporterTestFiles.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/ModsImporterTestFiles.java similarity index 71% rename from src/test/java/org/jabref/logic/importer/fileformat/ModsImporterTestFiles.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/ModsImporterTestFiles.java index caceb0b1b97..701936a7724 100644 --- a/src/test/java/org/jabref/logic/importer/fileformat/ModsImporterTestFiles.java +++ b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/ModsImporterTestFiles.java @@ -4,9 +4,13 @@ import java.util.function.Predicate; import java.util.stream.Stream; +import org.jabref.logic.importer.ImportFormatPreferences; + import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; +import org.mockito.Answers; +import static org.mockito.Mockito.mock; public class ModsImporterTestFiles { @@ -21,12 +25,13 @@ private static Stream fileNames() throws IOException { @ParameterizedTest @MethodSource("fileNames") public void testIsRecognizedFormat(String fileName) throws IOException { - ImporterTestEngine.testIsRecognizedFormat(new ModsImporter(), fileName); + ImporterTestEngine.testIsRecognizedFormat(new ModsImporter(mock(ImportFormatPreferences.class, Answers.RETURNS_DEEP_STUBS)), fileName); } @ParameterizedTest @MethodSource("fileNames") public void testImportEntries(String fileName) throws Exception { - ImporterTestEngine.testImportEntries(new ModsImporter(), fileName, FILE_ENDING); + ImporterTestEngine.testImportEntries(new ModsImporter(mock(ImportFormatPreferences.class, Answers.RETURNS_DEEP_STUBS) + ), fileName, FILE_ENDING); } } diff --git a/src/test/java/org/jabref/logic/importer/fileformat/MrDLibImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/MrDLibImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/MrDLibImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/MrDLibImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/MsBibImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/MsBibImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/MsBibImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/MsBibImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/MsBibImporterTestFiles.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/MsBibImporterTestFiles.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/MsBibImporterTestFiles.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/MsBibImporterTestFiles.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/OvidImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/OvidImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/OvidImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/OvidImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/PdfContentImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/PdfContentImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/PdfContentImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/PdfContentImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/PdfContentImporterTestFiles.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/PdfContentImporterTestFiles.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/PdfContentImporterTestFiles.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/PdfContentImporterTestFiles.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/PdfXmpImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/PdfXmpImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/PdfXmpImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/PdfXmpImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/RISImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/RISImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/RISImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/RISImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/RISImporterTestFiles.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/RISImporterTestFiles.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/RISImporterTestFiles.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/RISImporterTestFiles.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/RepecNepImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/RepecNepImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/RepecNepImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/RepecNepImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest.java diff --git a/src/test/java/org/jabref/logic/importer/util/ConvertLegacyExplicitGroupsTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/util/ConvertLegacyExplicitGroupsTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/util/ConvertLegacyExplicitGroupsTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/util/ConvertLegacyExplicitGroupsTest.java diff --git a/src/test/java/org/jabref/logic/importer/util/GroupsParserTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/util/GroupsParserTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/util/GroupsParserTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/util/GroupsParserTest.java diff --git a/src/test/java/org/jabref/logic/importer/util/JSONEntryParserTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/importer/util/JSONEntryParserTest.java similarity index 100% rename from src/test/java/org/jabref/logic/importer/util/JSONEntryParserTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/importer/util/JSONEntryParserTest.java diff --git a/src/test/java/org/jabref/logic/integrity/BracesCorrectorTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/integrity/BracesCorrectorTest.java similarity index 100% rename from src/test/java/org/jabref/logic/integrity/BracesCorrectorTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/integrity/BracesCorrectorTest.java diff --git a/src/test/java/org/jabref/logic/integrity/EntryLinkCheckerTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/integrity/EntryLinkCheckerTest.java similarity index 100% rename from src/test/java/org/jabref/logic/integrity/EntryLinkCheckerTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/integrity/EntryLinkCheckerTest.java diff --git a/src/test/java/org/jabref/logic/integrity/IntegrityCheckTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/integrity/IntegrityCheckTest.java similarity index 100% rename from src/test/java/org/jabref/logic/integrity/IntegrityCheckTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/integrity/IntegrityCheckTest.java diff --git a/src/test/java/org/jabref/logic/integrity/NoBibTexFieldCheckerTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/integrity/NoBibTexFieldCheckerTest.java similarity index 100% rename from src/test/java/org/jabref/logic/integrity/NoBibTexFieldCheckerTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/integrity/NoBibTexFieldCheckerTest.java diff --git a/src/test/java/org/jabref/logic/integrity/PersonNamesCheckerTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/integrity/PersonNamesCheckerTest.java similarity index 100% rename from src/test/java/org/jabref/logic/integrity/PersonNamesCheckerTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/integrity/PersonNamesCheckerTest.java diff --git a/src/test/java/org/jabref/logic/journals/AbbreviationParserTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/journals/AbbreviationParserTest.java similarity index 100% rename from src/test/java/org/jabref/logic/journals/AbbreviationParserTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/journals/AbbreviationParserTest.java diff --git a/src/test/java/org/jabref/logic/journals/AbbreviationTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/journals/AbbreviationTest.java similarity index 100% rename from src/test/java/org/jabref/logic/journals/AbbreviationTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/journals/AbbreviationTest.java diff --git a/src/test/java/org/jabref/logic/journals/AbbreviationsTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/journals/AbbreviationsTest.java similarity index 100% rename from src/test/java/org/jabref/logic/journals/AbbreviationsTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/journals/AbbreviationsTest.java diff --git a/src/test/java/org/jabref/logic/journals/JournalAbbreviationRepositoryTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/journals/JournalAbbreviationRepositoryTest.java similarity index 100% rename from src/test/java/org/jabref/logic/journals/JournalAbbreviationRepositoryTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/journals/JournalAbbreviationRepositoryTest.java diff --git a/src/test/java/org/jabref/logic/journals/ShippedJournalAbbreviationDuplicateTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/journals/ShippedJournalAbbreviationDuplicateTest.java similarity index 100% rename from src/test/java/org/jabref/logic/journals/ShippedJournalAbbreviationDuplicateTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/journals/ShippedJournalAbbreviationDuplicateTest.java diff --git a/src/test/java/org/jabref/logic/l10n/EncodingsTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/l10n/EncodingsTest.java similarity index 100% rename from src/test/java/org/jabref/logic/l10n/EncodingsTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/l10n/EncodingsTest.java diff --git a/src/test/java/org/jabref/logic/l10n/LanguagesTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/l10n/LanguagesTest.java similarity index 100% rename from src/test/java/org/jabref/logic/l10n/LanguagesTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/l10n/LanguagesTest.java diff --git a/src/test/java/org/jabref/logic/l10n/LocalizationBundleForTEst.java b/org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationBundleForTEst.java similarity index 100% rename from src/test/java/org/jabref/logic/l10n/LocalizationBundleForTEst.java rename to org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationBundleForTEst.java diff --git a/src/test/java/org/jabref/logic/l10n/LocalizationConsistencyTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationConsistencyTest.java similarity index 100% rename from src/test/java/org/jabref/logic/l10n/LocalizationConsistencyTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationConsistencyTest.java diff --git a/src/test/java/org/jabref/logic/l10n/LocalizationEntry.java b/org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationEntry.java similarity index 100% rename from src/test/java/org/jabref/logic/l10n/LocalizationEntry.java rename to org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationEntry.java diff --git a/src/test/java/org/jabref/logic/l10n/LocalizationKeyParamsTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationKeyParamsTest.java similarity index 100% rename from src/test/java/org/jabref/logic/l10n/LocalizationKeyParamsTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationKeyParamsTest.java diff --git a/src/test/java/org/jabref/logic/l10n/LocalizationKeyTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationKeyTest.java similarity index 100% rename from src/test/java/org/jabref/logic/l10n/LocalizationKeyTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationKeyTest.java diff --git a/src/test/java/org/jabref/logic/l10n/LocalizationParser.java b/org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationParser.java similarity index 100% rename from src/test/java/org/jabref/logic/l10n/LocalizationParser.java rename to org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationParser.java diff --git a/src/test/java/org/jabref/logic/l10n/LocalizationParserTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationParserTest.java similarity index 100% rename from src/test/java/org/jabref/logic/l10n/LocalizationParserTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationParserTest.java diff --git a/src/test/java/org/jabref/logic/l10n/LocalizationTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationTest.java similarity index 100% rename from src/test/java/org/jabref/logic/l10n/LocalizationTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/l10n/LocalizationTest.java diff --git a/src/test/java/org/jabref/logic/l10n/PropertiesLocaleCompletenessTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/l10n/PropertiesLocaleCompletenessTest.java similarity index 100% rename from src/test/java/org/jabref/logic/l10n/PropertiesLocaleCompletenessTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/l10n/PropertiesLocaleCompletenessTest.java diff --git a/src/test/java/org/jabref/logic/layout/LayoutEntryTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/LayoutEntryTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/LayoutEntryTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/LayoutEntryTest.java diff --git a/src/test/java/org/jabref/logic/layout/LayoutTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/LayoutTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/LayoutTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/LayoutTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorAbbreviatorTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorAbbreviatorTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorAbbreviatorTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorAbbreviatorTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorAndToSemicolonReplacerTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorAndToSemicolonReplacerTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorAndToSemicolonReplacerTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorAndToSemicolonReplacerTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorAndsCommaReplacerTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorAndsCommaReplacerTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorAndsCommaReplacerTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorAndsCommaReplacerTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorAndsReplacerTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorAndsReplacerTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorAndsReplacerTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorAndsReplacerTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastCommasTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastCommasTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastCommasTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastCommasTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastOxfordCommasTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastOxfordCommasTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastOxfordCommasTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorFirstAbbrLastOxfordCommasTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorFirstFirstCommasTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorFirstFirstCommasTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorFirstFirstCommasTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorFirstFirstCommasTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorFirstFirstTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorFirstFirstTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorFirstFirstTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorFirstFirstTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorFirstLastCommasTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorFirstLastCommasTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorFirstLastCommasTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorFirstLastCommasTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorFirstLastOxfordCommasTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorFirstLastOxfordCommasTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorFirstLastOxfordCommasTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorFirstLastOxfordCommasTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorLF_FFAbbrTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLF_FFAbbrTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorLF_FFAbbrTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLF_FFAbbrTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorLF_FFTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLF_FFTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorLF_FFTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLF_FFTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrCommasTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrCommasTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrCommasTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrCommasTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrOxfordCommasTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrOxfordCommasTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrOxfordCommasTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstAbbrOxfordCommasTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstAbbreviatorTester.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstAbbreviatorTester.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorLastFirstAbbreviatorTester.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstAbbreviatorTester.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstCommasTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstCommasTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorLastFirstCommasTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstCommasTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstOxfordCommasTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstOxfordCommasTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorLastFirstOxfordCommasTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstOxfordCommasTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorLastFirstTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorLastFirstTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorNatBibTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorNatBibTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorNatBibTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorNatBibTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorOrgSciTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorOrgSciTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorOrgSciTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorOrgSciTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/AuthorsTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorsTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/AuthorsTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/AuthorsTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/CompositeFormatTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/CompositeFormatTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/CompositeFormatTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/CompositeFormatTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/DOICheckTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/DOICheckTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/DOICheckTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/DOICheckTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/DOIStripTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/DOIStripTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/DOIStripTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/DOIStripTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/DateFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/DateFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/DateFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/DateFormatterTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/DefaultTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/DefaultTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/DefaultTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/DefaultTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/EntryTypeFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/EntryTypeFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/EntryTypeFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/EntryTypeFormatterTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/FileLinkTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/FileLinkTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/FileLinkTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/FileLinkTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/FirstPageTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/FirstPageTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/FirstPageTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/FirstPageTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/HTMLCharsTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/HTMLCharsTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/HTMLCharsTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/HTMLCharsTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/HTMLParagraphsTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/HTMLParagraphsTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/HTMLParagraphsTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/HTMLParagraphsTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/IfPluralTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/IfPluralTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/IfPluralTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/IfPluralTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/LastPageTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/LastPageTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/LastPageTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/LastPageTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/LatexToUnicodeFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/LatexToUnicodeFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/LatexToUnicodeFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/LatexToUnicodeFormatterTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/NameFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/NameFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/NameFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/NameFormatterTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/NoSpaceBetweenAbbreviationsTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/NoSpaceBetweenAbbreviationsTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/NoSpaceBetweenAbbreviationsTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/NoSpaceBetweenAbbreviationsTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/OrdinalTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/OrdinalTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/OrdinalTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/OrdinalTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/RTFCharsTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/RTFCharsTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/RTFCharsTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/RTFCharsTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/RemoveBracketsAddCommaTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/RemoveBracketsAddCommaTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/RemoveBracketsAddCommaTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/RemoveBracketsAddCommaTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/RemoveBracketsTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/RemoveBracketsTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/RemoveBracketsTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/RemoveBracketsTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/RemoveTildeTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/RemoveTildeTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/RemoveTildeTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/RemoveTildeTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/RemoveWhitespaceTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/RemoveWhitespaceTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/RemoveWhitespaceTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/RemoveWhitespaceTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/ReplaceTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/ReplaceTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/ReplaceTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/ReplaceTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/ReplaceUnicodeLigaturesFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/ReplaceUnicodeLigaturesFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/ReplaceUnicodeLigaturesFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/ReplaceUnicodeLigaturesFormatterTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/RisKeywordsTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/RisKeywordsTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/RisKeywordsTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/RisKeywordsTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/RisMonthTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/RisMonthTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/RisMonthTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/RisMonthTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/ToLowerCaseTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/ToLowerCaseTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/ToLowerCaseTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/ToLowerCaseTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/ToUpperCaseTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/ToUpperCaseTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/ToUpperCaseTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/ToUpperCaseTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/WrapContentTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/WrapContentTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/WrapContentTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/WrapContentTest.java diff --git a/src/test/java/org/jabref/logic/layout/format/WrapFileLinksTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/layout/format/WrapFileLinksTest.java similarity index 100% rename from src/test/java/org/jabref/logic/layout/format/WrapFileLinksTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/layout/format/WrapFileLinksTest.java diff --git a/src/test/java/org/jabref/logic/msbib/MsBibAuthorTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/msbib/MsBibAuthorTest.java similarity index 100% rename from src/test/java/org/jabref/logic/msbib/MsBibAuthorTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/msbib/MsBibAuthorTest.java diff --git a/src/test/java/org/jabref/logic/net/MimeTypeDetectorTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/net/MimeTypeDetectorTest.java similarity index 100% rename from src/test/java/org/jabref/logic/net/MimeTypeDetectorTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/net/MimeTypeDetectorTest.java diff --git a/src/test/java/org/jabref/logic/net/URLDownloadTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/net/URLDownloadTest.java similarity index 100% rename from src/test/java/org/jabref/logic/net/URLDownloadTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/net/URLDownloadTest.java diff --git a/src/test/java/org/jabref/logic/net/URLUtilTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/net/URLUtilTest.java similarity index 100% rename from src/test/java/org/jabref/logic/net/URLUtilTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/net/URLUtilTest.java diff --git a/src/test/java/org/jabref/logic/openoffice/CitationEntryTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/openoffice/CitationEntryTest.java similarity index 100% rename from src/test/java/org/jabref/logic/openoffice/CitationEntryTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/openoffice/CitationEntryTest.java diff --git a/src/test/java/org/jabref/logic/openoffice/OOBibStyleTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/openoffice/OOBibStyleTest.java similarity index 98% rename from src/test/java/org/jabref/logic/openoffice/OOBibStyleTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/openoffice/OOBibStyleTest.java index 485bcdfe64a..acf109a3d49 100644 --- a/src/test/java/org/jabref/logic/openoffice/OOBibStyleTest.java +++ b/org.jabref.logic/src/test/java/org/jabref/logic/openoffice/OOBibStyleTest.java @@ -1,6 +1,5 @@ package org.jabref.logic.openoffice; -import java.io.File; import java.io.IOException; import java.net.URISyntaxException; import java.nio.charset.StandardCharsets; @@ -13,7 +12,6 @@ import java.util.Map; import java.util.Set; -import org.jabref.JabRefMain; import org.jabref.logic.importer.ImportFormatPreferences; import org.jabref.logic.importer.Importer; import org.jabref.logic.importer.ParserResult; @@ -59,11 +57,8 @@ public void testAuthorYear() throws IOException { @Test public void testAuthorYearAsFile() throws URISyntaxException, IOException { - - File defFile = Paths.get(JabRefMain.class.getResource(StyleLoader.DEFAULT_AUTHORYEAR_STYLE_PATH).toURI()) - .toFile(); - - OOBibStyle style = new OOBibStyle(defFile, layoutFormatterPreferences, StandardCharsets.UTF_8); + OOBibStyle style = new OOBibStyle(StyleLoader.DEFAULT_NUMERICAL_STYLE_PATH, + layoutFormatterPreferences); assertTrue(style.isValid()); assertFalse(style.isFromResource()); assertFalse(style.isBibtexKeyCiteMarkers()); diff --git a/src/test/java/org/jabref/logic/openoffice/OOPreFormatterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/openoffice/OOPreFormatterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/openoffice/OOPreFormatterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/openoffice/OOPreFormatterTest.java diff --git a/src/test/java/org/jabref/logic/openoffice/StyleLoaderTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/openoffice/StyleLoaderTest.java similarity index 100% rename from src/test/java/org/jabref/logic/openoffice/StyleLoaderTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/openoffice/StyleLoaderTest.java diff --git a/src/test/java/org/jabref/logic/pdf/EntryAnnotationImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/pdf/EntryAnnotationImporterTest.java similarity index 91% rename from src/test/java/org/jabref/logic/pdf/EntryAnnotationImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/pdf/EntryAnnotationImporterTest.java index bbf62e29d7f..f4068cda66f 100644 --- a/src/test/java/org/jabref/logic/pdf/EntryAnnotationImporterTest.java +++ b/org.jabref.logic/src/test/java/org/jabref/logic/pdf/EntryAnnotationImporterTest.java @@ -1,6 +1,5 @@ package org.jabref.logic.pdf; - import java.nio.file.Path; import java.nio.file.Paths; import java.util.Collections; @@ -10,6 +9,7 @@ import org.jabref.model.database.BibDatabaseContext; import org.jabref.model.entry.BibEntry; import org.jabref.model.entry.FieldName; +import org.jabref.model.metadata.FileDirectoryPreferences; import org.jabref.model.pdf.FileAnnotation; import org.junit.jupiter.api.BeforeEach; @@ -37,7 +37,7 @@ public void readEntryExampleThesis() { EntryAnnotationImporter entryAnnotationImporter = new EntryAnnotationImporter(entry); //when - Map> annotations = entryAnnotationImporter.importAnnotationsFromFiles(databaseContext); + Map> annotations = entryAnnotationImporter.importAnnotationsFromFiles(databaseContext, mock(FileDirectoryPreferences.class)); //then int fileCounter = 0; diff --git a/src/test/java/org/jabref/logic/pdf/PdfAnnotationImporterTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/pdf/PdfAnnotationImporterTest.java similarity index 100% rename from src/test/java/org/jabref/logic/pdf/PdfAnnotationImporterTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/pdf/PdfAnnotationImporterTest.java diff --git a/src/test/java/org/jabref/logic/protectedterms/ProtectedTermsListTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/protectedterms/ProtectedTermsListTest.java similarity index 100% rename from src/test/java/org/jabref/logic/protectedterms/ProtectedTermsListTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/protectedterms/ProtectedTermsListTest.java diff --git a/src/test/java/org/jabref/logic/protectedterms/ProtectedTermsLoaderTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/protectedterms/ProtectedTermsLoaderTest.java similarity index 100% rename from src/test/java/org/jabref/logic/protectedterms/ProtectedTermsLoaderTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/protectedterms/ProtectedTermsLoaderTest.java diff --git a/src/test/java/org/jabref/logic/search/DatabaseSearcherTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/search/DatabaseSearcherTest.java similarity index 100% rename from src/test/java/org/jabref/logic/search/DatabaseSearcherTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/search/DatabaseSearcherTest.java diff --git a/src/test/java/org/jabref/logic/search/SearchQueryHighlightObservableTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/search/SearchQueryHighlightObservableTest.java similarity index 100% rename from src/test/java/org/jabref/logic/search/SearchQueryHighlightObservableTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/search/SearchQueryHighlightObservableTest.java diff --git a/src/test/java/org/jabref/logic/search/SearchQueryTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/search/SearchQueryTest.java similarity index 100% rename from src/test/java/org/jabref/logic/search/SearchQueryTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/search/SearchQueryTest.java diff --git a/src/test/java/org/jabref/logic/specialfields/SpecialFieldsUtilsTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/specialfields/SpecialFieldsUtilsTest.java similarity index 100% rename from src/test/java/org/jabref/logic/specialfields/SpecialFieldsUtilsTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/specialfields/SpecialFieldsUtilsTest.java diff --git a/src/test/java/org/jabref/logic/util/BracketedPatternTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/util/BracketedPatternTest.java similarity index 100% rename from src/test/java/org/jabref/logic/util/BracketedPatternTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/util/BracketedPatternTest.java diff --git a/src/test/java/org/jabref/logic/util/BuildInfoTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/util/BuildInfoTest.java similarity index 100% rename from src/test/java/org/jabref/logic/util/BuildInfoTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/util/BuildInfoTest.java diff --git a/src/test/java/org/jabref/logic/util/DevelopmentStageTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/util/DevelopmentStageTest.java similarity index 100% rename from src/test/java/org/jabref/logic/util/DevelopmentStageTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/util/DevelopmentStageTest.java diff --git a/src/test/java/org/jabref/logic/util/FileTypeTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/util/FileTypeTest.java similarity index 100% rename from src/test/java/org/jabref/logic/util/FileTypeTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/util/FileTypeTest.java diff --git a/src/test/java/org/jabref/logic/util/JavaVersionTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/util/JavaVersionTest.java similarity index 100% rename from src/test/java/org/jabref/logic/util/JavaVersionTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/util/JavaVersionTest.java diff --git a/src/test/java/org/jabref/logic/util/UpdateFieldTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/util/UpdateFieldTest.java similarity index 100% rename from src/test/java/org/jabref/logic/util/UpdateFieldTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/util/UpdateFieldTest.java diff --git a/src/test/java/org/jabref/logic/util/VersionTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/util/VersionTest.java similarity index 100% rename from src/test/java/org/jabref/logic/util/VersionTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/util/VersionTest.java diff --git a/src/test/java/org/jabref/logic/util/io/CiteKeyBasedFileFinderTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/util/io/CiteKeyBasedFileFinderTest.java similarity index 100% rename from src/test/java/org/jabref/logic/util/io/CiteKeyBasedFileFinderTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/util/io/CiteKeyBasedFileFinderTest.java diff --git a/src/test/java/org/jabref/logic/util/io/FileHistoryTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/util/io/FileHistoryTest.java similarity index 100% rename from src/test/java/org/jabref/logic/util/io/FileHistoryTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/util/io/FileHistoryTest.java diff --git a/src/test/java/org/jabref/logic/util/io/FileNameCleanerTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/util/io/FileNameCleanerTest.java similarity index 100% rename from src/test/java/org/jabref/logic/util/io/FileNameCleanerTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/util/io/FileNameCleanerTest.java diff --git a/src/test/java/org/jabref/logic/util/io/FileUtilTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/util/io/FileUtilTest.java similarity index 100% rename from src/test/java/org/jabref/logic/util/io/FileUtilTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/util/io/FileUtilTest.java diff --git a/src/test/java/org/jabref/logic/util/io/RegExpBasedFileFinderTests.java b/org.jabref.logic/src/test/java/org/jabref/logic/util/io/RegExpBasedFileFinderTests.java similarity index 100% rename from src/test/java/org/jabref/logic/util/io/RegExpBasedFileFinderTests.java rename to org.jabref.logic/src/test/java/org/jabref/logic/util/io/RegExpBasedFileFinderTests.java diff --git a/src/test/java/org/jabref/logic/util/strings/DiffHighlightingTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/util/strings/DiffHighlightingTest.java similarity index 100% rename from src/test/java/org/jabref/logic/util/strings/DiffHighlightingTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/util/strings/DiffHighlightingTest.java diff --git a/src/test/java/org/jabref/logic/util/strings/StringLengthComparatorTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/util/strings/StringLengthComparatorTest.java similarity index 100% rename from src/test/java/org/jabref/logic/util/strings/StringLengthComparatorTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/util/strings/StringLengthComparatorTest.java diff --git a/src/test/java/org/jabref/BibtexTestData.java b/org.jabref.logic/src/test/java/org/jabref/logic/xmp/BibtexTestData.java similarity index 98% rename from src/test/java/org/jabref/BibtexTestData.java rename to org.jabref.logic/src/test/java/org/jabref/logic/xmp/BibtexTestData.java index e166a076c98..4aeed93e904 100644 --- a/src/test/java/org/jabref/BibtexTestData.java +++ b/org.jabref.logic/src/test/java/org/jabref/logic/xmp/BibtexTestData.java @@ -1,4 +1,4 @@ -package org.jabref; +package org.jabref.logic.xmp; import java.io.IOException; import java.io.StringReader; diff --git a/src/test/java/org/jabref/logic/xmp/XMPSchemaBibtexTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/xmp/XMPSchemaBibtexTest.java similarity index 99% rename from src/test/java/org/jabref/logic/xmp/XMPSchemaBibtexTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/xmp/XMPSchemaBibtexTest.java index 377ffebaa9e..f09e4844763 100644 --- a/src/test/java/org/jabref/logic/xmp/XMPSchemaBibtexTest.java +++ b/org.jabref.logic/src/test/java/org/jabref/logic/xmp/XMPSchemaBibtexTest.java @@ -10,7 +10,6 @@ import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; -import org.jabref.BibtexTestData; import org.jabref.logic.bibtex.FieldContentParserPreferences; import org.jabref.logic.importer.ImportFormatPreferences; import org.jabref.model.entry.BibEntry; @@ -259,7 +258,7 @@ public void testSetBibtexEntry() throws IOException { BibEntry e2 = bibtex.getBibtexEntry(); - assertEqualsBibtexEntry(e, e2); + assertEquals(e, e2); } @Test diff --git a/src/test/java/org/jabref/logic/xmp/XMPUtilTest.java b/org.jabref.logic/src/test/java/org/jabref/logic/xmp/XMPUtilTest.java similarity index 88% rename from src/test/java/org/jabref/logic/xmp/XMPUtilTest.java rename to org.jabref.logic/src/test/java/org/jabref/logic/xmp/XMPUtilTest.java index 3d934e5741f..392f232296b 100644 --- a/src/test/java/org/jabref/logic/xmp/XMPUtilTest.java +++ b/org.jabref.logic/src/test/java/org/jabref/logic/xmp/XMPUtilTest.java @@ -28,7 +28,6 @@ import javax.xml.transform.TransformerException; -import org.jabref.cli.XMPUtilMain; import org.jabref.logic.bibtex.BibEntryWriter; import org.jabref.logic.bibtex.LatexFieldFormatter; import org.jabref.logic.bibtex.LatexFieldFormatterPreferences; @@ -1087,194 +1086,6 @@ public void testReadRawXMP() throws IOException, TransformerException { } - /** - * Test whether the command-line client works correctly with writing a single entry - * @throws IOException - * @throws TransformerException - * @throws COSVisitorException - * - - */ - @Test - public void testCommandLineSingleBib() throws IOException, TransformerException, COSVisitorException { - - // First check conversion from .bib to .xmp - File tempBib = tempFolder.newFile("JabRef.bib"); - try (BufferedWriter fileWriter = Files.newBufferedWriter(tempBib.toPath(), StandardCharsets.UTF_8)) { - fileWriter.write(t1BibtexString()); - fileWriter.close(); - - try (ByteArrayOutputStream s = new ByteArrayOutputStream()) { - PrintStream oldOut = System.out; - System.setOut(new PrintStream(s)); - XMPUtilMain.main(new String[] {tempBib.getAbsolutePath()}); - System.setOut(oldOut); - String xmp = s.toString(); - - writeManually(pdfFile, xmp); - } - List l = XMPUtil.readXMP(pdfFile, xmpPreferences); - Assert.assertEquals(1, l.size()); - assertEqualsBibtexEntry(t1BibtexEntry(), l.get(0)); - - } - } - - /** - * @throws IOException - * @throws TransformerException - * @throws COSVisitorException - * @depends XMPUtil.writeXMP - */ - @Test - public void testCommandLineSinglePdf() throws IOException, TransformerException, COSVisitorException { - { - // Write XMP to file - - BibEntry e = t1BibtexEntry(); - - XMPUtil.writeXMP(pdfFile, e, null, xmpPreferences); - - try (ByteArrayOutputStream s = new ByteArrayOutputStream()) { - PrintStream oldOut = System.out; - System.setOut(new PrintStream(s)); - XMPUtilMain.main(new String[] {pdfFile.getAbsolutePath()}); - System.setOut(oldOut); - String bibtex = s.toString(); - - ParserResult result = new BibtexParser(importFormatPreferences, fileMonitor).parse(new StringReader(bibtex)); - Collection c = result.getDatabase().getEntries(); - Assert.assertEquals(1, c.size()); - BibEntry x = c.iterator().next(); - - assertEqualsBibtexEntry(e, x); - } - } - // Write XMP to file - BibEntry e = t1BibtexEntry(); - - XMPUtil.writeXMP(pdfFile, e, null, xmpPreferences); - - try (ByteArrayOutputStream s = new ByteArrayOutputStream()) { - PrintStream oldOut = System.out; - System.setOut(new PrintStream(s)); - XMPUtilMain.main(new String[] {"-x", pdfFile.getAbsolutePath()}); - System.setOut(oldOut); - s.close(); - String xmp = s.toString(); - - /* Test minimal syntaxical completeness */ - Assert.assertTrue(xmp.indexOf("xpacket") > 0); - Assert.assertTrue(xmp.indexOf("adobe:ns:meta") > 0); - Assert.assertTrue((xmp.indexOf("canh05") > 0) - || (xmp.indexOf("bibtex:bibtexkey=") > 0)); - Assert.assertTrue(xmp.indexOf("K. Crowston") > 0); - Assert.assertTrue((xmp.indexOf("id='W5M0MpCehiHzreSzNTczkc9d'?>") > 0) - || (xmp.indexOf("id=\"W5M0MpCehiHzreSzNTczkc9d\"?>") > 0)); - Assert.assertTrue((xmp.indexOf("xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'") > 0) - || (xmp.indexOf("xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"") > 0)); - Assert.assertTrue(xmp.indexOf(" 0); - Assert.assertTrue((xmp.indexOf("") > 0) || (xmp.indexOf("") > 0)); - - /* Test contents of string */ - writeManually(pdfFile, xmp); - List l = XMPUtil.readXMP(pdfFile, xmpPreferences); - Assert.assertEquals(1, l.size()); - - assertEqualsBibtexEntry(t1BibtexEntry(), l.get(0)); - } - } - - /** - * Test whether the command-line client can pick one of several entries from a bibtex file - * @throws IOException - * @throws TransformerException - */ - @Test - public void testCommandLineByKey() throws IOException, TransformerException { - File tempBib = tempFolder.newFile("JabRef.bib"); - try (BufferedWriter fileWriter = Files.newBufferedWriter(tempBib.toPath(), StandardCharsets.UTF_8)) { - fileWriter.write(t1BibtexString()); - fileWriter.write(t2BibtexString()); - } - - PrintStream sysOut = System.out; - - // First try canh05 - try (ByteArrayOutputStream s = new ByteArrayOutputStream()) { - System.setOut(new PrintStream(s)); - XMPUtilMain.main(new String[]{"canh05", tempBib.getAbsolutePath(), pdfFile.getAbsolutePath()}); - } finally { - System.setOut(sysOut); - } - - // PDF should be annotated: - List l = XMPUtil.readXMP(pdfFile, xmpPreferences); - Assert.assertEquals(1, l.size()); - assertEqualsBibtexEntry(t1BibtexEntry(), l.get(0)); - - // Now try OezbekC06 - try (ByteArrayOutputStream s = new ByteArrayOutputStream()) { - System.setOut(new PrintStream(s)); - try { - XMPUtilMain.main(new String[]{"OezbekC06", tempBib.getAbsolutePath(), pdfFile.getAbsolutePath()}); - } finally { - System.setOut(sysOut); - } - } - - // PDF should be annotated: - l = XMPUtil.readXMP(pdfFile, xmpPreferences); - Assert.assertEquals(1, l.size()); - assertEqualsBibtexEntry(t2BibtexEntry(), l.get(0)); - } - - /** - * Test whether the command-line client can deal with several bibtex entries. - * @throws IOException - * @throws TransformerException - */ - @Test - public void testCommandLineSeveral() throws IOException, TransformerException { - - File tempBib = tempFolder.newFile("JabRef.bib"); - - try (BufferedWriter fileWriter = Files.newBufferedWriter(tempBib.toPath(), StandardCharsets.UTF_8)) { - - fileWriter.write(t1BibtexString()); - fileWriter.write(t3BibtexString()); - fileWriter.close(); - - try (ByteArrayOutputStream s = new ByteArrayOutputStream()) { - PrintStream oldOut = System.out; - System.setOut(new PrintStream(s)); - XMPUtilMain.main(new String[] {tempBib.getAbsolutePath(), pdfFile.getAbsolutePath()}); - System.setOut(oldOut); - } - List l = XMPUtil.readXMP(pdfFile, xmpPreferences); - - Assert.assertEquals(2, l.size()); - - BibEntry a = l.get(0); - BibEntry b = l.get(1); - - if (a.getCiteKeyOptional().get().equals("Clarkson06")) { - BibEntry tmp = a; - a = b; - b = tmp; - } - - BibEntry t1 = t1BibtexEntry(); - BibEntry t3 = t3BibtexEntry(); - - // Writing and reading will resolve strings! - t3.setField("month", "July"); - - assertEqualsBibtexEntry(t1, a); - assertEqualsBibtexEntry(t3, b); - } - } - /** * Test that readXMP and writeXMP work together. * @throws IOException diff --git a/src/test/java/org/jabref/model/entry/FileFieldBibEntryTest.java b/org.jabref.logic/src/test/java/org/jabref/model/entry/FileFieldBibEntryTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/FileFieldBibEntryTest.java rename to org.jabref.logic/src/test/java/org/jabref/model/entry/FileFieldBibEntryTest.java diff --git a/src/test/java/org/jabref/model/groups/TexGroupTest.java b/org.jabref.logic/src/test/java/org/jabref/model/groups/TexGroupTest.java similarity index 84% rename from src/test/java/org/jabref/model/groups/TexGroupTest.java rename to org.jabref.logic/src/test/java/org/jabref/model/groups/TexGroupTest.java index f9a279ed599..3d869bee22f 100644 --- a/src/test/java/org/jabref/model/groups/TexGroupTest.java +++ b/org.jabref.logic/src/test/java/org/jabref/model/groups/TexGroupTest.java @@ -3,7 +3,6 @@ import java.nio.file.Path; import java.nio.file.Paths; -import org.jabref.logic.auxparser.AuxParserTest; import org.jabref.logic.auxparser.DefaultAuxParser; import org.jabref.model.database.BibDatabase; import org.jabref.model.entry.BibEntry; @@ -18,7 +17,7 @@ public class TexGroupTest { @Test public void containsReturnsTrueForEntryInAux() throws Exception { - Path auxFile = Paths.get(AuxParserTest.class.getResource("paper.aux").toURI()); + Path auxFile = Paths.get(TexGroupTest.class.getResource("paper.aux").toURI()); TexGroup group = new TexGroup("paper", GroupHierarchyType.INDEPENDENT, auxFile, new DefaultAuxParser(new BibDatabase()), new DummyFileUpdateMonitor()); BibEntry inAux = new BibEntry(); inAux.setCiteKey("Darwin1888"); @@ -28,7 +27,7 @@ public void containsReturnsTrueForEntryInAux() throws Exception { @Test public void containsReturnsTrueForEntryNotInAux() throws Exception { - Path auxFile = Paths.get(AuxParserTest.class.getResource("paper.aux").toURI()); + Path auxFile = Paths.get(TexGroupTest.class.getResource("paper.aux").toURI()); TexGroup group = new TexGroup("paper", GroupHierarchyType.INDEPENDENT, auxFile, new DefaultAuxParser(new BibDatabase()), new DummyFileUpdateMonitor()); BibEntry notInAux = new BibEntry(); notInAux.setCiteKey("NotInAux2017"); diff --git a/src/test/java/org/jabref/support/CIServerCondition.java b/org.jabref.logic/src/test/java/org/jabref/support/CIServerCondition.java similarity index 100% rename from src/test/java/org/jabref/support/CIServerCondition.java rename to org.jabref.logic/src/test/java/org/jabref/support/CIServerCondition.java diff --git a/src/test/java/org/jabref/support/DisabledOnCIServer.java b/org.jabref.logic/src/test/java/org/jabref/support/DisabledOnCIServer.java similarity index 100% rename from src/test/java/org/jabref/support/DisabledOnCIServer.java rename to org.jabref.logic/src/test/java/org/jabref/support/DisabledOnCIServer.java diff --git a/src/test/java/org/jabref/testutils/category/FetcherTest.java b/org.jabref.logic/src/test/java/org/jabref/testutils/category/FetcherTest.java similarity index 100% rename from src/test/java/org/jabref/testutils/category/FetcherTest.java rename to org.jabref.logic/src/test/java/org/jabref/testutils/category/FetcherTest.java diff --git a/src/test/resources/org/jabref/logic/auxparser/badpaper.aux b/org.jabref.logic/src/test/resources/org/jabref/logic/auxparser/badpaper.aux similarity index 100% rename from src/test/resources/org/jabref/logic/auxparser/badpaper.aux rename to org.jabref.logic/src/test/resources/org/jabref/logic/auxparser/badpaper.aux diff --git a/src/test/resources/org/jabref/logic/auxparser/config.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/auxparser/config.bib similarity index 100% rename from src/test/resources/org/jabref/logic/auxparser/config.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/auxparser/config.bib diff --git a/src/test/resources/org/jabref/logic/auxparser/crossref.aux b/org.jabref.logic/src/test/resources/org/jabref/logic/auxparser/crossref.aux similarity index 100% rename from src/test/resources/org/jabref/logic/auxparser/crossref.aux rename to org.jabref.logic/src/test/resources/org/jabref/logic/auxparser/crossref.aux diff --git a/src/test/resources/org/jabref/logic/auxparser/nested.aux b/org.jabref.logic/src/test/resources/org/jabref/logic/auxparser/nested.aux similarity index 100% rename from src/test/resources/org/jabref/logic/auxparser/nested.aux rename to org.jabref.logic/src/test/resources/org/jabref/logic/auxparser/nested.aux diff --git a/src/test/resources/org/jabref/logic/auxparser/origin.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/auxparser/origin.bib similarity index 100% rename from src/test/resources/org/jabref/logic/auxparser/origin.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/auxparser/origin.bib diff --git a/src/test/resources/org/jabref/logic/auxparser/paper.aux b/org.jabref.logic/src/test/resources/org/jabref/logic/auxparser/paper.aux similarity index 100% rename from src/test/resources/org/jabref/logic/auxparser/paper.aux rename to org.jabref.logic/src/test/resources/org/jabref/logic/auxparser/paper.aux diff --git a/src/test/resources/org/jabref/logic/auxparser/result.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/auxparser/result.bib similarity index 100% rename from src/test/resources/org/jabref/logic/auxparser/result.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/auxparser/result.bib diff --git a/src/test/resources/org/jabref/logic/bst/abbrv.bst b/org.jabref.logic/src/test/resources/org/jabref/logic/bst/abbrv.bst similarity index 100% rename from src/test/resources/org/jabref/logic/bst/abbrv.bst rename to org.jabref.logic/src/test/resources/org/jabref/logic/bst/abbrv.bst diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticle.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticle.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticle.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticle.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticle.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticle.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticle.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticle.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticleWithoutID.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticleWithoutID.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticleWithoutID.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticleWithoutID.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticleWithoutID.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticleWithoutID.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticleWithoutID.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestArticleWithoutID.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestAuthor.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestAuthor.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestAuthor.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestAuthor.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestAuthor.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestAuthor.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestAuthor.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestAuthor.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBook.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBook.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBook.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBook.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBook.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBook.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBook.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBook.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBooklet.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBooklet.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBooklet.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBooklet.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBooklet.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBooklet.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBooklet.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestBooklet.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestConference.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestConference.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestConference.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestConference.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestConference.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestConference.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestConference.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestConference.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInBook.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInBook.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInBook.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInBook.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInBook.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInBook.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInBook.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInBook.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInCollection.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInCollection.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInCollection.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInCollection.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInCollection.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInCollection.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInCollection.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInCollection.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInProceedings.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInProceedings.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInProceedings.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInProceedings.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInProceedings.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInProceedings.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInProceedings.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInProceedings.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInbookLessFields.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInbookLessFields.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInbookLessFields.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInbookLessFields.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInbookLessFields.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInbookLessFields.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInbookLessFields.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInbookLessFields.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInvalidInbook.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInvalidInbook.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInvalidInbook.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInvalidInbook.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInvalidInbook.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInvalidInbook.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInvalidInbook.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestInvalidInbook.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestManual.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestManual.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestManual.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestManual.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestManual.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestManual.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestManual.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestManual.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMasterThesis.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMasterThesis.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMasterThesis.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMasterThesis.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMasterThesis.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMasterThesis.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMasterThesis.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMasterThesis.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMisc.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMisc.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMisc.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMisc.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMisc.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMisc.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMisc.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestMisc.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestPhdThesis.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestPhdThesis.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestPhdThesis.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestPhdThesis.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestPhdThesis.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestPhdThesis.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestPhdThesis.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestPhdThesis.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestProceedings.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestProceedings.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestProceedings.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestProceedings.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestProceedings.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestProceedings.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestProceedings.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestProceedings.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestTechReport.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestTechReport.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestTechReport.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestTechReport.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestTechReport.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestTechReport.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestTechReport.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestTechReport.xml diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestUnpublished.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestUnpublished.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestUnpublished.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestUnpublished.bib diff --git a/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestUnpublished.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestUnpublished.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestUnpublished.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/BibTeXMLExporterTestUnpublished.xml diff --git a/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestAllFields.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestAllFields.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestAllFields.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestAllFields.bib diff --git a/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestAllFields.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestAllFields.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestAllFields.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestAllFields.xml diff --git a/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestBook.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestBook.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestBook.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestBook.bib diff --git a/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestBook.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestBook.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestBook.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestBook.xml diff --git a/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestMultipleEntries.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestMultipleEntries.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestMultipleEntries.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestMultipleEntries.bib diff --git a/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestMultipleEntries.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestMultipleEntries.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestMultipleEntries.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestMultipleEntries.xml diff --git a/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestOnlyRequiredFields.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestOnlyRequiredFields.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestOnlyRequiredFields.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestOnlyRequiredFields.bib diff --git a/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestOnlyRequiredFields.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestOnlyRequiredFields.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestOnlyRequiredFields.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestOnlyRequiredFields.xml diff --git a/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestTotalPages.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestTotalPages.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestTotalPages.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestTotalPages.bib diff --git a/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestTotalPages.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestTotalPages.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestTotalPages.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/ModsExportFormatTestTotalPages.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest1.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest1.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest1.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest1.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest1.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest1.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest1.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest1.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest2.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest2.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest2.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest2.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest2.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest2.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest2.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest2.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest3.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest3.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest3.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest3.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest3.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest3.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest3.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest3.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest4.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest4.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest4.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest4.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest4.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest4.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest4.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest4.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest5.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest5.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest5.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest5.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest5.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest5.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest5.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest5.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest6.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest6.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest6.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest6.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest6.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest6.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest6.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest6.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest7.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest7.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest7.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest7.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest7.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest7.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest7.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTest7.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestAddressWithoutComma.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestAddressWithoutComma.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestAddressWithoutComma.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestAddressWithoutComma.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestAddressWithoutComma.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestAddressWithoutComma.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestAddressWithoutComma.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestAddressWithoutComma.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestCorporateAuthor.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestCorporateAuthor.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestCorporateAuthor.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestCorporateAuthor.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestCorporateAuthor.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestCorporateAuthor.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestCorporateAuthor.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestCorporateAuthor.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDateAcessed.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDateAcessed.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDateAcessed.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDateAcessed.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDateAcessed.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDateAcessed.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDateAcessed.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDateAcessed.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDay.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDay.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDay.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDay.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDay.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDay.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDay.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestDay.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestLatexFree.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestLatexFree.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestLatexFree.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestLatexFree.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestLatexFree.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestLatexFree.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestLatexFree.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatTestLatexFree.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatUmlauts.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatUmlauts.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatUmlauts.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatUmlauts.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatUmlauts.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatUmlauts.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibExportFormatUmlauts.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibExportFormatUmlauts.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibKeyTest.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibKeyTest.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibKeyTest.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibKeyTest.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibKeyTest.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibKeyTest.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibKeyTest.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibKeyTest.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibLCID.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibLCID.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibLCID.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibLCID.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibLCID.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibLCID.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibLCID.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibLCID.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibLocationTest.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibLocationTest.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibLocationTest.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibLocationTest.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibLocationTest.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibLocationTest.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibLocationTest.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibLocationTest.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibMultiAddressTest.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibMultiAddressTest.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibMultiAddressTest.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibMultiAddressTest.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibMultiAddressTest.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibMultiAddressTest.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibMultiAddressTest.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibMultiAddressTest.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibPatent.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibPatent.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibPatent.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibPatent.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibPatent.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibPatent.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibPatent.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibPatent.xml diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibShorttitle.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibShorttitle.bib similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibShorttitle.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibShorttitle.bib diff --git a/src/test/resources/org/jabref/logic/exporter/MsBibShorttitle.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibShorttitle.xml similarity index 100% rename from src/test/resources/org/jabref/logic/exporter/MsBibShorttitle.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/exporter/MsBibShorttitle.xml diff --git a/src/test/resources/org/jabref/logic/importer/encoding-header.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/encoding-header.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/encoding-header.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/encoding-header.bib diff --git a/src/test/resources/org/jabref/logic/importer/encodingWithoutNewline.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/encodingWithoutNewline.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/encodingWithoutNewline.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/encodingWithoutNewline.bib diff --git a/src/test/resources/org/jabref/logic/importer/fetcher/gvk_artificial_subtitle_test.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fetcher/gvk_artificial_subtitle_test.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fetcher/gvk_artificial_subtitle_test.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fetcher/gvk_artificial_subtitle_test.xml diff --git a/src/test/resources/org/jabref/logic/importer/fetcher/gvk_empty_result_because_of_bad_query.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fetcher/gvk_empty_result_because_of_bad_query.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fetcher/gvk_empty_result_because_of_bad_query.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fetcher/gvk_empty_result_because_of_bad_query.xml diff --git a/src/test/resources/org/jabref/logic/importer/fetcher/gvk_gmp.1.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fetcher/gvk_gmp.1.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fetcher/gvk_gmp.1.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fetcher/gvk_gmp.1.bib diff --git a/src/test/resources/org/jabref/logic/importer/fetcher/gvk_gmp.2.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fetcher/gvk_gmp.2.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fetcher/gvk_gmp.2.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fetcher/gvk_gmp.2.bib diff --git a/src/test/resources/org/jabref/logic/importer/fetcher/gvk_gmp.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fetcher/gvk_gmp.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fetcher/gvk_gmp.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fetcher/gvk_gmp.xml diff --git a/src/test/resources/org/jabref/logic/importer/fetcher/gvk_result_for_797485368.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fetcher/gvk_result_for_797485368.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fetcher/gvk_result_for_797485368.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fetcher/gvk_result_for_797485368.bib diff --git a/src/test/resources/org/jabref/logic/importer/fetcher/gvk_result_for_797485368.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fetcher/gvk_result_for_797485368.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fetcher/gvk_result_for_797485368.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fetcher/gvk_result_for_797485368.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/AutosavedSharedDatabase.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/AutosavedSharedDatabase.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/AutosavedSharedDatabase.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/AutosavedSharedDatabase.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle2.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle2.bib similarity index 95% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle2.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle2.bib index 515e1a1367b..b9f3c67b3ab 100644 --- a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle2.bib +++ b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle2.bib @@ -1,9 +1,9 @@ -@article{Mustermann2016, - author = {Max Mustermann}, - journal = {Java Journal}, - keywords = {java}, - month = {February}, - pages = {2}, - title = {Java tricks}, - year = {2016} -} +@article{Mustermann2016, + author = {Max Mustermann}, + journal = {Java Journal}, + keywords = {java}, + month = {February}, + pages = {2}, + title = {Java tricks}, + year = {2016} +} diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle2.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle2.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle2.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticle2.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticleWithoutID.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticleWithoutID.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticleWithoutID.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticleWithoutID.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticleWithoutID.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticleWithoutID.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticleWithoutID.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestArticleWithoutID.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBook.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBook.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBook.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBook.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBook.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBook.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBook.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBook.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBooklet.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBooklet.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBooklet.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBooklet.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBooklet.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBooklet.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBooklet.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestBooklet.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestConference.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestConference.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestConference.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestConference.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestConference.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestConference.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestConference.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestConference.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestEmpty.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestEmpty.bib similarity index 87% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestEmpty.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestEmpty.bib index abc96e4f08b..5e40fa403f5 100644 --- a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestEmpty.bib +++ b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestEmpty.bib @@ -1,3 +1,3 @@ -@misc{EmptyEntry, - -} +@misc{EmptyEntry, + +} diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestEmpty.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestEmpty.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestEmpty.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestEmpty.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInBook.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInBook.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInBook.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInBook.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInBook.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInBook.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInBook.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInBook.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInCollection.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInCollection.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInCollection.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInCollection.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInCollection.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInCollection.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInCollection.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInCollection.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInProceedings.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInProceedings.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInProceedings.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInProceedings.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInProceedings.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInProceedings.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInProceedings.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInProceedings.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInbookLessFields.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInbookLessFields.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInbookLessFields.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInbookLessFields.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInbookLessFields.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInbookLessFields.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInbookLessFields.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInbookLessFields.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestIncollectionWithoutChapter.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestIncollectionWithoutChapter.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestIncollectionWithoutChapter.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestIncollectionWithoutChapter.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestIncollectionWithoutChapter.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestIncollectionWithoutChapter.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestIncollectionWithoutChapter.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestIncollectionWithoutChapter.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInvalidInbook.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInvalidInbook.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInvalidInbook.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInvalidInbook.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInvalidInbook.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInvalidInbook.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInvalidInbook.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestInvalidInbook.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestManual.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestManual.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestManual.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestManual.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestManual.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestManual.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestManual.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestManual.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMasterThesis.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMasterThesis.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMasterThesis.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMasterThesis.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMasterThesis.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMasterThesis.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMasterThesis.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMasterThesis.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMisc.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMisc.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMisc.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMisc.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMisc.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMisc.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMisc.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestMisc.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestPhdThesis.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestPhdThesis.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestPhdThesis.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestPhdThesis.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestPhdThesis.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestPhdThesis.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestPhdThesis.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestPhdThesis.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestProceedings.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestProceedings.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestProceedings.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestProceedings.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestProceedings.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestProceedings.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestProceedings.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestProceedings.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestTechReport.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestTechReport.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestTechReport.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestTechReport.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestTechReport.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestTechReport.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestTechReport.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestTechReport.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestUnpublished.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestUnpublished.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestUnpublished.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestUnpublished.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestUnpublished.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestUnpublished.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestUnpublished.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibTeXMLImporterTestUnpublished.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestArticleST.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestArticleST.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestArticleST.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestArticleST.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestArticleST.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestArticleST.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestArticleST.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestArticleST.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestComments.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestComments.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestComments.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestComments.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestComments.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestComments.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestComments.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestComments.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestCorrupt.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestCorrupt.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestCorrupt.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestCorrupt.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestInbook.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestInbook.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestInbook.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestInbook.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestInbook.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestInbook.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestInbook.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestInbook.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestJournalArticle.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestJournalArticle.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestJournalArticle.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestJournalArticle.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestJournalArticle.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestJournalArticle.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestJournalArticle.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestJournalArticle.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestKeywords.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestKeywords.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestKeywords.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestKeywords.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestKeywords.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestKeywords.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestKeywords.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestKeywords.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestOptionalFields.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestOptionalFields.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestOptionalFields.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestOptionalFields.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestOptionalFields.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestOptionalFields.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestOptionalFields.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestOptionalFields.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownFields.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownFields.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownFields.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownFields.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownFields.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownFields.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownFields.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownFields.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownType.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownType.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownType.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownType.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownType.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownType.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownType.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BiblioscapeImporterTestUnknownType.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/BibtexImporter.examples.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibtexImporter.examples.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/BibtexImporter.examples.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/BibtexImporter.examples.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest1.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest1.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest1.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest1.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest1.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest1.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest1.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest1.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest2.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest2.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest2.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest2.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest2.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest2.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest2.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/CopacImporterTest2.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/Empty.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/Empty.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/Empty.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/Empty.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/EmptyMsBib_Test.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/EmptyMsBib_Test.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/EmptyMsBib_Test.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/EmptyMsBib_Test.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.book.example.enw b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.book.example.enw similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/Endnote.book.example.enw rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.book.example.enw diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.entries.enw b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.entries.enw similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/Endnote.entries.enw rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.entries.enw diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.pattern.A.enw b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.pattern.A.enw similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/Endnote.pattern.A.enw rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.pattern.A.enw diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.pattern.E.enw b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.pattern.E.enw similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/Endnote.pattern.E.enw rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.pattern.E.enw diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.pattern.no_enw b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.pattern.no_enw similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/Endnote.pattern.no_enw rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/Endnote.pattern.no_enw diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/IEEEImport1.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/IEEEImport1.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/IEEEImport1.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/IEEEImport1.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/InspecImportTest.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/InspecImportTest.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/InspecImportTest.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/InspecImportTest.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/InspecImportTest2.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/InspecImportTest2.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/InspecImportTest2.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/InspecImportTest2.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/InspecImportTestFalse.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/InspecImportTestFalse.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/InspecImportTestFalse.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/InspecImportTestFalse.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTest1.isi b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTest1.isi similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTest1.isi rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTest1.isi diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTest2.isi b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTest2.isi similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTest2.isi rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTest2.isi diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestEmpty.isi b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestEmpty.isi similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestEmpty.isi rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestEmpty.isi diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestInspec.isi b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestInspec.isi similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestInspec.isi rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestInspec.isi diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestMedline.isi b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestMedline.isi similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestMedline.isi rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestMedline.isi diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestWOS.isi b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestWOS.isi similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestWOS.isi rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/IsiImporterTestWOS.isi diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal-protected.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal-protected.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal-protected.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal-protected.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal-protected.pdf b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal-protected.pdf similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal-protected.pdf rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal-protected.pdf diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal.pdf b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal.pdf similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal.pdf rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/LNCS-minimal.pdf diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestAllFields.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestAllFields.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestAllFields.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestAllFields.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestAllFields.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestAllFields.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestAllFields.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestAllFields.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMinimal.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMinimal.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMinimal.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMinimal.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMinimal.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMinimal.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMinimal.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMinimal.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMods.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMods.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMods.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMods.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMods.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMods.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMods.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestMods.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestModsCollection.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestModsCollection.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestModsCollection.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestModsCollection.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestModsCollection.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestModsCollection.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestModsCollection.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MODSImporterTestModsCollection.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleID.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleID.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleID.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleID.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleID.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleID.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleID.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleID.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleNoISSN.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleNoISSN.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleNoISSN.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleNoISSN.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleNoISSN.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleNoISSN.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleNoISSN.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestArticleNoISSN.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestBookArticleSet.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestBookArticleSet.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestBookArticleSet.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestBookArticleSet.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestBookArticleSet.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestBookArticleSet.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestBookArticleSet.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestBookArticleSet.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestKeywordSingleEntry.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestKeywordSingleEntry.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestKeywordSingleEntry.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestKeywordSingleEntry.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestKeywordSingleEntry.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestKeywordSingleEntry.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestKeywordSingleEntry.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestKeywordSingleEntry.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestMalformedEntry.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestMalformedEntry.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestMalformedEntry.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestMalformedEntry.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestMinimalEntry.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestMinimalEntry.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestMinimalEntry.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestMinimalEntry.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestMinimalEntry.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestMinimalEntry.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestMinimalEntry.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestMinimalEntry.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestNbib.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestNbib.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestNbib.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestNbib.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestNbib.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestNbib.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestNbib.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestNbib.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestPubmedBook.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestPubmedBook.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestPubmedBook.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestPubmedBook.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestPubmedBook.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestPubmedBook.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestPubmedBook.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlineImporterTestPubmedBook.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterStringOutOfBounds.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterStringOutOfBounds.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterStringOutOfBounds.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterStringOutOfBounds.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterStringOutOfBounds.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterStringOutOfBounds.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterStringOutOfBounds.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterStringOutOfBounds.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestCompleteEntry.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestCompleteEntry.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestCompleteEntry.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestCompleteEntry.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestCompleteEntry.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestCompleteEntry.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestCompleteEntry.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestCompleteEntry.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestDOI.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestDOI.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestDOI.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestDOI.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestDOI.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestDOI.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestDOI.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestDOI.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestInproceeding.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestInproceeding.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestInproceeding.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestInproceeding.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestInproceeding.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestInproceeding.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestInproceeding.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestInproceeding.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestInvalidFormat.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestInvalidFormat.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestInvalidFormat.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestInvalidFormat.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiAbstract.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiAbstract.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiAbstract.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiAbstract.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiAbstract.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiAbstract.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiAbstract.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiAbstract.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiTitle.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiTitle.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiTitle.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiTitle.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiTitle.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiTitle.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiTitle.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultiTitle.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultipleEntries.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultipleEntries.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultipleEntries.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MedlinePlainImporterTestMultipleEntries.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibExportFormatUmlauts.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibExportFormatUmlauts.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibExportFormatUmlauts.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibExportFormatUmlauts.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibExportFormatUmlauts.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibExportFormatUmlauts.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibExportFormatUmlauts.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibExportFormatUmlauts.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterInvalidMonth.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterInvalidMonth.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterInvalidMonth.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterInvalidMonth.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterInvalidMonth.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterInvalidMonth.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterInvalidMonth.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterInvalidMonth.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterMsBibFieldsTest.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterMsBibFieldsTest.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterMsBibFieldsTest.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterMsBibFieldsTest.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterMsBibFieldsTest.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterMsBibFieldsTest.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterMsBibFieldsTest.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterMsBibFieldsTest.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest3.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest3.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest3.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest3.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest3.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest3.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest3.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest3.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest4.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest4.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest4.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest4.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest4.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest4.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest4.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest4.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest5.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest5.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest5.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest5.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest5.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest5.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest5.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest5.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest6.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest6.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest6.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest6.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest6.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest6.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest6.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest6.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest7.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest7.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest7.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest7.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest7.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest7.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest7.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTest7.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTestTranslator.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTestTranslator.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTestTranslator.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTestTranslator.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTestTranslator.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTestTranslator.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTestTranslator.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTestTranslator.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTitleTest.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTitleTest.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTitleTest.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTitleTest.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTitleTest.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTitleTest.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTitleTest.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibImporterTitleTest.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibLCID.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibLCID.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibLCID.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibLCID.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibLCID.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibLCID.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibLCID.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibLCID.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibLocationTest.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibLocationTest.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibLocationTest.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibLocationTest.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibLocationTest.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibLocationTest.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibLocationTest.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibLocationTest.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibMultiLocationAddressTest.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibMultiLocationAddressTest.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibMultiLocationAddressTest.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibMultiLocationAddressTest.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibMultiLocationAddressTest.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibMultiLocationAddressTest.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibMultiLocationAddressTest.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibMultiLocationAddressTest.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibPatent.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibPatent.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibPatent.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibPatent.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibPatent.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibPatent.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibPatent.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibPatent.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibShorttitle.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibShorttitle.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibShorttitle.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibShorttitle.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/MsBibShorttitle.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibShorttitle.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/MsBibShorttitle.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/MsBibShorttitle.xml diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/NbibImporterTest.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/NbibImporterTest.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/NbibImporterTest.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/NbibImporterTest.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/NbibImporterTest.nbib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/NbibImporterTest.nbib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/NbibImporterTest.nbib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/NbibImporterTest.nbib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest1.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest1.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest1.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest1.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest2Invalid.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest2Invalid.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest2Invalid.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest2Invalid.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest3.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest3.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest3.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest3.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest4.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest4.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest4.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest4.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest5.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest5.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest5.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest5.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest6.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest6.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest6.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest6.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest7.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest7.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest7.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTest7.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib3.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib3.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib3.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib3.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib4.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib4.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib4.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib4.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib5.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib5.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib5.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib5.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib6.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib6.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib6.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib6.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib7.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib7.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib7.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/OvidImporterTestBib7.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest1.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest1.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest1.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest1.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest1.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest1.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest1.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest1.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest2.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest2.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest2.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest2.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest2.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest2.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest2.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest2.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest3.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest3.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest3.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest3.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest3.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest3.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest3.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RepecNepImporterTest3.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterCorrupted.ris b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterCorrupted.ris similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterCorrupted.ris rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterCorrupted.ris diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest1.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest1.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest1.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest1.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest1.ris b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest1.ris similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest1.ris rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest1.ris diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest3.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest3.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest3.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest3.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest3.ris b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest3.ris similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest3.ris rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest3.ris diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4a.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4a.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4a.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4a.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4a.ris b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4a.ris similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4a.ris rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4a.ris diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4b.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4b.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4b.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4b.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4b.ris b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4b.ris similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4b.ris rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4b.ris diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4c.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4c.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4c.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4c.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4c.ris b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4c.ris similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4c.ris rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest4c.ris diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5a.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5a.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5a.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5a.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5a.ris b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5a.ris similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5a.ris rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5a.ris diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5b.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5b.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5b.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5b.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5b.ris b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5b.ris similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5b.ris rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest5b.ris diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest6.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest6.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest6.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest6.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest6.ris b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest6.ris similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest6.ris rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest6.ris diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest7.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest7.bib similarity index 96% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest7.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest7.bib index fcef995ec0f..9bd610a27ad 100644 --- a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest7.bib +++ b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest7.bib @@ -1,7 +1,7 @@ -@book{, - author = {Smith, Bob and Doe, Jan and Brown, Judy and Martin, Steve and Clark, Joe}, - publisher = {Test Publisher}, - title = {Testing Book Title}, - volume = {1}, - year = {2015} -} +@book{, + author = {Smith, Bob and Doe, Jan and Brown, Judy and Martin, Steve and Clark, Joe}, + publisher = {Test Publisher}, + title = {Testing Book Title}, + volume = {1}, + year = {2015} +} diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest7.ris b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest7.ris similarity index 94% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest7.ris rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest7.ris index 8ab75edbec0..41c642a802e 100644 --- a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest7.ris +++ b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTest7.ris @@ -1,11 +1,11 @@ -TY - BOOK -AU - Smith, Bob -AU - Doe, Jan -AU - Brown, Judy -A2 - Martin, Steve -A2 - Clark, Joe -T1 - Testing Book Title -PB - Test Publisher -Y1 - 2015/october -VL - 1 -ER - +TY - BOOK +AU - Smith, Bob +AU - Doe, Jan +AU - Brown, Judy +A2 - Martin, Steve +A2 - Clark, Joe +T1 - Testing Book Title +PB - Test Publisher +Y1 - 2015/october +VL - 1 +ER - diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestDoiAndJournalTitle.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestDoiAndJournalTitle.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestDoiAndJournalTitle.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestDoiAndJournalTitle.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestDoiAndJournalTitle.ris b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestDoiAndJournalTitle.ris similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestDoiAndJournalTitle.ris rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestDoiAndJournalTitle.ris diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScience.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScience.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScience.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScience.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScience.ris b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScience.ris similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScience.ris rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScience.ris diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScopus.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScopus.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScopus.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScopus.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScopus.ris b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScopus.ris similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScopus.ris rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/RisImporterTestScopus.ris diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest1.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest1.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest1.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest1.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest1.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest1.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest1.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest1.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest2.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest2.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest2.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest2.bib diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest2.txt b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest2.txt similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest2.txt rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/SilverPlatterImporterTest2.txt diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/annotated.pdf b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/annotated.pdf similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/annotated.pdf rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/annotated.pdf diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/empty.pdf b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/empty.pdf similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/empty.pdf rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/empty.pdf diff --git a/src/test/resources/org/jabref/logic/importer/fileformat/emptyFile.xml b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/emptyFile.xml similarity index 100% rename from src/test/resources/org/jabref/logic/importer/fileformat/emptyFile.xml rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/emptyFile.xml diff --git a/src/test/resources/pdfs/encrypted.pdf b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/encrypted.pdf similarity index 100% rename from src/test/resources/pdfs/encrypted.pdf rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/fileformat/encrypted.pdf diff --git a/src/test/resources/org/jabref/logic/importer/headerless.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/headerless.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/headerless.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/headerless.bib diff --git a/src/test/resources/org/jabref/logic/importer/jabref-header.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/jabref-header.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/jabref-header.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/jabref-header.bib diff --git a/src/test/resources/org/jabref/logic/importer/wrong-header.bib b/org.jabref.logic/src/test/resources/org/jabref/logic/importer/wrong-header.bib similarity index 100% rename from src/test/resources/org/jabref/logic/importer/wrong-header.bib rename to org.jabref.logic/src/test/resources/org/jabref/logic/importer/wrong-header.bib diff --git a/src/test/resources/org/jabref/logic/net/empty.pdf b/org.jabref.logic/src/test/resources/org/jabref/logic/net/empty.pdf similarity index 100% rename from src/test/resources/org/jabref/logic/net/empty.pdf rename to org.jabref.logic/src/test/resources/org/jabref/logic/net/empty.pdf diff --git a/src/test/resources/org/jabref/logic/openoffice/test.jstyle b/org.jabref.logic/src/test/resources/org/jabref/logic/openoffice/test.jstyle similarity index 100% rename from src/test/resources/org/jabref/logic/openoffice/test.jstyle rename to org.jabref.logic/src/test/resources/org/jabref/logic/openoffice/test.jstyle diff --git a/src/test/resources/org/jabref/logic/protectedterms/namedterms.terms b/org.jabref.logic/src/test/resources/org/jabref/logic/protectedterms/namedterms.terms similarity index 100% rename from src/test/resources/org/jabref/logic/protectedterms/namedterms.terms rename to org.jabref.logic/src/test/resources/org/jabref/logic/protectedterms/namedterms.terms diff --git a/src/test/resources/org/jabref/logic/protectedterms/unnamedterms.terms b/org.jabref.logic/src/test/resources/org/jabref/logic/protectedterms/unnamedterms.terms similarity index 100% rename from src/test/resources/org/jabref/logic/protectedterms/unnamedterms.terms rename to org.jabref.logic/src/test/resources/org/jabref/logic/protectedterms/unnamedterms.terms diff --git a/org.jabref.logic/src/test/resources/org/jabref/model/groups/paper.aux b/org.jabref.logic/src/test/resources/org/jabref/model/groups/paper.aux new file mode 100644 index 00000000000..2d3e47c107c --- /dev/null +++ b/org.jabref.logic/src/test/resources/org/jabref/model/groups/paper.aux @@ -0,0 +1,8 @@ +\relax +\citation{Darwin1888} +\citation{Einstein1920} +\bibstyle{plain} +\bibdata{origin} +\bibcite{Darwin1888}{1} +\bibcite{Einstein1920}{2} +\@writefile{toc}{\contentsline {section}{\numberline {1}}{1}} diff --git a/xjc.gradle b/org.jabref.logic/xjc.gradle similarity index 91% rename from xjc.gradle rename to org.jabref.logic/xjc.gradle index 3285a93ba3e..b482a300d3d 100644 --- a/xjc.gradle +++ b/org.jabref.logic/xjc.gradle @@ -2,6 +2,18 @@ configurations { xjc } +buildscript { + repositories { + mavenLocal() + jcenter() + } +} + +repositories { + mavenLocal() + jcenter() +} + dependencies { // Cannot be updated. xjc 'com.sun.xml.bind:jaxb-xjc:2.2.4-1' diff --git a/org.jabref.model/build.gradle b/org.jabref.model/build.gradle new file mode 100644 index 00000000000..97195bcb78f --- /dev/null +++ b/org.jabref.model/build.gradle @@ -0,0 +1,157 @@ +sourceSets { + main { + java { + srcDirs = ["src/main/java", "src/main/gen"] + } + + resources { + srcDirs = ["src/main/java", "src/main/resources"] + } + } +} + +configurations { + antlr3 + antlr4 +} + +jacoco { + toolVersion = '0.8.0' +} + +dependencies { + compile 'commons-logging:commons-logging:1.2' + compile 'org.apache.commons:commons-lang3:3.6' + + // update to 2.0.x is not possible - see https://github.com/JabRef/jabref/pull/1096#issuecomment-208857517 + compile 'org.apache.pdfbox:pdfbox:1.8.13' + + // required for reading write-protected PDFs - see https://github.com/JabRef/jabref/pull/942#issuecomment-209252635 + runtime 'org.bouncycastle:bcprov-jdk15on:1.59' + + antlr3 'org.antlr:antlr:3.5.2' + compile 'org.antlr:antlr-runtime:3.5.2' + + antlr4 'org.antlr:antlr4:4.7.1' + compile 'org.antlr:antlr4-runtime:4.7.1' + + compile 'com.google.guava:guava:24.0-jre' + + // >1.8.0-beta is required for java 9 compatibility + compile 'org.slf4j:slf4j-api:1.8.0-beta1' + testRuntime 'org.apache.logging.log4j:log4j-slf4j-impl:2.10.0' + + // need to use snapshots as the stable version is from 2013 and doesn't support v1.0.1 CitationStyles + runtime 'org.citationstyles:styles:1.0.1-SNAPSHOT' + runtime 'org.citationstyles:locales:1.0.1-SNAPSHOT' + + compile 'com.github.tomtung:latex2unicode_2.12:0.2.2' +} + +clean { + delete "src/main/gen" +} + +task generateSource(dependsOn: ["generateBstGrammarSource", "generateSearchGrammarSource"]) { + group = 'JabRef' + description 'Generates all Java source files.' +} + +task generateBstGrammarSource(type: JavaExec) { + group 'JabRef' + description 'Generates BstLexer.java and BstParser.java from the Bst.g grammar file using antlr3.' + + File antlrSource = file('src/main/antlr3/org/jabref/bst/Bst.g') + + inputs.file antlrSource + outputs.file file('src/main/gen/org/jabref/logic/bst/BstLexer.java') + outputs.file file('src/main/gen/org/jabref/logic/bst/BstParser.java') + + main = 'org.antlr.Tool' + classpath = configurations.antlr3 + args = ["-o", file('src/main/gen/org/jabref/logic/bst/'), antlrSource] +} + +task generateSearchGrammarSource(type: JavaExec) { + String grammarFile = "Search" + + group 'JabRef' + description "Generates java files for ${grammarFile}.g antlr4." + + String packagePath = "org/jabref/search" + File antlrPath = file("src/main/antlr4") + File genPath = file("src/main/gen") + + File antlrSource = file("$antlrPath/$packagePath/${grammarFile}.g4") + File destinationDir = file("$genPath/$packagePath") + + inputs.file antlrSource + outputs.file file("$destinationDir/${grammarFile}Parser.java") + outputs.file file("$destinationDir/${grammarFile}Lexer.java") + outputs.file file("$destinationDir/${grammarFile}Visitor.java") + outputs.file file("$destinationDir/${grammarFile}BaseVisitor.java") + outputs.file file("$destinationDir/${grammarFile}.tokens") + outputs.file file("$destinationDir/${grammarFile}Lexer.tokens") + + main = 'org.antlr.v4.Tool' + classpath = configurations.antlr4 + args = ["-o", destinationDir, "-visitor", "-no-listener", "-package", "org.jabref.search", antlrSource] +} + +compileJava.dependsOn "generateSource" + +// Test tasks +junitPlatform { + logManager 'org.apache.logging.log4j.jul.LogManager' +} + +// Test result tasks +task copyTestResources(type: Copy) { + from "${projectDir}/src/test/resources" + into "${buildDir}/classes/test" +} +processTestResources.dependsOn copyTestResources + +tasks.withType(Test) { + reports.html.destination = file("${reporting.baseDir}/${name}") + + jacoco { + append = true + } +} + +task jacocoMerge(type: JacocoMerge) { + executionData file("$buildDir/jacoco/junitPlatformTest.exec") + dependsOn junitPlatformTest +} + +jacocoTestReport { + executionData jacocoMerge.destinationFile + dependsOn jacocoMerge + + reports { + xml.enabled = true // coveralls plugin depends on xml format report + html.enabled = true + } +} + +afterEvaluate { + def junitPlatformTest = tasks.junitPlatformTest + + jacoco { + applyTo(junitPlatformTest) + } + + task jacocoJunit5TestReport(type: JacocoReport) { + executionData jacocoMerge.destinationFile + dependsOn jacocoMerge + sourceSets sourceSets.main + sourceDirectories = files(sourceSets.main.allSource.srcDirs) + classDirectories = files(sourceSets.main.output) + + reports { + xml.enabled true + html.enabled true + } + } +} diff --git a/org.jabref.model/config/checkstyle/checkstyle.xml b/org.jabref.model/config/checkstyle/checkstyle.xml new file mode 100644 index 00000000000..20cbcee3f60 --- /dev/null +++ b/org.jabref.model/config/checkstyle/checkstyle.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.jabref.model/config/checkstyle/suppressions.xml b/org.jabref.model/config/checkstyle/suppressions.xml new file mode 100644 index 00000000000..7e853704d9d --- /dev/null +++ b/org.jabref.model/config/checkstyle/suppressions.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/org.jabref.model/settings.gradle b/org.jabref.model/settings.gradle new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/main/antlr3/org/jabref/bst/Bst.g b/org.jabref.model/src/main/antlr3/org/jabref/bst/Bst.g similarity index 100% rename from src/main/antlr3/org/jabref/bst/Bst.g rename to org.jabref.model/src/main/antlr3/org/jabref/bst/Bst.g diff --git a/src/main/antlr4/org/jabref/search/Search.g4 b/org.jabref.model/src/main/antlr4/org/jabref/search/Search.g4 similarity index 100% rename from src/main/antlr4/org/jabref/search/Search.g4 rename to org.jabref.model/src/main/antlr4/org/jabref/search/Search.g4 diff --git a/src/main/java/org/jabref/architecture/ApacheCommonsLang3Allowed.java b/org.jabref.model/src/main/java/org/jabref/architecture/ApacheCommonsLang3Allowed.java similarity index 100% rename from src/main/java/org/jabref/architecture/ApacheCommonsLang3Allowed.java rename to org.jabref.model/src/main/java/org/jabref/architecture/ApacheCommonsLang3Allowed.java diff --git a/src/main/java/org/jabref/model/ChainNode.java b/org.jabref.model/src/main/java/org/jabref/model/ChainNode.java similarity index 100% rename from src/main/java/org/jabref/model/ChainNode.java rename to org.jabref.model/src/main/java/org/jabref/model/ChainNode.java diff --git a/src/main/java/org/jabref/model/Defaults.java b/org.jabref.model/src/main/java/org/jabref/model/Defaults.java similarity index 100% rename from src/main/java/org/jabref/model/Defaults.java rename to org.jabref.model/src/main/java/org/jabref/model/Defaults.java diff --git a/src/main/java/org/jabref/model/EntryTypes.java b/org.jabref.model/src/main/java/org/jabref/model/EntryTypes.java similarity index 100% rename from src/main/java/org/jabref/model/EntryTypes.java rename to org.jabref.model/src/main/java/org/jabref/model/EntryTypes.java diff --git a/src/main/java/org/jabref/model/FieldChange.java b/org.jabref.model/src/main/java/org/jabref/model/FieldChange.java similarity index 100% rename from src/main/java/org/jabref/model/FieldChange.java rename to org.jabref.model/src/main/java/org/jabref/model/FieldChange.java diff --git a/src/main/java/org/jabref/model/TreeNode.java b/org.jabref.model/src/main/java/org/jabref/model/TreeNode.java similarity index 100% rename from src/main/java/org/jabref/model/TreeNode.java rename to org.jabref.model/src/main/java/org/jabref/model/TreeNode.java diff --git a/src/main/java/org/jabref/model/auxparser/AuxParser.java b/org.jabref.model/src/main/java/org/jabref/model/auxparser/AuxParser.java similarity index 100% rename from src/main/java/org/jabref/model/auxparser/AuxParser.java rename to org.jabref.model/src/main/java/org/jabref/model/auxparser/AuxParser.java diff --git a/src/main/java/org/jabref/model/auxparser/AuxParserResult.java b/org.jabref.model/src/main/java/org/jabref/model/auxparser/AuxParserResult.java similarity index 100% rename from src/main/java/org/jabref/model/auxparser/AuxParserResult.java rename to org.jabref.model/src/main/java/org/jabref/model/auxparser/AuxParserResult.java diff --git a/src/main/java/org/jabref/model/bibtexkeypattern/AbstractBibtexKeyPattern.java b/org.jabref.model/src/main/java/org/jabref/model/bibtexkeypattern/AbstractBibtexKeyPattern.java similarity index 100% rename from src/main/java/org/jabref/model/bibtexkeypattern/AbstractBibtexKeyPattern.java rename to org.jabref.model/src/main/java/org/jabref/model/bibtexkeypattern/AbstractBibtexKeyPattern.java diff --git a/src/main/java/org/jabref/model/bibtexkeypattern/DatabaseBibtexKeyPattern.java b/org.jabref.model/src/main/java/org/jabref/model/bibtexkeypattern/DatabaseBibtexKeyPattern.java similarity index 100% rename from src/main/java/org/jabref/model/bibtexkeypattern/DatabaseBibtexKeyPattern.java rename to org.jabref.model/src/main/java/org/jabref/model/bibtexkeypattern/DatabaseBibtexKeyPattern.java diff --git a/src/main/java/org/jabref/model/bibtexkeypattern/GlobalBibtexKeyPattern.java b/org.jabref.model/src/main/java/org/jabref/model/bibtexkeypattern/GlobalBibtexKeyPattern.java similarity index 100% rename from src/main/java/org/jabref/model/bibtexkeypattern/GlobalBibtexKeyPattern.java rename to org.jabref.model/src/main/java/org/jabref/model/bibtexkeypattern/GlobalBibtexKeyPattern.java diff --git a/src/main/java/org/jabref/model/cleanup/CleanupJob.java b/org.jabref.model/src/main/java/org/jabref/model/cleanup/CleanupJob.java similarity index 100% rename from src/main/java/org/jabref/model/cleanup/CleanupJob.java rename to org.jabref.model/src/main/java/org/jabref/model/cleanup/CleanupJob.java diff --git a/src/main/java/org/jabref/model/cleanup/FieldFormatterCleanup.java b/org.jabref.model/src/main/java/org/jabref/model/cleanup/FieldFormatterCleanup.java similarity index 100% rename from src/main/java/org/jabref/model/cleanup/FieldFormatterCleanup.java rename to org.jabref.model/src/main/java/org/jabref/model/cleanup/FieldFormatterCleanup.java diff --git a/src/main/java/org/jabref/model/cleanup/FieldFormatterCleanups.java b/org.jabref.model/src/main/java/org/jabref/model/cleanup/FieldFormatterCleanups.java similarity index 100% rename from src/main/java/org/jabref/model/cleanup/FieldFormatterCleanups.java rename to org.jabref.model/src/main/java/org/jabref/model/cleanup/FieldFormatterCleanups.java diff --git a/src/main/java/org/jabref/model/cleanup/Formatter.java b/org.jabref.model/src/main/java/org/jabref/model/cleanup/Formatter.java similarity index 100% rename from src/main/java/org/jabref/model/cleanup/Formatter.java rename to org.jabref.model/src/main/java/org/jabref/model/cleanup/Formatter.java diff --git a/src/main/java/org/jabref/model/database/BibDatabase.java b/org.jabref.model/src/main/java/org/jabref/model/database/BibDatabase.java similarity index 100% rename from src/main/java/org/jabref/model/database/BibDatabase.java rename to org.jabref.model/src/main/java/org/jabref/model/database/BibDatabase.java diff --git a/src/main/java/org/jabref/model/database/BibDatabaseContext.java b/org.jabref.model/src/main/java/org/jabref/model/database/BibDatabaseContext.java similarity index 100% rename from src/main/java/org/jabref/model/database/BibDatabaseContext.java rename to org.jabref.model/src/main/java/org/jabref/model/database/BibDatabaseContext.java diff --git a/src/main/java/org/jabref/model/database/BibDatabaseMode.java b/org.jabref.model/src/main/java/org/jabref/model/database/BibDatabaseMode.java similarity index 100% rename from src/main/java/org/jabref/model/database/BibDatabaseMode.java rename to org.jabref.model/src/main/java/org/jabref/model/database/BibDatabaseMode.java diff --git a/src/main/java/org/jabref/model/database/BibDatabaseModeDetection.java b/org.jabref.model/src/main/java/org/jabref/model/database/BibDatabaseModeDetection.java similarity index 100% rename from src/main/java/org/jabref/model/database/BibDatabaseModeDetection.java rename to org.jabref.model/src/main/java/org/jabref/model/database/BibDatabaseModeDetection.java diff --git a/src/main/java/org/jabref/model/database/BibDatabases.java b/org.jabref.model/src/main/java/org/jabref/model/database/BibDatabases.java similarity index 100% rename from src/main/java/org/jabref/model/database/BibDatabases.java rename to org.jabref.model/src/main/java/org/jabref/model/database/BibDatabases.java diff --git a/src/main/java/org/jabref/model/database/DuplicationChecker.java b/org.jabref.model/src/main/java/org/jabref/model/database/DuplicationChecker.java similarity index 100% rename from src/main/java/org/jabref/model/database/DuplicationChecker.java rename to org.jabref.model/src/main/java/org/jabref/model/database/DuplicationChecker.java diff --git a/src/main/java/org/jabref/model/database/KeyChangeListener.java b/org.jabref.model/src/main/java/org/jabref/model/database/KeyChangeListener.java similarity index 100% rename from src/main/java/org/jabref/model/database/KeyChangeListener.java rename to org.jabref.model/src/main/java/org/jabref/model/database/KeyChangeListener.java diff --git a/src/main/java/org/jabref/model/database/KeyCollisionException.java b/org.jabref.model/src/main/java/org/jabref/model/database/KeyCollisionException.java similarity index 100% rename from src/main/java/org/jabref/model/database/KeyCollisionException.java rename to org.jabref.model/src/main/java/org/jabref/model/database/KeyCollisionException.java diff --git a/src/main/java/org/jabref/model/database/event/AutosaveEvent.java b/org.jabref.model/src/main/java/org/jabref/model/database/event/AutosaveEvent.java similarity index 100% rename from src/main/java/org/jabref/model/database/event/AutosaveEvent.java rename to org.jabref.model/src/main/java/org/jabref/model/database/event/AutosaveEvent.java diff --git a/src/main/java/org/jabref/model/database/event/BibDatabaseContextChangedEvent.java b/org.jabref.model/src/main/java/org/jabref/model/database/event/BibDatabaseContextChangedEvent.java similarity index 100% rename from src/main/java/org/jabref/model/database/event/BibDatabaseContextChangedEvent.java rename to org.jabref.model/src/main/java/org/jabref/model/database/event/BibDatabaseContextChangedEvent.java diff --git a/src/main/java/org/jabref/model/database/event/ChangePropagation.java b/org.jabref.model/src/main/java/org/jabref/model/database/event/ChangePropagation.java similarity index 100% rename from src/main/java/org/jabref/model/database/event/ChangePropagation.java rename to org.jabref.model/src/main/java/org/jabref/model/database/event/ChangePropagation.java diff --git a/src/main/java/org/jabref/model/database/event/CoarseChangeFilter.java b/org.jabref.model/src/main/java/org/jabref/model/database/event/CoarseChangeFilter.java similarity index 100% rename from src/main/java/org/jabref/model/database/event/CoarseChangeFilter.java rename to org.jabref.model/src/main/java/org/jabref/model/database/event/CoarseChangeFilter.java diff --git a/src/main/java/org/jabref/model/database/event/EntryAddedEvent.java b/org.jabref.model/src/main/java/org/jabref/model/database/event/EntryAddedEvent.java similarity index 100% rename from src/main/java/org/jabref/model/database/event/EntryAddedEvent.java rename to org.jabref.model/src/main/java/org/jabref/model/database/event/EntryAddedEvent.java diff --git a/src/main/java/org/jabref/model/database/event/EntryRemovedEvent.java b/org.jabref.model/src/main/java/org/jabref/model/database/event/EntryRemovedEvent.java similarity index 100% rename from src/main/java/org/jabref/model/database/event/EntryRemovedEvent.java rename to org.jabref.model/src/main/java/org/jabref/model/database/event/EntryRemovedEvent.java diff --git a/src/main/java/org/jabref/model/database/shared/DBMSType.java b/org.jabref.model/src/main/java/org/jabref/model/database/shared/DBMSType.java similarity index 100% rename from src/main/java/org/jabref/model/database/shared/DBMSType.java rename to org.jabref.model/src/main/java/org/jabref/model/database/shared/DBMSType.java diff --git a/src/main/java/org/jabref/model/database/shared/DatabaseConnection.java b/org.jabref.model/src/main/java/org/jabref/model/database/shared/DatabaseConnection.java similarity index 100% rename from src/main/java/org/jabref/model/database/shared/DatabaseConnection.java rename to org.jabref.model/src/main/java/org/jabref/model/database/shared/DatabaseConnection.java diff --git a/src/main/java/org/jabref/model/database/shared/DatabaseConnectionProperties.java b/org.jabref.model/src/main/java/org/jabref/model/database/shared/DatabaseConnectionProperties.java similarity index 100% rename from src/main/java/org/jabref/model/database/shared/DatabaseConnectionProperties.java rename to org.jabref.model/src/main/java/org/jabref/model/database/shared/DatabaseConnectionProperties.java diff --git a/src/main/java/org/jabref/model/database/shared/DatabaseLocation.java b/org.jabref.model/src/main/java/org/jabref/model/database/shared/DatabaseLocation.java similarity index 100% rename from src/main/java/org/jabref/model/database/shared/DatabaseLocation.java rename to org.jabref.model/src/main/java/org/jabref/model/database/shared/DatabaseLocation.java diff --git a/src/main/java/org/jabref/model/database/shared/DatabaseNotSupportedException.java b/org.jabref.model/src/main/java/org/jabref/model/database/shared/DatabaseNotSupportedException.java similarity index 100% rename from src/main/java/org/jabref/model/database/shared/DatabaseNotSupportedException.java rename to org.jabref.model/src/main/java/org/jabref/model/database/shared/DatabaseNotSupportedException.java diff --git a/src/main/java/org/jabref/model/database/shared/DatabaseSynchronizer.java b/org.jabref.model/src/main/java/org/jabref/model/database/shared/DatabaseSynchronizer.java similarity index 100% rename from src/main/java/org/jabref/model/database/shared/DatabaseSynchronizer.java rename to org.jabref.model/src/main/java/org/jabref/model/database/shared/DatabaseSynchronizer.java diff --git a/src/main/java/org/jabref/model/entry/Author.java b/org.jabref.model/src/main/java/org/jabref/model/entry/Author.java similarity index 100% rename from src/main/java/org/jabref/model/entry/Author.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/Author.java diff --git a/src/main/java/org/jabref/model/entry/AuthorList.java b/org.jabref.model/src/main/java/org/jabref/model/entry/AuthorList.java similarity index 100% rename from src/main/java/org/jabref/model/entry/AuthorList.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/AuthorList.java diff --git a/src/main/java/org/jabref/model/entry/AuthorListParser.java b/org.jabref.model/src/main/java/org/jabref/model/entry/AuthorListParser.java similarity index 100% rename from src/main/java/org/jabref/model/entry/AuthorListParser.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/AuthorListParser.java diff --git a/src/main/java/org/jabref/model/entry/BibEntry.java b/org.jabref.model/src/main/java/org/jabref/model/entry/BibEntry.java similarity index 100% rename from src/main/java/org/jabref/model/entry/BibEntry.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/BibEntry.java diff --git a/src/main/java/org/jabref/model/entry/BiblatexEntryType.java b/org.jabref.model/src/main/java/org/jabref/model/entry/BiblatexEntryType.java similarity index 100% rename from src/main/java/org/jabref/model/entry/BiblatexEntryType.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/BiblatexEntryType.java diff --git a/src/main/java/org/jabref/model/entry/BiblatexEntryTypes.java b/org.jabref.model/src/main/java/org/jabref/model/entry/BiblatexEntryTypes.java similarity index 100% rename from src/main/java/org/jabref/model/entry/BiblatexEntryTypes.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/BiblatexEntryTypes.java diff --git a/src/main/java/org/jabref/model/entry/BibtexEntryType.java b/org.jabref.model/src/main/java/org/jabref/model/entry/BibtexEntryType.java similarity index 100% rename from src/main/java/org/jabref/model/entry/BibtexEntryType.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/BibtexEntryType.java diff --git a/src/main/java/org/jabref/model/entry/BibtexEntryTypes.java b/org.jabref.model/src/main/java/org/jabref/model/entry/BibtexEntryTypes.java similarity index 100% rename from src/main/java/org/jabref/model/entry/BibtexEntryTypes.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/BibtexEntryTypes.java diff --git a/src/main/java/org/jabref/model/entry/BibtexSingleField.java b/org.jabref.model/src/main/java/org/jabref/model/entry/BibtexSingleField.java similarity index 100% rename from src/main/java/org/jabref/model/entry/BibtexSingleField.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/BibtexSingleField.java diff --git a/src/main/java/org/jabref/model/entry/BibtexString.java b/org.jabref.model/src/main/java/org/jabref/model/entry/BibtexString.java similarity index 100% rename from src/main/java/org/jabref/model/entry/BibtexString.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/BibtexString.java diff --git a/src/main/java/org/jabref/model/entry/CanonicalBibtexEntry.java b/org.jabref.model/src/main/java/org/jabref/model/entry/CanonicalBibtexEntry.java similarity index 100% rename from src/main/java/org/jabref/model/entry/CanonicalBibtexEntry.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/CanonicalBibtexEntry.java diff --git a/src/main/java/org/jabref/model/entry/CustomEntryType.java b/org.jabref.model/src/main/java/org/jabref/model/entry/CustomEntryType.java similarity index 100% rename from src/main/java/org/jabref/model/entry/CustomEntryType.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/CustomEntryType.java diff --git a/src/main/java/org/jabref/model/entry/Date.java b/org.jabref.model/src/main/java/org/jabref/model/entry/Date.java similarity index 100% rename from src/main/java/org/jabref/model/entry/Date.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/Date.java diff --git a/src/main/java/org/jabref/model/entry/EntryConverter.java b/org.jabref.model/src/main/java/org/jabref/model/entry/EntryConverter.java similarity index 100% rename from src/main/java/org/jabref/model/entry/EntryConverter.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/EntryConverter.java diff --git a/src/main/java/org/jabref/model/entry/EntryLinkList.java b/org.jabref.model/src/main/java/org/jabref/model/entry/EntryLinkList.java similarity index 100% rename from src/main/java/org/jabref/model/entry/EntryLinkList.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/EntryLinkList.java diff --git a/src/main/java/org/jabref/model/entry/EntryType.java b/org.jabref.model/src/main/java/org/jabref/model/entry/EntryType.java similarity index 100% rename from src/main/java/org/jabref/model/entry/EntryType.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/EntryType.java diff --git a/src/main/java/org/jabref/model/entry/FieldName.java b/org.jabref.model/src/main/java/org/jabref/model/entry/FieldName.java similarity index 100% rename from src/main/java/org/jabref/model/entry/FieldName.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/FieldName.java diff --git a/src/main/java/org/jabref/model/entry/FieldProperty.java b/org.jabref.model/src/main/java/org/jabref/model/entry/FieldProperty.java similarity index 100% rename from src/main/java/org/jabref/model/entry/FieldProperty.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/FieldProperty.java diff --git a/src/main/java/org/jabref/model/entry/FileFieldParser.java b/org.jabref.model/src/main/java/org/jabref/model/entry/FileFieldParser.java similarity index 100% rename from src/main/java/org/jabref/model/entry/FileFieldParser.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/FileFieldParser.java diff --git a/src/main/java/org/jabref/model/entry/FileFieldWriter.java b/org.jabref.model/src/main/java/org/jabref/model/entry/FileFieldWriter.java similarity index 100% rename from src/main/java/org/jabref/model/entry/FileFieldWriter.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/FileFieldWriter.java diff --git a/src/main/java/org/jabref/model/entry/IEEETranEntryTypes.java b/org.jabref.model/src/main/java/org/jabref/model/entry/IEEETranEntryTypes.java similarity index 100% rename from src/main/java/org/jabref/model/entry/IEEETranEntryTypes.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/IEEETranEntryTypes.java diff --git a/src/main/java/org/jabref/model/entry/IdGenerator.java b/org.jabref.model/src/main/java/org/jabref/model/entry/IdGenerator.java similarity index 100% rename from src/main/java/org/jabref/model/entry/IdGenerator.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/IdGenerator.java diff --git a/src/main/java/org/jabref/model/entry/InternalBibtexFields.java b/org.jabref.model/src/main/java/org/jabref/model/entry/InternalBibtexFields.java similarity index 100% rename from src/main/java/org/jabref/model/entry/InternalBibtexFields.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/InternalBibtexFields.java diff --git a/src/main/java/org/jabref/model/entry/Keyword.java b/org.jabref.model/src/main/java/org/jabref/model/entry/Keyword.java similarity index 100% rename from src/main/java/org/jabref/model/entry/Keyword.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/Keyword.java diff --git a/src/main/java/org/jabref/model/entry/KeywordList.java b/org.jabref.model/src/main/java/org/jabref/model/entry/KeywordList.java similarity index 100% rename from src/main/java/org/jabref/model/entry/KeywordList.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/KeywordList.java diff --git a/src/main/java/org/jabref/model/entry/LinkedFile.java b/org.jabref.model/src/main/java/org/jabref/model/entry/LinkedFile.java similarity index 100% rename from src/main/java/org/jabref/model/entry/LinkedFile.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/LinkedFile.java diff --git a/src/main/java/org/jabref/model/entry/Month.java b/org.jabref.model/src/main/java/org/jabref/model/entry/Month.java similarity index 100% rename from src/main/java/org/jabref/model/entry/Month.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/Month.java diff --git a/src/main/java/org/jabref/model/entry/ParsedEntryLink.java b/org.jabref.model/src/main/java/org/jabref/model/entry/ParsedEntryLink.java similarity index 100% rename from src/main/java/org/jabref/model/entry/ParsedEntryLink.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/ParsedEntryLink.java diff --git a/src/main/java/org/jabref/model/entry/SharedBibEntryData.java b/org.jabref.model/src/main/java/org/jabref/model/entry/SharedBibEntryData.java similarity index 100% rename from src/main/java/org/jabref/model/entry/SharedBibEntryData.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/SharedBibEntryData.java diff --git a/src/main/java/org/jabref/model/entry/event/EntryChangedEvent.java b/org.jabref.model/src/main/java/org/jabref/model/entry/event/EntryChangedEvent.java similarity index 100% rename from src/main/java/org/jabref/model/entry/event/EntryChangedEvent.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/event/EntryChangedEvent.java diff --git a/src/main/java/org/jabref/model/entry/event/EntryEvent.java b/org.jabref.model/src/main/java/org/jabref/model/entry/event/EntryEvent.java similarity index 100% rename from src/main/java/org/jabref/model/entry/event/EntryEvent.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/event/EntryEvent.java diff --git a/src/main/java/org/jabref/model/entry/event/EntryEventSource.java b/org.jabref.model/src/main/java/org/jabref/model/entry/event/EntryEventSource.java similarity index 100% rename from src/main/java/org/jabref/model/entry/event/EntryEventSource.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/event/EntryEventSource.java diff --git a/src/main/java/org/jabref/model/entry/event/FieldAddedOrRemovedEvent.java b/org.jabref.model/src/main/java/org/jabref/model/entry/event/FieldAddedOrRemovedEvent.java similarity index 100% rename from src/main/java/org/jabref/model/entry/event/FieldAddedOrRemovedEvent.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/event/FieldAddedOrRemovedEvent.java diff --git a/src/main/java/org/jabref/model/entry/event/FieldChangedEvent.java b/org.jabref.model/src/main/java/org/jabref/model/entry/event/FieldChangedEvent.java similarity index 100% rename from src/main/java/org/jabref/model/entry/event/FieldChangedEvent.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/event/FieldChangedEvent.java diff --git a/src/main/java/org/jabref/model/entry/identifier/ArXivIdentifier.java b/org.jabref.model/src/main/java/org/jabref/model/entry/identifier/ArXivIdentifier.java similarity index 100% rename from src/main/java/org/jabref/model/entry/identifier/ArXivIdentifier.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/identifier/ArXivIdentifier.java diff --git a/src/main/java/org/jabref/model/entry/identifier/DOI.java b/org.jabref.model/src/main/java/org/jabref/model/entry/identifier/DOI.java similarity index 100% rename from src/main/java/org/jabref/model/entry/identifier/DOI.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/identifier/DOI.java diff --git a/src/main/java/org/jabref/model/entry/identifier/Eprint.java b/org.jabref.model/src/main/java/org/jabref/model/entry/identifier/Eprint.java similarity index 100% rename from src/main/java/org/jabref/model/entry/identifier/Eprint.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/identifier/Eprint.java diff --git a/src/main/java/org/jabref/model/entry/identifier/ISBN.java b/org.jabref.model/src/main/java/org/jabref/model/entry/identifier/ISBN.java similarity index 100% rename from src/main/java/org/jabref/model/entry/identifier/ISBN.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/identifier/ISBN.java diff --git a/src/main/java/org/jabref/model/entry/identifier/ISSN.java b/org.jabref.model/src/main/java/org/jabref/model/entry/identifier/ISSN.java similarity index 100% rename from src/main/java/org/jabref/model/entry/identifier/ISSN.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/identifier/ISSN.java diff --git a/src/main/java/org/jabref/model/entry/identifier/Identifier.java b/org.jabref.model/src/main/java/org/jabref/model/entry/identifier/Identifier.java similarity index 100% rename from src/main/java/org/jabref/model/entry/identifier/Identifier.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/identifier/Identifier.java diff --git a/src/main/java/org/jabref/model/entry/identifier/MathSciNetId.java b/org.jabref.model/src/main/java/org/jabref/model/entry/identifier/MathSciNetId.java similarity index 100% rename from src/main/java/org/jabref/model/entry/identifier/MathSciNetId.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/identifier/MathSciNetId.java diff --git a/src/main/java/org/jabref/model/entry/specialfields/SpecialField.java b/org.jabref.model/src/main/java/org/jabref/model/entry/specialfields/SpecialField.java similarity index 100% rename from src/main/java/org/jabref/model/entry/specialfields/SpecialField.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/specialfields/SpecialField.java diff --git a/src/main/java/org/jabref/model/entry/specialfields/SpecialFieldValue.java b/org.jabref.model/src/main/java/org/jabref/model/entry/specialfields/SpecialFieldValue.java similarity index 100% rename from src/main/java/org/jabref/model/entry/specialfields/SpecialFieldValue.java rename to org.jabref.model/src/main/java/org/jabref/model/entry/specialfields/SpecialFieldValue.java diff --git a/src/main/java/org/jabref/model/groups/AbstractGroup.java b/org.jabref.model/src/main/java/org/jabref/model/groups/AbstractGroup.java similarity index 100% rename from src/main/java/org/jabref/model/groups/AbstractGroup.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/AbstractGroup.java diff --git a/src/main/java/org/jabref/model/groups/AllEntriesGroup.java b/org.jabref.model/src/main/java/org/jabref/model/groups/AllEntriesGroup.java similarity index 100% rename from src/main/java/org/jabref/model/groups/AllEntriesGroup.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/AllEntriesGroup.java diff --git a/src/main/java/org/jabref/model/groups/AutomaticGroup.java b/org.jabref.model/src/main/java/org/jabref/model/groups/AutomaticGroup.java similarity index 100% rename from src/main/java/org/jabref/model/groups/AutomaticGroup.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/AutomaticGroup.java diff --git a/src/main/java/org/jabref/model/groups/AutomaticKeywordGroup.java b/org.jabref.model/src/main/java/org/jabref/model/groups/AutomaticKeywordGroup.java similarity index 100% rename from src/main/java/org/jabref/model/groups/AutomaticKeywordGroup.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/AutomaticKeywordGroup.java diff --git a/src/main/java/org/jabref/model/groups/AutomaticPersonsGroup.java b/org.jabref.model/src/main/java/org/jabref/model/groups/AutomaticPersonsGroup.java similarity index 100% rename from src/main/java/org/jabref/model/groups/AutomaticPersonsGroup.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/AutomaticPersonsGroup.java diff --git a/src/main/java/org/jabref/model/groups/ExplicitGroup.java b/org.jabref.model/src/main/java/org/jabref/model/groups/ExplicitGroup.java similarity index 100% rename from src/main/java/org/jabref/model/groups/ExplicitGroup.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/ExplicitGroup.java diff --git a/src/main/java/org/jabref/model/groups/GroupEntryChanger.java b/org.jabref.model/src/main/java/org/jabref/model/groups/GroupEntryChanger.java similarity index 100% rename from src/main/java/org/jabref/model/groups/GroupEntryChanger.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/GroupEntryChanger.java diff --git a/src/main/java/org/jabref/model/groups/GroupHierarchyType.java b/org.jabref.model/src/main/java/org/jabref/model/groups/GroupHierarchyType.java similarity index 100% rename from src/main/java/org/jabref/model/groups/GroupHierarchyType.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/GroupHierarchyType.java diff --git a/src/main/java/org/jabref/model/groups/GroupTreeNode.java b/org.jabref.model/src/main/java/org/jabref/model/groups/GroupTreeNode.java similarity index 100% rename from src/main/java/org/jabref/model/groups/GroupTreeNode.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/GroupTreeNode.java diff --git a/src/main/java/org/jabref/model/groups/KeywordGroup.java b/org.jabref.model/src/main/java/org/jabref/model/groups/KeywordGroup.java similarity index 100% rename from src/main/java/org/jabref/model/groups/KeywordGroup.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/KeywordGroup.java diff --git a/src/main/java/org/jabref/model/groups/RegexKeywordGroup.java b/org.jabref.model/src/main/java/org/jabref/model/groups/RegexKeywordGroup.java similarity index 100% rename from src/main/java/org/jabref/model/groups/RegexKeywordGroup.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/RegexKeywordGroup.java diff --git a/src/main/java/org/jabref/model/groups/SearchGroup.java b/org.jabref.model/src/main/java/org/jabref/model/groups/SearchGroup.java similarity index 100% rename from src/main/java/org/jabref/model/groups/SearchGroup.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/SearchGroup.java diff --git a/src/main/java/org/jabref/model/groups/TexGroup.java b/org.jabref.model/src/main/java/org/jabref/model/groups/TexGroup.java similarity index 100% rename from src/main/java/org/jabref/model/groups/TexGroup.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/TexGroup.java diff --git a/src/main/java/org/jabref/model/groups/WordKeywordGroup.java b/org.jabref.model/src/main/java/org/jabref/model/groups/WordKeywordGroup.java similarity index 100% rename from src/main/java/org/jabref/model/groups/WordKeywordGroup.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/WordKeywordGroup.java diff --git a/src/main/java/org/jabref/model/groups/event/GroupUpdatedEvent.java b/org.jabref.model/src/main/java/org/jabref/model/groups/event/GroupUpdatedEvent.java similarity index 100% rename from src/main/java/org/jabref/model/groups/event/GroupUpdatedEvent.java rename to org.jabref.model/src/main/java/org/jabref/model/groups/event/GroupUpdatedEvent.java diff --git a/src/main/java/org/jabref/model/metadata/ContentSelector.java b/org.jabref.model/src/main/java/org/jabref/model/metadata/ContentSelector.java similarity index 100% rename from src/main/java/org/jabref/model/metadata/ContentSelector.java rename to org.jabref.model/src/main/java/org/jabref/model/metadata/ContentSelector.java diff --git a/src/main/java/org/jabref/model/metadata/ContentSelectors.java b/org.jabref.model/src/main/java/org/jabref/model/metadata/ContentSelectors.java similarity index 100% rename from src/main/java/org/jabref/model/metadata/ContentSelectors.java rename to org.jabref.model/src/main/java/org/jabref/model/metadata/ContentSelectors.java diff --git a/src/main/java/org/jabref/model/metadata/FileDirectoryPreferences.java b/org.jabref.model/src/main/java/org/jabref/model/metadata/FileDirectoryPreferences.java similarity index 100% rename from src/main/java/org/jabref/model/metadata/FileDirectoryPreferences.java rename to org.jabref.model/src/main/java/org/jabref/model/metadata/FileDirectoryPreferences.java diff --git a/src/main/java/org/jabref/model/metadata/MetaData.java b/org.jabref.model/src/main/java/org/jabref/model/metadata/MetaData.java similarity index 100% rename from src/main/java/org/jabref/model/metadata/MetaData.java rename to org.jabref.model/src/main/java/org/jabref/model/metadata/MetaData.java diff --git a/src/main/java/org/jabref/model/metadata/SaveOrderConfig.java b/org.jabref.model/src/main/java/org/jabref/model/metadata/SaveOrderConfig.java similarity index 100% rename from src/main/java/org/jabref/model/metadata/SaveOrderConfig.java rename to org.jabref.model/src/main/java/org/jabref/model/metadata/SaveOrderConfig.java diff --git a/src/main/java/org/jabref/model/metadata/event/MetaDataChangedEvent.java b/org.jabref.model/src/main/java/org/jabref/model/metadata/event/MetaDataChangedEvent.java similarity index 100% rename from src/main/java/org/jabref/model/metadata/event/MetaDataChangedEvent.java rename to org.jabref.model/src/main/java/org/jabref/model/metadata/event/MetaDataChangedEvent.java diff --git a/src/main/java/org/jabref/model/pdf/FileAnnotation.java b/org.jabref.model/src/main/java/org/jabref/model/pdf/FileAnnotation.java similarity index 100% rename from src/main/java/org/jabref/model/pdf/FileAnnotation.java rename to org.jabref.model/src/main/java/org/jabref/model/pdf/FileAnnotation.java diff --git a/src/main/java/org/jabref/model/pdf/FileAnnotationType.java b/org.jabref.model/src/main/java/org/jabref/model/pdf/FileAnnotationType.java similarity index 100% rename from src/main/java/org/jabref/model/pdf/FileAnnotationType.java rename to org.jabref.model/src/main/java/org/jabref/model/pdf/FileAnnotationType.java diff --git a/src/main/java/org/jabref/model/search/GroupSearchQuery.java b/org.jabref.model/src/main/java/org/jabref/model/search/GroupSearchQuery.java similarity index 100% rename from src/main/java/org/jabref/model/search/GroupSearchQuery.java rename to org.jabref.model/src/main/java/org/jabref/model/search/GroupSearchQuery.java diff --git a/src/main/java/org/jabref/model/search/SearchMatcher.java b/org.jabref.model/src/main/java/org/jabref/model/search/SearchMatcher.java similarity index 100% rename from src/main/java/org/jabref/model/search/SearchMatcher.java rename to org.jabref.model/src/main/java/org/jabref/model/search/SearchMatcher.java diff --git a/src/main/java/org/jabref/model/search/matchers/AndMatcher.java b/org.jabref.model/src/main/java/org/jabref/model/search/matchers/AndMatcher.java similarity index 100% rename from src/main/java/org/jabref/model/search/matchers/AndMatcher.java rename to org.jabref.model/src/main/java/org/jabref/model/search/matchers/AndMatcher.java diff --git a/src/main/java/org/jabref/model/search/matchers/MatcherSet.java b/org.jabref.model/src/main/java/org/jabref/model/search/matchers/MatcherSet.java similarity index 100% rename from src/main/java/org/jabref/model/search/matchers/MatcherSet.java rename to org.jabref.model/src/main/java/org/jabref/model/search/matchers/MatcherSet.java diff --git a/src/main/java/org/jabref/model/search/matchers/MatcherSets.java b/org.jabref.model/src/main/java/org/jabref/model/search/matchers/MatcherSets.java similarity index 100% rename from src/main/java/org/jabref/model/search/matchers/MatcherSets.java rename to org.jabref.model/src/main/java/org/jabref/model/search/matchers/MatcherSets.java diff --git a/src/main/java/org/jabref/model/search/matchers/NotMatcher.java b/org.jabref.model/src/main/java/org/jabref/model/search/matchers/NotMatcher.java similarity index 100% rename from src/main/java/org/jabref/model/search/matchers/NotMatcher.java rename to org.jabref.model/src/main/java/org/jabref/model/search/matchers/NotMatcher.java diff --git a/src/main/java/org/jabref/model/search/matchers/OrMatcher.java b/org.jabref.model/src/main/java/org/jabref/model/search/matchers/OrMatcher.java similarity index 100% rename from src/main/java/org/jabref/model/search/matchers/OrMatcher.java rename to org.jabref.model/src/main/java/org/jabref/model/search/matchers/OrMatcher.java diff --git a/src/main/java/org/jabref/model/search/rules/ContainBasedSearchRule.java b/org.jabref.model/src/main/java/org/jabref/model/search/rules/ContainBasedSearchRule.java similarity index 100% rename from src/main/java/org/jabref/model/search/rules/ContainBasedSearchRule.java rename to org.jabref.model/src/main/java/org/jabref/model/search/rules/ContainBasedSearchRule.java diff --git a/src/main/java/org/jabref/model/search/rules/GrammarBasedSearchRule.java b/org.jabref.model/src/main/java/org/jabref/model/search/rules/GrammarBasedSearchRule.java similarity index 100% rename from src/main/java/org/jabref/model/search/rules/GrammarBasedSearchRule.java rename to org.jabref.model/src/main/java/org/jabref/model/search/rules/GrammarBasedSearchRule.java diff --git a/src/main/java/org/jabref/model/search/rules/RegexBasedSearchRule.java b/org.jabref.model/src/main/java/org/jabref/model/search/rules/RegexBasedSearchRule.java similarity index 100% rename from src/main/java/org/jabref/model/search/rules/RegexBasedSearchRule.java rename to org.jabref.model/src/main/java/org/jabref/model/search/rules/RegexBasedSearchRule.java diff --git a/src/main/java/org/jabref/model/search/rules/SearchRule.java b/org.jabref.model/src/main/java/org/jabref/model/search/rules/SearchRule.java similarity index 100% rename from src/main/java/org/jabref/model/search/rules/SearchRule.java rename to org.jabref.model/src/main/java/org/jabref/model/search/rules/SearchRule.java diff --git a/src/main/java/org/jabref/model/search/rules/SearchRules.java b/org.jabref.model/src/main/java/org/jabref/model/search/rules/SearchRules.java similarity index 100% rename from src/main/java/org/jabref/model/search/rules/SearchRules.java rename to org.jabref.model/src/main/java/org/jabref/model/search/rules/SearchRules.java diff --git a/src/main/java/org/jabref/model/search/rules/SentenceAnalyzer.java b/org.jabref.model/src/main/java/org/jabref/model/search/rules/SentenceAnalyzer.java similarity index 100% rename from src/main/java/org/jabref/model/search/rules/SentenceAnalyzer.java rename to org.jabref.model/src/main/java/org/jabref/model/search/rules/SentenceAnalyzer.java diff --git a/src/main/java/org/jabref/model/strings/LatexToUnicodeAdapter.java b/org.jabref.model/src/main/java/org/jabref/model/strings/LatexToUnicodeAdapter.java similarity index 100% rename from src/main/java/org/jabref/model/strings/LatexToUnicodeAdapter.java rename to org.jabref.model/src/main/java/org/jabref/model/strings/LatexToUnicodeAdapter.java diff --git a/src/main/java/org/jabref/model/strings/StringUtil.java b/org.jabref.model/src/main/java/org/jabref/model/strings/StringUtil.java similarity index 100% rename from src/main/java/org/jabref/model/strings/StringUtil.java rename to org.jabref.model/src/main/java/org/jabref/model/strings/StringUtil.java diff --git a/src/main/java/org/jabref/model/strings/UnicodeToReadableCharMap.java b/org.jabref.model/src/main/java/org/jabref/model/strings/UnicodeToReadableCharMap.java similarity index 100% rename from src/main/java/org/jabref/model/strings/UnicodeToReadableCharMap.java rename to org.jabref.model/src/main/java/org/jabref/model/strings/UnicodeToReadableCharMap.java diff --git a/src/main/java/org/jabref/model/util/DummyFileUpdateMonitor.java b/org.jabref.model/src/main/java/org/jabref/model/util/DummyFileUpdateMonitor.java similarity index 100% rename from src/main/java/org/jabref/model/util/DummyFileUpdateMonitor.java rename to org.jabref.model/src/main/java/org/jabref/model/util/DummyFileUpdateMonitor.java diff --git a/src/main/java/org/jabref/model/util/FileHelper.java b/org.jabref.model/src/main/java/org/jabref/model/util/FileHelper.java similarity index 100% rename from src/main/java/org/jabref/model/util/FileHelper.java rename to org.jabref.model/src/main/java/org/jabref/model/util/FileHelper.java diff --git a/src/main/java/org/jabref/model/util/FileUpdateListener.java b/org.jabref.model/src/main/java/org/jabref/model/util/FileUpdateListener.java similarity index 100% rename from src/main/java/org/jabref/model/util/FileUpdateListener.java rename to org.jabref.model/src/main/java/org/jabref/model/util/FileUpdateListener.java diff --git a/src/main/java/org/jabref/model/util/FileUpdateMonitor.java b/org.jabref.model/src/main/java/org/jabref/model/util/FileUpdateMonitor.java similarity index 100% rename from src/main/java/org/jabref/model/util/FileUpdateMonitor.java rename to org.jabref.model/src/main/java/org/jabref/model/util/FileUpdateMonitor.java diff --git a/src/main/java/org/jabref/model/util/OptionalUtil.java b/org.jabref.model/src/main/java/org/jabref/model/util/OptionalUtil.java similarity index 100% rename from src/main/java/org/jabref/model/util/OptionalUtil.java rename to org.jabref.model/src/main/java/org/jabref/model/util/OptionalUtil.java diff --git a/src/main/java/org/jabref/model/util/TreeCollector.java b/org.jabref.model/src/main/java/org/jabref/model/util/TreeCollector.java similarity index 100% rename from src/main/java/org/jabref/model/util/TreeCollector.java rename to org.jabref.model/src/main/java/org/jabref/model/util/TreeCollector.java diff --git a/src/test/java/org/jabref/model/BibDatabaseContextTest.java b/org.jabref.model/src/test/java/org/jabref/model/BibDatabaseContextTest.java similarity index 100% rename from src/test/java/org/jabref/model/BibDatabaseContextTest.java rename to org.jabref.model/src/test/java/org/jabref/model/BibDatabaseContextTest.java diff --git a/src/test/java/org/jabref/model/EntryTypesTest.java b/org.jabref.model/src/test/java/org/jabref/model/EntryTypesTest.java similarity index 100% rename from src/test/java/org/jabref/model/EntryTypesTest.java rename to org.jabref.model/src/test/java/org/jabref/model/EntryTypesTest.java diff --git a/src/test/java/org/jabref/model/TreeNodeTest.java b/org.jabref.model/src/test/java/org/jabref/model/TreeNodeTest.java similarity index 100% rename from src/test/java/org/jabref/model/TreeNodeTest.java rename to org.jabref.model/src/test/java/org/jabref/model/TreeNodeTest.java diff --git a/src/test/java/org/jabref/model/TreeNodeTestData.java b/org.jabref.model/src/test/java/org/jabref/model/TreeNodeTestData.java similarity index 100% rename from src/test/java/org/jabref/model/TreeNodeTestData.java rename to org.jabref.model/src/test/java/org/jabref/model/TreeNodeTestData.java diff --git a/src/test/java/org/jabref/model/database/BibDatabaseContextTest.java b/org.jabref.model/src/test/java/org/jabref/model/database/BibDatabaseContextTest.java similarity index 100% rename from src/test/java/org/jabref/model/database/BibDatabaseContextTest.java rename to org.jabref.model/src/test/java/org/jabref/model/database/BibDatabaseContextTest.java diff --git a/src/test/java/org/jabref/model/database/BibDatabaseModeDetectionTest.java b/org.jabref.model/src/test/java/org/jabref/model/database/BibDatabaseModeDetectionTest.java similarity index 100% rename from src/test/java/org/jabref/model/database/BibDatabaseModeDetectionTest.java rename to org.jabref.model/src/test/java/org/jabref/model/database/BibDatabaseModeDetectionTest.java diff --git a/src/test/java/org/jabref/model/database/BibDatabaseTest.java b/org.jabref.model/src/test/java/org/jabref/model/database/BibDatabaseTest.java similarity index 100% rename from src/test/java/org/jabref/model/database/BibDatabaseTest.java rename to org.jabref.model/src/test/java/org/jabref/model/database/BibDatabaseTest.java diff --git a/src/test/java/org/jabref/model/database/DuplicationCheckerTest.java b/org.jabref.model/src/test/java/org/jabref/model/database/DuplicationCheckerTest.java similarity index 100% rename from src/test/java/org/jabref/model/database/DuplicationCheckerTest.java rename to org.jabref.model/src/test/java/org/jabref/model/database/DuplicationCheckerTest.java diff --git a/src/test/java/org/jabref/model/database/KeyChangeListenerTest.java b/org.jabref.model/src/test/java/org/jabref/model/database/KeyChangeListenerTest.java similarity index 100% rename from src/test/java/org/jabref/model/database/KeyChangeListenerTest.java rename to org.jabref.model/src/test/java/org/jabref/model/database/KeyChangeListenerTest.java diff --git a/src/test/java/org/jabref/model/database/event/AutosaveEventTest.java b/org.jabref.model/src/test/java/org/jabref/model/database/event/AutosaveEventTest.java similarity index 100% rename from src/test/java/org/jabref/model/database/event/AutosaveEventTest.java rename to org.jabref.model/src/test/java/org/jabref/model/database/event/AutosaveEventTest.java diff --git a/src/test/java/org/jabref/model/entry/AuthorListParameterTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/AuthorListParameterTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/AuthorListParameterTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/AuthorListParameterTest.java diff --git a/src/test/java/org/jabref/model/entry/AuthorListTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/AuthorListTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/AuthorListTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/AuthorListTest.java diff --git a/src/test/java/org/jabref/model/entry/AuthorTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/AuthorTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/AuthorTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/AuthorTest.java diff --git a/src/test/java/org/jabref/model/entry/BibEntryEqualityTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/BibEntryEqualityTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/BibEntryEqualityTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/BibEntryEqualityTest.java diff --git a/src/test/java/org/jabref/model/entry/BibEntryTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/BibEntryTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/BibEntryTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/BibEntryTest.java diff --git a/src/test/java/org/jabref/model/entry/BibEntryTests.java b/org.jabref.model/src/test/java/org/jabref/model/entry/BibEntryTests.java similarity index 100% rename from src/test/java/org/jabref/model/entry/BibEntryTests.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/BibEntryTests.java diff --git a/src/test/java/org/jabref/model/entry/BibtexStringTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/BibtexStringTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/BibtexStringTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/BibtexStringTest.java diff --git a/src/test/java/org/jabref/model/entry/CanonicalBibEntryTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/CanonicalBibEntryTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/CanonicalBibEntryTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/CanonicalBibEntryTest.java diff --git a/src/test/java/org/jabref/model/entry/DateTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/DateTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/DateTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/DateTest.java diff --git a/src/test/java/org/jabref/model/entry/EntryLinkListTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/EntryLinkListTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/EntryLinkListTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/EntryLinkListTest.java diff --git a/src/test/java/org/jabref/model/entry/FieldNameTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/FieldNameTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/FieldNameTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/FieldNameTest.java diff --git a/src/test/java/org/jabref/model/entry/FileFieldWriterTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/FileFieldWriterTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/FileFieldWriterTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/FileFieldWriterTest.java diff --git a/src/test/java/org/jabref/model/entry/IEEETranEntryTypesTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/IEEETranEntryTypesTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/IEEETranEntryTypesTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/IEEETranEntryTypesTest.java diff --git a/src/test/java/org/jabref/model/entry/IdGeneratorTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/IdGeneratorTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/IdGeneratorTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/IdGeneratorTest.java diff --git a/src/test/java/org/jabref/model/entry/KeywordListTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/KeywordListTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/KeywordListTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/KeywordListTest.java diff --git a/src/test/java/org/jabref/model/entry/KeywordTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/KeywordTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/KeywordTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/KeywordTest.java diff --git a/src/test/java/org/jabref/model/entry/MonthTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/MonthTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/MonthTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/MonthTest.java diff --git a/src/test/java/org/jabref/model/entry/identifier/ArXivIdentifierTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/identifier/ArXivIdentifierTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/identifier/ArXivIdentifierTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/identifier/ArXivIdentifierTest.java diff --git a/src/test/java/org/jabref/model/entry/identifier/DOITest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/identifier/DOITest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/identifier/DOITest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/identifier/DOITest.java diff --git a/src/test/java/org/jabref/model/entry/identifier/EprintTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/identifier/EprintTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/identifier/EprintTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/identifier/EprintTest.java diff --git a/src/test/java/org/jabref/model/entry/identifier/ISBNTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/identifier/ISBNTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/identifier/ISBNTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/identifier/ISBNTest.java diff --git a/src/test/java/org/jabref/model/entry/identifier/ISSNTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/identifier/ISSNTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/identifier/ISSNTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/identifier/ISSNTest.java diff --git a/src/test/java/org/jabref/model/entry/identifier/MathSciNetIdTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/identifier/MathSciNetIdTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/identifier/MathSciNetIdTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/identifier/MathSciNetIdTest.java diff --git a/src/test/java/org/jabref/model/entry/specialfields/SpecialFieldTest.java b/org.jabref.model/src/test/java/org/jabref/model/entry/specialfields/SpecialFieldTest.java similarity index 100% rename from src/test/java/org/jabref/model/entry/specialfields/SpecialFieldTest.java rename to org.jabref.model/src/test/java/org/jabref/model/entry/specialfields/SpecialFieldTest.java diff --git a/src/test/java/org/jabref/model/event/TestEventListener.java b/org.jabref.model/src/test/java/org/jabref/model/event/TestEventListener.java similarity index 100% rename from src/test/java/org/jabref/model/event/TestEventListener.java rename to org.jabref.model/src/test/java/org/jabref/model/event/TestEventListener.java diff --git a/src/test/java/org/jabref/model/groups/AutomaticKeywordGroupTest.java b/org.jabref.model/src/test/java/org/jabref/model/groups/AutomaticKeywordGroupTest.java similarity index 100% rename from src/test/java/org/jabref/model/groups/AutomaticKeywordGroupTest.java rename to org.jabref.model/src/test/java/org/jabref/model/groups/AutomaticKeywordGroupTest.java diff --git a/src/test/java/org/jabref/model/groups/ExplicitGroupTest.java b/org.jabref.model/src/test/java/org/jabref/model/groups/ExplicitGroupTest.java similarity index 100% rename from src/test/java/org/jabref/model/groups/ExplicitGroupTest.java rename to org.jabref.model/src/test/java/org/jabref/model/groups/ExplicitGroupTest.java diff --git a/org.jabref.model/src/test/java/org/jabref/model/groups/GroupTreeNodeTest.java b/org.jabref.model/src/test/java/org/jabref/model/groups/GroupTreeNodeTest.java new file mode 100644 index 00000000000..d102c65df05 --- /dev/null +++ b/org.jabref.model/src/test/java/org/jabref/model/groups/GroupTreeNodeTest.java @@ -0,0 +1,286 @@ +package org.jabref.model.groups; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Optional; + +import org.jabref.model.entry.BibEntry; +import org.jabref.model.search.matchers.AndMatcher; +import org.jabref.model.search.matchers.OrMatcher; + +import org.junit.Before; +import org.junit.Test; + +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + +public class GroupTreeNodeTest { + + private final List entries = new ArrayList<>(); + private BibEntry entry; + + /** + * Gets the marked node in the following tree of explicit groups: + * Root + * A ExplicitA, Including + * A ExplicitParent, Independent (= parent) + * B ExplicitNode, Refining (<-- this) + */ + public static GroupTreeNode getNodeInSimpleTree(GroupTreeNode root) { + root.addSubgroup(new ExplicitGroup("ExplicitA", GroupHierarchyType.INCLUDING, ',')); + GroupTreeNode parent = root + .addSubgroup(new ExplicitGroup("ExplicitParent", GroupHierarchyType.INDEPENDENT, ',')); + return parent.addSubgroup(new ExplicitGroup("ExplicitNode", GroupHierarchyType.REFINING, ',')); + } + + /** + * Gets the marked node in the following tree: + * Root + * A SearchA + * A ExplicitA, Including + * A ExplicitGrandParent (= grand parent) + * B ExplicitB + * B KeywordParent (= parent) + * C KeywordNode (<-- this) + * D ExplicitChild (= child) + * C SearchC + * C ExplicitC + * C KeywordC + * B SearchB + * B KeywordB + * A KeywordA + */ + public static GroupTreeNode getNodeInComplexTree(GroupTreeNode root) { + root.addSubgroup(getSearchGroup("SearchA")); + root.addSubgroup(new ExplicitGroup("ExplicitA", GroupHierarchyType.INCLUDING, ',')); + GroupTreeNode grandParent = root + .addSubgroup(new ExplicitGroup("ExplicitGrandParent", GroupHierarchyType.INDEPENDENT, ',')); + root.addSubgroup(getKeywordGroup("KeywordA")); + + grandParent.addSubgroup(getExplict("ExplicitB")); + GroupTreeNode parent = grandParent.addSubgroup(getKeywordGroup("KeywordParent")); + grandParent.addSubgroup(getSearchGroup("SearchB")); + grandParent.addSubgroup(getKeywordGroup("KeywordB")); + + GroupTreeNode node = parent.addSubgroup(getKeywordGroup("KeywordNode")); + parent.addSubgroup(getSearchGroup("SearchC")); + parent.addSubgroup(getExplict("ExplicitC")); + parent.addSubgroup(getKeywordGroup("KeywordC")); + + node.addSubgroup(getExplict("ExplicitChild")); + return node; + } + + private static AbstractGroup getKeywordGroup(String name) { + return new WordKeywordGroup(name, GroupHierarchyType.INDEPENDENT, "searchField", "searchExpression", true,',', false); + } + + private static AbstractGroup getSearchGroup(String name) { + return new SearchGroup(name, GroupHierarchyType.INCLUDING, "searchExpression", true, false); + } + + private static AbstractGroup getExplict(String name) { + return new ExplicitGroup(name, GroupHierarchyType.REFINING, ','); + } + + /** + * Gets the marked in the following tree: + * Root + * A + * A + * A (<- this) + * A + */ + /* + public GroupTreeNode getNodeAsChild(TreeNodeMock root) { + root.addChild(new TreeNodeMock()); + root.addChild(new TreeNodeMock()); + TreeNodeMock node = new TreeNodeMock(); + root.addChild(node); + root.addChild(new TreeNodeMock()); + return node; + } + */ + public static GroupTreeNode getRoot() { + return GroupTreeNode.fromGroup(new AllEntriesGroup("All entries")); + } + + @Before + public void setUp() throws Exception { + entries.clear(); + entry = new BibEntry(); + entries.add(entry); + entries.add(new BibEntry().withField("author", "author1 and author2")); + entries.add(new BibEntry().withField("author", "author1")); + } + + /* + public GroupTreeNode getNodeInComplexTree() { + return getNodeInComplexTree(new TreeNodeMock()); + } + */ + + private GroupTreeNode getNodeInSimpleTree() { + return getNodeInSimpleTree(getRoot()); + } + + @Test + public void getSearchRuleForIndependentGroupReturnsGroupAsMatcher() { + GroupTreeNode node = GroupTreeNode + .fromGroup(new ExplicitGroup("node", GroupHierarchyType.INDEPENDENT, ',')); + assertEquals(node.getGroup(), node.getSearchMatcher()); + } + + @Test + public void getSearchRuleForRefiningGroupReturnsParentAndGroupAsMatcher() { + GroupTreeNode parent = GroupTreeNode + .fromGroup( + new ExplicitGroup("parent", GroupHierarchyType.INDEPENDENT, ',')); + GroupTreeNode node = parent + .addSubgroup(new ExplicitGroup("node", GroupHierarchyType.REFINING, ',')); + + AndMatcher matcher = new AndMatcher(); + matcher.addRule(node.getGroup()); + matcher.addRule(parent.getGroup()); + assertEquals(matcher, node.getSearchMatcher()); + } + + @Test + public void getSearchRuleForIncludingGroupReturnsGroupOrSubgroupAsMatcher() { + GroupTreeNode node = GroupTreeNode.fromGroup(new ExplicitGroup("node", GroupHierarchyType.INCLUDING, ',')); + GroupTreeNode child = node.addSubgroup(new ExplicitGroup("child", GroupHierarchyType.INDEPENDENT, ',')); + + OrMatcher matcher = new OrMatcher(); + matcher.addRule(node.getGroup()); + matcher.addRule(child.getGroup()); + assertEquals(matcher, node.getSearchMatcher()); + } + + @Test + public void numberOfHitsReturnsZeroForEmptyList() throws Exception { + assertEquals(0, getNodeInSimpleTree().calculateNumberOfMatches(Collections.emptyList())); + } + + @Test + public void numberOfHitsMatchesOneEntry() throws Exception { + GroupTreeNode parent = getNodeInSimpleTree(); + GroupTreeNode node = parent.addSubgroup( + new WordKeywordGroup("node", GroupHierarchyType.INDEPENDENT, "author", "author2", true, ',', false)); + assertEquals(1, node.calculateNumberOfMatches(entries)); + } + + @Test + public void numberOfHitsMatchesMultipleEntries() throws Exception { + GroupTreeNode parent = getNodeInSimpleTree(); + GroupTreeNode node = parent.addSubgroup( + new WordKeywordGroup("node", GroupHierarchyType.INDEPENDENT, "author", "author1", true, ',', false)); + assertEquals(2, node.calculateNumberOfMatches(entries)); + } + + @Test + public void numberOfHitsWorksForRefiningGroups() throws Exception { + GroupTreeNode grandParent = getNodeInSimpleTree(); + GroupTreeNode parent = grandParent.addSubgroup( + new WordKeywordGroup("node", GroupHierarchyType.INDEPENDENT, "author", "author2", true, ',', false)); + GroupTreeNode node = parent.addSubgroup( + new WordKeywordGroup("node", GroupHierarchyType.REFINING, "author", "author1", true, ',', false)); + assertEquals(1, node.calculateNumberOfMatches(entries)); + } + + @Test + public void numberOfHitsWorksForHierarchyOfIndependentGroups() throws Exception { + GroupTreeNode grandParent = getNodeInSimpleTree(); + GroupTreeNode parent = grandParent.addSubgroup( + new WordKeywordGroup("node", GroupHierarchyType.INDEPENDENT, "author", "author2", true, ',', false)); + GroupTreeNode node = parent.addSubgroup( + new WordKeywordGroup("node", GroupHierarchyType.INDEPENDENT, "author", "author1", true, ',', false)); + assertEquals(2, node.calculateNumberOfMatches(entries)); + } + + @Test + public void setGroupChangesUnderlyingGroup() throws Exception { + GroupTreeNode node = getNodeInSimpleTree(); + AbstractGroup newGroup = new ExplicitGroup("NewGroup", GroupHierarchyType.INDEPENDENT, ','); + + node.setGroup(newGroup, true, true, entries); + + assertEquals(newGroup, node.getGroup()); + } + + @Test + public void setGroupAddsPreviousAssignmentsExplicitToExplicit() throws Exception { + ExplicitGroup oldGroup = new ExplicitGroup("OldGroup", GroupHierarchyType.INDEPENDENT, ','); + oldGroup.add(entry); + GroupTreeNode node = GroupTreeNode.fromGroup(oldGroup); + AbstractGroup newGroup = new ExplicitGroup("NewGroup", GroupHierarchyType.INDEPENDENT, ','); + + node.setGroup(newGroup, true, true, entries); + + assertTrue(newGroup.isMatch(entry)); + } + + @Test + public void setGroupWithFalseDoesNotAddsPreviousAssignments() throws Exception { + ExplicitGroup oldGroup = new ExplicitGroup("OldGroup", GroupHierarchyType.INDEPENDENT, ','); + oldGroup.add(entry); + GroupTreeNode node = GroupTreeNode.fromGroup(oldGroup); + AbstractGroup newGroup = new ExplicitGroup("NewGroup", GroupHierarchyType.INDEPENDENT, ','); + + node.setGroup(newGroup, false, false, entries); + + assertFalse(newGroup.isMatch(entry)); + } + + @Test + public void setGroupAddsOnlyPreviousAssignments() throws Exception { + ExplicitGroup oldGroup = new ExplicitGroup("OldGroup", GroupHierarchyType.INDEPENDENT, ','); + assertFalse(oldGroup.isMatch(entry)); + GroupTreeNode node = GroupTreeNode.fromGroup(oldGroup); + AbstractGroup newGroup = new ExplicitGroup("NewGroup", GroupHierarchyType.INDEPENDENT, ','); + + node.setGroup(newGroup, true, true, entries); + + assertFalse(newGroup.isMatch(entry)); + } + + @Test + public void setGroupExplicitToSearchDoesNotKeepPreviousAssignments() throws Exception { + ExplicitGroup oldGroup = new ExplicitGroup("OldGroup", GroupHierarchyType.INDEPENDENT, ','); + oldGroup.add(entry); + GroupTreeNode node = GroupTreeNode.fromGroup(oldGroup); + AbstractGroup newGroup = new SearchGroup("NewGroup", GroupHierarchyType.INDEPENDENT, "test", false, false); + + node.setGroup(newGroup, true, true, entries); + + assertFalse(newGroup.isMatch(entry)); + } + + @Test + public void setGroupExplicitToExplicitIsRenameAndSoRemovesPreviousAssignment() throws Exception { + ExplicitGroup oldGroup = new ExplicitGroup("OldGroup", GroupHierarchyType.INDEPENDENT, ','); + oldGroup.add(entry); + GroupTreeNode node = GroupTreeNode.fromGroup(oldGroup); + AbstractGroup newGroup = new ExplicitGroup("NewGroup", GroupHierarchyType.INDEPENDENT, ','); + + node.setGroup(newGroup, true, true, entries); + + assertFalse(oldGroup.isMatch(entry)); + } + + @Test + public void getChildByPathFindsCorrectChildInSecondLevel() throws Exception { + GroupTreeNode root = getRoot(); + GroupTreeNode child = getNodeInSimpleTree(root); + + assertEquals(Optional.of(child), root.getChildByPath("ExplicitParent > ExplicitNode")); + } + + @Test + public void getPathSimpleTree() throws Exception { + GroupTreeNode node = getNodeInSimpleTree(); + + assertEquals("ExplicitParent > ExplicitNode", node.getPath()); + } +} diff --git a/src/test/java/org/jabref/model/groups/SearchGroupTest.java b/org.jabref.model/src/test/java/org/jabref/model/groups/SearchGroupTest.java similarity index 100% rename from src/test/java/org/jabref/model/groups/SearchGroupTest.java rename to org.jabref.model/src/test/java/org/jabref/model/groups/SearchGroupTest.java diff --git a/src/test/java/org/jabref/model/groups/WordKeywordGroupTest.java b/org.jabref.model/src/test/java/org/jabref/model/groups/WordKeywordGroupTest.java similarity index 100% rename from src/test/java/org/jabref/model/groups/WordKeywordGroupTest.java rename to org.jabref.model/src/test/java/org/jabref/model/groups/WordKeywordGroupTest.java diff --git a/src/test/java/org/jabref/model/metadata/MetaDataTest.java b/org.jabref.model/src/test/java/org/jabref/model/metadata/MetaDataTest.java similarity index 100% rename from src/test/java/org/jabref/model/metadata/MetaDataTest.java rename to org.jabref.model/src/test/java/org/jabref/model/metadata/MetaDataTest.java diff --git a/src/test/java/org/jabref/model/pdf/FileAnnotationTest.java b/org.jabref.model/src/test/java/org/jabref/model/pdf/FileAnnotationTest.java similarity index 100% rename from src/test/java/org/jabref/model/pdf/FileAnnotationTest.java rename to org.jabref.model/src/test/java/org/jabref/model/pdf/FileAnnotationTest.java diff --git a/src/test/java/org/jabref/model/search/matchers/MatcherSetsTest.java b/org.jabref.model/src/test/java/org/jabref/model/search/matchers/MatcherSetsTest.java similarity index 100% rename from src/test/java/org/jabref/model/search/matchers/MatcherSetsTest.java rename to org.jabref.model/src/test/java/org/jabref/model/search/matchers/MatcherSetsTest.java diff --git a/src/test/java/org/jabref/model/search/rules/ContainBasedSearchRuleTest.java b/org.jabref.model/src/test/java/org/jabref/model/search/rules/ContainBasedSearchRuleTest.java similarity index 100% rename from src/test/java/org/jabref/model/search/rules/ContainBasedSearchRuleTest.java rename to org.jabref.model/src/test/java/org/jabref/model/search/rules/ContainBasedSearchRuleTest.java diff --git a/src/test/java/org/jabref/model/search/rules/MockSearchMatcher.java b/org.jabref.model/src/test/java/org/jabref/model/search/rules/MockSearchMatcher.java similarity index 100% rename from src/test/java/org/jabref/model/search/rules/MockSearchMatcher.java rename to org.jabref.model/src/test/java/org/jabref/model/search/rules/MockSearchMatcher.java diff --git a/src/test/java/org/jabref/model/search/rules/SentenceAnalyzerTest.java b/org.jabref.model/src/test/java/org/jabref/model/search/rules/SentenceAnalyzerTest.java similarity index 100% rename from src/test/java/org/jabref/model/search/rules/SentenceAnalyzerTest.java rename to org.jabref.model/src/test/java/org/jabref/model/search/rules/SentenceAnalyzerTest.java diff --git a/src/test/java/org/jabref/model/strings/StringUtilTest.java b/org.jabref.model/src/test/java/org/jabref/model/strings/StringUtilTest.java similarity index 95% rename from src/test/java/org/jabref/model/strings/StringUtilTest.java rename to org.jabref.model/src/test/java/org/jabref/model/strings/StringUtilTest.java index a6fae659433..ceb656b91a0 100644 --- a/src/test/java/org/jabref/model/strings/StringUtilTest.java +++ b/org.jabref.model/src/test/java/org/jabref/model/strings/StringUtilTest.java @@ -1,5 +1,9 @@ package org.jabref.model.strings; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; import java.util.Optional; import org.junit.jupiter.api.Test; @@ -12,6 +16,16 @@ public class StringUtilTest { + @Test + public void StringUtilClassIsSmall() throws Exception { + Path path = Paths.get("src", "main", "java", StringUtil.class.getName().replace('.', '/') + ".java"); + int lineCount = Files.readAllLines(path, StandardCharsets.UTF_8).size(); + + assertTrue(lineCount <= 722, "StringUtil increased in size. " + + "We try to keep this class as small as possible. " + + "Thus think twice if you add something to StringUtil."); + } + @Test public void testBooleanToBinaryString() { assertEquals("0", StringUtil.booleanToBinaryString(false)); diff --git a/src/test/resources/org/jabref/model/entry/entryWithMultilineAbstract.bib b/org.jabref.model/src/test/resources/model/entry/entryWithMultilineAbstract.bib similarity index 100% rename from src/test/resources/org/jabref/model/entry/entryWithMultilineAbstract.bib rename to org.jabref.model/src/test/resources/model/entry/entryWithMultilineAbstract.bib diff --git a/scripts/htdocs-helper/README.md b/scripts/htdocs-helper/README.md deleted file mode 100644 index 11e7df3cb5e..00000000000 --- a/scripts/htdocs-helper/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# JabRef helper tools - -## Helper scripts - -* [generate-htdocs-help-from-jabref-src-help](generate-htdocs-help-from-jabref-src-help) is a script generating the help files in `htdocs` based on the content from `src/main/resources/help` -* [validate-htdocs-syntax.pl](validate-htdocs-syntax.pl) is used for syntax checking of the `htdocs` repository. - -## Repository `htdocs` - -https://github.com/JabRef/htdocs is the git repository for the htdocs of http://jabref.sourceforge.net/. -It is uploaded manually to JabRef. - -`htdocs/images/es.png` and `us.png` are from the "Flag icons - http://www.famfamfam.com". -These icons are public domain, and as such are free for any use (attribution appreciated but not required). diff --git a/scripts/htdocs-helper/generate-htdocs-help-from-jabref-src-help.pl b/scripts/htdocs-helper/generate-htdocs-help-from-jabref-src-help.pl deleted file mode 100644 index aa8dda83f97..00000000000 --- a/scripts/htdocs-helper/generate-htdocs-help-from-jabref-src-help.pl +++ /dev/null @@ -1,302 +0,0 @@ -#!/usr/bin/perl -#requires: perl >= 5.10 - -#generate-htdocs-help-form-jabref-src-help.pl -#(c) 2012 Kolja Brix and Oliver Kopp - -#This scripts converts the help files -#from the source directory of JabRef (HELPDIR_JABREF) -#to help files for the web page (HELPDIR_WEB) - -#Start it from the root directory of your git repository. -# Windows: perl generate-htdocs-help-form-jabref-src-help.pl -#It will overwrite all help files in HELPDIR_WEB -#It will NOT delete files in HELPDIR_WEB which were removed in HELPDIR_JABREF - -#There are NO command line parameters - -#If you have newline issues at the generated files, -#adapt FORCE_WINDOWS_NEWLINES - - -#Error: -#Use of uninitialized value in concatenation (.) or string at generate-htdocs-help-from-jabref-src-help.pl line 174, <$infileH> line 138. -#Reason: -#A new language has been added to HELPDIR_JABREF, where no translation is contained in -#%translation_back_to_contents. Please add the language to there. - -use constant HELPDIR_JABREF => "../src/main/resources/help"; -use constant HELPDIR_WEB => "../../htdocs/help"; - -#0 for normal operationrequired -#1 for cygwin's perl -use constant FORCE_WINDOWS_NEWLINES => 0; - -#translations for "Back to contents" -our %translation_back_to_contents = ( - "da" => "Back to contents", - "de" => "Zurück zum Inhaltsverzeichnis", - "en" => "Back to contents", - "fr" => "Retour au contenu", - "in" => "Kembali ke Daftar Isi", - "ja" => "目次に戻る" -); - - -#build.xml for getting string replacements ${version} and ${year} -use constant BUILDXML => "../build.xml"; - -use warnings; -use strict; - -#enable "given/when" -use feature ":5.10"; - -sub handleDir; -sub handleFile; -sub loadPreferences; - -our $jabref_version; -our $jabref_year; -our $jabref_placeholder_version; -our $jabref_placeholder_year; - -loadPreferences(); - -#Debug call for a single file -#handleFile("../src/main/resources/help/About.html", "../../htdocs/help/About.php", "en"); -#exit; - - -# handle English -handleDir(HELPDIR_JABREF, HELPDIR_WEB, "en"); - -#handle other languages (contained in sub directories) - -my $helpdirJabRef; - -opendir($helpdirJabRef, HELPDIR_JABREF) or die $!; - -my $sourcedir; -my $targetdir; -my $lang; - -while (my $subdir = readdir($helpdirJabRef)) { - $sourcedir = HELPDIR_JABREF . "/$subdir"; - next unless (-d $sourcedir); - next if ($subdir =~ /\.\.?/); - - $targetdir = HELPDIR_WEB . "/$subdir"; - $lang = $subdir; - - handleDir($sourcedir, $targetdir, $lang); -} -close($helpdirJabRef); - -exit 0; - - - -# Parameters: -# sourcedir -# targetdir -# language -sub handleDir { - my $sourcedir = shift; - my $targetdir = shift; - my $lang = shift; - - print("Handling $sourcedir...\n"); - - if (!-d $targetdir) { - mkdir($targetdir); - } - - my $dh; - opendir($dh, $sourcedir) or die $!; - while (my $infilename = readdir($dh)) { - next unless ($infilename =~ /\.html$/); - my $outfilename = $infilename; - $outfilename =~ s/\.html/\.php/g; - my $sourcefilename = $sourcedir . "/" . $infilename; - my $targetfilename = $targetdir . "/" . $outfilename; - handleFile($sourcefilename, $targetfilename, $lang); - } - close($dh); -} - -# -# Parameters: -# infilename: source file (html) -# outfile: target file (php) -# lang: language (ISO-format) -# -sub handleFile { - my $infilename = shift; - my $outfilename = shift; - my $lang = shift; - - my $replace_placeholders = ($infilename =~ /About.html$/); - - #Debug output - #print("handleFile:\n$infilename\n$outfilename\n$lang\n$replace_placeholders\n\n"); - - open(my $infileH, "<", $infilename) or die "cannot open < $infilename: $!"; - my @infile = <$infileH>; - - my @outfile=(); - - # Determine title out of first h1 heading - my $title=""; - my $line; - foreach $line(@infile) { - if ($line =~ /\(.*)\<\/h1\>/) { - $title=$1; - if ($replace_placeholders) { - $title =~ s/$jabref_placeholder_version/$jabref_version/; - $title =~ s/$jabref_placeholder_year/$jabref_year/; - } - # title is found, go to the normal handling - last; - } - } - - #remove html tags from title - #even if is not allowed in h1 elements, JabRef doc uses that - $title =~ s#<(.|\n)*?>##g; - -#Following prefix does not work at sourceforge. -# -#We use php's header statement instead - - #add to the relative path to navigation|footer if help is non-english - my $pathaddition; - if ($lang eq 'en') { - $pathaddition = ""; - } else { - $pathaddition = "../"; - } - - my $navigationlink = $pathaddition . "../navigation.php"; - my $footerlink = $pathaddition . "../footer.php"; - - my $header=< - - - - - $title - - - - -
- - $translation_back_to_contents{$lang} - -HTML - - my $footer=< -
\n\n\n -HTML - - push(@outfile, $header); - - my $status=0; - # 0 out of html - # 1 in html - # 2 within basefont - - foreach $line(@infile) { - #Debug states - #print "$status / $line"; - - if ($status==0 && $line =~ /\/) { - $status=0; - } elsif ($status==1) { - #we may not transfer a "basefont" - if ($line =~ /\/) { - $status = 2; - } - } else { - if ($replace_placeholders) { - $line =~ s/$jabref_placeholder_version/$jabref_version/; - $line =~ s/$jabref_placeholder_year/$jabref_year/; - } - if (!($line =~ /href=\"http:\/\//)) { - #line does NOT contain a href to some http address - #we assume that line is NOT a reference to an external site - #replace "html" extension with "php" extension - #still allow links as "...html#part". - $line =~ s/href=\"([^\"]*)\.html/href=\"$1\.php/g; - } - push(@outfile, $line); - } - } elsif (($status==2) && ($line =~ /\/\>/)) { - #basefont ended, reset to "inhtml" - $status = 1; - } - } - - push(@outfile, $footer); - - open(OUTFILE,">$outfilename"); - - if (FORCE_WINDOWS_NEWLINES) { - foreach my $line (@outfile) { - $line =~ s/\r?\n|\r/\r\n/g; - } - } - - print OUTFILE @outfile; - - close(OUTFILE); - - close($infileH); -} - -#extracts info out of build.xml -# -# -# -# -sub loadPreferences { - open(my $buildXML, "<", BUILDXML) or die "cannot open < " . BUILDXML . ": $!"; - my @buildxml = <$buildXML>; - close($buildXML); - foreach my $line (@buildxml) { - #check for one-line property declaration name / value - if ($line =~ /property name="([^"]*)" value="([^"]*)"/) { - #copy value from value to local variable - #a non-hardcoded version using "eval" would also be possible - #the SLOC count would be equal to the count of the following (easier) given/when construct. - given($1) { - when ("jabref.version") { - $jabref_version = $2; - } - when ("jabref.year") { - $jabref_year = $2; - } - when ("jabref.placeholder.version") { - $jabref_placeholder_version = $2; - } - when ("jabref.placeholder.year") { - $jabref_placeholder_year = $2; - } - } - } - } -} \ No newline at end of file diff --git a/scripts/htdocs-helper/validate-htdocs-syntax.pl b/scripts/htdocs-helper/validate-htdocs-syntax.pl deleted file mode 100644 index 695d0400d08..00000000000 --- a/scripts/htdocs-helper/validate-htdocs-syntax.pl +++ /dev/null @@ -1,72 +0,0 @@ -#!/usr/bin/perl - -#validate-htdocs-syntax.pl -#(c) 2012 Oliver Kopp - -#This scripts validates the syntax of all files in the htdocs directory -#using tidy - -#This script requires "tidy". -#It was tested using cygwin's perl and cygwin's tidy. - -#Start it from the root directory of your git repository. -# Windows: perl validate-htdocs-syntax.pl - -#There are NO command line parameters - -#configuration: should there be a prompt after each error? -use constant WAITAFTEREACHERROR => 1; - - -#configuration: directory to check - -#online web site -use constant STARTDIR => "../../htdocs"; - -#single help -#use constant STARTDIR => "../../htdocs/help/ja"; - -#JabRef help -# never validates as no HTML head is used and no DOCTYPE is declared. -#use constant STARTDIR => "../src/main/resources/help/"; - - -use File::Find; -use strict; - -sub wait_for_keypress { - return unless WAITAFTEREACHERROR; - print "Press 'Return' to continue. (Enter \"exit\" to exit the whole process)\n"; - my $input = ; - exit 0 if $input =~ /exit/; -} - -sub verifyFile { - return unless -f; - #my $fullfilename = $File::Find::name; - my $filename = $_; - return unless ($filename =~ /(\.php)|(\.html)$/); - - #Debug output - #print "Checking $File::Find::name\n"; - - system("tidy", "-eq", "-utf8", "$filename"); - - if ($? == -1) { - print ("Failed to execute tidy."); - } elsif ($? & 127) { - printf "child died with signal %d, %s coredump\n", - ($? & 127), ($? & 128) ? 'with' : 'without'; - } elsif ($? != 0) { - #some error occured - - # html/php line offset is 11. I.e., if tidy outputs "276", the line in the .html is "265" - print "Above file was $File::Find::name and has errors\n\n"; - wait_for_keypress; - } -} - -#Debug call -#find(\&verifyFile, ("htdocs/contact.php")); - -find(\&verifyFile, (STARTDIR)); diff --git a/scripts/prepare-install4j.sh b/scripts/prepare-install4j.sh index 3718b432a98..91b1e374ef0 100755 --- a/scripts/prepare-install4j.sh +++ b/scripts/prepare-install4j.sh @@ -7,14 +7,14 @@ fi # ensure that tar archive of install4j exists cd ~/downloads -wget --quiet -nc http://download-keycdn.ej-technologies.com/install4j/install4j_unix_7_0_3.tar.gz +wget --quiet -nc http://download-keycdn.ej-technologies.com/install4j/install4j_unix_7_0_4.tar.gz # extract tar archive of install4j into the source directory of JabRef cd ~/jabref # version 7.0.1 is NOT zipped any more - old command line: "-xzf" -tar -xf ~/downloads/install4j_unix_7_0_3.tar.gz +tar -xf ~/downloads/install4j_unix_7_0_4.tar.gz # fix directory name (until install4j 6.1.5 it was install4j6 -mv install4j7.0.3 install4j7 +mv install4j7.0.4 install4j7 # fetch JREs if [ ! -d ~/.install4j7/jres/ ]; then diff --git a/settings.gradle b/settings.gradle index ee77a0edcfa..80d3f509605 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1,2 @@ rootProject.name = "JabRef" +include 'org.jabref.model', 'org.jabref.logic', 'org.jabref.gui', 'org.jabref.cli.xmp' diff --git a/src/main/java/org/jabref/cli/GenerateCharacterTable.java b/src/main/java/org/jabref/cli/GenerateCharacterTable.java deleted file mode 100644 index babd5bbca00..00000000000 --- a/src/main/java/org/jabref/cli/GenerateCharacterTable.java +++ /dev/null @@ -1,52 +0,0 @@ -package org.jabref.cli; - -import java.util.Map; -import java.util.TreeMap; - -import org.jabref.logic.util.strings.HTMLUnicodeConversionMaps; - -public class GenerateCharacterTable { - - private GenerateCharacterTable() { - } - - public static void main(String[] args) { - Map characterMap = new TreeMap<>(HTMLUnicodeConversionMaps.NUMERICAL_LATEX_CONVERSION_MAP); - System.out.println("\\documentclass[10pt, a4paper]{article}"); - System.out.println("\\usepackage[T5,T1]{fontenc}"); - System.out.println("\\usepackage{amssymb}"); - System.out.println("\\usepackage{amsmath}"); - System.out.println("\\usepackage{txfonts}"); - System.out.println("\\usepackage{xfrac}"); - System.out.println("\\usepackage{combelow}"); - System.out.println("\\usepackage{textcomp}"); - System.out.println("\\usepackage{mathspec}"); - System.out.println("\\usepackage{fontspec}"); - System.out.println("\\usepackage[a4paper,margin=1cm]{geometry}"); - System.out.println("\\usepackage{supertabular}"); - System.out.println("\\usepackage{mathabx}"); - System.out.println("\\fontspec{Cambria}"); - System.out.println("\\DeclareTextSymbolDefault{\\OHORN}{T5}"); - System.out.println("\\DeclareTextSymbolDefault{\\UHORN}{T5}"); - System.out.println("\\DeclareTextSymbolDefault{\\ohorn}{T5}"); - System.out.println("\\DeclareTextSymbolDefault{\\uhorn}{T5}"); - System.out.println("\\begin{document}"); - System.out.println("\\twocolumn"); - System.out.println("\\begin{supertabular}{c|c|c|c|c}"); - System.out.println("No. & Uni & Symb & \\LaTeX & Code \\\\ \n \\hline"); - - for (Map.Entry character : characterMap.entrySet()) { - System.out - .println( - character.getKey() + " & " - + ((character.getKey() > 128) ? String - .valueOf(Character.toChars(character.getKey())) : "") - + " & \\symbol{" + Integer.toString(character.getKey()) + "} & " - + character.getValue() + " & \\verb¤" + character.getValue() + "¤ \\\\"); - } - System.out.println("\\end{supertabular}"); - System.out.println("\\end{document}"); - - } - -} diff --git a/src/main/java/org/jabref/logic/cleanup/CleanupPreset.java b/src/main/java/org/jabref/logic/cleanup/CleanupPreset.java deleted file mode 100644 index ca109ba5782..00000000000 --- a/src/main/java/org/jabref/logic/cleanup/CleanupPreset.java +++ /dev/null @@ -1,166 +0,0 @@ -package org.jabref.logic.cleanup; - -import java.util.ArrayList; -import java.util.EnumSet; -import java.util.Objects; -import java.util.Set; - -import org.jabref.logic.util.OS; -import org.jabref.model.cleanup.FieldFormatterCleanups; -import org.jabref.preferences.JabRefPreferences; - -public class CleanupPreset { - - private final Set activeJobs; - private final FieldFormatterCleanups formatterCleanups; - - - public CleanupPreset(Set activeJobs) { - this(activeJobs, new FieldFormatterCleanups(false, new ArrayList<>())); - } - - public CleanupPreset(CleanupStep activeJob) { - this(EnumSet.of(activeJob)); - } - - public CleanupPreset(FieldFormatterCleanups formatterCleanups) { - this(EnumSet.noneOf(CleanupStep.class), formatterCleanups); - } - - public CleanupPreset(Set activeJobs, FieldFormatterCleanups formatterCleanups) { - this.activeJobs = activeJobs; - this.formatterCleanups = Objects.requireNonNull(formatterCleanups); - } - - public static CleanupPreset loadFromPreferences(JabRefPreferences preferences) { - - Set activeJobs = EnumSet.noneOf(CleanupStep.class); - - if (preferences.getBoolean(JabRefPreferences.CLEANUP_DOI)) { - activeJobs.add(CleanupStep.CLEAN_UP_DOI); - } - if (preferences.getBoolean(JabRefPreferences.CLEANUP_ISSN)) { - activeJobs.add(CleanupStep.CLEAN_UP_ISSN); - } - if (preferences.getBoolean(JabRefPreferences.CLEANUP_MOVE_PDF)) { - activeJobs.add(CleanupStep.MOVE_PDF); - } - if (preferences.getBoolean(JabRefPreferences.CLEANUP_MAKE_PATHS_RELATIVE)) { - activeJobs.add(CleanupStep.MAKE_PATHS_RELATIVE); - } - if (preferences.getBoolean(JabRefPreferences.CLEANUP_RENAME_PDF)) { - activeJobs.add(CleanupStep.RENAME_PDF); - } - if (preferences.getBoolean(JabRefPreferences.CLEANUP_RENAME_PDF_ONLY_RELATIVE_PATHS)) { - activeJobs.add(CleanupStep.RENAME_PDF_ONLY_RELATIVE_PATHS); - } - if (preferences.getBoolean(JabRefPreferences.CLEANUP_UPGRADE_EXTERNAL_LINKS)) { - activeJobs.add(CleanupStep.CLEAN_UP_UPGRADE_EXTERNAL_LINKS); - } - if (preferences.getBoolean(JabRefPreferences.CLEANUP_CONVERT_TO_BIBLATEX)) { - activeJobs.add(CleanupStep.CONVERT_TO_BIBLATEX); - } - if (preferences.getBoolean(JabRefPreferences.CLEANUP_CONVERT_TO_BIBTEX)) { - activeJobs.add(CleanupStep.CONVERT_TO_BIBTEX); - } - if (preferences.getBoolean(JabRefPreferences.CLEANUP_FIX_FILE_LINKS)) { - activeJobs.add(CleanupStep.FIX_FILE_LINKS); - } - - FieldFormatterCleanups formatterCleanups = Cleanups.parse( - preferences.getStringList(JabRefPreferences.CLEANUP_FORMATTERS)); - - return new CleanupPreset(activeJobs, formatterCleanups); - } - - public boolean isCleanUpUpgradeExternalLinks() { - return isActive(CleanupStep.CLEAN_UP_UPGRADE_EXTERNAL_LINKS); - } - - public boolean isCleanUpDOI() { - return isActive(CleanupStep.CLEAN_UP_DOI); - } - - public boolean isCleanUpISSN() { - return isActive(CleanupStep.CLEAN_UP_ISSN); - } - - public boolean isFixFileLinks() { - return isActive(CleanupStep.FIX_FILE_LINKS); - } - - public boolean isMovePDF() { - return isActive(CleanupStep.MOVE_PDF); - } - - public boolean isMakePathsRelative() { - return isActive(CleanupStep.MAKE_PATHS_RELATIVE); - } - - public boolean isRenamePDF() { - return isActive(CleanupStep.RENAME_PDF) || isActive(CleanupStep.RENAME_PDF_ONLY_RELATIVE_PATHS); - } - - public boolean isConvertToBiblatex() { - return isActive(CleanupStep.CONVERT_TO_BIBLATEX); - } - - public boolean isConvertToBibtex() { - return isActive(CleanupStep.CONVERT_TO_BIBTEX); - } - - public boolean isRenamePdfOnlyRelativePaths() { - return isActive(CleanupStep.RENAME_PDF_ONLY_RELATIVE_PATHS); - } - - public void storeInPreferences(JabRefPreferences preferences) { - preferences.putBoolean(JabRefPreferences.CLEANUP_DOI, isActive(CleanupStep.CLEAN_UP_DOI)); - preferences.putBoolean(JabRefPreferences.CLEANUP_ISSN, isActive(CleanupStep.CLEAN_UP_ISSN)); - preferences.putBoolean(JabRefPreferences.CLEANUP_MOVE_PDF, isActive(CleanupStep.MOVE_PDF)); - preferences.putBoolean(JabRefPreferences.CLEANUP_MAKE_PATHS_RELATIVE, isActive(CleanupStep.MAKE_PATHS_RELATIVE)); - preferences.putBoolean(JabRefPreferences.CLEANUP_RENAME_PDF, isActive(CleanupStep.RENAME_PDF)); - preferences.putBoolean(JabRefPreferences.CLEANUP_RENAME_PDF_ONLY_RELATIVE_PATHS, - isActive(CleanupStep.RENAME_PDF_ONLY_RELATIVE_PATHS)); - preferences.putBoolean(JabRefPreferences.CLEANUP_UPGRADE_EXTERNAL_LINKS, - isActive(CleanupStep.CLEAN_UP_UPGRADE_EXTERNAL_LINKS)); - preferences.putBoolean(JabRefPreferences.CLEANUP_CONVERT_TO_BIBLATEX, isActive(CleanupStep.CONVERT_TO_BIBLATEX)); - preferences.putBoolean(JabRefPreferences.CLEANUP_CONVERT_TO_BIBTEX, isActive(CleanupStep.CONVERT_TO_BIBTEX)); - preferences.putBoolean(JabRefPreferences.CLEANUP_FIX_FILE_LINKS, isActive(CleanupStep.FIX_FILE_LINKS)); - - preferences.putStringList(JabRefPreferences.CLEANUP_FORMATTERS, formatterCleanups.getAsStringList(OS.NEWLINE)); - } - - private Boolean isActive(CleanupStep step) { - return activeJobs.contains(step); - } - - public FieldFormatterCleanups getFormatterCleanups() { - return formatterCleanups; - } - - public enum CleanupStep { - /** - * Removes the http://... for each DOI. Moves DOIs from URL and NOTE filed to DOI field. - */ - CLEAN_UP_DOI, - MAKE_PATHS_RELATIVE, - RENAME_PDF, - RENAME_PDF_ONLY_RELATIVE_PATHS, - /** - * Collects file links from the pdf or ps field, and adds them to the list contained in the file field. - */ - CLEAN_UP_UPGRADE_EXTERNAL_LINKS, - /** - * Converts to biblatex format - */ - CONVERT_TO_BIBLATEX, - /** - * Converts to bibtex format - */ - CONVERT_TO_BIBTEX, - MOVE_PDF, - FIX_FILE_LINKS, - CLEAN_UP_ISSN - } - -} diff --git a/src/main/java/org/jabref/logic/openoffice/OpenOfficePreferences.java b/src/main/java/org/jabref/logic/openoffice/OpenOfficePreferences.java deleted file mode 100644 index 208c7ee6be2..00000000000 --- a/src/main/java/org/jabref/logic/openoffice/OpenOfficePreferences.java +++ /dev/null @@ -1,131 +0,0 @@ -package org.jabref.logic.openoffice; - -import java.io.File; -import java.util.Arrays; -import java.util.List; - -import org.jabref.logic.l10n.Localization; -import org.jabref.preferences.JabRefPreferences; - -/** - * The OpenOffice connection preferences are: - * OO_PATH main directory for OO/LO installation, used to detect location on Win/OS X when using manual connect - * OO_EXECUTABLE_PATH path to soffice-file - * OO_JARS_PATH directory that contains juh.jar, jurt.jar, ridl.jar, unoil.jar - * OO_SYNC_WHEN_CITING true if the reference list is updated when adding a new citation - * OO_SHOW_PANEL true if the OO panel is shown on startup - * OO_USE_ALL_OPEN_DATABASES true if all databases should be used when citing - * OO_BIBLIOGRAPHY_STYLE_FILE path to the used style file - * OO_EXTERNAL_STYLE_FILES list with paths to external style files - */ -public class OpenOfficePreferences { - - public static final String DEFAULT_WINDOWS_PATH = "C:\\Program Files\\LibreOffice 5"; - public static final String DEFAULT_WIN_EXEC_PATH = "C:\\Program Files\\LibreOffice 5\\program"; - public static final String WINDOWS_EXECUTABLE = "soffice.exe"; - - public static final String DEFAULT_OSX_PATH = "/Applications/OpenOffice.org.app"; - public static final String DEFAULT_OSX_EXEC_PATH = "/Applications/OpenOffice.org.app/Contents/MacOS/soffice"; - public static final String OSX_EXECUTABLE = "soffice"; - - public static final String DEFAULT_LINUX_PATH = "/usr/lib/libreoffice"; - public static final String DEFAULT_LINUX_EXEC_PATH = "/usr/lib/libreoffice/program/soffice"; - public static final String LINUX_EXECUTABLE = "soffice"; - - public static final List OO_JARS = Arrays.asList("unoil.jar", "jurt.jar", "juh.jar", "ridl.jar"); - - private final JabRefPreferences preferences; - - public OpenOfficePreferences(JabRefPreferences preferences) { - this.preferences = preferences; - } - - public void updateConnectionParams(String ooPath, String execPath, String jarsPath) { - setOOPath(ooPath); - setExecutablePath(execPath); - setJarsPath(jarsPath); - } - - public boolean checkAutoDetectedPaths() { - if (preferences.hasKey(JabRefPreferences.OO_PATH)) { - return new File(getExecutablePath()).exists(); - } else { - return false; - } - } - - public String clearConnectionSettings() { - preferences.clear(JabRefPreferences.OO_PATH); - preferences.clear(JabRefPreferences.OO_EXECUTABLE_PATH); - preferences.clear(JabRefPreferences.OO_JARS_PATH); - return Localization.lang("Cleared connection settings."); - } - - public String getJarsPath() { - return preferences.get(JabRefPreferences.OO_JARS_PATH); - } - - public void setJarsPath(String path) { - preferences.put(JabRefPreferences.OO_JARS_PATH, path); - } - - public String getExecutablePath() { - return preferences.get(JabRefPreferences.OO_EXECUTABLE_PATH); - } - - public void setExecutablePath(String path) { - preferences.put(JabRefPreferences.OO_EXECUTABLE_PATH, path); - } - - public String getInstallationPath() { - return preferences.get(JabRefPreferences.OO_PATH); - } - - public void setOOPath(String path) { - preferences.put(JabRefPreferences.OO_PATH, path); - } - - public boolean useAllDatabases() { - return preferences.getBoolean(JabRefPreferences.OO_USE_ALL_OPEN_BASES); - } - - public void setUseAllDatabases(boolean use) { - preferences.putBoolean(JabRefPreferences.OO_USE_ALL_OPEN_BASES, use); - } - - public boolean syncWhenCiting() { - return preferences.getBoolean(JabRefPreferences.OO_SYNC_WHEN_CITING); - } - - public void setSyncWhenCiting(boolean sync) { - preferences.putBoolean(JabRefPreferences.OO_SYNC_WHEN_CITING, sync); - } - - public boolean showPanel() { - return preferences.getBoolean(JabRefPreferences.OO_SHOW_PANEL); - } - - public void setShowPanel(boolean show) { - preferences.putBoolean(JabRefPreferences.OO_SHOW_PANEL, show); - } - - public List getExternalStyles() { - return preferences.getStringList(JabRefPreferences.OO_EXTERNAL_STYLE_FILES); - } - - public void setExternalStyles(List filenames) { - preferences.putStringList(JabRefPreferences.OO_EXTERNAL_STYLE_FILES, filenames); - } - - public String getCurrentStyle() { - return preferences.get(JabRefPreferences.OO_BIBLIOGRAPHY_STYLE_FILE); - } - - public void clearCurrentStyle() { - preferences.remove(JabRefPreferences.OO_BIBLIOGRAPHY_STYLE_FILE); - } - - public void setCurrentStyle(String path) { - preferences.put(JabRefPreferences.OO_BIBLIOGRAPHY_STYLE_FILE, path); - } -} diff --git a/src/test/java/org/jabref/CodeStyleTests.java b/src/test/java/org/jabref/CodeStyleTests.java deleted file mode 100644 index f2d5f6164d0..00000000000 --- a/src/test/java/org/jabref/CodeStyleTests.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.jabref; - -import java.nio.charset.StandardCharsets; -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.Paths; - -import org.jabref.model.strings.StringUtil; - -import org.junit.jupiter.api.Test; - -import static org.junit.jupiter.api.Assertions.assertTrue; - -public class CodeStyleTests { - - @Test - public void StringUtilClassIsSmall() throws Exception { - Path path = Paths.get("src", "main", "java", StringUtil.class.getName().replace('.', '/') + ".java"); - int lineCount = Files.readAllLines(path, StandardCharsets.UTF_8).size(); - - assertTrue(lineCount <= 722, "StringUtil increased in size. " - + "We try to keep this class as small as possible. " - + "Thus think twice if you add something to StringUtil."); - } -} diff --git a/src/test/java/org/jabref/logic/importer/DatabaseFileLookupTest.java b/src/test/java/org/jabref/logic/importer/DatabaseFileLookupTest.java deleted file mode 100644 index 999123b752e..00000000000 --- a/src/test/java/org/jabref/logic/importer/DatabaseFileLookupTest.java +++ /dev/null @@ -1,58 +0,0 @@ -package org.jabref.logic.importer; - -import java.io.FileInputStream; -import java.io.InputStreamReader; -import java.nio.charset.StandardCharsets; -import java.util.Collection; - -import org.jabref.logic.importer.fileformat.BibtexParser; -import org.jabref.model.database.BibDatabase; -import org.jabref.model.entry.BibEntry; -import org.jabref.model.util.DummyFileUpdateMonitor; - -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; -import org.mockito.Answers; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNotNull; -import static org.mockito.Mockito.mock; - -/** - * @author Nosh&Dan - * @version 09.11.2008 | 21:06:17 - */ -public class DatabaseFileLookupTest { - - private BibDatabase database; - private Collection entries; - - private BibEntry entry1; - private BibEntry entry2; - - - @BeforeEach - public void setUp() throws Exception { - try (FileInputStream stream = new FileInputStream(ImportDataTest.UNLINKED_FILES_TEST_BIB); - InputStreamReader reader = new InputStreamReader(stream, StandardCharsets.UTF_8)) { - ParserResult result = new BibtexParser(mock(ImportFormatPreferences.class, Answers.RETURNS_DEEP_STUBS), new DummyFileUpdateMonitor()).parse(reader); - database = result.getDatabase(); - entries = database.getEntries(); - - entry1 = database.getEntryByKey("entry1").get(); - entry2 = database.getEntryByKey("entry2").get(); - } - } - - /** - * Tests the prerequisites of this test-class itself. - */ - @Test - public void testTestDatabase() { - assertEquals(2, database.getEntryCount()); - assertEquals(2, entries.size()); - assertNotNull(entry1); - assertNotNull(entry2); - } - -}