From 0544942c9cc1329e560799c7df5aac210e6833ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gra=C3=A7a?= Date: Mon, 19 Jul 2021 15:23:46 +0100 Subject: [PATCH 01/11] fix results model convert result to a list --- pom.xml | 2 +- .../funders/jaxb/model/OpenAIREHandler.java | 18 ++++++++++++++++++ .../openaire/funders/jaxb/model/Results.java | 13 +++++++++---- 3 files changed, 28 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 69a1c59..e49f086 100755 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 eu.openaire funders-model - 1.0.0 + 1.0.1 jar diff --git a/src/main/java/org/openaire/funders/jaxb/model/OpenAIREHandler.java b/src/main/java/org/openaire/funders/jaxb/model/OpenAIREHandler.java index 97cfd7e..8d65718 100644 --- a/src/main/java/org/openaire/funders/jaxb/model/OpenAIREHandler.java +++ b/src/main/java/org/openaire/funders/jaxb/model/OpenAIREHandler.java @@ -13,6 +13,7 @@ import java.io.File; import java.io.FileWriter; import java.io.IOException; +import java.io.InputStream; import java.net.URL; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; @@ -45,4 +46,21 @@ public static Response unmarshal(URL importFile) throws JAXBException { return response; } + + /** + * Unmarshal and returns a Response from an InputStream + * @param iStream + * @return + * @throws JAXBException + */ + public static Response unmarshal(InputStream iStream) throws JAXBException { + Response response = null; + JAXBContext context; + + context = JAXBContext.newInstance(Response.class); + Unmarshaller um = context.createUnmarshaller(); + response = (Response) um.unmarshal(iStream); + + return response; + } } diff --git a/src/main/java/org/openaire/funders/jaxb/model/Results.java b/src/main/java/org/openaire/funders/jaxb/model/Results.java index e61b353..a1878ce 100644 --- a/src/main/java/org/openaire/funders/jaxb/model/Results.java +++ b/src/main/java/org/openaire/funders/jaxb/model/Results.java @@ -10,20 +10,25 @@ * @author dpie */ import java.util.ArrayList; +import java.util.List; + import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; @XmlType public class Results { - private Result result; + private List result; - public Result getResult() { + public List getResult() { + if (result == null) { + result = new ArrayList(); + } return result; } - public void setResult(Result result) { - this.result = result; + public void setResult(List result) { + this.getResult().addAll(result); } From 0f8a7af250511922a9c4fabf9cf067eb7f39d8e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gra=C3=A7a?= Date: Tue, 20 Jul 2021 13:08:39 +0100 Subject: [PATCH 02/11] fix example result --- src/main/java/org/openaire/funders/jaxb/model/JAXBExample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openaire/funders/jaxb/model/JAXBExample.java b/src/main/java/org/openaire/funders/jaxb/model/JAXBExample.java index e0db082..8260834 100644 --- a/src/main/java/org/openaire/funders/jaxb/model/JAXBExample.java +++ b/src/main/java/org/openaire/funders/jaxb/model/JAXBExample.java @@ -22,7 +22,7 @@ public static void main(String[] args) throws MalformedURLException { //Unmarshalling: Converting XML content to Java objects URL url = new URL("https://api.openaire.eu/search/projects?grantID=741839&funder=EC"); Response response = OpenAIREHandler.unmarshal(url); - Result result = response.getResults().getResult(); + Result result = response.getResults().getResult().get(0); System.out.println("fdsfds " + response.getHeader().getTotal()); From cb647afe2a25db037b16ad5282f23cdc982589cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gra=C3=A7a?= Date: Tue, 27 Jul 2021 16:12:15 +0100 Subject: [PATCH 03/11] remove old model --- .../jaxb/model/ControlledElementType.java | 173 ----- .../openaire/funders/jaxb/model/Entity.java | 22 - .../jaxb/model/ExternalreferenceType.java | 228 ------- .../funders/jaxb/model/FunderFlatType.java | 175 ----- .../funders/jaxb/model/FunderType.java | 150 ----- .../funders/jaxb/model/FundingFlatType.java | 170 ----- .../funders/jaxb/model/FundingParentType.java | 97 --- .../funders/jaxb/model/FundingTreeType.java | 125 ---- .../funders/jaxb/model/FundingType.java | 177 ----- .../openaire/funders/jaxb/model/Header.java | 42 -- .../model/InferenceExtendedBooleanType.java | 144 ---- .../model/InferenceExtendedStringType.java | 152 ----- .../funders/jaxb/model/JAXBExample.java | 99 --- .../jaxb/model/LabeledIdElementType.java | 174 ----- .../openaire/funders/jaxb/model/Metadata.java | 30 - .../funders/jaxb/model/NamedFundingLevel.java | 94 --- .../jaxb/model/NamedIdElementType.java | 174 ----- .../funders/jaxb/model/ObjectFactory.java | 628 ------------------ .../funders/jaxb/model/OpenAIREHandler.java | 66 -- .../openaire/funders/jaxb/model/Project.java | 157 ----- .../funders/jaxb/model/RelToType.java | 151 ----- .../openaire/funders/jaxb/model/RelType.java | 242 ------- .../openaire/funders/jaxb/model/RelsType.java | 76 --- .../openaire/funders/jaxb/model/Response.java | 49 -- .../openaire/funders/jaxb/model/Result.java | 33 - .../funders/jaxb/model/ResultHeader.java | 41 -- .../openaire/funders/jaxb/model/Results.java | 35 - .../funders/jaxb/model/TypedElementType.java | 175 ----- .../funders/jaxb/model/package-info.java | 20 - 29 files changed, 3899 deletions(-) delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/ControlledElementType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/Entity.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/ExternalreferenceType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/FunderFlatType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/FunderType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/FundingFlatType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/FundingParentType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/FundingTreeType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/FundingType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/Header.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/InferenceExtendedBooleanType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/InferenceExtendedStringType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/JAXBExample.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/LabeledIdElementType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/Metadata.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/NamedFundingLevel.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/NamedIdElementType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/ObjectFactory.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/OpenAIREHandler.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/Project.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/RelToType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/RelType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/RelsType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/Response.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/Result.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/ResultHeader.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/Results.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/TypedElementType.java delete mode 100644 src/main/java/org/openaire/funders/jaxb/model/package-info.java diff --git a/src/main/java/org/openaire/funders/jaxb/model/ControlledElementType.java b/src/main/java/org/openaire/funders/jaxb/model/ControlledElementType.java deleted file mode 100644 index 7441558..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/ControlledElementType.java +++ /dev/null @@ -1,173 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for controlledElementType complex type. - * - *

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

- * <complexType name="controlledElementType">
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
- *       <attGroup ref="{http://namespace.openaire.eu/oaf}optionalInferenceAttrGroup"/>
- *       <attribute name="code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "controlledElementType", propOrder = { - "value" -}) -public class ControlledElementType { - - @XmlValue - protected String value; - @XmlAttribute(name = "code", required = true) - protected String code; - @XmlAttribute(name = "inferred") - protected Boolean inferred; - @XmlAttribute(name = "inferenceprovenance") - protected String inferenceprovenance; - @XmlAttribute(name = "trust") - protected String trust; - - /** - * 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 code property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCode() { - return code; - } - - /** - * Sets the value of the code property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCode(String value) { - this.code = value; - } - - /** - * Gets the value of the inferred property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isInferred() { - return inferred; - } - - /** - * Sets the value of the inferred property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInferred(Boolean value) { - this.inferred = value; - } - - /** - * Gets the value of the inferenceprovenance property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getInferenceprovenance() { - return inferenceprovenance; - } - - /** - * Sets the value of the inferenceprovenance property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setInferenceprovenance(String value) { - this.inferenceprovenance = value; - } - - /** - * Gets the value of the trust property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTrust() { - return trust; - } - - /** - * Sets the value of the trust property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTrust(String value) { - this.trust = value; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/Entity.java b/src/main/java/org/openaire/funders/jaxb/model/Entity.java deleted file mode 100644 index 7fa0fed..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/Entity.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ -package org.openaire.funders.jaxb.model; - -/** - * - * @author dpie - */ -import javax.xml.bind.annotation.XmlElement; - -public class Entity { - @XmlElement(name="project", namespace="http://namespace.openaire.eu/oaf") - private Project project; - - public Project getProject() { - return project; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/ExternalreferenceType.java b/src/main/java/org/openaire/funders/jaxb/model/ExternalreferenceType.java deleted file mode 100644 index 93840e0..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/ExternalreferenceType.java +++ /dev/null @@ -1,228 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -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 externalreferenceType complex type. - * - *

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

- * <complexType name="externalreferenceType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="sitename" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *         <element name="url" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *         <element name="qualifier" type="{http://namespace.openaire.eu/oaf}controlledElementType" minOccurs="0"/>
- *         <element name="refidentifier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
- *       </sequence>
- *       <attGroup ref="{http://namespace.openaire.eu/oaf}optionalInferenceAttrGroup"/>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "externalreferenceType", propOrder = { - "sitename", - "url", - "qualifier", - "refidentifier" -}) -public class ExternalreferenceType { - - protected String sitename; - protected String url; - protected ControlledElementType qualifier; - protected String refidentifier; - @XmlAttribute(name = "inferred") - protected Boolean inferred; - @XmlAttribute(name = "inferenceprovenance") - protected String inferenceprovenance; - @XmlAttribute(name = "trust") - protected String trust; - - /** - * Gets the value of the sitename property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSitename() { - return sitename; - } - - /** - * Sets the value of the sitename property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSitename(String value) { - this.sitename = 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 qualifier property. - * - * @return - * possible object is - * {@link ControlledElementType } - * - */ - public ControlledElementType getQualifier() { - return qualifier; - } - - /** - * Sets the value of the qualifier property. - * - * @param value - * allowed object is - * {@link ControlledElementType } - * - */ - public void setQualifier(ControlledElementType value) { - this.qualifier = value; - } - - /** - * Gets the value of the refidentifier property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRefidentifier() { - return refidentifier; - } - - /** - * Sets the value of the refidentifier property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRefidentifier(String value) { - this.refidentifier = value; - } - - /** - * Gets the value of the inferred property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isInferred() { - return inferred; - } - - /** - * Sets the value of the inferred property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInferred(Boolean value) { - this.inferred = value; - } - - /** - * Gets the value of the inferenceprovenance property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getInferenceprovenance() { - return inferenceprovenance; - } - - /** - * Sets the value of the inferenceprovenance property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setInferenceprovenance(String value) { - this.inferenceprovenance = value; - } - - /** - * Gets the value of the trust property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTrust() { - return trust; - } - - /** - * Sets the value of the trust property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTrust(String value) { - this.trust = value; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/FunderFlatType.java b/src/main/java/org/openaire/funders/jaxb/model/FunderFlatType.java deleted file mode 100644 index 92639f2..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/FunderFlatType.java +++ /dev/null @@ -1,175 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for funderFlatType complex type. - * - *

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

- * <complexType name="funderFlatType">
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="shortname" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="jurisdiction" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "funderFlatType", propOrder = { - "value" -}) -public class FunderFlatType { - - @XmlValue - protected String value; - @XmlAttribute(name = "id", required = true) - protected String id; - @XmlAttribute(name = "shortname", required = true) - protected String shortname; - @XmlAttribute(name = "name", required = true) - protected String name; - @XmlAttribute(name = "jurisdiction") - protected String jurisdiction; - - /** - * 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 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 shortname property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getShortname() { - return shortname; - } - - /** - * Sets the value of the shortname property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setShortname(String value) { - this.shortname = value; - } - - /** - * 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; - } - - /** - * Gets the value of the jurisdiction property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getJurisdiction() { - return jurisdiction; - } - - /** - * Sets the value of the jurisdiction property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setJurisdiction(String value) { - this.jurisdiction = value; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/FunderType.java b/src/main/java/org/openaire/funders/jaxb/model/FunderType.java deleted file mode 100644 index a2854d9..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/FunderType.java +++ /dev/null @@ -1,150 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -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 funderType complex type. - * - *

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

- * <complexType name="funderType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <all>
- *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="shortname" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="jurisdiction" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *       </all>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "funderType", propOrder = { - -}) -public class FunderType { - - @XmlElement(required = true) - protected String id; - @XmlElement(required = true) - protected String shortname; - @XmlElement(required = true) - protected String name; - @XmlElement(required = true) - protected String jurisdiction; - - /** - * 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 shortname property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getShortname() { - return shortname; - } - - /** - * Sets the value of the shortname property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setShortname(String value) { - this.shortname = value; - } - - /** - * 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; - } - - /** - * Gets the value of the jurisdiction property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getJurisdiction() { - return jurisdiction; - } - - /** - * Sets the value of the jurisdiction property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setJurisdiction(String value) { - this.jurisdiction = value; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/FundingFlatType.java b/src/main/java/org/openaire/funders/jaxb/model/FundingFlatType.java deleted file mode 100644 index 343b81a..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/FundingFlatType.java +++ /dev/null @@ -1,170 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -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 fundingFlatType complex type. - * - *

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

- * <complexType name="fundingFlatType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="funder" type="{http://namespace.openaire.eu/oaf}funderFlatType"/>
- *         <element name="funding_level_0" type="{http://namespace.openaire.eu/oaf}namedFundingLevel" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="funding_level_1" type="{http://namespace.openaire.eu/oaf}namedFundingLevel" maxOccurs="unbounded" minOccurs="0"/>
- *         <element name="funding_level_2" type="{http://namespace.openaire.eu/oaf}namedFundingLevel" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "fundingFlatType", propOrder = { - "funder", - "fundingLevel0", - "fundingLevel1", - "fundingLevel2" -}) -public class FundingFlatType { - - @XmlElement(required = true) - protected FunderFlatType funder; - @XmlElement(name = "funding_level_0") - protected List fundingLevel0; - @XmlElement(name = "funding_level_1") - protected List fundingLevel1; - @XmlElement(name = "funding_level_2") - protected List fundingLevel2; - - /** - * Gets the value of the funder property. - * - * @return - * possible object is - * {@link FunderFlatType } - * - */ - public FunderFlatType getFunder() { - return funder; - } - - /** - * Sets the value of the funder property. - * - * @param value - * allowed object is - * {@link FunderFlatType } - * - */ - public void setFunder(FunderFlatType value) { - this.funder = value; - } - - /** - * Gets the value of the fundingLevel0 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 fundingLevel0 property. - * - *

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

-     *    getFundingLevel0().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link NamedFundingLevel } - * - * - */ - public List getFundingLevel0() { - if (fundingLevel0 == null) { - fundingLevel0 = new ArrayList(); - } - return this.fundingLevel0; - } - - /** - * Gets the value of the fundingLevel1 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 fundingLevel1 property. - * - *

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

-     *    getFundingLevel1().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link NamedFundingLevel } - * - * - */ - public List getFundingLevel1() { - if (fundingLevel1 == null) { - fundingLevel1 = new ArrayList(); - } - return this.fundingLevel1; - } - - /** - * Gets the value of the fundingLevel2 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 fundingLevel2 property. - * - *

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

-     *    getFundingLevel2().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link NamedFundingLevel } - * - * - */ - public List getFundingLevel2() { - if (fundingLevel2 == null) { - fundingLevel2 = new ArrayList(); - } - return this.fundingLevel2; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/FundingParentType.java b/src/main/java/org/openaire/funders/jaxb/model/FundingParentType.java deleted file mode 100644 index 2f7b45d..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/FundingParentType.java +++ /dev/null @@ -1,97 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -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 fundingParentType complex type. - * - *

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

- * <complexType name="fundingParentType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice minOccurs="0">
- *         <element name="funding_level_1" type="{http://namespace.openaire.eu/oaf}fundingType"/>
- *         <element name="funding_level_0" type="{http://namespace.openaire.eu/oaf}fundingType"/>
- *       </choice>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "fundingParentType", propOrder = { - "fundingLevel1", - "fundingLevel0" -}) -public class FundingParentType { - - @XmlElement(name = "funding_level_1") - protected FundingType fundingLevel1; - @XmlElement(name = "funding_level_0") - protected FundingType fundingLevel0; - - /** - * Gets the value of the fundingLevel1 property. - * - * @return - * possible object is - * {@link FundingType } - * - */ - public FundingType getFundingLevel1() { - return fundingLevel1; - } - - /** - * Sets the value of the fundingLevel1 property. - * - * @param value - * allowed object is - * {@link FundingType } - * - */ - public void setFundingLevel1(FundingType value) { - this.fundingLevel1 = value; - } - - /** - * Gets the value of the fundingLevel0 property. - * - * @return - * possible object is - * {@link FundingType } - * - */ - public FundingType getFundingLevel0() { - return fundingLevel0; - } - - /** - * Sets the value of the fundingLevel0 property. - * - * @param value - * allowed object is - * {@link FundingType } - * - */ - public void setFundingLevel0(FundingType value) { - this.fundingLevel0 = value; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/FundingTreeType.java b/src/main/java/org/openaire/funders/jaxb/model/FundingTreeType.java deleted file mode 100644 index 80a9a1a..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/FundingTreeType.java +++ /dev/null @@ -1,125 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -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.XmlElement; -import javax.xml.bind.annotation.XmlElementRef; -import javax.xml.bind.annotation.XmlElementRefs; -import javax.xml.bind.annotation.XmlType; - - -/** - *

Java class for fundingTreeType complex type. - * - *

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

- * <complexType name="fundingTreeType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="funder" type="{http://namespace.openaire.eu/oaf}funderType"/>
- *         <choice maxOccurs="unbounded">
- *           <element name="funding_level_2" type="{http://namespace.openaire.eu/oaf}fundingType"/>
- *           <element name="funding_level_1" type="{http://namespace.openaire.eu/oaf}fundingType"/>
- *           <element name="funding_level_0" type="{http://namespace.openaire.eu/oaf}fundingType"/>
- *         </choice>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "fundingTreeType", propOrder = { - "funder","funding_level_1", - "fundingLevel2OrFundingLevel1OrFundingLevel0" -}) -public class FundingTreeType { - - @XmlElement(required = true) - protected FunderType funder; - @XmlElementRefs({ - @XmlElementRef(name = "funding_level_0", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "funding_level_1", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "funding_level_2", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false) - }) - protected List> fundingLevel2OrFundingLevel1OrFundingLevel0; - - /** - * Gets the value of the funder property. - * - * @return - * possible object is - * {@link FunderType } - * - */ - public FunderType getFunder() { - return funder; - } - - /** - * Sets the value of the funder property. - * - * @param value - * allowed object is - * {@link FunderType } - * - */ - public void setFunder(FunderType value) { - this.funder = value; - } - - /** - * Gets the value of the fundingLevel2OrFundingLevel1OrFundingLevel0 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 fundingLevel2OrFundingLevel1OrFundingLevel0 property. - * - *

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

-     *    getFundingLevel2OrFundingLevel1OrFundingLevel0().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link FundingType }{@code >} - * {@link JAXBElement }{@code <}{@link FundingType }{@code >} - * {@link JAXBElement }{@code <}{@link FundingType }{@code >} - * - * - */ - public List> getFundingLevel2OrFundingLevel1OrFundingLevel0() { - if (fundingLevel2OrFundingLevel1OrFundingLevel0 == null) { - fundingLevel2OrFundingLevel1OrFundingLevel0 = new ArrayList>(); - } - return this.fundingLevel2OrFundingLevel1OrFundingLevel0; - } - - private FundingType funding_level_1; - - public FundingType getFunding_level1() { - return funding_level_1; - } - - - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/FundingType.java b/src/main/java/org/openaire/funders/jaxb/model/FundingType.java deleted file mode 100644 index e423e59..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/FundingType.java +++ /dev/null @@ -1,177 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -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 fundingType complex type. - * - *

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

- * <complexType name="fundingType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <all>
- *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="class" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="parent" type="{http://namespace.openaire.eu/oaf}fundingParentType"/>
- *       </all>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "fundingType", propOrder = { - -}) -public class FundingType { - - @XmlElement(required = true) - protected String id; - @XmlElement(required = true) - protected String description; - @XmlElement(required = true) - protected String name; - @XmlElement(name = "class", required = true) - protected String clazz; - @XmlElement(required = true) - protected FundingParentType parent; - - /** - * 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 description property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDescription() { - return description; - } - - /** - * Sets the value of the description property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDescription(String value) { - this.description = value; - } - - /** - * 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; - } - - /** - * Gets the value of the clazz property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getClazz() { - return clazz; - } - - /** - * Sets the value of the clazz property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setClazz(String value) { - this.clazz = value; - } - - /** - * Gets the value of the parent property. - * - * @return - * possible object is - * {@link FundingParentType } - * - */ - public FundingParentType getParent() { - return parent; - } - - /** - * Sets the value of the parent property. - * - * @param value - * allowed object is - * {@link FundingParentType } - * - */ - public void setParent(FundingParentType value) { - this.parent = value; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/Header.java b/src/main/java/org/openaire/funders/jaxb/model/Header.java deleted file mode 100644 index f606645..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/Header.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ -package org.openaire.funders.jaxb.model; - -/** - * - * @author dpie - */ -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; - -@XmlRootElement(name = "header") - -public class Header { - @XmlElement(name="query") - private String query; - - @XmlElement(name="locale") - private String locale; - - @XmlElement(name="total") - private String total; - - public String getQuery() { - return query; - } - - public String getLocale() { - return locale; - } - - public String getTotal() { - return total; - } - - - - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/InferenceExtendedBooleanType.java b/src/main/java/org/openaire/funders/jaxb/model/InferenceExtendedBooleanType.java deleted file mode 100644 index 5c6af5c..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/InferenceExtendedBooleanType.java +++ /dev/null @@ -1,144 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - * XML elements of this type are simple booleans, but in cases where - * their values have been inferred by Openaire inference algorithms, the elements - * features some attributes describing the inference algorithm. This way it is easy to - * understand if a value comes from the originally imported data or if it has been - * added later for enrichment. - * - *

Java class for inferenceExtendedBooleanType complex type. - * - *

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

- * <complexType name="inferenceExtendedBooleanType">
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>boolean">
- *       <attGroup ref="{http://namespace.openaire.eu/oaf}optionalInferenceAttrGroup"/>
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "inferenceExtendedBooleanType", propOrder = { - "value" -}) -public class InferenceExtendedBooleanType { - - @XmlValue - protected boolean value; - @XmlAttribute(name = "inferred") - protected Boolean inferred; - @XmlAttribute(name = "inferenceprovenance") - protected String inferenceprovenance; - @XmlAttribute(name = "trust") - protected String trust; - - /** - * Gets the value of the value property. - * - */ - public boolean isValue() { - return value; - } - - /** - * Sets the value of the value property. - * - */ - public void setValue(boolean value) { - this.value = value; - } - - /** - * Gets the value of the inferred property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isInferred() { - return inferred; - } - - /** - * Sets the value of the inferred property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInferred(Boolean value) { - this.inferred = value; - } - - /** - * Gets the value of the inferenceprovenance property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getInferenceprovenance() { - return inferenceprovenance; - } - - /** - * Sets the value of the inferenceprovenance property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setInferenceprovenance(String value) { - this.inferenceprovenance = value; - } - - /** - * Gets the value of the trust property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTrust() { - return trust; - } - - /** - * Sets the value of the trust property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTrust(String value) { - this.trust = value; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/InferenceExtendedStringType.java b/src/main/java/org/openaire/funders/jaxb/model/InferenceExtendedStringType.java deleted file mode 100644 index 8ba965b..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/InferenceExtendedStringType.java +++ /dev/null @@ -1,152 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - * XML elements of this type are simple strings, but in cases where their - * values have been inferred by Openaire inference algorithms, the elements features - * some attributes describing the inference algorithm. This way it is easy to - * understand if a value comes from the originally imported data or if it has been - * added later for enrichment. - * - *

Java class for inferenceExtendedStringType complex type. - * - *

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

- * <complexType name="inferenceExtendedStringType">
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
- *       <attGroup ref="{http://namespace.openaire.eu/oaf}optionalInferenceAttrGroup"/>
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "inferenceExtendedStringType", propOrder = { - "value" -}) -public class InferenceExtendedStringType { - - @XmlValue - protected String value; - @XmlAttribute(name = "inferred") - protected Boolean inferred; - @XmlAttribute(name = "inferenceprovenance") - protected String inferenceprovenance; - @XmlAttribute(name = "trust") - protected String trust; - - /** - * 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 inferred property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isInferred() { - return inferred; - } - - /** - * Sets the value of the inferred property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInferred(Boolean value) { - this.inferred = value; - } - - /** - * Gets the value of the inferenceprovenance property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getInferenceprovenance() { - return inferenceprovenance; - } - - /** - * Sets the value of the inferenceprovenance property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setInferenceprovenance(String value) { - this.inferenceprovenance = value; - } - - /** - * Gets the value of the trust property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTrust() { - return trust; - } - - /** - * Sets the value of the trust property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTrust(String value) { - this.trust = value; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/JAXBExample.java b/src/main/java/org/openaire/funders/jaxb/model/JAXBExample.java deleted file mode 100644 index 8260834..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/JAXBExample.java +++ /dev/null @@ -1,99 +0,0 @@ -package org.openaire.funders.jaxb.model; - -/* - * To change this license header, choose License Headers in Project1 Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ -/** - * - * @author dpie - */ -import java.net.MalformedURLException; -import java.net.URL; -import java.util.ArrayList; -import javax.xml.bind.JAXBException; - -public class JAXBExample { - - public static void main(String[] args) throws MalformedURLException { - - try { - //Unmarshalling: Converting XML content to Java objects - URL url = new URL("https://api.openaire.eu/search/projects?grantID=741839&funder=EC"); - Response response = OpenAIREHandler.unmarshal(url); - Result result = response.getResults().getResult().get(0); - - System.out.println("fdsfds " + response.getHeader().getTotal()); - - Project project = result.getMetadata().getEntity().getProject(); - System.out.println(project); - System.out.println("Funder name " + project.getFundingTreeType().getFunder().getName()); - - //System.out.println(project.getCode()); - //System.out.println(project.getFundingTreeType().getFunder().getJurisdiction()); - //System.out.println("Project Code "+ project.getCode()); -/* - System.out.println("Funder name "+project.getFundingTreeType().getFunder().getName()); - System.out.println("Funder id "+project.getFundingTreeType().getFunder().getId()); - System.out.println("Funder Shortname: "+project.getFundingTreeType().getFunder().getShortname()); - System.out.println("Funding Stream: "+project.getFundingTreeType().getFunding_level1().getParent().getFundingLevel0().getName()); - System.out.println("Funding Stream: "+project.getFundingTreeType().getFunding_level1().getParent().getFundingLevel0().getDescription()); - System.out.println("Funding item name: "+project.getTitle()); - System.out.println("Funding item id: "+project.getCode()); - System.out.println("Funding item acronym: "+ project.getAcronym()); - System.out.println("Funder Jurisdiction: "+project.getFundingTreeType().getFunder().getJurisdiction()); - */ - /* dpie - //System.out.println(results.size()); - //for (int i = 0; i < results.size(); i++) { - Result result = results.getResult(); - //System.out.println("Project1 code: "+result.getMetadata().getEntity().getProject().getCode()); - System.out.println("Funder Name: "+result.getMetadata().getEntity().getProject().getFundingTree().getFunder().getName()); - System.out.println("Funder ID: "+result.getMetadata().getEntity().getProject().getFundingTree().getFunder().getId()); - System.out.println("Funder Shortname: "+result.getMetadata().getEntity().getProject().getFundingTree().getFunder().getShortname()); - - if (result.getMetadata().getEntity().getProject().getFundingTree().getFundinglevel1() != null) { - System.out.println("Funding Stream: "+result.getMetadata().getEntity().getProject().getFundingTree().getFundinglevel1().getParent().getFundinglevel0().getName()); - System.out.println("Funding Stream: "+result.getMetadata().getEntity().getProject().getFundingTree().getFundinglevel1().getParent().getFundinglevel0().getDescription()); - } - System.out.println("Funding item name: "+result.getMetadata().getEntity().getProject().getTitle()); - System.out.println("Funding item id: "+result.getMetadata().getEntity().getProject().getCode()); - System.out.println("Funding item acronym: "+ result.getMetadata().getEntity().getProject().getAcronym()); - System.out.println("Funder Jurisdiction: "+result.getMetadata().getEntity().getProject().getFundingTree().getFunder().getJurisdiction()); -dpie */ - //} - /* - Result result = results.get(0).getResult(); - /*System.out.println(result.getResultHeader().getDriObjectIdentifier()); - System.out.println(result.getResultHeader().getDateOfCollection()); - System.out.println(result.getResultHeader().getDateOfTransformation()); - System.out.println(result.getMetadata().getEntity().getProject().getStartdate()); - System.out.println(result.getMetadata().getEntity().getProject().getCode()); - System.out.println(result.getMetadata().getEntity().getProject().getContractType().getClassid()); - System.out.println(result.getMetadata().getEntity().getProject().getContractType().getClassname()); - System.out.println(result.getMetadata().getEntity().getProject().getContactfullname()); - System.out.println(result.getMetadata().getEntity().getProject().getFundingTree().getFunder().getShortname()); - System.out.println(result.getMetadata().getEntity().getProject().getFundingTree().getFundinglevel1().getId()); - System.out.println(result.getMetadata().getEntity().getProject().getFundingTree().getFundinglevel1().getClass1()); - System.out.println(result.getMetadata().getEntity().getProject().getFundingTree().getFundinglevel1().getParent().getFundinglevel0().getDescription()); - */ - /* - System.out.println(result.getMetadata().getEntity().getProject().getFundingTree().getFunder().getName()); - System.out.println(result.getMetadata().getEntity().getProject().getFundingTree().getFunder().getId()); - System.out.println(result.getMetadata().getEntity().getProject().getFundingTree().getFunder().getShortname()); - System.out.println(result.getMetadata().getEntity().getProject().getFundingTree().getFundinglevel1().getParent().getFundinglevel0().getName()); - System.out.println(result.getMetadata().getEntity().getProject().getFundingTree().getFundinglevel1().getParent().getFundinglevel0().getDescription()); - System.out.println(result.getMetadata().getEntity().getProject().getTitle()); - System.out.println(result.getMetadata().getEntity().getProject().getCode()); - System.out.println(result.getMetadata().getEntity().getProject().getAcronym()); - System.out.println(result.getMetadata().getEntity().getProject().getFundingTree().getFunder().getJurisdiction()); - - - */ - } catch (JAXBException e) { - e.printStackTrace(); - } - - } -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/LabeledIdElementType.java b/src/main/java/org/openaire/funders/jaxb/model/LabeledIdElementType.java deleted file mode 100644 index 62f6787..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/LabeledIdElementType.java +++ /dev/null @@ -1,174 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -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 labeledIdElementType complex type. - * - *

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

- * <complexType name="labeledIdElementType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attGroup ref="{http://namespace.openaire.eu/oaf}optionalInferenceAttrGroup"/>
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
- *       <attribute name="label" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "labeledIdElementType") -public class LabeledIdElementType { - - @XmlAttribute(name = "id", required = true) - @XmlSchemaType(name = "anySimpleType") - protected String id; - @XmlAttribute(name = "label", required = true) - @XmlSchemaType(name = "anySimpleType") - protected String label; - @XmlAttribute(name = "inferred") - protected Boolean inferred; - @XmlAttribute(name = "inferenceprovenance") - protected String inferenceprovenance; - @XmlAttribute(name = "trust") - protected String trust; - - /** - * 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 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 inferred property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isInferred() { - return inferred; - } - - /** - * Sets the value of the inferred property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInferred(Boolean value) { - this.inferred = value; - } - - /** - * Gets the value of the inferenceprovenance property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getInferenceprovenance() { - return inferenceprovenance; - } - - /** - * Sets the value of the inferenceprovenance property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setInferenceprovenance(String value) { - this.inferenceprovenance = value; - } - - /** - * Gets the value of the trust property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTrust() { - return trust; - } - - /** - * Sets the value of the trust property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTrust(String value) { - this.trust = value; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/Metadata.java b/src/main/java/org/openaire/funders/jaxb/model/Metadata.java deleted file mode 100644 index 069c051..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/Metadata.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ -package org.openaire.funders.jaxb.model; - -/** - * - * @author dpie - */ -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; - -@XmlAccessorType(XmlAccessType.FIELD) -public class Metadata { - @XmlElement(name="entity", namespace="http://namespace.openaire.eu/oaf") - private Entity entity; - - public Entity getEntity() { - return entity; - } - - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/NamedFundingLevel.java b/src/main/java/org/openaire/funders/jaxb/model/NamedFundingLevel.java deleted file mode 100644 index 7fd2493..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/NamedFundingLevel.java +++ /dev/null @@ -1,94 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - *

Java class for namedFundingLevel complex type. - * - *

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

- * <complexType name="namedFundingLevel">
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "namedFundingLevel", propOrder = { - "value" -}) -public class NamedFundingLevel { - - @XmlValue - protected String value; - @XmlAttribute(name = "name", required = true) - protected String name; - - /** - * 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 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/src/main/java/org/openaire/funders/jaxb/model/NamedIdElementType.java b/src/main/java/org/openaire/funders/jaxb/model/NamedIdElementType.java deleted file mode 100644 index 596b601..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/NamedIdElementType.java +++ /dev/null @@ -1,174 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -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 namedIdElementType complex type. - * - *

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

- * <complexType name="namedIdElementType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <attGroup ref="{http://namespace.openaire.eu/oaf}optionalInferenceAttrGroup"/>
- *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "namedIdElementType") -public class NamedIdElementType { - - @XmlAttribute(name = "id", required = true) - @XmlSchemaType(name = "anySimpleType") - protected String id; - @XmlAttribute(name = "name", required = true) - @XmlSchemaType(name = "anySimpleType") - protected String name; - @XmlAttribute(name = "inferred") - protected Boolean inferred; - @XmlAttribute(name = "inferenceprovenance") - protected String inferenceprovenance; - @XmlAttribute(name = "trust") - protected String trust; - - /** - * 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 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; - } - - /** - * Gets the value of the inferred property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isInferred() { - return inferred; - } - - /** - * Sets the value of the inferred property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInferred(Boolean value) { - this.inferred = value; - } - - /** - * Gets the value of the inferenceprovenance property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getInferenceprovenance() { - return inferenceprovenance; - } - - /** - * Sets the value of the inferenceprovenance property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setInferenceprovenance(String value) { - this.inferenceprovenance = value; - } - - /** - * Gets the value of the trust property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTrust() { - return trust; - } - - /** - * Sets the value of the trust property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTrust(String value) { - this.trust = value; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/ObjectFactory.java b/src/main/java/org/openaire/funders/jaxb/model/ObjectFactory.java deleted file mode 100644 index a221e3e..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/ObjectFactory.java +++ /dev/null @@ -1,628 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -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 tmp 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 _FundingTreeTypeFundingLevel0_QNAME = new QName("http://namespace.openaire.eu/oaf", "funding_level_0"); - private final static QName _FundingTreeTypeFundingLevel1_QNAME = new QName("http://namespace.openaire.eu/oaf", "funding_level_1"); - private final static QName _FundingTreeTypeFundingLevel2_QNAME = new QName("http://namespace.openaire.eu/oaf", "funding_level_2"); - private final static QName _RelTypeFax_QNAME = new QName("http://namespace.openaire.eu/oaf", "fax"); - private final static QName _RelTypeEmail_QNAME = new QName("http://namespace.openaire.eu/oaf", "email"); - private final static QName _RelTypeOfficialname_QNAME = new QName("http://namespace.openaire.eu/oaf", "officialname"); - private final static QName _RelTypePublisher_QNAME = new QName("http://namespace.openaire.eu/oaf", "publisher"); - private final static QName _RelTypeTo_QNAME = new QName("http://namespace.openaire.eu/oaf", "to"); - private final static QName _RelTypeFullname_QNAME = new QName("http://namespace.openaire.eu/oaf", "fullname"); - private final static QName _RelTypeRanking_QNAME = new QName("http://namespace.openaire.eu/oaf", "ranking"); - private final static QName _RelTypePhone_QNAME = new QName("http://namespace.openaire.eu/oaf", "phone"); - private final static QName _RelTypeContracttype_QNAME = new QName("http://namespace.openaire.eu/oaf", "contracttype"); - private final static QName _RelTypeWebsiteurl_QNAME = new QName("http://namespace.openaire.eu/oaf", "websiteurl"); - private final static QName _RelTypeSimilarity_QNAME = new QName("http://namespace.openaire.eu/oaf", "similarity"); - private final static QName _RelTypeTitle_QNAME = new QName("http://namespace.openaire.eu/oaf", "title"); - private final static QName _RelTypeType_QNAME = new QName("http://namespace.openaire.eu/oaf", "type"); - private final static QName _RelTypeResulttype_QNAME = new QName("http://namespace.openaire.eu/oaf", "resulttype"); - private final static QName _RelTypeAcronym_QNAME = new QName("http://namespace.openaire.eu/oaf", "acronym"); - private final static QName _RelTypeDateofacceptance_QNAME = new QName("http://namespace.openaire.eu/oaf", "dateofacceptance"); - private final static QName _RelTypeLegalshortname_QNAME = new QName("http://namespace.openaire.eu/oaf", "legalshortname"); - private final static QName _RelTypeLegalname_QNAME = new QName("http://namespace.openaire.eu/oaf", "legalname"); - private final static QName _RelTypeDatasourcetype_QNAME = new QName("http://namespace.openaire.eu/oaf", "datasourcetype"); - private final static QName _RelTypeCountry_QNAME = new QName("http://namespace.openaire.eu/oaf", "country"); - private final static QName _RelTypeCode_QNAME = new QName("http://namespace.openaire.eu/oaf", "code"); - private final static QName _RelTypeFunding_QNAME = new QName("http://namespace.openaire.eu/oaf", "funding"); - private final static QName _ProjectOriginalId_QNAME = new QName("http://namespace.openaire.eu/oaf", "originalId"); - private final static QName _ProjectEcsc39_QNAME = new QName("http://namespace.openaire.eu/oaf", "ecsc39"); - private final static QName _ProjectDuration_QNAME = new QName("http://namespace.openaire.eu/oaf", "duration"); - private final static QName _ProjectEnddate_QNAME = new QName("http://namespace.openaire.eu/oaf", "enddate"); - private final static QName _ProjectStartdate_QNAME = new QName("http://namespace.openaire.eu/oaf", "startdate"); - private final static QName _ProjectRels_QNAME = new QName("http://namespace.openaire.eu/oaf", "rels"); - private final static QName _ProjectFundingtree_QNAME = new QName("http://namespace.openaire.eu/oaf", "fundingtree"); - private final static QName _ProjectCollectedfrom_QNAME = new QName("http://namespace.openaire.eu/oaf", "collectedfrom"); - private final static QName _ProjectEcarticle293_QNAME = new QName("http://namespace.openaire.eu/oaf", "ecarticle29_3"); - private final static QName _ProjectPid_QNAME = new QName("http://namespace.openaire.eu/oaf", "pid"); - private final static QName _ProjectKeywords_QNAME = new QName("http://namespace.openaire.eu/oaf", "keywords"); - private final static QName _ProjectCallidentifier_QNAME = new QName("http://namespace.openaire.eu/oaf", "callidentifier"); - private final static QName _ProjectSubjects_QNAME = new QName("http://namespace.openaire.eu/oaf", "subjects"); - private final static QName _ProjectOamandatepublications_QNAME = new QName("http://namespace.openaire.eu/oaf", "oamandatepublications"); - private final static QName _Response_QNAME = new QName("response"); - - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: tmp - * - */ - public ObjectFactory() { - } - - public Response createResponse(){ - return new Response(); - } - - /** - * Create an instance of {@link Project } - * - */ - public Project createProject() { - return new Project(); - } - - /** - * Create an instance of {@link ControlledElementType } - * - */ - public ControlledElementType createControlledElementType() { - return new ControlledElementType(); - } - - /** - * Create an instance of {@link TypedElementType } - * - */ - public TypedElementType createTypedElementType() { - return new TypedElementType(); - } - - /** - * Create an instance of {@link FundingTreeType } - * - */ - public FundingTreeType createFundingTreeType() { - return new FundingTreeType(); - } - - /** - * Create an instance of {@link NamedIdElementType } - * - */ - public NamedIdElementType createNamedIdElementType() { - return new NamedIdElementType(); - } - - /** - * Create an instance of {@link RelsType } - * - */ - public RelsType createRelsType() { - return new RelsType(); - } - - /** - * Create an instance of {@link RelToType } - * - */ - public RelToType createRelToType() { - return new RelToType(); - } - - /** - * Create an instance of {@link FunderFlatType } - * - */ - public FunderFlatType createFunderFlatType() { - return new FunderFlatType(); - } - - /** - * Create an instance of {@link RelType } - * - */ - public RelType createRelType() { - return new RelType(); - } - - /** - * Create an instance of {@link NamedFundingLevel } - * - */ - public NamedFundingLevel createNamedFundingLevel() { - return new NamedFundingLevel(); - } - - /** - * Create an instance of {@link LabeledIdElementType } - * - */ - public LabeledIdElementType createLabeledIdElementType() { - return new LabeledIdElementType(); - } - - /** - * Create an instance of {@link FunderType } - * - */ - public FunderType createFunderType() { - return new FunderType(); - } - - /** - * Create an instance of {@link ExternalreferenceType } - * - */ - public ExternalreferenceType createExternalreferenceType() { - return new ExternalreferenceType(); - } - - /** - * Create an instance of {@link InferenceExtendedStringType } - * - */ - public InferenceExtendedStringType createInferenceExtendedStringType() { - return new InferenceExtendedStringType(); - } - - /** - * Create an instance of {@link FundingFlatType } - * - */ - public FundingFlatType createFundingFlatType() { - return new FundingFlatType(); - } - - /** - * Create an instance of {@link FundingType } - * - */ - public FundingType createFundingType() { - return new FundingType(); - } - - /** - * Create an instance of {@link FundingParentType } - * - */ - public FundingParentType createFundingParentType() { - return new FundingParentType(); - } - - /** - * Create an instance of {@link InferenceExtendedBooleanType } - * - */ - public InferenceExtendedBooleanType createInferenceExtendedBooleanType() { - return new InferenceExtendedBooleanType(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link FundingType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "funding_level_0", scope = FundingTreeType.class) - public JAXBElement createFundingTreeTypeFundingLevel0(FundingType value) { - return new JAXBElement(_FundingTreeTypeFundingLevel0_QNAME, FundingType.class, FundingTreeType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link FundingType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "funding_level_1", scope = FundingTreeType.class) - public JAXBElement createFundingTreeTypeFundingLevel1(FundingType value) { - return new JAXBElement(_FundingTreeTypeFundingLevel1_QNAME, FundingType.class, FundingTreeType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link FundingType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "funding_level_2", scope = FundingTreeType.class) - public JAXBElement createFundingTreeTypeFundingLevel2(FundingType value) { - return new JAXBElement(_FundingTreeTypeFundingLevel2_QNAME, FundingType.class, FundingTreeType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "fax", scope = RelType.class) - public JAXBElement createRelTypeFax(String value) { - return new JAXBElement(_RelTypeFax_QNAME, String.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "email", scope = RelType.class) - public JAXBElement createRelTypeEmail(String value) { - return new JAXBElement(_RelTypeEmail_QNAME, String.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "officialname", scope = RelType.class) - public JAXBElement createRelTypeOfficialname(String value) { - return new JAXBElement(_RelTypeOfficialname_QNAME, String.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "publisher", scope = RelType.class) - public JAXBElement createRelTypePublisher(String value) { - return new JAXBElement(_RelTypePublisher_QNAME, String.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link RelToType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "to", scope = RelType.class) - public JAXBElement createRelTypeTo(RelToType value) { - return new JAXBElement(_RelTypeTo_QNAME, RelToType.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "fullname", scope = RelType.class) - public JAXBElement createRelTypeFullname(String value) { - return new JAXBElement(_RelTypeFullname_QNAME, String.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "ranking", scope = RelType.class) - public JAXBElement createRelTypeRanking(BigInteger value) { - return new JAXBElement(_RelTypeRanking_QNAME, BigInteger.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "phone", scope = RelType.class) - public JAXBElement createRelTypePhone(String value) { - return new JAXBElement(_RelTypePhone_QNAME, String.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ControlledElementType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "contracttype", scope = RelType.class) - public JAXBElement createRelTypeContracttype(ControlledElementType value) { - return new JAXBElement(_RelTypeContracttype_QNAME, ControlledElementType.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "websiteurl", scope = RelType.class) - public JAXBElement createRelTypeWebsiteurl(Object value) { - return new JAXBElement(_RelTypeWebsiteurl_QNAME, Object.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "similarity", scope = RelType.class) - public JAXBElement createRelTypeSimilarity(Double value) { - return new JAXBElement(_RelTypeSimilarity_QNAME, Double.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "title", scope = RelType.class) - public JAXBElement createRelTypeTitle(String value) { - return new JAXBElement(_RelTypeTitle_QNAME, String.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "type", scope = RelType.class) - public JAXBElement createRelTypeType(String value) { - return new JAXBElement(_RelTypeType_QNAME, String.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "resulttype", scope = RelType.class) - public JAXBElement createRelTypeResulttype(String value) { - return new JAXBElement(_RelTypeResulttype_QNAME, String.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "acronym", scope = RelType.class) - public JAXBElement createRelTypeAcronym(String value) { - return new JAXBElement(_RelTypeAcronym_QNAME, String.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "dateofacceptance", scope = RelType.class) - public JAXBElement createRelTypeDateofacceptance(String value) { - return new JAXBElement(_RelTypeDateofacceptance_QNAME, String.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "legalshortname", scope = RelType.class) - public JAXBElement createRelTypeLegalshortname(String value) { - return new JAXBElement(_RelTypeLegalshortname_QNAME, String.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "legalname", scope = RelType.class) - public JAXBElement createRelTypeLegalname(String value) { - return new JAXBElement(_RelTypeLegalname_QNAME, String.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ControlledElementType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "datasourcetype", scope = RelType.class) - public JAXBElement createRelTypeDatasourcetype(ControlledElementType value) { - return new JAXBElement(_RelTypeDatasourcetype_QNAME, ControlledElementType.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ControlledElementType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "country", scope = RelType.class) - public JAXBElement createRelTypeCountry(ControlledElementType value) { - return new JAXBElement(_RelTypeCountry_QNAME, ControlledElementType.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "code", scope = RelType.class) - public JAXBElement createRelTypeCode(String value) { - return new JAXBElement(_RelTypeCode_QNAME, String.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link FundingFlatType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "funding", scope = RelType.class) - public JAXBElement createRelTypeFunding(FundingFlatType value) { - return new JAXBElement(_RelTypeFunding_QNAME, FundingFlatType.class, RelType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "originalId", scope = Project.class) - public JAXBElement createProjectOriginalId(String value) { - return new JAXBElement(_ProjectOriginalId_QNAME, String.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ControlledElementType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "contracttype", scope = Project.class) - public JAXBElement createProjectContracttype(ControlledElementType value) { - return new JAXBElement(_RelTypeContracttype_QNAME, ControlledElementType.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "websiteurl", scope = Project.class) - public JAXBElement createProjectWebsiteurl(String value) { - return new JAXBElement(_RelTypeWebsiteurl_QNAME, String.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "ecsc39", scope = Project.class) - public JAXBElement createProjectEcsc39(String value) { - return new JAXBElement(_ProjectEcsc39_QNAME, String.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "duration", scope = Project.class) - public JAXBElement createProjectDuration(String value) { - return new JAXBElement(_ProjectDuration_QNAME, String.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "enddate", scope = Project.class) - public JAXBElement createProjectEnddate(String value) { - return new JAXBElement(_ProjectEnddate_QNAME, String.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "title", scope = Project.class) - public JAXBElement createProjectTitle(String value) { - return new JAXBElement(_RelTypeTitle_QNAME, String.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "startdate", scope = Project.class) - public JAXBElement createProjectStartdate(String value) { - return new JAXBElement(_ProjectStartdate_QNAME, String.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link RelsType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "rels", scope = Project.class) - public JAXBElement createProjectRels(RelsType value) { - return new JAXBElement(_ProjectRels_QNAME, RelsType.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link FundingTreeType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "fundingtree", scope = Project.class) - public JAXBElement createProjectFundingtree(FundingTreeType value) { - return new JAXBElement(_ProjectFundingtree_QNAME, FundingTreeType.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "collectedfrom", scope = Project.class) - public JAXBElement createProjectCollectedfrom(NamedIdElementType value) { - return new JAXBElement(_ProjectCollectedfrom_QNAME, NamedIdElementType.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "ecarticle29_3", scope = Project.class) - public JAXBElement createProjectEcarticle293(String value) { - return new JAXBElement(_ProjectEcarticle293_QNAME, String.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link TypedElementType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "pid", scope = Project.class) - public JAXBElement createProjectPid(TypedElementType value) { - return new JAXBElement(_ProjectPid_QNAME, TypedElementType.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "acronym", scope = Project.class) - public JAXBElement createProjectAcronym(String value) { - return new JAXBElement(_RelTypeAcronym_QNAME, String.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "keywords", scope = Project.class) - public JAXBElement createProjectKeywords(String value) { - return new JAXBElement(_ProjectKeywords_QNAME, String.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "callidentifier", scope = Project.class) - public JAXBElement createProjectCallidentifier(String value) { - return new JAXBElement(_ProjectCallidentifier_QNAME, String.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link TypedElementType }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "subjects", scope = Project.class) - public JAXBElement createProjectSubjects(TypedElementType value) { - return new JAXBElement(_ProjectSubjects_QNAME, TypedElementType.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "oamandatepublications", scope = Project.class) - public JAXBElement createProjectOamandatepublications(Boolean value) { - return new JAXBElement(_ProjectOamandatepublications_QNAME, Boolean.class, Project.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} - * - */ - @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "code", scope = Project.class) - public JAXBElement createProjectCode(String value) { - return new JAXBElement(_RelTypeCode_QNAME, String.class, Project.class, value); - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/OpenAIREHandler.java b/src/main/java/org/openaire/funders/jaxb/model/OpenAIREHandler.java deleted file mode 100644 index 8d65718..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/OpenAIREHandler.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ -package org.openaire.funders.jaxb.model; - -/** - * - * @author dpie - */ -import java.io.BufferedWriter; -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; -import java.io.InputStream; -import java.net.URL; -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; -import javax.xml.bind.Unmarshaller; - -public class OpenAIREHandler { - - // Export: Marshalling - public static void marshal(Response response, File selectedFile) - throws IOException, JAXBException { - JAXBContext context; - BufferedWriter writer = null; - writer = new BufferedWriter(new FileWriter(selectedFile)); - context = JAXBContext.newInstance(Response.class); - Marshaller m = context.createMarshaller(); - m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); - m.marshal(response, writer); - writer.close(); - } - - // Import: Unmarshalling - public static Response unmarshal(URL importFile) throws JAXBException { - Response response = null; - JAXBContext context; - - context = JAXBContext.newInstance(Response.class); - Unmarshaller um = context.createUnmarshaller(); - response = (Response) um.unmarshal(importFile); - - return response; - } - - /** - * Unmarshal and returns a Response from an InputStream - * @param iStream - * @return - * @throws JAXBException - */ - public static Response unmarshal(InputStream iStream) throws JAXBException { - Response response = null; - JAXBContext context; - - context = JAXBContext.newInstance(Response.class); - Unmarshaller um = context.createUnmarshaller(); - response = (Response) um.unmarshal(iStream); - - return response; - } -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/Project.java b/src/main/java/org/openaire/funders/jaxb/model/Project.java deleted file mode 100644 index 3b6836a..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/Project.java +++ /dev/null @@ -1,157 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -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 maxOccurs="unbounded">
- *         <element name="code" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="acronym" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="callidentifier" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="contracttype" type="{http://namespace.openaire.eu/oaf}controlledElementType"/>
- *         <element name="keywords" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="websiteurl" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="startdate" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="enddate" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="duration" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="ecsc39" type="{http://namespace.openaire.eu/oaf}boolOrEmptyType"/>
- *         <element name="oamandatepublications" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- *         <element name="ecarticle29_3" type="{http://namespace.openaire.eu/oaf}boolOrEmptyType"/>
- *         <element name="subjects" type="{http://namespace.openaire.eu/oaf}typedElementType"/>
- *         <element name="fundingtree" type="{http://namespace.openaire.eu/oaf}fundingTreeType"/>
- *         <element name="originalId" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *         <element name="collectedfrom" type="{http://namespace.openaire.eu/oaf}namedIdElementType"/>
- *         <element name="pid" type="{http://namespace.openaire.eu/oaf}typedElementType"/>
- *         <element name="rels" type="{http://namespace.openaire.eu/oaf}relsType"/>
- *       </choice>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "", propOrder = { - "acronym","code","title", "fundingtree","codeOrTitleOrAcronym" -}) -@XmlRootElement(name = "project") -public class Project { - - @XmlElementRefs({ - @XmlElementRef(name = "code", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "keywords", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "contracttype", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "duration", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "pid", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "enddate", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "oamandatepublications", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "acronym", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "callidentifier", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "startdate", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "subjects", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "title", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "rels", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "originalId", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "ecsc39", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "ecarticle29_3", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "fundingtree", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "websiteurl", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "collectedfrom", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false) - }) - protected List> codeOrTitleOrAcronym; - - /** - * Gets the value of the codeOrTitleOrAcronym 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 codeOrTitleOrAcronym property. - * - *

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

-     *    getCodeOrTitleOrAcronym().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 ControlledElementType }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link TypedElementType }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link TypedElementType }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link RelsType }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link FundingTreeType }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} - * - * - */ - public List> getCodeOrTitleOrAcronym() { - if (codeOrTitleOrAcronym == null) { - codeOrTitleOrAcronym = new ArrayList>(); - } - return this.codeOrTitleOrAcronym; - } - private String acronym; - public String getAcronym() { - return acronym; - } - - private String code; - - public String getCode() { - return code; - } - - private String title; - - public String getTitle() { - return title; - } - private FundingTreeType fundingtree; - - public FundingTreeType getFundingTreeType() { - return fundingtree; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/RelToType.java b/src/main/java/org/openaire/funders/jaxb/model/RelToType.java deleted file mode 100644 index b29e7ba..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/RelToType.java +++ /dev/null @@ -1,151 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.XmlValue; - - -/** - * Information about the related entity. - *

- * <?xml version="1.0" encoding="UTF-8"?><p xmlns="http://namespace.openaire.eu/oaf" xmlns:xs="http://www.w3.org/2001/XMLSchema">The semantics of the
- * 					relationships is expressed by the attributes class and scheme. </p>
- * 
- * - * - * - *
- * <?xml version="1.0" encoding="UTF-8"?><p xmlns="http://namespace.openaire.eu/oaf" xmlns:xs="http://www.w3.org/2001/XMLSchema">Allowed relationships are: <table><tr><th>Entity types</th><th>Name of relationships</th><th>Inverse
- * 								of</th><th>Simmetric</th></tr><tr><td>Project --
- * 								Person</td><td>hasContact</td><td>isContact</td><td>no</td></tr><tr><td>Project --
- * 								Result</td><td>produces</td><td>isProducedBy</td><td>no</td></tr><tr><td>Project --
- * 								Organization</td><td>hasParticipant</td><td>isParticipant</td><td>no</td></tr><tr><td>Person --
- * 								Project</td><td>isContact</td><td>hasContact</td><td>no</td></tr><tr><td>Person --
- * 								Result</td><td>isAuthorOf</td><td>hasAuthor</td><td>no</td></tr><tr><td>Person --
- * 							Person</td><td>isCoauthorOf</td><td>--</td><td>yes</td></tr><tr><td>Result --
- * 								Person</td><td>hasAuthor</td><td>isAuthorOf</td><td>no</td></tr><tr><td>Result --
- * 								Project</td><td>isProducedBy</td><td>produces</td><td>no</td></tr><tr><td>Result --
- * 							Result</td><td>isRelatedTo</td><td>--</td><td>yes</td></tr><tr><td>Result --
- * 								Result</td><td>hasAmongTopNSimilarDocuments</td><td>isAmongTopNSimilarDocuments</td><td>no</td></tr><tr><td>Result --
- * 								Result</td><td>isAmongTopNSimilarDocuments</td><td>hasAmongTopNSimilarDocuments</td><td>no</td></tr><tr><td>Organization --
- * 								Datasource</td><td>isProvidedBy</td><td>provides</td><td>no</td></tr><tr><td>Organization --
- * 								Project</td><td>isParticpant</td><td>hasParticipant</td><td>no</td></tr><tr><td>Datasource --
- * 								Organization</td><td>provides</td><td>isProvidedBy</td><td>no</td></tr>
- * 					</table></p>
- * 
- * - * - * - *

Java class for relToType complex type. - * - *

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

- * <complexType name="relToType">
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
- *       <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *       <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "relToType", propOrder = { - "value" -}) -public class RelToType { - - @XmlValue - protected String value; - @XmlAttribute(name = "class", required = true) - protected String clazz; - @XmlAttribute(name = "type", required = true) - protected String type; - - /** - * 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 clazz property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getClazz() { - return clazz; - } - - /** - * Sets the value of the clazz property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setClazz(String value) { - this.clazz = 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/src/main/java/org/openaire/funders/jaxb/model/RelType.java b/src/main/java/org/openaire/funders/jaxb/model/RelType.java deleted file mode 100644 index eed4056..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/RelType.java +++ /dev/null @@ -1,242 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -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.XmlType; - - -/** - *

Java class for relType complex type. - * - *

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

- * <complexType name="relType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <choice maxOccurs="unbounded">
- *           <element name="to" type="{http://namespace.openaire.eu/oaf}relToType"/>
- *           <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
- *           <element name="websiteurl" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
- *           <choice>
- *             <group ref="{http://namespace.openaire.eu/oaf}relPersonGroup"/>
- *             <group ref="{http://namespace.openaire.eu/oaf}relDataSourceGroup"/>
- *             <group ref="{http://namespace.openaire.eu/oaf}relResultGroup"/>
- *             <group ref="{http://namespace.openaire.eu/oaf}relProjectGroup"/>
- *             <group ref="{http://namespace.openaire.eu/oaf}relOrganizationGroup"/>
- *             <group ref="{http://namespace.openaire.eu/oaf}fundingGroup"/>
- *           </choice>
- *         </choice>
- *       </sequence>
- *       <attGroup ref="{http://namespace.openaire.eu/oaf}optionalInferenceAttrGroup"/>
- *       <attribute name="provenanceaction" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "relType", propOrder = { - "toOrTitleOrWebsiteurl" -}) -public class RelType { - - @XmlElementRefs({ - @XmlElementRef(name = "publisher", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "datasourcetype", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "title", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "contracttype", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "to", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "email", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "country", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "dateofacceptance", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "acronym", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "ranking", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "websiteurl", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "fax", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "funding", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "legalname", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "legalshortname", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "type", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "similarity", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "fullname", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "phone", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "officialname", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "code", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), - @XmlElementRef(name = "resulttype", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false) - }) - protected List> toOrTitleOrWebsiteurl; - @XmlAttribute(name = "provenanceaction") - protected String provenanceaction; - @XmlAttribute(name = "inferred") - protected Boolean inferred; - @XmlAttribute(name = "inferenceprovenance") - protected String inferenceprovenance; - @XmlAttribute(name = "trust") - protected String trust; - - /** - * Gets the value of the toOrTitleOrWebsiteurl 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 toOrTitleOrWebsiteurl property. - * - *

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

-     *    getToOrTitleOrWebsiteurl().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link ControlledElementType }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link ControlledElementType }{@code >} - * {@link JAXBElement }{@code <}{@link RelToType }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link ControlledElementType }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link BigInteger }{@code >} - * {@link JAXBElement }{@code <}{@link Object }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link FundingFlatType }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link Double }{@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 >} - * - * - */ - public List> getToOrTitleOrWebsiteurl() { - if (toOrTitleOrWebsiteurl == null) { - toOrTitleOrWebsiteurl = new ArrayList>(); - } - return this.toOrTitleOrWebsiteurl; - } - - /** - * Gets the value of the provenanceaction property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getProvenanceaction() { - return provenanceaction; - } - - /** - * Sets the value of the provenanceaction property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setProvenanceaction(String value) { - this.provenanceaction = value; - } - - /** - * Gets the value of the inferred property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isInferred() { - return inferred; - } - - /** - * Sets the value of the inferred property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInferred(Boolean value) { - this.inferred = value; - } - - /** - * Gets the value of the inferenceprovenance property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getInferenceprovenance() { - return inferenceprovenance; - } - - /** - * Sets the value of the inferenceprovenance property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setInferenceprovenance(String value) { - this.inferenceprovenance = value; - } - - /** - * Gets the value of the trust property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTrust() { - return trust; - } - - /** - * Sets the value of the trust property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTrust(String value) { - this.trust = value; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/RelsType.java b/src/main/java/org/openaire/funders/jaxb/model/RelsType.java deleted file mode 100644 index dee42f0..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/RelsType.java +++ /dev/null @@ -1,76 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -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.XmlType; - - -/** - * Relationships to other entities. - * - *

Java class for relsType complex type. - * - *

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

- * <complexType name="relsType">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <choice maxOccurs="unbounded" minOccurs="0">
- *         <element name="rel" type="{http://namespace.openaire.eu/oaf}relType" minOccurs="0"/>
- *       </choice>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "relsType", propOrder = { - "rel" -}) -public class RelsType { - - protected List rel; - - /** - * Gets the value of the rel 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 rel property. - * - *

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

-     *    getRel().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link RelType } - * - * - */ - public List getRel() { - if (rel == null) { - rel = new ArrayList(); - } - return this.rel; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/Response.java b/src/main/java/org/openaire/funders/jaxb/model/Response.java deleted file mode 100644 index c206814..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/Response.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ -package org.openaire.funders.jaxb.model; - -/** - * - * @author dpie - */ -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.XmlElementWrapper; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - -@XmlAccessorType(XmlAccessType.FIELD) -@XmlRootElement(name = "response") - - -public class Response { - - @XmlElement(name = "results") - private Results results; - - public Results getResults() { - return results; - } - - public void setResults(Results results) { - this.results = results; - } - @XmlElement(name = "header") - private Header header; - - public Header getHeader() { - return header; - } - - public void setHeader(Header header) { - this.header = header; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/Result.java b/src/main/java/org/openaire/funders/jaxb/model/Result.java deleted file mode 100644 index d5da74d..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/Result.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ -package org.openaire.funders.jaxb.model; - -/** - * - * @author dpie - */ -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; - -@XmlRootElement(name = "result") - -public class Result { - @XmlElement(name="header") - private ResultHeader resultHeader; - - private Metadata metadata; - - public Metadata getMetadata() { - return metadata; - } - - public void setMetadata(Metadata metadata) { - this.metadata = metadata; - } - - - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/ResultHeader.java b/src/main/java/org/openaire/funders/jaxb/model/ResultHeader.java deleted file mode 100644 index 5924b5d..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/ResultHeader.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ -package org.openaire.funders.jaxb.model; - -/** - * - * @author dpie - */ -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.*; - -@XmlType -public class ResultHeader { - - @XmlElement(name="objIdentifier", namespace="http://www.driver-repository.eu/namespace/dri") - private String driObjectIdentifier; - @XmlElement(name="dateOfCollection", namespace="http://www.driver-repository.eu/namespace/dri") - private String dateOfCollection; - @XmlElement(name="dateOfTransformation", namespace="http://www.driver-repository.eu/namespace/dri") - private String dateOfTransformation; - - - public String getDriObjectIdentifier() { - return driObjectIdentifier; - } - - public String getDateOfCollection() { - return dateOfCollection; - } - - public String getDateOfTransformation() { - return dateOfTransformation; - } - - - - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/Results.java b/src/main/java/org/openaire/funders/jaxb/model/Results.java deleted file mode 100644 index a1878ce..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/Results.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * To change this license header, choose License Headers in Project Properties. - * To change this template file, choose Tools | Templates - * and open the template in the editor. - */ -package org.openaire.funders.jaxb.model; - -/** - * - * @author dpie - */ -import java.util.ArrayList; -import java.util.List; - -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - -@XmlType -public class Results { - - private List result; - - public List getResult() { - if (result == null) { - result = new ArrayList(); - } - return result; - } - - public void setResult(List result) { - this.getResult().addAll(result); - } - - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/TypedElementType.java b/src/main/java/org/openaire/funders/jaxb/model/TypedElementType.java deleted file mode 100644 index dc776a7..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/TypedElementType.java +++ /dev/null @@ -1,175 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - - -package org.openaire.funders.jaxb.model; - -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 typedElementType complex type. - * - *

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

- * <complexType name="typedElementType">
- *   <simpleContent>
- *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
- *       <attGroup ref="{http://namespace.openaire.eu/oaf}optionalInferenceAttrGroup"/>
- *       <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
- *     </extension>
- *   </simpleContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "typedElementType", propOrder = { - "value" -}) -public class TypedElementType { - - @XmlValue - protected String value; - @XmlAttribute(name = "type", required = true) - @XmlSchemaType(name = "anySimpleType") - protected String type; - @XmlAttribute(name = "inferred") - protected Boolean inferred; - @XmlAttribute(name = "inferenceprovenance") - protected String inferenceprovenance; - @XmlAttribute(name = "trust") - protected String trust; - - /** - * 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 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 inferred property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isInferred() { - return inferred; - } - - /** - * Sets the value of the inferred property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setInferred(Boolean value) { - this.inferred = value; - } - - /** - * Gets the value of the inferenceprovenance property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getInferenceprovenance() { - return inferenceprovenance; - } - - /** - * Sets the value of the inferenceprovenance property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setInferenceprovenance(String value) { - this.inferenceprovenance = value; - } - - /** - * Gets the value of the trust property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTrust() { - return trust; - } - - /** - * Sets the value of the trust property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTrust(String value) { - this.trust = value; - } - -} diff --git a/src/main/java/org/openaire/funders/jaxb/model/package-info.java b/src/main/java/org/openaire/funders/jaxb/model/package-info.java deleted file mode 100644 index 2834d13..0000000 --- a/src/main/java/org/openaire/funders/jaxb/model/package-info.java +++ /dev/null @@ -1,20 +0,0 @@ -// -// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 -// See http://java.sun.com/xml/jaxb -// Any modifications to this file will be lost upon recompilation of the source schema. -// Generated on: 2020.01.23 at 12:54:05 PM EET -// - -//@javax.xml.bind.annotation.XmlSchema(namespace = "http://namespace.openaire.eu/oaf", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) -@XmlSchema( - xmlns = { - @XmlNs(prefix = "", namespaceURI = "http://namespace.openaire.eu/oaf"), - @XmlNs(prefix = "", namespaceURI = "") - } -) - -package org.openaire.funders.jaxb.model; - -import javax.xml.bind.annotation.XmlNs; -import javax.xml.bind.annotation.XmlSchema; - From 93a777806aac3f19407f30e59627784912ef2d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gra=C3=A7a?= Date: Tue, 27 Jul 2021 16:13:14 +0100 Subject: [PATCH 04/11] new model based on jaxb extraction --- .../openaire/oaf/model/base/CategoryType.java | 79 + .../oaf/model/base/CitationsType.java | 366 ++++ .../openaire/oaf/model/base/ConceptType.java | 79 + .../openaire/oaf/model/base/ContextType.java | 265 +++ .../openaire/oaf/model/base/DataInfoType.java | 224 ++ .../openaire/oaf/model/base/Datasource.java | 134 ++ .../eu/openaire/oaf/model/base/Entity.java | 156 ++ .../oaf/model/base/ExternalreferenceType.java | 336 +++ .../eu/openaire/oaf/model/base/FieldType.java | 253 +++ .../oaf/model/base/FunderFlatType.java | 179 ++ .../openaire/oaf/model/base/FunderType.java | 154 ++ .../oaf/model/base/FundingFlatType.java | 173 ++ .../oaf/model/base/FundingParentType.java | 101 + .../oaf/model/base/FundingTreeType.java | 120 ++ .../openaire/oaf/model/base/FundingType.java | 181 ++ .../openaire/oaf/model/base/InstanceType.java | 144 ++ .../oaf/model/base/InstancesType.java | 111 + .../openaire/oaf/model/base/JournalType.java | 267 +++ .../oaf/model/base/LabeledIdElementType.java | 104 + .../oaf/model/base/NamedFundingLevel.java | 98 + .../oaf/model/base/NamedIdElementType.java | 281 +++ .../oaf/model/base/ObjectFactory.java | 1862 +++++++++++++++++ .../openaire/oaf/model/base/Organization.java | 110 + .../eu/openaire/oaf/model/base/Project.java | 152 ++ .../oaf/model/base/QualifierType.java | 146 ++ .../eu/openaire/oaf/model/base/RelToType.java | 131 ++ .../eu/openaire/oaf/model/base/RelType.java | 317 +++ .../eu/openaire/oaf/model/base/RelsType.java | 79 + .../eu/openaire/oaf/model/base/Result.java | 348 +++ .../base/StructuredPropertyElementType.java | 253 +++ .../oaf/model/base/WebresourceType.java | 72 + .../openaire/oaf/model/base/package-info.java | 9 + 32 files changed, 7284 insertions(+) create mode 100644 src/main/java/eu/openaire/oaf/model/base/CategoryType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/CitationsType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/ConceptType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/ContextType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/DataInfoType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/Datasource.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/Entity.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/ExternalreferenceType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/FieldType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/FunderFlatType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/FunderType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/FundingFlatType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/FundingParentType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/FundingTreeType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/FundingType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/InstanceType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/InstancesType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/JournalType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/LabeledIdElementType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/NamedFundingLevel.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/NamedIdElementType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/ObjectFactory.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/Organization.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/Project.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/QualifierType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/RelToType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/RelType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/RelsType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/Result.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/StructuredPropertyElementType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/WebresourceType.java create mode 100644 src/main/java/eu/openaire/oaf/model/base/package-info.java diff --git a/src/main/java/eu/openaire/oaf/model/base/CategoryType.java b/src/main/java/eu/openaire/oaf/model/base/CategoryType.java new file mode 100644 index 0000000..dce7486 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/CategoryType.java @@ -0,0 +1,79 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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.XmlType; + + +/** + *

Java class for categoryType complex type. + * + *

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

+ * <complexType name="categoryType">
+ *   <complexContent>
+ *     <extension base="{http://namespace.openaire.eu/oaf}labeledIdElementType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="concept" type="{http://namespace.openaire.eu/oaf}conceptType"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "categoryType", propOrder = { + "concept" +}) +public class CategoryType + extends LabeledIdElementType + implements Serializable +{ + + private final static long serialVersionUID = 1L; + protected List concept; + + /** + * Gets the value of the concept 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 concept property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link ConceptType } + * + * + */ + public List getConcept() { + if (concept == null) { + concept = new ArrayList(); + } + return this.concept; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/CitationsType.java b/src/main/java/eu/openaire/oaf/model/base/CitationsType.java new file mode 100644 index 0000000..9f730d5 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/CitationsType.java @@ -0,0 +1,366 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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 citationsType complex type. + * + *

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

+ * <complexType name="citationsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="citation" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="rawText" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
+ *                   <element name="id" maxOccurs="unbounded" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *                           <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *                           <attribute name="confidenceLevel" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="provenance" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="trust" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "citationsType", propOrder = { + "citation" +}) +public class CitationsType implements Serializable +{ + + private final static long serialVersionUID = 1L; + protected List citation; + @XmlAttribute(name = "provenance") + protected String provenance; + @XmlAttribute(name = "trust") + protected String trust; + + /** + * Gets the value of the citation 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 citation property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CitationsType.Citation } + * + * + */ + public List getCitation() { + if (citation == null) { + citation = new ArrayList(); + } + return this.citation; + } + + /** + * Gets the value of the provenance property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProvenance() { + return provenance; + } + + /** + * Sets the value of the provenance property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProvenance(String value) { + this.provenance = value; + } + + /** + * Gets the value of the trust property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrust() { + return trust; + } + + /** + * Sets the value of the trust property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrust(String value) { + this.trust = value; + } + + + /** + *

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="rawText" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
+     *         <element name="id" maxOccurs="unbounded" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+     *                 <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+     *                 <attribute name="confidenceLevel" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "rawText", + "id" + }) + public static class Citation + implements Serializable + { + + private final static long serialVersionUID = 1L; + @XmlElement(required = true) + protected Object rawText; + protected List id; + + /** + * Gets the value of the rawText property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getRawText() { + return rawText; + } + + /** + * Sets the value of the rawText property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setRawText(Object value) { + this.rawText = value; + } + + /** + * Gets the value of the id 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 id property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CitationsType.Citation.Id } + * + * + */ + public List getId() { + if (id == null) { + id = new ArrayList(); + } + return this.id; + } + + + /** + *

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">
+         *       <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+         *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+         *       <attribute name="confidenceLevel" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Id + implements Serializable + { + + private final static long serialVersionUID = 1L; + @XmlAttribute(name = "value") + @XmlSchemaType(name = "anySimpleType") + protected String value; + @XmlAttribute(name = "type") + @XmlSchemaType(name = "anySimpleType") + protected String type; + @XmlAttribute(name = "confidenceLevel") + @XmlSchemaType(name = "anySimpleType") + protected String confidenceLevel; + + /** + * 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 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 confidenceLevel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getConfidenceLevel() { + return confidenceLevel; + } + + /** + * Sets the value of the confidenceLevel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setConfidenceLevel(String value) { + this.confidenceLevel = value; + } + + } + + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/ConceptType.java b/src/main/java/eu/openaire/oaf/model/base/ConceptType.java new file mode 100644 index 0000000..5607df1 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/ConceptType.java @@ -0,0 +1,79 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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.XmlType; + + +/** + *

Java class for conceptType complex type. + * + *

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

+ * <complexType name="conceptType">
+ *   <complexContent>
+ *     <extension base="{http://namespace.openaire.eu/oaf}labeledIdElementType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="concept" type="{http://namespace.openaire.eu/oaf}conceptType"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "conceptType", propOrder = { + "concept" +}) +public class ConceptType + extends LabeledIdElementType + implements Serializable +{ + + private final static long serialVersionUID = 1L; + protected List concept; + + /** + * Gets the value of the concept 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 concept property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link ConceptType } + * + * + */ + public List getConcept() { + if (concept == null) { + concept = new ArrayList(); + } + return this.concept; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/ContextType.java b/src/main/java/eu/openaire/oaf/model/base/ContextType.java new file mode 100644 index 0000000..dfd6d06 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/ContextType.java @@ -0,0 +1,265 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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 contextType complex type. + * + *

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

+ * <complexType name="contextType">
+ *   <complexContent>
+ *     <extension base="{http://namespace.openaire.eu/oaf}labeledIdElementType">
+ *       <sequence maxOccurs="unbounded">
+ *         <element name="category" type="{http://namespace.openaire.eu/oaf}categoryType"/>
+ *       </sequence>
+ *       <attGroup ref="{http://namespace.openaire.eu/oaf}dataInfoAttributeGroup"/>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "contextType", propOrder = { + "category" +}) +public class ContextType + extends LabeledIdElementType + implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlElement(required = true) + protected List category; + @XmlAttribute(name = "inferred") + protected Boolean inferred; + @XmlAttribute(name = "trust") + protected String trust; + @XmlAttribute(name = "inferenceprovenance") + protected String inferenceprovenance; + @XmlAttribute(name = "classid", required = true) + protected String classid; + @XmlAttribute(name = "classname", required = true) + protected String classname; + @XmlAttribute(name = "schemeid", required = true) + protected String schemeid; + @XmlAttribute(name = "schemename", required = true) + protected String schemename; + + /** + * Gets the value of the category 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 category property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link CategoryType } + * + * + */ + public List getCategory() { + if (category == null) { + category = new ArrayList(); + } + return this.category; + } + + /** + * Gets the value of the inferred property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isInferred() { + return inferred; + } + + /** + * Sets the value of the inferred property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInferred(Boolean value) { + this.inferred = value; + } + + /** + * Gets the value of the trust property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrust() { + return trust; + } + + /** + * Sets the value of the trust property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrust(String value) { + this.trust = value; + } + + /** + * Gets the value of the inferenceprovenance property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInferenceprovenance() { + return inferenceprovenance; + } + + /** + * Sets the value of the inferenceprovenance property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInferenceprovenance(String value) { + this.inferenceprovenance = value; + } + + /** + * Gets the value of the classid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassid() { + return classid; + } + + /** + * Sets the value of the classid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassid(String value) { + this.classid = value; + } + + /** + * Gets the value of the classname property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassname() { + return classname; + } + + /** + * Sets the value of the classname property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassname(String value) { + this.classname = value; + } + + /** + * Gets the value of the schemeid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemeid() { + return schemeid; + } + + /** + * Sets the value of the schemeid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemeid(String value) { + this.schemeid = value; + } + + /** + * Gets the value of the schemename property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemename() { + return schemename; + } + + /** + * Sets the value of the schemename property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemename(String value) { + this.schemename = value; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/DataInfoType.java b/src/main/java/eu/openaire/oaf/model/base/DataInfoType.java new file mode 100644 index 0000000..2105f88 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/DataInfoType.java @@ -0,0 +1,224 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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 dataInfoType complex type. + * + *

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

+ * <complexType name="dataInfoType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{http://namespace.openaire.eu/oaf}dataInfoAttributeGroup"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "dataInfoType") +public class DataInfoType implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlAttribute(name = "inferred") + protected Boolean inferred; + @XmlAttribute(name = "trust") + protected String trust; + @XmlAttribute(name = "inferenceprovenance") + protected String inferenceprovenance; + @XmlAttribute(name = "classid", required = true) + protected String classid; + @XmlAttribute(name = "classname", required = true) + protected String classname; + @XmlAttribute(name = "schemeid", required = true) + protected String schemeid; + @XmlAttribute(name = "schemename", required = true) + protected String schemename; + + /** + * Gets the value of the inferred property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isInferred() { + return inferred; + } + + /** + * Sets the value of the inferred property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInferred(Boolean value) { + this.inferred = value; + } + + /** + * Gets the value of the trust property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrust() { + return trust; + } + + /** + * Sets the value of the trust property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrust(String value) { + this.trust = value; + } + + /** + * Gets the value of the inferenceprovenance property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInferenceprovenance() { + return inferenceprovenance; + } + + /** + * Sets the value of the inferenceprovenance property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInferenceprovenance(String value) { + this.inferenceprovenance = value; + } + + /** + * Gets the value of the classid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassid() { + return classid; + } + + /** + * Sets the value of the classid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassid(String value) { + this.classid = value; + } + + /** + * Gets the value of the classname property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassname() { + return classname; + } + + /** + * Sets the value of the classname property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassname(String value) { + this.classname = value; + } + + /** + * Gets the value of the schemeid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemeid() { + return schemeid; + } + + /** + * Sets the value of the schemeid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemeid(String value) { + this.schemeid = value; + } + + /** + * Gets the value of the schemename property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemename() { + return schemename; + } + + /** + * Sets the value of the schemename property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemename(String value) { + this.schemename = value; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/Datasource.java b/src/main/java/eu/openaire/oaf/model/base/Datasource.java new file mode 100644 index 0000000..4c27589 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/Datasource.java @@ -0,0 +1,134 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +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.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 maxOccurs="unbounded">
+ *         <element name="namespaceprefix" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="officialname" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="englishname" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="websiteurl" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="logourl" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="contactemail" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="datasourcetype" type="{http://namespace.openaire.eu/oaf}qualifierType"/>
+ *         <element name="openairecompatibility" type="{http://namespace.openaire.eu/oaf}qualifierType"/>
+ *         <element name="dateofvalidation" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="latitude" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="longitude" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="subjects" type="{http://namespace.openaire.eu/oaf}structuredPropertyElementType"/>
+ *         <element name="originalId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="collectedfrom" type="{http://namespace.openaire.eu/oaf}namedIdElementType"/>
+ *         <element name="pid" type="{http://namespace.openaire.eu/oaf}structuredPropertyElementType"/>
+ *         <element name="rels" type="{http://namespace.openaire.eu/oaf}relsType"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "namespaceprefixOrOfficialnameOrEnglishname" +}) +@XmlRootElement(name = "datasource") +public class Datasource + implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlElementRefs({ + @XmlElementRef(name = "namespaceprefix", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "officialname", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "englishname", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "websiteurl", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "logourl", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "contactemail", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "datasourcetype", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "openairecompatibility", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "dateofvalidation", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "latitude", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "longitude", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "description", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "subjects", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "originalId", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "collectedfrom", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "pid", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "rels", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false) + }) + protected List> namespaceprefixOrOfficialnameOrEnglishname; + + /** + * Gets the value of the namespaceprefixOrOfficialnameOrEnglishname 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 namespaceprefixOrOfficialnameOrEnglishname property. + * + *

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

+     *    getNamespaceprefixOrOfficialnameOrEnglishname().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 QualifierType }{@code >} + * {@link JAXBElement }{@code <}{@link QualifierType }{@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 StructuredPropertyElementType }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + * {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + * {@link JAXBElement }{@code <}{@link RelsType }{@code >} + * + * + */ + public List> getNamespaceprefixOrOfficialnameOrEnglishname() { + if (namespaceprefixOrOfficialnameOrEnglishname == null) { + namespaceprefixOrOfficialnameOrEnglishname = new ArrayList>(); + } + return this.namespaceprefixOrOfficialnameOrEnglishname; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/Entity.java b/src/main/java/eu/openaire/oaf/model/base/Entity.java new file mode 100644 index 0000000..8d2fe02 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/Entity.java @@ -0,0 +1,156 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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>
+ *         <choice>
+ *           <element ref="{http://namespace.openaire.eu/oaf}result"/>
+ *           <element ref="{http://namespace.openaire.eu/oaf}organization"/>
+ *           <element ref="{http://namespace.openaire.eu/oaf}datasource"/>
+ *           <element ref="{http://namespace.openaire.eu/oaf}project"/>
+ *         </choice>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "result", + "organization", + "datasource", + "project" +}) +@XmlRootElement(name = "entity") +public class Entity + implements Serializable +{ + + private final static long serialVersionUID = 1L; + protected Result result; + protected Organization organization; + protected Datasource datasource; + protected Project project; + + /** + * Gets the value of the result property. + * + * @return + * possible object is + * {@link Result } + * + */ + public Result getResult() { + return result; + } + + /** + * Sets the value of the result property. + * + * @param value + * allowed object is + * {@link Result } + * + */ + public void setResult(Result value) { + this.result = value; + } + + /** + * Gets the value of the organization property. + * + * @return + * possible object is + * {@link Organization } + * + */ + public Organization getOrganization() { + return organization; + } + + /** + * Sets the value of the organization property. + * + * @param value + * allowed object is + * {@link Organization } + * + */ + public void setOrganization(Organization value) { + this.organization = value; + } + + /** + * Gets the value of the datasource property. + * + * @return + * possible object is + * {@link Datasource } + * + */ + public Datasource getDatasource() { + return datasource; + } + + /** + * Sets the value of the datasource property. + * + * @param value + * allowed object is + * {@link Datasource } + * + */ + public void setDatasource(Datasource value) { + this.datasource = value; + } + + /** + * Gets the value of the project property. + * + * @return + * possible object is + * {@link Project } + * + */ + public Project getProject() { + return project; + } + + /** + * Sets the value of the project property. + * + * @param value + * allowed object is + * {@link Project } + * + */ + public void setProject(Project value) { + this.project = value; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/ExternalreferenceType.java b/src/main/java/eu/openaire/oaf/model/base/ExternalreferenceType.java new file mode 100644 index 0000000..98c5847 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/ExternalreferenceType.java @@ -0,0 +1,336 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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 externalreferenceType complex type. + * + *

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

+ * <complexType name="externalreferenceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="sitename" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="url" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="qualifier" type="{http://namespace.openaire.eu/oaf}qualifierType" minOccurs="0"/>
+ *         <element name="refidentifier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{http://namespace.openaire.eu/oaf}dataInfoAttributeGroup"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "externalreferenceType", propOrder = { + "sitename", + "url", + "qualifier", + "refidentifier" +}) +public class ExternalreferenceType + implements Serializable +{ + + private final static long serialVersionUID = 1L; + protected String sitename; + protected String url; + protected QualifierType qualifier; + protected String refidentifier; + @XmlAttribute(name = "inferred") + protected Boolean inferred; + @XmlAttribute(name = "trust") + protected String trust; + @XmlAttribute(name = "inferenceprovenance") + protected String inferenceprovenance; + @XmlAttribute(name = "classid", required = true) + protected String classid; + @XmlAttribute(name = "classname", required = true) + protected String classname; + @XmlAttribute(name = "schemeid", required = true) + protected String schemeid; + @XmlAttribute(name = "schemename", required = true) + protected String schemename; + + /** + * Gets the value of the sitename property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSitename() { + return sitename; + } + + /** + * Sets the value of the sitename property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSitename(String value) { + this.sitename = 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 qualifier property. + * + * @return + * possible object is + * {@link QualifierType } + * + */ + public QualifierType getQualifier() { + return qualifier; + } + + /** + * Sets the value of the qualifier property. + * + * @param value + * allowed object is + * {@link QualifierType } + * + */ + public void setQualifier(QualifierType value) { + this.qualifier = value; + } + + /** + * Gets the value of the refidentifier property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRefidentifier() { + return refidentifier; + } + + /** + * Sets the value of the refidentifier property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRefidentifier(String value) { + this.refidentifier = value; + } + + /** + * Gets the value of the inferred property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isInferred() { + return inferred; + } + + /** + * Sets the value of the inferred property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInferred(Boolean value) { + this.inferred = value; + } + + /** + * Gets the value of the trust property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrust() { + return trust; + } + + /** + * Sets the value of the trust property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrust(String value) { + this.trust = value; + } + + /** + * Gets the value of the inferenceprovenance property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInferenceprovenance() { + return inferenceprovenance; + } + + /** + * Sets the value of the inferenceprovenance property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInferenceprovenance(String value) { + this.inferenceprovenance = value; + } + + /** + * Gets the value of the classid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassid() { + return classid; + } + + /** + * Sets the value of the classid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassid(String value) { + this.classid = value; + } + + /** + * Gets the value of the classname property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassname() { + return classname; + } + + /** + * Sets the value of the classname property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassname(String value) { + this.classname = value; + } + + /** + * Gets the value of the schemeid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemeid() { + return schemeid; + } + + /** + * Sets the value of the schemeid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemeid(String value) { + this.schemeid = value; + } + + /** + * Gets the value of the schemename property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemename() { + return schemename; + } + + /** + * Sets the value of the schemename property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemename(String value) { + this.schemename = value; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/FieldType.java b/src/main/java/eu/openaire/oaf/model/base/FieldType.java new file mode 100644 index 0000000..27406ef --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/FieldType.java @@ -0,0 +1,253 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for fieldType complex type. + * + *

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

+ * <complexType name="fieldType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attGroup ref="{http://namespace.openaire.eu/oaf}dataInfoAttributeGroup"/>
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "fieldType", propOrder = { + "value" +}) +public class FieldType implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlValue + protected String value; + @XmlAttribute(name = "inferred") + protected Boolean inferred; + @XmlAttribute(name = "trust") + protected String trust; + @XmlAttribute(name = "inferenceprovenance") + protected String inferenceprovenance; + @XmlAttribute(name = "classid", required = true) + protected String classid; + @XmlAttribute(name = "classname", required = true) + protected String classname; + @XmlAttribute(name = "schemeid", required = true) + protected String schemeid; + @XmlAttribute(name = "schemename", required = true) + protected String schemename; + + /** + * 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 inferred property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isInferred() { + return inferred; + } + + /** + * Sets the value of the inferred property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInferred(Boolean value) { + this.inferred = value; + } + + /** + * Gets the value of the trust property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrust() { + return trust; + } + + /** + * Sets the value of the trust property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrust(String value) { + this.trust = value; + } + + /** + * Gets the value of the inferenceprovenance property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInferenceprovenance() { + return inferenceprovenance; + } + + /** + * Sets the value of the inferenceprovenance property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInferenceprovenance(String value) { + this.inferenceprovenance = value; + } + + /** + * Gets the value of the classid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassid() { + return classid; + } + + /** + * Sets the value of the classid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassid(String value) { + this.classid = value; + } + + /** + * Gets the value of the classname property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassname() { + return classname; + } + + /** + * Sets the value of the classname property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassname(String value) { + this.classname = value; + } + + /** + * Gets the value of the schemeid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemeid() { + return schemeid; + } + + /** + * Sets the value of the schemeid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemeid(String value) { + this.schemeid = value; + } + + /** + * Gets the value of the schemename property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemename() { + return schemename; + } + + /** + * Sets the value of the schemename property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemename(String value) { + this.schemename = value; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/FunderFlatType.java b/src/main/java/eu/openaire/oaf/model/base/FunderFlatType.java new file mode 100644 index 0000000..5d2271f --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/FunderFlatType.java @@ -0,0 +1,179 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for funderFlatType complex type. + * + *

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

+ * <complexType name="funderFlatType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="shortname" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="jurisdiction" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "funderFlatType", propOrder = { + "value" +}) +public class FunderFlatType + implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlValue + protected String value; + @XmlAttribute(name = "id", required = true) + protected String id; + @XmlAttribute(name = "shortname", required = true) + protected String shortname; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "jurisdiction") + protected String jurisdiction; + + /** + * 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 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 shortname property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShortname() { + return shortname; + } + + /** + * Sets the value of the shortname property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShortname(String value) { + this.shortname = value; + } + + /** + * 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; + } + + /** + * Gets the value of the jurisdiction property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getJurisdiction() { + return jurisdiction; + } + + /** + * Sets the value of the jurisdiction property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setJurisdiction(String value) { + this.jurisdiction = value; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/FunderType.java b/src/main/java/eu/openaire/oaf/model/base/FunderType.java new file mode 100644 index 0000000..2c03f3c --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/FunderType.java @@ -0,0 +1,154 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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 funderType complex type. + * + *

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

+ * <complexType name="funderType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="shortname" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="jurisdiction" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "funderType", propOrder = { + +}) +public class FunderType + implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlElement(namespace = "", required = true) + protected String id; + @XmlElement(namespace = "", required = true) + protected String shortname; + @XmlElement(namespace = "", required = true) + protected String name; + @XmlElement(namespace = "", required = true) + protected String jurisdiction; + + /** + * 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 shortname property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getShortname() { + return shortname; + } + + /** + * Sets the value of the shortname property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setShortname(String value) { + this.shortname = value; + } + + /** + * 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; + } + + /** + * Gets the value of the jurisdiction property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getJurisdiction() { + return jurisdiction; + } + + /** + * Sets the value of the jurisdiction property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setJurisdiction(String value) { + this.jurisdiction = value; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/FundingFlatType.java b/src/main/java/eu/openaire/oaf/model/base/FundingFlatType.java new file mode 100644 index 0000000..2d5233d --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/FundingFlatType.java @@ -0,0 +1,173 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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 fundingFlatType complex type. + * + *

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

+ * <complexType name="fundingFlatType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="funder" type="{http://namespace.openaire.eu/oaf}funderFlatType"/>
+ *         <element name="funding_level_0" type="{http://namespace.openaire.eu/oaf}namedFundingLevel" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="funding_level_1" type="{http://namespace.openaire.eu/oaf}namedFundingLevel" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="funding_level_2" type="{http://namespace.openaire.eu/oaf}namedFundingLevel" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "fundingFlatType", propOrder = { + "funder", + "fundingLevel0", + "fundingLevel1", + "fundingLevel2" +}) +public class FundingFlatType implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlElement(required = true) + protected FunderFlatType funder; + @XmlElement(name = "funding_level_0") + protected List fundingLevel0; + @XmlElement(name = "funding_level_1") + protected List fundingLevel1; + @XmlElement(name = "funding_level_2") + protected List fundingLevel2; + + /** + * Gets the value of the funder property. + * + * @return + * possible object is + * {@link FunderFlatType } + * + */ + public FunderFlatType getFunder() { + return funder; + } + + /** + * Sets the value of the funder property. + * + * @param value + * allowed object is + * {@link FunderFlatType } + * + */ + public void setFunder(FunderFlatType value) { + this.funder = value; + } + + /** + * Gets the value of the fundingLevel0 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 fundingLevel0 property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link NamedFundingLevel } + * + * + */ + public List getFundingLevel0() { + if (fundingLevel0 == null) { + fundingLevel0 = new ArrayList(); + } + return this.fundingLevel0; + } + + /** + * Gets the value of the fundingLevel1 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 fundingLevel1 property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link NamedFundingLevel } + * + * + */ + public List getFundingLevel1() { + if (fundingLevel1 == null) { + fundingLevel1 = new ArrayList(); + } + return this.fundingLevel1; + } + + /** + * Gets the value of the fundingLevel2 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 fundingLevel2 property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link NamedFundingLevel } + * + * + */ + public List getFundingLevel2() { + if (fundingLevel2 == null) { + fundingLevel2 = new ArrayList(); + } + return this.fundingLevel2; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/FundingParentType.java b/src/main/java/eu/openaire/oaf/model/base/FundingParentType.java new file mode 100644 index 0000000..ebd7d23 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/FundingParentType.java @@ -0,0 +1,101 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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 fundingParentType complex type. + * + *

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

+ * <complexType name="fundingParentType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice minOccurs="0">
+ *         <element name="funding_level_1" type="{http://namespace.openaire.eu/oaf}fundingType"/>
+ *         <element name="funding_level_0" type="{http://namespace.openaire.eu/oaf}fundingType"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "fundingParentType", propOrder = { + "fundingLevel1", + "fundingLevel0" +}) +public class FundingParentType + implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlElement(name = "funding_level_1", namespace = "") + protected FundingType fundingLevel1; + @XmlElement(name = "funding_level_0", namespace = "") + protected FundingType fundingLevel0; + + /** + * Gets the value of the fundingLevel1 property. + * + * @return + * possible object is + * {@link FundingType } + * + */ + public FundingType getFundingLevel1() { + return fundingLevel1; + } + + /** + * Sets the value of the fundingLevel1 property. + * + * @param value + * allowed object is + * {@link FundingType } + * + */ + public void setFundingLevel1(FundingType value) { + this.fundingLevel1 = value; + } + + /** + * Gets the value of the fundingLevel0 property. + * + * @return + * possible object is + * {@link FundingType } + * + */ + public FundingType getFundingLevel0() { + return fundingLevel0; + } + + /** + * Sets the value of the fundingLevel0 property. + * + * @param value + * allowed object is + * {@link FundingType } + * + */ + public void setFundingLevel0(FundingType value) { + this.fundingLevel0 = value; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/FundingTreeType.java b/src/main/java/eu/openaire/oaf/model/base/FundingTreeType.java new file mode 100644 index 0000000..c6a526a --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/FundingTreeType.java @@ -0,0 +1,120 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +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.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for fundingTreeType complex type. + * + *

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

+ * <complexType name="fundingTreeType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="funder" type="{http://namespace.openaire.eu/oaf}funderType"/>
+ *         <choice maxOccurs="unbounded">
+ *           <element name="funding_level_2" type="{http://namespace.openaire.eu/oaf}fundingType"/>
+ *           <element name="funding_level_1" type="{http://namespace.openaire.eu/oaf}fundingType"/>
+ *           <element name="funding_level_0" type="{http://namespace.openaire.eu/oaf}fundingType"/>
+ *         </choice>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "fundingTreeType", propOrder = { + "funder", + "fundingLevel2OrFundingLevel1OrFundingLevel0" +}) +public class FundingTreeType implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlElement(namespace = "", required = true) + protected FunderType funder; + @XmlElementRefs({ + @XmlElementRef(name = "funding_level_2", type = JAXBElement.class, required = false), + @XmlElementRef(name = "funding_level_1", type = JAXBElement.class, required = false), + @XmlElementRef(name = "funding_level_0", type = JAXBElement.class, required = false) + }) + protected List> fundingLevel2OrFundingLevel1OrFundingLevel0; + + /** + * Gets the value of the funder property. + * + * @return + * possible object is + * {@link FunderType } + * + */ + public FunderType getFunder() { + return funder; + } + + /** + * Sets the value of the funder property. + * + * @param value + * allowed object is + * {@link FunderType } + * + */ + public void setFunder(FunderType value) { + this.funder = value; + } + + /** + * Gets the value of the fundingLevel2OrFundingLevel1OrFundingLevel0 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 fundingLevel2OrFundingLevel1OrFundingLevel0 property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link FundingType }{@code >} + * {@link JAXBElement }{@code <}{@link FundingType }{@code >} + * {@link JAXBElement }{@code <}{@link FundingType }{@code >} + * + * + */ + public List> getFundingLevel2OrFundingLevel1OrFundingLevel0() { + if (fundingLevel2OrFundingLevel1OrFundingLevel0 == null) { + fundingLevel2OrFundingLevel1OrFundingLevel0 = new ArrayList>(); + } + return this.fundingLevel2OrFundingLevel1OrFundingLevel0; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/FundingType.java b/src/main/java/eu/openaire/oaf/model/base/FundingType.java new file mode 100644 index 0000000..8b910e4 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/FundingType.java @@ -0,0 +1,181 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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 fundingType complex type. + * + *

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

+ * <complexType name="fundingType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="class" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="parent" type="{http://namespace.openaire.eu/oaf}fundingParentType"/>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "fundingType", propOrder = { + +}) +public class FundingType + implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlElement(namespace = "", required = true) + protected String id; + @XmlElement(namespace = "", required = true) + protected String description; + @XmlElement(namespace = "", required = true) + protected String name; + @XmlElement(name = "class", namespace = "", required = true) + protected String clazz; + @XmlElement(namespace = "", required = true) + protected FundingParentType parent; + + /** + * 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 description property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDescription(String value) { + this.description = value; + } + + /** + * 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; + } + + /** + * Gets the value of the clazz property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClazz() { + return clazz; + } + + /** + * Sets the value of the clazz property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClazz(String value) { + this.clazz = value; + } + + /** + * Gets the value of the parent property. + * + * @return + * possible object is + * {@link FundingParentType } + * + */ + public FundingParentType getParent() { + return parent; + } + + /** + * Sets the value of the parent property. + * + * @param value + * allowed object is + * {@link FundingParentType } + * + */ + public void setParent(FundingParentType value) { + this.parent = value; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/InstanceType.java b/src/main/java/eu/openaire/oaf/model/base/InstanceType.java new file mode 100644 index 0000000..4614fcf --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/InstanceType.java @@ -0,0 +1,144 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +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.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 instanceType complex type. + * + *

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

+ * <complexType name="instanceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element name="license" type="{http://namespace.openaire.eu/oaf}fieldType"/>
+ *         <element name="accessright" type="{http://namespace.openaire.eu/oaf}qualifierType"/>
+ *         <element name="instancetype" type="{http://namespace.openaire.eu/oaf}qualifierType"/>
+ *         <element name="collectedfrom" type="{http://namespace.openaire.eu/oaf}namedIdElementType"/>
+ *         <element name="hostedby" type="{http://namespace.openaire.eu/oaf}namedIdElementType"/>
+ *         <element name="webresource" type="{http://namespace.openaire.eu/oaf}webresourceType" maxOccurs="unbounded"/>
+ *         <element name="distributionlocation" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="dateofacceptance" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="processingchargeamount" type="{http://namespace.openaire.eu/oaf}fieldType"/>
+ *         <element name="processingchargecurrency" type="{http://namespace.openaire.eu/oaf}fieldType"/>
+ *         <element name="refereed" type="{http://namespace.openaire.eu/oaf}fieldType"/>
+ *       </choice>
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "instanceType", propOrder = { + "licenseOrAccessrightOrInstancetype" +}) +public class InstanceType + implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlElementRefs({ + @XmlElementRef(name = "license", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "accessright", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "instancetype", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "collectedfrom", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "hostedby", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "webresource", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "distributionlocation", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "dateofacceptance", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "processingchargeamount", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "processingchargecurrency", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "refereed", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false) + }) + protected List> licenseOrAccessrightOrInstancetype; + @XmlAttribute(name = "id", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String id; + + /** + * Gets the value of the licenseOrAccessrightOrInstancetype 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 licenseOrAccessrightOrInstancetype property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link FieldType }{@code >} + * {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + * {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + * {@link JAXBElement }{@code <}{@link WebresourceType }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link FieldType }{@code >} + * {@link JAXBElement }{@code <}{@link FieldType }{@code >} + * {@link JAXBElement }{@code <}{@link FieldType }{@code >} + * + * + */ + public List> getLicenseOrAccessrightOrInstancetype() { + if (licenseOrAccessrightOrInstancetype == null) { + licenseOrAccessrightOrInstancetype = new ArrayList>(); + } + return this.licenseOrAccessrightOrInstancetype; + } + + /** + * 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/src/main/java/eu/openaire/oaf/model/base/InstancesType.java b/src/main/java/eu/openaire/oaf/model/base/InstancesType.java new file mode 100644 index 0000000..78fc952 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/InstancesType.java @@ -0,0 +1,111 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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 instancesType complex type. + * + *

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

+ * <complexType name="instancesType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="instance" type="{http://namespace.openaire.eu/oaf}instanceType" maxOccurs="unbounded"/>
+ *         <element name="externalreference" type="{http://namespace.openaire.eu/oaf}externalreferenceType" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "instancesType", propOrder = { + "instance", + "externalreference" +}) +public class InstancesType implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlElement(required = true) + protected List instance; + protected List externalreference; + + /** + * Gets the value of the instance 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 instance property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link InstanceType } + * + * + */ + public List getInstance() { + if (instance == null) { + instance = new ArrayList(); + } + return this.instance; + } + + /** + * Gets the value of the externalreference 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 externalreference property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link ExternalreferenceType } + * + * + */ + public List getExternalreference() { + if (externalreference == null) { + externalreference = new ArrayList(); + } + return this.externalreference; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/JournalType.java b/src/main/java/eu/openaire/oaf/model/base/JournalType.java new file mode 100644 index 0000000..34574b6 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/JournalType.java @@ -0,0 +1,267 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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 journalType complex type. + * + *

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

+ * <complexType name="journalType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attribute name="eissn" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="issn" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="lissn" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="ep" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="iss" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="sp" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="vol" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "journalType", propOrder = { + "value" +}) +public class JournalType implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlValue + protected String value; + @XmlAttribute(name = "eissn") + @XmlSchemaType(name = "anySimpleType") + protected String eissn; + @XmlAttribute(name = "issn") + @XmlSchemaType(name = "anySimpleType") + protected String issn; + @XmlAttribute(name = "lissn") + @XmlSchemaType(name = "anySimpleType") + protected String lissn; + @XmlAttribute(name = "ep") + @XmlSchemaType(name = "anySimpleType") + protected String ep; + @XmlAttribute(name = "iss") + @XmlSchemaType(name = "anySimpleType") + protected String iss; + @XmlAttribute(name = "sp") + @XmlSchemaType(name = "anySimpleType") + protected String sp; + @XmlAttribute(name = "vol") + @XmlSchemaType(name = "anySimpleType") + protected String vol; + + /** + * 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 eissn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEissn() { + return eissn; + } + + /** + * Sets the value of the eissn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEissn(String value) { + this.eissn = 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 lissn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLissn() { + return lissn; + } + + /** + * Sets the value of the lissn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLissn(String value) { + this.lissn = value; + } + + /** + * Gets the value of the ep property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEp() { + return ep; + } + + /** + * Sets the value of the ep property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEp(String value) { + this.ep = value; + } + + /** + * Gets the value of the iss property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIss() { + return iss; + } + + /** + * Sets the value of the iss property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIss(String value) { + this.iss = value; + } + + /** + * Gets the value of the sp property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSp() { + return sp; + } + + /** + * Sets the value of the sp property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSp(String value) { + this.sp = value; + } + + /** + * Gets the value of the vol property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVol() { + return vol; + } + + /** + * Sets the value of the vol property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVol(String value) { + this.vol = value; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/LabeledIdElementType.java b/src/main/java/eu/openaire/oaf/model/base/LabeledIdElementType.java new file mode 100644 index 0000000..b911c16 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/LabeledIdElementType.java @@ -0,0 +1,104 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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 labeledIdElementType complex type. + * + *

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

+ * <complexType name="labeledIdElementType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="label" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "labeledIdElementType") +@XmlSeeAlso({ + ContextType.class, + CategoryType.class, + ConceptType.class +}) +public class LabeledIdElementType implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlAttribute(name = "id", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String id; + @XmlAttribute(name = "label", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String label; + + /** + * 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 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; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/NamedFundingLevel.java b/src/main/java/eu/openaire/oaf/model/base/NamedFundingLevel.java new file mode 100644 index 0000000..d210125 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/NamedFundingLevel.java @@ -0,0 +1,98 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for namedFundingLevel complex type. + * + *

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

+ * <complexType name="namedFundingLevel">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "namedFundingLevel", propOrder = { + "value" +}) +public class NamedFundingLevel + implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlValue + protected String value; + @XmlAttribute(name = "name", required = true) + protected String name; + + /** + * 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 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/src/main/java/eu/openaire/oaf/model/base/NamedIdElementType.java b/src/main/java/eu/openaire/oaf/model/base/NamedIdElementType.java new file mode 100644 index 0000000..7e79cb6 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/NamedIdElementType.java @@ -0,0 +1,281 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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 namedIdElementType complex type. + * + *

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

+ * <complexType name="namedIdElementType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{http://namespace.openaire.eu/oaf}dataInfoAttributeGroup"/>
+ *       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "namedIdElementType") +public class NamedIdElementType implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlAttribute(name = "id", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String id; + @XmlAttribute(name = "name", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String name; + @XmlAttribute(name = "inferred") + protected Boolean inferred; + @XmlAttribute(name = "trust") + protected String trust; + @XmlAttribute(name = "inferenceprovenance") + protected String inferenceprovenance; + @XmlAttribute(name = "classid", required = true) + protected String classid; + @XmlAttribute(name = "classname", required = true) + protected String classname; + @XmlAttribute(name = "schemeid", required = true) + protected String schemeid; + @XmlAttribute(name = "schemename", required = true) + protected String schemename; + + /** + * 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 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; + } + + /** + * Gets the value of the inferred property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isInferred() { + return inferred; + } + + /** + * Sets the value of the inferred property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInferred(Boolean value) { + this.inferred = value; + } + + /** + * Gets the value of the trust property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrust() { + return trust; + } + + /** + * Sets the value of the trust property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrust(String value) { + this.trust = value; + } + + /** + * Gets the value of the inferenceprovenance property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInferenceprovenance() { + return inferenceprovenance; + } + + /** + * Sets the value of the inferenceprovenance property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInferenceprovenance(String value) { + this.inferenceprovenance = value; + } + + /** + * Gets the value of the classid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassid() { + return classid; + } + + /** + * Sets the value of the classid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassid(String value) { + this.classid = value; + } + + /** + * Gets the value of the classname property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassname() { + return classname; + } + + /** + * Sets the value of the classname property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassname(String value) { + this.classname = value; + } + + /** + * Gets the value of the schemeid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemeid() { + return schemeid; + } + + /** + * Sets the value of the schemeid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemeid(String value) { + this.schemeid = value; + } + + /** + * Gets the value of the schemename property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemename() { + return schemename; + } + + /** + * Sets the value of the schemename property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemename(String value) { + this.schemename = value; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/ObjectFactory.java b/src/main/java/eu/openaire/oaf/model/base/ObjectFactory.java new file mode 100644 index 0000000..fda5b18 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/ObjectFactory.java @@ -0,0 +1,1862 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +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 eu.openaire.oaf.model.base 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 _ResultCreator_QNAME = new QName("http://namespace.openaire.eu/oaf", "creator"); + private final static QName _ResultResulttype_QNAME = new QName("http://namespace.openaire.eu/oaf", "resulttype"); + private final static QName _ResultLanguage_QNAME = new QName("http://namespace.openaire.eu/oaf", "language"); + private final static QName _ResultCountry_QNAME = new QName("http://namespace.openaire.eu/oaf", "country"); + private final static QName _ResultSubject_QNAME = new QName("http://namespace.openaire.eu/oaf", "subject"); + private final static QName _ResultTitle_QNAME = new QName("http://namespace.openaire.eu/oaf", "title"); + private final static QName _ResultRelevantdate_QNAME = new QName("http://namespace.openaire.eu/oaf", "relevantdate"); + private final static QName _ResultDescription_QNAME = new QName("http://namespace.openaire.eu/oaf", "description"); + private final static QName _ResultDateofacceptance_QNAME = new QName("http://namespace.openaire.eu/oaf", "dateofacceptance"); + private final static QName _ResultPublisher_QNAME = new QName("http://namespace.openaire.eu/oaf", "publisher"); + private final static QName _ResultEmbargoenddate_QNAME = new QName("http://namespace.openaire.eu/oaf", "embargoenddate"); + private final static QName _ResultSource_QNAME = new QName("http://namespace.openaire.eu/oaf", "source"); + private final static QName _ResultFormat_QNAME = new QName("http://namespace.openaire.eu/oaf", "format"); + private final static QName _ResultContributor_QNAME = new QName("http://namespace.openaire.eu/oaf", "contributor"); + private final static QName _ResultResourcetype_QNAME = new QName("http://namespace.openaire.eu/oaf", "resourcetype"); + private final static QName _ResultCoverage_QNAME = new QName("http://namespace.openaire.eu/oaf", "coverage"); + private final static QName _ResultBestaccessright_QNAME = new QName("http://namespace.openaire.eu/oaf", "bestaccessright"); + private final static QName _ResultJournal_QNAME = new QName("http://namespace.openaire.eu/oaf", "journal"); + private final static QName _ResultPid_QNAME = new QName("http://namespace.openaire.eu/oaf", "pid"); + private final static QName _ResultDevice_QNAME = new QName("http://namespace.openaire.eu/oaf", "device"); + private final static QName _ResultSize_QNAME = new QName("http://namespace.openaire.eu/oaf", "size"); + private final static QName _ResultVersion_QNAME = new QName("http://namespace.openaire.eu/oaf", "version"); + private final static QName _ResultLastmetadataupdate_QNAME = new QName("http://namespace.openaire.eu/oaf", "lastmetadataupdate"); + private final static QName _ResultMetadataversionnumber_QNAME = new QName("http://namespace.openaire.eu/oaf", "metadataversionnumber"); + private final static QName _ResultOriginalId_QNAME = new QName("http://namespace.openaire.eu/oaf", "originalId"); + private final static QName _ResultCollectedfrom_QNAME = new QName("http://namespace.openaire.eu/oaf", "collectedfrom"); + private final static QName _ResultContext_QNAME = new QName("http://namespace.openaire.eu/oaf", "context"); + private final static QName _ResultRels_QNAME = new QName("http://namespace.openaire.eu/oaf", "rels"); + private final static QName _ResultInstances_QNAME = new QName("http://namespace.openaire.eu/oaf", "instances"); + private final static QName _ResultCitations_QNAME = new QName("http://namespace.openaire.eu/oaf", "citations"); + private final static QName _OrganizationLegalname_QNAME = new QName("http://namespace.openaire.eu/oaf", "legalname"); + private final static QName _OrganizationLegalshortname_QNAME = new QName("http://namespace.openaire.eu/oaf", "legalshortname"); + private final static QName _OrganizationLogourl_QNAME = new QName("http://namespace.openaire.eu/oaf", "logourl"); + private final static QName _OrganizationWebsiteurl_QNAME = new QName("http://namespace.openaire.eu/oaf", "websiteurl"); + private final static QName _DatasourceNamespaceprefix_QNAME = new QName("http://namespace.openaire.eu/oaf", "namespaceprefix"); + private final static QName _DatasourceOfficialname_QNAME = new QName("http://namespace.openaire.eu/oaf", "officialname"); + private final static QName _DatasourceEnglishname_QNAME = new QName("http://namespace.openaire.eu/oaf", "englishname"); + private final static QName _DatasourceContactemail_QNAME = new QName("http://namespace.openaire.eu/oaf", "contactemail"); + private final static QName _DatasourceDatasourcetype_QNAME = new QName("http://namespace.openaire.eu/oaf", "datasourcetype"); + private final static QName _DatasourceOpenairecompatibility_QNAME = new QName("http://namespace.openaire.eu/oaf", "openairecompatibility"); + private final static QName _DatasourceDateofvalidation_QNAME = new QName("http://namespace.openaire.eu/oaf", "dateofvalidation"); + private final static QName _DatasourceLatitude_QNAME = new QName("http://namespace.openaire.eu/oaf", "latitude"); + private final static QName _DatasourceLongitude_QNAME = new QName("http://namespace.openaire.eu/oaf", "longitude"); + private final static QName _DatasourceSubjects_QNAME = new QName("http://namespace.openaire.eu/oaf", "subjects"); + private final static QName _ProjectCode_QNAME = new QName("", "code"); + private final static QName _ProjectTitle_QNAME = new QName("", "title"); + private final static QName _ProjectAcronym_QNAME = new QName("", "acronym"); + private final static QName _ProjectCallidentifier_QNAME = new QName("", "callidentifier"); + private final static QName _ProjectContactfullname_QNAME = new QName("", "contactfullname"); + private final static QName _ProjectContactfax_QNAME = new QName("", "contactfax"); + private final static QName _ProjectContactphone_QNAME = new QName("", "contactphone"); + private final static QName _ProjectContactemail_QNAME = new QName("", "contactemail"); + private final static QName _ProjectContracttype_QNAME = new QName("", "contracttype"); + private final static QName _ProjectKeywords_QNAME = new QName("", "keywords"); + private final static QName _ProjectWebsiteurl_QNAME = new QName("", "websiteurl"); + private final static QName _ProjectStartdate_QNAME = new QName("", "startdate"); + private final static QName _ProjectEnddate_QNAME = new QName("", "enddate"); + private final static QName _ProjectDuration_QNAME = new QName("", "duration"); + private final static QName _ProjectEcsc39_QNAME = new QName("", "ecsc39"); + private final static QName _ProjectOamandatepublications_QNAME = new QName("", "oamandatepublications"); + private final static QName _ProjectEcarticle293_QNAME = new QName("", "ecarticle29_3"); + private final static QName _ProjectSubjects_QNAME = new QName("", "subjects"); + private final static QName _ProjectFundingtree_QNAME = new QName("", "fundingtree"); + private final static QName _ProjectOriginalId_QNAME = new QName("", "originalId"); + private final static QName _ProjectCollectedfrom_QNAME = new QName("", "collectedfrom"); + private final static QName _ProjectPid_QNAME = new QName("", "pid"); + private final static QName _ProjectRels_QNAME = new QName("", "rels"); + private final static QName _InstanceTypeLicense_QNAME = new QName("http://namespace.openaire.eu/oaf", "license"); + private final static QName _InstanceTypeAccessright_QNAME = new QName("http://namespace.openaire.eu/oaf", "accessright"); + private final static QName _InstanceTypeInstancetype_QNAME = new QName("http://namespace.openaire.eu/oaf", "instancetype"); + private final static QName _InstanceTypeHostedby_QNAME = new QName("http://namespace.openaire.eu/oaf", "hostedby"); + private final static QName _InstanceTypeWebresource_QNAME = new QName("http://namespace.openaire.eu/oaf", "webresource"); + private final static QName _InstanceTypeDistributionlocation_QNAME = new QName("http://namespace.openaire.eu/oaf", "distributionlocation"); + private final static QName _InstanceTypeProcessingchargeamount_QNAME = new QName("http://namespace.openaire.eu/oaf", "processingchargeamount"); + private final static QName _InstanceTypeProcessingchargecurrency_QNAME = new QName("http://namespace.openaire.eu/oaf", "processingchargecurrency"); + private final static QName _InstanceTypeRefereed_QNAME = new QName("http://namespace.openaire.eu/oaf", "refereed"); + private final static QName _RelTypeTo_QNAME = new QName("http://namespace.openaire.eu/oaf", "to"); + private final static QName _RelTypeUrl_QNAME = new QName("http://namespace.openaire.eu/oaf", "url"); + private final static QName _RelTypeSimilarity_QNAME = new QName("http://namespace.openaire.eu/oaf", "similarity"); + private final static QName _RelTypeType_QNAME = new QName("http://namespace.openaire.eu/oaf", "type"); + private final static QName _RelTypeCode_QNAME = new QName("http://namespace.openaire.eu/oaf", "code"); + private final static QName _RelTypeAcronym_QNAME = new QName("http://namespace.openaire.eu/oaf", "acronym"); + private final static QName _RelTypeContracttype_QNAME = new QName("http://namespace.openaire.eu/oaf", "contracttype"); + private final static QName _RelTypeFunding_QNAME = new QName("http://namespace.openaire.eu/oaf", "funding"); + private final static QName _FundingTreeTypeFundingLevel2_QNAME = new QName("", "funding_level_2"); + private final static QName _FundingTreeTypeFundingLevel1_QNAME = new QName("", "funding_level_1"); + private final static QName _FundingTreeTypeFundingLevel0_QNAME = new QName("", "funding_level_0"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: eu.openaire.oaf.model.base + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Result } + * + */ + public Result createResult() { + return new Result(); + } + + /** + * Create an instance of {@link CitationsType } + * + */ + public CitationsType createCitationsType() { + return new CitationsType(); + } + + /** + * Create an instance of {@link CitationsType.Citation } + * + */ + public CitationsType.Citation createCitationsTypeCitation() { + return new CitationsType.Citation(); + } + + /** + * Create an instance of {@link Result.Creator } + * + */ + public Result.Creator createResultCreator() { + return new Result.Creator(); + } + + /** + * Create an instance of {@link QualifierType } + * + */ + public QualifierType createQualifierType() { + return new QualifierType(); + } + + /** + * Create an instance of {@link DataInfoType } + * + */ + public DataInfoType createDataInfoType() { + return new DataInfoType(); + } + + /** + * Create an instance of {@link StructuredPropertyElementType } + * + */ + public StructuredPropertyElementType createStructuredPropertyElementType() { + return new StructuredPropertyElementType(); + } + + /** + * Create an instance of {@link JournalType } + * + */ + public JournalType createJournalType() { + return new JournalType(); + } + + /** + * Create an instance of {@link NamedIdElementType } + * + */ + public NamedIdElementType createNamedIdElementType() { + return new NamedIdElementType(); + } + + /** + * Create an instance of {@link ContextType } + * + */ + public ContextType createContextType() { + return new ContextType(); + } + + /** + * Create an instance of {@link RelsType } + * + */ + public RelsType createRelsType() { + return new RelsType(); + } + + /** + * Create an instance of {@link InstancesType } + * + */ + public InstancesType createInstancesType() { + return new InstancesType(); + } + + /** + * Create an instance of {@link Organization } + * + */ + public Organization createOrganization() { + return new Organization(); + } + + /** + * Create an instance of {@link Datasource } + * + */ + public Datasource createDatasource() { + return new Datasource(); + } + + /** + * Create an instance of {@link Project } + * + */ + public Project createProject() { + return new Project(); + } + + /** + * Create an instance of {@link FundingTreeType } + * + */ + public FundingTreeType createFundingTreeType() { + return new FundingTreeType(); + } + + /** + * Create an instance of {@link Entity } + * + */ + public Entity createEntity() { + return new Entity(); + } + + /** + * Create an instance of {@link FieldType } + * + */ + public FieldType createFieldType() { + return new FieldType(); + } + + /** + * Create an instance of {@link LabeledIdElementType } + * + */ + public LabeledIdElementType createLabeledIdElementType() { + return new LabeledIdElementType(); + } + + /** + * Create an instance of {@link CategoryType } + * + */ + public CategoryType createCategoryType() { + return new CategoryType(); + } + + /** + * Create an instance of {@link ConceptType } + * + */ + public ConceptType createConceptType() { + return new ConceptType(); + } + + /** + * Create an instance of {@link RelType } + * + */ + public RelType createRelType() { + return new RelType(); + } + + /** + * Create an instance of {@link RelToType } + * + */ + public RelToType createRelToType() { + return new RelToType(); + } + + /** + * Create an instance of {@link FundingFlatType } + * + */ + public FundingFlatType createFundingFlatType() { + return new FundingFlatType(); + } + + /** + * Create an instance of {@link FunderFlatType } + * + */ + public FunderFlatType createFunderFlatType() { + return new FunderFlatType(); + } + + /** + * Create an instance of {@link NamedFundingLevel } + * + */ + public NamedFundingLevel createNamedFundingLevel() { + return new NamedFundingLevel(); + } + + /** + * Create an instance of {@link ExternalreferenceType } + * + */ + public ExternalreferenceType createExternalreferenceType() { + return new ExternalreferenceType(); + } + + /** + * Create an instance of {@link InstanceType } + * + */ + public InstanceType createInstanceType() { + return new InstanceType(); + } + + /** + * Create an instance of {@link WebresourceType } + * + */ + public WebresourceType createWebresourceType() { + return new WebresourceType(); + } + + /** + * Create an instance of {@link FundingType } + * + */ + public FundingType createFundingType() { + return new FundingType(); + } + + /** + * Create an instance of {@link FundingParentType } + * + */ + public FundingParentType createFundingParentType() { + return new FundingParentType(); + } + + /** + * Create an instance of {@link FunderType } + * + */ + public FunderType createFunderType() { + return new FunderType(); + } + + /** + * Create an instance of {@link CitationsType.Citation.Id } + * + */ + public CitationsType.Citation.Id createCitationsTypeCitationId() { + return new CitationsType.Citation.Id(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Result.Creator }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Result.Creator }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "creator", scope = Result.class) + public JAXBElement createResultCreator(Result.Creator value) { + return new JAXBElement(_ResultCreator_QNAME, Result.Creator.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "resulttype", scope = Result.class) + public JAXBElement createResultResulttype(QualifierType value) { + return new JAXBElement(_ResultResulttype_QNAME, QualifierType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "language", scope = Result.class) + public JAXBElement createResultLanguage(QualifierType value) { + return new JAXBElement(_ResultLanguage_QNAME, QualifierType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DataInfoType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link DataInfoType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "country", scope = Result.class) + public JAXBElement createResultCountry(DataInfoType value) { + return new JAXBElement(_ResultCountry_QNAME, DataInfoType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "subject", scope = Result.class) + public JAXBElement createResultSubject(StructuredPropertyElementType value) { + return new JAXBElement(_ResultSubject_QNAME, StructuredPropertyElementType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "title", scope = Result.class) + public JAXBElement createResultTitle(StructuredPropertyElementType value) { + return new JAXBElement(_ResultTitle_QNAME, StructuredPropertyElementType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "relevantdate", scope = Result.class) + public JAXBElement createResultRelevantdate(StructuredPropertyElementType value) { + return new JAXBElement(_ResultRelevantdate_QNAME, StructuredPropertyElementType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "description", scope = Result.class) + public JAXBElement createResultDescription(String value) { + return new JAXBElement(_ResultDescription_QNAME, String.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "dateofacceptance", scope = Result.class) + public JAXBElement createResultDateofacceptance(String value) { + return new JAXBElement(_ResultDateofacceptance_QNAME, String.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "publisher", scope = Result.class) + public JAXBElement createResultPublisher(String value) { + return new JAXBElement(_ResultPublisher_QNAME, String.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "embargoenddate", scope = Result.class) + public JAXBElement createResultEmbargoenddate(String value) { + return new JAXBElement(_ResultEmbargoenddate_QNAME, String.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "source", scope = Result.class) + public JAXBElement createResultSource(String value) { + return new JAXBElement(_ResultSource_QNAME, String.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "format", scope = Result.class) + public JAXBElement createResultFormat(String value) { + return new JAXBElement(_ResultFormat_QNAME, String.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "contributor", scope = Result.class) + public JAXBElement createResultContributor(String value) { + return new JAXBElement(_ResultContributor_QNAME, String.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "resourcetype", scope = Result.class) + public JAXBElement createResultResourcetype(QualifierType value) { + return new JAXBElement(_ResultResourcetype_QNAME, QualifierType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "coverage", scope = Result.class) + public JAXBElement createResultCoverage(String value) { + return new JAXBElement(_ResultCoverage_QNAME, String.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "bestaccessright", scope = Result.class) + public JAXBElement createResultBestaccessright(QualifierType value) { + return new JAXBElement(_ResultBestaccessright_QNAME, QualifierType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link JournalType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link JournalType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "journal", scope = Result.class) + public JAXBElement createResultJournal(JournalType value) { + return new JAXBElement(_ResultJournal_QNAME, JournalType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "pid", scope = Result.class) + public JAXBElement createResultPid(StructuredPropertyElementType value) { + return new JAXBElement(_ResultPid_QNAME, StructuredPropertyElementType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "device", scope = Result.class) + public JAXBElement createResultDevice(String value) { + return new JAXBElement(_ResultDevice_QNAME, String.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "size", scope = Result.class) + public JAXBElement createResultSize(String value) { + return new JAXBElement(_ResultSize_QNAME, String.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "version", scope = Result.class) + public JAXBElement createResultVersion(String value) { + return new JAXBElement(_ResultVersion_QNAME, String.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "lastmetadataupdate", scope = Result.class) + public JAXBElement createResultLastmetadataupdate(String value) { + return new JAXBElement(_ResultLastmetadataupdate_QNAME, String.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "metadataversionnumber", scope = Result.class) + public JAXBElement createResultMetadataversionnumber(String value) { + return new JAXBElement(_ResultMetadataversionnumber_QNAME, String.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "originalId", scope = Result.class) + public JAXBElement createResultOriginalId(String value) { + return new JAXBElement(_ResultOriginalId_QNAME, String.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "collectedfrom", scope = Result.class) + public JAXBElement createResultCollectedfrom(NamedIdElementType value) { + return new JAXBElement(_ResultCollectedfrom_QNAME, NamedIdElementType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ContextType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link ContextType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "context", scope = Result.class) + public JAXBElement createResultContext(ContextType value) { + return new JAXBElement(_ResultContext_QNAME, ContextType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RelsType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link RelsType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "rels", scope = Result.class) + public JAXBElement createResultRels(RelsType value) { + return new JAXBElement(_ResultRels_QNAME, RelsType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link InstancesType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link InstancesType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "instances", scope = Result.class) + public JAXBElement createResultInstances(InstancesType value) { + return new JAXBElement(_ResultInstances_QNAME, InstancesType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CitationsType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link CitationsType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "citations", scope = Result.class) + public JAXBElement createResultCitations(CitationsType value) { + return new JAXBElement(_ResultCitations_QNAME, CitationsType.class, Result.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "legalname", scope = Organization.class) + public JAXBElement createOrganizationLegalname(String value) { + return new JAXBElement(_OrganizationLegalname_QNAME, String.class, Organization.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "legalshortname", scope = Organization.class) + public JAXBElement createOrganizationLegalshortname(String value) { + return new JAXBElement(_OrganizationLegalshortname_QNAME, String.class, Organization.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "logourl", scope = Organization.class) + public JAXBElement createOrganizationLogourl(String value) { + return new JAXBElement(_OrganizationLogourl_QNAME, String.class, Organization.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "originalId", scope = Organization.class) + public JAXBElement createOrganizationOriginalId(String value) { + return new JAXBElement(_ResultOriginalId_QNAME, String.class, Organization.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "websiteurl", scope = Organization.class) + public JAXBElement createOrganizationWebsiteurl(String value) { + return new JAXBElement(_OrganizationWebsiteurl_QNAME, String.class, Organization.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "country", scope = Organization.class) + public JAXBElement createOrganizationCountry(QualifierType value) { + return new JAXBElement(_ResultCountry_QNAME, QualifierType.class, Organization.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "collectedfrom", scope = Organization.class) + public JAXBElement createOrganizationCollectedfrom(NamedIdElementType value) { + return new JAXBElement(_ResultCollectedfrom_QNAME, NamedIdElementType.class, Organization.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "pid", scope = Organization.class) + public JAXBElement createOrganizationPid(StructuredPropertyElementType value) { + return new JAXBElement(_ResultPid_QNAME, StructuredPropertyElementType.class, Organization.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RelsType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link RelsType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "rels", scope = Organization.class) + public JAXBElement createOrganizationRels(RelsType value) { + return new JAXBElement(_ResultRels_QNAME, RelsType.class, Organization.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "namespaceprefix", scope = Datasource.class) + public JAXBElement createDatasourceNamespaceprefix(String value) { + return new JAXBElement(_DatasourceNamespaceprefix_QNAME, String.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "officialname", scope = Datasource.class) + public JAXBElement createDatasourceOfficialname(String value) { + return new JAXBElement(_DatasourceOfficialname_QNAME, String.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "englishname", scope = Datasource.class) + public JAXBElement createDatasourceEnglishname(String value) { + return new JAXBElement(_DatasourceEnglishname_QNAME, String.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "websiteurl", scope = Datasource.class) + public JAXBElement createDatasourceWebsiteurl(String value) { + return new JAXBElement(_OrganizationWebsiteurl_QNAME, String.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "logourl", scope = Datasource.class) + public JAXBElement createDatasourceLogourl(String value) { + return new JAXBElement(_OrganizationLogourl_QNAME, String.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "contactemail", scope = Datasource.class) + public JAXBElement createDatasourceContactemail(String value) { + return new JAXBElement(_DatasourceContactemail_QNAME, String.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "datasourcetype", scope = Datasource.class) + public JAXBElement createDatasourceDatasourcetype(QualifierType value) { + return new JAXBElement(_DatasourceDatasourcetype_QNAME, QualifierType.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "openairecompatibility", scope = Datasource.class) + public JAXBElement createDatasourceOpenairecompatibility(QualifierType value) { + return new JAXBElement(_DatasourceOpenairecompatibility_QNAME, QualifierType.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "dateofvalidation", scope = Datasource.class) + public JAXBElement createDatasourceDateofvalidation(String value) { + return new JAXBElement(_DatasourceDateofvalidation_QNAME, String.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "latitude", scope = Datasource.class) + public JAXBElement createDatasourceLatitude(String value) { + return new JAXBElement(_DatasourceLatitude_QNAME, String.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "longitude", scope = Datasource.class) + public JAXBElement createDatasourceLongitude(String value) { + return new JAXBElement(_DatasourceLongitude_QNAME, String.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "description", scope = Datasource.class) + public JAXBElement createDatasourceDescription(String value) { + return new JAXBElement(_ResultDescription_QNAME, String.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "subjects", scope = Datasource.class) + public JAXBElement createDatasourceSubjects(StructuredPropertyElementType value) { + return new JAXBElement(_DatasourceSubjects_QNAME, StructuredPropertyElementType.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "originalId", scope = Datasource.class) + public JAXBElement createDatasourceOriginalId(String value) { + return new JAXBElement(_ResultOriginalId_QNAME, String.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "collectedfrom", scope = Datasource.class) + public JAXBElement createDatasourceCollectedfrom(NamedIdElementType value) { + return new JAXBElement(_ResultCollectedfrom_QNAME, NamedIdElementType.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "pid", scope = Datasource.class) + public JAXBElement createDatasourcePid(StructuredPropertyElementType value) { + return new JAXBElement(_ResultPid_QNAME, StructuredPropertyElementType.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RelsType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link RelsType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "rels", scope = Datasource.class) + public JAXBElement createDatasourceRels(RelsType value) { + return new JAXBElement(_ResultRels_QNAME, RelsType.class, Datasource.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "code", scope = Project.class) + public JAXBElement createProjectCode(String value) { + return new JAXBElement(_ProjectCode_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "title", scope = Project.class) + public JAXBElement createProjectTitle(String value) { + return new JAXBElement(_ProjectTitle_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "acronym", scope = Project.class) + public JAXBElement createProjectAcronym(String value) { + return new JAXBElement(_ProjectAcronym_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "callidentifier", scope = Project.class) + public JAXBElement createProjectCallidentifier(String value) { + return new JAXBElement(_ProjectCallidentifier_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "contactfullname", scope = Project.class) + public JAXBElement createProjectContactfullname(String value) { + return new JAXBElement(_ProjectContactfullname_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "contactfax", scope = Project.class) + public JAXBElement createProjectContactfax(String value) { + return new JAXBElement(_ProjectContactfax_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "contactphone", scope = Project.class) + public JAXBElement createProjectContactphone(String value) { + return new JAXBElement(_ProjectContactphone_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "contactemail", scope = Project.class) + public JAXBElement createProjectContactemail(String value) { + return new JAXBElement(_ProjectContactemail_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + */ + @XmlElementDecl(namespace = "", name = "contracttype", scope = Project.class) + public JAXBElement createProjectContracttype(QualifierType value) { + return new JAXBElement(_ProjectContracttype_QNAME, QualifierType.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "keywords", scope = Project.class) + public JAXBElement createProjectKeywords(String value) { + return new JAXBElement(_ProjectKeywords_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "websiteurl", scope = Project.class) + public JAXBElement createProjectWebsiteurl(String value) { + return new JAXBElement(_ProjectWebsiteurl_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "startdate", scope = Project.class) + public JAXBElement createProjectStartdate(String value) { + return new JAXBElement(_ProjectStartdate_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "enddate", scope = Project.class) + public JAXBElement createProjectEnddate(String value) { + return new JAXBElement(_ProjectEnddate_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "duration", scope = Project.class) + public JAXBElement createProjectDuration(String value) { + return new JAXBElement(_ProjectDuration_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "ecsc39", scope = Project.class) + public JAXBElement createProjectEcsc39(String value) { + return new JAXBElement(_ProjectEcsc39_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >} + */ + @XmlElementDecl(namespace = "", name = "oamandatepublications", scope = Project.class) + public JAXBElement createProjectOamandatepublications(Boolean value) { + return new JAXBElement(_ProjectOamandatepublications_QNAME, Boolean.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "ecarticle29_3", scope = Project.class) + public JAXBElement createProjectEcarticle293(String value) { + return new JAXBElement(_ProjectEcarticle293_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + */ + @XmlElementDecl(namespace = "", name = "subjects", scope = Project.class) + public JAXBElement createProjectSubjects(QualifierType value) { + return new JAXBElement(_ProjectSubjects_QNAME, QualifierType.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link FundingTreeType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link FundingTreeType }{@code >} + */ + @XmlElementDecl(namespace = "", name = "fundingtree", scope = Project.class) + public JAXBElement createProjectFundingtree(FundingTreeType value) { + return new JAXBElement(_ProjectFundingtree_QNAME, FundingTreeType.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "", name = "originalId", scope = Project.class) + public JAXBElement createProjectOriginalId(String value) { + return new JAXBElement(_ProjectOriginalId_QNAME, String.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + */ + @XmlElementDecl(namespace = "", name = "collectedfrom", scope = Project.class) + public JAXBElement createProjectCollectedfrom(NamedIdElementType value) { + return new JAXBElement(_ProjectCollectedfrom_QNAME, NamedIdElementType.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + */ + @XmlElementDecl(namespace = "", name = "pid", scope = Project.class) + public JAXBElement createProjectPid(QualifierType value) { + return new JAXBElement(_ProjectPid_QNAME, QualifierType.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RelsType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link RelsType }{@code >} + */ + @XmlElementDecl(namespace = "", name = "rels", scope = Project.class) + public JAXBElement createProjectRels(RelsType value) { + return new JAXBElement(_ProjectRels_QNAME, RelsType.class, Project.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link FieldType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link FieldType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "license", scope = InstanceType.class) + public JAXBElement createInstanceTypeLicense(FieldType value) { + return new JAXBElement(_InstanceTypeLicense_QNAME, FieldType.class, InstanceType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "accessright", scope = InstanceType.class) + public JAXBElement createInstanceTypeAccessright(QualifierType value) { + return new JAXBElement(_InstanceTypeAccessright_QNAME, QualifierType.class, InstanceType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "instancetype", scope = InstanceType.class) + public JAXBElement createInstanceTypeInstancetype(QualifierType value) { + return new JAXBElement(_InstanceTypeInstancetype_QNAME, QualifierType.class, InstanceType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "collectedfrom", scope = InstanceType.class) + public JAXBElement createInstanceTypeCollectedfrom(NamedIdElementType value) { + return new JAXBElement(_ResultCollectedfrom_QNAME, NamedIdElementType.class, InstanceType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "hostedby", scope = InstanceType.class) + public JAXBElement createInstanceTypeHostedby(NamedIdElementType value) { + return new JAXBElement(_InstanceTypeHostedby_QNAME, NamedIdElementType.class, InstanceType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link WebresourceType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link WebresourceType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "webresource", scope = InstanceType.class) + public JAXBElement createInstanceTypeWebresource(WebresourceType value) { + return new JAXBElement(_InstanceTypeWebresource_QNAME, WebresourceType.class, InstanceType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "distributionlocation", scope = InstanceType.class) + public JAXBElement createInstanceTypeDistributionlocation(String value) { + return new JAXBElement(_InstanceTypeDistributionlocation_QNAME, String.class, InstanceType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "dateofacceptance", scope = InstanceType.class) + public JAXBElement createInstanceTypeDateofacceptance(String value) { + return new JAXBElement(_ResultDateofacceptance_QNAME, String.class, InstanceType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link FieldType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link FieldType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "processingchargeamount", scope = InstanceType.class) + public JAXBElement createInstanceTypeProcessingchargeamount(FieldType value) { + return new JAXBElement(_InstanceTypeProcessingchargeamount_QNAME, FieldType.class, InstanceType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link FieldType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link FieldType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "processingchargecurrency", scope = InstanceType.class) + public JAXBElement createInstanceTypeProcessingchargecurrency(FieldType value) { + return new JAXBElement(_InstanceTypeProcessingchargecurrency_QNAME, FieldType.class, InstanceType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link FieldType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link FieldType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "refereed", scope = InstanceType.class) + public JAXBElement createInstanceTypeRefereed(FieldType value) { + return new JAXBElement(_InstanceTypeRefereed_QNAME, FieldType.class, InstanceType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RelToType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link RelToType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "to", scope = RelType.class) + public JAXBElement createRelTypeTo(RelToType value) { + return new JAXBElement(_RelTypeTo_QNAME, RelToType.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "title", scope = RelType.class) + public JAXBElement createRelTypeTitle(String value) { + return new JAXBElement(_ResultTitle_QNAME, String.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Object }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "websiteurl", scope = RelType.class) + public JAXBElement createRelTypeWebsiteurl(Object value) { + return new JAXBElement(_OrganizationWebsiteurl_QNAME, Object.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "officialname", scope = RelType.class) + public JAXBElement createRelTypeOfficialname(String value) { + return new JAXBElement(_DatasourceOfficialname_QNAME, String.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "datasourcetype", scope = RelType.class) + public JAXBElement createRelTypeDatasourcetype(QualifierType value) { + return new JAXBElement(_DatasourceDatasourcetype_QNAME, QualifierType.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "collectedfrom", scope = RelType.class) + public JAXBElement createRelTypeCollectedfrom(NamedIdElementType value) { + return new JAXBElement(_ResultCollectedfrom_QNAME, NamedIdElementType.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "url", scope = RelType.class) + public JAXBElement createRelTypeUrl(String value) { + return new JAXBElement(_RelTypeUrl_QNAME, String.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "pid", scope = RelType.class) + public JAXBElement createRelTypePid(StructuredPropertyElementType value) { + return new JAXBElement(_ResultPid_QNAME, StructuredPropertyElementType.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "dateofacceptance", scope = RelType.class) + public JAXBElement createRelTypeDateofacceptance(String value) { + return new JAXBElement(_ResultDateofacceptance_QNAME, String.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "publisher", scope = RelType.class) + public JAXBElement createRelTypePublisher(String value) { + return new JAXBElement(_ResultPublisher_QNAME, String.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "resulttype", scope = RelType.class) + public JAXBElement createRelTypeResulttype(String value) { + return new JAXBElement(_ResultResulttype_QNAME, String.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link Double }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "similarity", scope = RelType.class) + public JAXBElement createRelTypeSimilarity(Double value) { + return new JAXBElement(_RelTypeSimilarity_QNAME, Double.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "type", scope = RelType.class) + public JAXBElement createRelTypeType(String value) { + return new JAXBElement(_RelTypeType_QNAME, String.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "code", scope = RelType.class) + public JAXBElement createRelTypeCode(String value) { + return new JAXBElement(_RelTypeCode_QNAME, String.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "acronym", scope = RelType.class) + public JAXBElement createRelTypeAcronym(String value) { + return new JAXBElement(_RelTypeAcronym_QNAME, String.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "legalname", scope = RelType.class) + public JAXBElement createRelTypeLegalname(String value) { + return new JAXBElement(_OrganizationLegalname_QNAME, String.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "legalshortname", scope = RelType.class) + public JAXBElement createRelTypeLegalshortname(String value) { + return new JAXBElement(_OrganizationLegalshortname_QNAME, String.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link String }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "country", scope = RelType.class) + public JAXBElement createRelTypeCountry(String value) { + return new JAXBElement(_ResultCountry_QNAME, String.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "contracttype", scope = RelType.class) + public JAXBElement createRelTypeContracttype(QualifierType value) { + return new JAXBElement(_RelTypeContracttype_QNAME, QualifierType.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link FundingFlatType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link FundingFlatType }{@code >} + */ + @XmlElementDecl(namespace = "http://namespace.openaire.eu/oaf", name = "funding", scope = RelType.class) + public JAXBElement createRelTypeFunding(FundingFlatType value) { + return new JAXBElement(_RelTypeFunding_QNAME, FundingFlatType.class, RelType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link FundingType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link FundingType }{@code >} + */ + @XmlElementDecl(namespace = "", name = "funding_level_2", scope = FundingTreeType.class) + public JAXBElement createFundingTreeTypeFundingLevel2(FundingType value) { + return new JAXBElement(_FundingTreeTypeFundingLevel2_QNAME, FundingType.class, FundingTreeType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link FundingType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link FundingType }{@code >} + */ + @XmlElementDecl(namespace = "", name = "funding_level_1", scope = FundingTreeType.class) + public JAXBElement createFundingTreeTypeFundingLevel1(FundingType value) { + return new JAXBElement(_FundingTreeTypeFundingLevel1_QNAME, FundingType.class, FundingTreeType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link FundingType }{@code >} + * + * @param value + * Java instance representing xml element's value. + * @return + * the new instance of {@link JAXBElement }{@code <}{@link FundingType }{@code >} + */ + @XmlElementDecl(namespace = "", name = "funding_level_0", scope = FundingTreeType.class) + public JAXBElement createFundingTreeTypeFundingLevel0(FundingType value) { + return new JAXBElement(_FundingTreeTypeFundingLevel0_QNAME, FundingType.class, FundingTreeType.class, value); + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/Organization.java b/src/main/java/eu/openaire/oaf/model/base/Organization.java new file mode 100644 index 0000000..32d635c --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/Organization.java @@ -0,0 +1,110 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +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.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 maxOccurs="unbounded">
+ *         <element name="legalname" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="legalshortname" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="logourl" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="originalId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="websiteurl" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="country" type="{http://namespace.openaire.eu/oaf}qualifierType"/>
+ *         <element name="collectedfrom" type="{http://namespace.openaire.eu/oaf}namedIdElementType"/>
+ *         <element name="pid" type="{http://namespace.openaire.eu/oaf}structuredPropertyElementType"/>
+ *         <element name="rels" type="{http://namespace.openaire.eu/oaf}relsType"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "legalnameOrLegalshortnameOrLogourl" +}) +@XmlRootElement(name = "organization") +public class Organization + implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlElementRefs({ + @XmlElementRef(name = "legalname", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "legalshortname", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "logourl", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "originalId", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "websiteurl", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "country", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "collectedfrom", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "pid", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "rels", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false) + }) + protected List> legalnameOrLegalshortnameOrLogourl; + + /** + * Gets the value of the legalnameOrLegalshortnameOrLogourl 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 legalnameOrLegalshortnameOrLogourl property. + * + *

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

+     *    getLegalnameOrLegalshortnameOrLogourl().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 QualifierType }{@code >} + * {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + * {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + * {@link JAXBElement }{@code <}{@link RelsType }{@code >} + * + * + */ + public List> getLegalnameOrLegalshortnameOrLogourl() { + if (legalnameOrLegalshortnameOrLogourl == null) { + legalnameOrLegalshortnameOrLogourl = new ArrayList>(); + } + return this.legalnameOrLegalshortnameOrLogourl; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/Project.java b/src/main/java/eu/openaire/oaf/model/base/Project.java new file mode 100644 index 0000000..4dfb993 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/Project.java @@ -0,0 +1,152 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +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.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 maxOccurs="unbounded">
+ *         <element name="code" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="acronym" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="callidentifier" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="contactfullname" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="contactfax" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="contactphone" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="contactemail" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="contracttype" type="{http://namespace.openaire.eu/oaf}qualifierType"/>
+ *         <element name="keywords" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="websiteurl" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="startdate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="enddate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="duration" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="ecsc39" type="{http://namespace.openaire.eu/oaf}boolOrEmptyType"/>
+ *         <element name="oamandatepublications" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="ecarticle29_3" type="{http://namespace.openaire.eu/oaf}boolOrEmptyType"/>
+ *         <element name="subjects" type="{http://namespace.openaire.eu/oaf}qualifierType"/>
+ *         <element name="fundingtree" type="{http://namespace.openaire.eu/oaf}fundingTreeType"/>
+ *         <element name="originalId" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="collectedfrom" type="{http://namespace.openaire.eu/oaf}namedIdElementType"/>
+ *         <element name="pid" type="{http://namespace.openaire.eu/oaf}qualifierType"/>
+ *         <element name="rels" type="{http://namespace.openaire.eu/oaf}relsType"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "codeOrTitleOrAcronym" +}) +@XmlRootElement(name = "project") +public class Project + implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlElementRefs({ + @XmlElementRef(name = "code", type = JAXBElement.class, required = false), + @XmlElementRef(name = "title", type = JAXBElement.class, required = false), + @XmlElementRef(name = "acronym", type = JAXBElement.class, required = false), + @XmlElementRef(name = "callidentifier", type = JAXBElement.class, required = false), + @XmlElementRef(name = "contactfullname", type = JAXBElement.class, required = false), + @XmlElementRef(name = "contactfax", type = JAXBElement.class, required = false), + @XmlElementRef(name = "contactphone", type = JAXBElement.class, required = false), + @XmlElementRef(name = "contactemail", type = JAXBElement.class, required = false), + @XmlElementRef(name = "contracttype", type = JAXBElement.class, required = false), + @XmlElementRef(name = "keywords", type = JAXBElement.class, required = false), + @XmlElementRef(name = "websiteurl", type = JAXBElement.class, required = false), + @XmlElementRef(name = "startdate", type = JAXBElement.class, required = false), + @XmlElementRef(name = "enddate", type = JAXBElement.class, required = false), + @XmlElementRef(name = "duration", type = JAXBElement.class, required = false), + @XmlElementRef(name = "ecsc39", type = JAXBElement.class, required = false), + @XmlElementRef(name = "oamandatepublications", type = JAXBElement.class, required = false), + @XmlElementRef(name = "ecarticle29_3", type = JAXBElement.class, required = false), + @XmlElementRef(name = "subjects", type = JAXBElement.class, required = false), + @XmlElementRef(name = "fundingtree", type = JAXBElement.class, required = false), + @XmlElementRef(name = "originalId", type = JAXBElement.class, required = false), + @XmlElementRef(name = "collectedfrom", type = JAXBElement.class, required = false), + @XmlElementRef(name = "pid", type = JAXBElement.class, required = false), + @XmlElementRef(name = "rels", type = JAXBElement.class, required = false) + }) + protected List> codeOrTitleOrAcronym; + + /** + * Gets the value of the codeOrTitleOrAcronym 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 codeOrTitleOrAcronym property. + * + *

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

+     *    getCodeOrTitleOrAcronym().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 QualifierType }{@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 Boolean }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * {@link JAXBElement }{@code <}{@link FundingTreeType }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + * {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * {@link JAXBElement }{@code <}{@link RelsType }{@code >} + * + * + */ + public List> getCodeOrTitleOrAcronym() { + if (codeOrTitleOrAcronym == null) { + codeOrTitleOrAcronym = new ArrayList>(); + } + return this.codeOrTitleOrAcronym; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/QualifierType.java b/src/main/java/eu/openaire/oaf/model/base/QualifierType.java new file mode 100644 index 0000000..a40df0c --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/QualifierType.java @@ -0,0 +1,146 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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 qualifierType complex type. + * + *

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

+ * <complexType name="qualifierType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{http://namespace.openaire.eu/oaf}qualifierAttributeGroup"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "qualifierType") +public class QualifierType implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlAttribute(name = "classid", required = true) + protected String classid; + @XmlAttribute(name = "classname", required = true) + protected String classname; + @XmlAttribute(name = "schemeid", required = true) + protected String schemeid; + @XmlAttribute(name = "schemename", required = true) + protected String schemename; + + /** + * Gets the value of the classid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassid() { + return classid; + } + + /** + * Sets the value of the classid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassid(String value) { + this.classid = value; + } + + /** + * Gets the value of the classname property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassname() { + return classname; + } + + /** + * Sets the value of the classname property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassname(String value) { + this.classname = value; + } + + /** + * Gets the value of the schemeid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemeid() { + return schemeid; + } + + /** + * Sets the value of the schemeid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemeid(String value) { + this.schemeid = value; + } + + /** + * Gets the value of the schemename property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemename() { + return schemename; + } + + /** + * Sets the value of the schemename property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemename(String value) { + this.schemename = value; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/RelToType.java b/src/main/java/eu/openaire/oaf/model/base/RelToType.java new file mode 100644 index 0000000..93b5615 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/RelToType.java @@ -0,0 +1,131 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + * Information about the related entity. + *
+ * <?xml version="1.0" encoding="UTF-8"?><p xmlns="http://namespace.openaire.eu/oaf" xmlns:xs="http://www.w3.org/2001/XMLSchema">The semantics of the
+ * 					relationships is expressed by the attributes class and scheme. </p>
+ * 
+ * + * + *

Java class for relToType complex type. + * + *

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

+ * <complexType name="relToType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "relToType", propOrder = { + "value" +}) +public class RelToType implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlValue + protected String value; + @XmlAttribute(name = "class", required = true) + protected String clazz; + @XmlAttribute(name = "type", required = true) + protected String type; + + /** + * 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 clazz property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClazz() { + return clazz; + } + + /** + * Sets the value of the clazz property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClazz(String value) { + this.clazz = 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/src/main/java/eu/openaire/oaf/model/base/RelType.java b/src/main/java/eu/openaire/oaf/model/base/RelType.java new file mode 100644 index 0000000..c31e7b0 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/RelType.java @@ -0,0 +1,317 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +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.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for relType complex type. + * + *

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

+ * <complexType name="relType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <choice maxOccurs="unbounded">
+ *           <element name="to" type="{http://namespace.openaire.eu/oaf}relToType"/>
+ *           <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *           <element name="websiteurl" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
+ *           <choice>
+ *             <group ref="{http://namespace.openaire.eu/oaf}relDataSourceGroup"/>
+ *             <group ref="{http://namespace.openaire.eu/oaf}relResultGroup"/>
+ *             <group ref="{http://namespace.openaire.eu/oaf}relProjectGroup"/>
+ *             <group ref="{http://namespace.openaire.eu/oaf}relOrganizationGroup"/>
+ *             <group ref="{http://namespace.openaire.eu/oaf}fundingGroup"/>
+ *           </choice>
+ *         </choice>
+ *       </sequence>
+ *       <attGroup ref="{http://namespace.openaire.eu/oaf}dataInfoAttributeGroup"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "relType", propOrder = { + "toOrTitleOrWebsiteurl" +}) +public class RelType + implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlElementRefs({ + @XmlElementRef(name = "to", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "title", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "websiteurl", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "officialname", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "datasourcetype", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "collectedfrom", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "url", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "pid", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "dateofacceptance", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "publisher", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "resulttype", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "similarity", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "type", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "code", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "acronym", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "legalname", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "legalshortname", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "country", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "contracttype", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "funding", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false) + }) + protected List> toOrTitleOrWebsiteurl; + @XmlAttribute(name = "inferred") + protected Boolean inferred; + @XmlAttribute(name = "trust") + protected String trust; + @XmlAttribute(name = "inferenceprovenance") + protected String inferenceprovenance; + @XmlAttribute(name = "classid", required = true) + protected String classid; + @XmlAttribute(name = "classname", required = true) + protected String classname; + @XmlAttribute(name = "schemeid", required = true) + protected String schemeid; + @XmlAttribute(name = "schemename", required = true) + protected String schemename; + + /** + * Gets the value of the toOrTitleOrWebsiteurl 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 toOrTitleOrWebsiteurl property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link RelToType }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link Object }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * {@link JAXBElement }{@code <}{@link NamedIdElementType }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link Double }{@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 QualifierType }{@code >} + * {@link JAXBElement }{@code <}{@link FundingFlatType }{@code >} + * + * + */ + public List> getToOrTitleOrWebsiteurl() { + if (toOrTitleOrWebsiteurl == null) { + toOrTitleOrWebsiteurl = new ArrayList>(); + } + return this.toOrTitleOrWebsiteurl; + } + + /** + * Gets the value of the inferred property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isInferred() { + return inferred; + } + + /** + * Sets the value of the inferred property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInferred(Boolean value) { + this.inferred = value; + } + + /** + * Gets the value of the trust property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrust() { + return trust; + } + + /** + * Sets the value of the trust property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrust(String value) { + this.trust = value; + } + + /** + * Gets the value of the inferenceprovenance property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInferenceprovenance() { + return inferenceprovenance; + } + + /** + * Sets the value of the inferenceprovenance property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInferenceprovenance(String value) { + this.inferenceprovenance = value; + } + + /** + * Gets the value of the classid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassid() { + return classid; + } + + /** + * Sets the value of the classid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassid(String value) { + this.classid = value; + } + + /** + * Gets the value of the classname property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassname() { + return classname; + } + + /** + * Sets the value of the classname property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassname(String value) { + this.classname = value; + } + + /** + * Gets the value of the schemeid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemeid() { + return schemeid; + } + + /** + * Sets the value of the schemeid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemeid(String value) { + this.schemeid = value; + } + + /** + * Gets the value of the schemename property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemename() { + return schemename; + } + + /** + * Sets the value of the schemename property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemename(String value) { + this.schemename = value; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/RelsType.java b/src/main/java/eu/openaire/oaf/model/base/RelsType.java new file mode 100644 index 0000000..5d6fe3e --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/RelsType.java @@ -0,0 +1,79 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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.XmlType; + + +/** + * Relationships to other entities. + * + *

Java class for relsType complex type. + * + *

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

+ * <complexType name="relsType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element name="rel" type="{http://namespace.openaire.eu/oaf}relType" minOccurs="0"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "relsType", propOrder = { + "rel" +}) +public class RelsType implements Serializable +{ + + private final static long serialVersionUID = 1L; + protected List rel; + + /** + * Gets the value of the rel 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 rel property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link RelType } + * + * + */ + public List getRel() { + if (rel == null) { + rel = new ArrayList(); + } + return this.rel; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/Result.java b/src/main/java/eu/openaire/oaf/model/base/Result.java new file mode 100644 index 0000000..ba2ed85 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/Result.java @@ -0,0 +1,348 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +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.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.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">
+ *       <choice maxOccurs="unbounded">
+ *         <element name="creator">
+ *           <complexType>
+ *             <simpleContent>
+ *               <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *                 <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="surname" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="ORCID" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="rank" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *               </extension>
+ *             </simpleContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="resulttype" type="{http://namespace.openaire.eu/oaf}qualifierType"/>
+ *         <element name="language" type="{http://namespace.openaire.eu/oaf}qualifierType"/>
+ *         <element name="country" type="{http://namespace.openaire.eu/oaf}dataInfoType"/>
+ *         <element name="subject" type="{http://namespace.openaire.eu/oaf}structuredPropertyElementType"/>
+ *         <element name="title" type="{http://namespace.openaire.eu/oaf}structuredPropertyElementType"/>
+ *         <element name="relevantdate" type="{http://namespace.openaire.eu/oaf}structuredPropertyElementType"/>
+ *         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="dateofacceptance" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="publisher" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="embargoenddate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="source" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="format" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="contributor" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="resourcetype" type="{http://namespace.openaire.eu/oaf}qualifierType"/>
+ *         <element name="coverage" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="bestaccessright" type="{http://namespace.openaire.eu/oaf}qualifierType"/>
+ *         <element name="journal" type="{http://namespace.openaire.eu/oaf}journalType"/>
+ *         <element name="pid" type="{http://namespace.openaire.eu/oaf}structuredPropertyElementType"/>
+ *         <element name="device" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="size" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="version" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="lastmetadataupdate" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="metadataversionnumber" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="originalId" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
+ *         <element name="collectedfrom" type="{http://namespace.openaire.eu/oaf}namedIdElementType" maxOccurs="unbounded"/>
+ *         <element name="context" type="{http://namespace.openaire.eu/oaf}contextType"/>
+ *         <element name="rels" type="{http://namespace.openaire.eu/oaf}relsType"/>
+ *         <element name="instances" type="{http://namespace.openaire.eu/oaf}instancesType"/>
+ *         <element name="citations" type="{http://namespace.openaire.eu/oaf}citationsType" minOccurs="0"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "creatorOrResulttypeOrLanguage" +}) +@XmlRootElement(name = "result") +public class Result + implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlElementRefs({ + @XmlElementRef(name = "creator", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "resulttype", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "language", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "country", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "subject", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "title", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "relevantdate", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "description", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "dateofacceptance", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "publisher", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "embargoenddate", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "source", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "format", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "contributor", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "resourcetype", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "coverage", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "bestaccessright", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "journal", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "pid", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "device", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "size", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "version", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "lastmetadataupdate", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "metadataversionnumber", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "originalId", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "collectedfrom", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "context", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "rels", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "instances", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false), + @XmlElementRef(name = "citations", namespace = "http://namespace.openaire.eu/oaf", type = JAXBElement.class, required = false) + }) + protected List> creatorOrResulttypeOrLanguage; + + /** + * Gets the value of the creatorOrResulttypeOrLanguage 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 creatorOrResulttypeOrLanguage property. + * + *

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link Result.Creator }{@code >} + * {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * {@link JAXBElement }{@code <}{@link DataInfoType }{@code >} + * {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + * {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@code >} + * {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@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 QualifierType }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link QualifierType }{@code >} + * {@link JAXBElement }{@code <}{@link JournalType }{@code >} + * {@link JAXBElement }{@code <}{@link StructuredPropertyElementType }{@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 NamedIdElementType }{@code >} + * {@link JAXBElement }{@code <}{@link ContextType }{@code >} + * {@link JAXBElement }{@code <}{@link RelsType }{@code >} + * {@link JAXBElement }{@code <}{@link InstancesType }{@code >} + * {@link JAXBElement }{@code <}{@link CitationsType }{@code >} + * + * + */ + public List> getCreatorOrResulttypeOrLanguage() { + if (creatorOrResulttypeOrLanguage == null) { + creatorOrResulttypeOrLanguage = new ArrayList>(); + } + return this.creatorOrResulttypeOrLanguage; + } + + + /** + *

Java class for anonymous complex type. + * + *

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

+     * <complexType>
+     *   <simpleContent>
+     *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+     *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="surname" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="ORCID" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="rank" type="{http://www.w3.org/2001/XMLSchema}int" />
+     *     </extension>
+     *   </simpleContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "value" + }) + public static class Creator implements Serializable + { + + private final static long serialVersionUID = 1L; + @XmlValue + protected String value; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "surname") + protected String surname; + @XmlAttribute(name = "ORCID") + protected String orcid; + @XmlAttribute(name = "rank") + protected Integer rank; + + /** + * 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 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; + } + + /** + * Gets the value of the surname property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSurname() { + return surname; + } + + /** + * Sets the value of the surname property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSurname(String value) { + this.surname = value; + } + + /** + * Gets the value of the orcid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getORCID() { + return orcid; + } + + /** + * Sets the value of the orcid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setORCID(String value) { + this.orcid = value; + } + + /** + * Gets the value of the rank property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getRank() { + return rank; + } + + /** + * Sets the value of the rank property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setRank(Integer value) { + this.rank = value; + } + + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/StructuredPropertyElementType.java b/src/main/java/eu/openaire/oaf/model/base/StructuredPropertyElementType.java new file mode 100644 index 0000000..1f85d0e --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/StructuredPropertyElementType.java @@ -0,0 +1,253 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for structuredPropertyElementType complex type. + * + *

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

+ * <complexType name="structuredPropertyElementType">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attGroup ref="{http://namespace.openaire.eu/oaf}dataInfoAttributeGroup"/>
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "structuredPropertyElementType", propOrder = { + "value" +}) +public class StructuredPropertyElementType implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlValue + protected String value; + @XmlAttribute(name = "inferred") + protected Boolean inferred; + @XmlAttribute(name = "trust") + protected String trust; + @XmlAttribute(name = "inferenceprovenance") + protected String inferenceprovenance; + @XmlAttribute(name = "classid", required = true) + protected String classid; + @XmlAttribute(name = "classname", required = true) + protected String classname; + @XmlAttribute(name = "schemeid", required = true) + protected String schemeid; + @XmlAttribute(name = "schemename", required = true) + protected String schemename; + + /** + * 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 inferred property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isInferred() { + return inferred; + } + + /** + * Sets the value of the inferred property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setInferred(Boolean value) { + this.inferred = value; + } + + /** + * Gets the value of the trust property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTrust() { + return trust; + } + + /** + * Sets the value of the trust property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTrust(String value) { + this.trust = value; + } + + /** + * Gets the value of the inferenceprovenance property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInferenceprovenance() { + return inferenceprovenance; + } + + /** + * Sets the value of the inferenceprovenance property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInferenceprovenance(String value) { + this.inferenceprovenance = value; + } + + /** + * Gets the value of the classid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassid() { + return classid; + } + + /** + * Sets the value of the classid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassid(String value) { + this.classid = value; + } + + /** + * Gets the value of the classname property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassname() { + return classname; + } + + /** + * Sets the value of the classname property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassname(String value) { + this.classname = value; + } + + /** + * Gets the value of the schemeid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemeid() { + return schemeid; + } + + /** + * Sets the value of the schemeid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemeid(String value) { + this.schemeid = value; + } + + /** + * Gets the value of the schemename property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSchemename() { + return schemename; + } + + /** + * Sets the value of the schemename property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSchemename(String value) { + this.schemename = value; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/WebresourceType.java b/src/main/java/eu/openaire/oaf/model/base/WebresourceType.java new file mode 100644 index 0000000..1a20094 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/WebresourceType.java @@ -0,0 +1,72 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + + +package eu.openaire.oaf.model.base; + +import java.io.Serializable; +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 webresourceType complex type. + * + *

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

+ * <complexType name="webresourceType">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="url" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "webresourceType", propOrder = { + "url" +}) +public class WebresourceType implements Serializable +{ + + private final static long serialVersionUID = 1L; + @XmlElement(required = true) + protected String url; + + /** + * 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; + } + +} diff --git a/src/main/java/eu/openaire/oaf/model/base/package-info.java b/src/main/java/eu/openaire/oaf/model/base/package-info.java new file mode 100644 index 0000000..ffb1726 --- /dev/null +++ b/src/main/java/eu/openaire/oaf/model/base/package-info.java @@ -0,0 +1,9 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0.1 +// See https://javaee.github.io/jaxb-v2/ +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2021.07.26 at 04:31:46 PM UTC +// + +@javax.xml.bind.annotation.XmlSchema(namespace = "http://namespace.openaire.eu/oaf", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package eu.openaire.oaf.model.base; From 747577510b2b91c64319349539cbe52ac8c52bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gra=C3=A7a?= Date: Tue, 27 Jul 2021 16:14:04 +0100 Subject: [PATCH 05/11] new junit tests --- .../java/eu/openaire/jaxb/SearchTest.java | 84 ++++++++ src/test/resources/projects.xml | 197 ++++++++++++++++++ 2 files changed, 281 insertions(+) create mode 100644 src/test/java/eu/openaire/jaxb/SearchTest.java create mode 100644 src/test/resources/projects.xml diff --git a/src/test/java/eu/openaire/jaxb/SearchTest.java b/src/test/java/eu/openaire/jaxb/SearchTest.java new file mode 100644 index 0000000..98f3bd5 --- /dev/null +++ b/src/test/java/eu/openaire/jaxb/SearchTest.java @@ -0,0 +1,84 @@ +package eu.openaire.jaxb; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import java.io.IOException; +import java.io.InputStream; +/** + * + * @author pgraca + */ +import java.net.MalformedURLException; +import java.net.URL; + +import javax.xml.bind.JAXBException; + +import org.junit.jupiter.api.Test; + +import eu.openaire.jaxb.helper.FundingHelper; +import eu.openaire.jaxb.helper.OpenAIREHandler; +import eu.openaire.jaxb.helper.ProjectHelper; +import eu.openaire.jaxb.model.Response; +import eu.openaire.jaxb.model.Result; +import eu.openaire.oaf.model.base.FundingTreeType; + +public class SearchTest { + private static final String PROJECTS_FILE = "projects.xml"; + + @Test + public void testProjectSpecificCode() throws JAXBException, IOException { + InputStream is = getClass().getClassLoader().getResourceAsStream(PROJECTS_FILE); + + Response response = OpenAIREHandler.unmarshal(is); + is.close(); + Result result = response.getResults().getResult().get(0); + assertNotNull(result); + assertNotNull(result.getMetadata().getEntity().getProject()); + ProjectHelper project = new ProjectHelper( + result.getMetadata().getEntity().getProject().getCodeOrTitleOrAcronym()); + + assertEquals(project.getCodes().stream().findFirst().get(), "231807"); + } + + + @Test + public void testProjectFundingWebSpecificProgram() throws JAXBException, IOException { + InputStream is = getClass().getClassLoader().getResourceAsStream(PROJECTS_FILE); + + Response response = OpenAIREHandler.unmarshal(is); + is.close(); + Result result = response.getResults().getResult().get(0); + assertNotNull(result); + assertNotNull(result.getMetadata().getEntity().getProject()); + ProjectHelper project = new ProjectHelper( + result.getMetadata().getEntity().getProject().getCodeOrTitleOrAcronym()); + FundingTreeType fundingTree = project.getFundingTreeTypes().stream().findFirst().get(); + FundingHelper funding = new FundingHelper(fundingTree.getFundingLevel2OrFundingLevel1OrFundingLevel0()); + + assertEquals(funding.getFirstAvailableFunding().stream().findFirst().get().getName(), "ICT"); + } + + @Test + public void testProjectWebSpecificCode() throws JAXBException, MalformedURLException { + + // Unmarshalling: Converting XML content to Java objects + URL url = new URL("https://api.openaire.eu/search/projects?keywords=epiwork"); + + Response response = OpenAIREHandler.unmarshal(url); + + Result result = response.getResults().getResult().get(0); + + assertNotNull(result); + assertNotNull(result.getMetadata().getEntity().getProject()); + ProjectHelper project = new ProjectHelper( + result.getMetadata().getEntity().getProject().getCodeOrTitleOrAcronym()); + + assertNotNull(project.getCodes()); + assertEquals(project.getCodes().iterator().next(), "231807"); + + } + + +} \ No newline at end of file diff --git a/src/test/resources/projects.xml b/src/test/resources/projects.xml new file mode 100644 index 0000000..151971b --- /dev/null +++ b/src/test/resources/projects.xml @@ -0,0 +1,197 @@ + + +
+ (oaftype exact project) and ( epiwork) + en_US + 10 + 1 + 1 + + +
+ + +
+ corda_______::19f369ecd33496a711ba25edc3ffbd3f + 2018-03-12 + 2021-03-24 +
+ + + + + corda_______::231807 + 231807 + EPIWORK + Developing the Framework for an Epidemic Forecast Infrastructure + 2009-02-01 + 2013-07-31 + FP7-ICT-2007-3 + 0 + false + + false + false + 0.0 + 0.0 + + + ec__________::EC + EC + European Commission + EU + + + ec__________::EC::FP7::SP1::ICT + Information and Communication Technologies + ICT + ec:program + + + ec__________::EC::FP7::SP1 + SP1-Cooperation + SP1 + ec:specificprogram + + + ec__________::EC::FP7 + SEVENTH FRAMEWORK PROGRAMME + FP7 + + ec:frameworkprogram + + + + + + + + false + false + 0.900 + null + + + + + dedup_wf_001::9c5e5b4e613184b9df04d5edebbea44d + + FUNDACAO DA FACULDADE DE CIENCIAS DA UNIVERSIDADE DE LISBOA FP + + + dedup_wf_001::ceee518eca7b7e1ef7f20c872b493c8f + TAU + + Tel Aviv University + + + corda_______::dc6224f5db61aeffd44699ea4d490854 + + FONDAZIONE ISTITUTO PER L'INTERSCAMBIO SCIENTIFICO (I.S.I.) + ISI + + + dedup_wf_001::e38a759d5ffda0b775f6d464aa0a9cc3 + + CREATE-NET (CENTER FOR RESEARCH AND TELECOMMUNICATION EXPERIMENTATION FOR NETWORKED COMMUNITIES) + ASSOCIAZIONE CREATE-NET (CENTER FORRESEARCH AND TELECOMMUNICATION EXPERIMENTATION FOR NETWORKED COMM + + + corda_______::2c0757dd8ca0bf8644d652379e5716fd + MAX PLANCK GESELLSCHAFT ZUR FOERDERUNG DER WISSENSCHAFTEN E.V. + + MPG + + + dedup_wf_001::48cb3ab6d3eeee6a258fb551e480322b + FOHM + FOLKHALSOMYNDIGHETEN + + + + dedup_wf_001::05169b698faf0d1f62a3b81d4801922b + + Fondazione Bruno Kessler + FBK + + + dedup_wf_001::2ea221cce0e3c8273b64d0a1db90f5d8 + + Fundação Calouste Gulbenkian + + + dedup_wf_001::75d8d501c251b7fbaaebbc60aa5ee97f + Katholieke Universiteit Leuven + Katholieke Universiteit Leuven + + + + corda_______::0fcae3f5c9a65b20c162f824df1e213f + Acquisto Inter BV + + Acquisto Inter BV + + + dedup_wf_001::399f47c27113b887c5523b9a335c0f03 + Bar-Ilan University + BIU + + + + dedup_wf_001::9e5bc89c5168b66f91c4ed80febb77c9 + + London School of Hygiene & Tropical Medicine + LSHTM + + + + + + +
+
+ + +
\ No newline at end of file From 26e551a7ce2d828140c2779311f86958723e51a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gra=C3=A7a?= Date: Tue, 27 Jul 2021 16:29:17 +0100 Subject: [PATCH 06/11] client response model --- .../java/eu/openaire/jaxb/model/Header.java | 42 ++++++++++++++++++ .../java/eu/openaire/jaxb/model/Metadata.java | 29 ++++++++++++ .../java/eu/openaire/jaxb/model/Response.java | 44 +++++++++++++++++++ .../java/eu/openaire/jaxb/model/Result.java | 33 ++++++++++++++ .../eu/openaire/jaxb/model/ResultHeader.java | 41 +++++++++++++++++ .../java/eu/openaire/jaxb/model/Results.java | 34 ++++++++++++++ 6 files changed, 223 insertions(+) create mode 100644 src/main/java/eu/openaire/jaxb/model/Header.java create mode 100644 src/main/java/eu/openaire/jaxb/model/Metadata.java create mode 100644 src/main/java/eu/openaire/jaxb/model/Response.java create mode 100644 src/main/java/eu/openaire/jaxb/model/Result.java create mode 100644 src/main/java/eu/openaire/jaxb/model/ResultHeader.java create mode 100644 src/main/java/eu/openaire/jaxb/model/Results.java diff --git a/src/main/java/eu/openaire/jaxb/model/Header.java b/src/main/java/eu/openaire/jaxb/model/Header.java new file mode 100644 index 0000000..a75753a --- /dev/null +++ b/src/main/java/eu/openaire/jaxb/model/Header.java @@ -0,0 +1,42 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package eu.openaire.jaxb.model; + +/** + * + * @author dpie + */ +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + +@XmlRootElement(name = "header") + +public class Header { + @XmlElement(name="query") + private String query; + + @XmlElement(name="locale") + private String locale; + + @XmlElement(name="total") + private String total; + + public String getQuery() { + return query; + } + + public String getLocale() { + return locale; + } + + public String getTotal() { + return total; + } + + + + +} diff --git a/src/main/java/eu/openaire/jaxb/model/Metadata.java b/src/main/java/eu/openaire/jaxb/model/Metadata.java new file mode 100644 index 0000000..3caaef4 --- /dev/null +++ b/src/main/java/eu/openaire/jaxb/model/Metadata.java @@ -0,0 +1,29 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package eu.openaire.jaxb.model; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; + +import eu.openaire.oaf.model.base.Entity; + +/** + * + * @author dpie + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +public class Metadata { + @XmlElement(name="entity", namespace="http://namespace.openaire.eu/oaf") + private Entity entity; + + public Entity getEntity() { + return entity; + } + + +} diff --git a/src/main/java/eu/openaire/jaxb/model/Response.java b/src/main/java/eu/openaire/jaxb/model/Response.java new file mode 100644 index 0000000..964e93f --- /dev/null +++ b/src/main/java/eu/openaire/jaxb/model/Response.java @@ -0,0 +1,44 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package eu.openaire.jaxb.model; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + +/** + * + * @author dpie + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlRootElement(name = "response") + +public class Response { + + @XmlElement(name = "results") + private Results results; + + public Results getResults() { + return results; + } + + public void setResults(Results results) { + this.results = results; + } + @XmlElement(name = "header") + private Header header; + + public Header getHeader() { + return header; + } + + public void setHeader(Header header) { + this.header = header; + } + +} diff --git a/src/main/java/eu/openaire/jaxb/model/Result.java b/src/main/java/eu/openaire/jaxb/model/Result.java new file mode 100644 index 0000000..214bb53 --- /dev/null +++ b/src/main/java/eu/openaire/jaxb/model/Result.java @@ -0,0 +1,33 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package eu.openaire.jaxb.model; + +/** + * + * @author dpie + */ +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; + +@XmlRootElement(name = "result") + +public class Result { + @XmlElement(name="header") + private ResultHeader resultHeader; + + private Metadata metadata; + + public Metadata getMetadata() { + return metadata; + } + + public void setMetadata(Metadata metadata) { + this.metadata = metadata; + } + + + +} diff --git a/src/main/java/eu/openaire/jaxb/model/ResultHeader.java b/src/main/java/eu/openaire/jaxb/model/ResultHeader.java new file mode 100644 index 0000000..877d039 --- /dev/null +++ b/src/main/java/eu/openaire/jaxb/model/ResultHeader.java @@ -0,0 +1,41 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package eu.openaire.jaxb.model; + +/** + * + * @author dpie + */ +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.*; + +@XmlType +public class ResultHeader { + + @XmlElement(name="objIdentifier", namespace="http://www.driver-repository.eu/namespace/dri") + private String driObjectIdentifier; + @XmlElement(name="dateOfCollection", namespace="http://www.driver-repository.eu/namespace/dri") + private String dateOfCollection; + @XmlElement(name="dateOfTransformation", namespace="http://www.driver-repository.eu/namespace/dri") + private String dateOfTransformation; + + + public String getDriObjectIdentifier() { + return driObjectIdentifier; + } + + public String getDateOfCollection() { + return dateOfCollection; + } + + public String getDateOfTransformation() { + return dateOfTransformation; + } + + + + +} diff --git a/src/main/java/eu/openaire/jaxb/model/Results.java b/src/main/java/eu/openaire/jaxb/model/Results.java new file mode 100644 index 0000000..28596d3 --- /dev/null +++ b/src/main/java/eu/openaire/jaxb/model/Results.java @@ -0,0 +1,34 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package eu.openaire.jaxb.model; + +/** + * + * @author dpie + */ +import java.util.ArrayList; +import java.util.List; + +import javax.xml.bind.annotation.XmlType; + +@XmlType +public class Results { + + private List result; + + public List getResult() { + if (result == null) { + result = new ArrayList(); + } + return result; + } + + public void setResult(List result) { + this.getResult().addAll(result); + } + + +} From fdfb2c2dd96c6c898093ff0fc41c5a04616cd174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gra=C3=A7a?= Date: Tue, 27 Jul 2021 16:32:08 +0100 Subject: [PATCH 07/11] XSD model inclusion and support --- src/main/resources/oaf-binding.xjc | 26 ++ src/main/resources/xsd/1.0/oaf-1.0.xsd | 30 ++ .../xsd/1.0/oaf-common-1.0-original.xsd | 298 ++++++++++++++++++ src/main/resources/xsd/1.0/oaf-common-1.0.xsd | 298 ++++++++++++++++++ .../resources/xsd/1.0/oaf-datasource-1.0.xsd | 76 +++++ src/main/resources/xsd/1.0/oaf-org-1.0.xsd | 41 +++ .../xsd/1.0/oaf-project-1.0-original.xsd | 111 +++++++ .../resources/xsd/1.0/oaf-project-1.0.xsd | 111 +++++++ src/main/resources/xsd/1.0/oaf-result-1.0.xsd | 242 ++++++++++++++ 9 files changed, 1233 insertions(+) create mode 100644 src/main/resources/oaf-binding.xjc create mode 100644 src/main/resources/xsd/1.0/oaf-1.0.xsd create mode 100644 src/main/resources/xsd/1.0/oaf-common-1.0-original.xsd create mode 100644 src/main/resources/xsd/1.0/oaf-common-1.0.xsd create mode 100644 src/main/resources/xsd/1.0/oaf-datasource-1.0.xsd create mode 100644 src/main/resources/xsd/1.0/oaf-org-1.0.xsd create mode 100644 src/main/resources/xsd/1.0/oaf-project-1.0-original.xsd create mode 100644 src/main/resources/xsd/1.0/oaf-project-1.0.xsd create mode 100644 src/main/resources/xsd/1.0/oaf-result-1.0.xsd diff --git a/src/main/resources/oaf-binding.xjc b/src/main/resources/oaf-binding.xjc new file mode 100644 index 0000000..337ad85 --- /dev/null +++ b/src/main/resources/oaf-binding.xjc @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/xsd/1.0/oaf-1.0.xsd b/src/main/resources/xsd/1.0/oaf-1.0.xsd new file mode 100644 index 0000000..952ae31 --- /dev/null +++ b/src/main/resources/xsd/1.0/oaf-1.0.xsd @@ -0,0 +1,30 @@ + + + + + This schema describes the XML serialization of the OpenAIRE Research Graph. + For an overview of the model, please check the OpenAIRE Research Graph Data Model at https://doi.org/10.5281/zenodo.2643199 + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/xsd/1.0/oaf-common-1.0-original.xsd b/src/main/resources/xsd/1.0/oaf-common-1.0-original.xsd new file mode 100644 index 0000000..8c52e22 --- /dev/null +++ b/src/main/resources/xsd/1.0/oaf-common-1.0-original.xsd @@ -0,0 +1,298 @@ + + + + + This schema defines common types that can be re-used. + + + + + + + + + + + + + + + + + + + + True if this information has been inferred by the automatic + inference algorithms run by OpenAIRE. + + + + + Value of trust of this information in the range [0,1]. More the + value, more trustworthy is the information. + + + + + Which algorithm inferred the current property. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Relationships to other entities. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Tells if the related record is about a publication or a + dataset. + + + + + + The similarity degree expressed in the range (0,1]. This + field is avaiable only when the to/@class is one of + {hasAmongTopNSimilarDocuments, + isAmongTopNSimilarDocuments} + + + + + The similarity degree expressed in the range (0,1]. This + field is avaiable only when the to/@class is one of + {hasAmongTopNSimilarDocuments, + isAmongTopNSimilarDocuments} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Information about the related entity.

The semantics of the + relationships is expressed by the attributes class and scheme.

+
+
+ + + + + + The type of the related entity.

Allowed values are: + project, organization, datasource, result, person.

+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/src/main/resources/xsd/1.0/oaf-common-1.0.xsd b/src/main/resources/xsd/1.0/oaf-common-1.0.xsd new file mode 100644 index 0000000..7e0bf35 --- /dev/null +++ b/src/main/resources/xsd/1.0/oaf-common-1.0.xsd @@ -0,0 +1,298 @@ + + + + + This schema defines common types that can be re-used. + + + + + + + + + + + + + + + + + + + + True if this information has been inferred by the automatic + inference algorithms run by OpenAIRE. + + + + + Value of trust of this information in the range [0,1]. More the + value, more trustworthy is the information. + + + + + Which algorithm inferred the current property. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Relationships to other entities. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Tells if the related record is about a publication or a + dataset. + + + + + + The similarity degree expressed in the range (0,1]. This + field is avaiable only when the to/@class is one of + {hasAmongTopNSimilarDocuments, + isAmongTopNSimilarDocuments} + + + + + The similarity degree expressed in the range (0,1]. This + field is avaiable only when the to/@class is one of + {hasAmongTopNSimilarDocuments, + isAmongTopNSimilarDocuments} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Information about the related entity.

The semantics of the + relationships is expressed by the attributes class and scheme.

+
+
+ + + + + + The type of the related entity.

Allowed values are: + project, organization, datasource, result, person.

+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/src/main/resources/xsd/1.0/oaf-datasource-1.0.xsd b/src/main/resources/xsd/1.0/oaf-datasource-1.0.xsd new file mode 100644 index 0000000..8b4f99f --- /dev/null +++ b/src/main/resources/xsd/1.0/oaf-datasource-1.0.xsd @@ -0,0 +1,76 @@ + + + + This schema describes elements and properties of OpenAIRE datasources: https://issue.openaire.research-infrastructures.eu/projects/openaire2020-wiki/wiki/Core_entity_datasource + + + + + + + + + + + + + + + + For allowed values check terms in:http://api.openaire.eu/vocabularies/dnet:datasource_typologies + + + + + + Level of compatibility of this datasource with regards to the + guidelines. +

For allowed values check: + http://api.openaire.eu/vocabularies/dnet:datasourceCompatibilityLevel +

+
+
+
+ + + When this datasource has been validated by the + OpenAire + Validator. + + + + + + + + + + Subjects and keywords. +

For allowed values check: + http://api.openaire.eu/vocabularies/dnet:result_subjects +

+
+
+
+ + + + Identifier and name of the datasource from which + this datasource has + been collected from. + + + + + + + Relationships to other entities. + + + + +
+
+
+
diff --git a/src/main/resources/xsd/1.0/oaf-org-1.0.xsd b/src/main/resources/xsd/1.0/oaf-org-1.0.xsd new file mode 100644 index 0000000..3c46fca --- /dev/null +++ b/src/main/resources/xsd/1.0/oaf-org-1.0.xsd @@ -0,0 +1,41 @@ + + + + This schema describes elements and properties of OpenAIRE entities of type organization: https://issue.openaire.research-infrastructures.eu/projects/openaire2020-wiki/wiki/Core_entity_organization + + + + + + + + + + + + + + + Countries in ISO 3166-1 alpha-2. + + + + + + Identifier and name of the datasource from which this + organization has been collected from. + + + + + + Relationships to other entities. + + + + + + + + diff --git a/src/main/resources/xsd/1.0/oaf-project-1.0-original.xsd b/src/main/resources/xsd/1.0/oaf-project-1.0-original.xsd new file mode 100644 index 0000000..abcba4d --- /dev/null +++ b/src/main/resources/xsd/1.0/oaf-project-1.0-original.xsd @@ -0,0 +1,111 @@ + + + + This schema describes elements and properties of OpenAIRE project entity: https://issue.openaire.research-infrastructures.eu/projects/openaire2020-wiki/wiki/Core_entity_project + + + + + + + + + + Project code as assigned by the project's funder. + + + + + + + Identifier of the call for proposal. + + + + + + + + + + + + + + + True if the project has the special clause 39. Available + only for EC FP7 funded projects. + + + + + True if the project's funding mandates the availability of project's publications in Open Access. + + + + + True if the project is under the EC Open Data Pilot. Available only for EC H2020 funded projects. + + + + + + + + + Identifier and name of the datasource from which this + project has been collected from. + + + + + + Relationships to other entities. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/xsd/1.0/oaf-project-1.0.xsd b/src/main/resources/xsd/1.0/oaf-project-1.0.xsd new file mode 100644 index 0000000..f701ba5 --- /dev/null +++ b/src/main/resources/xsd/1.0/oaf-project-1.0.xsd @@ -0,0 +1,111 @@ + + + + This schema describes elements and properties of OpenAIRE project entity: https://issue.openaire.research-infrastructures.eu/projects/openaire2020-wiki/wiki/Core_entity_project + + + + + + + + + + Project code as assigned by the project's funder. + + + + + + + Identifier of the call for proposal. + + + + + + + + + + + + + + + True if the project has the special clause 39. Available + only for EC FP7 funded projects. + + + + + True if the project's funding mandates the availability of project's publications in Open Access. + + + + + True if the project is under the EC Open Data Pilot. Available only for EC H2020 funded projects. + + + + + + + + + Identifier and name of the datasource from which this + project has been collected from. + + + + + + Relationships to other entities. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/xsd/1.0/oaf-result-1.0.xsd b/src/main/resources/xsd/1.0/oaf-result-1.0.xsd new file mode 100644 index 0000000..2ffd398 --- /dev/null +++ b/src/main/resources/xsd/1.0/oaf-result-1.0.xsd @@ -0,0 +1,242 @@ + + + + This schema describes elements and properties of the OpenAIRE Result entity. For an overview of the model, please check the OpenAIRE Research Graph Data Model at https://doi.org/10.5281/zenodo.2643199 + + + + + + + + + + + + + + + + + + + + + + Tells if this record is about a publication or a dataset. +

For allowed values check: + http://api.openaire.eu/vocabularies/dnet:result_typologies

+
+
+
+ + + + + + Title of this research result.

Different types of + titles are allowed: see http://api.openaire.eu/vocabularies/dnet:dataCite_title

+
+
+
+ + + + + + + + The semantics of this field is inherited from dc:source in + Dublin Core. + + + + + + + This field is valid only if resulttype is "dataset". It + expresses the nature of the dataset.

For allowed values check: + http://api.openaire.eu/vocabularies/dnet:publication_resource

+
+
+
+ + + + The best access right available for this result among the + available licenses of its children elements.

For allowed values + check: http://api.openaire.eu/vocabularies/dnet:access_modes

+
+
+
+ + + + Persistent identifier.

For allowed pid systems check: + http://api.openaire.eu/vocabularies/dnet:pid_types

+
+
+
+ + + This field is valid only if resulttype is "dataset". It + contains information about the device used to generate the dataset. + + + + + + This field is valid only if resulttype is "dataset". It + contains information about the size of the dataset. + + + + + This field is valid only if resulttype is "dataset". It + contains information about the version of the dataset. + + + + + + This field is valid only if resulttype is "dataset". It + is the last update date of the metadata of the dataset. + + + + + + This field is valid only if resulttype is "dataset". It + contains information about the version of the metadata of the dataset. + + + + + + + Identifier and name of the datasource from which this + result has been collected from (e.g., "OpenDOAR"). + + + + + Research community, initiative, infrastructure or funding agency related to this result. + + + + + Relationships to other entities. + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Actual digital representation of the publication or dataset. + + + + + + + + + + + + License to access this actual manifestation of the + result. Typically it is a URL. OpenAIRE does not yet attempt any harmonization and reflect the original values that are available in the collected metadata records. + + + + + + + Type of the instance, for example: article, thesis, etc. +

For allowed values check: http://api.openaire.eu/vocabularies/dnet:publication_resource +

+
+
+
+ + + Datasource from which OpenAIRE collected the description of this instance. + + + + + Datasource hosting this file. + + + + + + + + Article/Book Processing Charge + + + + + Currency for the value in processingchargeamount + + + + + Peer-review status + + +
+ +
+ + + + + + + +
From 90156ee0db5798e20c188a38eb29adb34f5c4970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gra=C3=A7a?= Date: Tue, 27 Jul 2021 16:32:51 +0100 Subject: [PATCH 08/11] helper classes to help with using the model --- .../openaire/jaxb/helper/FundingHelper.java | 61 +++++ .../openaire/jaxb/helper/OpenAIREHandler.java | 73 ++++++ .../openaire/jaxb/helper/ProjectHelper.java | 210 ++++++++++++++++++ 3 files changed, 344 insertions(+) create mode 100644 src/main/java/eu/openaire/jaxb/helper/FundingHelper.java create mode 100644 src/main/java/eu/openaire/jaxb/helper/OpenAIREHandler.java create mode 100644 src/main/java/eu/openaire/jaxb/helper/ProjectHelper.java diff --git a/src/main/java/eu/openaire/jaxb/helper/FundingHelper.java b/src/main/java/eu/openaire/jaxb/helper/FundingHelper.java new file mode 100644 index 0000000..cbba853 --- /dev/null +++ b/src/main/java/eu/openaire/jaxb/helper/FundingHelper.java @@ -0,0 +1,61 @@ +package eu.openaire.jaxb.helper; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.xml.bind.JAXBElement; + +import eu.openaire.oaf.model.base.FundingType; + +public class FundingHelper { + private Map> fundingTypeProperties; + + public FundingHelper (List> fundingProperties) { + this.fundingTypeProperties = new HashMap>(); + + for (JAXBElement element : fundingProperties) { + String nodeName = element.getName().getLocalPart(); + String nodeType = element.getDeclaredType().getSimpleName(); + Object castValue = element.getDeclaredType().cast(element.getValue()); + + switch (nodeType) { + case "FundingType": + Collection fundingTypeCollection = this.fundingTypeProperties.getOrDefault(nodeName, + new ArrayList<>()); + fundingTypeCollection.add((FundingType) castValue); + this.fundingTypeProperties.put(nodeName, fundingTypeCollection); + break; + } + } + + } + + public Collection getFirstAvailableFunding() { + if (this.fundingTypeProperties.containsKey("funding_level_2")) { + return getFundingTypeValue("funding_level_2"); + } + if (this.fundingTypeProperties.containsKey("funding_level_1")) { + return getFundingTypeValue("funding_level_1"); + } + return getFundingTypeValue("funding_level_0"); + } + + public Collection getFundingLevel2() { + return getFundingTypeValue("funding_level_2"); + } + + public Collection getFundingLevel1() { + return getFundingTypeValue("funding_level_1"); + } + + public Collection getFundingLevel0() { + return getFundingTypeValue("funding_level_0"); + } + + private Collection getFundingTypeValue(String fieldName) { + return this.fundingTypeProperties.getOrDefault(fieldName,new ArrayList<>()); + } +} diff --git a/src/main/java/eu/openaire/jaxb/helper/OpenAIREHandler.java b/src/main/java/eu/openaire/jaxb/helper/OpenAIREHandler.java new file mode 100644 index 0000000..68af9df --- /dev/null +++ b/src/main/java/eu/openaire/jaxb/helper/OpenAIREHandler.java @@ -0,0 +1,73 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package eu.openaire.jaxb.helper; + +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileWriter; +import java.io.IOException; +import java.io.InputStream; +import java.net.URL; + +import javax.xml.bind.JAXBContext; +import javax.xml.bind.JAXBException; +import javax.xml.bind.Marshaller; +import javax.xml.bind.Unmarshaller; + +import eu.openaire.jaxb.model.Response; + +/** + * This Class handles the Marshaling from provided sources like URL or + * InputStream + * + * @author dpie + * @author pgraca + * + */ +public class OpenAIREHandler { + + // Export: Marshalling + public static void marshal(Response response, File selectedFile) throws IOException, JAXBException { + JAXBContext context; + BufferedWriter writer = null; + writer = new BufferedWriter(new FileWriter(selectedFile)); + context = JAXBContext.newInstance(Response.class); + Marshaller m = context.createMarshaller(); + m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); + m.marshal(response, writer); + writer.close(); + } + + // Import: Unmarshalling + public static Response unmarshal(URL importFile) throws JAXBException { + Response response = null; + JAXBContext context; + + context = JAXBContext.newInstance(Response.class); + Unmarshaller um = context.createUnmarshaller(); + response = (Response) um.unmarshal(importFile); + + return response; + } + + /** + * Unmarshal and returns a Response from an InputStream + * + * @param iStream + * @return + * @throws JAXBException + */ + public static Response unmarshal(InputStream iStream) throws JAXBException { + Response response = null; + JAXBContext context; + + context = JAXBContext.newInstance(Response.class); + Unmarshaller um = context.createUnmarshaller(); + response = (Response) um.unmarshal(iStream); + + return response; + } +} diff --git a/src/main/java/eu/openaire/jaxb/helper/ProjectHelper.java b/src/main/java/eu/openaire/jaxb/helper/ProjectHelper.java new file mode 100644 index 0000000..41d9f12 --- /dev/null +++ b/src/main/java/eu/openaire/jaxb/helper/ProjectHelper.java @@ -0,0 +1,210 @@ +package eu.openaire.jaxb.helper; + +import java.io.Serializable; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.xml.bind.JAXBElement; + +import eu.openaire.oaf.model.base.FundingTreeType; +import eu.openaire.oaf.model.base.NamedIdElementType; +import eu.openaire.oaf.model.base.QualifierType; +import eu.openaire.oaf.model.base.RelsType; + +/** + * This ProjectHelper is a way to facilitate api methods for Project since the + * only one provided (because of the flexible schema model) is + * getCodeOrTitleOrAcronym + * + * Each field is returned as a collection because each Element could have + * multiple instances + * + * @author pgraca + * + */ +public class ProjectHelper { + private Map> stringTypeProperties; + private Map> fundingTreeTypeProperties; + private Map> namedIdElementTypeProperties; + private Map> qualifierTypeProperties; + private Map> booleanTypeProperties; + private Map> relsTypeProperties; + + public ProjectHelper(List> projectProperties) { + this.stringTypeProperties = new HashMap>(); + this.fundingTreeTypeProperties = new HashMap>(); + this.namedIdElementTypeProperties = new HashMap>(); + this.qualifierTypeProperties = new HashMap>(); + this.booleanTypeProperties = new HashMap>(); + this.relsTypeProperties = new HashMap>(); + + for (JAXBElement element : projectProperties) { + String nodeName = element.getName().getLocalPart(); + String nodeType = element.getDeclaredType().getSimpleName(); + Object castValue = element.getDeclaredType().cast(element.getValue()); + + switch (nodeType) { + case "String": + Collection stringCollection = this.stringTypeProperties.getOrDefault(nodeName, + new ArrayList<>()); + stringCollection.add((String) castValue); + this.stringTypeProperties.put(nodeName, stringCollection); + break; + case "FundingTreeType": + Collection fundingTreeTypeCollection = this.fundingTreeTypeProperties + .getOrDefault(nodeName, new ArrayList<>()); + fundingTreeTypeCollection.add((FundingTreeType) castValue); + this.fundingTreeTypeProperties.put(nodeName, fundingTreeTypeCollection); + break; + case "NamedIdElementType": + Collection namedIdElementTypeCollection = this.namedIdElementTypeProperties + .getOrDefault(nodeName, new ArrayList<>()); + namedIdElementTypeCollection.add((NamedIdElementType) castValue); + this.namedIdElementTypeProperties.put(nodeName, namedIdElementTypeCollection); + break; + case "QualifierType": + Collection qualifierTypeCollection = this.qualifierTypeProperties.getOrDefault(nodeName, + new ArrayList<>()); + qualifierTypeCollection.add((QualifierType) castValue); + this.qualifierTypeProperties.put(nodeName, qualifierTypeCollection); + break; + case "Boolean": + Collection booleanTypeCollection = this.booleanTypeProperties.getOrDefault(nodeName, + new ArrayList<>()); + booleanTypeCollection.add((Boolean) castValue); + this.booleanTypeProperties.put(nodeName, booleanTypeCollection); + break; + case "RelsType": + Collection relsTypeCollection = this.relsTypeProperties.getOrDefault(nodeName, + new ArrayList<>()); + relsTypeCollection.add((RelsType) castValue); + this.relsTypeProperties.put(nodeName, relsTypeCollection); + break; + + } + + } + } + + public Collection getCodes() { + return getStringValue("code"); + } + + public Collection getAcronyms() { + return getStringValue("acronym"); + } + + public Collection getCallIdentifiers() { + return getStringValue("callidentifier"); + } + + public Collection getTitles() { + return getStringValue("title"); + } + + public Collection getStartDates() { + return getStringValue("startdate"); + } + + public Collection getDurations() { + return getStringValue("duration"); + } + + public Collection getEndDates() { + return getStringValue("enddate"); + } + + public Collection getOriginalIds() { + return getStringValue("originalId"); + } + + public Collection getContactFullNames() { + return getStringValue("contactfullname"); + } + + public Collection getContactFaxes() { + return getStringValue("contactfax"); + } + + public Collection getContactPhones() { + return getStringValue("contactphone"); + } + + public Collection getContactEmails() { + return getStringValue("contactemail"); + } + + public Collection getKeywords() { + return getStringValue("keywords"); + } + + public Collection getWebsiteUrls() { + return getStringValue("websiteurl"); + } + + public Collection getECArticle29_3s() { + // TODO: should be boolean + return getStringValue("ecarticle29_3"); + } + + public Collection getECSc39s() { + // TODO: should be boolean + return getStringValue("ecsc39"); + } + + public Collection getOAMandatePublications() { + return getBooleanValue("oamandatepublications"); + } + + public Collection getFundingTreeTypes() { + return getFundingTypeValue("fundingtree"); + } + + public Collection getRels() { + return getRelsTypeValue("rels"); + } + + public Collection getContractTypes() { + return getQualifierTypeValue("contracttype"); + } + + public Collection getSubjects() { + return getQualifierTypeValue("subjects"); + } + + public Collection getPids() { + return getQualifierTypeValue("pid"); + } + + public Collection getCollectedFroms() { + return getNamedIdElementTypeValue("collectedfrom"); + } + + private Collection getStringValue(String fieldName) { + return this.stringTypeProperties.getOrDefault(fieldName,new ArrayList<>()); + } + + private Collection getFundingTypeValue(String fieldName) { + return this.fundingTreeTypeProperties.getOrDefault(fieldName,new ArrayList<>()); + } + + private Collection getNamedIdElementTypeValue(String fieldName) { + return this.namedIdElementTypeProperties.getOrDefault(fieldName,new ArrayList<>()); + } + + private Collection getQualifierTypeValue(String fieldName) { + return this.qualifierTypeProperties.getOrDefault(fieldName,new ArrayList<>()); + } + + private Collection getBooleanValue(String fieldName) { + return this.booleanTypeProperties.getOrDefault(fieldName,new ArrayList<>()); + } + + private Collection getRelsTypeValue(String fieldName) { + return this.relsTypeProperties.getOrDefault(fieldName,new ArrayList<>()); + } + +} From fdb590d18f4998fe091df2a7ec5f17da5c2e4fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gra=C3=A7a?= Date: Tue, 27 Jul 2021 16:33:49 +0100 Subject: [PATCH 09/11] maven dependencies for testing and jaxb --- pom.xml | 75 ++++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 56 insertions(+), 19 deletions(-) diff --git a/pom.xml b/pom.xml index e49f086..8fe810b 100755 --- a/pom.xml +++ b/pom.xml @@ -1,21 +1,58 @@ - - 4.0.0 - eu.openaire - funders-model - 1.0.1 - jar - - - javax.xml.bind - jaxb-api - 2.3.1 - - - - UTF-8 - 11 - 11 - - openairefundersjaxbmodel + + 4.0.0 + eu.openaire + funders-model + 2.0.0 + jar + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.22.0 + + + + + + + javax.xml.bind + jaxb-api + 2.3.1 + + + com.sun.xml.bind + jaxb-core + 2.3.0.1 + + + com.sun.xml.bind + jaxb-impl + 2.3.1 + + + org.javassist + javassist + 3.25.0-GA + + + + + org.junit.jupiter + junit-jupiter-engine + 5.3.1 + test + + + + + UTF-8 + 11 + 11 + + openairefundersjaxbmodel \ No newline at end of file From 7abdf78840048828ab365b6c0cb0277b72efa865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gra=C3=A7a?= Date: Tue, 27 Jul 2021 16:36:33 +0100 Subject: [PATCH 10/11] adding usage examples to README.md --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index d54b4de..a2ca1aa 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,27 @@ This repository contains the data model used in the OpenAIRE Funders API. Use this JAR as a dependency in projects for marshalling and unmarshalling OpenAIRE Funders API. +## Usage examples + + InputStream is = getClass().getClassLoader().getResourceAsStream("example.xml"); + + Response response = OpenAIREHandler.unmarshal(is); + is.close(); + + //We can have multiple results, let's pick the first one + Result result = response.getResults().getResult().get(0); + + assertNotNull(result); + assertNotNull(result.getMetadata().getEntity().getProject()); + + ProjectHelper projectHelper = new ProjectHelper( + result.getMetadata().getEntity().getProject().getCodeOrTitleOrAcronym()); + + + // get the first item (according to the model can have multiple) + System.out.println ("Project Code: " + projectHelper.getCodes().stream().findFirst().get()); + + // get all titles in a project + for (String title : projectHelper.getTitles()) { + System.out.println("Title: " + title); + } From bc74b48bf615eddfefdb6082b4774642c872a697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Gra=C3=A7a?= Date: Tue, 27 Jul 2021 16:52:48 +0100 Subject: [PATCH 11/11] #changelog --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d33d692 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,12 @@ +## Version 2.0.0 + - Update pom.xml + - fix results model convert result to a list + - fix example result + - remove old model + - new model based on jaxb extraction + - new junit tests + - client response model + - XSD model inclusion and support + - helper classes to help with using the model + - maven dependencies for testing and jaxb + - adding usage examples to README.md \ No newline at end of file