diff --git a/pom.xml b/pom.xml index 0a0158e..f68efed 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ 4.0.0 fr.xelians sipg - 1.35 + 1.36 jar @@ -16,7 +16,7 @@ The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt + https://www.apache.org/licenses/LICENSE-2.0.txt @@ -49,8 +49,6 @@ UTF-8 17 17 - 3.2.1 - 3.6.0 @@ -116,57 +114,52 @@ com.fasterxml.jackson.datatype jackson-datatype-jsr310 - 2.17.0 + 2.17.2 com.fasterxml.jackson.core jackson-core - 2.17.0 + 2.17.2 com.fasterxml.jackson.core jackson-databind - 2.17.0 + 2.17.2 commons-codec commons-codec - 1.17.0 + 1.17.1 org.apache.commons commons-lang3 - 3.14.0 + 3.17.0 org.apache.commons commons-compress - 1.26.1 + 1.27.1 commons-io commons-io - 2.16.1 - - - com.github.junrar - junrar - 7.5.5 + 2.17.0 org.slf4j slf4j-api - 2.0.12 + 2.0.16 uk.gov.nationalarchives droid-core - 6.7.0 + 6.8.0 org.glassfish.jaxb @@ -195,35 +188,34 @@ org.apache.pdfbox pdfbox - 3.0.1 + 3.0.2 test org.apache.commons commons-csv - 1.10.0 + 1.12.0 test org.junit.jupiter junit-jupiter-engine - 5.10.2 + 5.11.2 test ch.qos.logback logback-classic - 1.5.6 + 1.5.11 test - maven-source-plugin - ${maven.source.version} + 3.3.1 attach-source @@ -300,15 +292,17 @@ + org.apache.maven.plugins maven-pmd-plugin - 3.21.2 + 3.23.0 true ${project.build.sourceEncoding} @@ -398,7 +392,7 @@ org.jvnet.jaxb jaxb-maven-plugin - 4.0.0 + 4.0.8 @@ -413,6 +407,7 @@ binding.xjb src/main/resources/seda-2.2/seda-vitam.cat + true -Xinheritance -Xannotate @@ -422,9 +417,8 @@ org.jvnet.jaxb jaxb-plugin-annotate - 3.0.1 + 4.0.8 - @@ -453,7 +447,7 @@ org.apache.maven.plugins maven-javadoc-plugin - ${javadoc.source.version} + 3.10.1 ${java.home}/bin/javadoc org.*:uk.*:fr.gouv.* @@ -471,7 +465,7 @@ org.apache.maven.plugins maven-gpg-plugin - 3.0.1 + 3.2.3 sign-artifacts diff --git a/src/main/java/META-INF/sun-jaxb.episode b/src/main/java/META-INF/sun-jaxb.episode index 64b5f4c..d5f4863 100644 --- a/src/main/java/META-INF/sun-jaxb.episode +++ b/src/main/java/META-INF/sun-jaxb.episode @@ -1,686 +1,348 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AccessRuleType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AccessRuleType.java index 775cad4..6d1e6c0 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AccessRuleType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AccessRuleType.java @@ -1,29 +1,28 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlElements; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de cet ArchiveUnit. - * + * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de + * cet ArchiveUnit. + * *

Java class for AccessRuleType complex type. - * + * *

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

{@code
  * 
  *   
@@ -42,112 +41,98 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AccessRuleType", propOrder = { - "ruleAndStartDate", - "preventInheritance", - "refNonRuleId" -}) +@XmlType( + name = "AccessRuleType", + propOrder = {"ruleAndStartDate", "preventInheritance", "refNonRuleId"}) public class AccessRuleType { - @XmlElements({ - @XmlElement(name = "Rule", type = RuleIdType.class), - @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) - }) - protected List ruleAndStartDate; - @XmlElement(name = "PreventInheritance", defaultValue = "false") - protected Boolean preventInheritance; - @XmlElement(name = "RefNonRuleId") - protected List refNonRuleId; + @XmlElements({ + @XmlElement(name = "Rule", type = RuleIdType.class), + @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) + }) + protected List ruleAndStartDate; - /** - * Gets the value of the ruleAndStartDate 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the ruleAndStartDate property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link RuleIdType } - * {@link XMLGregorianCalendar } - * - * - * @return - * The value of the ruleAndStartDate property. - */ - public List getRuleAndStartDate() { - if (ruleAndStartDate == null) { - ruleAndStartDate = new ArrayList<>(); - } - return this.ruleAndStartDate; - } + /** + * Indique si les règles de gestion héritées des ArchiveUnit parents doivent être ignorées pour + * l’ArchiveUnit concerné. + */ + @XmlElement(name = "PreventInheritance", defaultValue = "false") + protected Boolean preventInheritance; - /** - * Gets the value of the preventInheritance property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isPreventInheritance() { - return preventInheritance; - } + /** Identifiant de la règle à désactiver à partir de cette ArchiveUnit. */ + @XmlElement(name = "RefNonRuleId") + protected List refNonRuleId; - /** - * Sets the value of the preventInheritance property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPreventInheritance(Boolean value) { - this.preventInheritance = value; + /** + * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType } {@link + * XMLGregorianCalendar } + * + * @return The value of the ruleAndStartDate property. + */ + public List getRuleAndStartDate() { + if (ruleAndStartDate == null) { + ruleAndStartDate = new ArrayList<>(); } + return this.ruleAndStartDate; + } - /** - * Gets the value of the refNonRuleId 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the refNonRuleId property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link RuleIdType } - * - * - * @return - * The value of the refNonRuleId property. - */ - public List getRefNonRuleId() { - if (refNonRuleId == null) { - refNonRuleId = new ArrayList<>(); - } - return this.refNonRuleId; - } + /** + * Indique si les règles de gestion héritées des ArchiveUnit parents doivent être ignorées pour + * l’ArchiveUnit concerné. + * + * @return possible object is {@link Boolean } + */ + public Boolean isPreventInheritance() { + return preventInheritance; + } + + /** + * Sets the value of the preventInheritance property. + * + * @param value allowed object is {@link Boolean } + * @see #isPreventInheritance() + */ + public void setPreventInheritance(Boolean value) { + this.preventInheritance = value; + } + /** + * Identifiant de la règle à désactiver à partir de cette ArchiveUnit. + * + *

Gets the value of the refNonRuleId 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 refNonRuleId property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType } + * + * @return The value of the refNonRuleId property. + */ + public List getRefNonRuleId() { + if (refNonRuleId == null) { + refNonRuleId = new ArrayList<>(); + } + return this.refNonRuleId; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AcknowledgementType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AcknowledgementType.java index 60760aa..69e5e3b 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AcknowledgementType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AcknowledgementType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -12,12 +11,11 @@ import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for AcknowledgementType complex type. - * + * Java class for AcknowledgementType complex type. + * *

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

{@code
  * 
  *   
@@ -31,96 +29,79 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AcknowledgementType", propOrder = { - "messageReceivedIdentifier", - "sender", - "receiver" -}) -public class AcknowledgementType - extends MessageType -{ +@XmlType( + name = "AcknowledgementType", + propOrder = {"messageReceivedIdentifier", "sender", "receiver"}) +public class AcknowledgementType extends MessageType { + + /** Identifiant du message reçu. */ + @XmlElement(name = "MessageReceivedIdentifier", required = true) + protected IdentifierType messageReceivedIdentifier; - @XmlElement(name = "MessageReceivedIdentifier", required = true) - protected IdentifierType messageReceivedIdentifier; - @XmlElement(name = "Sender", required = true) - protected OrganizationWithIdType sender; - @XmlElement(name = "Receiver", required = true) - protected OrganizationWithIdType receiver; + /** Expéditeur du message. */ + @XmlElement(name = "Sender", required = true) + protected OrganizationWithIdType sender; - /** - * Gets the value of the messageReceivedIdentifier property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getMessageReceivedIdentifier() { - return messageReceivedIdentifier; - } + /** Destinataire du message. */ + @XmlElement(name = "Receiver", required = true) + protected OrganizationWithIdType receiver; - /** - * Sets the value of the messageReceivedIdentifier property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setMessageReceivedIdentifier(IdentifierType value) { - this.messageReceivedIdentifier = value; - } + /** + * Identifiant du message reçu. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getMessageReceivedIdentifier() { + return messageReceivedIdentifier; + } - /** - * Gets the value of the sender property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getSender() { - return sender; - } + /** + * Sets the value of the messageReceivedIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getMessageReceivedIdentifier() + */ + public void setMessageReceivedIdentifier(IdentifierType value) { + this.messageReceivedIdentifier = value; + } - /** - * Sets the value of the sender property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setSender(OrganizationWithIdType value) { - this.sender = value; - } + /** + * Expéditeur du message. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getSender() { + return sender; + } - /** - * Gets the value of the receiver property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getReceiver() { - return receiver; - } + /** + * Sets the value of the sender property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getSender() + */ + public void setSender(OrganizationWithIdType value) { + this.sender = value; + } - /** - * Sets the value of the receiver property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setReceiver(OrganizationWithIdType value) { - this.receiver = value; - } + /** + * Destinataire du message. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getReceiver() { + return receiver; + } + /** + * Sets the value of the receiver property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getReceiver() + */ + public void setReceiver(OrganizationWithIdType value) { + this.receiver = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AgentType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AgentType.java index 947cfde..f82512e 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AgentType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AgentType.java @@ -1,15 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; @@ -17,15 +13,17 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - +import java.util.ArrayList; +import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** * Informations décrivant une personne physique ou morale. - * + * *

Java class for AgentType complex type. - * + * *

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

{@code
  * 
  *   
@@ -38,529 +36,484 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AgentType", propOrder = { - "firstName", - "birthName", - "fullName", - "givenName", - "gender", - "birthDate", - "birthPlace", - "deathDate", - "deathPlace", - "nationality", - "corpname", - "identifier", - "function", - "activity", - "position", - "role", - "mandate" -}) +@XmlType( + name = "AgentType", + propOrder = { + "firstName", + "birthName", + "fullName", + "givenName", + "gender", + "birthDate", + "birthPlace", + "deathDate", + "deathPlace", + "nationality", + "corpname", + "identifier", + "function", + "activity", + "position", + "role", + "mandate" + }) public class AgentType { - @XmlElement(name = "FirstName") - protected String firstName; - @XmlElement(name = "BirthName") - protected String birthName; - @XmlElement(name = "FullName") - protected String fullName; - @XmlElement(name = "GivenName") - protected String givenName; - @XmlElement(name = "Gender") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String gender; - @XmlElement(name = "BirthDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar birthDate; - @XmlElement(name = "BirthPlace") - protected BirthOrDeathPlaceType birthPlace; - @XmlElement(name = "DeathDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar deathDate; - @XmlElement(name = "DeathPlace") - protected BirthOrDeathPlaceType deathPlace; - @XmlElement(name = "Nationality") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List nationality; - @XmlElement(name = "Corpname") - protected String corpname; - @XmlElement(name = "Identifier") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List identifier; - @XmlElement(name = "Function") - protected List function; - @XmlElement(name = "Activity") - protected List activity; - @XmlElement(name = "Position") - protected List position; - @XmlElement(name = "Role") - protected List role; - @XmlElement(name = "Mandate") - protected List mandate; - - /** - * Gets the value of the firstName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFirstName() { - return firstName; - } - - /** - * Sets the value of the firstName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFirstName(String value) { - this.firstName = value; - } - - /** - * Gets the value of the birthName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getBirthName() { - return birthName; - } - - /** - * Sets the value of the birthName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBirthName(String value) { - this.birthName = value; + /** Prénom d'une personne. */ + @XmlElement(name = "FirstName") + protected String firstName; + + /** Nom de naissance d'une personne. */ + @XmlElement(name = "BirthName") + protected String birthName; + + /** Nom complet d'une personne. */ + @XmlElement(name = "FullName") + protected String fullName; + + /** Nom d'usage d'une personne. */ + @XmlElement(name = "GivenName") + protected String givenName; + + /** Sexe de la personne. */ + @XmlElement(name = "Gender") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String gender; + + /** Date de naissance de la personne. */ + @XmlElement(name = "BirthDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar birthDate; + + /** Lieu de naissance de la personne. */ + @XmlElement(name = "BirthPlace") + protected BirthOrDeathPlaceType birthPlace; + + /** Date de décès d'une personne. */ + @XmlElement(name = "DeathDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar deathDate; + + /** Lieu de décès d'une personne. */ + @XmlElement(name = "DeathPlace") + protected BirthOrDeathPlaceType deathPlace; + + /** Nationalité d'une personne. */ + @XmlElement(name = "Nationality") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List nationality; + + /** Nom d'une entité. */ + @XmlElement(name = "Corpname") + protected String corpname; + + /** Identifiant de la personne (par exemple, le numéro matricule) ou de l'entité. */ + @XmlElement(name = "Identifier") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List identifier; + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Fonction. + */ + @XmlElement(name = "Function") + protected List function; + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Activité. + */ + @XmlElement(name = "Activity") + protected List activity; + + /** Intitulé du poste de travail occupé par la personne. */ + @XmlElement(name = "Position") + protected List position; + + /** Références : moreq.role */ + @XmlElement(name = "Role") + protected List role; + + /** Définit la propriété intellectuelle et artistique. */ + @XmlElement(name = "Mandate") + protected List mandate; + + /** + * Prénom d'une personne. + * + * @return possible object is {@link String } + */ + public String getFirstName() { + return firstName; + } + + /** + * Sets the value of the firstName property. + * + * @param value allowed object is {@link String } + * @see #getFirstName() + */ + public void setFirstName(String value) { + this.firstName = value; + } + + /** + * Nom de naissance d'une personne. + * + * @return possible object is {@link String } + */ + public String getBirthName() { + return birthName; + } + + /** + * Sets the value of the birthName property. + * + * @param value allowed object is {@link String } + * @see #getBirthName() + */ + public void setBirthName(String value) { + this.birthName = value; + } + + /** + * Nom complet d'une personne. + * + * @return possible object is {@link String } + */ + public String getFullName() { + return fullName; + } + + /** + * Sets the value of the fullName property. + * + * @param value allowed object is {@link String } + * @see #getFullName() + */ + public void setFullName(String value) { + this.fullName = value; + } + + /** + * Nom d'usage d'une personne. + * + * @return possible object is {@link String } + */ + public String getGivenName() { + return givenName; + } + + /** + * Sets the value of the givenName property. + * + * @param value allowed object is {@link String } + * @see #getGivenName() + */ + public void setGivenName(String value) { + this.givenName = value; + } + + /** + * Sexe de la personne. + * + * @return possible object is {@link String } + */ + public String getGender() { + return gender; + } + + /** + * Sets the value of the gender property. + * + * @param value allowed object is {@link String } + * @see #getGender() + */ + public void setGender(String value) { + this.gender = value; + } + + /** + * Date de naissance de la personne. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getBirthDate() { + return birthDate; + } + + /** + * Sets the value of the birthDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getBirthDate() + */ + public void setBirthDate(XMLGregorianCalendar value) { + this.birthDate = value; + } + + /** + * Lieu de naissance de la personne. + * + * @return possible object is {@link BirthOrDeathPlaceType } + */ + public BirthOrDeathPlaceType getBirthPlace() { + return birthPlace; + } + + /** + * Sets the value of the birthPlace property. + * + * @param value allowed object is {@link BirthOrDeathPlaceType } + * @see #getBirthPlace() + */ + public void setBirthPlace(BirthOrDeathPlaceType value) { + this.birthPlace = value; + } + + /** + * Date de décès d'une personne. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getDeathDate() { + return deathDate; + } + + /** + * Sets the value of the deathDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getDeathDate() + */ + public void setDeathDate(XMLGregorianCalendar value) { + this.deathDate = value; + } + + /** + * Lieu de décès d'une personne. + * + * @return possible object is {@link BirthOrDeathPlaceType } + */ + public BirthOrDeathPlaceType getDeathPlace() { + return deathPlace; + } + + /** + * Sets the value of the deathPlace property. + * + * @param value allowed object is {@link BirthOrDeathPlaceType } + * @see #getDeathPlace() + */ + public void setDeathPlace(BirthOrDeathPlaceType value) { + this.deathPlace = value; + } + + /** + * Nationalité d'une personne. + * + *

Gets the value of the nationality 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 nationality property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return The value of the nationality property. + */ + public List getNationality() { + if (nationality == null) { + nationality = new ArrayList<>(); } - - /** - * Gets the value of the fullName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFullName() { - return fullName; - } - - /** - * Sets the value of the fullName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFullName(String value) { - this.fullName = value; - } - - /** - * Gets the value of the givenName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGivenName() { - return givenName; - } - - /** - * Sets the value of the givenName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGivenName(String value) { - this.givenName = value; + return this.nationality; + } + + /** + * Nom d'une entité. + * + * @return possible object is {@link String } + */ + public String getCorpname() { + return corpname; + } + + /** + * Sets the value of the corpname property. + * + * @param value allowed object is {@link String } + * @see #getCorpname() + */ + public void setCorpname(String value) { + this.corpname = value; + } + + /** + * Identifiant de la personne (par exemple, le numéro matricule) ou de l'entité. + * + *

Gets the value of the identifier property. + * + *

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

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return The value of the identifier property. + */ + public List getIdentifier() { + if (identifier == null) { + identifier = new ArrayList<>(); } - - /** - * Gets the value of the gender property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGender() { - return gender; + return this.identifier; + } + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Fonction. + * + *

Gets the value of the function 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 function property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the function property. + */ + public List getFunction() { + if (function == null) { + function = new ArrayList<>(); } - - /** - * Sets the value of the gender property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGender(String value) { - this.gender = value; + return this.function; + } + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Activité. + * + *

Gets the value of the activity 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 activity property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the activity property. + */ + public List getActivity() { + if (activity == null) { + activity = new ArrayList<>(); } - - /** - * Gets the value of the birthDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getBirthDate() { - return birthDate; + return this.activity; + } + + /** + * Intitulé du poste de travail occupé par la personne. + * + *

Gets the value of the position 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 position property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the position property. + */ + public List getPosition() { + if (position == null) { + position = new ArrayList<>(); } - - /** - * Sets the value of the birthDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setBirthDate(XMLGregorianCalendar value) { - this.birthDate = value; + return this.position; + } + + /** + * Références : moreq.role + * + *

Gets the value of the role 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 role property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the role property. + */ + public List getRole() { + if (role == null) { + role = new ArrayList<>(); } - - /** - * Gets the value of the birthPlace property. - * - * @return - * possible object is - * {@link BirthOrDeathPlaceType } - * - */ - public BirthOrDeathPlaceType getBirthPlace() { - return birthPlace; - } - - /** - * Sets the value of the birthPlace property. - * - * @param value - * allowed object is - * {@link BirthOrDeathPlaceType } - * - */ - public void setBirthPlace(BirthOrDeathPlaceType value) { - this.birthPlace = value; + return this.role; + } + + /** + * Définit la propriété intellectuelle et artistique. + * + *

Gets the value of the mandate 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 mandate property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the mandate property. + */ + public List getMandate() { + if (mandate == null) { + mandate = new ArrayList<>(); } - - /** - * Gets the value of the deathDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getDeathDate() { - return deathDate; - } - - /** - * Sets the value of the deathDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setDeathDate(XMLGregorianCalendar value) { - this.deathDate = value; - } - - /** - * Gets the value of the deathPlace property. - * - * @return - * possible object is - * {@link BirthOrDeathPlaceType } - * - */ - public BirthOrDeathPlaceType getDeathPlace() { - return deathPlace; - } - - /** - * Sets the value of the deathPlace property. - * - * @param value - * allowed object is - * {@link BirthOrDeathPlaceType } - * - */ - public void setDeathPlace(BirthOrDeathPlaceType value) { - this.deathPlace = value; - } - - /** - * Gets the value of the nationality 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the nationality property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the nationality property. - */ - public List getNationality() { - if (nationality == null) { - nationality = new ArrayList<>(); - } - return this.nationality; - } - - /** - * Gets the value of the corpname property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCorpname() { - return corpname; - } - - /** - * Sets the value of the corpname property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCorpname(String value) { - this.corpname = value; - } - - /** - * Gets the value of the identifier property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the Jakarta XML Binding object. - * This is why there is not a {@code set} method for the identifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the identifier property. - */ - public List getIdentifier() { - if (identifier == null) { - identifier = new ArrayList<>(); - } - return this.identifier; - } - - /** - * Gets the value of the function 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the function property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the function property. - */ - public List getFunction() { - if (function == null) { - function = new ArrayList<>(); - } - return this.function; - } - - /** - * Gets the value of the activity 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the activity property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the activity property. - */ - public List getActivity() { - if (activity == null) { - activity = new ArrayList<>(); - } - return this.activity; - } - - /** - * Gets the value of the position 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the position property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the position property. - */ - public List getPosition() { - if (position == null) { - position = new ArrayList<>(); - } - return this.position; - } - - /** - * Gets the value of the role 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the role property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the role property. - */ - public List getRole() { - if (role == null) { - role = new ArrayList<>(); - } - return this.role; - } - - /** - * Gets the value of the mandate 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the mandate property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the mandate property. - */ - public List getMandate() { - if (mandate == null) { - mandate = new ArrayList<>(); - } - return this.mandate; - } - + return this.mandate; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AppraisalRuleType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AppraisalRuleType.java index 77d557d..ff083f0 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AppraisalRuleType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AppraisalRuleType.java @@ -1,30 +1,29 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlElements; import jakarta.xml.bind.annotation.XmlSchemaType; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de cet ArchiveUnit. - * + * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de + * cet ArchiveUnit. + * *

Java class for AppraisalRuleType complex type. - * + * *

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

{@code
  * 
  *   
@@ -44,140 +43,122 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AppraisalRuleType", propOrder = { - "ruleAndStartDate", - "preventInheritance", - "refNonRuleId", - "finalAction" -}) +@XmlType( + name = "AppraisalRuleType", + propOrder = {"ruleAndStartDate", "preventInheritance", "refNonRuleId", "finalAction"}) public class AppraisalRuleType { - @XmlElements({ - @XmlElement(name = "Rule", type = RuleIdType.class), - @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) - }) - protected List ruleAndStartDate; - @XmlElement(name = "PreventInheritance", defaultValue = "false") - protected Boolean preventInheritance; - @XmlElement(name = "RefNonRuleId") - protected List refNonRuleId; - @XmlElement(name = "FinalAction", required = true) - @XmlSchemaType(name = "token") - protected FinalActionAppraisalCodeType finalAction; + @XmlElements({ + @XmlElement(name = "Rule", type = RuleIdType.class), + @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) + }) + protected List ruleAndStartDate; - /** - * Gets the value of the ruleAndStartDate 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the ruleAndStartDate property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link RuleIdType } - * {@link XMLGregorianCalendar } - * - * - * @return - * The value of the ruleAndStartDate property. - */ - public List getRuleAndStartDate() { - if (ruleAndStartDate == null) { - ruleAndStartDate = new ArrayList<>(); - } - return this.ruleAndStartDate; - } + /** + * Indique si les règles de gestion héritées des ArchiveUnit parents doivent être ignorées pour + * l’ArchiveUnit concerné. + */ + @XmlElement(name = "PreventInheritance", defaultValue = "false") + protected Boolean preventInheritance; - /** - * Gets the value of the preventInheritance property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isPreventInheritance() { - return preventInheritance; - } + /** L'identifiant de la règle spécifiée pourra être retirée de l'héritage dans ce noeud. */ + @XmlElement(name = "RefNonRuleId") + protected List refNonRuleId; - /** - * Sets the value of the preventInheritance property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPreventInheritance(Boolean value) { - this.preventInheritance = value; - } + /** Action à mettre en œuvre au terme de la durée de gestion. */ + @XmlElement(name = "FinalAction", required = true) + @XmlSchemaType(name = "token") + protected FinalActionAppraisalCodeType finalAction; - /** - * Gets the value of the refNonRuleId 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the refNonRuleId property. - * - *

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

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

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

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType } {@link + * XMLGregorianCalendar } + * + * @return The value of the ruleAndStartDate property. + */ + public List getRuleAndStartDate() { + if (ruleAndStartDate == null) { + ruleAndStartDate = new ArrayList<>(); } + return this.ruleAndStartDate; + } - /** - * Gets the value of the finalAction property. - * - * @return - * possible object is - * {@link FinalActionAppraisalCodeType } - * - */ - public FinalActionAppraisalCodeType getFinalAction() { - return finalAction; - } + /** + * Indique si les règles de gestion héritées des ArchiveUnit parents doivent être ignorées pour + * l’ArchiveUnit concerné. + * + * @return possible object is {@link Boolean } + */ + public Boolean isPreventInheritance() { + return preventInheritance; + } + + /** + * Sets the value of the preventInheritance property. + * + * @param value allowed object is {@link Boolean } + * @see #isPreventInheritance() + */ + public void setPreventInheritance(Boolean value) { + this.preventInheritance = value; + } - /** - * Sets the value of the finalAction property. - * - * @param value - * allowed object is - * {@link FinalActionAppraisalCodeType } - * - */ - public void setFinalAction(FinalActionAppraisalCodeType value) { - this.finalAction = value; + /** + * L'identifiant de la règle spécifiée pourra être retirée de l'héritage dans ce noeud. + * + *

Gets the value of the refNonRuleId 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 refNonRuleId property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType } + * + * @return The value of the refNonRuleId property. + */ + public List getRefNonRuleId() { + if (refNonRuleId == null) { + refNonRuleId = new ArrayList<>(); } + return this.refNonRuleId; + } + + /** + * Action à mettre en œuvre au terme de la durée de gestion. + * + * @return possible object is {@link FinalActionAppraisalCodeType } + */ + public FinalActionAppraisalCodeType getFinalAction() { + return finalAction; + } + /** + * Sets the value of the finalAction property. + * + * @param value allowed object is {@link FinalActionAppraisalCodeType } + * @see #getFinalAction() + */ + public void setFinalAction(FinalActionAppraisalCodeType value) { + this.finalAction = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveDeliveryRequestReplyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveDeliveryRequestReplyType.java index 10cdba9..04020dd 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveDeliveryRequestReplyType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveDeliveryRequestReplyType.java @@ -1,25 +1,24 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlRootElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for ArchiveDeliveryRequestReplyType complex type. - * + * Java class for ArchiveDeliveryRequestReplyType complex type. + * *

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

{@code
  * 
  *   
@@ -34,130 +33,115 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveDeliveryRequestReplyType", propOrder = { - "authorizationRequestReplyIdentifier", - "unitIdentifier", - "archivalAgency", - "requester" -}) -public class ArchiveDeliveryRequestReplyType - extends BusinessReplyMessageType -{ +@XmlType( + name = "ArchiveDeliveryRequestReplyType", + propOrder = { + "authorizationRequestReplyIdentifier", + "unitIdentifier", + "archivalAgency", + "requester" + }) +@XmlRootElement(name = "ArchiveDeliveryRequestReply") +public class ArchiveDeliveryRequestReplyType extends BusinessReplyMessageType { - @XmlElement(name = "AuthorizationRequestReplyIdentifier") - protected IdentifierType authorizationRequestReplyIdentifier; - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - @XmlElement(name = "Requester", required = true) - protected OrganizationWithIdType requester; + /** Identifiant de la réponse à une demande d’autorisation. */ + @XmlElement(name = "AuthorizationRequestReplyIdentifier") + protected IdentifierType authorizationRequestReplyIdentifier; - /** - * Gets the value of the authorizationRequestReplyIdentifier property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getAuthorizationRequestReplyIdentifier() { - return authorizationRequestReplyIdentifier; - } + /** Identifiant de l'unité d'archive. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Sets the value of the authorizationRequestReplyIdentifier property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setAuthorizationRequestReplyIdentifier(IdentifierType value) { - this.authorizationRequestReplyIdentifier = value; - } + /** Service d'archives responsable de la demande de communication. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the unitIdentifier 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the unitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link IdentifierType } - * - * - * @return - * The value of the unitIdentifier property. - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** Demandeur de la communication. */ + @XmlElement(name = "Requester", required = true) + protected OrganizationWithIdType requester; - /** - * Gets the value of the archivalAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** + * Identifiant de la réponse à une demande d’autorisation. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getAuthorizationRequestReplyIdentifier() { + return authorizationRequestReplyIdentifier; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Sets the value of the authorizationRequestReplyIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getAuthorizationRequestReplyIdentifier() + */ + public void setAuthorizationRequestReplyIdentifier(IdentifierType value) { + this.authorizationRequestReplyIdentifier = value; + } - /** - * Gets the value of the requester property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getRequester() { - return requester; + /** + * Identifiant de l'unité d'archive. + * + *

Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType } + * + * @return The value of the unitIdentifier property. + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Sets the value of the requester property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setRequester(OrganizationWithIdType value) { - this.requester = value; - } + /** + * Service d'archives responsable de la demande de communication. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getArchivalAgency() + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Demandeur de la communication. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getRequester() { + return requester; + } + /** + * Sets the value of the requester property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getRequester() + */ + public void setRequester(OrganizationWithIdType value) { + this.requester = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveDeliveryRequestType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveDeliveryRequestType.java index 641bba9..61985f8 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveDeliveryRequestType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveDeliveryRequestType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for ArchiveDeliveryRequestType complex type. - * + * Java class for ArchiveDeliveryRequestType complex type. + * *

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

{@code
  * 
  *   
@@ -34,122 +32,104 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveDeliveryRequestType", propOrder = { - "derogation", - "unitIdentifier", - "archivalAgency", - "requester" -}) -public class ArchiveDeliveryRequestType - extends BusinessRequestMessageType -{ +@XmlType( + name = "ArchiveDeliveryRequestType", + propOrder = {"derogation", "unitIdentifier", "archivalAgency", "requester"}) +public class ArchiveDeliveryRequestType extends BusinessRequestMessageType { - @XmlElement(name = "Derogation") - protected boolean derogation; - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - @XmlElement(name = "Requester", required = true) - protected OrganizationWithIdType requester; + /** + * Indique si une procédure de dérogation est nécessaire avant de communiquer l’unité d'archive. + */ + @XmlElement(name = "Derogation") + protected boolean derogation; - /** - * Gets the value of the derogation property. - * - */ - public boolean isDerogation() { - return derogation; - } + /** Identifiant de l'unité d'archive. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Sets the value of the derogation property. - * - */ - public void setDerogation(boolean value) { - this.derogation = value; - } + /** Service d'archives responsable de la communication. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the unitIdentifier 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the unitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link IdentifierType } - * - * - * @return - * The value of the unitIdentifier property. - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** Demandeur de la communication. */ + @XmlElement(name = "Requester", required = true) + protected OrganizationWithIdType requester; - /** - * Gets the value of the archivalAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** + * Indique si une procédure de dérogation est nécessaire avant de communiquer l’unité d'archive. + */ + public boolean isDerogation() { + return derogation; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** Sets the value of the derogation property. */ + public void setDerogation(boolean value) { + this.derogation = value; + } - /** - * Gets the value of the requester property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getRequester() { - return requester; + /** + * Identifiant de l'unité d'archive. + * + *

Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType } + * + * @return The value of the unitIdentifier property. + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Sets the value of the requester property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setRequester(OrganizationWithIdType value) { - this.requester = value; - } + /** + * Service d'archives responsable de la communication. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getArchivalAgency() + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Demandeur de la communication. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getRequester() { + return requester; + } + /** + * Sets the value of the requester property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getRequester() + */ + public void setRequester(OrganizationWithIdType value) { + this.requester = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveDestructionNotificationType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveDestructionNotificationType.java index 9615ebc..196511f 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveDestructionNotificationType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveDestructionNotificationType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for ArchiveDestructionNotificationType complex type. - * + * Java class for ArchiveDestructionNotificationType complex type. + * *

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

{@code
  * 
  *   
@@ -34,130 +32,114 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveDestructionNotificationType", propOrder = { - "authorizationRequestReplyIdentifier", - "unitIdentifier", - "archivalAgency", - "originatingAgency" -}) -public class ArchiveDestructionNotificationType - extends BusinessNotificationMessageType -{ +@XmlType( + name = "ArchiveDestructionNotificationType", + propOrder = { + "authorizationRequestReplyIdentifier", + "unitIdentifier", + "archivalAgency", + "originatingAgency" + }) +public class ArchiveDestructionNotificationType extends BusinessNotificationMessageType { - @XmlElement(name = "AuthorizationRequestReplyIdentifier", required = true) - protected IdentifierType authorizationRequestReplyIdentifier; - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationWithIdType originatingAgency; + /** Identifiant de la réponse à une demande d'autorisation d'élimination. */ + @XmlElement(name = "AuthorizationRequestReplyIdentifier", required = true) + protected IdentifierType authorizationRequestReplyIdentifier; - /** - * Gets the value of the authorizationRequestReplyIdentifier property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getAuthorizationRequestReplyIdentifier() { - return authorizationRequestReplyIdentifier; - } + /** Identifiant de l'unité d'archive. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Sets the value of the authorizationRequestReplyIdentifier property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setAuthorizationRequestReplyIdentifier(IdentifierType value) { - this.authorizationRequestReplyIdentifier = value; - } + /** Service d'archives responsable de la notification d'élimination. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the unitIdentifier 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the unitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link IdentifierType } - * - * - * @return - * The value of the unitIdentifier property. - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** Service producteur responsable de la notification d'élimination. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationWithIdType originatingAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** + * Identifiant de la réponse à une demande d'autorisation d'élimination. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getAuthorizationRequestReplyIdentifier() { + return authorizationRequestReplyIdentifier; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Sets the value of the authorizationRequestReplyIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getAuthorizationRequestReplyIdentifier() + */ + public void setAuthorizationRequestReplyIdentifier(IdentifierType value) { + this.authorizationRequestReplyIdentifier = value; + } - /** - * Gets the value of the originatingAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getOriginatingAgency() { - return originatingAgency; + /** + * Identifiant de l'unité d'archive. + * + *

Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType } + * + * @return The value of the unitIdentifier property. + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setOriginatingAgency(OrganizationWithIdType value) { - this.originatingAgency = value; - } + /** + * Service d'archives responsable de la notification d'élimination. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getArchivalAgency() + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Service producteur responsable de la notification d'élimination. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getOriginatingAgency() + */ + public void setOriginatingAgency(OrganizationWithIdType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveModificationNotificationType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveModificationNotificationType.java index 1a9d0fc..3e3c504 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveModificationNotificationType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveModificationNotificationType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for ArchiveModificationNotificationType complex type. - * + * Java class for ArchiveModificationNotificationType complex type. + * *

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

{@code
  * 
  *   
@@ -33,103 +31,86 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveModificationNotificationType", propOrder = { - "unitIdentifier", - "archivalAgency", - "originatingAgency" -}) -public class ArchiveModificationNotificationType - extends BusinessNotificationMessageType -{ +@XmlType( + name = "ArchiveModificationNotificationType", + propOrder = {"unitIdentifier", "archivalAgency", "originatingAgency"}) +public class ArchiveModificationNotificationType extends BusinessNotificationMessageType { - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationWithIdType originatingAgency; + /** Identifiant de l'unité d'archives. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Gets the value of the unitIdentifier 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the unitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link IdentifierType } - * - * - * @return - * The value of the unitIdentifier property. - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** Service d'archives responsable de la notification de modification. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** Service producteur responsable de la notification de modification. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationWithIdType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; + /** + * Identifiant de l'unité d'archives. + * + *

Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType } + * + * @return The value of the unitIdentifier property. + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Gets the value of the originatingAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getOriginatingAgency() { - return originatingAgency; - } + /** + * Service d'archives responsable de la notification de modification. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setOriginatingAgency(OrganizationWithIdType value) { - this.originatingAgency = value; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getArchivalAgency() + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Service producteur responsable de la notification de modification. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getOriginatingAgency() + */ + public void setOriginatingAgency(OrganizationWithIdType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveRestitutionRequestReplyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveRestitutionRequestReplyType.java index 26adc90..1fc74d7 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveRestitutionRequestReplyType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveRestitutionRequestReplyType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for ArchiveRestitutionRequestReplyType complex type. - * + * Java class for ArchiveRestitutionRequestReplyType complex type. + * *

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

{@code
  * 
  *   
@@ -33,103 +31,86 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveRestitutionRequestReplyType", propOrder = { - "unitIdentifier", - "archivalAgency", - "originatingAgency" -}) -public class ArchiveRestitutionRequestReplyType - extends BusinessReplyMessageType -{ +@XmlType( + name = "ArchiveRestitutionRequestReplyType", + propOrder = {"unitIdentifier", "archivalAgency", "originatingAgency"}) +public class ArchiveRestitutionRequestReplyType extends BusinessReplyMessageType { - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationWithIdType originatingAgency; + /** Identifiant de l'unité d'archive. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Gets the value of the unitIdentifier 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the unitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link IdentifierType } - * - * - * @return - * The value of the unitIdentifier property. - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** Service d'archives responsable de la demande de restitution. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** Service producteur responsable de la demande de restitution. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationWithIdType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; + /** + * Identifiant de l'unité d'archive. + * + *

Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType } + * + * @return The value of the unitIdentifier property. + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Gets the value of the originatingAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getOriginatingAgency() { - return originatingAgency; - } + /** + * Service d'archives responsable de la demande de restitution. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setOriginatingAgency(OrganizationWithIdType value) { - this.originatingAgency = value; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getArchivalAgency() + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Service producteur responsable de la demande de restitution. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getOriginatingAgency() + */ + public void setOriginatingAgency(OrganizationWithIdType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveRestitutionRequestType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveRestitutionRequestType.java index 2061488..c0252da 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveRestitutionRequestType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveRestitutionRequestType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for ArchiveRestitutionRequestType complex type. - * + * Java class for ArchiveRestitutionRequestType complex type. + * *

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

{@code
  * 
  *   
@@ -33,103 +31,86 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveRestitutionRequestType", propOrder = { - "unitIdentifier", - "archivalAgency", - "originatingAgency" -}) -public class ArchiveRestitutionRequestType - extends BusinessRequestMessageType -{ +@XmlType( + name = "ArchiveRestitutionRequestType", + propOrder = {"unitIdentifier", "archivalAgency", "originatingAgency"}) +public class ArchiveRestitutionRequestType extends BusinessRequestMessageType { - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationWithIdType originatingAgency; + /** Identifiant de l'unité d'archives. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Gets the value of the unitIdentifier 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the unitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link IdentifierType } - * - * - * @return - * The value of the unitIdentifier property. - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** Service d'archives responsable de la restitution. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** Service producteur demandant la restitution. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationWithIdType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; + /** + * Identifiant de l'unité d'archives. + * + *

Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType } + * + * @return The value of the unitIdentifier property. + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Gets the value of the originatingAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getOriginatingAgency() { - return originatingAgency; - } + /** + * Service d'archives responsable de la restitution. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setOriginatingAgency(OrganizationWithIdType value) { - this.originatingAgency = value; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getArchivalAgency() + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Service producteur demandant la restitution. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getOriginatingAgency() + */ + public void setOriginatingAgency(OrganizationWithIdType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferReplyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferReplyType.java index d0ab155..4e09bc3 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferReplyType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferReplyType.java @@ -1,26 +1,24 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; import jakarta.xml.bind.annotation.XmlSchemaType; import jakarta.xml.bind.annotation.XmlType; - +import javax.xml.datatype.XMLGregorianCalendar; /** - *

Java class for ArchiveTransferReplyType complex type. - * + * Java class for ArchiveTransferReplyType complex type. + * *

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

{@code
  * 
  *   
@@ -34,98 +32,81 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveTransferReplyType", propOrder = { - "grantDate", - "archivalAgency", - "transferringAgency" -}) +@XmlType( + name = "ArchiveTransferReplyType", + propOrder = {"grantDate", "archivalAgency", "transferringAgency"}) @XmlRootElement(name = "ArchiveTransferReply") -public class ArchiveTransferReplyType - extends BusinessReplyMessageType -{ +public class ArchiveTransferReplyType extends BusinessReplyMessageType { + + /** Date de prise en charge effective du transfert. */ + @XmlElement(name = "GrantDate") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar grantDate; - @XmlElement(name = "GrantDate") - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar grantDate; - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - @XmlElement(name = "TransferringAgency", required = true) - protected OrganizationWithIdType transferringAgency; + /** Service d'archives responsable de la réponse à un transfert. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the grantDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getGrantDate() { - return grantDate; - } + /** Service versant responsable de la réponse à un transfert. */ + @XmlElement(name = "TransferringAgency", required = true) + protected OrganizationWithIdType transferringAgency; - /** - * Sets the value of the grantDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setGrantDate(XMLGregorianCalendar value) { - this.grantDate = value; - } + /** + * Date de prise en charge effective du transfert. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getGrantDate() { + return grantDate; + } - /** - * Gets the value of the archivalAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** + * Sets the value of the grantDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getGrantDate() + */ + public void setGrantDate(XMLGregorianCalendar value) { + this.grantDate = value; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Service d'archives responsable de la réponse à un transfert. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the transferringAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getTransferringAgency() { - return transferringAgency; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getArchivalAgency() + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the transferringAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setTransferringAgency(OrganizationWithIdType value) { - this.transferringAgency = value; - } + /** + * Service versant responsable de la réponse à un transfert. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getTransferringAgency() { + return transferringAgency; + } + /** + * Sets the value of the transferringAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getTransferringAgency() + */ + public void setTransferringAgency(OrganizationWithIdType value) { + this.transferringAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferRequestReplyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferRequestReplyType.java index 0fd0f76..0ebd6f6 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferRequestReplyType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferRequestReplyType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; import jakarta.xml.bind.annotation.XmlType; - +import javax.xml.datatype.XMLGregorianCalendar; /** - *

Java class for ArchiveTransferRequestReplyType complex type. - * + * Java class for ArchiveTransferRequestReplyType complex type. + * *

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

{@code
  * 
  *   
@@ -33,97 +31,80 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveTransferRequestReplyType", propOrder = { - "transferDate", - "archivalAgency", - "transferringAgency" -}) -public class ArchiveTransferRequestReplyType - extends BusinessReplyMessageType -{ +@XmlType( + name = "ArchiveTransferRequestReplyType", + propOrder = {"transferDate", "archivalAgency", "transferringAgency"}) +public class ArchiveTransferRequestReplyType extends BusinessReplyMessageType { + + /** Date de transfert. */ + @XmlElement(name = "TransferDate") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar transferDate; - @XmlElement(name = "TransferDate") - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar transferDate; - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - @XmlElement(name = "TransferringAgency", required = true) - protected OrganizationWithIdType transferringAgency; + /** Service d'archives responsable de la réponse à une demande de transfert. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the transferDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getTransferDate() { - return transferDate; - } + /** Service versant responsable de la réponse à une demande de transfert. */ + @XmlElement(name = "TransferringAgency", required = true) + protected OrganizationWithIdType transferringAgency; - /** - * Sets the value of the transferDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setTransferDate(XMLGregorianCalendar value) { - this.transferDate = value; - } + /** + * Date de transfert. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getTransferDate() { + return transferDate; + } - /** - * Gets the value of the archivalAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** + * Sets the value of the transferDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getTransferDate() + */ + public void setTransferDate(XMLGregorianCalendar value) { + this.transferDate = value; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Service d'archives responsable de la réponse à une demande de transfert. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the transferringAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getTransferringAgency() { - return transferringAgency; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getArchivalAgency() + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the transferringAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setTransferringAgency(OrganizationWithIdType value) { - this.transferringAgency = value; - } + /** + * Service versant responsable de la réponse à une demande de transfert. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getTransferringAgency() { + return transferringAgency; + } + /** + * Sets the value of the transferringAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getTransferringAgency() + */ + public void setTransferringAgency(OrganizationWithIdType value) { + this.transferringAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferRequestType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferRequestType.java index 8fafce1..72b0cd5 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferRequestType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferRequestType.java @@ -1,27 +1,25 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - *

Java class for ArchiveTransferRequestType complex type. - * + * Java class for ArchiveTransferRequestType complex type. + * *

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

{@code
  * 
  *   
@@ -36,131 +34,115 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveTransferRequestType", propOrder = { - "relatedTransferReference", - "transferDate", - "archivalAgency", - "transferringAgency" -}) -public class ArchiveTransferRequestType - extends BusinessRequestMessageType -{ +@XmlType( + name = "ArchiveTransferRequestType", + propOrder = { + "relatedTransferReference", + "transferDate", + "archivalAgency", + "transferringAgency" + }) +public class ArchiveTransferRequestType extends BusinessRequestMessageType { - @XmlElement(name = "RelatedTransferReference") - protected List relatedTransferReference; - @XmlElement(name = "TransferDate") - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar transferDate; - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - @XmlElement(name = "TransferringAgency", required = true) - protected OrganizationWithIdType transferringAgency; + /** Référence à un transfert d'archives lié. */ + @XmlElement(name = "RelatedTransferReference") + protected List relatedTransferReference; - /** - * Gets the value of the relatedTransferReference 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the relatedTransferReference property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link IdentifierType } - * - * - * @return - * The value of the relatedTransferReference property. - */ - public List getRelatedTransferReference() { - if (relatedTransferReference == null) { - relatedTransferReference = new ArrayList<>(); - } - return this.relatedTransferReference; - } + /** Date retenue pour le transfert. */ + @XmlElement(name = "TransferDate") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar transferDate; - /** - * Gets the value of the transferDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getTransferDate() { - return transferDate; - } + /** Service d'archives responsable du transfert. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Sets the value of the transferDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setTransferDate(XMLGregorianCalendar value) { - this.transferDate = value; - } + /** Service versant responsable du transfert. */ + @XmlElement(name = "TransferringAgency", required = true) + protected OrganizationWithIdType transferringAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; + /** + * Référence à un transfert d'archives lié. + * + *

Gets the value of the relatedTransferReference 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 relatedTransferReference property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType } + * + * @return The value of the relatedTransferReference property. + */ + public List getRelatedTransferReference() { + if (relatedTransferReference == null) { + relatedTransferReference = new ArrayList<>(); } + return this.relatedTransferReference; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Date retenue pour le transfert. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getTransferDate() { + return transferDate; + } - /** - * Gets the value of the transferringAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getTransferringAgency() { - return transferringAgency; - } + /** + * Sets the value of the transferDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getTransferDate() + */ + public void setTransferDate(XMLGregorianCalendar value) { + this.transferDate = value; + } - /** - * Sets the value of the transferringAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setTransferringAgency(OrganizationWithIdType value) { - this.transferringAgency = value; - } + /** + * Service d'archives responsable du transfert. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getArchivalAgency() + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Service versant responsable du transfert. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getTransferringAgency() { + return transferringAgency; + } + /** + * Sets the value of the transferringAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getTransferringAgency() + */ + public void setTransferringAgency(OrganizationWithIdType value) { + this.transferringAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferType.java index c070b4b..6e2beec 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveTransferType.java @@ -1,26 +1,24 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for ArchiveTransferType complex type. - * + * Java class for ArchiveTransferType complex type. + * *

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

{@code
  * 
  *   
@@ -35,131 +33,115 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveTransferType", propOrder = { - "relatedTransferReference", - "transferRequestReplyIdentifier", - "archivalAgency", - "transferringAgency" -}) +@XmlType( + name = "ArchiveTransferType", + propOrder = { + "relatedTransferReference", + "transferRequestReplyIdentifier", + "archivalAgency", + "transferringAgency" + }) @XmlRootElement(name = "ArchiveTransfer") -public class ArchiveTransferType - extends BusinessRequestMessageType -{ +public class ArchiveTransferType extends BusinessRequestMessageType { - @XmlElement(name = "RelatedTransferReference") - protected List relatedTransferReference; - @XmlElement(name = "TransferRequestReplyIdentifier") - protected IdentifierType transferRequestReplyIdentifier; - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - @XmlElement(name = "TransferringAgency", required = true) - protected OrganizationWithIdType transferringAgency; + /** Identifiant d’un transfert associé. */ + @XmlElement(name = "RelatedTransferReference") + protected List relatedTransferReference; - /** - * Gets the value of the relatedTransferReference 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the relatedTransferReference property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link IdentifierType } - * - * - * @return - * The value of the relatedTransferReference property. - */ - public List getRelatedTransferReference() { - if (relatedTransferReference == null) { - relatedTransferReference = new ArrayList<>(); - } - return this.relatedTransferReference; - } + /** Identifiant de la réponse à une demande de transfert. */ + @XmlElement(name = "TransferRequestReplyIdentifier") + protected IdentifierType transferRequestReplyIdentifier; - /** - * Gets the value of the transferRequestReplyIdentifier property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getTransferRequestReplyIdentifier() { - return transferRequestReplyIdentifier; - } + /** Service d'archives responsable du transfert. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Sets the value of the transferRequestReplyIdentifier property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setTransferRequestReplyIdentifier(IdentifierType value) { - this.transferRequestReplyIdentifier = value; - } + /** Service versant chargé de réaliser le transport. */ + @XmlElement(name = "TransferringAgency", required = true) + protected OrganizationWithIdType transferringAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; + /** + * Identifiant d’un transfert associé. + * + *

Gets the value of the relatedTransferReference 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 relatedTransferReference property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType } + * + * @return The value of the relatedTransferReference property. + */ + public List getRelatedTransferReference() { + if (relatedTransferReference == null) { + relatedTransferReference = new ArrayList<>(); } + return this.relatedTransferReference; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Identifiant de la réponse à une demande de transfert. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getTransferRequestReplyIdentifier() { + return transferRequestReplyIdentifier; + } - /** - * Gets the value of the transferringAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getTransferringAgency() { - return transferringAgency; - } + /** + * Sets the value of the transferRequestReplyIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getTransferRequestReplyIdentifier() + */ + public void setTransferRequestReplyIdentifier(IdentifierType value) { + this.transferRequestReplyIdentifier = value; + } - /** - * Sets the value of the transferringAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setTransferringAgency(OrganizationWithIdType value) { - this.transferringAgency = value; - } + /** + * Service d'archives responsable du transfert. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getArchivalAgency() + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Service versant chargé de réaliser le transport. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getTransferringAgency() { + return transferringAgency; + } + /** + * Sets the value of the transferringAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getTransferringAgency() + */ + public void setTransferringAgency(OrganizationWithIdType value) { + this.transferringAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveUnitIdentifierKeyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveUnitIdentifierKeyType.java index ea0574f..b6721ee 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveUnitIdentifierKeyType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveUnitIdentifierKeyType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -15,12 +14,11 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** - *

Java class for ArchiveUnitIdentifierKeyType complex type. - * + * Java class for ArchiveUnitIdentifierKeyType complex type. + * *

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

{@code
  * 
  *   
@@ -33,69 +31,66 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveUnitIdentifierKeyType", propOrder = { - "metadataName", - "metadataValue" -}) +@XmlType( + name = "ArchiveUnitIdentifierKeyType", + propOrder = {"metadataName", "metadataValue"}) public class ArchiveUnitIdentifierKeyType { - @XmlElement(name = "MetadataName", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String metadataName; - @XmlElement(name = "MetadataValue", required = true) - protected String metadataValue; + /** + * Nom d'une métadonnée d'une ArchiveUnit. Il est attribué par le SAE et correspond à un + * identifiant interne. + */ + @XmlElement(name = "MetadataName", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String metadataName; - /** - * Gets the value of the metadataName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getMetadataName() { - return metadataName; - } + /** + * Valeur d'une métadonnée d'une ArchiveUnit. Il est attribué par le SAE et correspond à la valeur + * de la MetadataName dans une ArchiveUnit. + */ + @XmlElement(name = "MetadataValue", required = true) + protected String metadataValue; - /** - * Sets the value of the metadataName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setMetadataName(String value) { - this.metadataName = value; - } + /** + * Nom d'une métadonnée d'une ArchiveUnit. Il est attribué par le SAE et correspond à un + * identifiant interne. + * + * @return possible object is {@link String } + */ + public String getMetadataName() { + return metadataName; + } - /** - * Gets the value of the metadataValue property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getMetadataValue() { - return metadataValue; - } + /** + * Sets the value of the metadataName property. + * + * @param value allowed object is {@link String } + * @see #getMetadataName() + */ + public void setMetadataName(String value) { + this.metadataName = value; + } - /** - * Sets the value of the metadataValue property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setMetadataValue(String value) { - this.metadataValue = value; - } + /** + * Valeur d'une métadonnée d'une ArchiveUnit. Il est attribué par le SAE et correspond à la valeur + * de la MetadataName dans une ArchiveUnit. + * + * @return possible object is {@link String } + */ + public String getMetadataValue() { + return metadataValue; + } + /** + * Sets the value of the metadataValue property. + * + * @param value allowed object is {@link String } + * @see #getMetadataValue() + */ + public void setMetadataValue(String value) { + this.metadataValue = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveUnitType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveUnitType.java index 5bf9126..1eb501c 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveUnitType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ArchiveUnitType.java @@ -1,14 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.JAXBElement; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; @@ -24,16 +21,17 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.util.ArrayList; +import java.util.List; import org.w3c.dom.Element; - /** * Unité de base des métadonnées de description contenant la gestion de l'arborescence. - * + * *

Java class for ArchiveUnitType complex type. - * + * *

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

{@code
  * 
  *   
@@ -57,195 +55,192 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveUnitType", propOrder = { - "archiveUnitRefId", - "archiveUnitProfile", - "management", - "content", - "archiveUnitOrDataObjectReferenceOrDataObjectGroup" -}) +@XmlType( + name = "ArchiveUnitType", + propOrder = { + "archiveUnitRefId", + "archiveUnitProfile", + "management", + "content", + "archiveUnitOrDataObjectReferenceOrDataObjectGroup" + }) @XmlRootElement(name = "ArchiveUnit") public class ArchiveUnitType { - @XmlElement(name = "ArchiveUnitRefId") - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object archiveUnitRefId; - @XmlElement(name = "ArchiveUnitProfile") - protected IdentifierType archiveUnitProfile; - @XmlElement(name = "Management") - protected ManagementType management; - @XmlElement(name = "Content") - protected DescriptiveMetadataContentType content; - @XmlElementRefs({ - @XmlElementRef(name = "ArchiveUnit", namespace = "fr:gouv:culture:archivesdefrance:seda:v2", type = JAXBElement.class, required = false), - @XmlElementRef(name = "DataObjectReference", namespace = "fr:gouv:culture:archivesdefrance:seda:v2", type = JAXBElement.class, required = false), - @XmlElementRef(name = "DataObjectGroup", namespace = "fr:gouv:culture:archivesdefrance:seda:v2", type = JAXBElement.class, required = false) - }) - @XmlAnyElement(lax = true) - protected List archiveUnitOrDataObjectReferenceOrDataObjectGroup; - @XmlAttribute(name = "id", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - protected String id; - - /** - * Gets the value of the archiveUnitRefId property. - * - * @return - * possible object is - * {@link Object } - * - */ - public Object getArchiveUnitRefId() { - return archiveUnitRefId; + /** Permet de faire une référence à d'autres ArchiveUnit dans la même transaction. */ + @XmlElement(name = "ArchiveUnitRefId") + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object archiveUnitRefId; + + /** + * Référence à une partie d'un profil d’archivage applicable à un ArchiveUnit en particulier. + * Permet par exemple de faire référence à une typologie documentaire dans un profil d'archivage. + */ + @XmlElement(name = "ArchiveUnitProfile") + protected IdentifierType archiveUnitProfile; + + /** Métadonnées de gestion applicables à l’ArchiveUnit concernée et à ses héritiers. */ + @XmlElement(name = "Management") + protected ManagementType management; + + /** Métadonnées de description associées à un ArchiveUnit. */ + @XmlElement(name = "Content") + protected DescriptiveMetadataContentType content; + + @XmlElementRefs({ + @XmlElementRef( + name = "ArchiveUnit", + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + type = JAXBElement.class, + required = false), + @XmlElementRef( + name = "DataObjectReference", + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + type = JAXBElement.class, + required = false), + @XmlElementRef( + name = "DataObjectGroup", + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + type = JAXBElement.class, + required = false) + }) + @XmlAnyElement(lax = true) + protected List archiveUnitOrDataObjectReferenceOrDataObjectGroup; + + /** + * Identifiant de l'unité d'archives utilisé par exemple dans le cas de multiples héritages, pour + * savoir quel noeud contient une erreur. + */ + @XmlAttribute(name = "id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Permet de faire une référence à d'autres ArchiveUnit dans la même transaction. + * + * @return possible object is {@link Object } + */ + public Object getArchiveUnitRefId() { + return archiveUnitRefId; + } + + /** + * Sets the value of the archiveUnitRefId property. + * + * @param value allowed object is {@link Object } + * @see #getArchiveUnitRefId() + */ + public void setArchiveUnitRefId(Object value) { + this.archiveUnitRefId = value; + } + + /** + * Référence à une partie d'un profil d’archivage applicable à un ArchiveUnit en particulier. + * Permet par exemple de faire référence à une typologie documentaire dans un profil d'archivage. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getArchiveUnitProfile() { + return archiveUnitProfile; + } + + /** + * Sets the value of the archiveUnitProfile property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getArchiveUnitProfile() + */ + public void setArchiveUnitProfile(IdentifierType value) { + this.archiveUnitProfile = value; + } + + /** + * Métadonnées de gestion applicables à l’ArchiveUnit concernée et à ses héritiers. + * + * @return possible object is {@link ManagementType } + */ + public ManagementType getManagement() { + return management; + } + + /** + * Sets the value of the management property. + * + * @param value allowed object is {@link ManagementType } + * @see #getManagement() + */ + public void setManagement(ManagementType value) { + this.management = value; + } + + /** + * Métadonnées de description associées à un ArchiveUnit. + * + * @return possible object is {@link DescriptiveMetadataContentType } + */ + public DescriptiveMetadataContentType getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value allowed object is {@link DescriptiveMetadataContentType } + * @see #getContent() + */ + public void setContent(DescriptiveMetadataContentType value) { + this.content = value; + } + + /** + * Gets the value of the archiveUnitOrDataObjectReferenceOrDataObjectGroup 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 + * archiveUnitOrDataObjectReferenceOrDataObjectGroup property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link JAXBElement }{@code <}{@link + * ArchiveUnitType }{@code >} {@link JAXBElement }{@code <}{@link DataObjectRefType }{@code >} + * {@link JAXBElement }{@code <}{@link ObjectGroupRefType }{@code >} {@link Object } {@link + * Element } + * + * @return The value of the archiveUnitOrDataObjectReferenceOrDataObjectGroup property. + */ + public List getArchiveUnitOrDataObjectReferenceOrDataObjectGroup() { + if (archiveUnitOrDataObjectReferenceOrDataObjectGroup == null) { + archiveUnitOrDataObjectReferenceOrDataObjectGroup = new ArrayList<>(); } - - /** - * Sets the value of the archiveUnitRefId property. - * - * @param value - * allowed object is - * {@link Object } - * - */ - public void setArchiveUnitRefId(Object value) { - this.archiveUnitRefId = value; - } - - /** - * Gets the value of the archiveUnitProfile property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getArchiveUnitProfile() { - return archiveUnitProfile; - } - - /** - * Sets the value of the archiveUnitProfile property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setArchiveUnitProfile(IdentifierType value) { - this.archiveUnitProfile = value; - } - - /** - * Gets the value of the management property. - * - * @return - * possible object is - * {@link ManagementType } - * - */ - public ManagementType getManagement() { - return management; - } - - /** - * Sets the value of the management property. - * - * @param value - * allowed object is - * {@link ManagementType } - * - */ - public void setManagement(ManagementType value) { - this.management = value; - } - - /** - * Gets the value of the content property. - * - * @return - * possible object is - * {@link DescriptiveMetadataContentType } - * - */ - public DescriptiveMetadataContentType getContent() { - return content; - } - - /** - * Sets the value of the content property. - * - * @param value - * allowed object is - * {@link DescriptiveMetadataContentType } - * - */ - public void setContent(DescriptiveMetadataContentType value) { - this.content = value; - } - - /** - * Gets the value of the archiveUnitOrDataObjectReferenceOrDataObjectGroup 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the archiveUnitOrDataObjectReferenceOrDataObjectGroup property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link ArchiveUnitType }{@code >} - * {@link JAXBElement }{@code <}{@link DataObjectRefType }{@code >} - * {@link JAXBElement }{@code <}{@link ObjectGroupRefType }{@code >} - * {@link Object } - * {@link Element } - * - * - * @return - * The value of the archiveUnitOrDataObjectReferenceOrDataObjectGroup property. - */ - public List getArchiveUnitOrDataObjectReferenceOrDataObjectGroup() { - if (archiveUnitOrDataObjectReferenceOrDataObjectGroup == null) { - archiveUnitOrDataObjectReferenceOrDataObjectGroup = new ArrayList<>(); - } - return this.archiveUnitOrDataObjectReferenceOrDataObjectGroup; - } - - /** - * 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; - } - + return this.archiveUnitOrDataObjectReferenceOrDataObjectGroup; + } + + /** + * Identifiant de l'unité d'archives utilisé par exemple dans le cas de multiples héritages, pour + * savoir quel noeud contient une erreur. + * + * @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 } + * @see #getId() + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AudioTechnicalMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AudioTechnicalMetadataType.java index 6f104fe..44aafdf 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AudioTechnicalMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AudioTechnicalMetadataType.java @@ -1,24 +1,22 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlType; - /** * Contient toutes les métadonnées techniques de base pour les objets-données de type audio. - * + * *

Java class for AudioTechnicalMetadataType complex type. - * + * *

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

{@code
  * 
  *   
@@ -27,14 +25,7 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AudioTechnicalMetadataType") -public class AudioTechnicalMetadataType - extends OpenType -{ - - -} +public class AudioTechnicalMetadataType extends OpenType {} diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationControlAuthorityRequestReplyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationControlAuthorityRequestReplyType.java index 682bbce..df9c08e 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationControlAuthorityRequestReplyType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationControlAuthorityRequestReplyType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -12,12 +11,11 @@ import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for AuthorizationControlAuthorityRequestReplyType complex type. - * + * Java class for AuthorizationControlAuthorityRequestReplyType complex type. + * *

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

{@code
  * 
  *   
@@ -30,69 +28,65 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationControlAuthorityRequestReplyType", propOrder = { - "archivalAgency", - "controlAuthority" -}) +@XmlType( + name = "AuthorizationControlAuthorityRequestReplyType", + propOrder = {"archivalAgency", "controlAuthority"}) public class AuthorizationControlAuthorityRequestReplyType - extends BusinessAuthorizationRequestReplyMessageType -{ + extends BusinessAuthorizationRequestReplyMessageType { - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - @XmlElement(name = "ControlAuthority", required = true) - protected OrganizationWithIdType controlAuthority; + /** + * Service d'archives responsable de la réponse à une demande d'autorisation à un service de + * contrôle. + */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** + * Service de contrôle responsable de la réponse à une demande d'autorisation à un service de + * contrôle. + */ + @XmlElement(name = "ControlAuthority", required = true) + protected OrganizationWithIdType controlAuthority; - /** - * Sets the value of the archivalAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Service d'archives responsable de la réponse à une demande d'autorisation à un service de + * contrôle. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the controlAuthority property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getControlAuthority() { - return controlAuthority; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getArchivalAgency() + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the controlAuthority property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setControlAuthority(OrganizationWithIdType value) { - this.controlAuthority = value; - } + /** + * Service de contrôle responsable de la réponse à une demande d'autorisation à un service de + * contrôle. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getControlAuthority() { + return controlAuthority; + } + /** + * Sets the value of the controlAuthority property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getControlAuthority() + */ + public void setControlAuthority(OrganizationWithIdType value) { + this.controlAuthority = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationControlAuthorityRequestType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationControlAuthorityRequestType.java index 714023d..e5ac961 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationControlAuthorityRequestType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationControlAuthorityRequestType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -12,12 +11,11 @@ import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for AuthorizationControlAuthorityRequestType complex type. - * + * Java class for AuthorizationControlAuthorityRequestType complex type. + * *

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

{@code
  * 
  *   
@@ -30,69 +28,57 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationControlAuthorityRequestType", propOrder = { - "archivalAgency", - "controlAuthority" -}) +@XmlType( + name = "AuthorizationControlAuthorityRequestType", + propOrder = {"archivalAgency", "controlAuthority"}) public class AuthorizationControlAuthorityRequestType - extends BusinessAuthorizationRequestMessageType -{ + extends BusinessAuthorizationRequestMessageType { - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - @XmlElement(name = "ControlAuthority", required = true) - protected OrganizationWithIdType controlAuthority; + /** Service d'archives responsable de la demande d'autorisation. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** Autorité de contrôle. */ + @XmlElement(name = "ControlAuthority", required = true) + protected OrganizationWithIdType controlAuthority; - /** - * Sets the value of the archivalAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Service d'archives responsable de la demande d'autorisation. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the controlAuthority property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getControlAuthority() { - return controlAuthority; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getArchivalAgency() + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the controlAuthority property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setControlAuthority(OrganizationWithIdType value) { - this.controlAuthority = value; - } + /** + * Autorité de contrôle. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getControlAuthority() { + return controlAuthority; + } + /** + * Sets the value of the controlAuthority property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getControlAuthority() + */ + public void setControlAuthority(OrganizationWithIdType value) { + this.controlAuthority = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationOriginatingAgencyRequestReplyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationOriginatingAgencyRequestReplyType.java index e632efd..e5eb5d6 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationOriginatingAgencyRequestReplyType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationOriginatingAgencyRequestReplyType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -12,12 +11,11 @@ import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for AuthorizationOriginatingAgencyRequestReplyType complex type. - * + * Java class for AuthorizationOriginatingAgencyRequestReplyType complex type. + * *

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

{@code
  * 
  *   
@@ -30,69 +28,57 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationOriginatingAgencyRequestReplyType", propOrder = { - "archivalAgency", - "originatingAgency" -}) +@XmlType( + name = "AuthorizationOriginatingAgencyRequestReplyType", + propOrder = {"archivalAgency", "originatingAgency"}) public class AuthorizationOriginatingAgencyRequestReplyType - extends BusinessAuthorizationRequestReplyMessageType -{ + extends BusinessAuthorizationRequestReplyMessageType { - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationWithIdType originatingAgency; + /** Service d’archives à l’origine de la demande d’autorisation. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** Service producteur responsable de l’instruction de la demande d’autorisation. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationWithIdType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Service d’archives à l’origine de la demande d’autorisation. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the originatingAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getOriginatingAgency() { - return originatingAgency; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getArchivalAgency() + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setOriginatingAgency(OrganizationWithIdType value) { - this.originatingAgency = value; - } + /** + * Service producteur responsable de l’instruction de la demande d’autorisation. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getOriginatingAgency() + */ + public void setOriginatingAgency(OrganizationWithIdType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationOriginatingAgencyRequestType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationOriginatingAgencyRequestType.java index 2b3fb2b..cc0ef05 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationOriginatingAgencyRequestType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationOriginatingAgencyRequestType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -12,12 +11,11 @@ import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for AuthorizationOriginatingAgencyRequestType complex type. - * + * Java class for AuthorizationOriginatingAgencyRequestType complex type. + * *

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

{@code
  * 
  *   
@@ -30,69 +28,57 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationOriginatingAgencyRequestType", propOrder = { - "archivalAgency", - "originatingAgency" -}) +@XmlType( + name = "AuthorizationOriginatingAgencyRequestType", + propOrder = {"archivalAgency", "originatingAgency"}) public class AuthorizationOriginatingAgencyRequestType - extends BusinessAuthorizationRequestMessageType -{ + extends BusinessAuthorizationRequestMessageType { - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationWithIdType originatingAgency; + /** Service d'archives responsable de la demande d'autorisation. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** Service producteur responsable de l’instruction de la demande d’autorisation. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationWithIdType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Service d'archives responsable de la demande d'autorisation. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the originatingAgency property. - * - * @return - * possible object is - * {@link OrganizationWithIdType } - * - */ - public OrganizationWithIdType getOriginatingAgency() { - return originatingAgency; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getArchivalAgency() + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value - * allowed object is - * {@link OrganizationWithIdType } - * - */ - public void setOriginatingAgency(OrganizationWithIdType value) { - this.originatingAgency = value; - } + /** + * Service producteur responsable de l’instruction de la demande d’autorisation. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + * @see #getOriginatingAgency() + */ + public void setOriginatingAgency(OrganizationWithIdType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationRequestContentType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationRequestContentType.java index 2e3a30d..83eb064 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationRequestContentType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/AuthorizationRequestContentType.java @@ -1,15 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAttribute; @@ -19,13 +15,15 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - +import java.util.ArrayList; +import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - *

Java class for AuthorizationRequestContentType complex type. - * + * Java class for AuthorizationRequestContentType complex type. + * *

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

{@code
  * 
  *   
@@ -43,228 +41,228 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationRequestContentType", propOrder = { - "authorizationReason", - "comment", - "requestDate", - "unitIdentifier", - "requester", - "authorizationRequestReply" -}) +@XmlType( + name = "AuthorizationRequestContentType", + propOrder = { + "authorizationReason", + "comment", + "requestDate", + "unitIdentifier", + "requester", + "authorizationRequestReply" + }) public class AuthorizationRequestContentType { - @XmlElement(name = "AuthorizationReason", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String authorizationReason; - @XmlElement(name = "Comment") - protected List comment; - @XmlElement(name = "RequestDate", required = true) - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar requestDate; - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - @XmlElement(name = "Requester", required = true) - protected OrganizationType requester; - @XmlElement(name = "AuthorizationRequestReply") - protected List authorizationRequestReply; - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + /** Motif de l'autorisation. */ + @XmlElement(name = "AuthorizationReason", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String authorizationReason; - /** - * Gets the value of the authorizationReason property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAuthorizationReason() { - return authorizationReason; - } + /** Commentaire sur la transaction. */ + @XmlElement(name = "Comment") + protected List comment; - /** - * Sets the value of the authorizationReason property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAuthorizationReason(String value) { - this.authorizationReason = value; - } + /** Date de la demande d'autorisation. */ + @XmlElement(name = "RequestDate", required = true) + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar requestDate; - /** - * Gets the value of the comment 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the comment property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the comment property. - */ - public List getComment() { - if (comment == null) { - comment = new ArrayList<>(); - } - return this.comment; - } + /** Identifiant de l'unité documentaire. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Gets the value of the requestDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getRequestDate() { - return requestDate; - } + /** Demandeur de l'autorisation. */ + @XmlElement(name = "Requester", required = true) + protected OrganizationType requester; - /** - * Sets the value of the requestDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setRequestDate(XMLGregorianCalendar value) { - this.requestDate = value; - } + /** Réponse à la demande d’autorisation. */ + @XmlElement(name = "AuthorizationRequestReply") + protected List authorizationRequestReply; - /** - * Gets the value of the unitIdentifier 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the unitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link IdentifierType } - * - * - * @return - * The value of the unitIdentifier property. - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** + * + * + *

+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>id (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        should be interpreted as if declared to be of type ID.
+   *        This name is reserved by virtue of its definition in the
+   *        xml:id specification.</p><p>
+   *       See <a href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+   *       for information about this attribute.</p></div>
+   * 
+ */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Gets the value of the requester property. - * - * @return - * possible object is - * {@link OrganizationType } - * - */ - public OrganizationType getRequester() { - return requester; - } + /** + * Motif de l'autorisation. + * + * @return possible object is {@link String } + */ + public String getAuthorizationReason() { + return authorizationReason; + } - /** - * Sets the value of the requester property. - * - * @param value - * allowed object is - * {@link OrganizationType } - * - */ - public void setRequester(OrganizationType value) { - this.requester = value; - } + /** + * Sets the value of the authorizationReason property. + * + * @param value allowed object is {@link String } + * @see #getAuthorizationReason() + */ + public void setAuthorizationReason(String value) { + this.authorizationReason = value; + } - /** - * Gets the value of the authorizationRequestReply 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the authorizationRequestReply property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link BusinessAuthorizationRequestReplyMessageType } - * - * - * @return - * The value of the authorizationRequestReply property. - */ - public List getAuthorizationRequestReply() { - if (authorizationRequestReply == null) { - authorizationRequestReply = new ArrayList<>(); - } - return this.authorizationRequestReply; + /** + * Commentaire sur la transaction. + * + *

Gets the value of the comment 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 comment property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the comment property. + */ + public List getComment() { + if (comment == null) { + comment = new ArrayList<>(); } + return this.comment; + } - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; + /** + * Date de la demande d'autorisation. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getRequestDate() { + return requestDate; + } + + /** + * Sets the value of the requestDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getRequestDate() + */ + public void setRequestDate(XMLGregorianCalendar value) { + this.requestDate = value; + } + + /** + * Identifiant de l'unité documentaire. + * + *

Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType } + * + * @return The value of the unitIdentifier property. + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } + + /** + * Demandeur de l'autorisation. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getRequester() { + return requester; + } - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; + /** + * Sets the value of the requester property. + * + * @param value allowed object is {@link OrganizationType } + * @see #getRequester() + */ + public void setRequester(OrganizationType value) { + this.requester = value; + } + + /** + * Réponse à la demande d’autorisation. + * + *

Gets the value of the authorizationRequestReply 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 authorizationRequestReply property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link + * BusinessAuthorizationRequestReplyMessageType } + * + * @return The value of the authorizationRequestReply property. + */ + public List getAuthorizationRequestReply() { + if (authorizationRequestReply == null) { + authorizationRequestReply = new ArrayList<>(); } + return this.authorizationRequestReply; + } + + /** + * + * + *

+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>id (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        should be interpreted as if declared to be of type ID.
+   *        This name is reserved by virtue of its definition in the
+   *        xml:id specification.</p><p>
+   *       See <a href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+   *       for information about this attribute.</p></div>
+   * 
+ * + * @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 } + * @see #getId() + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BaseDimensionsType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BaseDimensionsType.java index bd26b25..6ecbfb6 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BaseDimensionsType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BaseDimensionsType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -12,12 +11,11 @@ import jakarta.xml.bind.annotation.XmlSeeAlso; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for BaseDimensionsType complex type. - * + * Java class for BaseDimensionsType complex type. + * *

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

{@code
  * 
  *   
@@ -26,15 +24,8 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BaseDimensionsType") -@XmlSeeAlso({ - DimensionsType.class -}) -public abstract class BaseDimensionsType { - - -} +@XmlSeeAlso({DimensionsType.class}) +public abstract class BaseDimensionsType {} diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BinaryDataObjectType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BinaryDataObjectType.java index de322ac..03d3fd9 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BinaryDataObjectType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BinaryDataObjectType.java @@ -1,30 +1,28 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.math.BigInteger; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; import jakarta.xml.bind.annotation.XmlSchemaType; import jakarta.xml.bind.annotation.XmlType; - +import java.math.BigInteger; /** * Objet-données numérique. - * - * Métadonnées techniques minimales : URI, Digest, Poids. - * + * + *

Métadonnées techniques minimales : URI, Digest, Poids. + * *

Java class for BinaryDataObjectType complex type. - * + * *

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

{@code
  * 
  *   
@@ -39,261 +37,240 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BinaryDataObjectType", propOrder = { - "attachment", - "uri", - "messageDigest", - "size", - "compressed", - "formatIdentification", - "fileInfo", - "metadata", - "otherMetadata" -}) +@XmlType( + name = "BinaryDataObjectType", + propOrder = { + "attachment", + "uri", + "messageDigest", + "size", + "compressed", + "formatIdentification", + "fileInfo", + "metadata", + "otherMetadata" + }) @XmlRootElement(name = "BinaryDataObject") -public class BinaryDataObjectType - extends MinimalDataObjectType -{ +public class BinaryDataObjectType extends MinimalDataObjectType { + + /** Objet-données (contenu binaire ou fichier joint). */ + @XmlElement(name = "Attachment") + protected BinaryObjectType attachment; + + /** + * L'URI spécifie où se trouve l'objet-données numérique. Peut correspondre à un chemin relatif. + */ + @XmlElement(name = "Uri") + @XmlSchemaType(name = "anyURI") + protected String uri; + + /** Empreinte de l'objet-données. */ + @XmlElement(name = "MessageDigest") + protected MessageDigestBinaryObjectType messageDigest; + + /** Permet de spécifier la taille de l'objet-données en octet. */ + @XmlElement(name = "Size") + @XmlSchemaType(name = "positiveInteger") + protected BigInteger size; + + /** Indique si l’objet-données est compressé et doit être décompressé. */ + @XmlElement(name = "Compressed") + protected CompressedType compressed; + + /** Identification du format de l'objet-données. */ + @XmlElement(name = "FormatIdentification") + protected FormatIdentificationType formatIdentification; + + /** + * Propriétés techniques génériques du fichier (nom d’origine, logiciel de création, système + * d’exploitation de création). + */ + @XmlElement(name = "FileInfo") + protected FileInfoType fileInfo; - @XmlElement(name = "Attachment") - protected BinaryObjectType attachment; - @XmlElement(name = "Uri") - @XmlSchemaType(name = "anyURI") - protected String uri; - @XmlElement(name = "MessageDigest") - protected MessageDigestBinaryObjectType messageDigest; - @XmlElement(name = "Size") - @XmlSchemaType(name = "positiveInteger") - protected BigInteger size; - @XmlElement(name = "Compressed") - protected CompressedType compressed; - @XmlElement(name = "FormatIdentification") - protected FormatIdentificationType formatIdentification; - @XmlElement(name = "FileInfo") - protected FileInfoType fileInfo; - @XmlElement(name = "Metadata") - protected CoreMetadataType metadata; - @XmlElement(name = "OtherMetadata") - protected DescriptiveTechnicalMetadataType otherMetadata; + /** + * Propriétés techniques spécifiques du fichier en fonction de sa nature technique (texte, + * document, image, audio, vidéo, etc.). + */ + @XmlElement(name = "Metadata") + protected CoreMetadataType metadata; - /** - * Gets the value of the attachment property. - * - * @return - * possible object is - * {@link BinaryObjectType } - * - */ - public BinaryObjectType getAttachment() { - return attachment; - } + /** Autres métadonnées techniques si celles définies précédemment ne suffisent pas. */ + @XmlElement(name = "OtherMetadata") + protected DescriptiveTechnicalMetadataType otherMetadata; - /** - * Sets the value of the attachment property. - * - * @param value - * allowed object is - * {@link BinaryObjectType } - * - */ - public void setAttachment(BinaryObjectType value) { - this.attachment = value; - } + /** + * Objet-données (contenu binaire ou fichier joint). + * + * @return possible object is {@link BinaryObjectType } + */ + public BinaryObjectType getAttachment() { + return attachment; + } - /** - * Gets the value of the uri property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUri() { - return uri; - } + /** + * Sets the value of the attachment property. + * + * @param value allowed object is {@link BinaryObjectType } + * @see #getAttachment() + */ + public void setAttachment(BinaryObjectType value) { + this.attachment = value; + } - /** - * Sets the value of the uri property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUri(String value) { - this.uri = value; - } + /** + * L'URI spécifie où se trouve l'objet-données numérique. Peut correspondre à un chemin relatif. + * + * @return possible object is {@link String } + */ + public String getUri() { + return uri; + } - /** - * Gets the value of the messageDigest property. - * - * @return - * possible object is - * {@link MessageDigestBinaryObjectType } - * - */ - public MessageDigestBinaryObjectType getMessageDigest() { - return messageDigest; - } + /** + * Sets the value of the uri property. + * + * @param value allowed object is {@link String } + * @see #getUri() + */ + public void setUri(String value) { + this.uri = value; + } - /** - * Sets the value of the messageDigest property. - * - * @param value - * allowed object is - * {@link MessageDigestBinaryObjectType } - * - */ - public void setMessageDigest(MessageDigestBinaryObjectType value) { - this.messageDigest = value; - } + /** + * Empreinte de l'objet-données. + * + * @return possible object is {@link MessageDigestBinaryObjectType } + */ + public MessageDigestBinaryObjectType getMessageDigest() { + return messageDigest; + } - /** - * Gets the value of the size property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getSize() { - return size; - } + /** + * Sets the value of the messageDigest property. + * + * @param value allowed object is {@link MessageDigestBinaryObjectType } + * @see #getMessageDigest() + */ + public void setMessageDigest(MessageDigestBinaryObjectType value) { + this.messageDigest = value; + } - /** - * Sets the value of the size property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setSize(BigInteger value) { - this.size = value; - } + /** + * Permet de spécifier la taille de l'objet-données en octet. + * + * @return possible object is {@link BigInteger } + */ + public BigInteger getSize() { + return size; + } - /** - * Gets the value of the compressed property. - * - * @return - * possible object is - * {@link CompressedType } - * - */ - public CompressedType getCompressed() { - return compressed; - } + /** + * Sets the value of the size property. + * + * @param value allowed object is {@link BigInteger } + * @see #getSize() + */ + public void setSize(BigInteger value) { + this.size = value; + } - /** - * Sets the value of the compressed property. - * - * @param value - * allowed object is - * {@link CompressedType } - * - */ - public void setCompressed(CompressedType value) { - this.compressed = value; - } + /** + * Indique si l’objet-données est compressé et doit être décompressé. + * + * @return possible object is {@link CompressedType } + */ + public CompressedType getCompressed() { + return compressed; + } - /** - * Gets the value of the formatIdentification property. - * - * @return - * possible object is - * {@link FormatIdentificationType } - * - */ - public FormatIdentificationType getFormatIdentification() { - return formatIdentification; - } + /** + * Sets the value of the compressed property. + * + * @param value allowed object is {@link CompressedType } + * @see #getCompressed() + */ + public void setCompressed(CompressedType value) { + this.compressed = value; + } - /** - * Sets the value of the formatIdentification property. - * - * @param value - * allowed object is - * {@link FormatIdentificationType } - * - */ - public void setFormatIdentification(FormatIdentificationType value) { - this.formatIdentification = value; - } + /** + * Identification du format de l'objet-données. + * + * @return possible object is {@link FormatIdentificationType } + */ + public FormatIdentificationType getFormatIdentification() { + return formatIdentification; + } - /** - * Gets the value of the fileInfo property. - * - * @return - * possible object is - * {@link FileInfoType } - * - */ - public FileInfoType getFileInfo() { - return fileInfo; - } + /** + * Sets the value of the formatIdentification property. + * + * @param value allowed object is {@link FormatIdentificationType } + * @see #getFormatIdentification() + */ + public void setFormatIdentification(FormatIdentificationType value) { + this.formatIdentification = value; + } - /** - * Sets the value of the fileInfo property. - * - * @param value - * allowed object is - * {@link FileInfoType } - * - */ - public void setFileInfo(FileInfoType value) { - this.fileInfo = value; - } + /** + * Propriétés techniques génériques du fichier (nom d’origine, logiciel de création, système + * d’exploitation de création). + * + * @return possible object is {@link FileInfoType } + */ + public FileInfoType getFileInfo() { + return fileInfo; + } - /** - * Gets the value of the metadata property. - * - * @return - * possible object is - * {@link CoreMetadataType } - * - */ - public CoreMetadataType getMetadata() { - return metadata; - } + /** + * Sets the value of the fileInfo property. + * + * @param value allowed object is {@link FileInfoType } + * @see #getFileInfo() + */ + public void setFileInfo(FileInfoType value) { + this.fileInfo = value; + } - /** - * Sets the value of the metadata property. - * - * @param value - * allowed object is - * {@link CoreMetadataType } - * - */ - public void setMetadata(CoreMetadataType value) { - this.metadata = value; - } + /** + * Propriétés techniques spécifiques du fichier en fonction de sa nature technique (texte, + * document, image, audio, vidéo, etc.). + * + * @return possible object is {@link CoreMetadataType } + */ + public CoreMetadataType getMetadata() { + return metadata; + } - /** - * Gets the value of the otherMetadata property. - * - * @return - * possible object is - * {@link DescriptiveTechnicalMetadataType } - * - */ - public DescriptiveTechnicalMetadataType getOtherMetadata() { - return otherMetadata; - } + /** + * Sets the value of the metadata property. + * + * @param value allowed object is {@link CoreMetadataType } + * @see #getMetadata() + */ + public void setMetadata(CoreMetadataType value) { + this.metadata = value; + } - /** - * Sets the value of the otherMetadata property. - * - * @param value - * allowed object is - * {@link DescriptiveTechnicalMetadataType } - * - */ - public void setOtherMetadata(DescriptiveTechnicalMetadataType value) { - this.otherMetadata = value; - } + /** + * Autres métadonnées techniques si celles définies précédemment ne suffisent pas. + * + * @return possible object is {@link DescriptiveTechnicalMetadataType } + */ + public DescriptiveTechnicalMetadataType getOtherMetadata() { + return otherMetadata; + } + /** + * Sets the value of the otherMetadata property. + * + * @param value allowed object is {@link DescriptiveTechnicalMetadataType } + * @see #getOtherMetadata() + */ + public void setOtherMetadata(DescriptiveTechnicalMetadataType value) { + this.otherMetadata = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BinaryObjectType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BinaryObjectType.java index 6dae441..5532bb2 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BinaryObjectType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BinaryObjectType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -14,12 +13,11 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.XmlValue; - /** - *

Java class for BinaryObjectType complex type. - * + * Java class for BinaryObjectType complex type. + * *

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

{@code
  * 
  *   
@@ -30,91 +28,73 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BinaryObjectType", propOrder = { - "value" -}) +@XmlType( + name = "BinaryObjectType", + propOrder = {"value"}) public class BinaryObjectType { - @XmlValue - protected byte[] value; - @XmlAttribute(name = "filename") - protected String filename; - @XmlAttribute(name = "uri") - @XmlSchemaType(name = "anyURI") - protected String uri; + @XmlValue protected byte[] value; + + @XmlAttribute(name = "filename") + protected String filename; - /** - * Gets the value of the value property. - * - * @return - * possible object is - * byte[] - */ - public byte[] getValue() { - return value; - } + @XmlAttribute(name = "uri") + @XmlSchemaType(name = "anyURI") + protected String uri; - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * byte[] - */ - public void setValue(byte[] value) { - this.value = value; - } + /** + * Gets the value of the value property. + * + * @return possible object is byte[] + */ + public byte[] getValue() { + return value; + } - /** - * Gets the value of the filename property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFilename() { - return filename; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } - /** - * Sets the value of the filename property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFilename(String value) { - this.filename = value; - } + /** + * Gets the value of the filename property. + * + * @return possible object is {@link String } + */ + public String getFilename() { + return filename; + } - /** - * Gets the value of the uri property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUri() { - return uri; - } + /** + * Sets the value of the filename property. + * + * @param value allowed object is {@link String } + */ + public void setFilename(String value) { + this.filename = value; + } - /** - * Sets the value of the uri property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUri(String value) { - this.uri = value; - } + /** + * Gets the value of the uri property. + * + * @return possible object is {@link String } + */ + public String getUri() { + return uri; + } + /** + * Sets the value of the uri property. + * + * @param value allowed object is {@link String } + */ + public void setUri(String value) { + this.uri = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BirthOrDeathPlaceType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BirthOrDeathPlaceType.java index 9b1a254..df51691 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BirthOrDeathPlaceType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BirthOrDeathPlaceType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -12,12 +11,11 @@ import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for BirthOrDeathPlaceType complex type. - * + * Java class for BirthOrDeathPlaceType complex type. + * *

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

{@code
  * 
  *   
@@ -27,175 +25,164 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BirthOrDeathPlaceType", propOrder = { - "geogname", - "address", - "postalCode", - "city", - "region", - "country" -}) +@XmlType( + name = "BirthOrDeathPlaceType", + propOrder = {"geogname", "address", "postalCode", "city", "region", "country"}) public class BirthOrDeathPlaceType { - @XmlElement(name = "Geogname") - protected String geogname; - @XmlElement(name = "Address") - protected String address; - @XmlElement(name = "PostalCode") - protected String postalCode; - @XmlElement(name = "City") - protected String city; - @XmlElement(name = "Region") - protected String region; - @XmlElement(name = "Country") - protected String country; - - /** - * Gets the value of the geogname property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGeogname() { - return geogname; - } - - /** - * Sets the value of the geogname property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGeogname(String value) { - this.geogname = value; - } - - /** - * Gets the value of the address property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAddress() { - return address; - } - - /** - * Sets the value of the address property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAddress(String value) { - this.address = value; - } - - /** - * Gets the value of the postalCode property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getPostalCode() { - return postalCode; - } - - /** - * Sets the value of the postalCode property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setPostalCode(String value) { - this.postalCode = value; - } - - /** - * Gets the value of the city property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCity() { - return city; - } - - /** - * Sets the value of the city property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCity(String value) { - this.city = value; - } - - /** - * Gets the value of the region property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRegion() { - return region; - } - - /** - * Sets the value of the region property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRegion(String value) { - this.region = value; - } - - /** - * Gets the value of the country property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCountry() { - return country; - } - - /** - * Sets the value of the country property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCountry(String value) { - this.country = value; - } - + /** Références : ead.geogname */ + @XmlElement(name = "Geogname") + protected String geogname; + + /** Références : ead.address */ + @XmlElement(name = "Address") + protected String address; + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Code postal. + */ + @XmlElement(name = "PostalCode") + protected String postalCode; + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Ville. + */ + @XmlElement(name = "City") + protected String city; + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Région. + */ + @XmlElement(name = "Region") + protected String region; + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Pays. + */ + @XmlElement(name = "Country") + protected String country; + + /** + * Références : ead.geogname + * + * @return possible object is {@link String } + */ + public String getGeogname() { + return geogname; + } + + /** + * Sets the value of the geogname property. + * + * @param value allowed object is {@link String } + * @see #getGeogname() + */ + public void setGeogname(String value) { + this.geogname = value; + } + + /** + * Références : ead.address + * + * @return possible object is {@link String } + */ + public String getAddress() { + return address; + } + + /** + * Sets the value of the address property. + * + * @param value allowed object is {@link String } + * @see #getAddress() + */ + public void setAddress(String value) { + this.address = value; + } + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Code postal. + * + * @return possible object is {@link String } + */ + public String getPostalCode() { + return postalCode; + } + + /** + * Sets the value of the postalCode property. + * + * @param value allowed object is {@link String } + * @see #getPostalCode() + */ + public void setPostalCode(String value) { + this.postalCode = value; + } + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Ville. + * + * @return possible object is {@link String } + */ + public String getCity() { + return city; + } + + /** + * Sets the value of the city property. + * + * @param value allowed object is {@link String } + * @see #getCity() + */ + public void setCity(String value) { + this.city = value; + } + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Région. + * + * @return possible object is {@link String } + */ + public String getRegion() { + return region; + } + + /** + * Sets the value of the region property. + * + * @param value allowed object is {@link String } + * @see #getRegion() + */ + public void setRegion(String value) { + this.region = value; + } + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Pays. + * + * @return possible object is {@link String } + */ + public String getCountry() { + return country; + } + + /** + * Sets the value of the country property. + * + * @param value allowed object is {@link String } + * @see #getCountry() + */ + public void setCountry(String value) { + this.country = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessAuthorizationRequestMessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessAuthorizationRequestMessageType.java index dd23cf0..5379779 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessAuthorizationRequestMessageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessAuthorizationRequestMessageType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -13,12 +12,11 @@ import jakarta.xml.bind.annotation.XmlSeeAlso; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for BusinessAuthorizationRequestMessageType complex type. - * + * Java class for BusinessAuthorizationRequestMessageType complex type. + * *

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

{@code
  * 
  *   
@@ -30,46 +28,37 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BusinessAuthorizationRequestMessageType", propOrder = { - "authorizationRequestContent" -}) +@XmlType( + name = "BusinessAuthorizationRequestMessageType", + propOrder = {"authorizationRequestContent"}) @XmlSeeAlso({ - AuthorizationControlAuthorityRequestType.class, - AuthorizationOriginatingAgencyRequestType.class + AuthorizationControlAuthorityRequestType.class, + AuthorizationOriginatingAgencyRequestType.class }) -public abstract class BusinessAuthorizationRequestMessageType - extends BusinessRequestMessageType -{ - - @XmlElement(name = "AuthorizationRequestContent", required = true) - protected AuthorizationRequestContentType authorizationRequestContent; +public abstract class BusinessAuthorizationRequestMessageType extends BusinessRequestMessageType { - /** - * Gets the value of the authorizationRequestContent property. - * - * @return - * possible object is - * {@link AuthorizationRequestContentType } - * - */ - public AuthorizationRequestContentType getAuthorizationRequestContent() { - return authorizationRequestContent; - } + /** Demande d’autorisation. */ + @XmlElement(name = "AuthorizationRequestContent", required = true) + protected AuthorizationRequestContentType authorizationRequestContent; - /** - * Sets the value of the authorizationRequestContent property. - * - * @param value - * allowed object is - * {@link AuthorizationRequestContentType } - * - */ - public void setAuthorizationRequestContent(AuthorizationRequestContentType value) { - this.authorizationRequestContent = value; - } + /** + * Demande d’autorisation. + * + * @return possible object is {@link AuthorizationRequestContentType } + */ + public AuthorizationRequestContentType getAuthorizationRequestContent() { + return authorizationRequestContent; + } + /** + * Sets the value of the authorizationRequestContent property. + * + * @param value allowed object is {@link AuthorizationRequestContentType } + * @see #getAuthorizationRequestContent() + */ + public void setAuthorizationRequestContent(AuthorizationRequestContentType value) { + this.authorizationRequestContent = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessAuthorizationRequestReplyMessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessAuthorizationRequestReplyMessageType.java index eb7f30a..c5a76bb 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessAuthorizationRequestReplyMessageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessAuthorizationRequestReplyMessageType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -12,12 +11,11 @@ import jakarta.xml.bind.annotation.XmlSeeAlso; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for BusinessAuthorizationRequestReplyMessageType complex type. - * + * Java class for BusinessAuthorizationRequestReplyMessageType complex type. + * *

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

{@code
  * 
  *   
@@ -26,18 +24,12 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BusinessAuthorizationRequestReplyMessageType") @XmlSeeAlso({ - AuthorizationControlAuthorityRequestReplyType.class, - AuthorizationOriginatingAgencyRequestReplyType.class + AuthorizationControlAuthorityRequestReplyType.class, + AuthorizationOriginatingAgencyRequestReplyType.class }) public abstract class BusinessAuthorizationRequestReplyMessageType - extends BusinessReplyMessageType -{ - - -} + extends BusinessReplyMessageType {} diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessMessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessMessageType.java index 5866ff3..8ffdb1c 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessMessageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessMessageType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -13,12 +12,11 @@ import jakarta.xml.bind.annotation.XmlSeeAlso; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for BusinessMessageType complex type. - * + * Java class for BusinessMessageType complex type. + * *

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

{@code
  * 
  *   
@@ -32,101 +30,84 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BusinessMessageType", propOrder = { - "archivalAgreement", - "codeListVersions", - "dataObjectPackage" -}) +@XmlType( + name = "BusinessMessageType", + propOrder = {"archivalAgreement", "codeListVersions", "dataObjectPackage"}) @XmlSeeAlso({ - BusinessRequestMessageType.class, - BusinessReplyMessageType.class, - BusinessNotificationMessageType.class + BusinessRequestMessageType.class, + BusinessReplyMessageType.class, + BusinessNotificationMessageType.class }) -public abstract class BusinessMessageType - extends MessageType -{ +public abstract class BusinessMessageType extends MessageType { + + /** Accord de service. */ + @XmlElement(name = "ArchivalAgreement") + protected IdentifierType archivalAgreement; - @XmlElement(name = "ArchivalAgreement") - protected IdentifierType archivalAgreement; - @XmlElement(name = "CodeListVersions", required = true) - protected CodeListVersionsType codeListVersions; - @XmlElement(name = "DataObjectPackage") - protected DataObjectPackageType dataObjectPackage; + /** Listes de codes de références utilisés dans le message. */ + @XmlElement(name = "CodeListVersions", required = true) + protected CodeListVersionsType codeListVersions; - /** - * Gets the value of the archivalAgreement property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getArchivalAgreement() { - return archivalAgreement; - } + /** Objets-données échangés dans le message. */ + @XmlElement(name = "DataObjectPackage") + protected DataObjectPackageType dataObjectPackage; - /** - * Sets the value of the archivalAgreement property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setArchivalAgreement(IdentifierType value) { - this.archivalAgreement = value; - } + /** + * Accord de service. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getArchivalAgreement() { + return archivalAgreement; + } - /** - * Gets the value of the codeListVersions property. - * - * @return - * possible object is - * {@link CodeListVersionsType } - * - */ - public CodeListVersionsType getCodeListVersions() { - return codeListVersions; - } + /** + * Sets the value of the archivalAgreement property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getArchivalAgreement() + */ + public void setArchivalAgreement(IdentifierType value) { + this.archivalAgreement = value; + } - /** - * Sets the value of the codeListVersions property. - * - * @param value - * allowed object is - * {@link CodeListVersionsType } - * - */ - public void setCodeListVersions(CodeListVersionsType value) { - this.codeListVersions = value; - } + /** + * Listes de codes de références utilisés dans le message. + * + * @return possible object is {@link CodeListVersionsType } + */ + public CodeListVersionsType getCodeListVersions() { + return codeListVersions; + } - /** - * Gets the value of the dataObjectPackage property. - * - * @return - * possible object is - * {@link DataObjectPackageType } - * - */ - public DataObjectPackageType getDataObjectPackage() { - return dataObjectPackage; - } + /** + * Sets the value of the codeListVersions property. + * + * @param value allowed object is {@link CodeListVersionsType } + * @see #getCodeListVersions() + */ + public void setCodeListVersions(CodeListVersionsType value) { + this.codeListVersions = value; + } - /** - * Sets the value of the dataObjectPackage property. - * - * @param value - * allowed object is - * {@link DataObjectPackageType } - * - */ - public void setDataObjectPackage(DataObjectPackageType value) { - this.dataObjectPackage = value; - } + /** + * Objets-données échangés dans le message. + * + * @return possible object is {@link DataObjectPackageType } + */ + public DataObjectPackageType getDataObjectPackage() { + return dataObjectPackage; + } + /** + * Sets the value of the dataObjectPackage property. + * + * @param value allowed object is {@link DataObjectPackageType } + * @see #getDataObjectPackage() + */ + public void setDataObjectPackage(DataObjectPackageType value) { + this.dataObjectPackage = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessNotificationMessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessNotificationMessageType.java index 8253384..c280b36 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessNotificationMessageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessNotificationMessageType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -12,12 +11,11 @@ import jakarta.xml.bind.annotation.XmlSeeAlso; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for BusinessNotificationMessageType complex type. - * + * Java class for BusinessNotificationMessageType complex type. + * *

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

{@code
  * 
  *   
@@ -26,18 +24,8 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BusinessNotificationMessageType") -@XmlSeeAlso({ - ArchiveDestructionNotificationType.class, - ArchiveModificationNotificationType.class -}) -public abstract class BusinessNotificationMessageType - extends BusinessMessageType -{ - - -} +@XmlSeeAlso({ArchiveDestructionNotificationType.class, ArchiveModificationNotificationType.class}) +public abstract class BusinessNotificationMessageType extends BusinessMessageType {} diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessReplyMessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessReplyMessageType.java index dbd20b0..df2a4d7 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessReplyMessageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessReplyMessageType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -16,12 +15,11 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** - *

Java class for BusinessReplyMessageType complex type. - * + * Java class for BusinessReplyMessageType complex type. + * *

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

{@code
  * 
  *   
@@ -35,105 +33,88 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BusinessReplyMessageType", propOrder = { - "replyCode", - "operation", - "messageRequestIdentifier" -}) +@XmlType( + name = "BusinessReplyMessageType", + propOrder = {"replyCode", "operation", "messageRequestIdentifier"}) @XmlSeeAlso({ - ArchiveDeliveryRequestReplyType.class, - ArchiveRestitutionRequestReplyType.class, - ArchiveTransferReplyType.class, - ArchiveTransferRequestReplyType.class, - BusinessAuthorizationRequestReplyMessageType.class + ArchiveDeliveryRequestReplyType.class, + ArchiveRestitutionRequestReplyType.class, + ArchiveTransferReplyType.class, + ArchiveTransferRequestReplyType.class, + BusinessAuthorizationRequestReplyMessageType.class }) -public abstract class BusinessReplyMessageType - extends BusinessMessageType -{ +public abstract class BusinessReplyMessageType extends BusinessMessageType { + + /** Code de la réponse. */ + @XmlElement(name = "ReplyCode") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String replyCode; - @XmlElement(name = "ReplyCode") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String replyCode; - @XmlElement(name = "Operation") - protected OperationType operation; - @XmlElement(name = "MessageRequestIdentifier", required = true) - protected IdentifierType messageRequestIdentifier; + /** Liste des événements dans les messages de réponse */ + @XmlElement(name = "Operation") + protected OperationType operation; - /** - * Gets the value of the replyCode property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getReplyCode() { - return replyCode; - } + /** Identifiant de la demande. */ + @XmlElement(name = "MessageRequestIdentifier", required = true) + protected IdentifierType messageRequestIdentifier; - /** - * Sets the value of the replyCode property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setReplyCode(String value) { - this.replyCode = value; - } + /** + * Code de la réponse. + * + * @return possible object is {@link String } + */ + public String getReplyCode() { + return replyCode; + } - /** - * Gets the value of the operation property. - * - * @return - * possible object is - * {@link OperationType } - * - */ - public OperationType getOperation() { - return operation; - } + /** + * Sets the value of the replyCode property. + * + * @param value allowed object is {@link String } + * @see #getReplyCode() + */ + public void setReplyCode(String value) { + this.replyCode = value; + } - /** - * Sets the value of the operation property. - * - * @param value - * allowed object is - * {@link OperationType } - * - */ - public void setOperation(OperationType value) { - this.operation = value; - } + /** + * Liste des événements dans les messages de réponse + * + * @return possible object is {@link OperationType } + */ + public OperationType getOperation() { + return operation; + } - /** - * Gets the value of the messageRequestIdentifier property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getMessageRequestIdentifier() { - return messageRequestIdentifier; - } + /** + * Sets the value of the operation property. + * + * @param value allowed object is {@link OperationType } + * @see #getOperation() + */ + public void setOperation(OperationType value) { + this.operation = value; + } - /** - * Sets the value of the messageRequestIdentifier property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setMessageRequestIdentifier(IdentifierType value) { - this.messageRequestIdentifier = value; - } + /** + * Identifiant de la demande. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getMessageRequestIdentifier() { + return messageRequestIdentifier; + } + /** + * Sets the value of the messageRequestIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getMessageRequestIdentifier() + */ + public void setMessageRequestIdentifier(IdentifierType value) { + this.messageRequestIdentifier = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessRequestMessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessRequestMessageType.java index 8651de0..fac71bc 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessRequestMessageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/BusinessRequestMessageType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -12,12 +11,11 @@ import jakarta.xml.bind.annotation.XmlSeeAlso; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for BusinessRequestMessageType complex type. - * + * Java class for BusinessRequestMessageType complex type. + * *

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

{@code
  * 
  *   
@@ -26,21 +24,14 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "BusinessRequestMessageType") @XmlSeeAlso({ - ArchiveDeliveryRequestType.class, - ArchiveRestitutionRequestType.class, - ArchiveTransferType.class, - ArchiveTransferRequestType.class, - BusinessAuthorizationRequestMessageType.class + ArchiveDeliveryRequestType.class, + ArchiveRestitutionRequestType.class, + ArchiveTransferType.class, + ArchiveTransferRequestType.class, + BusinessAuthorizationRequestMessageType.class }) -public abstract class BusinessRequestMessageType - extends BusinessMessageType -{ - - -} +public abstract class BusinessRequestMessageType extends BusinessMessageType {} diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ClassificationRuleType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ClassificationRuleType.java index a1c7278..8207e1e 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ClassificationRuleType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ClassificationRuleType.java @@ -1,15 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; @@ -18,15 +14,18 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - +import java.util.ArrayList; +import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de cet ArchiveUnit. - * + * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de + * cet ArchiveUnit. + * *

Java class for ClassificationRuleType complex type. - * + * *

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

{@code
  * 
  *   
@@ -50,254 +49,233 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ClassificationRuleType", propOrder = { - "ruleAndStartDate", - "classificationAudience", - "preventInheritance", - "refNonRuleId", - "classificationLevel", - "classificationOwner", - "classificationReassessingDate", - "needReassessingAuthorization" -}) +@XmlType( + name = "ClassificationRuleType", + propOrder = { + "ruleAndStartDate", + "classificationAudience", + "preventInheritance", + "refNonRuleId", + "classificationLevel", + "classificationOwner", + "classificationReassessingDate", + "needReassessingAuthorization" + }) public class ClassificationRuleType { - @XmlElements({ - @XmlElement(name = "Rule", type = RuleIdType.class), - @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) - }) - protected List ruleAndStartDate; - @XmlElement(name = "ClassificationAudience") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String classificationAudience; - @XmlElement(name = "PreventInheritance", defaultValue = "false") - protected Boolean preventInheritance; - @XmlElement(name = "RefNonRuleId") - protected List refNonRuleId; - @XmlElement(name = "ClassificationLevel", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String classificationLevel; - @XmlElement(name = "ClassificationOwner", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String classificationOwner; - @XmlElement(name = "ClassificationReassessingDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar classificationReassessingDate; - @XmlElement(name = "NeedReassessingAuthorization") - protected Boolean needReassessingAuthorization; + @XmlElements({ + @XmlElement(name = "Rule", type = RuleIdType.class), + @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) + }) + protected List ruleAndStartDate; - /** - * Gets the value of the ruleAndStartDate 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the ruleAndStartDate property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link RuleIdType } - * {@link XMLGregorianCalendar } - * - * - * @return - * The value of the ruleAndStartDate property. - */ - public List getRuleAndStartDate() { - if (ruleAndStartDate == null) { - ruleAndStartDate = new ArrayList<>(); - } - return this.ruleAndStartDate; - } + /** + * Permet de gérer les questions de "diffusion restreinte", de "spécial France" et de + * "Confidentiel Industrie". + */ + @XmlElement(name = "ClassificationAudience") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String classificationAudience; - /** - * Gets the value of the classificationAudience property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getClassificationAudience() { - return classificationAudience; - } + /** + * Indique si les règles de gestion héritées des ArchiveUnit parents doivent être ignorées pour + * l’ArchiveUnit concerné. + */ + @XmlElement(name = "PreventInheritance", defaultValue = "false") + protected Boolean preventInheritance; - /** - * Sets the value of the classificationAudience property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setClassificationAudience(String value) { - this.classificationAudience = value; - } + /** L'identifiant de la règle spécifiée pourra être retirée de l'héritage dans ce noeud. */ + @XmlElement(name = "RefNonRuleId") + protected List refNonRuleId; - /** - * Gets the value of the preventInheritance property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isPreventInheritance() { - return preventInheritance; - } + /** Référence au niveau de classification. */ + @XmlElement(name = "ClassificationLevel", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String classificationLevel; - /** - * Sets the value of the preventInheritance property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPreventInheritance(Boolean value) { - this.preventInheritance = value; - } + /** Propriétaire de la classification. Service émetteur au sens de l’IGI 1300. */ + @XmlElement(name = "ClassificationOwner", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String classificationOwner; - /** - * Gets the value of the refNonRuleId 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the refNonRuleId property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link RuleIdType } - * - * - * @return - * The value of the refNonRuleId property. - */ - public List getRefNonRuleId() { - if (refNonRuleId == null) { - refNonRuleId = new ArrayList<>(); - } - return this.refNonRuleId; - } + /** Date de réévaluation de la classification. */ + @XmlElement(name = "ClassificationReassessingDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar classificationReassessingDate; - /** - * Gets the value of the classificationLevel property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getClassificationLevel() { - return classificationLevel; - } + /** Indique si une autorisation humaine est nécessaire pour réévaluer la classification. */ + @XmlElement(name = "NeedReassessingAuthorization") + protected Boolean needReassessingAuthorization; - /** - * Sets the value of the classificationLevel property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setClassificationLevel(String value) { - this.classificationLevel = value; + /** + * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType } {@link + * XMLGregorianCalendar } + * + * @return The value of the ruleAndStartDate property. + */ + public List getRuleAndStartDate() { + if (ruleAndStartDate == null) { + ruleAndStartDate = new ArrayList<>(); } + return this.ruleAndStartDate; + } - /** - * Gets the value of the classificationOwner property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getClassificationOwner() { - return classificationOwner; - } + /** + * Permet de gérer les questions de "diffusion restreinte", de "spécial France" et de + * "Confidentiel Industrie". + * + * @return possible object is {@link String } + */ + public String getClassificationAudience() { + return classificationAudience; + } - /** - * Sets the value of the classificationOwner property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setClassificationOwner(String value) { - this.classificationOwner = value; - } + /** + * Sets the value of the classificationAudience property. + * + * @param value allowed object is {@link String } + * @see #getClassificationAudience() + */ + public void setClassificationAudience(String value) { + this.classificationAudience = value; + } - /** - * Gets the value of the classificationReassessingDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getClassificationReassessingDate() { - return classificationReassessingDate; - } + /** + * Indique si les règles de gestion héritées des ArchiveUnit parents doivent être ignorées pour + * l’ArchiveUnit concerné. + * + * @return possible object is {@link Boolean } + */ + public Boolean isPreventInheritance() { + return preventInheritance; + } - /** - * Sets the value of the classificationReassessingDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setClassificationReassessingDate(XMLGregorianCalendar value) { - this.classificationReassessingDate = value; - } + /** + * Sets the value of the preventInheritance property. + * + * @param value allowed object is {@link Boolean } + * @see #isPreventInheritance() + */ + public void setPreventInheritance(Boolean value) { + this.preventInheritance = value; + } - /** - * Gets the value of the needReassessingAuthorization property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isNeedReassessingAuthorization() { - return needReassessingAuthorization; + /** + * L'identifiant de la règle spécifiée pourra être retirée de l'héritage dans ce noeud. + * + *

Gets the value of the refNonRuleId 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 refNonRuleId property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType } + * + * @return The value of the refNonRuleId property. + */ + public List getRefNonRuleId() { + if (refNonRuleId == null) { + refNonRuleId = new ArrayList<>(); } + return this.refNonRuleId; + } - /** - * Sets the value of the needReassessingAuthorization property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setNeedReassessingAuthorization(Boolean value) { - this.needReassessingAuthorization = value; - } + /** + * Référence au niveau de classification. + * + * @return possible object is {@link String } + */ + public String getClassificationLevel() { + return classificationLevel; + } + + /** + * Sets the value of the classificationLevel property. + * + * @param value allowed object is {@link String } + * @see #getClassificationLevel() + */ + public void setClassificationLevel(String value) { + this.classificationLevel = value; + } + + /** + * Propriétaire de la classification. Service émetteur au sens de l’IGI 1300. + * + * @return possible object is {@link String } + */ + public String getClassificationOwner() { + return classificationOwner; + } + + /** + * Sets the value of the classificationOwner property. + * + * @param value allowed object is {@link String } + * @see #getClassificationOwner() + */ + public void setClassificationOwner(String value) { + this.classificationOwner = value; + } + + /** + * Date de réévaluation de la classification. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getClassificationReassessingDate() { + return classificationReassessingDate; + } + + /** + * Sets the value of the classificationReassessingDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getClassificationReassessingDate() + */ + public void setClassificationReassessingDate(XMLGregorianCalendar value) { + this.classificationReassessingDate = value; + } + + /** + * Indique si une autorisation humaine est nécessaire pour réévaluer la classification. + * + * @return possible object is {@link Boolean } + */ + public Boolean isNeedReassessingAuthorization() { + return needReassessingAuthorization; + } + /** + * Sets the value of the needReassessingAuthorization property. + * + * @param value allowed object is {@link Boolean } + * @see #isNeedReassessingAuthorization() + */ + public void setNeedReassessingAuthorization(Boolean value) { + this.needReassessingAuthorization = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CodeKeywordType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CodeKeywordType.java index ec9c9c7..e1309cf 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CodeKeywordType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CodeKeywordType.java @@ -1,21 +1,22 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlEnum; import jakarta.xml.bind.annotation.XmlEnumValue; import jakarta.xml.bind.annotation.XmlType; - /** + * Table des types de mots-clés. + * *

Java class for CodeKeywordType. - * + * *

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

{@code
  * 
  *   
@@ -31,92 +32,74 @@
  *   
  * 
  * }
- * */ @XmlType(name = "CodeKeywordType") @XmlEnum public enum CodeKeywordType { - - /** - * Références : ead.corpname - * - */ - @XmlEnumValue("corpname") - CORPNAME("corpname"), - - /** - * Nom de famille. - * - */ - @XmlEnumValue("famname") - FAMNAME("famname"), - - /** - * Nom géographique. - * - */ - @XmlEnumValue("geogname") - GEOGNAME("geogname"), - - /** - * Nom. - * - */ - @XmlEnumValue("name") - NAME("name"), - - /** - * Fonction. - * - */ - @XmlEnumValue("occupation") - OCCUPATION("occupation"), - - /** - * Nom de personne. - * - */ - @XmlEnumValue("persname") - PERSNAME("persname"), - - /** - * Mot-matière. - * - */ - @XmlEnumValue("subject") - SUBJECT("subject"), - - /** - * Type de document. - * - */ - @XmlEnumValue("genreform") - GENREFORM("genreform"), - - /** - * Références : ead.function - * - */ - @XmlEnumValue("function") - FUNCTION("function"); - private final String value; - - CodeKeywordType(String v) { - value = v; - } - - public String value() { - return value; - } - - public static CodeKeywordType fromValue(String v) { - for (CodeKeywordType c: CodeKeywordType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** Références : ead.corpname */ + @XmlEnumValue("corpname") + CORPNAME("corpname"), + + /** Nom de famille. */ + @XmlEnumValue("famname") + FAMNAME("famname"), + + /** Nom géographique. */ + @XmlEnumValue("geogname") + GEOGNAME("geogname"), + + /** Nom. */ + @XmlEnumValue("name") + NAME("name"), + + /** Fonction. */ + @XmlEnumValue("occupation") + OCCUPATION("occupation"), + + /** Nom de personne. */ + @XmlEnumValue("persname") + PERSNAME("persname"), + + /** Mot-matière. */ + @XmlEnumValue("subject") + SUBJECT("subject"), + + /** Type de document. */ + @XmlEnumValue("genreform") + GENREFORM("genreform"), + + /** Références : ead.function */ + @XmlEnumValue("function") + FUNCTION("function"); + private final String value; + + CodeKeywordType(String v) { + value = v; + } + + /** + * Gets the value associated to the enum constant. + * + * @return The value linked to the enum. + */ + public String value() { + return value; + } + + /** + * Gets the enum associated to the value passed as parameter. + * + * @param v The value to get the enum from. + * @return The enum which corresponds to the value, if it exists. + * @throws IllegalArgumentException If no value matches in the enum declaration. + */ + public static CodeKeywordType fromValue(String v) { + for (CodeKeywordType c : CodeKeywordType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CodeListVersionsType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CodeListVersionsType.java index 684a604..18254df 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CodeListVersionsType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CodeListVersionsType.java @@ -1,14 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAnyElement; @@ -19,14 +16,15 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.util.ArrayList; +import java.util.List; import org.w3c.dom.Element; - /** - *

Java class for CodeListVersionsType complex type. - * + * Java class for CodeListVersionsType complex type. + * *

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

{@code
  * 
  *   
@@ -45,536 +43,499 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CodeListVersionsType", propOrder = { - "replyCodeListVersion", - "messageDigestAlgorithmCodeListVersion", - "mimeTypeCodeListVersion", - "encodingCodeListVersion", - "fileFormatCodeListVersion", - "compressionAlgorithmCodeListVersion", - "dataObjectVersionCodeListVersion", - "storageRuleCodeListVersion", - "appraisalRuleCodeListVersion", - "accessRuleCodeListVersion", - "disseminationRuleCodeListVersion", - "reuseRuleCodeListVersion", - "classificationRuleCodeListVersion", - "holdRuleCodeListVersion", - "acquisitionInformationCodeListVersion", - "authorizationReasonCodeListVersion", - "relationshipCodeListVersion", - "any" -}) +@XmlType( + name = "CodeListVersionsType", + propOrder = { + "replyCodeListVersion", + "messageDigestAlgorithmCodeListVersion", + "mimeTypeCodeListVersion", + "encodingCodeListVersion", + "fileFormatCodeListVersion", + "compressionAlgorithmCodeListVersion", + "dataObjectVersionCodeListVersion", + "storageRuleCodeListVersion", + "appraisalRuleCodeListVersion", + "accessRuleCodeListVersion", + "disseminationRuleCodeListVersion", + "reuseRuleCodeListVersion", + "classificationRuleCodeListVersion", + "holdRuleCodeListVersion", + "acquisitionInformationCodeListVersion", + "authorizationReasonCodeListVersion", + "relationshipCodeListVersion", + "any" + }) public class CodeListVersionsType { - @XmlElement(name = "ReplyCodeListVersion") - protected CodeType replyCodeListVersion; - @XmlElement(name = "MessageDigestAlgorithmCodeListVersion") - protected CodeType messageDigestAlgorithmCodeListVersion; - @XmlElement(name = "MimeTypeCodeListVersion") - protected CodeType mimeTypeCodeListVersion; - @XmlElement(name = "EncodingCodeListVersion") - protected CodeType encodingCodeListVersion; - @XmlElement(name = "FileFormatCodeListVersion") - protected CodeType fileFormatCodeListVersion; - @XmlElement(name = "CompressionAlgorithmCodeListVersion") - protected CodeType compressionAlgorithmCodeListVersion; - @XmlElement(name = "DataObjectVersionCodeListVersion") - protected CodeType dataObjectVersionCodeListVersion; - @XmlElement(name = "StorageRuleCodeListVersion") - protected CodeType storageRuleCodeListVersion; - @XmlElement(name = "AppraisalRuleCodeListVersion") - protected CodeType appraisalRuleCodeListVersion; - @XmlElement(name = "AccessRuleCodeListVersion") - protected CodeType accessRuleCodeListVersion; - @XmlElement(name = "DisseminationRuleCodeListVersion") - protected CodeType disseminationRuleCodeListVersion; - @XmlElement(name = "ReuseRuleCodeListVersion") - protected CodeType reuseRuleCodeListVersion; - @XmlElement(name = "ClassificationRuleCodeListVersion") - protected CodeType classificationRuleCodeListVersion; - @XmlElement(name = "HoldRuleCodeListVersion") - protected CodeType holdRuleCodeListVersion; - @XmlElement(name = "AcquisitionInformationCodeListVersion") - protected CodeType acquisitionInformationCodeListVersion; - @XmlElement(name = "AuthorizationReasonCodeListVersion") - protected CodeType authorizationReasonCodeListVersion; - @XmlElement(name = "RelationshipCodeListVersion") - protected CodeType relationshipCodeListVersion; - @XmlAnyElement(lax = true) - protected List any; - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - - /** - * Gets the value of the replyCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getReplyCodeListVersion() { - return replyCodeListVersion; - } - - /** - * Sets the value of the replyCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setReplyCodeListVersion(CodeType value) { - this.replyCodeListVersion = value; - } - - /** - * Gets the value of the messageDigestAlgorithmCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getMessageDigestAlgorithmCodeListVersion() { - return messageDigestAlgorithmCodeListVersion; - } - - /** - * Sets the value of the messageDigestAlgorithmCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setMessageDigestAlgorithmCodeListVersion(CodeType value) { - this.messageDigestAlgorithmCodeListVersion = value; - } - - /** - * Gets the value of the mimeTypeCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getMimeTypeCodeListVersion() { - return mimeTypeCodeListVersion; - } - - /** - * Sets the value of the mimeTypeCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setMimeTypeCodeListVersion(CodeType value) { - this.mimeTypeCodeListVersion = value; - } - - /** - * Gets the value of the encodingCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getEncodingCodeListVersion() { - return encodingCodeListVersion; - } - - /** - * Sets the value of the encodingCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setEncodingCodeListVersion(CodeType value) { - this.encodingCodeListVersion = value; - } - - /** - * Gets the value of the fileFormatCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getFileFormatCodeListVersion() { - return fileFormatCodeListVersion; - } - - /** - * Sets the value of the fileFormatCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setFileFormatCodeListVersion(CodeType value) { - this.fileFormatCodeListVersion = value; - } - - /** - * Gets the value of the compressionAlgorithmCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getCompressionAlgorithmCodeListVersion() { - return compressionAlgorithmCodeListVersion; - } - - /** - * Sets the value of the compressionAlgorithmCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setCompressionAlgorithmCodeListVersion(CodeType value) { - this.compressionAlgorithmCodeListVersion = value; - } - - /** - * Gets the value of the dataObjectVersionCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getDataObjectVersionCodeListVersion() { - return dataObjectVersionCodeListVersion; - } - - /** - * Sets the value of the dataObjectVersionCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setDataObjectVersionCodeListVersion(CodeType value) { - this.dataObjectVersionCodeListVersion = value; - } - - /** - * Gets the value of the storageRuleCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getStorageRuleCodeListVersion() { - return storageRuleCodeListVersion; - } - - /** - * Sets the value of the storageRuleCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setStorageRuleCodeListVersion(CodeType value) { - this.storageRuleCodeListVersion = value; - } - - /** - * Gets the value of the appraisalRuleCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getAppraisalRuleCodeListVersion() { - return appraisalRuleCodeListVersion; - } - - /** - * Sets the value of the appraisalRuleCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setAppraisalRuleCodeListVersion(CodeType value) { - this.appraisalRuleCodeListVersion = value; - } - - /** - * Gets the value of the accessRuleCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getAccessRuleCodeListVersion() { - return accessRuleCodeListVersion; - } - - /** - * Sets the value of the accessRuleCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setAccessRuleCodeListVersion(CodeType value) { - this.accessRuleCodeListVersion = value; - } - - /** - * Gets the value of the disseminationRuleCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getDisseminationRuleCodeListVersion() { - return disseminationRuleCodeListVersion; - } - - /** - * Sets the value of the disseminationRuleCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setDisseminationRuleCodeListVersion(CodeType value) { - this.disseminationRuleCodeListVersion = value; - } - - /** - * Gets the value of the reuseRuleCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getReuseRuleCodeListVersion() { - return reuseRuleCodeListVersion; - } - - /** - * Sets the value of the reuseRuleCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setReuseRuleCodeListVersion(CodeType value) { - this.reuseRuleCodeListVersion = value; - } - - /** - * Gets the value of the classificationRuleCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getClassificationRuleCodeListVersion() { - return classificationRuleCodeListVersion; - } - - /** - * Sets the value of the classificationRuleCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setClassificationRuleCodeListVersion(CodeType value) { - this.classificationRuleCodeListVersion = value; - } - - /** - * Gets the value of the holdRuleCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getHoldRuleCodeListVersion() { - return holdRuleCodeListVersion; - } - - /** - * Sets the value of the holdRuleCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setHoldRuleCodeListVersion(CodeType value) { - this.holdRuleCodeListVersion = value; - } - - /** - * Gets the value of the acquisitionInformationCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getAcquisitionInformationCodeListVersion() { - return acquisitionInformationCodeListVersion; - } - - /** - * Sets the value of the acquisitionInformationCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setAcquisitionInformationCodeListVersion(CodeType value) { - this.acquisitionInformationCodeListVersion = value; - } - - /** - * Gets the value of the authorizationReasonCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getAuthorizationReasonCodeListVersion() { - return authorizationReasonCodeListVersion; - } - - /** - * Sets the value of the authorizationReasonCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setAuthorizationReasonCodeListVersion(CodeType value) { - this.authorizationReasonCodeListVersion = value; - } - - /** - * Gets the value of the relationshipCodeListVersion property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getRelationshipCodeListVersion() { - return relationshipCodeListVersion; - } - - /** - * Sets the value of the relationshipCodeListVersion property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setRelationshipCodeListVersion(CodeType value) { - this.relationshipCodeListVersion = value; - } - - /** - * Gets the value of the any 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the any property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link Object } - * {@link Element } - * - * - * @return - * The value of the any property. - */ - public List getAny() { - if (any == null) { - any = new ArrayList<>(); - } - return this.any; - } - - /** - * 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; - } - + /** Liste des codes de réponses à utiliser. */ + @XmlElement(name = "ReplyCodeListVersion") + protected CodeType replyCodeListVersion; + + /** Liste de l'algorithme de hachage utilisé dans le message. */ + @XmlElement(name = "MessageDigestAlgorithmCodeListVersion") + protected CodeType messageDigestAlgorithmCodeListVersion; + + /** Version de la liste de code du type Mime. */ + @XmlElement(name = "MimeTypeCodeListVersion") + protected CodeType mimeTypeCodeListVersion; + + /** Version de la liste de code d'encodage du fichier. */ + @XmlElement(name = "EncodingCodeListVersion") + protected CodeType encodingCodeListVersion; + + /** Version de la liste de code d'identification du format. */ + @XmlElement(name = "FileFormatCodeListVersion") + protected CodeType fileFormatCodeListVersion; + + /** Version de la liste de code de l'algorithme de compression. */ + @XmlElement(name = "CompressionAlgorithmCodeListVersion") + protected CodeType compressionAlgorithmCodeListVersion; + + /** + * Liste de codes correspondant aux diverses versions d'un objet-données au sein d’un groupe + * d'objets-données (ex. original papier, conservation, diffusion, vignette, txt). + */ + @XmlElement(name = "DataObjectVersionCodeListVersion") + protected CodeType dataObjectVersionCodeListVersion; + + /** Version des listes de codes pour les règles de durée d'utilité courante. */ + @XmlElement(name = "StorageRuleCodeListVersion") + protected CodeType storageRuleCodeListVersion; + + /** Version des listes de codes pour les règles de durée d'utilité administrative. */ + @XmlElement(name = "AppraisalRuleCodeListVersion") + protected CodeType appraisalRuleCodeListVersion; + + /** Version des listes de codes pour les règles de communicabilité. */ + @XmlElement(name = "AccessRuleCodeListVersion") + protected CodeType accessRuleCodeListVersion; + + /** Version des listes de codes pour les règles de diffusion. */ + @XmlElement(name = "DisseminationRuleCodeListVersion") + protected CodeType disseminationRuleCodeListVersion; + + /** Version des listes de codes pour les règles de réutilisation. */ + @XmlElement(name = "ReuseRuleCodeListVersion") + protected CodeType reuseRuleCodeListVersion; + + /** Version des listes de codes pour les règles de classification. */ + @XmlElement(name = "ClassificationRuleCodeListVersion") + protected CodeType classificationRuleCodeListVersion; + + /** Version des listes de codes pour les règles de gel. */ + @XmlElement(name = "HoldRuleCodeListVersion") + protected CodeType holdRuleCodeListVersion; + + /** Version de la liste de codes des modalités d'entrée. */ + @XmlElement(name = "AcquisitionInformationCodeListVersion") + protected CodeType acquisitionInformationCodeListVersion; + + /** Version de la liste de codes d'autorisation. */ + @XmlElement(name = "AuthorizationReasonCodeListVersion") + protected CodeType authorizationReasonCodeListVersion; + + /** Version de la liste de codes des relations. */ + @XmlElement(name = "RelationshipCodeListVersion") + protected CodeType relationshipCodeListVersion; + + @XmlAnyElement(lax = true) + protected List any; + + /** + * + * + *
+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>id (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        should be interpreted as if declared to be of type ID.
+   *        This name is reserved by virtue of its definition in the
+   *        xml:id specification.</p><p>
+   *       See <a href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+   *       for information about this attribute.</p></div>
+   * 
+ */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Liste des codes de réponses à utiliser. + * + * @return possible object is {@link CodeType } + */ + public CodeType getReplyCodeListVersion() { + return replyCodeListVersion; + } + + /** + * Sets the value of the replyCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getReplyCodeListVersion() + */ + public void setReplyCodeListVersion(CodeType value) { + this.replyCodeListVersion = value; + } + + /** + * Liste de l'algorithme de hachage utilisé dans le message. + * + * @return possible object is {@link CodeType } + */ + public CodeType getMessageDigestAlgorithmCodeListVersion() { + return messageDigestAlgorithmCodeListVersion; + } + + /** + * Sets the value of the messageDigestAlgorithmCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getMessageDigestAlgorithmCodeListVersion() + */ + public void setMessageDigestAlgorithmCodeListVersion(CodeType value) { + this.messageDigestAlgorithmCodeListVersion = value; + } + + /** + * Version de la liste de code du type Mime. + * + * @return possible object is {@link CodeType } + */ + public CodeType getMimeTypeCodeListVersion() { + return mimeTypeCodeListVersion; + } + + /** + * Sets the value of the mimeTypeCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getMimeTypeCodeListVersion() + */ + public void setMimeTypeCodeListVersion(CodeType value) { + this.mimeTypeCodeListVersion = value; + } + + /** + * Version de la liste de code d'encodage du fichier. + * + * @return possible object is {@link CodeType } + */ + public CodeType getEncodingCodeListVersion() { + return encodingCodeListVersion; + } + + /** + * Sets the value of the encodingCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getEncodingCodeListVersion() + */ + public void setEncodingCodeListVersion(CodeType value) { + this.encodingCodeListVersion = value; + } + + /** + * Version de la liste de code d'identification du format. + * + * @return possible object is {@link CodeType } + */ + public CodeType getFileFormatCodeListVersion() { + return fileFormatCodeListVersion; + } + + /** + * Sets the value of the fileFormatCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getFileFormatCodeListVersion() + */ + public void setFileFormatCodeListVersion(CodeType value) { + this.fileFormatCodeListVersion = value; + } + + /** + * Version de la liste de code de l'algorithme de compression. + * + * @return possible object is {@link CodeType } + */ + public CodeType getCompressionAlgorithmCodeListVersion() { + return compressionAlgorithmCodeListVersion; + } + + /** + * Sets the value of the compressionAlgorithmCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getCompressionAlgorithmCodeListVersion() + */ + public void setCompressionAlgorithmCodeListVersion(CodeType value) { + this.compressionAlgorithmCodeListVersion = value; + } + + /** + * Liste de codes correspondant aux diverses versions d'un objet-données au sein d’un groupe + * d'objets-données (ex. original papier, conservation, diffusion, vignette, txt). + * + * @return possible object is {@link CodeType } + */ + public CodeType getDataObjectVersionCodeListVersion() { + return dataObjectVersionCodeListVersion; + } + + /** + * Sets the value of the dataObjectVersionCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getDataObjectVersionCodeListVersion() + */ + public void setDataObjectVersionCodeListVersion(CodeType value) { + this.dataObjectVersionCodeListVersion = value; + } + + /** + * Version des listes de codes pour les règles de durée d'utilité courante. + * + * @return possible object is {@link CodeType } + */ + public CodeType getStorageRuleCodeListVersion() { + return storageRuleCodeListVersion; + } + + /** + * Sets the value of the storageRuleCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getStorageRuleCodeListVersion() + */ + public void setStorageRuleCodeListVersion(CodeType value) { + this.storageRuleCodeListVersion = value; + } + + /** + * Version des listes de codes pour les règles de durée d'utilité administrative. + * + * @return possible object is {@link CodeType } + */ + public CodeType getAppraisalRuleCodeListVersion() { + return appraisalRuleCodeListVersion; + } + + /** + * Sets the value of the appraisalRuleCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getAppraisalRuleCodeListVersion() + */ + public void setAppraisalRuleCodeListVersion(CodeType value) { + this.appraisalRuleCodeListVersion = value; + } + + /** + * Version des listes de codes pour les règles de communicabilité. + * + * @return possible object is {@link CodeType } + */ + public CodeType getAccessRuleCodeListVersion() { + return accessRuleCodeListVersion; + } + + /** + * Sets the value of the accessRuleCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getAccessRuleCodeListVersion() + */ + public void setAccessRuleCodeListVersion(CodeType value) { + this.accessRuleCodeListVersion = value; + } + + /** + * Version des listes de codes pour les règles de diffusion. + * + * @return possible object is {@link CodeType } + */ + public CodeType getDisseminationRuleCodeListVersion() { + return disseminationRuleCodeListVersion; + } + + /** + * Sets the value of the disseminationRuleCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getDisseminationRuleCodeListVersion() + */ + public void setDisseminationRuleCodeListVersion(CodeType value) { + this.disseminationRuleCodeListVersion = value; + } + + /** + * Version des listes de codes pour les règles de réutilisation. + * + * @return possible object is {@link CodeType } + */ + public CodeType getReuseRuleCodeListVersion() { + return reuseRuleCodeListVersion; + } + + /** + * Sets the value of the reuseRuleCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getReuseRuleCodeListVersion() + */ + public void setReuseRuleCodeListVersion(CodeType value) { + this.reuseRuleCodeListVersion = value; + } + + /** + * Version des listes de codes pour les règles de classification. + * + * @return possible object is {@link CodeType } + */ + public CodeType getClassificationRuleCodeListVersion() { + return classificationRuleCodeListVersion; + } + + /** + * Sets the value of the classificationRuleCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getClassificationRuleCodeListVersion() + */ + public void setClassificationRuleCodeListVersion(CodeType value) { + this.classificationRuleCodeListVersion = value; + } + + /** + * Version des listes de codes pour les règles de gel. + * + * @return possible object is {@link CodeType } + */ + public CodeType getHoldRuleCodeListVersion() { + return holdRuleCodeListVersion; + } + + /** + * Sets the value of the holdRuleCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getHoldRuleCodeListVersion() + */ + public void setHoldRuleCodeListVersion(CodeType value) { + this.holdRuleCodeListVersion = value; + } + + /** + * Version de la liste de codes des modalités d'entrée. + * + * @return possible object is {@link CodeType } + */ + public CodeType getAcquisitionInformationCodeListVersion() { + return acquisitionInformationCodeListVersion; + } + + /** + * Sets the value of the acquisitionInformationCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getAcquisitionInformationCodeListVersion() + */ + public void setAcquisitionInformationCodeListVersion(CodeType value) { + this.acquisitionInformationCodeListVersion = value; + } + + /** + * Version de la liste de codes d'autorisation. + * + * @return possible object is {@link CodeType } + */ + public CodeType getAuthorizationReasonCodeListVersion() { + return authorizationReasonCodeListVersion; + } + + /** + * Sets the value of the authorizationReasonCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getAuthorizationReasonCodeListVersion() + */ + public void setAuthorizationReasonCodeListVersion(CodeType value) { + this.authorizationReasonCodeListVersion = value; + } + + /** + * Version de la liste de codes des relations. + * + * @return possible object is {@link CodeType } + */ + public CodeType getRelationshipCodeListVersion() { + return relationshipCodeListVersion; + } + + /** + * Sets the value of the relationshipCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + * @see #getRelationshipCodeListVersion() + */ + public void setRelationshipCodeListVersion(CodeType value) { + this.relationshipCodeListVersion = value; + } + + /** + * Gets the value of the any 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 any property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link Object } {@link Element } + * + * @return The value of the any property. + */ + public List getAny() { + if (any == null) { + any = new ArrayList<>(); + } + return this.any; + } + + /** + * + * + *
+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>id (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        should be interpreted as if declared to be of type ID.
+   *        This name is reserved by virtue of its definition in the
+   *        xml:id specification.</p><p>
+   *       See <a href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+   *       for information about this attribute.</p></div>
+   * 
+ * + * @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 } + * @see #getId() + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CodeType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CodeType.java index 55c832a..db89d86 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CodeType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CodeType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -16,12 +15,11 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** - *

Java class for CodeType complex type. - * + * Java class for CodeType complex type. + * *

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

{@code
  * 
  *   
@@ -39,285 +37,233 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CodeType", propOrder = { - "value" -}) +@XmlType( + name = "CodeType", + propOrder = {"value"}) public class CodeType { - @XmlValue - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String value; - @XmlAttribute(name = "listID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String listID; - @XmlAttribute(name = "listAgencyID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String listAgencyID; - @XmlAttribute(name = "listAgencyName") - protected String listAgencyName; - @XmlAttribute(name = "listName") - protected String listName; - @XmlAttribute(name = "listVersionID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String listVersionID; - @XmlAttribute(name = "name") - protected String name; - @XmlAttribute(name = "languageID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "language") - protected String languageID; - @XmlAttribute(name = "listURI") - @XmlSchemaType(name = "anyURI") - protected String listURI; - @XmlAttribute(name = "listSchemeURI") - @XmlSchemaType(name = "anyURI") - protected String listSchemeURI; - - /** - * Elément ne pouvant être vide. - * - * @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 listID property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getListID() { - return listID; - } - - /** - * Sets the value of the listID property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setListID(String value) { - this.listID = value; - } - - /** - * Gets the value of the listAgencyID property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getListAgencyID() { - return listAgencyID; - } - - /** - * Sets the value of the listAgencyID property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setListAgencyID(String value) { - this.listAgencyID = value; - } - - /** - * Gets the value of the listAgencyName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getListAgencyName() { - return listAgencyName; - } - - /** - * Sets the value of the listAgencyName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setListAgencyName(String value) { - this.listAgencyName = value; - } - - /** - * Gets the value of the listName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getListName() { - return listName; - } - - /** - * Sets the value of the listName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setListName(String value) { - this.listName = value; - } - - /** - * Gets the value of the listVersionID property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getListVersionID() { - return listVersionID; - } - - /** - * Sets the value of the listVersionID property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setListVersionID(String value) { - this.listVersionID = 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 languageID property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getLanguageID() { - return languageID; - } - - /** - * Sets the value of the languageID property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLanguageID(String value) { - this.languageID = value; - } - - /** - * Gets the value of the listURI property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getListURI() { - return listURI; - } - - /** - * Sets the value of the listURI property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setListURI(String value) { - this.listURI = value; - } - - /** - * Gets the value of the listSchemeURI property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getListSchemeURI() { - return listSchemeURI; - } - - /** - * Sets the value of the listSchemeURI property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setListSchemeURI(String value) { - this.listSchemeURI = value; - } + /** Elément ne pouvant être vide. */ + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String value; + + @XmlAttribute(name = "listID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String listID; + + @XmlAttribute(name = "listAgencyID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String listAgencyID; + + @XmlAttribute(name = "listAgencyName") + protected String listAgencyName; + + @XmlAttribute(name = "listName") + protected String listName; + + @XmlAttribute(name = "listVersionID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String listVersionID; + + @XmlAttribute(name = "name") + protected String name; + + @XmlAttribute(name = "languageID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "language") + protected String languageID; + + @XmlAttribute(name = "listURI") + @XmlSchemaType(name = "anyURI") + protected String listURI; + + @XmlAttribute(name = "listSchemeURI") + @XmlSchemaType(name = "anyURI") + protected String listSchemeURI; + + /** + * Elément ne pouvant être vide. + * + * @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 } + * @see #getValue() + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the listID property. + * + * @return possible object is {@link String } + */ + public String getListID() { + return listID; + } + + /** + * Sets the value of the listID property. + * + * @param value allowed object is {@link String } + */ + public void setListID(String value) { + this.listID = value; + } + + /** + * Gets the value of the listAgencyID property. + * + * @return possible object is {@link String } + */ + public String getListAgencyID() { + return listAgencyID; + } + + /** + * Sets the value of the listAgencyID property. + * + * @param value allowed object is {@link String } + */ + public void setListAgencyID(String value) { + this.listAgencyID = value; + } + + /** + * Gets the value of the listAgencyName property. + * + * @return possible object is {@link String } + */ + public String getListAgencyName() { + return listAgencyName; + } + + /** + * Sets the value of the listAgencyName property. + * + * @param value allowed object is {@link String } + */ + public void setListAgencyName(String value) { + this.listAgencyName = value; + } + + /** + * Gets the value of the listName property. + * + * @return possible object is {@link String } + */ + public String getListName() { + return listName; + } + + /** + * Sets the value of the listName property. + * + * @param value allowed object is {@link String } + */ + public void setListName(String value) { + this.listName = value; + } + + /** + * Gets the value of the listVersionID property. + * + * @return possible object is {@link String } + */ + public String getListVersionID() { + return listVersionID; + } + + /** + * Sets the value of the listVersionID property. + * + * @param value allowed object is {@link String } + */ + public void setListVersionID(String value) { + this.listVersionID = 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 languageID property. + * + * @return possible object is {@link String } + */ + public String getLanguageID() { + return languageID; + } + + /** + * Sets the value of the languageID property. + * + * @param value allowed object is {@link String } + */ + public void setLanguageID(String value) { + this.languageID = value; + } + + /** + * Gets the value of the listURI property. + * + * @return possible object is {@link String } + */ + public String getListURI() { + return listURI; + } + + /** + * Sets the value of the listURI property. + * + * @param value allowed object is {@link String } + */ + public void setListURI(String value) { + this.listURI = value; + } + + /** + * Gets the value of the listSchemeURI property. + * + * @return possible object is {@link String } + */ + public String getListSchemeURI() { + return listSchemeURI; + } + /** + * Sets the value of the listSchemeURI property. + * + * @param value allowed object is {@link String } + */ + public void setListSchemeURI(String value) { + this.listSchemeURI = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CompressedType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CompressedType.java index ed4dc83..1cec399 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CompressedType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CompressedType.java @@ -1,13 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.math.BigInteger; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAttribute; @@ -15,13 +13,13 @@ import jakarta.xml.bind.annotation.XmlValue; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - +import java.math.BigInteger; /** - *

Java class for CompressedType complex type. - * + * Java class for CompressedType complex type. + * *

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

{@code
  * 
  *   
@@ -32,93 +30,73 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CompressedType", propOrder = { - "value" -}) +@XmlType( + name = "CompressedType", + propOrder = {"value"}) public class CompressedType { - @XmlValue - protected String value; - @XmlAttribute(name = "algorithm", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String algorithm; - @XmlAttribute(name = "uncompressedSize", required = true) - protected BigInteger uncompressedSize; + @XmlValue protected String value; + + @XmlAttribute(name = "algorithm", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String algorithm; - /** - * Gets the value of the value property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } + @XmlAttribute(name = "uncompressedSize", required = true) + protected BigInteger uncompressedSize; - /** - * 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 value property. + * + * @return possible object is {@link String } + */ + public String getValue() { + return value; + } - /** - * Gets the value of the algorithm property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAlgorithm() { - return algorithm; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link String } + */ + public void setValue(String value) { + this.value = value; + } - /** - * Sets the value of the algorithm property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAlgorithm(String value) { - this.algorithm = value; - } + /** + * Gets the value of the algorithm property. + * + * @return possible object is {@link String } + */ + public String getAlgorithm() { + return algorithm; + } - /** - * Gets the value of the uncompressedSize property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getUncompressedSize() { - return uncompressedSize; - } + /** + * Sets the value of the algorithm property. + * + * @param value allowed object is {@link String } + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } - /** - * Sets the value of the uncompressedSize property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setUncompressedSize(BigInteger value) { - this.uncompressedSize = value; - } + /** + * Gets the value of the uncompressedSize property. + * + * @return possible object is {@link BigInteger } + */ + public BigInteger getUncompressedSize() { + return uncompressedSize; + } + /** + * Sets the value of the uncompressedSize property. + * + * @param value allowed object is {@link BigInteger } + */ + public void setUncompressedSize(BigInteger value) { + this.uncompressedSize = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CoreMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CoreMetadataType.java index 188b93e..396c946 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CoreMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CoreMetadataType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -14,14 +13,13 @@ import jakarta.xml.bind.annotation.XmlType; import org.w3c.dom.Element; - /** * Métadonnées de base par type d'objet-données. - * + * *

Java class for CoreMetadataType complex type. - * + * *

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

{@code
  * 
  *   
@@ -38,177 +36,146 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CoreMetadataType", propOrder = { - "text", - "document", - "image", - "audio", - "video", - "any" -}) +@XmlType( + name = "CoreMetadataType", + propOrder = {"text", "document", "image", "audio", "video", "any"}) public class CoreMetadataType { - @XmlElement(name = "Text") - protected TextTechnicalMetadataType text; - @XmlElement(name = "Document") - protected DocumentTechnicalMetadataType document; - @XmlElement(name = "Image") - protected ImageTechnicalMetadataType image; - @XmlElement(name = "Audio") - protected AudioTechnicalMetadataType audio; - @XmlElement(name = "Video") - protected VideoTechnicalMetadataType video; - @XmlAnyElement(lax = true) - protected Object any; - - /** - * Gets the value of the text property. - * - * @return - * possible object is - * {@link TextTechnicalMetadataType } - * - */ - public TextTechnicalMetadataType getText() { - return text; - } - - /** - * Sets the value of the text property. - * - * @param value - * allowed object is - * {@link TextTechnicalMetadataType } - * - */ - public void setText(TextTechnicalMetadataType value) { - this.text = value; - } - - /** - * Gets the value of the document property. - * - * @return - * possible object is - * {@link DocumentTechnicalMetadataType } - * - */ - public DocumentTechnicalMetadataType getDocument() { - return document; - } - - /** - * Sets the value of the document property. - * - * @param value - * allowed object is - * {@link DocumentTechnicalMetadataType } - * - */ - public void setDocument(DocumentTechnicalMetadataType value) { - this.document = value; - } - - /** - * Gets the value of the image property. - * - * @return - * possible object is - * {@link ImageTechnicalMetadataType } - * - */ - public ImageTechnicalMetadataType getImage() { - return image; - } - - /** - * Sets the value of the image property. - * - * @param value - * allowed object is - * {@link ImageTechnicalMetadataType } - * - */ - public void setImage(ImageTechnicalMetadataType value) { - this.image = value; - } - - /** - * Gets the value of the audio property. - * - * @return - * possible object is - * {@link AudioTechnicalMetadataType } - * - */ - public AudioTechnicalMetadataType getAudio() { - return audio; - } - - /** - * Sets the value of the audio property. - * - * @param value - * allowed object is - * {@link AudioTechnicalMetadataType } - * - */ - public void setAudio(AudioTechnicalMetadataType value) { - this.audio = value; - } - - /** - * Gets the value of the video property. - * - * @return - * possible object is - * {@link VideoTechnicalMetadataType } - * - */ - public VideoTechnicalMetadataType getVideo() { - return video; - } - - /** - * Sets the value of the video property. - * - * @param value - * allowed object is - * {@link VideoTechnicalMetadataType } - * - */ - public void setVideo(VideoTechnicalMetadataType value) { - this.video = value; - } - - /** - * Gets the value of the any property. - * - * @return - * possible object is - * {@link Object } - * {@link Element } - * - */ - public Object getAny() { - return any; - } - - /** - * Sets the value of the any property. - * - * @param value - * allowed object is - * {@link Object } - * {@link Element } - * - */ - public void setAny(Object value) { - this.any = value; - } - + /** Métadonnées pour un objet-données de type textuel. */ + @XmlElement(name = "Text") + protected TextTechnicalMetadataType text; + + /** Métadonnées pour un objet-données de type document. */ + @XmlElement(name = "Document") + protected DocumentTechnicalMetadataType document; + + /** Métadonnées pour un objet-données de type image. */ + @XmlElement(name = "Image") + protected ImageTechnicalMetadataType image; + + /** Métadonnées pour un objet-données de type audio. */ + @XmlElement(name = "Audio") + protected AudioTechnicalMetadataType audio; + + /** Métadonnées pour un objet-données de type vidéo. */ + @XmlElement(name = "Video") + protected VideoTechnicalMetadataType video; + + @XmlAnyElement(lax = true) + protected Object any; + + /** + * Métadonnées pour un objet-données de type textuel. + * + * @return possible object is {@link TextTechnicalMetadataType } + */ + public TextTechnicalMetadataType getText() { + return text; + } + + /** + * Sets the value of the text property. + * + * @param value allowed object is {@link TextTechnicalMetadataType } + * @see #getText() + */ + public void setText(TextTechnicalMetadataType value) { + this.text = value; + } + + /** + * Métadonnées pour un objet-données de type document. + * + * @return possible object is {@link DocumentTechnicalMetadataType } + */ + public DocumentTechnicalMetadataType getDocument() { + return document; + } + + /** + * Sets the value of the document property. + * + * @param value allowed object is {@link DocumentTechnicalMetadataType } + * @see #getDocument() + */ + public void setDocument(DocumentTechnicalMetadataType value) { + this.document = value; + } + + /** + * Métadonnées pour un objet-données de type image. + * + * @return possible object is {@link ImageTechnicalMetadataType } + */ + public ImageTechnicalMetadataType getImage() { + return image; + } + + /** + * Sets the value of the image property. + * + * @param value allowed object is {@link ImageTechnicalMetadataType } + * @see #getImage() + */ + public void setImage(ImageTechnicalMetadataType value) { + this.image = value; + } + + /** + * Métadonnées pour un objet-données de type audio. + * + * @return possible object is {@link AudioTechnicalMetadataType } + */ + public AudioTechnicalMetadataType getAudio() { + return audio; + } + + /** + * Sets the value of the audio property. + * + * @param value allowed object is {@link AudioTechnicalMetadataType } + * @see #getAudio() + */ + public void setAudio(AudioTechnicalMetadataType value) { + this.audio = value; + } + + /** + * Métadonnées pour un objet-données de type vidéo. + * + * @return possible object is {@link VideoTechnicalMetadataType } + */ + public VideoTechnicalMetadataType getVideo() { + return video; + } + + /** + * Sets the value of the video property. + * + * @param value allowed object is {@link VideoTechnicalMetadataType } + * @see #getVideo() + */ + public void setVideo(VideoTechnicalMetadataType value) { + this.video = value; + } + + /** + * Gets the value of the any property. + * + * @return possible object is {@link Object } {@link Element } + */ + public Object getAny() { + return any; + } + + /** + * Sets the value of the any property. + * + * @param value allowed object is {@link Object } {@link Element } + */ + public void setAny(Object value) { + this.any = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CoverageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CoverageType.java index e79a9e5..9aed766 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CoverageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CoverageType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for CoverageType complex type. - * + * Java class for CoverageType complex type. + * *

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

{@code
  * 
  *   
@@ -33,115 +31,100 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CoverageType", propOrder = { - "spatial", - "temporal", - "juridictional" -}) +@XmlType( + name = "CoverageType", + propOrder = {"spatial", "temporal", "juridictional"}) public class CoverageType { - @XmlElement(name = "Spatial") - protected List spatial; - @XmlElement(name = "Temporal") - protected List temporal; - @XmlElement(name = "Juridictional") - protected List juridictional; + /** Références: AGKRMS.spatialCoverage */ + @XmlElement(name = "Spatial") + protected List spatial; - /** - * Gets the value of the spatial 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the spatial property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the spatial property. - */ - public List getSpatial() { - if (spatial == null) { - spatial = new ArrayList<>(); - } - return this.spatial; - } + /** Références: AGKRMS.temporalCoverage */ + @XmlElement(name = "Temporal") + protected List temporal; - /** - * Gets the value of the temporal 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the temporal property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the temporal property. - */ - public List getTemporal() { - if (temporal == null) { - temporal = new ArrayList<>(); - } - return this.temporal; + /** Références: AGKRMS.juridictionalCoverage */ + @XmlElement(name = "Juridictional") + protected List juridictional; + + /** + * Références: AGKRMS.spatialCoverage + * + *

Gets the value of the spatial 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 spatial property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the spatial property. + */ + public List getSpatial() { + if (spatial == null) { + spatial = new ArrayList<>(); } + return this.spatial; + } - /** - * Gets the value of the juridictional 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the juridictional property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the juridictional property. - */ - public List getJuridictional() { - if (juridictional == null) { - juridictional = new ArrayList<>(); - } - return this.juridictional; + /** + * Références: AGKRMS.temporalCoverage + * + *

Gets the value of the temporal 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 temporal property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the temporal property. + */ + public List getTemporal() { + if (temporal == null) { + temporal = new ArrayList<>(); } + return this.temporal; + } + /** + * Références: AGKRMS.juridictionalCoverage + * + *

Gets the value of the juridictional 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 juridictional property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the juridictional property. + */ + public List getJuridictional() { + if (juridictional == null) { + juridictional = new ArrayList<>(); + } + return this.juridictional; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CustodialHistoryItemType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CustodialHistoryItemType.java index bcd0c20..7858bce 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CustodialHistoryItemType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CustodialHistoryItemType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -12,12 +11,11 @@ import jakarta.xml.bind.annotation.XmlAttribute; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for CustodialHistoryItemType complex type. - * + * Java class for CustodialHistoryItemType complex type. + * *

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

{@code
  * 
  *   
@@ -27,40 +25,29 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CustodialHistoryItemType") -public class CustodialHistoryItemType - extends TextType -{ - - @XmlAttribute(name = "when") - protected String when; - - /** - * Gets the value of the when property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getWhen() { - return when; - } - - /** - * Sets the value of the when property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setWhen(String value) { - this.when = value; - } - +public class CustodialHistoryItemType extends TextType { + + @XmlAttribute(name = "when") + protected String when; + + /** + * Gets the value of the when property. + * + * @return possible object is {@link String } + */ + public String getWhen() { + return when; + } + + /** + * Sets the value of the when property. + * + * @param value allowed object is {@link String } + */ + public void setWhen(String value) { + this.when = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CustodialHistoryType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CustodialHistoryType.java index 7d92162..37e64c9 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CustodialHistoryType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/CustodialHistoryType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for CustodialHistoryType complex type. - * + * Java class for CustodialHistoryType complex type. + * *

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

{@code
  * 
  *   
@@ -32,74 +30,63 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CustodialHistoryType", propOrder = { - "custodialHistoryItem", - "custodialHistoryFile" -}) +@XmlType( + name = "CustodialHistoryType", + propOrder = {"custodialHistoryItem", "custodialHistoryFile"}) public class CustodialHistoryType { - @XmlElement(name = "CustodialHistoryItem", required = true) - protected List custodialHistoryItem; - @XmlElement(name = "CustodialHistoryFile") - protected DataObjectRefType custodialHistoryFile; + /** Références : seda.CustodialHistoryItem */ + @XmlElement(name = "CustodialHistoryItem", required = true) + protected List custodialHistoryItem; - /** - * Gets the value of the custodialHistoryItem 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the custodialHistoryItem property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link CustodialHistoryItemType } - * - * - * @return - * The value of the custodialHistoryItem property. - */ - public List getCustodialHistoryItem() { - if (custodialHistoryItem == null) { - custodialHistoryItem = new ArrayList<>(); - } - return this.custodialHistoryItem; - } + /** Référence à un fichier de journalisation externe. */ + @XmlElement(name = "CustodialHistoryFile") + protected DataObjectRefType custodialHistoryFile; - /** - * Gets the value of the custodialHistoryFile property. - * - * @return - * possible object is - * {@link DataObjectRefType } - * - */ - public DataObjectRefType getCustodialHistoryFile() { - return custodialHistoryFile; + /** + * Références : seda.CustodialHistoryItem + * + *

Gets the value of the custodialHistoryItem 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 custodialHistoryItem property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link CustodialHistoryItemType } + * + * @return The value of the custodialHistoryItem property. + */ + public List getCustodialHistoryItem() { + if (custodialHistoryItem == null) { + custodialHistoryItem = new ArrayList<>(); } + return this.custodialHistoryItem; + } - /** - * Sets the value of the custodialHistoryFile property. - * - * @param value - * allowed object is - * {@link DataObjectRefType } - * - */ - public void setCustodialHistoryFile(DataObjectRefType value) { - this.custodialHistoryFile = value; - } + /** + * Référence à un fichier de journalisation externe. + * + * @return possible object is {@link DataObjectRefType } + */ + public DataObjectRefType getCustodialHistoryFile() { + return custodialHistoryFile; + } + /** + * Sets the value of the custodialHistoryFile property. + * + * @param value allowed object is {@link DataObjectRefType } + * @see #getCustodialHistoryFile() + */ + public void setCustodialHistoryFile(DataObjectRefType value) { + this.custodialHistoryFile = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectGroupType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectGroupType.java index 4186876..d45b3c1 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectGroupType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectGroupType.java @@ -1,25 +1,29 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; - -import jakarta.xml.bind.annotation.*; +import jakarta.xml.bind.annotation.XmlAccessType; +import jakarta.xml.bind.annotation.XmlAccessorType; +import jakarta.xml.bind.annotation.XmlAttribute; +import jakarta.xml.bind.annotation.XmlElement; +import jakarta.xml.bind.annotation.XmlElements; +import jakarta.xml.bind.annotation.XmlID; +import jakarta.xml.bind.annotation.XmlSchemaType; +import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for DataObjectGroupType complex type. - * + * Java class for DataObjectGroupType complex type. + * *

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

{@code
  * 
  *   
@@ -36,108 +40,86 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DataObjectGroupType", propOrder = { - "binaryDataObjectOrPhysicalDataObject", - "logBook" -}) +@XmlType( + name = "DataObjectGroupType", + propOrder = {"binaryDataObjectOrPhysicalDataObject", "logBook"}) public class DataObjectGroupType { - @XmlElements({ - @XmlElement(name = "BinaryDataObject", type = BinaryDataObjectType.class), - @XmlElement(name = "PhysicalDataObject", type = PhysicalDataObjectType.class) - }) - protected List binaryDataObjectOrPhysicalDataObject; - @XmlElement(name = "LogBook") - protected LogBookOgType logBook; - + @XmlElements({ + @XmlElement(name = "BinaryDataObject", type = BinaryDataObjectType.class), + @XmlElement(name = "PhysicalDataObject", type = PhysicalDataObjectType.class) + }) + protected List binaryDataObjectOrPhysicalDataObject; - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlAttribute(name = "id", required = true) - protected String id; + @XmlElement(name = "LogBook") + protected LogBookOgType logBook; - /** - * Gets the value of the binaryDataObjectOrPhysicalDataObject 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the binaryDataObjectOrPhysicalDataObject property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link BinaryDataObjectType } - * {@link PhysicalDataObjectType } - * - * - * @return - * The value of the binaryDataObjectOrPhysicalDataObject property. - */ - public List getBinaryDataObjectOrPhysicalDataObject() { - if (binaryDataObjectOrPhysicalDataObject == null) { - binaryDataObjectOrPhysicalDataObject = new ArrayList<>(); - } - return this.binaryDataObjectOrPhysicalDataObject; - } + @XmlAttribute(name = "id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Gets the value of the logBook property. - * - * @return - * possible object is - * {@link LogBookOgType } - * - */ - public LogBookOgType getLogBook() { - return logBook; + /** + * Gets the value of the binaryDataObjectOrPhysicalDataObject 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 binaryDataObjectOrPhysicalDataObject property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link BinaryDataObjectType } + * {@link PhysicalDataObjectType } + * + * @return The value of the binaryDataObjectOrPhysicalDataObject property. + */ + public List getBinaryDataObjectOrPhysicalDataObject() { + if (binaryDataObjectOrPhysicalDataObject == null) { + binaryDataObjectOrPhysicalDataObject = new ArrayList<>(); } + return this.binaryDataObjectOrPhysicalDataObject; + } - /** - * Sets the value of the logBook property. - * - * @param value - * allowed object is - * {@link LogBookOgType } - * - */ - public void setLogBook(LogBookOgType value) { - this.logBook = value; - } + /** + * Gets the value of the logBook property. + * + * @return possible object is {@link LogBookOgType } + */ + public LogBookOgType getLogBook() { + return logBook; + } - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } + /** + * Sets the value of the logBook property. + * + * @param value allowed object is {@link LogBookOgType } + */ + public void setLogBook(LogBookOgType value) { + this.logBook = value; + } - /** - * 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 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/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectOrArchiveUnitReferenceType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectOrArchiveUnitReferenceType.java index d817d0a..533518a 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectOrArchiveUnitReferenceType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectOrArchiveUnitReferenceType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -16,12 +15,11 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** - *

Java class for DataObjectOrArchiveUnitReferenceType complex type. - * + * Java class for DataObjectOrArchiveUnitReferenceType complex type. + * *

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

{@code
  * 
  *   
@@ -37,156 +35,143 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DataObjectOrArchiveUnitReferenceType", propOrder = { - "archiveUnitRefId", - "dataObjectReference", - "repositoryArchiveUnitPID", - "repositoryObjectPID", - "externalReference" -}) +@XmlType( + name = "DataObjectOrArchiveUnitReferenceType", + propOrder = { + "archiveUnitRefId", + "dataObjectReference", + "repositoryArchiveUnitPID", + "repositoryObjectPID", + "externalReference" + }) public class DataObjectOrArchiveUnitReferenceType { - @XmlElement(name = "ArchiveUnitRefId") - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object archiveUnitRefId; - @XmlElement(name = "DataObjectReference") - protected DataObjectRefType dataObjectReference; - @XmlElement(name = "RepositoryArchiveUnitPID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String repositoryArchiveUnitPID; - @XmlElement(name = "RepositoryObjectPID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String repositoryObjectPID; - @XmlElement(name = "ExternalReference") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String externalReference; - - /** - * Gets the value of the archiveUnitRefId property. - * - * @return - * possible object is - * {@link Object } - * - */ - public Object getArchiveUnitRefId() { - return archiveUnitRefId; - } - - /** - * Sets the value of the archiveUnitRefId property. - * - * @param value - * allowed object is - * {@link Object } - * - */ - public void setArchiveUnitRefId(Object value) { - this.archiveUnitRefId = value; - } - - /** - * Gets the value of the dataObjectReference property. - * - * @return - * possible object is - * {@link DataObjectRefType } - * - */ - public DataObjectRefType getDataObjectReference() { - return dataObjectReference; - } - - /** - * Sets the value of the dataObjectReference property. - * - * @param value - * allowed object is - * {@link DataObjectRefType } - * - */ - public void setDataObjectReference(DataObjectRefType value) { - this.dataObjectReference = value; - } - - /** - * Gets the value of the repositoryArchiveUnitPID property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRepositoryArchiveUnitPID() { - return repositoryArchiveUnitPID; - } - - /** - * Sets the value of the repositoryArchiveUnitPID property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRepositoryArchiveUnitPID(String value) { - this.repositoryArchiveUnitPID = value; - } - - /** - * Gets the value of the repositoryObjectPID property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRepositoryObjectPID() { - return repositoryObjectPID; - } - - /** - * Sets the value of the repositoryObjectPID property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRepositoryObjectPID(String value) { - this.repositoryObjectPID = value; - } - - /** - * Gets the value of the externalReference property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getExternalReference() { - return externalReference; - } - - /** - * Sets the value of the externalReference property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setExternalReference(String value) { - this.externalReference = value; - } - + /** Référence à un ArchiveUnit interne. */ + @XmlElement(name = "ArchiveUnitRefId") + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object archiveUnitRefId; + + /** Référence à un objet-données ou à un groupe d'objets-données interne(s). */ + @XmlElement(name = "DataObjectReference") + protected DataObjectRefType dataObjectReference; + + /** Référence à un ArchiveUnit déjà conservé dans un système d'archivage. */ + @XmlElement(name = "RepositoryArchiveUnitPID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String repositoryArchiveUnitPID; + + /** + * Référence à un un objet-données ou à un groupe d'objets-données déjà conservé(s) dans un + * système d'archivage. + */ + @XmlElement(name = "RepositoryObjectPID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String repositoryObjectPID; + + /** Référence externe. */ + @XmlElement(name = "ExternalReference") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String externalReference; + + /** + * Référence à un ArchiveUnit interne. + * + * @return possible object is {@link Object } + */ + public Object getArchiveUnitRefId() { + return archiveUnitRefId; + } + + /** + * Sets the value of the archiveUnitRefId property. + * + * @param value allowed object is {@link Object } + * @see #getArchiveUnitRefId() + */ + public void setArchiveUnitRefId(Object value) { + this.archiveUnitRefId = value; + } + + /** + * Référence à un objet-données ou à un groupe d'objets-données interne(s). + * + * @return possible object is {@link DataObjectRefType } + */ + public DataObjectRefType getDataObjectReference() { + return dataObjectReference; + } + + /** + * Sets the value of the dataObjectReference property. + * + * @param value allowed object is {@link DataObjectRefType } + * @see #getDataObjectReference() + */ + public void setDataObjectReference(DataObjectRefType value) { + this.dataObjectReference = value; + } + + /** + * Référence à un ArchiveUnit déjà conservé dans un système d'archivage. + * + * @return possible object is {@link String } + */ + public String getRepositoryArchiveUnitPID() { + return repositoryArchiveUnitPID; + } + + /** + * Sets the value of the repositoryArchiveUnitPID property. + * + * @param value allowed object is {@link String } + * @see #getRepositoryArchiveUnitPID() + */ + public void setRepositoryArchiveUnitPID(String value) { + this.repositoryArchiveUnitPID = value; + } + + /** + * Référence à un un objet-données ou à un groupe d'objets-données déjà conservé(s) dans un + * système d'archivage. + * + * @return possible object is {@link String } + */ + public String getRepositoryObjectPID() { + return repositoryObjectPID; + } + + /** + * Sets the value of the repositoryObjectPID property. + * + * @param value allowed object is {@link String } + * @see #getRepositoryObjectPID() + */ + public void setRepositoryObjectPID(String value) { + this.repositoryObjectPID = value; + } + + /** + * Référence externe. + * + * @return possible object is {@link String } + */ + public String getExternalReference() { + return externalReference; + } + + /** + * Sets the value of the externalReference property. + * + * @param value allowed object is {@link String } + * @see #getExternalReference() + */ + public void setExternalReference(String value) { + this.externalReference = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectPackageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectPackageType.java index 7f3f7db..a25ea55 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectPackageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectPackageType.java @@ -1,14 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAttribute; @@ -20,13 +17,14 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for DataObjectPackageType complex type. - * + * Java class for DataObjectPackageType complex type. + * *

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

{@code
  * 
  *   
@@ -47,137 +45,142 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DataObjectPackageType", propOrder = { - "dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject", - "descriptiveMetadata", - "managementMetadata" -}) +@XmlType( + name = "DataObjectPackageType", + propOrder = { + "dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject", + "descriptiveMetadata", + "managementMetadata" + }) @XmlRootElement(name = "DataObjectPackage") public class DataObjectPackageType { - @XmlElements({ - @XmlElement(name = "DataObjectGroup", type = DataObjectGroupType.class), - @XmlElement(name = "BinaryDataObject", type = BinaryDataObjectType.class), - @XmlElement(name = "PhysicalDataObject", type = PhysicalDataObjectType.class) - }) - protected List dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject; - @XmlElement(name = "DescriptiveMetadata", required = true) - protected DescriptiveMetadataType descriptiveMetadata; - @XmlElement(name = "ManagementMetadata", required = true) - protected ManagementMetadataType managementMetadata; - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + @XmlElements({ + @XmlElement(name = "DataObjectGroup", type = DataObjectGroupType.class), + @XmlElement(name = "BinaryDataObject", type = BinaryDataObjectType.class), + @XmlElement(name = "PhysicalDataObject", type = PhysicalDataObjectType.class) + }) + protected List dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject; - /** - * Gets the value of the dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link BinaryDataObjectType } - * {@link DataObjectGroupType } - * {@link PhysicalDataObjectType } - * - * - * @return - * The value of the dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject property. - */ - public List getDataObjectGroupOrBinaryDataObjectOrPhysicalDataObject() { - if (dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject == null) { - dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject = new ArrayList<>(); - } - return this.dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject; - } + /** Bloc de métadonnées descriptives des objets-données. */ + @XmlElement(name = "DescriptiveMetadata", required = true) + protected DescriptiveMetadataType descriptiveMetadata; - /** - * Gets the value of the descriptiveMetadata property. - * - * @return - * possible object is - * {@link DescriptiveMetadataType } - * - */ - public DescriptiveMetadataType getDescriptiveMetadata() { - return descriptiveMetadata; - } + /** Bloc des métadonnées de gestion par défaut des objets-données. */ + @XmlElement(name = "ManagementMetadata", required = true) + protected ManagementMetadataType managementMetadata; - /** - * Sets the value of the descriptiveMetadata property. - * - * @param value - * allowed object is - * {@link DescriptiveMetadataType } - * - */ - public void setDescriptiveMetadata(DescriptiveMetadataType value) { - this.descriptiveMetadata = value; - } + /** + * + * + *
+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>id (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        should be interpreted as if declared to be of type ID.
+   *        This name is reserved by virtue of its definition in the
+   *        xml:id specification.</p><p>
+   *       See <a href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+   *       for information about this attribute.</p></div>
+   * 
+ */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Gets the value of the managementMetadata property. - * - * @return - * possible object is - * {@link ManagementMetadataType } - * - */ - public ManagementMetadataType getManagementMetadata() { - return managementMetadata; + /** + * Gets the value of the dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject 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 + * dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link BinaryDataObjectType } + * {@link DataObjectGroupType } {@link PhysicalDataObjectType } + * + * @return The value of the dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject property. + */ + public List getDataObjectGroupOrBinaryDataObjectOrPhysicalDataObject() { + if (dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject == null) { + dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject = new ArrayList<>(); } + return this.dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject; + } - /** - * Sets the value of the managementMetadata property. - * - * @param value - * allowed object is - * {@link ManagementMetadataType } - * - */ - public void setManagementMetadata(ManagementMetadataType value) { - this.managementMetadata = value; - } + /** + * Bloc de métadonnées descriptives des objets-données. + * + * @return possible object is {@link DescriptiveMetadataType } + */ + public DescriptiveMetadataType getDescriptiveMetadata() { + return descriptiveMetadata; + } - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } + /** + * Sets the value of the descriptiveMetadata property. + * + * @param value allowed object is {@link DescriptiveMetadataType } + * @see #getDescriptiveMetadata() + */ + public void setDescriptiveMetadata(DescriptiveMetadataType value) { + this.descriptiveMetadata = value; + } - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } + /** + * Bloc des métadonnées de gestion par défaut des objets-données. + * + * @return possible object is {@link ManagementMetadataType } + */ + public ManagementMetadataType getManagementMetadata() { + return managementMetadata; + } + + /** + * Sets the value of the managementMetadata property. + * + * @param value allowed object is {@link ManagementMetadataType } + * @see #getManagementMetadata() + */ + public void setManagementMetadata(ManagementMetadataType value) { + this.managementMetadata = value; + } + + /** + * + * + *
+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>id (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        should be interpreted as if declared to be of type ID.
+   *        This name is reserved by virtue of its definition in the
+   *        xml:id specification.</p><p>
+   *       See <a href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+   *       for information about this attribute.</p></div>
+   * 
+ * + * @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 } + * @see #getId() + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectRefType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectRefType.java index 5f7534c..c556239 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectRefType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DataObjectRefType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -19,14 +18,13 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** * Référence à un objet-données ou à un groupe d'objets-données. - * + * *

Java class for DataObjectRefType complex type. - * + * *

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

{@code
  * 
  *   
@@ -42,101 +40,85 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DataObjectRefType", propOrder = { - "dataObjectReferenceId", - "dataObjectGroupReferenceId" -}) +@XmlType( + name = "DataObjectRefType", + propOrder = {"dataObjectReferenceId", "dataObjectGroupReferenceId"}) @XmlRootElement(name = "DataObjectRef") public class DataObjectRefType { - @XmlElement(name = "DataObjectReferenceId") - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object dataObjectReferenceId; - @XmlElement(name = "DataObjectGroupReferenceId") - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object dataObjectGroupReferenceId; - @XmlAttribute(name = "id") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + /** Référence à un objet-données listé dans les métadonnées de transport. */ + @XmlElement(name = "DataObjectReferenceId") + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object dataObjectReferenceId; + + /** Référence à un groupe d'objets-données listé dans les métadonnées de transport. */ + @XmlElement(name = "DataObjectGroupReferenceId") + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object dataObjectGroupReferenceId; - /** - * Gets the value of the dataObjectReferenceId property. - * - * @return - * possible object is - * {@link Object } - * - */ - public Object getDataObjectReferenceId() { - return dataObjectReferenceId; - } + @XmlAttribute(name = "id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Sets the value of the dataObjectReferenceId property. - * - * @param value - * allowed object is - * {@link Object } - * - */ - public void setDataObjectReferenceId(Object value) { - this.dataObjectReferenceId = value; - } + /** + * Référence à un objet-données listé dans les métadonnées de transport. + * + * @return possible object is {@link Object } + */ + public Object getDataObjectReferenceId() { + return dataObjectReferenceId; + } - /** - * Gets the value of the dataObjectGroupReferenceId property. - * - * @return - * possible object is - * {@link Object } - * - */ - public Object getDataObjectGroupReferenceId() { - return dataObjectGroupReferenceId; - } + /** + * Sets the value of the dataObjectReferenceId property. + * + * @param value allowed object is {@link Object } + * @see #getDataObjectReferenceId() + */ + public void setDataObjectReferenceId(Object value) { + this.dataObjectReferenceId = value; + } - /** - * Sets the value of the dataObjectGroupReferenceId property. - * - * @param value - * allowed object is - * {@link Object } - * - */ - public void setDataObjectGroupReferenceId(Object value) { - this.dataObjectGroupReferenceId = value; - } + /** + * Référence à un groupe d'objets-données listé dans les métadonnées de transport. + * + * @return possible object is {@link Object } + */ + public Object getDataObjectGroupReferenceId() { + return dataObjectGroupReferenceId; + } - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } + /** + * Sets the value of the dataObjectGroupReferenceId property. + * + * @param value allowed object is {@link Object } + * @see #getDataObjectGroupReferenceId() + */ + public void setDataObjectGroupReferenceId(Object value) { + this.dataObjectGroupReferenceId = value; + } - /** - * 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 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/fr/gouv/culture/archivesdefrance/seda/v2/DescriptiveMetadataContentType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DescriptiveMetadataContentType.java index 96bdd82..b1fa4f0 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DescriptiveMetadataContentType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DescriptiveMetadataContentType.java @@ -1,14 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAnyElement; @@ -17,16 +14,17 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.util.ArrayList; +import java.util.List; import org.w3c.dom.Element; - /** * Permet de définir les métadonnées de description. Peut être étendu. - * + * *

Java class for DescriptiveMetadataContentType complex type. - * + * *

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

{@code
  * 
  *   
@@ -39,1444 +37,1321 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DescriptiveMetadataContentType", propOrder = { - "descriptionLevel", - "title", - "filePlanPosition", - "systemId", - "originatingSystemId", - "archivalAgencyArchiveUnitIdentifier", - "originatingAgencyArchiveUnitIdentifier", - "transferringAgencyArchiveUnitIdentifier", - "description", - "custodialHistory", - "type", - "documentType", - "language", - "descriptionLanguage", - "status", - "version", - "tag", - "keyword", - "coverage", - "originatingAgency", - "submissionAgency", - "agent", - "authorizedAgent", - "writer", - "addressee", - "recipient", - "transmitter", - "sender", - "source", - "relatedObjectReference", - "createdDate", - "transactedDate", - "acquiredDate", - "sentDate", - "receivedDate", - "registeredDate", - "startDate", - "endDate", - "dateLitteral", - "event", - "signature", - "gps", - "originatingSystemIdReplyTo", - "textContent", - "any", - "history" -}) +@XmlType( + name = "DescriptiveMetadataContentType", + propOrder = { + "descriptionLevel", + "title", + "filePlanPosition", + "systemId", + "originatingSystemId", + "archivalAgencyArchiveUnitIdentifier", + "originatingAgencyArchiveUnitIdentifier", + "transferringAgencyArchiveUnitIdentifier", + "description", + "custodialHistory", + "type", + "documentType", + "language", + "descriptionLanguage", + "status", + "version", + "tag", + "keyword", + "coverage", + "originatingAgency", + "submissionAgency", + "agent", + "authorizedAgent", + "writer", + "addressee", + "recipient", + "transmitter", + "sender", + "source", + "relatedObjectReference", + "createdDate", + "transactedDate", + "acquiredDate", + "sentDate", + "receivedDate", + "registeredDate", + "startDate", + "endDate", + "dateLitteral", + "event", + "signature", + "gps", + "originatingSystemIdReplyTo", + "textContent", + "any", + "history" + }) public class DescriptiveMetadataContentType { - @XmlElement(name = "DescriptionLevel") - @XmlSchemaType(name = "token") - protected LevelType descriptionLevel; - @XmlElement(name = "Title") - protected List title; - @XmlElement(name = "FilePlanPosition") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List filePlanPosition; - @XmlElement(name = "SystemId") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List systemId; - @XmlElement(name = "OriginatingSystemId") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List originatingSystemId; - @XmlElement(name = "ArchivalAgencyArchiveUnitIdentifier") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List archivalAgencyArchiveUnitIdentifier; - @XmlElement(name = "OriginatingAgencyArchiveUnitIdentifier") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List originatingAgencyArchiveUnitIdentifier; - @XmlElement(name = "TransferringAgencyArchiveUnitIdentifier") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List transferringAgencyArchiveUnitIdentifier; - @XmlElement(name = "Description") - protected List description; - @XmlElement(name = "CustodialHistory") - protected CustodialHistoryType custodialHistory; - @XmlElement(name = "Type") - protected TextType type; - @XmlElement(name = "DocumentType") - protected TextType documentType; - @XmlElement(name = "Language") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "language") - protected List language; - @XmlElement(name = "DescriptionLanguage") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "language") - protected String descriptionLanguage; - @XmlElement(name = "Status") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String status; - @XmlElement(name = "Version") - protected String version; - @XmlElement(name = "Tag") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List tag; - @XmlElement(name = "Keyword") - protected List keyword; - @XmlElement(name = "Coverage") - protected CoverageType coverage; - @XmlElement(name = "OriginatingAgency") - protected OrganizationType originatingAgency; - @XmlElement(name = "SubmissionAgency") - protected OrganizationType submissionAgency; - @XmlElement(name = "Agent") - protected List agent; - @XmlElement(name = "AuthorizedAgent") - protected List authorizedAgent; - @XmlElement(name = "Writer") - protected List writer; - @XmlElement(name = "Addressee") - protected List addressee; - @XmlElement(name = "Recipient") - protected List recipient; - @XmlElement(name = "Transmitter") - protected List transmitter; - @XmlElement(name = "Sender") - protected List sender; - @XmlElement(name = "Source") - protected String source; - @XmlElement(name = "RelatedObjectReference") - protected RelatedObjectReferenceType relatedObjectReference; - @XmlElement(name = "CreatedDate") - protected String createdDate; - @XmlElement(name = "TransactedDate") - protected String transactedDate; - @XmlElement(name = "AcquiredDate") - protected String acquiredDate; - @XmlElement(name = "SentDate") - protected String sentDate; - @XmlElement(name = "ReceivedDate") - protected String receivedDate; - @XmlElement(name = "RegisteredDate") - protected String registeredDate; - @XmlElement(name = "StartDate") - protected String startDate; - @XmlElement(name = "EndDate") - protected String endDate; - @XmlElement(name = "DateLitteral") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String dateLitteral; - @XmlElement(name = "Event") - protected List event; - @XmlElement(name = "Signature") - protected List signature; - @XmlElement(name = "Gps") - protected GpsType gps; - @XmlElement(name = "OriginatingSystemIdReplyTo") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String originatingSystemIdReplyTo; - @XmlElement(name = "TextContent") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List textContent; - @XmlAnyElement(lax = true) - protected List any; - @XmlElement(name = "History") - protected List history; - - /** - * Gets the value of the descriptionLevel property. - * - * @return - * possible object is - * {@link LevelType } - * - */ - public LevelType getDescriptionLevel() { - return descriptionLevel; - } - - /** - * Sets the value of the descriptionLevel property. - * - * @param value - * allowed object is - * {@link LevelType } - * - */ - public void setDescriptionLevel(LevelType value) { - this.descriptionLevel = value; - } - - /** - * Gets the value of the title 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the title property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the title property. - */ - public List getTitle() { - if (title == null) { - title = new ArrayList<>(); - } - return this.title; - } - - /** - * Gets the value of the filePlanPosition 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the filePlanPosition property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the filePlanPosition property. - */ - public List getFilePlanPosition() { - if (filePlanPosition == null) { - filePlanPosition = new ArrayList<>(); - } - return this.filePlanPosition; - } - - /** - * Gets the value of the systemId 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the systemId property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the systemId property. - */ - public List getSystemId() { - if (systemId == null) { - systemId = new ArrayList<>(); - } - return this.systemId; - } - - /** - * Gets the value of the originatingSystemId 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the originatingSystemId property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the originatingSystemId property. - */ - public List getOriginatingSystemId() { - if (originatingSystemId == null) { - originatingSystemId = new ArrayList<>(); - } - return this.originatingSystemId; - } - - /** - * Gets the value of the archivalAgencyArchiveUnitIdentifier 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the archivalAgencyArchiveUnitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the archivalAgencyArchiveUnitIdentifier property. - */ - public List getArchivalAgencyArchiveUnitIdentifier() { - if (archivalAgencyArchiveUnitIdentifier == null) { - archivalAgencyArchiveUnitIdentifier = new ArrayList<>(); - } - return this.archivalAgencyArchiveUnitIdentifier; - } - - /** - * Gets the value of the originatingAgencyArchiveUnitIdentifier 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the originatingAgencyArchiveUnitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the originatingAgencyArchiveUnitIdentifier property. - */ - public List getOriginatingAgencyArchiveUnitIdentifier() { - if (originatingAgencyArchiveUnitIdentifier == null) { - originatingAgencyArchiveUnitIdentifier = new ArrayList<>(); - } - return this.originatingAgencyArchiveUnitIdentifier; - } - - /** - * Gets the value of the transferringAgencyArchiveUnitIdentifier 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the transferringAgencyArchiveUnitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the transferringAgencyArchiveUnitIdentifier property. - */ - public List getTransferringAgencyArchiveUnitIdentifier() { - if (transferringAgencyArchiveUnitIdentifier == null) { - transferringAgencyArchiveUnitIdentifier = new ArrayList<>(); - } - return this.transferringAgencyArchiveUnitIdentifier; - } - - /** - * Gets the value of the description 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the description property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the description property. - */ - public List getDescription() { - if (description == null) { - description = new ArrayList<>(); - } - return this.description; - } - - /** - * Gets the value of the custodialHistory property. - * - * @return - * possible object is - * {@link CustodialHistoryType } - * - */ - public CustodialHistoryType getCustodialHistory() { - return custodialHistory; - } - - /** - * Sets the value of the custodialHistory property. - * - * @param value - * allowed object is - * {@link CustodialHistoryType } - * - */ - public void setCustodialHistory(CustodialHistoryType value) { - this.custodialHistory = value; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link TextType } - * - */ - public TextType getType() { - return type; - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link TextType } - * - */ - public void setType(TextType value) { - this.type = value; - } - - /** - * Gets the value of the documentType property. - * - * @return - * possible object is - * {@link TextType } - * - */ - public TextType getDocumentType() { - return documentType; - } - - /** - * Sets the value of the documentType property. - * - * @param value - * allowed object is - * {@link TextType } - * - */ - public void setDocumentType(TextType value) { - this.documentType = value; - } - - /** - * Gets the value of the language property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the Jakarta XML Binding object. - * This is why there is not a {@code set} method for the language property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the language property. - */ - public List getLanguage() { - if (language == null) { - language = new ArrayList<>(); - } - return this.language; - } - - /** - * Gets the value of the descriptionLanguage property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDescriptionLanguage() { - return descriptionLanguage; - } - - /** - * Sets the value of the descriptionLanguage property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDescriptionLanguage(String value) { - this.descriptionLanguage = value; - } - - /** - * Gets the value of the status property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getStatus() { - return status; - } - - /** - * Sets the value of the status property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setStatus(String value) { - this.status = value; - } - - /** - * Gets the value of the version property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVersion() { - return version; - } - - /** - * Sets the value of the version property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVersion(String value) { - this.version = value; - } - - /** - * Gets the value of the tag 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the tag property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the tag property. - */ - public List getTag() { - if (tag == null) { - tag = new ArrayList<>(); - } - return this.tag; - } - - /** - * Gets the value of the keyword property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the Jakarta XML Binding object. - * This is why there is not a {@code set} method for the keyword property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link KeywordsType } - * - * - * @return - * The value of the keyword property. - */ - public List getKeyword() { - if (keyword == null) { - keyword = new ArrayList<>(); - } - return this.keyword; - } - - /** - * Gets the value of the coverage property. - * - * @return - * possible object is - * {@link CoverageType } - * - */ - public CoverageType getCoverage() { - return coverage; - } - - /** - * Sets the value of the coverage property. - * - * @param value - * allowed object is - * {@link CoverageType } - * - */ - public void setCoverage(CoverageType value) { - this.coverage = value; - } - - /** - * Gets the value of the originatingAgency property. - * - * @return - * possible object is - * {@link OrganizationType } - * - */ - public OrganizationType getOriginatingAgency() { - return originatingAgency; - } - - /** - * Sets the value of the originatingAgency property. - * - * @param value - * allowed object is - * {@link OrganizationType } - * - */ - public void setOriginatingAgency(OrganizationType value) { - this.originatingAgency = value; - } - - /** - * Gets the value of the submissionAgency property. - * - * @return - * possible object is - * {@link OrganizationType } - * - */ - public OrganizationType getSubmissionAgency() { - return submissionAgency; - } - - /** - * Sets the value of the submissionAgency property. - * - * @param value - * allowed object is - * {@link OrganizationType } - * - */ - public void setSubmissionAgency(OrganizationType value) { - this.submissionAgency = value; - } - - /** - * Gets the value of the agent 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the agent property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link AgentType } - * - * - * @return - * The value of the agent property. - */ - public List getAgent() { - if (agent == null) { - agent = new ArrayList<>(); - } - return this.agent; - } - - /** - * Gets the value of the authorizedAgent 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the authorizedAgent property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link AgentType } - * - * - * @return - * The value of the authorizedAgent property. - */ - public List getAuthorizedAgent() { - if (authorizedAgent == null) { - authorizedAgent = new ArrayList<>(); - } - return this.authorizedAgent; - } - - /** - * Gets the value of the writer 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the writer property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link AgentType } - * - * - * @return - * The value of the writer property. - */ - public List getWriter() { - if (writer == null) { - writer = new ArrayList<>(); - } - return this.writer; - } - - /** - * Gets the value of the addressee 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the addressee property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link AgentType } - * - * - * @return - * The value of the addressee property. - */ - public List getAddressee() { - if (addressee == null) { - addressee = new ArrayList<>(); - } - return this.addressee; - } - - /** - * Gets the value of the recipient 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the recipient property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link AgentType } - * - * - * @return - * The value of the recipient property. - */ - public List getRecipient() { - if (recipient == null) { - recipient = new ArrayList<>(); - } - return this.recipient; - } - - /** - * Gets the value of the transmitter 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the transmitter property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link AgentType } - * - * - * @return - * The value of the transmitter property. - */ - public List getTransmitter() { - if (transmitter == null) { - transmitter = new ArrayList<>(); - } - return this.transmitter; - } - - /** - * Gets the value of the sender 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the sender property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link AgentType } - * - * - * @return - * The value of the sender property. - */ - public List getSender() { - if (sender == null) { - sender = new ArrayList<>(); - } - return this.sender; - } - - /** - * Gets the value of the source property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSource() { - return source; - } - - /** - * Sets the value of the source property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSource(String value) { - this.source = value; - } - - /** - * Gets the value of the relatedObjectReference property. - * - * @return - * possible object is - * {@link RelatedObjectReferenceType } - * - */ - public RelatedObjectReferenceType getRelatedObjectReference() { - return relatedObjectReference; - } - - /** - * Sets the value of the relatedObjectReference property. - * - * @param value - * allowed object is - * {@link RelatedObjectReferenceType } - * - */ - public void setRelatedObjectReference(RelatedObjectReferenceType value) { - this.relatedObjectReference = value; - } - - /** - * Gets the value of the createdDate property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCreatedDate() { - return createdDate; - } - - /** - * Sets the value of the createdDate property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCreatedDate(String value) { - this.createdDate = value; - } - - /** - * Gets the value of the transactedDate property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTransactedDate() { - return transactedDate; - } - - /** - * Sets the value of the transactedDate property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTransactedDate(String value) { - this.transactedDate = value; - } - - /** - * Gets the value of the acquiredDate property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAcquiredDate() { - return acquiredDate; - } - - /** - * Sets the value of the acquiredDate property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAcquiredDate(String value) { - this.acquiredDate = value; - } - - /** - * Gets the value of the sentDate property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSentDate() { - return sentDate; - } - - /** - * Sets the value of the sentDate property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSentDate(String value) { - this.sentDate = value; - } - - /** - * Gets the value of the receivedDate property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getReceivedDate() { - return receivedDate; - } - - /** - * Sets the value of the receivedDate property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setReceivedDate(String value) { - this.receivedDate = value; - } - - /** - * Gets the value of the registeredDate property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRegisteredDate() { - return registeredDate; - } - - /** - * Sets the value of the registeredDate property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRegisteredDate(String value) { - this.registeredDate = value; - } - - /** - * Gets the value of the startDate property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getStartDate() { - return startDate; - } - - /** - * Sets the value of the startDate property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setStartDate(String value) { - this.startDate = value; - } - - /** - * Gets the value of the endDate property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getEndDate() { - return endDate; - } - - /** - * Sets the value of the endDate property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setEndDate(String value) { - this.endDate = value; - } - - /** - * Gets the value of the dateLitteral property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDateLitteral() { - return dateLitteral; - } - - /** - * Sets the value of the dateLitteral property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDateLitteral(String value) { - this.dateLitteral = value; - } - - /** - * Gets the value of the event 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the event property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link EventType } - * - * - * @return - * The value of the event property. - */ - public List getEvent() { - if (event == null) { - event = new ArrayList<>(); - } - return this.event; - } - - /** - * Gets the value of the signature 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the signature property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link SignatureType } - * - * - * @return - * The value of the signature property. - */ - public List getSignature() { - if (signature == null) { - signature = new ArrayList<>(); - } - return this.signature; - } - - /** - * Gets the value of the gps property. - * - * @return - * possible object is - * {@link GpsType } - * - */ - public GpsType getGps() { - return gps; - } - - /** - * Sets the value of the gps property. - * - * @param value - * allowed object is - * {@link GpsType } - * - */ - public void setGps(GpsType value) { - this.gps = value; - } - - /** - * Gets the value of the originatingSystemIdReplyTo property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOriginatingSystemIdReplyTo() { - return originatingSystemIdReplyTo; - } - - /** - * Sets the value of the originatingSystemIdReplyTo property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOriginatingSystemIdReplyTo(String value) { - this.originatingSystemIdReplyTo = value; - } - - /** - * Gets the value of the textContent 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the textContent property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the textContent property. - */ - public List getTextContent() { - if (textContent == null) { - textContent = new ArrayList<>(); - } - return this.textContent; - } - - /** - * Gets the value of the any 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the any property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link Object } - * {@link Element } - * - * - * @return - * The value of the any property. - */ - public List getAny() { - if (any == null) { - any = new ArrayList<>(); - } - return this.any; - } - - /** - * Gets the value of the history 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the history property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link ManagementHistoryType } - * - * - * @return - * The value of the history property. - */ - public List getHistory() { - if (history == null) { - history = new ArrayList<>(); - } - return this.history; - } - + /** Référence : seda.DescriptionLevel */ + @XmlElement(name = "DescriptionLevel") + @XmlSchemaType(name = "token") + protected LevelType descriptionLevel; + + /** Références : DC.Title ead.unittitle */ + @XmlElement(name = "Title") + protected List title; + + /** Références : seda.FilePlanPosition */ + @XmlElement(name = "FilePlanPosition") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List filePlanPosition; + + /** Références : ARMS */ + @XmlElement(name = "SystemId") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List systemId; + + /** Identifiant système attribué à l’ArchiveUnit par l’application du service producteur. */ + @XmlElement(name = "OriginatingSystemId") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List originatingSystemId; + + /** + * Identifiant métier attribué à l'ArchiveUnit par le service d'archives. Peut être comparé à une + * cote. + */ + @XmlElement(name = "ArchivalAgencyArchiveUnitIdentifier") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List archivalAgencyArchiveUnitIdentifier; + + /** Identifiant métier attribué à l’ArchiveUnit par le service producteur. */ + @XmlElement(name = "OriginatingAgencyArchiveUnitIdentifier") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List originatingAgencyArchiveUnitIdentifier; + + /** Identifiant attribué à l'ArchiveUnit par le service versant. */ + @XmlElement(name = "TransferringAgencyArchiveUnitIdentifier") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List transferringAgencyArchiveUnitIdentifier; + + /** Références : DC:Documentation */ + @XmlElement(name = "Description") + protected List description; + + /** Références : seda.CustodialHistory */ + @XmlElement(name = "CustodialHistory") + protected CustodialHistoryType custodialHistory; + + /** Références : seda.DocumentType */ + @XmlElement(name = "Type") + protected TextType type; + + /** + * Type de document au sens diplomatique du terme (ex. compte-rendu de réunion, note, + * correspondance, etc.). Ne pas confondre avec Type. + */ + @XmlElement(name = "DocumentType") + protected TextType documentType; + + /** Références : seda.Language */ + @XmlElement(name = "Language") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "language") + protected List language; + + /** Références : seda.DescriptionLanguage */ + @XmlElement(name = "DescriptionLanguage") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "language") + protected String descriptionLanguage; + + /** Références : seda.Status */ + @XmlElement(name = "Status") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String status; + + /** Permet d'indiquer quelle est la version du document. */ + @XmlElement(name = "Version") + protected String version; + + /** + * Mots-clés ou liste de mots-clés génériques. En ce qui concerne l'indexation, on pourra utiliser + * Tag ou Keyword en fonction de ce que l'on souhaite décrire. + */ + @XmlElement(name = "Tag") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List tag; + + /** Références : seda.Keyword */ + @XmlElement(name = "Keyword") + protected List keyword; + + /** Références : DC.Coverage */ + @XmlElement(name = "Coverage") + protected CoverageType coverage; + + /** Références : seda.OriginatingAgency */ + @XmlElement(name = "OriginatingAgency") + protected OrganizationType originatingAgency; + + /** Références : seda.SubmissionAgency */ + @XmlElement(name = "SubmissionAgency") + protected OrganizationType submissionAgency; + + /** Agent générique. */ + @XmlElement(name = "Agent") + protected List agent; + + /** Titulaire des droits de propriété intellectuelle. */ + @XmlElement(name = "AuthorizedAgent") + protected List authorizedAgent; + + /** Références : interpares.Writer */ + @XmlElement(name = "Writer") + protected List writer; + + /** Références : ARMS.Addressee, Interpares.Addressee */ + @XmlElement(name = "Addressee") + protected List addressee; + + /** Références : Interpares.Recipient */ + @XmlElement(name = "Recipient") + protected List recipient; + + /** Emetteur du message. */ + @XmlElement(name = "Transmitter") + protected List transmitter; + + /** Expéditeur du message. */ + @XmlElement(name = "Sender") + protected List sender; + + /** En cas de substitution numérique, permet de faire référence au papier. */ + @XmlElement(name = "Source") + protected String source; + + /** Référence à un objet faisant ou ne faisant pas partie du présent paquet d'information. */ + @XmlElement(name = "RelatedObjectReference") + protected RelatedObjectReferenceType relatedObjectReference; + + /** Références : ARKMS.DateCreated */ + @XmlElement(name = "CreatedDate") + protected String createdDate; + + /** Références : ARKMS.DateTransacted */ + @XmlElement(name = "TransactedDate") + protected String transactedDate; + + /** Références : ARKMS.DateAcquired */ + @XmlElement(name = "AcquiredDate") + protected String acquiredDate; + + /** Date d'envoi. */ + @XmlElement(name = "SentDate") + protected String sentDate; + + /** Date de réception. */ + @XmlElement(name = "ReceivedDate") + protected String receivedDate; + + /** Références : ARMS.DateDeclared */ + @XmlElement(name = "RegisteredDate") + protected String registeredDate; + + /** Références : AGKRMS.StartDate */ + @XmlElement(name = "StartDate") + protected String startDate; + + /** Références : AGKRMS.EndDate */ + @XmlElement(name = "EndDate") + protected String endDate; + + /** Champ date en texte libre. */ + @XmlElement(name = "DateLitteral") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String dateLitteral; + + /** + * Informations décrivant un événement survenu au cours d’une procédure (ex. publication d’un + * marché, notification d’un marché, recueil d’un avis administratif, etc.). + */ + @XmlElement(name = "Event") + protected List event; + + /** Contient toutes les informations relatives à la signature. */ + @XmlElement(name = "Signature") + protected List signature; + + /** + * Coordonnées gps complétées ou vérifiées par un utilisateur. Fait référence à des coordonnées + * traitées par un utilisateur et non à des coordonnées captées. + */ + @XmlElement(name = "Gps") + protected GpsType gps; + + /** Réponse au système émetteur d'un message électronique. */ + @XmlElement(name = "OriginatingSystemIdReplyTo") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String originatingSystemIdReplyTo; + + /** Contenu du message électronique. */ + @XmlElement(name = "TextContent") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List textContent; + + @XmlAnyElement(lax = true) + protected List any; + + /** Métadonnées de gestion applicables à l’ArchiveUnit concernée et à ses héritiers. */ + @XmlElement(name = "History") + protected List history; + + /** + * Référence : seda.DescriptionLevel + * + * @return possible object is {@link LevelType } + */ + public LevelType getDescriptionLevel() { + return descriptionLevel; + } + + /** + * Sets the value of the descriptionLevel property. + * + * @param value allowed object is {@link LevelType } + * @see #getDescriptionLevel() + */ + public void setDescriptionLevel(LevelType value) { + this.descriptionLevel = value; + } + + /** + * Références : DC.Title ead.unittitle + * + *

Gets the value of the title 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 title property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the title property. + */ + public List getTitle() { + if (title == null) { + title = new ArrayList<>(); + } + return this.title; + } + + /** + * Références : seda.FilePlanPosition + * + *

Gets the value of the filePlanPosition 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 filePlanPosition property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return The value of the filePlanPosition property. + */ + public List getFilePlanPosition() { + if (filePlanPosition == null) { + filePlanPosition = new ArrayList<>(); + } + return this.filePlanPosition; + } + + /** + * Références : ARMS + * + *

Gets the value of the systemId 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 systemId property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return The value of the systemId property. + */ + public List getSystemId() { + if (systemId == null) { + systemId = new ArrayList<>(); + } + return this.systemId; + } + + /** + * Identifiant système attribué à l’ArchiveUnit par l’application du service producteur. + * + *

Gets the value of the originatingSystemId 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 originatingSystemId property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return The value of the originatingSystemId property. + */ + public List getOriginatingSystemId() { + if (originatingSystemId == null) { + originatingSystemId = new ArrayList<>(); + } + return this.originatingSystemId; + } + + /** + * Identifiant métier attribué à l'ArchiveUnit par le service d'archives. Peut être comparé à une + * cote. + * + *

Gets the value of the archivalAgencyArchiveUnitIdentifier 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 archivalAgencyArchiveUnitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return The value of the archivalAgencyArchiveUnitIdentifier property. + */ + public List getArchivalAgencyArchiveUnitIdentifier() { + if (archivalAgencyArchiveUnitIdentifier == null) { + archivalAgencyArchiveUnitIdentifier = new ArrayList<>(); + } + return this.archivalAgencyArchiveUnitIdentifier; + } + + /** + * Identifiant métier attribué à l’ArchiveUnit par le service producteur. + * + *

Gets the value of the originatingAgencyArchiveUnitIdentifier 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 originatingAgencyArchiveUnitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return The value of the originatingAgencyArchiveUnitIdentifier property. + */ + public List getOriginatingAgencyArchiveUnitIdentifier() { + if (originatingAgencyArchiveUnitIdentifier == null) { + originatingAgencyArchiveUnitIdentifier = new ArrayList<>(); + } + return this.originatingAgencyArchiveUnitIdentifier; + } + + /** + * Identifiant attribué à l'ArchiveUnit par le service versant. + * + *

Gets the value of the transferringAgencyArchiveUnitIdentifier 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 transferringAgencyArchiveUnitIdentifier + * property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return The value of the transferringAgencyArchiveUnitIdentifier property. + */ + public List getTransferringAgencyArchiveUnitIdentifier() { + if (transferringAgencyArchiveUnitIdentifier == null) { + transferringAgencyArchiveUnitIdentifier = new ArrayList<>(); + } + return this.transferringAgencyArchiveUnitIdentifier; + } + + /** + * Références : DC:Documentation + * + *

Gets the value of the description 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 description property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the description property. + */ + public List getDescription() { + if (description == null) { + description = new ArrayList<>(); + } + return this.description; + } + + /** + * Références : seda.CustodialHistory + * + * @return possible object is {@link CustodialHistoryType } + */ + public CustodialHistoryType getCustodialHistory() { + return custodialHistory; + } + + /** + * Sets the value of the custodialHistory property. + * + * @param value allowed object is {@link CustodialHistoryType } + * @see #getCustodialHistory() + */ + public void setCustodialHistory(CustodialHistoryType value) { + this.custodialHistory = value; + } + + /** + * Références : seda.DocumentType + * + * @return possible object is {@link TextType } + */ + public TextType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value allowed object is {@link TextType } + * @see #getType() + */ + public void setType(TextType value) { + this.type = value; + } + + /** + * Type de document au sens diplomatique du terme (ex. compte-rendu de réunion, note, + * correspondance, etc.). Ne pas confondre avec Type. + * + * @return possible object is {@link TextType } + */ + public TextType getDocumentType() { + return documentType; + } + + /** + * Sets the value of the documentType property. + * + * @param value allowed object is {@link TextType } + * @see #getDocumentType() + */ + public void setDocumentType(TextType value) { + this.documentType = value; + } + + /** + * Références : seda.Language + * + *

Gets the value of the language property. + * + *

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

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return The value of the language property. + */ + public List getLanguage() { + if (language == null) { + language = new ArrayList<>(); + } + return this.language; + } + + /** + * Références : seda.DescriptionLanguage + * + * @return possible object is {@link String } + */ + public String getDescriptionLanguage() { + return descriptionLanguage; + } + + /** + * Sets the value of the descriptionLanguage property. + * + * @param value allowed object is {@link String } + * @see #getDescriptionLanguage() + */ + public void setDescriptionLanguage(String value) { + this.descriptionLanguage = value; + } + + /** + * Références : seda.Status + * + * @return possible object is {@link String } + */ + public String getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value allowed object is {@link String } + * @see #getStatus() + */ + public void setStatus(String value) { + this.status = value; + } + + /** + * Permet d'indiquer quelle est la version du document. + * + * @return possible object is {@link String } + */ + public String getVersion() { + return version; + } + + /** + * Sets the value of the version property. + * + * @param value allowed object is {@link String } + * @see #getVersion() + */ + public void setVersion(String value) { + this.version = value; + } + + /** + * Mots-clés ou liste de mots-clés génériques. En ce qui concerne l'indexation, on pourra utiliser + * Tag ou Keyword en fonction de ce que l'on souhaite décrire. + * + *

Gets the value of the tag 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 tag property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return The value of the tag property. + */ + public List getTag() { + if (tag == null) { + tag = new ArrayList<>(); + } + return this.tag; + } + + /** + * Références : seda.Keyword + * + *

Gets the value of the keyword property. + * + *

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

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

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

Objects of the following type(s) are allowed in the list {@link KeywordsType } + * + * @return The value of the keyword property. + */ + public List getKeyword() { + if (keyword == null) { + keyword = new ArrayList<>(); + } + return this.keyword; + } + + /** + * Références : DC.Coverage + * + * @return possible object is {@link CoverageType } + */ + public CoverageType getCoverage() { + return coverage; + } + + /** + * Sets the value of the coverage property. + * + * @param value allowed object is {@link CoverageType } + * @see #getCoverage() + */ + public void setCoverage(CoverageType value) { + this.coverage = value; + } + + /** + * Références : seda.OriginatingAgency + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getOriginatingAgency() { + return originatingAgency; + } + + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationType } + * @see #getOriginatingAgency() + */ + public void setOriginatingAgency(OrganizationType value) { + this.originatingAgency = value; + } + + /** + * Références : seda.SubmissionAgency + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getSubmissionAgency() { + return submissionAgency; + } + + /** + * Sets the value of the submissionAgency property. + * + * @param value allowed object is {@link OrganizationType } + * @see #getSubmissionAgency() + */ + public void setSubmissionAgency(OrganizationType value) { + this.submissionAgency = value; + } + + /** + * Agent générique. + * + *

Gets the value of the agent 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 agent property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link AgentType } + * + * @return The value of the agent property. + */ + public List getAgent() { + if (agent == null) { + agent = new ArrayList<>(); + } + return this.agent; + } + + /** + * Titulaire des droits de propriété intellectuelle. + * + *

Gets the value of the authorizedAgent 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 authorizedAgent property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link AgentType } + * + * @return The value of the authorizedAgent property. + */ + public List getAuthorizedAgent() { + if (authorizedAgent == null) { + authorizedAgent = new ArrayList<>(); + } + return this.authorizedAgent; + } + + /** + * Références : interpares.Writer + * + *

Gets the value of the writer 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 writer property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link AgentType } + * + * @return The value of the writer property. + */ + public List getWriter() { + if (writer == null) { + writer = new ArrayList<>(); + } + return this.writer; + } + + /** + * Références : ARMS.Addressee, Interpares.Addressee + * + *

Gets the value of the addressee 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 addressee property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link AgentType } + * + * @return The value of the addressee property. + */ + public List getAddressee() { + if (addressee == null) { + addressee = new ArrayList<>(); + } + return this.addressee; + } + + /** + * Références : Interpares.Recipient + * + *

Gets the value of the recipient 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 recipient property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link AgentType } + * + * @return The value of the recipient property. + */ + public List getRecipient() { + if (recipient == null) { + recipient = new ArrayList<>(); + } + return this.recipient; + } + + /** + * Emetteur du message. + * + *

Gets the value of the transmitter 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 transmitter property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link AgentType } + * + * @return The value of the transmitter property. + */ + public List getTransmitter() { + if (transmitter == null) { + transmitter = new ArrayList<>(); + } + return this.transmitter; + } + + /** + * Expéditeur du message. + * + *

Gets the value of the sender 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 sender property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link AgentType } + * + * @return The value of the sender property. + */ + public List getSender() { + if (sender == null) { + sender = new ArrayList<>(); + } + return this.sender; + } + + /** + * En cas de substitution numérique, permet de faire référence au papier. + * + * @return possible object is {@link String } + */ + public String getSource() { + return source; + } + + /** + * Sets the value of the source property. + * + * @param value allowed object is {@link String } + * @see #getSource() + */ + public void setSource(String value) { + this.source = value; + } + + /** + * Référence à un objet faisant ou ne faisant pas partie du présent paquet d'information. + * + * @return possible object is {@link RelatedObjectReferenceType } + */ + public RelatedObjectReferenceType getRelatedObjectReference() { + return relatedObjectReference; + } + + /** + * Sets the value of the relatedObjectReference property. + * + * @param value allowed object is {@link RelatedObjectReferenceType } + * @see #getRelatedObjectReference() + */ + public void setRelatedObjectReference(RelatedObjectReferenceType value) { + this.relatedObjectReference = value; + } + + /** + * Références : ARKMS.DateCreated + * + * @return possible object is {@link String } + */ + public String getCreatedDate() { + return createdDate; + } + + /** + * Sets the value of the createdDate property. + * + * @param value allowed object is {@link String } + * @see #getCreatedDate() + */ + public void setCreatedDate(String value) { + this.createdDate = value; + } + + /** + * Références : ARKMS.DateTransacted + * + * @return possible object is {@link String } + */ + public String getTransactedDate() { + return transactedDate; + } + + /** + * Sets the value of the transactedDate property. + * + * @param value allowed object is {@link String } + * @see #getTransactedDate() + */ + public void setTransactedDate(String value) { + this.transactedDate = value; + } + + /** + * Références : ARKMS.DateAcquired + * + * @return possible object is {@link String } + */ + public String getAcquiredDate() { + return acquiredDate; + } + + /** + * Sets the value of the acquiredDate property. + * + * @param value allowed object is {@link String } + * @see #getAcquiredDate() + */ + public void setAcquiredDate(String value) { + this.acquiredDate = value; + } + + /** + * Date d'envoi. + * + * @return possible object is {@link String } + */ + public String getSentDate() { + return sentDate; + } + + /** + * Sets the value of the sentDate property. + * + * @param value allowed object is {@link String } + * @see #getSentDate() + */ + public void setSentDate(String value) { + this.sentDate = value; + } + + /** + * Date de réception. + * + * @return possible object is {@link String } + */ + public String getReceivedDate() { + return receivedDate; + } + + /** + * Sets the value of the receivedDate property. + * + * @param value allowed object is {@link String } + * @see #getReceivedDate() + */ + public void setReceivedDate(String value) { + this.receivedDate = value; + } + + /** + * Références : ARMS.DateDeclared + * + * @return possible object is {@link String } + */ + public String getRegisteredDate() { + return registeredDate; + } + + /** + * Sets the value of the registeredDate property. + * + * @param value allowed object is {@link String } + * @see #getRegisteredDate() + */ + public void setRegisteredDate(String value) { + this.registeredDate = value; + } + + /** + * Références : AGKRMS.StartDate + * + * @return possible object is {@link String } + */ + public String getStartDate() { + return startDate; + } + + /** + * Sets the value of the startDate property. + * + * @param value allowed object is {@link String } + * @see #getStartDate() + */ + public void setStartDate(String value) { + this.startDate = value; + } + + /** + * Références : AGKRMS.EndDate + * + * @return possible object is {@link String } + */ + public String getEndDate() { + return endDate; + } + + /** + * Sets the value of the endDate property. + * + * @param value allowed object is {@link String } + * @see #getEndDate() + */ + public void setEndDate(String value) { + this.endDate = value; + } + + /** + * Champ date en texte libre. + * + * @return possible object is {@link String } + */ + public String getDateLitteral() { + return dateLitteral; + } + + /** + * Sets the value of the dateLitteral property. + * + * @param value allowed object is {@link String } + * @see #getDateLitteral() + */ + public void setDateLitteral(String value) { + this.dateLitteral = value; + } + + /** + * Informations décrivant un événement survenu au cours d’une procédure (ex. publication d’un + * marché, notification d’un marché, recueil d’un avis administratif, etc.). + * + *

Gets the value of the event 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 event property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link EventType } + * + * @return The value of the event property. + */ + public List getEvent() { + if (event == null) { + event = new ArrayList<>(); + } + return this.event; + } + + /** + * Contient toutes les informations relatives à la signature. + * + *

Gets the value of the signature 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 signature property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link SignatureType } + * + * @return The value of the signature property. + */ + public List getSignature() { + if (signature == null) { + signature = new ArrayList<>(); + } + return this.signature; + } + + /** + * Coordonnées gps complétées ou vérifiées par un utilisateur. Fait référence à des coordonnées + * traitées par un utilisateur et non à des coordonnées captées. + * + * @return possible object is {@link GpsType } + */ + public GpsType getGps() { + return gps; + } + + /** + * Sets the value of the gps property. + * + * @param value allowed object is {@link GpsType } + * @see #getGps() + */ + public void setGps(GpsType value) { + this.gps = value; + } + + /** + * Réponse au système émetteur d'un message électronique. + * + * @return possible object is {@link String } + */ + public String getOriginatingSystemIdReplyTo() { + return originatingSystemIdReplyTo; + } + + /** + * Sets the value of the originatingSystemIdReplyTo property. + * + * @param value allowed object is {@link String } + * @see #getOriginatingSystemIdReplyTo() + */ + public void setOriginatingSystemIdReplyTo(String value) { + this.originatingSystemIdReplyTo = value; + } + + /** + * Contenu du message électronique. + * + *

Gets the value of the textContent 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 textContent property. + * + *

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

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

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

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

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

Objects of the following type(s) are allowed in the list {@link Object } {@link Element } + * + * @return The value of the any property. + */ + public List getAny() { + if (any == null) { + any = new ArrayList<>(); + } + return this.any; + } + + /** + * Métadonnées de gestion applicables à l’ArchiveUnit concernée et à ses héritiers. + * + *

Gets the value of the history 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 history property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link ManagementHistoryType } + * + * @return The value of the history property. + */ + public List getHistory() { + if (history == null) { + history = new ArrayList<>(); + } + return this.history; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DescriptiveMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DescriptiveMetadataType.java index 752bdfc..6700dd6 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DescriptiveMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DescriptiveMetadataType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for DescriptiveMetadataType complex type. - * + * Java class for DescriptiveMetadataType complex type. + * *

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

{@code
  * 
  *   
@@ -31,47 +29,46 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DescriptiveMetadataType", propOrder = { - "archiveUnit" -}) +@XmlType( + name = "DescriptiveMetadataType", + propOrder = {"archiveUnit"}) public class DescriptiveMetadataType { - @XmlElement(name = "ArchiveUnit") - protected List archiveUnit; + /** + * Correspond à la notion de composant en ISAD(G). ArchiveUnit permet à la fois de gérer la + * hiérarchie intellectuelle, tout en contenant les métadonnées de description et de gestion + * propres à chaque niveau de description archivistique. + */ + @XmlElement(name = "ArchiveUnit") + protected List archiveUnit; - /** - * Gets the value of the archiveUnit 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the archiveUnit property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link ArchiveUnitType } - * - * - * @return - * The value of the archiveUnit property. - */ - public List getArchiveUnit() { - if (archiveUnit == null) { - archiveUnit = new ArrayList<>(); - } - return this.archiveUnit; + /** + * Correspond à la notion de composant en ISAD(G). ArchiveUnit permet à la fois de gérer la + * hiérarchie intellectuelle, tout en contenant les métadonnées de description et de gestion + * propres à chaque niveau de description archivistique. + * + *

Gets the value of the archiveUnit 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 archiveUnit property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link ArchiveUnitType } + * + * @return The value of the archiveUnit property. + */ + public List getArchiveUnit() { + if (archiveUnit == null) { + archiveUnit = new ArrayList<>(); } - + return this.archiveUnit; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DescriptiveTechnicalMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DescriptiveTechnicalMetadataType.java index 957fb64..ebcc758 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DescriptiveTechnicalMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DescriptiveTechnicalMetadataType.java @@ -1,24 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlType; - /** - * Contient toutes les métadonnées techniques et/ou descriptives définies dans un schéma par un service producteur ou versant mais n'étant pas présentes dans les métadonnées de base. - * + * Contient toutes les métadonnées techniques et/ou descriptives définies dans un schéma par un + * service producteur ou versant mais n'étant pas présentes dans les métadonnées de base. + * *

Java class for DescriptiveTechnicalMetadataType complex type. - * + * *

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

{@code
  * 
  *   
@@ -27,14 +26,7 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DescriptiveTechnicalMetadataType") -public class DescriptiveTechnicalMetadataType - extends OpenType -{ - - -} +public class DescriptiveTechnicalMetadataType extends OpenType {} diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DimensionsType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DimensionsType.java index 8f28b8e..4ad26d6 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DimensionsType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DimensionsType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -12,14 +11,13 @@ import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - /** * Permet d'exprimer les mesures de dimensions basiques. - * + * *

Java class for DimensionsType complex type. - * + * *

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

{@code
  * 
  *   
@@ -39,258 +37,227 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DimensionsType", propOrder = { - "width", - "height", - "depth", - "shape", - "diameter", - "length", - "thickness", - "weight", - "numberOfPage" -}) -public class DimensionsType - extends BaseDimensionsType -{ +@XmlType( + name = "DimensionsType", + propOrder = { + "width", + "height", + "depth", + "shape", + "diameter", + "length", + "thickness", + "weight", + "numberOfPage" + }) +public class DimensionsType extends BaseDimensionsType { + + /** Métadonnée de dimension physique : largeur. */ + @XmlElement(name = "Width") + protected MeasurementType width; + + /** Métadonnée de dimension physique : hauteur. */ + @XmlElement(name = "Height") + protected MeasurementType height; + + /** Métadonnée de dimension physique : profondeur. */ + @XmlElement(name = "Depth") + protected MeasurementType depth; + + /** Métadonnée de dimension physique : forme. */ + @XmlElement(name = "Shape") + protected String shape; + + /** Métadonnée de dimension physique : diamètre. */ + @XmlElement(name = "Diameter") + protected MeasurementType diameter; + + /** Métadonnée de dimension physique : longueur. */ + @XmlElement(name = "Length") + protected MeasurementType length; + + /** Métadonnée de dimension physique : épaisseur. */ + @XmlElement(name = "Thickness") + protected MeasurementType thickness; - @XmlElement(name = "Width") - protected MeasurementType width; - @XmlElement(name = "Height") - protected MeasurementType height; - @XmlElement(name = "Depth") - protected MeasurementType depth; - @XmlElement(name = "Shape") - protected String shape; - @XmlElement(name = "Diameter") - protected MeasurementType diameter; - @XmlElement(name = "Length") - protected MeasurementType length; - @XmlElement(name = "Thickness") - protected MeasurementType thickness; - @XmlElement(name = "Weight") - protected MeasurementWeightType weight; - @XmlElement(name = "NumberOfPage") - protected Integer numberOfPage; + /** Métadonnée de dimension physique : poids. */ + @XmlElement(name = "Weight") + protected MeasurementWeightType weight; - /** - * Gets the value of the width property. - * - * @return - * possible object is - * {@link MeasurementType } - * - */ - public MeasurementType getWidth() { - return width; - } + /** Métadonnée de dimension physique : nombre de pages. */ + @XmlElement(name = "NumberOfPage") + protected Integer numberOfPage; - /** - * Sets the value of the width property. - * - * @param value - * allowed object is - * {@link MeasurementType } - * - */ - public void setWidth(MeasurementType value) { - this.width = value; - } + /** + * Métadonnée de dimension physique : largeur. + * + * @return possible object is {@link MeasurementType } + */ + public MeasurementType getWidth() { + return width; + } - /** - * Gets the value of the height property. - * - * @return - * possible object is - * {@link MeasurementType } - * - */ - public MeasurementType getHeight() { - return height; - } + /** + * Sets the value of the width property. + * + * @param value allowed object is {@link MeasurementType } + * @see #getWidth() + */ + public void setWidth(MeasurementType value) { + this.width = value; + } - /** - * Sets the value of the height property. - * - * @param value - * allowed object is - * {@link MeasurementType } - * - */ - public void setHeight(MeasurementType value) { - this.height = value; - } + /** + * Métadonnée de dimension physique : hauteur. + * + * @return possible object is {@link MeasurementType } + */ + public MeasurementType getHeight() { + return height; + } - /** - * Gets the value of the depth property. - * - * @return - * possible object is - * {@link MeasurementType } - * - */ - public MeasurementType getDepth() { - return depth; - } + /** + * Sets the value of the height property. + * + * @param value allowed object is {@link MeasurementType } + * @see #getHeight() + */ + public void setHeight(MeasurementType value) { + this.height = value; + } - /** - * Sets the value of the depth property. - * - * @param value - * allowed object is - * {@link MeasurementType } - * - */ - public void setDepth(MeasurementType value) { - this.depth = value; - } + /** + * Métadonnée de dimension physique : profondeur. + * + * @return possible object is {@link MeasurementType } + */ + public MeasurementType getDepth() { + return depth; + } - /** - * Gets the value of the shape property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getShape() { - return shape; - } + /** + * Sets the value of the depth property. + * + * @param value allowed object is {@link MeasurementType } + * @see #getDepth() + */ + public void setDepth(MeasurementType value) { + this.depth = value; + } - /** - * Sets the value of the shape property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setShape(String value) { - this.shape = value; - } + /** + * Métadonnée de dimension physique : forme. + * + * @return possible object is {@link String } + */ + public String getShape() { + return shape; + } - /** - * Gets the value of the diameter property. - * - * @return - * possible object is - * {@link MeasurementType } - * - */ - public MeasurementType getDiameter() { - return diameter; - } + /** + * Sets the value of the shape property. + * + * @param value allowed object is {@link String } + * @see #getShape() + */ + public void setShape(String value) { + this.shape = value; + } - /** - * Sets the value of the diameter property. - * - * @param value - * allowed object is - * {@link MeasurementType } - * - */ - public void setDiameter(MeasurementType value) { - this.diameter = value; - } + /** + * Métadonnée de dimension physique : diamètre. + * + * @return possible object is {@link MeasurementType } + */ + public MeasurementType getDiameter() { + return diameter; + } - /** - * Gets the value of the length property. - * - * @return - * possible object is - * {@link MeasurementType } - * - */ - public MeasurementType getLength() { - return length; - } + /** + * Sets the value of the diameter property. + * + * @param value allowed object is {@link MeasurementType } + * @see #getDiameter() + */ + public void setDiameter(MeasurementType value) { + this.diameter = value; + } - /** - * Sets the value of the length property. - * - * @param value - * allowed object is - * {@link MeasurementType } - * - */ - public void setLength(MeasurementType value) { - this.length = value; - } + /** + * Métadonnée de dimension physique : longueur. + * + * @return possible object is {@link MeasurementType } + */ + public MeasurementType getLength() { + return length; + } - /** - * Gets the value of the thickness property. - * - * @return - * possible object is - * {@link MeasurementType } - * - */ - public MeasurementType getThickness() { - return thickness; - } + /** + * Sets the value of the length property. + * + * @param value allowed object is {@link MeasurementType } + * @see #getLength() + */ + public void setLength(MeasurementType value) { + this.length = value; + } - /** - * Sets the value of the thickness property. - * - * @param value - * allowed object is - * {@link MeasurementType } - * - */ - public void setThickness(MeasurementType value) { - this.thickness = value; - } + /** + * Métadonnée de dimension physique : épaisseur. + * + * @return possible object is {@link MeasurementType } + */ + public MeasurementType getThickness() { + return thickness; + } - /** - * Gets the value of the weight property. - * - * @return - * possible object is - * {@link MeasurementWeightType } - * - */ - public MeasurementWeightType getWeight() { - return weight; - } + /** + * Sets the value of the thickness property. + * + * @param value allowed object is {@link MeasurementType } + * @see #getThickness() + */ + public void setThickness(MeasurementType value) { + this.thickness = value; + } - /** - * Sets the value of the weight property. - * - * @param value - * allowed object is - * {@link MeasurementWeightType } - * - */ - public void setWeight(MeasurementWeightType value) { - this.weight = value; - } + /** + * Métadonnée de dimension physique : poids. + * + * @return possible object is {@link MeasurementWeightType } + */ + public MeasurementWeightType getWeight() { + return weight; + } - /** - * Gets the value of the numberOfPage property. - * - * @return - * possible object is - * {@link Integer } - * - */ - public Integer getNumberOfPage() { - return numberOfPage; - } + /** + * Sets the value of the weight property. + * + * @param value allowed object is {@link MeasurementWeightType } + * @see #getWeight() + */ + public void setWeight(MeasurementWeightType value) { + this.weight = value; + } - /** - * Sets the value of the numberOfPage property. - * - * @param value - * allowed object is - * {@link Integer } - * - */ - public void setNumberOfPage(Integer value) { - this.numberOfPage = value; - } + /** + * Métadonnée de dimension physique : nombre de pages. + * + * @return possible object is {@link Integer } + */ + public Integer getNumberOfPage() { + return numberOfPage; + } + /** + * Sets the value of the numberOfPage property. + * + * @param value allowed object is {@link Integer } + * @see #getNumberOfPage() + */ + public void setNumberOfPage(Integer value) { + this.numberOfPage = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DisseminationRuleType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DisseminationRuleType.java index d690a8a..470d073 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DisseminationRuleType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DisseminationRuleType.java @@ -1,29 +1,28 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlElements; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de cet ArchiveUnit. - * + * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de + * cet ArchiveUnit. + * *

Java class for DisseminationRuleType complex type. - * + * *

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

{@code
  * 
  *   
@@ -42,112 +41,98 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DisseminationRuleType", propOrder = { - "ruleAndStartDate", - "preventInheritance", - "refNonRuleId" -}) +@XmlType( + name = "DisseminationRuleType", + propOrder = {"ruleAndStartDate", "preventInheritance", "refNonRuleId"}) public class DisseminationRuleType { - @XmlElements({ - @XmlElement(name = "Rule", type = RuleIdType.class), - @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) - }) - protected List ruleAndStartDate; - @XmlElement(name = "PreventInheritance", defaultValue = "false") - protected Boolean preventInheritance; - @XmlElement(name = "RefNonRuleId") - protected List refNonRuleId; + @XmlElements({ + @XmlElement(name = "Rule", type = RuleIdType.class), + @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) + }) + protected List ruleAndStartDate; - /** - * Gets the value of the ruleAndStartDate 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the ruleAndStartDate property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link RuleIdType } - * {@link XMLGregorianCalendar } - * - * - * @return - * The value of the ruleAndStartDate property. - */ - public List getRuleAndStartDate() { - if (ruleAndStartDate == null) { - ruleAndStartDate = new ArrayList<>(); - } - return this.ruleAndStartDate; - } + /** + * Indique si les règles de gestion héritées des ArchiveUnit parents doivent être ignorées pour + * l’ArchiveUnit concerné. + */ + @XmlElement(name = "PreventInheritance", defaultValue = "false") + protected Boolean preventInheritance; - /** - * Gets the value of the preventInheritance property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isPreventInheritance() { - return preventInheritance; - } + /** L'identifiant de la règle spécifiée pourra être retirée de l'héritage dans ce noeud. */ + @XmlElement(name = "RefNonRuleId") + protected List refNonRuleId; - /** - * Sets the value of the preventInheritance property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPreventInheritance(Boolean value) { - this.preventInheritance = value; + /** + * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType } {@link + * XMLGregorianCalendar } + * + * @return The value of the ruleAndStartDate property. + */ + public List getRuleAndStartDate() { + if (ruleAndStartDate == null) { + ruleAndStartDate = new ArrayList<>(); } + return this.ruleAndStartDate; + } - /** - * Gets the value of the refNonRuleId 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the refNonRuleId property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link RuleIdType } - * - * - * @return - * The value of the refNonRuleId property. - */ - public List getRefNonRuleId() { - if (refNonRuleId == null) { - refNonRuleId = new ArrayList<>(); - } - return this.refNonRuleId; - } + /** + * Indique si les règles de gestion héritées des ArchiveUnit parents doivent être ignorées pour + * l’ArchiveUnit concerné. + * + * @return possible object is {@link Boolean } + */ + public Boolean isPreventInheritance() { + return preventInheritance; + } + + /** + * Sets the value of the preventInheritance property. + * + * @param value allowed object is {@link Boolean } + * @see #isPreventInheritance() + */ + public void setPreventInheritance(Boolean value) { + this.preventInheritance = value; + } + /** + * L'identifiant de la règle spécifiée pourra être retirée de l'héritage dans ce noeud. + * + *

Gets the value of the refNonRuleId 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 refNonRuleId property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType } + * + * @return The value of the refNonRuleId property. + */ + public List getRefNonRuleId() { + if (refNonRuleId == null) { + refNonRuleId = new ArrayList<>(); + } + return this.refNonRuleId; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DocumentTechnicalMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DocumentTechnicalMetadataType.java index aa01680..00752ec 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DocumentTechnicalMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/DocumentTechnicalMetadataType.java @@ -1,24 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlType; - /** - * Contient toutes les métadonnées techniques de base pour les objets-données de type document (Word, PDF, XLS, LibreOffice, ...). - * + * Contient toutes les métadonnées techniques de base pour les objets-données de type document + * (Word, PDF, XLS, LibreOffice, ...). + * *

Java class for DocumentTechnicalMetadataType complex type. - * + * *

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

{@code
  * 
  *   
@@ -27,14 +26,7 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DocumentTechnicalMetadataType") -public class DocumentTechnicalMetadataType - extends OpenType -{ - - -} +public class DocumentTechnicalMetadataType extends OpenType {} diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/EventLogBookOgType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/EventLogBookOgType.java index d68e2fe..30f430a 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/EventLogBookOgType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/EventLogBookOgType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -14,12 +13,11 @@ import jakarta.xml.bind.annotation.XmlSchemaType; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for EventLogBookOgType complex type. - * + * Java class for EventLogBookOgType complex type. + * *

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

{@code
  * 
  *   
@@ -31,44 +29,39 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "EventLogBookOgType", propOrder = { - "dataObjectReferenceId" -}) -public class EventLogBookOgType - extends EventType -{ - - @XmlElement(name = "DataObjectReferenceId") - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object dataObjectReferenceId; +@XmlType( + name = "EventLogBookOgType", + propOrder = {"dataObjectReferenceId"}) +public class EventLogBookOgType extends EventType { - /** - * Gets the value of the dataObjectReferenceId property. - * - * @return - * possible object is - * {@link Object } - * - */ - public Object getDataObjectReferenceId() { - return dataObjectReferenceId; - } + /** + * Permet de faire référence à un objet-donnée binaire ou physique déjà présent dans les + * métadonnées du bordereau. + */ + @XmlElement(name = "DataObjectReferenceId") + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object dataObjectReferenceId; - /** - * Sets the value of the dataObjectReferenceId property. - * - * @param value - * allowed object is - * {@link Object } - * - */ - public void setDataObjectReferenceId(Object value) { - this.dataObjectReferenceId = value; - } + /** + * Permet de faire référence à un objet-donnée binaire ou physique déjà présent dans les + * métadonnées du bordereau. + * + * @return possible object is {@link Object } + */ + public Object getDataObjectReferenceId() { + return dataObjectReferenceId; + } + /** + * Sets the value of the dataObjectReferenceId property. + * + * @param value allowed object is {@link Object } + * @see #getDataObjectReferenceId() + */ + public void setDataObjectReferenceId(Object value) { + this.dataObjectReferenceId = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/EventType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/EventType.java index dd54550..b9f44f2 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/EventType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/EventType.java @@ -1,14 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAnyElement; @@ -18,14 +15,15 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.util.ArrayList; +import java.util.List; import org.w3c.dom.Element; - /** - *

Java class for EventType complex type. - * + * Java class for EventType complex type. + * *

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

{@code
  * 
  *   
@@ -47,342 +45,301 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "EventType", propOrder = { - "eventIdentifier", - "eventTypeCode", - "eventType", - "eventDateTime", - "eventDetail", - "outcome", - "outcomeDetail", - "outcomeDetailMessage", - "eventDetailData", - "linkingAgentIdentifier", - "any" -}) -@XmlSeeAlso({ - EventLogBookOgType.class -}) +@XmlType( + name = "EventType", + propOrder = { + "eventIdentifier", + "eventTypeCode", + "eventType", + "eventDateTime", + "eventDetail", + "outcome", + "outcomeDetail", + "outcomeDetailMessage", + "eventDetailData", + "linkingAgentIdentifier", + "any" + }) +@XmlSeeAlso({EventLogBookOgType.class}) public class EventType { - @XmlElement(name = "EventIdentifier") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String eventIdentifier; - @XmlElement(name = "EventTypeCode") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String eventTypeCode; - @XmlElement(name = "EventType") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String eventType; - @XmlElement(name = "EventDateTime", required = true) - protected String eventDateTime; - @XmlElement(name = "EventDetail") - protected TextType eventDetail; - @XmlElement(name = "Outcome") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String outcome; - @XmlElement(name = "OutcomeDetail") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String outcomeDetail; - @XmlElement(name = "OutcomeDetailMessage") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String outcomeDetailMessage; - @XmlElement(name = "EventDetailData") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String eventDetailData; - @XmlElement(name = "LinkingAgentIdentifier") - protected List linkingAgentIdentifier; - @XmlAnyElement(lax = true) - protected List any; - - /** - * Gets the value of the eventIdentifier property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getEventIdentifier() { - return eventIdentifier; - } + /** Références : premis.eventIdentifier */ + @XmlElement(name = "EventIdentifier") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String eventIdentifier; - /** - * Sets the value of the eventIdentifier property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setEventIdentifier(String value) { - this.eventIdentifier = value; - } + /** Code du type d'événement. */ + @XmlElement(name = "EventTypeCode") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String eventTypeCode; - /** - * Gets the value of the eventTypeCode property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getEventTypeCode() { - return eventTypeCode; - } + /** Type d'événement. */ + @XmlElement(name = "EventType") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String eventType; - /** - * Sets the value of the eventTypeCode property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setEventTypeCode(String value) { - this.eventTypeCode = value; - } + /** Date et heure de l'événement. */ + @XmlElement(name = "EventDateTime", required = true) + protected String eventDateTime; - /** - * Gets the value of the eventType property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getEventType() { - return eventType; - } + /** Détail sur l'événement. */ + @XmlElement(name = "EventDetail") + protected TextType eventDetail; - /** - * Sets the value of the eventType property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setEventType(String value) { - this.eventType = value; - } + /** Résultat du traitement. */ + @XmlElement(name = "Outcome") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String outcome; - /** - * Gets the value of the eventDateTime property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getEventDateTime() { - return eventDateTime; - } + /** Détail sur le résultat du traitement. */ + @XmlElement(name = "OutcomeDetail") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String outcomeDetail; - /** - * Sets the value of the eventDateTime property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setEventDateTime(String value) { - this.eventDateTime = value; - } + /** Message détaillé sur le résultat du traitement. */ + @XmlElement(name = "OutcomeDetailMessage") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String outcomeDetailMessage; - /** - * Gets the value of the eventDetail property. - * - * @return - * possible object is - * {@link TextType } - * - */ - public TextType getEventDetail() { - return eventDetail; - } + /** Message technique détaillant l'erreur. */ + @XmlElement(name = "EventDetailData") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String eventDetailData; - /** - * Sets the value of the eventDetail property. - * - * @param value - * allowed object is - * {@link TextType } - * - */ - public void setEventDetail(TextType value) { - this.eventDetail = value; - } + /** Permet de renseigner des agents répertoriés dans des évènements. */ + @XmlElement(name = "LinkingAgentIdentifier") + protected List linkingAgentIdentifier; - /** - * Gets the value of the outcome property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOutcome() { - return outcome; - } + @XmlAnyElement(lax = true) + protected List any; - /** - * Sets the value of the outcome property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOutcome(String value) { - this.outcome = value; - } + /** + * Références : premis.eventIdentifier + * + * @return possible object is {@link String } + */ + public String getEventIdentifier() { + return eventIdentifier; + } - /** - * Gets the value of the outcomeDetail property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOutcomeDetail() { - return outcomeDetail; - } + /** + * Sets the value of the eventIdentifier property. + * + * @param value allowed object is {@link String } + * @see #getEventIdentifier() + */ + public void setEventIdentifier(String value) { + this.eventIdentifier = value; + } - /** - * Sets the value of the outcomeDetail property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOutcomeDetail(String value) { - this.outcomeDetail = value; - } + /** + * Code du type d'événement. + * + * @return possible object is {@link String } + */ + public String getEventTypeCode() { + return eventTypeCode; + } - /** - * Gets the value of the outcomeDetailMessage property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getOutcomeDetailMessage() { - return outcomeDetailMessage; - } + /** + * Sets the value of the eventTypeCode property. + * + * @param value allowed object is {@link String } + * @see #getEventTypeCode() + */ + public void setEventTypeCode(String value) { + this.eventTypeCode = value; + } - /** - * Sets the value of the outcomeDetailMessage property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setOutcomeDetailMessage(String value) { - this.outcomeDetailMessage = value; - } + /** + * Type d'événement. + * + * @return possible object is {@link String } + */ + public String getEventType() { + return eventType; + } - /** - * Gets the value of the eventDetailData property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getEventDetailData() { - return eventDetailData; - } + /** + * Sets the value of the eventType property. + * + * @param value allowed object is {@link String } + * @see #getEventType() + */ + public void setEventType(String value) { + this.eventType = value; + } - /** - * Sets the value of the eventDetailData property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setEventDetailData(String value) { - this.eventDetailData = value; - } + /** + * Date et heure de l'événement. + * + * @return possible object is {@link String } + */ + public String getEventDateTime() { + return eventDateTime; + } - /** - * Gets the value of the linkingAgentIdentifier 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the linkingAgentIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link LinkingAgentIdentifierType } - * - * - * @return - * The value of the linkingAgentIdentifier property. - */ - public List getLinkingAgentIdentifier() { - if (linkingAgentIdentifier == null) { - linkingAgentIdentifier = new ArrayList<>(); - } - return this.linkingAgentIdentifier; - } + /** + * Sets the value of the eventDateTime property. + * + * @param value allowed object is {@link String } + * @see #getEventDateTime() + */ + public void setEventDateTime(String value) { + this.eventDateTime = value; + } + + /** + * Détail sur l'événement. + * + * @return possible object is {@link TextType } + */ + public TextType getEventDetail() { + return eventDetail; + } + + /** + * Sets the value of the eventDetail property. + * + * @param value allowed object is {@link TextType } + * @see #getEventDetail() + */ + public void setEventDetail(TextType value) { + this.eventDetail = value; + } - /** - * Gets the value of the any 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the any property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link Object } - * {@link Element } - * - * - * @return - * The value of the any property. - */ - public List getAny() { - if (any == null) { - any = new ArrayList<>(); - } - return this.any; + /** + * Résultat du traitement. + * + * @return possible object is {@link String } + */ + public String getOutcome() { + return outcome; + } + + /** + * Sets the value of the outcome property. + * + * @param value allowed object is {@link String } + * @see #getOutcome() + */ + public void setOutcome(String value) { + this.outcome = value; + } + + /** + * Détail sur le résultat du traitement. + * + * @return possible object is {@link String } + */ + public String getOutcomeDetail() { + return outcomeDetail; + } + + /** + * Sets the value of the outcomeDetail property. + * + * @param value allowed object is {@link String } + * @see #getOutcomeDetail() + */ + public void setOutcomeDetail(String value) { + this.outcomeDetail = value; + } + + /** + * Message détaillé sur le résultat du traitement. + * + * @return possible object is {@link String } + */ + public String getOutcomeDetailMessage() { + return outcomeDetailMessage; + } + + /** + * Sets the value of the outcomeDetailMessage property. + * + * @param value allowed object is {@link String } + * @see #getOutcomeDetailMessage() + */ + public void setOutcomeDetailMessage(String value) { + this.outcomeDetailMessage = value; + } + + /** + * Message technique détaillant l'erreur. + * + * @return possible object is {@link String } + */ + public String getEventDetailData() { + return eventDetailData; + } + + /** + * Sets the value of the eventDetailData property. + * + * @param value allowed object is {@link String } + * @see #getEventDetailData() + */ + public void setEventDetailData(String value) { + this.eventDetailData = value; + } + + /** + * Permet de renseigner des agents répertoriés dans des évènements. + * + *

Gets the value of the linkingAgentIdentifier 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 linkingAgentIdentifier property. + * + *

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

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

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

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

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

Objects of the following type(s) are allowed in the list {@link Object } {@link Element } + * + * @return The value of the any property. + */ + public List getAny() { + if (any == null) { + any = new ArrayList<>(); + } + return this.any; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FileInfoType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FileInfoType.java index f3bd4cc..a48e420 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FileInfoType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FileInfoType.java @@ -1,27 +1,25 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; import jakarta.xml.bind.annotation.XmlType; - +import javax.xml.datatype.XMLGregorianCalendar; /** * Informations sur le fichier lui-même (d'un point de vue technique). - * + * *

Java class for FileInfoType complex type. - * + * *

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

{@code
  * 
  *   
@@ -39,204 +37,181 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "FileInfoType", propOrder = { - "filename", - "creatingApplicationName", - "creatingApplicationVersion", - "dateCreatedByApplication", - "creatingOs", - "creatingOsVersion", - "lastModified" -}) +@XmlType( + name = "FileInfoType", + propOrder = { + "filename", + "creatingApplicationName", + "creatingApplicationVersion", + "dateCreatedByApplication", + "creatingOs", + "creatingOsVersion", + "lastModified" + }) public class FileInfoType { - @XmlElement(name = "Filename", required = true) - protected String filename; - @XmlElement(name = "CreatingApplicationName") - protected String creatingApplicationName; - @XmlElement(name = "CreatingApplicationVersion") - protected String creatingApplicationVersion; - @XmlElement(name = "DateCreatedByApplication") - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar dateCreatedByApplication; - @XmlElement(name = "CreatingOs") - protected String creatingOs; - @XmlElement(name = "CreatingOsVersion") - protected String creatingOsVersion; - @XmlElement(name = "LastModified") - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar lastModified; - - /** - * Gets the value of the filename property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFilename() { - return filename; - } - - /** - * Sets the value of the filename property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFilename(String value) { - this.filename = value; - } - - /** - * Gets the value of the creatingApplicationName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCreatingApplicationName() { - return creatingApplicationName; - } - - /** - * Sets the value of the creatingApplicationName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCreatingApplicationName(String value) { - this.creatingApplicationName = value; - } - - /** - * Gets the value of the creatingApplicationVersion property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCreatingApplicationVersion() { - return creatingApplicationVersion; - } - - /** - * Sets the value of the creatingApplicationVersion property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCreatingApplicationVersion(String value) { - this.creatingApplicationVersion = value; - } - - /** - * Gets the value of the dateCreatedByApplication property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getDateCreatedByApplication() { - return dateCreatedByApplication; - } - - /** - * Sets the value of the dateCreatedByApplication property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setDateCreatedByApplication(XMLGregorianCalendar value) { - this.dateCreatedByApplication = value; - } - - /** - * Gets the value of the creatingOs property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCreatingOs() { - return creatingOs; - } - - /** - * Sets the value of the creatingOs property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCreatingOs(String value) { - this.creatingOs = value; - } - - /** - * Gets the value of the creatingOsVersion property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCreatingOsVersion() { - return creatingOsVersion; - } - - /** - * Sets the value of the creatingOsVersion property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCreatingOsVersion(String value) { - this.creatingOsVersion = value; - } - - /** - * Gets the value of the lastModified property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getLastModified() { - return lastModified; - } - - /** - * Sets the value of the lastModified property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setLastModified(XMLGregorianCalendar value) { - this.lastModified = value; - } - + /** Nom du fichier d'origine. */ + @XmlElement(name = "Filename", required = true) + protected String filename; + + /** Nom de l'application utilisée pour créer le fichier. */ + @XmlElement(name = "CreatingApplicationName") + protected String creatingApplicationName; + + /** Version de l'application utilisée pour créer le fichier. */ + @XmlElement(name = "CreatingApplicationVersion") + protected String creatingApplicationVersion; + + /** Date de création du fichier. */ + @XmlElement(name = "DateCreatedByApplication") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar dateCreatedByApplication; + + /** Système d’exploitation utilisé pour créer le fichier. */ + @XmlElement(name = "CreatingOs") + protected String creatingOs; + + /** Version du système d'exploitation utilisé pour créer le fichier. */ + @XmlElement(name = "CreatingOsVersion") + protected String creatingOsVersion; + + /** Date de la dernière modification du fichier. */ + @XmlElement(name = "LastModified") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar lastModified; + + /** + * Nom du fichier d'origine. + * + * @return possible object is {@link String } + */ + public String getFilename() { + return filename; + } + + /** + * Sets the value of the filename property. + * + * @param value allowed object is {@link String } + * @see #getFilename() + */ + public void setFilename(String value) { + this.filename = value; + } + + /** + * Nom de l'application utilisée pour créer le fichier. + * + * @return possible object is {@link String } + */ + public String getCreatingApplicationName() { + return creatingApplicationName; + } + + /** + * Sets the value of the creatingApplicationName property. + * + * @param value allowed object is {@link String } + * @see #getCreatingApplicationName() + */ + public void setCreatingApplicationName(String value) { + this.creatingApplicationName = value; + } + + /** + * Version de l'application utilisée pour créer le fichier. + * + * @return possible object is {@link String } + */ + public String getCreatingApplicationVersion() { + return creatingApplicationVersion; + } + + /** + * Sets the value of the creatingApplicationVersion property. + * + * @param value allowed object is {@link String } + * @see #getCreatingApplicationVersion() + */ + public void setCreatingApplicationVersion(String value) { + this.creatingApplicationVersion = value; + } + + /** + * Date de création du fichier. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getDateCreatedByApplication() { + return dateCreatedByApplication; + } + + /** + * Sets the value of the dateCreatedByApplication property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getDateCreatedByApplication() + */ + public void setDateCreatedByApplication(XMLGregorianCalendar value) { + this.dateCreatedByApplication = value; + } + + /** + * Système d’exploitation utilisé pour créer le fichier. + * + * @return possible object is {@link String } + */ + public String getCreatingOs() { + return creatingOs; + } + + /** + * Sets the value of the creatingOs property. + * + * @param value allowed object is {@link String } + * @see #getCreatingOs() + */ + public void setCreatingOs(String value) { + this.creatingOs = value; + } + + /** + * Version du système d'exploitation utilisé pour créer le fichier. + * + * @return possible object is {@link String } + */ + public String getCreatingOsVersion() { + return creatingOsVersion; + } + + /** + * Sets the value of the creatingOsVersion property. + * + * @param value allowed object is {@link String } + * @see #getCreatingOsVersion() + */ + public void setCreatingOsVersion(String value) { + this.creatingOsVersion = value; + } + + /** + * Date de la dernière modification du fichier. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getLastModified() { + return lastModified; + } + + /** + * Sets the value of the lastModified property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getLastModified() + */ + public void setLastModified(XMLGregorianCalendar value) { + this.lastModified = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FinalActionAppraisalCodeType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FinalActionAppraisalCodeType.java index 16056d3..5d65a03 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FinalActionAppraisalCodeType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FinalActionAppraisalCodeType.java @@ -1,21 +1,22 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlEnum; import jakarta.xml.bind.annotation.XmlEnumValue; import jakarta.xml.bind.annotation.XmlType; - /** + * Code correspondant à l’action à entreprendre au terme de la durée d’utilité administrative. + * *

Java class for FinalActionAppraisalCodeType. - * + * *

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

{@code
  * 
  *   
@@ -24,33 +25,42 @@
  *   
  * 
  * }
- * */ @XmlType(name = "FinalActionAppraisalCodeType") @XmlEnum public enum FinalActionAppraisalCodeType { + @XmlEnumValue("Keep") + KEEP("Keep"), + @XmlEnumValue("Destroy") + DESTROY("Destroy"); + private final String value; - @XmlEnumValue("Keep") - KEEP("Keep"), - @XmlEnumValue("Destroy") - DESTROY("Destroy"); - private final String value; - - FinalActionAppraisalCodeType(String v) { - value = v; - } + FinalActionAppraisalCodeType(String v) { + value = v; + } - public String value() { - return value; - } + /** + * Gets the value associated to the enum constant. + * + * @return The value linked to the enum. + */ + public String value() { + return value; + } - public static FinalActionAppraisalCodeType fromValue(String v) { - for (FinalActionAppraisalCodeType c: FinalActionAppraisalCodeType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** + * Gets the enum associated to the value passed as parameter. + * + * @param v The value to get the enum from. + * @return The enum which corresponds to the value, if it exists. + * @throws IllegalArgumentException If no value matches in the enum declaration. + */ + public static FinalActionAppraisalCodeType fromValue(String v) { + for (FinalActionAppraisalCodeType c : FinalActionAppraisalCodeType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FinalActionStorageCodeType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FinalActionStorageCodeType.java index 31f24cf..a7cb092 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FinalActionStorageCodeType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FinalActionStorageCodeType.java @@ -1,21 +1,22 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlEnum; import jakarta.xml.bind.annotation.XmlEnumValue; import jakarta.xml.bind.annotation.XmlType; - /** + * Code correspondant à l’action à entreprendre au terme de la durée d’utilité courante. + * *

Java class for FinalActionStorageCodeType. - * + * *

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

{@code
  * 
  *   
@@ -25,35 +26,44 @@
  *   
  * 
  * }
- * */ @XmlType(name = "FinalActionStorageCodeType") @XmlEnum public enum FinalActionStorageCodeType { + @XmlEnumValue("RestrictAccess") + RESTRICT_ACCESS("RestrictAccess"), + @XmlEnumValue("Transfer") + TRANSFER("Transfer"), + @XmlEnumValue("Copy") + COPY("Copy"); + private final String value; - @XmlEnumValue("RestrictAccess") - RESTRICT_ACCESS("RestrictAccess"), - @XmlEnumValue("Transfer") - TRANSFER("Transfer"), - @XmlEnumValue("Copy") - COPY("Copy"); - private final String value; - - FinalActionStorageCodeType(String v) { - value = v; - } + FinalActionStorageCodeType(String v) { + value = v; + } - public String value() { - return value; - } + /** + * Gets the value associated to the enum constant. + * + * @return The value linked to the enum. + */ + public String value() { + return value; + } - public static FinalActionStorageCodeType fromValue(String v) { - for (FinalActionStorageCodeType c: FinalActionStorageCodeType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** + * Gets the enum associated to the value passed as parameter. + * + * @param v The value to get the enum from. + * @return The enum which corresponds to the value, if it exists. + * @throws IllegalArgumentException If no value matches in the enum declaration. + */ + public static FinalActionStorageCodeType fromValue(String v) { + for (FinalActionStorageCodeType c : FinalActionStorageCodeType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FormatIdentificationType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FormatIdentificationType.java index d238443..4c3e598 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FormatIdentificationType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/FormatIdentificationType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -15,12 +14,11 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** - *

Java class for FormatIdentificationType complex type. - * + * Java class for FormatIdentificationType complex type. + * *

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

{@code
  * 
  *   
@@ -35,127 +33,108 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "FormatIdentificationType", propOrder = { - "formatLitteral", - "mimeType", - "formatId", - "encoding" -}) +@XmlType( + name = "FormatIdentificationType", + propOrder = {"formatLitteral", "mimeType", "formatId", "encoding"}) public class FormatIdentificationType { - @XmlElement(name = "FormatLitteral") - protected String formatLitteral; - @XmlElement(name = "MimeType") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String mimeType; - @XmlElement(name = "FormatId") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String formatId; - @XmlElement(name = "Encoding") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String encoding; + /** Exemple : Microsoft Word Document. */ + @XmlElement(name = "FormatLitteral") + protected String formatLitteral; + + /** Exemple : application/msword */ + @XmlElement(name = "MimeType") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String mimeType; + + /** Exemple : (Pronom)fmt/40 */ + @XmlElement(name = "FormatId") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String formatId; - /** - * Gets the value of the formatLitteral property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFormatLitteral() { - return formatLitteral; - } + /** Exemple : Utf-8 */ + @XmlElement(name = "Encoding") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String encoding; - /** - * Sets the value of the formatLitteral property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFormatLitteral(String value) { - this.formatLitteral = value; - } + /** + * Exemple : Microsoft Word Document. + * + * @return possible object is {@link String } + */ + public String getFormatLitteral() { + return formatLitteral; + } - /** - * Gets the value of the mimeType property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getMimeType() { - return mimeType; - } + /** + * Sets the value of the formatLitteral property. + * + * @param value allowed object is {@link String } + * @see #getFormatLitteral() + */ + public void setFormatLitteral(String value) { + this.formatLitteral = value; + } - /** - * Sets the value of the mimeType property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setMimeType(String value) { - this.mimeType = value; - } + /** + * Exemple : application/msword + * + * @return possible object is {@link String } + */ + public String getMimeType() { + return mimeType; + } - /** - * Gets the value of the formatId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFormatId() { - return formatId; - } + /** + * Sets the value of the mimeType property. + * + * @param value allowed object is {@link String } + * @see #getMimeType() + */ + public void setMimeType(String value) { + this.mimeType = value; + } - /** - * Sets the value of the formatId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFormatId(String value) { - this.formatId = value; - } + /** + * Exemple : (Pronom)fmt/40 + * + * @return possible object is {@link String } + */ + public String getFormatId() { + return formatId; + } - /** - * Gets the value of the encoding property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getEncoding() { - return encoding; - } + /** + * Sets the value of the formatId property. + * + * @param value allowed object is {@link String } + * @see #getFormatId() + */ + public void setFormatId(String value) { + this.formatId = value; + } - /** - * Sets the value of the encoding property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setEncoding(String value) { - this.encoding = value; - } + /** + * Exemple : Utf-8 + * + * @return possible object is {@link String } + */ + public String getEncoding() { + return encoding; + } + /** + * Sets the value of the encoding property. + * + * @param value allowed object is {@link String } + * @see #getEncoding() + */ + public void setEncoding(String value) { + this.encoding = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/GpsType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/GpsType.java index 4846c35..edd55d1 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/GpsType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/GpsType.java @@ -1,24 +1,22 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.math.BigInteger; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import java.math.BigInteger; /** - *

Java class for GpsType complex type. - * + * Java class for GpsType complex type. + * *

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

{@code
  * 
  *   
@@ -37,229 +35,223 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "GpsType", propOrder = { - "gpsVersionID", - "gpsAltitude", - "gpsAltitudeRef", - "gpsLatitude", - "gpsLatitudeRef", - "gpsLongitude", - "gpsLongitudeRef", - "gpsDateStamp" -}) +@XmlType( + name = "GpsType", + propOrder = { + "gpsVersionID", + "gpsAltitude", + "gpsAltitudeRef", + "gpsLatitude", + "gpsLatitudeRef", + "gpsLongitude", + "gpsLongitudeRef", + "gpsDateStamp" + }) public class GpsType { - @XmlElement(name = "GpsVersionID") - protected String gpsVersionID; - @XmlElement(name = "GpsAltitude") - protected BigInteger gpsAltitude; - @XmlElement(name = "GpsAltitudeRef") - protected String gpsAltitudeRef; - @XmlElement(name = "GpsLatitude") - protected String gpsLatitude; - @XmlElement(name = "GpsLatitudeRef") - protected String gpsLatitudeRef; - @XmlElement(name = "GpsLongitude") - protected String gpsLongitude; - @XmlElement(name = "GpsLongitudeRef") - protected String gpsLongitudeRef; - @XmlElement(name = "GpsDateStamp") - protected String gpsDateStamp; + /** Identifiant de la version du GPS. */ + @XmlElement(name = "GpsVersionID") + protected String gpsVersionID; + + /** + * Indique l'altitude basée sur la référence dans GPSAltitudeRef. L'altitude est exprimée en + * mètres. + */ + @XmlElement(name = "GpsAltitude") + protected BigInteger gpsAltitude; + + /** Si l'altitude est au-dessous du niveau de la mer, la veleur 1 est normalement donnée. */ + @XmlElement(name = "GpsAltitudeRef") + protected String gpsAltitudeRef; + + /** + * 2)Si la latitude est exprimée en degrés, minutes et secondes, le format type est dd, mm, ss. + * Par ex: "45 18 46.922". + */ + @XmlElement(name = "GpsLatitude") + protected String gpsLatitude; + + /** + * Indique si la latitude est nord ou sud. La valeur 'N' indique la latitude nord, et 'S' indique + * la latitude sud. + */ + @XmlElement(name = "GpsLatitudeRef") + protected String gpsLatitudeRef; + + /** + * 2)Si la longitude est exprimée en degrés, minutes et secondes, le format type est dd, mm, ss. + * Par ex: "5 23 32.229". + */ + @XmlElement(name = "GpsLongitude") + protected String gpsLongitude; + + /** + * Indique si la longitude est est ou ouest. La valeur 'E' indique la longitude est, et 'W' + * indique la longitude Ouest. + */ + @XmlElement(name = "GpsLongitudeRef") + protected String gpsLongitudeRef; - /** - * Gets the value of the gpsVersionID property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGpsVersionID() { - return gpsVersionID; - } + /** Heure et Date de la position GPS. */ + @XmlElement(name = "GpsDateStamp") + protected String gpsDateStamp; - /** - * Sets the value of the gpsVersionID property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGpsVersionID(String value) { - this.gpsVersionID = value; - } + /** + * Identifiant de la version du GPS. + * + * @return possible object is {@link String } + */ + public String getGpsVersionID() { + return gpsVersionID; + } - /** - * Gets the value of the gpsAltitude property. - * - * @return - * possible object is - * {@link BigInteger } - * - */ - public BigInteger getGpsAltitude() { - return gpsAltitude; - } + /** + * Sets the value of the gpsVersionID property. + * + * @param value allowed object is {@link String } + * @see #getGpsVersionID() + */ + public void setGpsVersionID(String value) { + this.gpsVersionID = value; + } - /** - * Sets the value of the gpsAltitude property. - * - * @param value - * allowed object is - * {@link BigInteger } - * - */ - public void setGpsAltitude(BigInteger value) { - this.gpsAltitude = value; - } + /** + * Indique l'altitude basée sur la référence dans GPSAltitudeRef. L'altitude est exprimée en + * mètres. + * + * @return possible object is {@link BigInteger } + */ + public BigInteger getGpsAltitude() { + return gpsAltitude; + } - /** - * Gets the value of the gpsAltitudeRef property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGpsAltitudeRef() { - return gpsAltitudeRef; - } + /** + * Sets the value of the gpsAltitude property. + * + * @param value allowed object is {@link BigInteger } + * @see #getGpsAltitude() + */ + public void setGpsAltitude(BigInteger value) { + this.gpsAltitude = value; + } - /** - * Sets the value of the gpsAltitudeRef property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGpsAltitudeRef(String value) { - this.gpsAltitudeRef = value; - } + /** + * Si l'altitude est au-dessous du niveau de la mer, la veleur 1 est normalement donnée. + * + * @return possible object is {@link String } + */ + public String getGpsAltitudeRef() { + return gpsAltitudeRef; + } - /** - * Gets the value of the gpsLatitude property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGpsLatitude() { - return gpsLatitude; - } + /** + * Sets the value of the gpsAltitudeRef property. + * + * @param value allowed object is {@link String } + * @see #getGpsAltitudeRef() + */ + public void setGpsAltitudeRef(String value) { + this.gpsAltitudeRef = value; + } - /** - * Sets the value of the gpsLatitude property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGpsLatitude(String value) { - this.gpsLatitude = value; - } + /** + * 2)Si la latitude est exprimée en degrés, minutes et secondes, le format type est dd, mm, ss. + * Par ex: "45 18 46.922". + * + * @return possible object is {@link String } + */ + public String getGpsLatitude() { + return gpsLatitude; + } - /** - * Gets the value of the gpsLatitudeRef property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGpsLatitudeRef() { - return gpsLatitudeRef; - } + /** + * Sets the value of the gpsLatitude property. + * + * @param value allowed object is {@link String } + * @see #getGpsLatitude() + */ + public void setGpsLatitude(String value) { + this.gpsLatitude = value; + } - /** - * Sets the value of the gpsLatitudeRef property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGpsLatitudeRef(String value) { - this.gpsLatitudeRef = value; - } + /** + * Indique si la latitude est nord ou sud. La valeur 'N' indique la latitude nord, et 'S' indique + * la latitude sud. + * + * @return possible object is {@link String } + */ + public String getGpsLatitudeRef() { + return gpsLatitudeRef; + } - /** - * Gets the value of the gpsLongitude property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGpsLongitude() { - return gpsLongitude; - } + /** + * Sets the value of the gpsLatitudeRef property. + * + * @param value allowed object is {@link String } + * @see #getGpsLatitudeRef() + */ + public void setGpsLatitudeRef(String value) { + this.gpsLatitudeRef = value; + } - /** - * Sets the value of the gpsLongitude property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGpsLongitude(String value) { - this.gpsLongitude = value; - } + /** + * 2)Si la longitude est exprimée en degrés, minutes et secondes, le format type est dd, mm, ss. + * Par ex: "5 23 32.229". + * + * @return possible object is {@link String } + */ + public String getGpsLongitude() { + return gpsLongitude; + } - /** - * Gets the value of the gpsLongitudeRef property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGpsLongitudeRef() { - return gpsLongitudeRef; - } + /** + * Sets the value of the gpsLongitude property. + * + * @param value allowed object is {@link String } + * @see #getGpsLongitude() + */ + public void setGpsLongitude(String value) { + this.gpsLongitude = value; + } - /** - * Sets the value of the gpsLongitudeRef property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGpsLongitudeRef(String value) { - this.gpsLongitudeRef = value; - } + /** + * Indique si la longitude est est ou ouest. La valeur 'E' indique la longitude est, et 'W' + * indique la longitude Ouest. + * + * @return possible object is {@link String } + */ + public String getGpsLongitudeRef() { + return gpsLongitudeRef; + } - /** - * Gets the value of the gpsDateStamp property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGpsDateStamp() { - return gpsDateStamp; - } + /** + * Sets the value of the gpsLongitudeRef property. + * + * @param value allowed object is {@link String } + * @see #getGpsLongitudeRef() + */ + public void setGpsLongitudeRef(String value) { + this.gpsLongitudeRef = value; + } - /** - * Sets the value of the gpsDateStamp property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGpsDateStamp(String value) { - this.gpsDateStamp = value; - } + /** + * Heure et Date de la position GPS. + * + * @return possible object is {@link String } + */ + public String getGpsDateStamp() { + return gpsDateStamp; + } + /** + * Sets the value of the gpsDateStamp property. + * + * @param value allowed object is {@link String } + * @see #getGpsDateStamp() + */ + public void setGpsDateStamp(String value) { + this.gpsDateStamp = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/HoldRuleType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/HoldRuleType.java index ea2343e..d9a12ac 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/HoldRuleType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/HoldRuleType.java @@ -1,15 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.JAXBElement; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; @@ -17,17 +13,18 @@ import jakarta.xml.bind.annotation.XmlElementRef; import jakarta.xml.bind.annotation.XmlElementRefs; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - * La liste d'identifiants de règles à appliquer et à ignorer qui doit - * être appliquée à partir de cet ArchiveUnit. - * - * + * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de + * cet ArchiveUnit. + * *

Java class for HoldRuleType complex type. - * + * *

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

{@code
  * 
  *   
@@ -51,122 +48,135 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "HoldRuleType", propOrder = { - "ruleAndStartDateAndHoldEndDate", - "preventInheritance", - "refNonRuleId" -}) +@XmlType( + name = "HoldRuleType", + propOrder = {"ruleAndStartDateAndHoldEndDate", "preventInheritance", "refNonRuleId"}) public class HoldRuleType { - @XmlElementRefs({ - @XmlElementRef(name = "Rule", namespace = "fr:gouv:culture:archivesdefrance:seda:v2", type = JAXBElement.class, required = false), - @XmlElementRef(name = "StartDate", namespace = "fr:gouv:culture:archivesdefrance:seda:v2", type = JAXBElement.class, required = false), - @XmlElementRef(name = "HoldEndDate", namespace = "fr:gouv:culture:archivesdefrance:seda:v2", type = JAXBElement.class, required = false), - @XmlElementRef(name = "HoldOwner", namespace = "fr:gouv:culture:archivesdefrance:seda:v2", type = JAXBElement.class, required = false), - @XmlElementRef(name = "HoldReassessingDate", namespace = "fr:gouv:culture:archivesdefrance:seda:v2", type = JAXBElement.class, required = false), - @XmlElementRef(name = "HoldReason", namespace = "fr:gouv:culture:archivesdefrance:seda:v2", type = JAXBElement.class, required = false), - @XmlElementRef(name = "PreventRearrangement", namespace = "fr:gouv:culture:archivesdefrance:seda:v2", type = JAXBElement.class, required = false) - }) - protected List> ruleAndStartDateAndHoldEndDate; - @XmlElement(name = "PreventInheritance", defaultValue = "false") - protected Boolean preventInheritance; - @XmlElement(name = "RefNonRuleId") - protected List refNonRuleId; + @XmlElementRefs({ + @XmlElementRef( + name = "Rule", + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + type = JAXBElement.class, + required = false), + @XmlElementRef( + name = "StartDate", + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + type = JAXBElement.class, + required = false), + @XmlElementRef( + name = "HoldEndDate", + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + type = JAXBElement.class, + required = false), + @XmlElementRef( + name = "HoldOwner", + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + type = JAXBElement.class, + required = false), + @XmlElementRef( + name = "HoldReassessingDate", + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + type = JAXBElement.class, + required = false), + @XmlElementRef( + name = "HoldReason", + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + type = JAXBElement.class, + required = false), + @XmlElementRef( + name = "PreventRearrangement", + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + type = JAXBElement.class, + required = false) + }) + protected List> ruleAndStartDateAndHoldEndDate; - /** - * Gets the value of the ruleAndStartDateAndHoldEndDate 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the ruleAndStartDateAndHoldEndDate property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link RuleIdType }{@code >} - * {@link JAXBElement }{@code <}{@link Boolean }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link String }{@code >} - * {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} - * {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} - * {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} - * - * - * @return - * The value of the ruleAndStartDateAndHoldEndDate property. - */ - public List> getRuleAndStartDateAndHoldEndDate() { - if (ruleAndStartDateAndHoldEndDate == null) { - ruleAndStartDateAndHoldEndDate = new ArrayList<>(); - } - return this.ruleAndStartDateAndHoldEndDate; - } + /** + * Indique si les règles de gestion héritées des ArchiveUnit parents doivent être ignorées pour + * l’ArchiveUnit concerné. + */ + @XmlElement(name = "PreventInheritance", defaultValue = "false") + protected Boolean preventInheritance; - /** - * Gets the value of the preventInheritance property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isPreventInheritance() { - return preventInheritance; - } + /** L'identifiant de la règle spécifiée pourra être retirée de l'héritage dans ce noeud. */ + @XmlElement(name = "RefNonRuleId") + protected List refNonRuleId; - /** - * Sets the value of the preventInheritance property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPreventInheritance(Boolean value) { - this.preventInheritance = value; + /** + * Gets the value of the ruleAndStartDateAndHoldEndDate 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 ruleAndStartDateAndHoldEndDate property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link JAXBElement }{@code <}{@link + * RuleIdType }{@code >} {@link JAXBElement }{@code <}{@link Boolean }{@code >} {@link JAXBElement + * }{@code <}{@link String }{@code >} {@link JAXBElement }{@code <}{@link String }{@code >} {@link + * JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} {@link JAXBElement }{@code + * <}{@link XMLGregorianCalendar }{@code >} {@link JAXBElement }{@code <}{@link + * XMLGregorianCalendar }{@code >} + * + * @return The value of the ruleAndStartDateAndHoldEndDate property. + */ + public List> getRuleAndStartDateAndHoldEndDate() { + if (ruleAndStartDateAndHoldEndDate == null) { + ruleAndStartDateAndHoldEndDate = new ArrayList<>(); } + return this.ruleAndStartDateAndHoldEndDate; + } - /** - * Gets the value of the refNonRuleId 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the refNonRuleId property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link RuleIdType } - * - * - * @return - * The value of the refNonRuleId property. - */ - public List getRefNonRuleId() { - if (refNonRuleId == null) { - refNonRuleId = new ArrayList<>(); - } - return this.refNonRuleId; - } + /** + * Indique si les règles de gestion héritées des ArchiveUnit parents doivent être ignorées pour + * l’ArchiveUnit concerné. + * + * @return possible object is {@link Boolean } + */ + public Boolean isPreventInheritance() { + return preventInheritance; + } + + /** + * Sets the value of the preventInheritance property. + * + * @param value allowed object is {@link Boolean } + * @see #isPreventInheritance() + */ + public void setPreventInheritance(Boolean value) { + this.preventInheritance = value; + } + /** + * L'identifiant de la règle spécifiée pourra être retirée de l'héritage dans ce noeud. + * + *

Gets the value of the refNonRuleId 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 refNonRuleId property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType } + * + * @return The value of the refNonRuleId property. + */ + public List getRefNonRuleId() { + if (refNonRuleId == null) { + refNonRuleId = new ArrayList<>(); + } + return this.refNonRuleId; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/IdentifierType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/IdentifierType.java index 7496ac5..4e2da86 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/IdentifierType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/IdentifierType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -16,12 +15,11 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** - *

Java class for IdentifierType complex type. - * + * Java class for IdentifierType complex type. + * *

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

{@code
  * 
  *   
@@ -37,232 +35,188 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "IdentifierType", propOrder = { - "value" -}) +@XmlType( + name = "IdentifierType", + propOrder = {"value"}) public class IdentifierType { - @XmlValue - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String value; - @XmlAttribute(name = "schemeID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String schemeID; - @XmlAttribute(name = "schemeName") - protected String schemeName; - @XmlAttribute(name = "schemeAgencyID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String schemeAgencyID; - @XmlAttribute(name = "schemeAgencyName") - protected String schemeAgencyName; - @XmlAttribute(name = "schemeVersionID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String schemeVersionID; - @XmlAttribute(name = "schemeDataURI") - @XmlSchemaType(name = "anyURI") - protected String schemeDataURI; - @XmlAttribute(name = "schemeURI") - @XmlSchemaType(name = "anyURI") - protected String schemeURI; - - /** - * 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 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; - } - - /** - * Gets the value of the schemeAgencyID property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSchemeAgencyID() { - return schemeAgencyID; - } - - /** - * Sets the value of the schemeAgencyID property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSchemeAgencyID(String value) { - this.schemeAgencyID = value; - } - - /** - * Gets the value of the schemeAgencyName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSchemeAgencyName() { - return schemeAgencyName; - } - - /** - * Sets the value of the schemeAgencyName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSchemeAgencyName(String value) { - this.schemeAgencyName = value; - } - - /** - * Gets the value of the schemeVersionID property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSchemeVersionID() { - return schemeVersionID; - } - - /** - * Sets the value of the schemeVersionID property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSchemeVersionID(String value) { - this.schemeVersionID = value; - } - - /** - * Gets the value of the schemeDataURI property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSchemeDataURI() { - return schemeDataURI; - } - - /** - * Sets the value of the schemeDataURI property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSchemeDataURI(String value) { - this.schemeDataURI = value; - } - - /** - * Gets the value of the schemeURI property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSchemeURI() { - return schemeURI; - } - - /** - * Sets the value of the schemeURI property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSchemeURI(String value) { - this.schemeURI = value; - } - + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String value; + + @XmlAttribute(name = "schemeID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String schemeID; + + @XmlAttribute(name = "schemeName") + protected String schemeName; + + @XmlAttribute(name = "schemeAgencyID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String schemeAgencyID; + + @XmlAttribute(name = "schemeAgencyName") + protected String schemeAgencyName; + + @XmlAttribute(name = "schemeVersionID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String schemeVersionID; + + @XmlAttribute(name = "schemeDataURI") + @XmlSchemaType(name = "anyURI") + protected String schemeDataURI; + + @XmlAttribute(name = "schemeURI") + @XmlSchemaType(name = "anyURI") + protected String schemeURI; + + /** + * 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 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; + } + + /** + * Gets the value of the schemeAgencyID property. + * + * @return possible object is {@link String } + */ + public String getSchemeAgencyID() { + return schemeAgencyID; + } + + /** + * Sets the value of the schemeAgencyID property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeAgencyID(String value) { + this.schemeAgencyID = value; + } + + /** + * Gets the value of the schemeAgencyName property. + * + * @return possible object is {@link String } + */ + public String getSchemeAgencyName() { + return schemeAgencyName; + } + + /** + * Sets the value of the schemeAgencyName property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeAgencyName(String value) { + this.schemeAgencyName = value; + } + + /** + * Gets the value of the schemeVersionID property. + * + * @return possible object is {@link String } + */ + public String getSchemeVersionID() { + return schemeVersionID; + } + + /** + * Sets the value of the schemeVersionID property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeVersionID(String value) { + this.schemeVersionID = value; + } + + /** + * Gets the value of the schemeDataURI property. + * + * @return possible object is {@link String } + */ + public String getSchemeDataURI() { + return schemeDataURI; + } + + /** + * Sets the value of the schemeDataURI property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeDataURI(String value) { + this.schemeDataURI = value; + } + + /** + * Gets the value of the schemeURI property. + * + * @return possible object is {@link String } + */ + public String getSchemeURI() { + return schemeURI; + } + + /** + * Sets the value of the schemeURI property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeURI(String value) { + this.schemeURI = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ImageTechnicalMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ImageTechnicalMetadataType.java index 6d6b5eb..5e1db31 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ImageTechnicalMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ImageTechnicalMetadataType.java @@ -1,24 +1,22 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlType; - /** * Contient toutes les métadonnées techniques de base pour les objets-données de type image. - * + * *

Java class for ImageTechnicalMetadataType complex type. - * + * *

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

{@code
  * 
  *   
@@ -27,14 +25,7 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ImageTechnicalMetadataType") -public class ImageTechnicalMetadataType - extends OpenType -{ - - -} +public class ImageTechnicalMetadataType extends OpenType {} diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/KeyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/KeyType.java index dd8e869..856d832 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/KeyType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/KeyType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -16,12 +15,11 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** - *

Java class for KeyType complex type. - * + * Java class for KeyType complex type. + * *

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

{@code
  * 
  *   
@@ -31,72 +29,59 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "KeyType", propOrder = { - "value" -}) +@XmlType( + name = "KeyType", + propOrder = {"value"}) public class KeyType { - @XmlValue - protected CodeKeywordType value; - @XmlAttribute(name = "listVersionID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String listVersionID; + /** Table des types de mots-clés. */ + @XmlValue protected CodeKeywordType value; - /** - * Table des types de mots-clés. - * - * @return - * possible object is - * {@link CodeKeywordType } - * - */ - public CodeKeywordType getValue() { - return value; - } + @XmlAttribute(name = "listVersionID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String listVersionID; - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * {@link CodeKeywordType } - * - */ - public void setValue(CodeKeywordType value) { - this.value = value; - } + /** + * Table des types de mots-clés. + * + * @return possible object is {@link CodeKeywordType } + */ + public CodeKeywordType getValue() { + return value; + } - /** - * Gets the value of the listVersionID property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getListVersionID() { - if (listVersionID == null) { - return "edition 2009"; - } else { - return listVersionID; - } - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link CodeKeywordType } + * @see #getValue() + */ + public void setValue(CodeKeywordType value) { + this.value = value; + } - /** - * Sets the value of the listVersionID property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setListVersionID(String value) { - this.listVersionID = value; + /** + * Gets the value of the listVersionID property. + * + * @return possible object is {@link String } + */ + public String getListVersionID() { + if (listVersionID == null) { + return "edition 2009"; + } else { + return listVersionID; } + } + /** + * Sets the value of the listVersionID property. + * + * @param value allowed object is {@link String } + */ + public void setListVersionID(String value) { + this.listVersionID = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/KeywordsType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/KeywordsType.java index c381d83..0b281ef 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/KeywordsType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/KeywordsType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -17,14 +16,13 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** * Mots-clés. - * + * *

Java class for KeywordsType complex type. - * + * *

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

{@code
  * 
  *   
@@ -39,123 +37,107 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "KeywordsType", propOrder = { - "keywordContent", - "keywordReference", - "keywordType" -}) +@XmlType( + name = "KeywordsType", + propOrder = {"keywordContent", "keywordReference", "keywordType"}) public class KeywordsType { - @XmlElement(name = "KeywordContent", required = true) - protected TextType keywordContent; - @XmlElement(name = "KeywordReference") - protected IdentifierType keywordReference; - @XmlElement(name = "KeywordType") - protected KeyType keywordType; - @XmlAttribute(name = "id") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + /** Valeur du mot-clé. A utiliser avec Keyword. */ + @XmlElement(name = "KeywordContent", required = true) + protected TextType keywordContent; + + /** + * Identifiant du mot clé dans un référentiel donné. Par exemple, pour un lieu, il pourrait s'agir + * de son code officiel géographique selon l'INSEE. + */ + @XmlElement(name = "KeywordReference") + protected IdentifierType keywordReference; + + /** Type de mot clé. */ + @XmlElement(name = "KeywordType") + protected KeyType keywordType; - /** - * Gets the value of the keywordContent property. - * - * @return - * possible object is - * {@link TextType } - * - */ - public TextType getKeywordContent() { - return keywordContent; - } + @XmlAttribute(name = "id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Sets the value of the keywordContent property. - * - * @param value - * allowed object is - * {@link TextType } - * - */ - public void setKeywordContent(TextType value) { - this.keywordContent = value; - } + /** + * Valeur du mot-clé. A utiliser avec Keyword. + * + * @return possible object is {@link TextType } + */ + public TextType getKeywordContent() { + return keywordContent; + } - /** - * Gets the value of the keywordReference property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getKeywordReference() { - return keywordReference; - } + /** + * Sets the value of the keywordContent property. + * + * @param value allowed object is {@link TextType } + * @see #getKeywordContent() + */ + public void setKeywordContent(TextType value) { + this.keywordContent = value; + } - /** - * Sets the value of the keywordReference property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setKeywordReference(IdentifierType value) { - this.keywordReference = value; - } + /** + * Identifiant du mot clé dans un référentiel donné. Par exemple, pour un lieu, il pourrait s'agir + * de son code officiel géographique selon l'INSEE. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getKeywordReference() { + return keywordReference; + } - /** - * Gets the value of the keywordType property. - * - * @return - * possible object is - * {@link KeyType } - * - */ - public KeyType getKeywordType() { - return keywordType; - } + /** + * Sets the value of the keywordReference property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getKeywordReference() + */ + public void setKeywordReference(IdentifierType value) { + this.keywordReference = value; + } - /** - * Sets the value of the keywordType property. - * - * @param value - * allowed object is - * {@link KeyType } - * - */ - public void setKeywordType(KeyType value) { - this.keywordType = value; - } + /** + * Type de mot clé. + * + * @return possible object is {@link KeyType } + */ + public KeyType getKeywordType() { + return keywordType; + } - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } + /** + * Sets the value of the keywordType property. + * + * @param value allowed object is {@link KeyType } + * @see #getKeywordType() + */ + public void setKeywordType(KeyType value) { + this.keywordType = value; + } - /** - * 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 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/fr/gouv/culture/archivesdefrance/seda/v2/LegalStatusType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LegalStatusType.java index 5dc160c..3b2ab63 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LegalStatusType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LegalStatusType.java @@ -1,21 +1,22 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlEnum; import jakarta.xml.bind.annotation.XmlEnumValue; import jakarta.xml.bind.annotation.XmlType; - /** + * Valeurs de LegalStatus. + * *

Java class for LegalStatusType. - * + * *

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

{@code
  * 
  *   
@@ -25,35 +26,44 @@
  *   
  * 
  * }
- * */ @XmlType(name = "LegalStatusType") @XmlEnum public enum LegalStatusType { + @XmlEnumValue("Public Archive") + PUBLIC_ARCHIVE("Public Archive"), + @XmlEnumValue("Private Archive") + PRIVATE_ARCHIVE("Private Archive"), + @XmlEnumValue("Public and Private Archive") + PUBLIC_AND_PRIVATE_ARCHIVE("Public and Private Archive"); + private final String value; - @XmlEnumValue("Public Archive") - PUBLIC_ARCHIVE("Public Archive"), - @XmlEnumValue("Private Archive") - PRIVATE_ARCHIVE("Private Archive"), - @XmlEnumValue("Public and Private Archive") - PUBLIC_AND_PRIVATE_ARCHIVE("Public and Private Archive"); - private final String value; - - LegalStatusType(String v) { - value = v; - } + LegalStatusType(String v) { + value = v; + } - public String value() { - return value; - } + /** + * Gets the value associated to the enum constant. + * + * @return The value linked to the enum. + */ + public String value() { + return value; + } - public static LegalStatusType fromValue(String v) { - for (LegalStatusType c: LegalStatusType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** + * Gets the enum associated to the value passed as parameter. + * + * @param v The value to get the enum from. + * @return The enum which corresponds to the value, if it exists. + * @throws IllegalArgumentException If no value matches in the enum declaration. + */ + public static LegalStatusType fromValue(String v) { + for (LegalStatusType c : LegalStatusType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LevelType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LevelType.java index bfd9269..93f43b7 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LevelType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LevelType.java @@ -1,21 +1,22 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlEnum; import jakarta.xml.bind.annotation.XmlEnumValue; import jakarta.xml.bind.annotation.XmlType; - /** + * Références : descriptionlevel_code SEDA 1.0 + * *

Java class for LevelType. - * + * *

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

{@code
  * 
  *   
@@ -33,51 +34,60 @@
  *   
  * 
  * }
- * */ @XmlType(name = "LevelType") @XmlEnum public enum LevelType { + @XmlEnumValue("Fonds") + FONDS("Fonds"), + @XmlEnumValue("Subfonds") + SUBFONDS("Subfonds"), + @XmlEnumValue("Class") + CLASS("Class"), + @XmlEnumValue("Collection") + COLLECTION("Collection"), + @XmlEnumValue("Series") + SERIES("Series"), + @XmlEnumValue("Subseries") + SUBSERIES("Subseries"), + @XmlEnumValue("RecordGrp") + RECORD_GRP("RecordGrp"), + @XmlEnumValue("SubGrp") + SUB_GRP("SubGrp"), + @XmlEnumValue("File") + FILE("File"), + @XmlEnumValue("Item") + ITEM("Item"), + @XmlEnumValue("OtherLevel") + OTHER_LEVEL("OtherLevel"); + private final String value; - @XmlEnumValue("Fonds") - FONDS("Fonds"), - @XmlEnumValue("Subfonds") - SUBFONDS("Subfonds"), - @XmlEnumValue("Class") - CLASS("Class"), - @XmlEnumValue("Collection") - COLLECTION("Collection"), - @XmlEnumValue("Series") - SERIES("Series"), - @XmlEnumValue("Subseries") - SUBSERIES("Subseries"), - @XmlEnumValue("RecordGrp") - RECORD_GRP("RecordGrp"), - @XmlEnumValue("SubGrp") - SUB_GRP("SubGrp"), - @XmlEnumValue("File") - FILE("File"), - @XmlEnumValue("Item") - ITEM("Item"), - @XmlEnumValue("OtherLevel") - OTHER_LEVEL("OtherLevel"); - private final String value; - - LevelType(String v) { - value = v; - } + LevelType(String v) { + value = v; + } - public String value() { - return value; - } + /** + * Gets the value associated to the enum constant. + * + * @return The value linked to the enum. + */ + public String value() { + return value; + } - public static LevelType fromValue(String v) { - for (LevelType c: LevelType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** + * Gets the enum associated to the value passed as parameter. + * + * @param v The value to get the enum from. + * @return The enum which corresponds to the value, if it exists. + * @throws IllegalArgumentException If no value matches in the enum declaration. + */ + public static LevelType fromValue(String v) { + for (LevelType c : LevelType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LinkingAgentIdentifierType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LinkingAgentIdentifierType.java index b1d5ded..a7dd2a0 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LinkingAgentIdentifierType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LinkingAgentIdentifierType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -15,12 +14,11 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** - *

Java class for LinkingAgentIdentifierType complex type. - * + * Java class for LinkingAgentIdentifierType complex type. + * *

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

{@code
  * 
  *   
@@ -34,100 +32,85 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "LinkingAgentIdentifierType", propOrder = { - "linkingAgentIdentifierType", - "linkingAgentIdentifierValue", - "linkingAgentRole" -}) +@XmlType( + name = "LinkingAgentIdentifierType", + propOrder = {"linkingAgentIdentifierType", "linkingAgentIdentifierValue", "linkingAgentRole"}) public class LinkingAgentIdentifierType { - @XmlElement(name = "LinkingAgentIdentifierType") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String linkingAgentIdentifierType; - @XmlElement(name = "LinkingAgentIdentifierValue") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String linkingAgentIdentifierValue; - @XmlElement(name = "LinkingAgentRole") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String linkingAgentRole; + /** Identifiant d'un agent répertorié dans des évènements. */ + @XmlElement(name = "LinkingAgentIdentifierType") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String linkingAgentIdentifierType; + + /** Mention d'un agent répertorié dans des évènements. */ + @XmlElement(name = "LinkingAgentIdentifierValue") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String linkingAgentIdentifierValue; - /** - * Gets the value of the linkingAgentIdentifierType property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getLinkingAgentIdentifierType() { - return linkingAgentIdentifierType; - } + /** Fonction d'un agent répertorié dans des évènements. */ + @XmlElement(name = "LinkingAgentRole") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String linkingAgentRole; - /** - * Sets the value of the linkingAgentIdentifierType property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLinkingAgentIdentifierType(String value) { - this.linkingAgentIdentifierType = value; - } + /** + * Identifiant d'un agent répertorié dans des évènements. + * + * @return possible object is {@link String } + */ + public String getLinkingAgentIdentifierType() { + return linkingAgentIdentifierType; + } - /** - * Gets the value of the linkingAgentIdentifierValue property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getLinkingAgentIdentifierValue() { - return linkingAgentIdentifierValue; - } + /** + * Sets the value of the linkingAgentIdentifierType property. + * + * @param value allowed object is {@link String } + * @see #getLinkingAgentIdentifierType() + */ + public void setLinkingAgentIdentifierType(String value) { + this.linkingAgentIdentifierType = value; + } - /** - * Sets the value of the linkingAgentIdentifierValue property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLinkingAgentIdentifierValue(String value) { - this.linkingAgentIdentifierValue = value; - } + /** + * Mention d'un agent répertorié dans des évènements. + * + * @return possible object is {@link String } + */ + public String getLinkingAgentIdentifierValue() { + return linkingAgentIdentifierValue; + } - /** - * Gets the value of the linkingAgentRole property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getLinkingAgentRole() { - return linkingAgentRole; - } + /** + * Sets the value of the linkingAgentIdentifierValue property. + * + * @param value allowed object is {@link String } + * @see #getLinkingAgentIdentifierValue() + */ + public void setLinkingAgentIdentifierValue(String value) { + this.linkingAgentIdentifierValue = value; + } - /** - * Sets the value of the linkingAgentRole property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLinkingAgentRole(String value) { - this.linkingAgentRole = value; - } + /** + * Fonction d'un agent répertorié dans des évènements. + * + * @return possible object is {@link String } + */ + public String getLinkingAgentRole() { + return linkingAgentRole; + } + /** + * Sets the value of the linkingAgentRole property. + * + * @param value allowed object is {@link String } + * @see #getLinkingAgentRole() + */ + public void setLinkingAgentRole(String value) { + this.linkingAgentRole = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LogBookOgType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LogBookOgType.java index 4769bb6..2f03247 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LogBookOgType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LogBookOgType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for LogBookOgType complex type. - * + * Java class for LogBookOgType complex type. + * *

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

{@code
  * 
  *   
@@ -31,47 +29,37 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "LogBookOgType", propOrder = { - "event" -}) +@XmlType( + name = "LogBookOgType", + propOrder = {"event"}) public class LogBookOgType { - @XmlElement(name = "Event") - protected List event; + @XmlElement(name = "Event") + protected List event; - /** - * Gets the value of the event 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the event property. - * - *

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

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

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

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

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

Objects of the following type(s) are allowed in the list {@link EventLogBookOgType } + * + * @return The value of the event property. + */ + public List getEvent() { + if (event == null) { + event = new ArrayList<>(); } - + return this.event; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LogBookType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LogBookType.java index 614ef52..7382390 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LogBookType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/LogBookType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for LogBookType complex type. - * + * Java class for LogBookType complex type. + * *

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

{@code
  * 
  *   
@@ -31,47 +29,37 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "LogBookType", propOrder = { - "event" -}) +@XmlType( + name = "LogBookType", + propOrder = {"event"}) public class LogBookType { - @XmlElement(name = "Event", required = true) - protected List event; + @XmlElement(name = "Event", required = true) + protected List event; - /** - * Gets the value of the event 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the event property. - * - *

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

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

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

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

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

Objects of the following type(s) are allowed in the list {@link EventType } + * + * @return The value of the event property. + */ + public List getEvent() { + if (event == null) { + event = new ArrayList<>(); } - + return this.event; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementHistoryDataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementHistoryDataType.java index 31dd920..fc96860 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementHistoryDataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementHistoryDataType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -12,15 +11,13 @@ import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - /** * Référence à un objet-données ou à un groupe d'objets-données existant. - * - * + * *

Java class for ManagementHistoryDataType complex type. - * + * *

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

{@code
  * 
  *   
@@ -33,67 +30,56 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ManagementHistoryDataType", propOrder = { - "version", - "management" -}) +@XmlType( + name = "ManagementHistoryDataType", + propOrder = {"version", "management"}) public class ManagementHistoryDataType { - @XmlElement(name = "Version", required = true) - protected String version; - @XmlElement(name = "Management") - protected ManagementType management; + /** Version d'historisation */ + @XmlElement(name = "Version", required = true) + protected String version; - /** - * Gets the value of the version property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getVersion() { - return version; - } + /** Métadonnées de gestion historisées (08/2018 : seulement, ClassificationRule). */ + @XmlElement(name = "Management") + protected ManagementType management; - /** - * Sets the value of the version property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setVersion(String value) { - this.version = value; - } + /** + * Version d'historisation + * + * @return possible object is {@link String } + */ + public String getVersion() { + return version; + } - /** - * Gets the value of the management property. - * - * @return - * possible object is - * {@link ManagementType } - * - */ - public ManagementType getManagement() { - return management; - } + /** + * Sets the value of the version property. + * + * @param value allowed object is {@link String } + * @see #getVersion() + */ + public void setVersion(String value) { + this.version = value; + } - /** - * Sets the value of the management property. - * - * @param value - * allowed object is - * {@link ManagementType } - * - */ - public void setManagement(ManagementType value) { - this.management = value; - } + /** + * Métadonnées de gestion historisées (08/2018 : seulement, ClassificationRule). + * + * @return possible object is {@link ManagementType } + */ + public ManagementType getManagement() { + return management; + } + /** + * Sets the value of the management property. + * + * @param value allowed object is {@link ManagementType } + * @see #getManagement() + */ + public void setManagement(ManagementType value) { + this.management = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementHistoryType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementHistoryType.java index 5b0c3b8..c493186 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementHistoryType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementHistoryType.java @@ -1,28 +1,25 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlSchemaType; import jakarta.xml.bind.annotation.XmlType; - +import javax.xml.datatype.XMLGregorianCalendar; /** * Référence à un objet-données ou à un groupe d'objets-données existant. - * - * + * *

Java class for ManagementHistoryType complex type. - * + * *

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

{@code
  * 
  *   
@@ -35,68 +32,57 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ManagementHistoryType", propOrder = { - "updateDate", - "data" -}) +@XmlType( + name = "ManagementHistoryType", + propOrder = {"updateDate", "data"}) public class ManagementHistoryType { - @XmlElement(name = "UpdateDate", required = true) - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar updateDate; - @XmlElement(name = "Data", required = true) - protected ManagementHistoryDataType data; + /** Date d'historisation. */ + @XmlElement(name = "UpdateDate", required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar updateDate; - /** - * Gets the value of the updateDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getUpdateDate() { - return updateDate; - } + /** Data */ + @XmlElement(name = "Data", required = true) + protected ManagementHistoryDataType data; - /** - * Sets the value of the updateDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setUpdateDate(XMLGregorianCalendar value) { - this.updateDate = value; - } + /** + * Date d'historisation. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getUpdateDate() { + return updateDate; + } - /** - * Gets the value of the data property. - * - * @return - * possible object is - * {@link ManagementHistoryDataType } - * - */ - public ManagementHistoryDataType getData() { - return data; - } + /** + * Sets the value of the updateDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getUpdateDate() + */ + public void setUpdateDate(XMLGregorianCalendar value) { + this.updateDate = value; + } - /** - * Sets the value of the data property. - * - * @param value - * allowed object is - * {@link ManagementHistoryDataType } - * - */ - public void setData(ManagementHistoryDataType value) { - this.data = value; - } + /** + * Data + * + * @return possible object is {@link ManagementHistoryDataType } + */ + public ManagementHistoryDataType getData() { + return data; + } + /** + * Sets the value of the data property. + * + * @param value allowed object is {@link ManagementHistoryDataType } + * @see #getData() + */ + public void setData(ManagementHistoryDataType value) { + this.data = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementMetadataType.java index b03e3fe..947696e 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementMetadataType.java @@ -1,14 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAnyElement; @@ -19,14 +16,15 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.util.ArrayList; +import java.util.List; import org.w3c.dom.Element; - /** - *

Java class for ManagementMetadataType complex type. - * + * Java class for ManagementMetadataType complex type. + * *

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

{@code
  * 
  *   
@@ -45,512 +43,486 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ManagementMetadataType", propOrder = { - "archivalProfile", - "serviceLevel", - "acquisitionInformation", - "legalStatus", - "originatingAgencyIdentifier", - "submissionAgencyIdentifier", - "storageRule", - "appraisalRule", - "accessRule", - "disseminationRule", - "reuseRule", - "classificationRule", - "logBook", - "needAuthorization", - "holdRule", - "updateOperation", - "any" -}) +@XmlType( + name = "ManagementMetadataType", + propOrder = { + "archivalProfile", + "serviceLevel", + "acquisitionInformation", + "legalStatus", + "originatingAgencyIdentifier", + "submissionAgencyIdentifier", + "storageRule", + "appraisalRule", + "accessRule", + "disseminationRule", + "reuseRule", + "classificationRule", + "logBook", + "needAuthorization", + "holdRule", + "updateOperation", + "any" + }) public class ManagementMetadataType { - @XmlElement(name = "ArchivalProfile") - protected IdentifierType archivalProfile; - @XmlElement(name = "ServiceLevel") - protected IdentifierType serviceLevel; - @XmlElement(name = "AcquisitionInformation") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String acquisitionInformation; - @XmlElement(name = "LegalStatus") - @XmlSchemaType(name = "token") - protected LegalStatusType legalStatus; - @XmlElement(name = "OriginatingAgencyIdentifier") - protected IdentifierType originatingAgencyIdentifier; - @XmlElement(name = "SubmissionAgencyIdentifier") - protected IdentifierType submissionAgencyIdentifier; - @XmlElement(name = "StorageRule") - protected StorageRuleType storageRule; - @XmlElement(name = "AppraisalRule") - protected AppraisalRuleType appraisalRule; - @XmlElement(name = "AccessRule") - protected AccessRuleType accessRule; - @XmlElement(name = "DisseminationRule") - protected DisseminationRuleType disseminationRule; - @XmlElement(name = "ReuseRule") - protected ReuseRuleType reuseRule; - @XmlElement(name = "ClassificationRule") - protected ClassificationRuleType classificationRule; - @XmlElement(name = "LogBook") - protected LogBookType logBook; - @XmlElement(name = "NeedAuthorization") - protected Boolean needAuthorization; - @XmlElement(name = "HoldRule") - protected HoldRuleType holdRule; - @XmlElement(name = "UpdateOperation") - protected UpdateOperationType updateOperation; - @XmlAnyElement(lax = true) - protected List any; - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - - /** - * Gets the value of the archivalProfile property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getArchivalProfile() { - return archivalProfile; - } - - /** - * Sets the value of the archivalProfile property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setArchivalProfile(IdentifierType value) { - this.archivalProfile = value; - } - - /** - * Gets the value of the serviceLevel property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getServiceLevel() { - return serviceLevel; - } - - /** - * Sets the value of the serviceLevel property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setServiceLevel(IdentifierType value) { - this.serviceLevel = value; - } - - /** - * Gets the value of the acquisitionInformation property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAcquisitionInformation() { - return acquisitionInformation; - } - - /** - * Sets the value of the acquisitionInformation property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAcquisitionInformation(String value) { - this.acquisitionInformation = value; - } - - /** - * Gets the value of the legalStatus property. - * - * @return - * possible object is - * {@link LegalStatusType } - * - */ - public LegalStatusType getLegalStatus() { - return legalStatus; - } - - /** - * Sets the value of the legalStatus property. - * - * @param value - * allowed object is - * {@link LegalStatusType } - * - */ - public void setLegalStatus(LegalStatusType value) { - this.legalStatus = value; - } - - /** - * Gets the value of the originatingAgencyIdentifier property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getOriginatingAgencyIdentifier() { - return originatingAgencyIdentifier; - } - - /** - * Sets the value of the originatingAgencyIdentifier property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setOriginatingAgencyIdentifier(IdentifierType value) { - this.originatingAgencyIdentifier = value; - } - - /** - * Gets the value of the submissionAgencyIdentifier property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getSubmissionAgencyIdentifier() { - return submissionAgencyIdentifier; - } - - /** - * Sets the value of the submissionAgencyIdentifier property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setSubmissionAgencyIdentifier(IdentifierType value) { - this.submissionAgencyIdentifier = value; - } - - /** - * Gets the value of the storageRule property. - * - * @return - * possible object is - * {@link StorageRuleType } - * - */ - public StorageRuleType getStorageRule() { - return storageRule; - } - - /** - * Sets the value of the storageRule property. - * - * @param value - * allowed object is - * {@link StorageRuleType } - * - */ - public void setStorageRule(StorageRuleType value) { - this.storageRule = value; - } - - /** - * Gets the value of the appraisalRule property. - * - * @return - * possible object is - * {@link AppraisalRuleType } - * - */ - public AppraisalRuleType getAppraisalRule() { - return appraisalRule; - } - - /** - * Sets the value of the appraisalRule property. - * - * @param value - * allowed object is - * {@link AppraisalRuleType } - * - */ - public void setAppraisalRule(AppraisalRuleType value) { - this.appraisalRule = value; - } - - /** - * Gets the value of the accessRule property. - * - * @return - * possible object is - * {@link AccessRuleType } - * - */ - public AccessRuleType getAccessRule() { - return accessRule; - } - - /** - * Sets the value of the accessRule property. - * - * @param value - * allowed object is - * {@link AccessRuleType } - * - */ - public void setAccessRule(AccessRuleType value) { - this.accessRule = value; - } - - /** - * Gets the value of the disseminationRule property. - * - * @return - * possible object is - * {@link DisseminationRuleType } - * - */ - public DisseminationRuleType getDisseminationRule() { - return disseminationRule; - } - - /** - * Sets the value of the disseminationRule property. - * - * @param value - * allowed object is - * {@link DisseminationRuleType } - * - */ - public void setDisseminationRule(DisseminationRuleType value) { - this.disseminationRule = value; - } - - /** - * Gets the value of the reuseRule property. - * - * @return - * possible object is - * {@link ReuseRuleType } - * - */ - public ReuseRuleType getReuseRule() { - return reuseRule; - } - - /** - * Sets the value of the reuseRule property. - * - * @param value - * allowed object is - * {@link ReuseRuleType } - * - */ - public void setReuseRule(ReuseRuleType value) { - this.reuseRule = value; - } - - /** - * Gets the value of the classificationRule property. - * - * @return - * possible object is - * {@link ClassificationRuleType } - * - */ - public ClassificationRuleType getClassificationRule() { - return classificationRule; - } - - /** - * Sets the value of the classificationRule property. - * - * @param value - * allowed object is - * {@link ClassificationRuleType } - * - */ - public void setClassificationRule(ClassificationRuleType value) { - this.classificationRule = value; - } - - /** - * Gets the value of the logBook property. - * - * @return - * possible object is - * {@link LogBookType } - * - */ - public LogBookType getLogBook() { - return logBook; - } - - /** - * Sets the value of the logBook property. - * - * @param value - * allowed object is - * {@link LogBookType } - * - */ - public void setLogBook(LogBookType value) { - this.logBook = value; - } - - /** - * Gets the value of the needAuthorization property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isNeedAuthorization() { - return needAuthorization; - } - - /** - * Sets the value of the needAuthorization property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setNeedAuthorization(Boolean value) { - this.needAuthorization = value; - } - - /** - * Gets the value of the holdRule property. - * - * @return - * possible object is - * {@link HoldRuleType } - * - */ - public HoldRuleType getHoldRule() { - return holdRule; - } - - /** - * Sets the value of the holdRule property. - * - * @param value - * allowed object is - * {@link HoldRuleType } - * - */ - public void setHoldRule(HoldRuleType value) { - this.holdRule = value; - } - - /** - * Gets the value of the updateOperation property. - * - * @return - * possible object is - * {@link UpdateOperationType } - * - */ - public UpdateOperationType getUpdateOperation() { - return updateOperation; - } - - /** - * Sets the value of the updateOperation property. - * - * @param value - * allowed object is - * {@link UpdateOperationType } - * - */ - public void setUpdateOperation(UpdateOperationType value) { - this.updateOperation = value; - } - - /** - * Gets the value of the any 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the any property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link Object } - * {@link Element } - * - * - * @return - * The value of the any property. - */ - public List getAny() { - if (any == null) { - any = new ArrayList<>(); - } - return this.any; - } - - /** - * 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; - } - + /** Profil d’archivage applicable aux ArchiveUnit. */ + @XmlElement(name = "ArchivalProfile") + protected IdentifierType archivalProfile; + + /** Niveau de service applicable aux unités d’archives. */ + @XmlElement(name = "ServiceLevel") + protected IdentifierType serviceLevel; + + /** Modalités d'entrée des archives. */ + @XmlElement(name = "AcquisitionInformation") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String acquisitionInformation; + + /** Statut des archives échangées. */ + @XmlElement(name = "LegalStatus") + @XmlSchemaType(name = "token") + protected LegalStatusType legalStatus; + + /** + * Identifiant du service producteur - information de gestion à ne pas confondre avec + * OriginatingAgency dans les métadonnées de description. + */ + @XmlElement(name = "OriginatingAgencyIdentifier") + protected IdentifierType originatingAgencyIdentifier; + + /** + * Identifiant du service versant - information de gestion à ne pas confondre avec + * SubmissionAgency dans les métadonnées de description. + */ + @XmlElement(name = "SubmissionAgencyIdentifier") + protected IdentifierType submissionAgencyIdentifier; + + /** Gestion de la durée d’utilité courante. */ + @XmlElement(name = "StorageRule") + protected StorageRuleType storageRule; + + /** Gestion de la durée d’utilité administrative. */ + @XmlElement(name = "AppraisalRule") + protected AppraisalRuleType appraisalRule; + + /** Gestion de la communicabilité. */ + @XmlElement(name = "AccessRule") + protected AccessRuleType accessRule; + + /** Gestion de la diffusion. */ + @XmlElement(name = "DisseminationRule") + protected DisseminationRuleType disseminationRule; + + /** Gestion de la réutilisation. */ + @XmlElement(name = "ReuseRule") + protected ReuseRuleType reuseRule; + + /** Gestion de la classification. */ + @XmlElement(name = "ClassificationRule") + protected ClassificationRuleType classificationRule; + + /** Gestion des traces. */ + @XmlElement(name = "LogBook") + protected LogBookType logBook; + + /** + * Indique si une autorisation humaine est nécessaire pour vérifier ou valider les opérations de + * gestion des ArchiveUnit. + */ + @XmlElement(name = "NeedAuthorization") + protected Boolean needAuthorization; + + /** Gestion de la durée de gel des ArchiveUnits. */ + @XmlElement(name = "HoldRule") + protected HoldRuleType holdRule; + + /** Gestion des opérations sur un ArchiveUnit. */ + @XmlElement(name = "UpdateOperation") + protected UpdateOperationType updateOperation; + + @XmlAnyElement(lax = true) + protected List any; + + /** + * + * + *
+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>id (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        should be interpreted as if declared to be of type ID.
+   *        This name is reserved by virtue of its definition in the
+   *        xml:id specification.</p><p>
+   *       See <a href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+   *       for information about this attribute.</p></div>
+   * 
+ */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Profil d’archivage applicable aux ArchiveUnit. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getArchivalProfile() { + return archivalProfile; + } + + /** + * Sets the value of the archivalProfile property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getArchivalProfile() + */ + public void setArchivalProfile(IdentifierType value) { + this.archivalProfile = value; + } + + /** + * Niveau de service applicable aux unités d’archives. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getServiceLevel() { + return serviceLevel; + } + + /** + * Sets the value of the serviceLevel property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getServiceLevel() + */ + public void setServiceLevel(IdentifierType value) { + this.serviceLevel = value; + } + + /** + * Modalités d'entrée des archives. + * + * @return possible object is {@link String } + */ + public String getAcquisitionInformation() { + return acquisitionInformation; + } + + /** + * Sets the value of the acquisitionInformation property. + * + * @param value allowed object is {@link String } + * @see #getAcquisitionInformation() + */ + public void setAcquisitionInformation(String value) { + this.acquisitionInformation = value; + } + + /** + * Statut des archives échangées. + * + * @return possible object is {@link LegalStatusType } + */ + public LegalStatusType getLegalStatus() { + return legalStatus; + } + + /** + * Sets the value of the legalStatus property. + * + * @param value allowed object is {@link LegalStatusType } + * @see #getLegalStatus() + */ + public void setLegalStatus(LegalStatusType value) { + this.legalStatus = value; + } + + /** + * Identifiant du service producteur - information de gestion à ne pas confondre avec + * OriginatingAgency dans les métadonnées de description. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getOriginatingAgencyIdentifier() { + return originatingAgencyIdentifier; + } + + /** + * Sets the value of the originatingAgencyIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getOriginatingAgencyIdentifier() + */ + public void setOriginatingAgencyIdentifier(IdentifierType value) { + this.originatingAgencyIdentifier = value; + } + + /** + * Identifiant du service versant - information de gestion à ne pas confondre avec + * SubmissionAgency dans les métadonnées de description. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getSubmissionAgencyIdentifier() { + return submissionAgencyIdentifier; + } + + /** + * Sets the value of the submissionAgencyIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getSubmissionAgencyIdentifier() + */ + public void setSubmissionAgencyIdentifier(IdentifierType value) { + this.submissionAgencyIdentifier = value; + } + + /** + * Gestion de la durée d’utilité courante. + * + * @return possible object is {@link StorageRuleType } + */ + public StorageRuleType getStorageRule() { + return storageRule; + } + + /** + * Sets the value of the storageRule property. + * + * @param value allowed object is {@link StorageRuleType } + * @see #getStorageRule() + */ + public void setStorageRule(StorageRuleType value) { + this.storageRule = value; + } + + /** + * Gestion de la durée d’utilité administrative. + * + * @return possible object is {@link AppraisalRuleType } + */ + public AppraisalRuleType getAppraisalRule() { + return appraisalRule; + } + + /** + * Sets the value of the appraisalRule property. + * + * @param value allowed object is {@link AppraisalRuleType } + * @see #getAppraisalRule() + */ + public void setAppraisalRule(AppraisalRuleType value) { + this.appraisalRule = value; + } + + /** + * Gestion de la communicabilité. + * + * @return possible object is {@link AccessRuleType } + */ + public AccessRuleType getAccessRule() { + return accessRule; + } + + /** + * Sets the value of the accessRule property. + * + * @param value allowed object is {@link AccessRuleType } + * @see #getAccessRule() + */ + public void setAccessRule(AccessRuleType value) { + this.accessRule = value; + } + + /** + * Gestion de la diffusion. + * + * @return possible object is {@link DisseminationRuleType } + */ + public DisseminationRuleType getDisseminationRule() { + return disseminationRule; + } + + /** + * Sets the value of the disseminationRule property. + * + * @param value allowed object is {@link DisseminationRuleType } + * @see #getDisseminationRule() + */ + public void setDisseminationRule(DisseminationRuleType value) { + this.disseminationRule = value; + } + + /** + * Gestion de la réutilisation. + * + * @return possible object is {@link ReuseRuleType } + */ + public ReuseRuleType getReuseRule() { + return reuseRule; + } + + /** + * Sets the value of the reuseRule property. + * + * @param value allowed object is {@link ReuseRuleType } + * @see #getReuseRule() + */ + public void setReuseRule(ReuseRuleType value) { + this.reuseRule = value; + } + + /** + * Gestion de la classification. + * + * @return possible object is {@link ClassificationRuleType } + */ + public ClassificationRuleType getClassificationRule() { + return classificationRule; + } + + /** + * Sets the value of the classificationRule property. + * + * @param value allowed object is {@link ClassificationRuleType } + * @see #getClassificationRule() + */ + public void setClassificationRule(ClassificationRuleType value) { + this.classificationRule = value; + } + + /** + * Gestion des traces. + * + * @return possible object is {@link LogBookType } + */ + public LogBookType getLogBook() { + return logBook; + } + + /** + * Sets the value of the logBook property. + * + * @param value allowed object is {@link LogBookType } + * @see #getLogBook() + */ + public void setLogBook(LogBookType value) { + this.logBook = value; + } + + /** + * Indique si une autorisation humaine est nécessaire pour vérifier ou valider les opérations de + * gestion des ArchiveUnit. + * + * @return possible object is {@link Boolean } + */ + public Boolean isNeedAuthorization() { + return needAuthorization; + } + + /** + * Sets the value of the needAuthorization property. + * + * @param value allowed object is {@link Boolean } + * @see #isNeedAuthorization() + */ + public void setNeedAuthorization(Boolean value) { + this.needAuthorization = value; + } + + /** + * Gestion de la durée de gel des ArchiveUnits. + * + * @return possible object is {@link HoldRuleType } + */ + public HoldRuleType getHoldRule() { + return holdRule; + } + + /** + * Sets the value of the holdRule property. + * + * @param value allowed object is {@link HoldRuleType } + * @see #getHoldRule() + */ + public void setHoldRule(HoldRuleType value) { + this.holdRule = value; + } + + /** + * Gestion des opérations sur un ArchiveUnit. + * + * @return possible object is {@link UpdateOperationType } + */ + public UpdateOperationType getUpdateOperation() { + return updateOperation; + } + + /** + * Sets the value of the updateOperation property. + * + * @param value allowed object is {@link UpdateOperationType } + * @see #getUpdateOperation() + */ + public void setUpdateOperation(UpdateOperationType value) { + this.updateOperation = value; + } + + /** + * Gets the value of the any 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 any property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link Object } {@link Element } + * + * @return The value of the any property. + */ + public List getAny() { + if (any == null) { + any = new ArrayList<>(); + } + return this.any; + } + + /** + * + * + *
+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>id (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        should be interpreted as if declared to be of type ID.
+   *        This name is reserved by virtue of its definition in the
+   *        xml:id specification.</p><p>
+   *       See <a href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+   *       for information about this attribute.</p></div>
+   * 
+ * + * @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 } + * @see #getId() + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementType.java index 283d169..3d84ad2 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ManagementType.java @@ -1,27 +1,25 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAnyElement; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; import org.w3c.dom.Element; - /** - *

Java class for ManagementType complex type. - * + * Java class for ManagementType complex type. + * *

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

{@code
  * 
  *   
@@ -31,318 +29,283 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ManagementType", propOrder = { - "storageRule", - "appraisalRule", - "accessRule", - "disseminationRule", - "reuseRule", - "classificationRule", - "logBook", - "needAuthorization", - "holdRule", - "updateOperation", - "any" -}) +@XmlType( + name = "ManagementType", + propOrder = { + "storageRule", + "appraisalRule", + "accessRule", + "disseminationRule", + "reuseRule", + "classificationRule", + "logBook", + "needAuthorization", + "holdRule", + "updateOperation", + "any" + }) public class ManagementType { - @XmlElement(name = "StorageRule") - protected StorageRuleType storageRule; - @XmlElement(name = "AppraisalRule") - protected AppraisalRuleType appraisalRule; - @XmlElement(name = "AccessRule") - protected AccessRuleType accessRule; - @XmlElement(name = "DisseminationRule") - protected DisseminationRuleType disseminationRule; - @XmlElement(name = "ReuseRule") - protected ReuseRuleType reuseRule; - @XmlElement(name = "ClassificationRule") - protected ClassificationRuleType classificationRule; - @XmlElement(name = "LogBook") - protected LogBookType logBook; - @XmlElement(name = "NeedAuthorization") - protected Boolean needAuthorization; - @XmlElement(name = "HoldRule") - protected HoldRuleType holdRule; - @XmlElement(name = "UpdateOperation") - protected UpdateOperationType updateOperation; - @XmlAnyElement(lax = true) - protected List any; - - /** - * Gets the value of the storageRule property. - * - * @return - * possible object is - * {@link StorageRuleType } - * - */ - public StorageRuleType getStorageRule() { - return storageRule; - } + /** Gestion de la durée d’utilité courante. */ + @XmlElement(name = "StorageRule") + protected StorageRuleType storageRule; - /** - * Sets the value of the storageRule property. - * - * @param value - * allowed object is - * {@link StorageRuleType } - * - */ - public void setStorageRule(StorageRuleType value) { - this.storageRule = value; - } + /** Gestion de la durée d’utilité administrative. */ + @XmlElement(name = "AppraisalRule") + protected AppraisalRuleType appraisalRule; - /** - * Gets the value of the appraisalRule property. - * - * @return - * possible object is - * {@link AppraisalRuleType } - * - */ - public AppraisalRuleType getAppraisalRule() { - return appraisalRule; - } + /** Gestion de la communicabilité. */ + @XmlElement(name = "AccessRule") + protected AccessRuleType accessRule; - /** - * Sets the value of the appraisalRule property. - * - * @param value - * allowed object is - * {@link AppraisalRuleType } - * - */ - public void setAppraisalRule(AppraisalRuleType value) { - this.appraisalRule = value; - } + /** Gestion de la diffusion. */ + @XmlElement(name = "DisseminationRule") + protected DisseminationRuleType disseminationRule; - /** - * Gets the value of the accessRule property. - * - * @return - * possible object is - * {@link AccessRuleType } - * - */ - public AccessRuleType getAccessRule() { - return accessRule; - } + /** Gestion de la réutilisation. */ + @XmlElement(name = "ReuseRule") + protected ReuseRuleType reuseRule; - /** - * Sets the value of the accessRule property. - * - * @param value - * allowed object is - * {@link AccessRuleType } - * - */ - public void setAccessRule(AccessRuleType value) { - this.accessRule = value; - } + /** Gestion de la classification. */ + @XmlElement(name = "ClassificationRule") + protected ClassificationRuleType classificationRule; - /** - * Gets the value of the disseminationRule property. - * - * @return - * possible object is - * {@link DisseminationRuleType } - * - */ - public DisseminationRuleType getDisseminationRule() { - return disseminationRule; - } + /** Gestion des traces. */ + @XmlElement(name = "LogBook") + protected LogBookType logBook; - /** - * Sets the value of the disseminationRule property. - * - * @param value - * allowed object is - * {@link DisseminationRuleType } - * - */ - public void setDisseminationRule(DisseminationRuleType value) { - this.disseminationRule = value; - } + /** + * Indique si une autorisation humaine est nécessaire pour vérifier ou valider les opérations de + * gestion des ArchiveUnit. + */ + @XmlElement(name = "NeedAuthorization") + protected Boolean needAuthorization; - /** - * Gets the value of the reuseRule property. - * - * @return - * possible object is - * {@link ReuseRuleType } - * - */ - public ReuseRuleType getReuseRule() { - return reuseRule; - } + /** Gestion de la durée de gel des ArchiveUnits. */ + @XmlElement(name = "HoldRule") + protected HoldRuleType holdRule; - /** - * Sets the value of the reuseRule property. - * - * @param value - * allowed object is - * {@link ReuseRuleType } - * - */ - public void setReuseRule(ReuseRuleType value) { - this.reuseRule = value; - } + /** Gestion des opérations sur un ArchiveUnit. */ + @XmlElement(name = "UpdateOperation") + protected UpdateOperationType updateOperation; - /** - * Gets the value of the classificationRule property. - * - * @return - * possible object is - * {@link ClassificationRuleType } - * - */ - public ClassificationRuleType getClassificationRule() { - return classificationRule; - } + @XmlAnyElement(lax = true) + protected List any; - /** - * Sets the value of the classificationRule property. - * - * @param value - * allowed object is - * {@link ClassificationRuleType } - * - */ - public void setClassificationRule(ClassificationRuleType value) { - this.classificationRule = value; - } + /** + * Gestion de la durée d’utilité courante. + * + * @return possible object is {@link StorageRuleType } + */ + public StorageRuleType getStorageRule() { + return storageRule; + } - /** - * Gets the value of the logBook property. - * - * @return - * possible object is - * {@link LogBookType } - * - */ - public LogBookType getLogBook() { - return logBook; - } + /** + * Sets the value of the storageRule property. + * + * @param value allowed object is {@link StorageRuleType } + * @see #getStorageRule() + */ + public void setStorageRule(StorageRuleType value) { + this.storageRule = value; + } - /** - * Sets the value of the logBook property. - * - * @param value - * allowed object is - * {@link LogBookType } - * - */ - public void setLogBook(LogBookType value) { - this.logBook = value; - } + /** + * Gestion de la durée d’utilité administrative. + * + * @return possible object is {@link AppraisalRuleType } + */ + public AppraisalRuleType getAppraisalRule() { + return appraisalRule; + } - /** - * Gets the value of the needAuthorization property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isNeedAuthorization() { - return needAuthorization; - } + /** + * Sets the value of the appraisalRule property. + * + * @param value allowed object is {@link AppraisalRuleType } + * @see #getAppraisalRule() + */ + public void setAppraisalRule(AppraisalRuleType value) { + this.appraisalRule = value; + } - /** - * Sets the value of the needAuthorization property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setNeedAuthorization(Boolean value) { - this.needAuthorization = value; - } + /** + * Gestion de la communicabilité. + * + * @return possible object is {@link AccessRuleType } + */ + public AccessRuleType getAccessRule() { + return accessRule; + } - /** - * Gets the value of the holdRule property. - * - * @return - * possible object is - * {@link HoldRuleType } - * - */ - public HoldRuleType getHoldRule() { - return holdRule; - } + /** + * Sets the value of the accessRule property. + * + * @param value allowed object is {@link AccessRuleType } + * @see #getAccessRule() + */ + public void setAccessRule(AccessRuleType value) { + this.accessRule = value; + } - /** - * Sets the value of the holdRule property. - * - * @param value - * allowed object is - * {@link HoldRuleType } - * - */ - public void setHoldRule(HoldRuleType value) { - this.holdRule = value; - } + /** + * Gestion de la diffusion. + * + * @return possible object is {@link DisseminationRuleType } + */ + public DisseminationRuleType getDisseminationRule() { + return disseminationRule; + } - /** - * Gets the value of the updateOperation property. - * - * @return - * possible object is - * {@link UpdateOperationType } - * - */ - public UpdateOperationType getUpdateOperation() { - return updateOperation; - } + /** + * Sets the value of the disseminationRule property. + * + * @param value allowed object is {@link DisseminationRuleType } + * @see #getDisseminationRule() + */ + public void setDisseminationRule(DisseminationRuleType value) { + this.disseminationRule = value; + } - /** - * Sets the value of the updateOperation property. - * - * @param value - * allowed object is - * {@link UpdateOperationType } - * - */ - public void setUpdateOperation(UpdateOperationType value) { - this.updateOperation = value; - } + /** + * Gestion de la réutilisation. + * + * @return possible object is {@link ReuseRuleType } + */ + public ReuseRuleType getReuseRule() { + return reuseRule; + } - /** - * Gets the value of the any 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the any property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link Object } - * {@link Element } - * - * - * @return - * The value of the any property. - */ - public List getAny() { - if (any == null) { - any = new ArrayList<>(); - } - return this.any; - } + /** + * Sets the value of the reuseRule property. + * + * @param value allowed object is {@link ReuseRuleType } + * @see #getReuseRule() + */ + public void setReuseRule(ReuseRuleType value) { + this.reuseRule = value; + } + + /** + * Gestion de la classification. + * + * @return possible object is {@link ClassificationRuleType } + */ + public ClassificationRuleType getClassificationRule() { + return classificationRule; + } + + /** + * Sets the value of the classificationRule property. + * + * @param value allowed object is {@link ClassificationRuleType } + * @see #getClassificationRule() + */ + public void setClassificationRule(ClassificationRuleType value) { + this.classificationRule = value; + } + /** + * Gestion des traces. + * + * @return possible object is {@link LogBookType } + */ + public LogBookType getLogBook() { + return logBook; + } + + /** + * Sets the value of the logBook property. + * + * @param value allowed object is {@link LogBookType } + * @see #getLogBook() + */ + public void setLogBook(LogBookType value) { + this.logBook = value; + } + + /** + * Indique si une autorisation humaine est nécessaire pour vérifier ou valider les opérations de + * gestion des ArchiveUnit. + * + * @return possible object is {@link Boolean } + */ + public Boolean isNeedAuthorization() { + return needAuthorization; + } + + /** + * Sets the value of the needAuthorization property. + * + * @param value allowed object is {@link Boolean } + * @see #isNeedAuthorization() + */ + public void setNeedAuthorization(Boolean value) { + this.needAuthorization = value; + } + + /** + * Gestion de la durée de gel des ArchiveUnits. + * + * @return possible object is {@link HoldRuleType } + */ + public HoldRuleType getHoldRule() { + return holdRule; + } + + /** + * Sets the value of the holdRule property. + * + * @param value allowed object is {@link HoldRuleType } + * @see #getHoldRule() + */ + public void setHoldRule(HoldRuleType value) { + this.holdRule = value; + } + + /** + * Gestion des opérations sur un ArchiveUnit. + * + * @return possible object is {@link UpdateOperationType } + */ + public UpdateOperationType getUpdateOperation() { + return updateOperation; + } + + /** + * Sets the value of the updateOperation property. + * + * @param value allowed object is {@link UpdateOperationType } + * @see #getUpdateOperation() + */ + public void setUpdateOperation(UpdateOperationType value) { + this.updateOperation = value; + } + + /** + * Gets the value of the any 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 any property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link Object } {@link Element } + * + * @return The value of the any property. + */ + public List getAny() { + if (any == null) { + any = new ArrayList<>(); + } + return this.any; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MeasurementType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MeasurementType.java index 5ee899c..03b250b 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MeasurementType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MeasurementType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.math.BigDecimal; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAttribute; import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.XmlValue; - +import java.math.BigDecimal; /** - *

Java class for MeasurementType complex type. - * + * Java class for MeasurementType complex type. + * *

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

{@code
  * 
  *   
@@ -29,66 +27,53 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "MeasurementType", propOrder = { - "value" -}) +@XmlType( + name = "MeasurementType", + propOrder = {"value"}) public class MeasurementType { - @XmlValue - protected BigDecimal value; - @XmlAttribute(name = "unit", required = true) - protected String unit; + @XmlValue protected BigDecimal value; - /** - * Gets the value of the value property. - * - * @return - * possible object is - * {@link BigDecimal } - * - */ - public BigDecimal getValue() { - return value; - } + /** Références : Voir UNECE_MeasurementUnitCommonCode_8.xsd */ + @XmlAttribute(name = "unit", required = true) + protected String unit; - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * {@link BigDecimal } - * - */ - public void setValue(BigDecimal value) { - this.value = value; - } + /** + * Gets the value of the value property. + * + * @return possible object is {@link BigDecimal } + */ + public BigDecimal getValue() { + return value; + } - /** - * Gets the value of the unit property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getUnit() { - return unit; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link BigDecimal } + */ + public void setValue(BigDecimal value) { + this.value = value; + } - /** - * Sets the value of the unit property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setUnit(String value) { - this.unit = value; - } + /** + * Références : Voir UNECE_MeasurementUnitCommonCode_8.xsd + * + * @return possible object is {@link String } + */ + public String getUnit() { + return unit; + } + /** + * Sets the value of the unit property. + * + * @param value allowed object is {@link String } + * @see #getUnit() + */ + public void setUnit(String value) { + this.unit = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MeasurementWeightType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MeasurementWeightType.java index a31480b..9ba21f0 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MeasurementWeightType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MeasurementWeightType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.math.BigDecimal; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAttribute; import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.XmlValue; - +import java.math.BigDecimal; /** - *

Java class for MeasurementWeightType complex type. - * + * Java class for MeasurementWeightType complex type. + * *

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

{@code
  * 
  *   
@@ -29,66 +27,51 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "MeasurementWeightType", propOrder = { - "value" -}) +@XmlType( + name = "MeasurementWeightType", + propOrder = {"value"}) public class MeasurementWeightType { - @XmlValue - protected BigDecimal value; - @XmlAttribute(name = "unit", required = true) - protected MeasurementWeightUnitsType unit; + @XmlValue protected BigDecimal value; - /** - * Gets the value of the value property. - * - * @return - * possible object is - * {@link BigDecimal } - * - */ - public BigDecimal getValue() { - return value; - } + @XmlAttribute(name = "unit", required = true) + protected MeasurementWeightUnitsType unit; - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * {@link BigDecimal } - * - */ - public void setValue(BigDecimal value) { - this.value = value; - } + /** + * Gets the value of the value property. + * + * @return possible object is {@link BigDecimal } + */ + public BigDecimal getValue() { + return value; + } - /** - * Gets the value of the unit property. - * - * @return - * possible object is - * {@link MeasurementWeightUnitsType } - * - */ - public MeasurementWeightUnitsType getUnit() { - return unit; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link BigDecimal } + */ + public void setValue(BigDecimal value) { + this.value = value; + } - /** - * Sets the value of the unit property. - * - * @param value - * allowed object is - * {@link MeasurementWeightUnitsType } - * - */ - public void setUnit(MeasurementWeightUnitsType value) { - this.unit = value; - } + /** + * Gets the value of the unit property. + * + * @return possible object is {@link MeasurementWeightUnitsType } + */ + public MeasurementWeightUnitsType getUnit() { + return unit; + } + /** + * Sets the value of the unit property. + * + * @param value allowed object is {@link MeasurementWeightUnitsType } + */ + public void setUnit(MeasurementWeightUnitsType value) { + this.unit = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MeasurementWeightUnitsType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MeasurementWeightUnitsType.java index 2e45be2..6b5a5e0 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MeasurementWeightUnitsType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MeasurementWeightUnitsType.java @@ -1,21 +1,20 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlEnum; import jakarta.xml.bind.annotation.XmlEnumValue; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for MeasurementWeightUnitsType. - * + * Java class for MeasurementWeightUnitsType. + * *

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

{@code
  * 
  *   
@@ -30,41 +29,50 @@
  *   
  * 
  * }
- * */ @XmlType(name = "MeasurementWeightUnitsType") @XmlEnum public enum MeasurementWeightUnitsType { + @XmlEnumValue("microgram") + MICROGRAM("microgram"), + MC("MC"), + @XmlEnumValue("milligram") + MILLIGRAM("milligram"), + MGM("MGM"), + @XmlEnumValue("gram") + GRAM("gram"), + GRM("GRM"), + @XmlEnumValue("kilogram") + KILOGRAM("kilogram"), + KGM("KGM"); + private final String value; - @XmlEnumValue("microgram") - MICROGRAM("microgram"), - MC("MC"), - @XmlEnumValue("milligram") - MILLIGRAM("milligram"), - MGM("MGM"), - @XmlEnumValue("gram") - GRAM("gram"), - GRM("GRM"), - @XmlEnumValue("kilogram") - KILOGRAM("kilogram"), - KGM("KGM"); - private final String value; - - MeasurementWeightUnitsType(String v) { - value = v; - } + MeasurementWeightUnitsType(String v) { + value = v; + } - public String value() { - return value; - } + /** + * Gets the value associated to the enum constant. + * + * @return The value linked to the enum. + */ + public String value() { + return value; + } - public static MeasurementWeightUnitsType fromValue(String v) { - for (MeasurementWeightUnitsType c: MeasurementWeightUnitsType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** + * Gets the enum associated to the value passed as parameter. + * + * @param v The value to get the enum from. + * @return The enum which corresponds to the value, if it exists. + * @throws IllegalArgumentException If no value matches in the enum declaration. + */ + public static MeasurementWeightUnitsType fromValue(String v) { + for (MeasurementWeightUnitsType c : MeasurementWeightUnitsType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MessageDigestBinaryObjectType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MessageDigestBinaryObjectType.java index 47e6cbc..4c2640a 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MessageDigestBinaryObjectType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MessageDigestBinaryObjectType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -15,12 +14,11 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** - *

Java class for MessageDigestBinaryObjectType complex type. - * + * Java class for MessageDigestBinaryObjectType complex type. + * *

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

{@code
  * 
  *   
@@ -30,67 +28,54 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "MessageDigestBinaryObjectType", propOrder = { - "value" -}) +@XmlType( + name = "MessageDigestBinaryObjectType", + propOrder = {"value"}) public class MessageDigestBinaryObjectType { - @XmlValue - protected String value; - @XmlAttribute(name = "algorithm", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String algorithm; + /** Représentation binaire : utilisation possible de base64 ou d'hexadécimal. */ + @XmlValue protected String value; - /** - * Représentation binaire : utilisation possible de base64 ou d'hexadécimal. - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } + @XmlAttribute(name = "algorithm", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String algorithm; - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } + /** + * Représentation binaire : utilisation possible de base64 ou d'hexadécimal. + * + * @return possible object is {@link String } + */ + public String getValue() { + return value; + } - /** - * Gets the value of the algorithm property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getAlgorithm() { - return algorithm; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link String } + * @see #getValue() + */ + public void setValue(String value) { + this.value = value; + } - /** - * Sets the value of the algorithm property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setAlgorithm(String value) { - this.algorithm = value; - } + /** + * Gets the value of the algorithm property. + * + * @return possible object is {@link String } + */ + public String getAlgorithm() { + return algorithm; + } + /** + * Sets the value of the algorithm property. + * + * @param value allowed object is {@link String } + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MessageType.java index 060bbd0..db24715 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MessageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MessageType.java @@ -1,15 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAttribute; @@ -20,13 +16,15 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - +import java.util.ArrayList; +import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - *

Java class for MessageType complex type. - * + * Java class for MessageType complex type. + * *

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

{@code
  * 
  *   
@@ -42,164 +40,161 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "MessageType", propOrder = { - "comment", - "date", - "messageIdentifier", - "signature" -}) -@XmlSeeAlso({ - AcknowledgementType.class, - BusinessMessageType.class -}) +@XmlType( + name = "MessageType", + propOrder = {"comment", "date", "messageIdentifier", "signature"}) +@XmlSeeAlso({AcknowledgementType.class, BusinessMessageType.class}) public abstract class MessageType { - @XmlElement(name = "Comment") - protected List comment; - @XmlElement(name = "Date", required = true) - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar date; - @XmlElement(name = "MessageIdentifier", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String messageIdentifier; - @XmlElement(name = "Signature") - protected SignatureMessageType signature; - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - - /** - * Gets the value of the comment 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the comment property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the comment property. - */ - public List getComment() { - if (comment == null) { - comment = new ArrayList<>(); - } - return this.comment; - } - - /** - * Gets the value of the date property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getDate() { - return date; + /** Commentaire sur le message. */ + @XmlElement(name = "Comment") + protected List comment; + + /** Date du message. */ + @XmlElement(name = "Date", required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar date; + + /** Identifiant du message. */ + @XmlElement(name = "MessageIdentifier", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String messageIdentifier; + + /** Signature du message. */ + @XmlElement(name = "Signature") + protected SignatureMessageType signature; + + /** + * + * + *

+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>id (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        should be interpreted as if declared to be of type ID.
+   *        This name is reserved by virtue of its definition in the
+   *        xml:id specification.</p><p>
+   *       See <a href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+   *       for information about this attribute.</p></div>
+   * 
+ */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Commentaire sur le message. + * + *

Gets the value of the comment 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 comment property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the comment property. + */ + public List getComment() { + if (comment == null) { + comment = new ArrayList<>(); } - - /** - * Sets the value of the date property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setDate(XMLGregorianCalendar value) { - this.date = value; - } - - /** - * Gets the value of the messageIdentifier property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getMessageIdentifier() { - return messageIdentifier; - } - - /** - * Sets the value of the messageIdentifier property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setMessageIdentifier(String value) { - this.messageIdentifier = value; - } - - /** - * Gets the value of the signature property. - * - * @return - * possible object is - * {@link SignatureMessageType } - * - */ - public SignatureMessageType getSignature() { - return signature; - } - - /** - * Sets the value of the signature property. - * - * @param value - * allowed object is - * {@link SignatureMessageType } - * - */ - public void setSignature(SignatureMessageType value) { - this.signature = 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; - } - + return this.comment; + } + + /** + * Date du message. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getDate() { + return date; + } + + /** + * Sets the value of the date property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getDate() + */ + public void setDate(XMLGregorianCalendar value) { + this.date = value; + } + + /** + * Identifiant du message. + * + * @return possible object is {@link String } + */ + public String getMessageIdentifier() { + return messageIdentifier; + } + + /** + * Sets the value of the messageIdentifier property. + * + * @param value allowed object is {@link String } + * @see #getMessageIdentifier() + */ + public void setMessageIdentifier(String value) { + this.messageIdentifier = value; + } + + /** + * Signature du message. + * + * @return possible object is {@link SignatureMessageType } + */ + public SignatureMessageType getSignature() { + return signature; + } + + /** + * Sets the value of the signature property. + * + * @param value allowed object is {@link SignatureMessageType } + * @see #getSignature() + */ + public void setSignature(SignatureMessageType value) { + this.signature = value; + } + + /** + * + * + *

+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>id (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        should be interpreted as if declared to be of type ID.
+   *        This name is reserved by virtue of its definition in the
+   *        xml:id specification.</p><p>
+   *       See <a href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+   *       for information about this attribute.</p></div>
+   * 
+ * + * @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 } + * @see #getId() + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MinimalDataObjectType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MinimalDataObjectType.java index 0821ec5..64f2dba 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MinimalDataObjectType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/MinimalDataObjectType.java @@ -1,14 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAttribute; @@ -20,13 +17,14 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for MinimalDataObjectType complex type. - * + * Java class for MinimalDataObjectType complex type. + * *

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

{@code
  * 
  *   
@@ -44,249 +42,236 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "MinimalDataObjectType", propOrder = { - "dataObjectProfile", - "dataObjectSystemId", - "dataObjectGroupSystemId", - "relationship", - "dataObjectGroupReferenceId", - "dataObjectGroupId", - "dataObjectVersion" -}) -@XmlSeeAlso({ - BinaryDataObjectType.class, - PhysicalDataObjectType.class -}) +@XmlType( + name = "MinimalDataObjectType", + propOrder = { + "dataObjectProfile", + "dataObjectSystemId", + "dataObjectGroupSystemId", + "relationship", + "dataObjectGroupReferenceId", + "dataObjectGroupId", + "dataObjectVersion" + }) +@XmlSeeAlso({BinaryDataObjectType.class, PhysicalDataObjectType.class}) public abstract class MinimalDataObjectType { - @XmlElement(name = "DataObjectProfile") - protected IdentifierType dataObjectProfile; - @XmlElement(name = "DataObjectSystemId") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String dataObjectSystemId; - @XmlElement(name = "DataObjectGroupSystemId") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String dataObjectGroupSystemId; - @XmlElement(name = "Relationship") - protected List relationship; - @XmlElement(name = "DataObjectGroupReferenceId") - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object dataObjectGroupReferenceId; - @XmlElement(name = "DataObjectGroupId") - protected String dataObjectGroupId; - @XmlElement(name = "DataObjectVersion") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String dataObjectVersion; - @XmlAttribute(name = "id", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - protected String id; + /** + * Référence à une partie d'un profil d’archivage applicable à un objet technique en particulier. + */ + @XmlElement(name = "DataObjectProfile") + protected IdentifierType dataObjectProfile; - /** - * Gets the value of the dataObjectProfile property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getDataObjectProfile() { - return dataObjectProfile; - } + /** + * Identifiant attribué aux objets de données. Il est attribué par le SAE et correspond à un + * identifiant interne. + */ + @XmlElement(name = "DataObjectSystemId") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String dataObjectSystemId; - /** - * Sets the value of the dataObjectProfile property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setDataObjectProfile(IdentifierType value) { - this.dataObjectProfile = value; - } + /** + * Identifiant attribué aux groupes d'objets de données. Il est attribué par le SAE et correspond + * à un identifiant interne. + */ + @XmlElement(name = "DataObjectGroupSystemId") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String dataObjectGroupSystemId; - /** - * Gets the value of the dataObjectSystemId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDataObjectSystemId() { - return dataObjectSystemId; - } + /** Permet de spécifier un lien technique entre un objet-données et une signature. */ + @XmlElement(name = "Relationship") + protected List relationship; - /** - * Sets the value of the dataObjectSystemId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDataObjectSystemId(String value) { - this.dataObjectSystemId = value; - } + /** Référence à un Identifiant du groupe d'objets-données DataObjectVersionGroup. */ + @XmlElement(name = "DataObjectGroupReferenceId") + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object dataObjectGroupReferenceId; - /** - * Gets the value of the dataObjectGroupSystemId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDataObjectGroupSystemId() { - return dataObjectGroupSystemId; - } + /** + * Identifiant du groupe d'objets-données DataObjectVersionGroup (première et unique définition). + */ + @XmlElement(name = "DataObjectGroupId") + protected String dataObjectGroupId; - /** - * Sets the value of the dataObjectGroupSystemId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDataObjectGroupSystemId(String value) { - this.dataObjectGroupSystemId = value; - } + /** + * Version d’un objet-données (par exemple : original papier, conservation, diffusion, vignette, + * txt, …). + */ + @XmlElement(name = "DataObjectVersion") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String dataObjectVersion; - /** - * Gets the value of the relationship 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the relationship property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link RelationshipType } - * - * - * @return - * The value of the relationship property. - */ - public List getRelationship() { - if (relationship == null) { - relationship = new ArrayList<>(); - } - return this.relationship; - } + /** Identifiant de l'objet-données associé. */ + @XmlAttribute(name = "id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; - /** - * Gets the value of the dataObjectGroupReferenceId property. - * - * @return - * possible object is - * {@link Object } - * - */ - public Object getDataObjectGroupReferenceId() { - return dataObjectGroupReferenceId; - } + /** + * Référence à une partie d'un profil d’archivage applicable à un objet technique en particulier. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getDataObjectProfile() { + return dataObjectProfile; + } - /** - * Sets the value of the dataObjectGroupReferenceId property. - * - * @param value - * allowed object is - * {@link Object } - * - */ - public void setDataObjectGroupReferenceId(Object value) { - this.dataObjectGroupReferenceId = value; - } + /** + * Sets the value of the dataObjectProfile property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getDataObjectProfile() + */ + public void setDataObjectProfile(IdentifierType value) { + this.dataObjectProfile = value; + } - /** - * Gets the value of the dataObjectGroupId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDataObjectGroupId() { - return dataObjectGroupId; - } + /** + * Identifiant attribué aux objets de données. Il est attribué par le SAE et correspond à un + * identifiant interne. + * + * @return possible object is {@link String } + */ + public String getDataObjectSystemId() { + return dataObjectSystemId; + } - /** - * Sets the value of the dataObjectGroupId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDataObjectGroupId(String value) { - this.dataObjectGroupId = value; - } + /** + * Sets the value of the dataObjectSystemId property. + * + * @param value allowed object is {@link String } + * @see #getDataObjectSystemId() + */ + public void setDataObjectSystemId(String value) { + this.dataObjectSystemId = value; + } - /** - * Gets the value of the dataObjectVersion property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDataObjectVersion() { - return dataObjectVersion; - } + /** + * Identifiant attribué aux groupes d'objets de données. Il est attribué par le SAE et correspond + * à un identifiant interne. + * + * @return possible object is {@link String } + */ + public String getDataObjectGroupSystemId() { + return dataObjectGroupSystemId; + } - /** - * Sets the value of the dataObjectVersion property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDataObjectVersion(String value) { - this.dataObjectVersion = value; - } + /** + * Sets the value of the dataObjectGroupSystemId property. + * + * @param value allowed object is {@link String } + * @see #getDataObjectGroupSystemId() + */ + public void setDataObjectGroupSystemId(String value) { + this.dataObjectGroupSystemId = value; + } - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; + /** + * Permet de spécifier un lien technique entre un objet-données et une signature. + * + *

Gets the value of the relationship 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 relationship property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RelationshipType } + * + * @return The value of the relationship property. + */ + public List getRelationship() { + if (relationship == null) { + relationship = new ArrayList<>(); } + return this.relationship; + } - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } + /** + * Référence à un Identifiant du groupe d'objets-données DataObjectVersionGroup. + * + * @return possible object is {@link Object } + */ + public Object getDataObjectGroupReferenceId() { + return dataObjectGroupReferenceId; + } + + /** + * Sets the value of the dataObjectGroupReferenceId property. + * + * @param value allowed object is {@link Object } + * @see #getDataObjectGroupReferenceId() + */ + public void setDataObjectGroupReferenceId(Object value) { + this.dataObjectGroupReferenceId = value; + } + + /** + * Identifiant du groupe d'objets-données DataObjectVersionGroup (première et unique définition). + * + * @return possible object is {@link String } + */ + public String getDataObjectGroupId() { + return dataObjectGroupId; + } + + /** + * Sets the value of the dataObjectGroupId property. + * + * @param value allowed object is {@link String } + * @see #getDataObjectGroupId() + */ + public void setDataObjectGroupId(String value) { + this.dataObjectGroupId = value; + } + + /** + * Version d’un objet-données (par exemple : original papier, conservation, diffusion, vignette, + * txt, …). + * + * @return possible object is {@link String } + */ + public String getDataObjectVersion() { + return dataObjectVersion; + } + + /** + * Sets the value of the dataObjectVersion property. + * + * @param value allowed object is {@link String } + * @see #getDataObjectVersion() + */ + public void setDataObjectVersion(String value) { + this.dataObjectVersion = value; + } + + /** + * Identifiant de l'objet-données associé. + * + * @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 } + * @see #getId() + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ObjectFactory.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ObjectFactory.java index 2efab57..4659d19 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ObjectFactory.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ObjectFactory.java @@ -1,1350 +1,1396 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; import jakarta.xml.bind.JAXBElement; import jakarta.xml.bind.annotation.XmlElementDecl; import jakarta.xml.bind.annotation.XmlIDREF; import jakarta.xml.bind.annotation.XmlRegistry; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - +import javax.xml.datatype.XMLGregorianCalendar; +import javax.xml.namespace.QName; /** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the fr.gouv.culture.archivesdefrance.seda.v2 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. - * + * This object contains factory methods for each Java content interface and Java element interface + * generated in the fr.gouv.culture.archivesdefrance.seda.v2 package. + * + *

An ObjectFactory allows you to programmatically 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 static final QName _ObjectGroupExtenstionAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ObjectGroupExtenstionAbstract"); - private static final QName _OtherDimensionsAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "OtherDimensionsAbstract"); - private static final QName _OtherCoreTechnicalMetadataAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "OtherCoreTechnicalMetadataAbstract"); - private static final QName _ArchiveUnitReferenceAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveUnitReferenceAbstract"); - private static final QName _OtherManagementAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "OtherManagementAbstract"); - private static final QName _OtherCodeListAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "OtherCodeListAbstract"); - private static final QName _EventAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "EventAbstract"); - private static final QName _Acknowledgement_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "Acknowledgement"); - private static final QName _ArchiveDeliveryRequest_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveDeliveryRequest"); - private static final QName _ArchiveRestitutionRequest_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveRestitutionRequest"); - private static final QName _ArchiveTransfer_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveTransfer"); - private static final QName _ArchiveTransferRequest_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveTransferRequest"); - private static final QName _AuthorizationControlAuthorityRequest_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "AuthorizationControlAuthorityRequest"); - private static final QName _AuthorizationOriginatingAgencyRequest_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "AuthorizationOriginatingAgencyRequest"); - private static final QName _ArchiveDeliveryRequestReply_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveDeliveryRequestReply"); - private static final QName _ArchiveRestitutionRequestReply_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveRestitutionRequestReply"); - private static final QName _ArchiveTransferReply_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveTransferReply"); - private static final QName _ArchiveTransferRequestReply_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveTransferRequestReply"); - private static final QName _AuthorizationControlAuthorityRequestReply_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "AuthorizationControlAuthorityRequestReply"); - private static final QName _AuthorizationOriginatingAgencyRequestReply_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "AuthorizationOriginatingAgencyRequestReply"); - private static final QName _ArchiveDestructionNotification_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveDestructionNotification"); - private static final QName _ArchiveModificationNotification_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveModificationNotification"); - private static final QName _ArchiveUnitTypeArchiveUnit_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveUnit"); - private static final QName _ArchiveUnitTypeDataObjectReference_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "DataObjectReference"); - private static final QName _ArchiveUnitTypeDataObjectGroup_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "DataObjectGroup"); - private static final QName _ToDeleteTypeArchiveUnitRefId_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveUnitRefId"); - private static final QName _HoldRuleTypeRule_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "Rule"); - private static final QName _HoldRuleTypeStartDate_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "StartDate"); - private static final QName _HoldRuleTypeHoldEndDate_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "HoldEndDate"); - private static final QName _HoldRuleTypeHoldOwner_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "HoldOwner"); - private static final QName _HoldRuleTypeHoldReassessingDate_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "HoldReassessingDate"); - private static final QName _HoldRuleTypeHoldReason_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "HoldReason"); - private static final QName _HoldRuleTypePreventRearrangement_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2", "PreventRearrangement"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: fr.gouv.culture.archivesdefrance.seda.v2 - * - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link CodeType } - * - * @return - * the new instance of {@link CodeType } - */ - public CodeType createCodeType() { - return new CodeType(); - } - - /** - * Create an instance of {@link AcknowledgementType } - * - * @return - * the new instance of {@link AcknowledgementType } - */ - public AcknowledgementType createAcknowledgementType() { - return new AcknowledgementType(); - } - - /** - * Create an instance of {@link ArchiveDeliveryRequestType } - * - * @return - * the new instance of {@link ArchiveDeliveryRequestType } - */ - public ArchiveDeliveryRequestType createArchiveDeliveryRequestType() { - return new ArchiveDeliveryRequestType(); - } - - /** - * Create an instance of {@link ArchiveRestitutionRequestType } - * - * @return - * the new instance of {@link ArchiveRestitutionRequestType } - */ - public ArchiveRestitutionRequestType createArchiveRestitutionRequestType() { - return new ArchiveRestitutionRequestType(); - } - - /** - * Create an instance of {@link ArchiveTransferType } - * - * @return - * the new instance of {@link ArchiveTransferType } - */ - public ArchiveTransferType createArchiveTransferType() { - return new ArchiveTransferType(); - } - - /** - * Create an instance of {@link ArchiveTransferRequestType } - * - * @return - * the new instance of {@link ArchiveTransferRequestType } - */ - public ArchiveTransferRequestType createArchiveTransferRequestType() { - return new ArchiveTransferRequestType(); - } - - /** - * Create an instance of {@link AuthorizationControlAuthorityRequestType } - * - * @return - * the new instance of {@link AuthorizationControlAuthorityRequestType } - */ - public AuthorizationControlAuthorityRequestType createAuthorizationControlAuthorityRequestType() { - return new AuthorizationControlAuthorityRequestType(); - } - - /** - * Create an instance of {@link AuthorizationOriginatingAgencyRequestType } - * - * @return - * the new instance of {@link AuthorizationOriginatingAgencyRequestType } - */ - public AuthorizationOriginatingAgencyRequestType createAuthorizationOriginatingAgencyRequestType() { - return new AuthorizationOriginatingAgencyRequestType(); - } - - /** - * Create an instance of {@link ArchiveDeliveryRequestReplyType } - * - * @return - * the new instance of {@link ArchiveDeliveryRequestReplyType } - */ - public ArchiveDeliveryRequestReplyType createArchiveDeliveryRequestReplyType() { - return new ArchiveDeliveryRequestReplyType(); - } - - /** - * Create an instance of {@link ArchiveRestitutionRequestReplyType } - * - * @return - * the new instance of {@link ArchiveRestitutionRequestReplyType } - */ - public ArchiveRestitutionRequestReplyType createArchiveRestitutionRequestReplyType() { - return new ArchiveRestitutionRequestReplyType(); - } - - /** - * Create an instance of {@link ArchiveTransferReplyType } - * - * @return - * the new instance of {@link ArchiveTransferReplyType } - */ - public ArchiveTransferReplyType createArchiveTransferReplyType() { - return new ArchiveTransferReplyType(); - } - - /** - * Create an instance of {@link ArchiveTransferRequestReplyType } - * - * @return - * the new instance of {@link ArchiveTransferRequestReplyType } - */ - public ArchiveTransferRequestReplyType createArchiveTransferRequestReplyType() { - return new ArchiveTransferRequestReplyType(); - } - - /** - * Create an instance of {@link AuthorizationControlAuthorityRequestReplyType } - * - * @return - * the new instance of {@link AuthorizationControlAuthorityRequestReplyType } - */ - public AuthorizationControlAuthorityRequestReplyType createAuthorizationControlAuthorityRequestReplyType() { - return new AuthorizationControlAuthorityRequestReplyType(); - } - - /** - * Create an instance of {@link AuthorizationOriginatingAgencyRequestReplyType } - * - * @return - * the new instance of {@link AuthorizationOriginatingAgencyRequestReplyType } - */ - public AuthorizationOriginatingAgencyRequestReplyType createAuthorizationOriginatingAgencyRequestReplyType() { - return new AuthorizationOriginatingAgencyRequestReplyType(); - } - - /** - * Create an instance of {@link ArchiveDestructionNotificationType } - * - * @return - * the new instance of {@link ArchiveDestructionNotificationType } - */ - public ArchiveDestructionNotificationType createArchiveDestructionNotificationType() { - return new ArchiveDestructionNotificationType(); - } - - /** - * Create an instance of {@link ArchiveModificationNotificationType } - * - * @return - * the new instance of {@link ArchiveModificationNotificationType } - */ - public ArchiveModificationNotificationType createArchiveModificationNotificationType() { - return new ArchiveModificationNotificationType(); - } - - /** - * Create an instance of {@link CustodialHistoryType } - * - * @return - * the new instance of {@link CustodialHistoryType } - */ - public CustodialHistoryType createCustodialHistoryType() { - return new CustodialHistoryType(); - } - - /** - * Create an instance of {@link CustodialHistoryItemType } - * - * @return - * the new instance of {@link CustodialHistoryItemType } - */ - public CustodialHistoryItemType createCustodialHistoryItemType() { - return new CustodialHistoryItemType(); - } - - /** - * Create an instance of {@link KeywordsType } - * - * @return - * the new instance of {@link KeywordsType } - */ - public KeywordsType createKeywordsType() { - return new KeywordsType(); - } - - /** - * Create an instance of {@link KeyType } - * - * @return - * the new instance of {@link KeyType } - */ - public KeyType createKeyType() { - return new KeyType(); - } - - /** - * Create an instance of {@link CoverageType } - * - * @return - * the new instance of {@link CoverageType } - */ - public CoverageType createCoverageType() { - return new CoverageType(); - } - - /** - * Create an instance of {@link RelatedObjectReferenceType } - * - * @return - * the new instance of {@link RelatedObjectReferenceType } - */ - public RelatedObjectReferenceType createRelatedObjectReferenceType() { - return new RelatedObjectReferenceType(); - } - - /** - * Create an instance of {@link DataObjectOrArchiveUnitReferenceType } - * - * @return - * the new instance of {@link DataObjectOrArchiveUnitReferenceType } - */ - public DataObjectOrArchiveUnitReferenceType createDataObjectOrArchiveUnitReferenceType() { - return new DataObjectOrArchiveUnitReferenceType(); - } - - /** - * Create an instance of {@link EventType } - * - * @return - * the new instance of {@link EventType } - */ - public EventType createEventType() { - return new EventType(); - } - - /** - * Create an instance of {@link LinkingAgentIdentifierType } - * - * @return - * the new instance of {@link LinkingAgentIdentifierType } - */ - public LinkingAgentIdentifierType createLinkingAgentIdentifierType() { - return new LinkingAgentIdentifierType(); - } - - /** - * Create an instance of {@link SignatureType } - * - * @return - * the new instance of {@link SignatureType } - */ - public SignatureType createSignatureType() { - return new SignatureType(); - } - - /** - * Create an instance of {@link SignerType } - * - * @return - * the new instance of {@link SignerType } - */ - public SignerType createSignerType() { - return new SignerType(); - } - - /** - * Create an instance of {@link ValidatorType } - * - * @return - * the new instance of {@link ValidatorType } - */ - public ValidatorType createValidatorType() { - return new ValidatorType(); - } - - /** - * Create an instance of {@link ReferencedObjectType } - * - * @return - * the new instance of {@link ReferencedObjectType } - */ - public ReferencedObjectType createReferencedObjectType() { - return new ReferencedObjectType(); - } - - /** - * Create an instance of {@link AgentType } - * - * @return - * the new instance of {@link AgentType } - */ - public AgentType createAgentType() { - return new AgentType(); - } - - /** - * Create an instance of {@link BirthOrDeathPlaceType } - * - * @return - * the new instance of {@link BirthOrDeathPlaceType } - */ - public BirthOrDeathPlaceType createBirthOrDeathPlaceType() { - return new BirthOrDeathPlaceType(); - } - - /** - * Create an instance of {@link GpsType } - * - * @return - * the new instance of {@link GpsType } - */ - public GpsType createGpsType() { - return new GpsType(); - } - - /** - * Create an instance of {@link TextType } - * - * @return - * the new instance of {@link TextType } - */ - public TextType createTextType() { - return new TextType(); - } - - /** - * Create an instance of {@link IdentifierType } - * - * @return - * the new instance of {@link IdentifierType } - */ - public IdentifierType createIdentifierType() { - return new IdentifierType(); - } - - /** - * Create an instance of {@link DataObjectRefType } - * - * @return - * the new instance of {@link DataObjectRefType } - */ - public DataObjectRefType createDataObjectRefType() { - return new DataObjectRefType(); - } - - /** - * Create an instance of {@link MessageDigestBinaryObjectType } - * - * @return - * the new instance of {@link MessageDigestBinaryObjectType } - */ - public MessageDigestBinaryObjectType createMessageDigestBinaryObjectType() { - return new MessageDigestBinaryObjectType(); - } - - /** - * Create an instance of {@link BinaryObjectType } - * - * @return - * the new instance of {@link BinaryObjectType } - */ - public BinaryObjectType createBinaryObjectType() { - return new BinaryObjectType(); - } - - /** - * Create an instance of {@link RelationshipType } - * - * @return - * the new instance of {@link RelationshipType } - */ - public RelationshipType createRelationshipType() { - return new RelationshipType(); - } - - /** - * Create an instance of {@link OrganizationType } - * - * @return - * the new instance of {@link OrganizationType } - */ - public OrganizationType createOrganizationType() { - return new OrganizationType(); - } - - /** - * Create an instance of {@link OrganizationDescriptiveMetadataType } - * - * @return - * the new instance of {@link OrganizationDescriptiveMetadataType } - */ - public OrganizationDescriptiveMetadataType createOrganizationDescriptiveMetadataType() { - return new OrganizationDescriptiveMetadataType(); - } - - /** - * Create an instance of {@link SignatureMessageType } - * - * @return - * the new instance of {@link SignatureMessageType } - */ - public SignatureMessageType createSignatureMessageType() { - return new SignatureMessageType(); - } - - /** - * Create an instance of {@link TextTechnicalMetadataType } - * - * @return - * the new instance of {@link TextTechnicalMetadataType } - */ - public TextTechnicalMetadataType createTextTechnicalMetadataType() { - return new TextTechnicalMetadataType(); - } - - /** - * Create an instance of {@link DocumentTechnicalMetadataType } - * - * @return - * the new instance of {@link DocumentTechnicalMetadataType } - */ - public DocumentTechnicalMetadataType createDocumentTechnicalMetadataType() { - return new DocumentTechnicalMetadataType(); - } - - /** - * Create an instance of {@link ImageTechnicalMetadataType } - * - * @return - * the new instance of {@link ImageTechnicalMetadataType } - */ - public ImageTechnicalMetadataType createImageTechnicalMetadataType() { - return new ImageTechnicalMetadataType(); - } - - /** - * Create an instance of {@link AudioTechnicalMetadataType } - * - * @return - * the new instance of {@link AudioTechnicalMetadataType } - */ - public AudioTechnicalMetadataType createAudioTechnicalMetadataType() { - return new AudioTechnicalMetadataType(); - } - - /** - * Create an instance of {@link VideoTechnicalMetadataType } - * - * @return - * the new instance of {@link VideoTechnicalMetadataType } - */ - public VideoTechnicalMetadataType createVideoTechnicalMetadataType() { - return new VideoTechnicalMetadataType(); - } - - /** - * Create an instance of {@link DescriptiveTechnicalMetadataType } - * - * @return - * the new instance of {@link DescriptiveTechnicalMetadataType } - */ - public DescriptiveTechnicalMetadataType createDescriptiveTechnicalMetadataType() { - return new DescriptiveTechnicalMetadataType(); - } - - /** - * Create an instance of {@link BinaryDataObjectType } - * - * @return - * the new instance of {@link BinaryDataObjectType } - */ - public BinaryDataObjectType createBinaryDataObjectType() { - return new BinaryDataObjectType(); - } - - /** - * Create an instance of {@link CompressedType } - * - * @return - * the new instance of {@link CompressedType } - */ - public CompressedType createCompressedType() { - return new CompressedType(); - } - - /** - * Create an instance of {@link FormatIdentificationType } - * - * @return - * the new instance of {@link FormatIdentificationType } - */ - public FormatIdentificationType createFormatIdentificationType() { - return new FormatIdentificationType(); - } - - /** - * Create an instance of {@link FileInfoType } - * - * @return - * the new instance of {@link FileInfoType } - */ - public FileInfoType createFileInfoType() { - return new FileInfoType(); - } - - /** - * Create an instance of {@link PhysicalDataObjectType } - * - * @return - * the new instance of {@link PhysicalDataObjectType } - */ - public PhysicalDataObjectType createPhysicalDataObjectType() { - return new PhysicalDataObjectType(); - } - - /** - * Create an instance of {@link CoreMetadataType } - * - * @return - * the new instance of {@link CoreMetadataType } - */ - public CoreMetadataType createCoreMetadataType() { - return new CoreMetadataType(); - } - - /** - * Create an instance of {@link DimensionsType } - * - * @return - * the new instance of {@link DimensionsType } - */ - public DimensionsType createDimensionsType() { - return new DimensionsType(); - } - - /** - * Create an instance of {@link MeasurementType } - * - * @return - * the new instance of {@link MeasurementType } - */ - public MeasurementType createMeasurementType() { - return new MeasurementType(); - } - - /** - * Create an instance of {@link MeasurementWeightType } - * - * @return - * the new instance of {@link MeasurementWeightType } - */ - public MeasurementWeightType createMeasurementWeightType() { - return new MeasurementWeightType(); - } - - /** - * Create an instance of {@link RuleIdType } - * - * @return - * the new instance of {@link RuleIdType } - */ - public RuleIdType createRuleIdType() { - return new RuleIdType(); - } - - /** - * Create an instance of {@link LogBookType } - * - * @return - * the new instance of {@link LogBookType } - */ - public LogBookType createLogBookType() { - return new LogBookType(); - } - - /** - * Create an instance of {@link AccessRuleType } - * - * @return - * the new instance of {@link AccessRuleType } - */ - public AccessRuleType createAccessRuleType() { - return new AccessRuleType(); - } - - /** - * Create an instance of {@link DisseminationRuleType } - * - * @return - * the new instance of {@link DisseminationRuleType } - */ - public DisseminationRuleType createDisseminationRuleType() { - return new DisseminationRuleType(); - } - - /** - * Create an instance of {@link ReuseRuleType } - * - * @return - * the new instance of {@link ReuseRuleType } - */ - public ReuseRuleType createReuseRuleType() { - return new ReuseRuleType(); - } - - /** - * Create an instance of {@link ClassificationRuleType } - * - * @return - * the new instance of {@link ClassificationRuleType } - */ - public ClassificationRuleType createClassificationRuleType() { - return new ClassificationRuleType(); - } - - /** - * Create an instance of {@link StorageRuleType } - * - * @return - * the new instance of {@link StorageRuleType } - */ - public StorageRuleType createStorageRuleType() { - return new StorageRuleType(); - } - - /** - * Create an instance of {@link AppraisalRuleType } - * - * @return - * the new instance of {@link AppraisalRuleType } - */ - public AppraisalRuleType createAppraisalRuleType() { - return new AppraisalRuleType(); - } - - /** - * Create an instance of {@link UpdateOperationType } - * - * @return - * the new instance of {@link UpdateOperationType } - */ - public UpdateOperationType createUpdateOperationType() { - return new UpdateOperationType(); - } - - /** - * Create an instance of {@link HoldRuleType } - * - * @return - * the new instance of {@link HoldRuleType } - */ - public HoldRuleType createHoldRuleType() { - return new HoldRuleType(); - } - - /** - * Create an instance of {@link ArchiveUnitIdentifierKeyType } - * - * @return - * the new instance of {@link ArchiveUnitIdentifierKeyType } - */ - public ArchiveUnitIdentifierKeyType createArchiveUnitIdentifierKeyType() { - return new ArchiveUnitIdentifierKeyType(); - } - - /** - * Create an instance of {@link ToDeleteType } - * - * @return - * the new instance of {@link ToDeleteType } - */ - public ToDeleteType createToDeleteType() { - return new ToDeleteType(); - } - - /** - * Create an instance of {@link ArchiveUnitType } - * - * @return - * the new instance of {@link ArchiveUnitType } - */ - public ArchiveUnitType createArchiveUnitType() { - return new ArchiveUnitType(); - } - - /** - * Create an instance of {@link ManagementType } - * - * @return - * the new instance of {@link ManagementType } - */ - public ManagementType createManagementType() { - return new ManagementType(); - } - - /** - * Create an instance of {@link ObjectGroupRefType } - * - * @return - * the new instance of {@link ObjectGroupRefType } - */ - public ObjectGroupRefType createObjectGroupRefType() { - return new ObjectGroupRefType(); - } - - /** - * Create an instance of {@link DescriptiveMetadataContentType } - * - * @return - * the new instance of {@link DescriptiveMetadataContentType } - */ - public DescriptiveMetadataContentType createDescriptiveMetadataContentType() { - return new DescriptiveMetadataContentType(); - } - - /** - * Create an instance of {@link ManagementHistoryType } - * - * @return - * the new instance of {@link ManagementHistoryType } - */ - public ManagementHistoryType createManagementHistoryType() { - return new ManagementHistoryType(); - } - - /** - * Create an instance of {@link ManagementHistoryDataType } - * - * @return - * the new instance of {@link ManagementHistoryDataType } - */ - public ManagementHistoryDataType createManagementHistoryDataType() { - return new ManagementHistoryDataType(); - } - - /** - * Create an instance of {@link CodeListVersionsType } - * - * @return - * the new instance of {@link CodeListVersionsType } - */ - public CodeListVersionsType createCodeListVersionsType() { - return new CodeListVersionsType(); - } - - /** - * Create an instance of {@link DataObjectGroupType } - * - * @return - * the new instance of {@link DataObjectGroupType } - */ - public DataObjectGroupType createDataObjectGroupType() { - return new DataObjectGroupType(); - } - - /** - * Create an instance of {@link LogBookOgType } - * - * @return - * the new instance of {@link LogBookOgType } - */ - public LogBookOgType createLogBookOgType() { - return new LogBookOgType(); - } - - /** - * Create an instance of {@link EventLogBookOgType } - * - * @return - * the new instance of {@link EventLogBookOgType } - */ - public EventLogBookOgType createEventLogBookOgType() { - return new EventLogBookOgType(); - } - - /** - * Create an instance of {@link DataObjectPackageType } - * - * @return - * the new instance of {@link DataObjectPackageType } - */ - public DataObjectPackageType createDataObjectPackageType() { - return new DataObjectPackageType(); - } - - /** - * Create an instance of {@link ManagementMetadataType } - * - * @return - * the new instance of {@link ManagementMetadataType } - */ - public ManagementMetadataType createManagementMetadataType() { - return new ManagementMetadataType(); - } - - /** - * Create an instance of {@link AuthorizationRequestContentType } - * - * @return - * the new instance of {@link AuthorizationRequestContentType } - */ - public AuthorizationRequestContentType createAuthorizationRequestContentType() { - return new AuthorizationRequestContentType(); - } - - /** - * Create an instance of {@link DescriptiveMetadataType } - * - * @return - * the new instance of {@link DescriptiveMetadataType } - */ - public DescriptiveMetadataType createDescriptiveMetadataType() { - return new DescriptiveMetadataType(); - } - - /** - * Create an instance of {@link OperationType } - * - * @return - * the new instance of {@link OperationType } - */ - public OperationType createOperationType() { - return new OperationType(); - } - - /** - * Create an instance of {@link OrganizationWithIdType } - * - * @return - * the new instance of {@link OrganizationWithIdType } - */ - public OrganizationWithIdType createOrganizationWithIdType() { - return new OrganizationWithIdType(); - } - - /** - * 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 = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ObjectGroupExtenstionAbstract") - public JAXBElement createObjectGroupExtenstionAbstract(Object value) { - return new JAXBElement<>(_ObjectGroupExtenstionAbstract_QNAME, Object.class, null, 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 = "fr:gouv:culture:archivesdefrance:seda:v2", name = "OtherDimensionsAbstract") - public JAXBElement createOtherDimensionsAbstract(Object value) { - return new JAXBElement<>(_OtherDimensionsAbstract_QNAME, Object.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link OpenType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link OpenType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "OtherCoreTechnicalMetadataAbstract") - public JAXBElement createOtherCoreTechnicalMetadataAbstract(OpenType value) { - return new JAXBElement<>(_OtherCoreTechnicalMetadataAbstract_QNAME, OpenType.class, null, 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 = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ArchiveUnitReferenceAbstract") - public JAXBElement createArchiveUnitReferenceAbstract(Object value) { - return new JAXBElement<>(_ArchiveUnitReferenceAbstract_QNAME, Object.class, null, 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 = "fr:gouv:culture:archivesdefrance:seda:v2", name = "OtherManagementAbstract") - public JAXBElement createOtherManagementAbstract(Object value) { - return new JAXBElement<>(_OtherManagementAbstract_QNAME, Object.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CodeType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link CodeType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "OtherCodeListAbstract") - public JAXBElement createOtherCodeListAbstract(CodeType value) { - return new JAXBElement<>(_OtherCodeListAbstract_QNAME, CodeType.class, null, 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 = "fr:gouv:culture:archivesdefrance:seda:v2", name = "EventAbstract") - public JAXBElement createEventAbstract(Object value) { - return new JAXBElement<>(_EventAbstract_QNAME, Object.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AcknowledgementType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link AcknowledgementType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "Acknowledgement") - public JAXBElement createAcknowledgement(AcknowledgementType value) { - return new JAXBElement<>(_Acknowledgement_QNAME, AcknowledgementType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ArchiveDeliveryRequest") - public JAXBElement createArchiveDeliveryRequest(ArchiveDeliveryRequestType value) { - return new JAXBElement<>(_ArchiveDeliveryRequest_QNAME, ArchiveDeliveryRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ArchiveRestitutionRequest") - public JAXBElement createArchiveRestitutionRequest(ArchiveRestitutionRequestType value) { - return new JAXBElement<>(_ArchiveRestitutionRequest_QNAME, ArchiveRestitutionRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link ArchiveTransferType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ArchiveTransfer") - public JAXBElement createArchiveTransfer(ArchiveTransferType value) { - return new JAXBElement<>(_ArchiveTransfer_QNAME, ArchiveTransferType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ArchiveTransferRequest") - public JAXBElement createArchiveTransferRequest(ArchiveTransferRequestType value) { - return new JAXBElement<>(_ArchiveTransferRequest_QNAME, ArchiveTransferRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AuthorizationControlAuthorityRequestType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link AuthorizationControlAuthorityRequestType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "AuthorizationControlAuthorityRequest") - public JAXBElement createAuthorizationControlAuthorityRequest(AuthorizationControlAuthorityRequestType value) { - return new JAXBElement<>(_AuthorizationControlAuthorityRequest_QNAME, AuthorizationControlAuthorityRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AuthorizationOriginatingAgencyRequestType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link AuthorizationOriginatingAgencyRequestType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "AuthorizationOriginatingAgencyRequest") - public JAXBElement createAuthorizationOriginatingAgencyRequest(AuthorizationOriginatingAgencyRequestType value) { - return new JAXBElement<>(_AuthorizationOriginatingAgencyRequest_QNAME, AuthorizationOriginatingAgencyRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestReplyType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestReplyType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ArchiveDeliveryRequestReply") - public JAXBElement createArchiveDeliveryRequestReply(ArchiveDeliveryRequestReplyType value) { - return new JAXBElement<>(_ArchiveDeliveryRequestReply_QNAME, ArchiveDeliveryRequestReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestReplyType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestReplyType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ArchiveRestitutionRequestReply") - public JAXBElement createArchiveRestitutionRequestReply(ArchiveRestitutionRequestReplyType value) { - return new JAXBElement<>(_ArchiveRestitutionRequestReply_QNAME, ArchiveRestitutionRequestReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferReplyType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link ArchiveTransferReplyType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ArchiveTransferReply") - public JAXBElement createArchiveTransferReply(ArchiveTransferReplyType value) { - return new JAXBElement<>(_ArchiveTransferReply_QNAME, ArchiveTransferReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestReplyType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestReplyType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ArchiveTransferRequestReply") - public JAXBElement createArchiveTransferRequestReply(ArchiveTransferRequestReplyType value) { - return new JAXBElement<>(_ArchiveTransferRequestReply_QNAME, ArchiveTransferRequestReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AuthorizationControlAuthorityRequestReplyType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link AuthorizationControlAuthorityRequestReplyType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "AuthorizationControlAuthorityRequestReply") - public JAXBElement createAuthorizationControlAuthorityRequestReply(AuthorizationControlAuthorityRequestReplyType value) { - return new JAXBElement<>(_AuthorizationControlAuthorityRequestReply_QNAME, AuthorizationControlAuthorityRequestReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AuthorizationOriginatingAgencyRequestReplyType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link AuthorizationOriginatingAgencyRequestReplyType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "AuthorizationOriginatingAgencyRequestReply") - public JAXBElement createAuthorizationOriginatingAgencyRequestReply(AuthorizationOriginatingAgencyRequestReplyType value) { - return new JAXBElement<>(_AuthorizationOriginatingAgencyRequestReply_QNAME, AuthorizationOriginatingAgencyRequestReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDestructionNotificationType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link ArchiveDestructionNotificationType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ArchiveDestructionNotification") - public JAXBElement createArchiveDestructionNotification(ArchiveDestructionNotificationType value) { - return new JAXBElement<>(_ArchiveDestructionNotification_QNAME, ArchiveDestructionNotificationType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveModificationNotificationType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link ArchiveModificationNotificationType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ArchiveModificationNotification") - public JAXBElement createArchiveModificationNotification(ArchiveModificationNotificationType value) { - return new JAXBElement<>(_ArchiveModificationNotification_QNAME, ArchiveModificationNotificationType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveUnitType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link ArchiveUnitType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ArchiveUnit", scope = ArchiveUnitType.class) - public JAXBElement createArchiveUnitTypeArchiveUnit(ArchiveUnitType value) { - return new JAXBElement<>(_ArchiveUnitTypeArchiveUnit_QNAME, ArchiveUnitType.class, ArchiveUnitType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DataObjectRefType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link DataObjectRefType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "DataObjectReference", scope = ArchiveUnitType.class) - public JAXBElement createArchiveUnitTypeDataObjectReference(DataObjectRefType value) { - return new JAXBElement<>(_ArchiveUnitTypeDataObjectReference_QNAME, DataObjectRefType.class, ArchiveUnitType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ObjectGroupRefType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link ObjectGroupRefType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "DataObjectGroup", scope = ArchiveUnitType.class) - public JAXBElement createArchiveUnitTypeDataObjectGroup(ObjectGroupRefType value) { - return new JAXBElement<>(_ArchiveUnitTypeDataObjectGroup_QNAME, ObjectGroupRefType.class, ArchiveUnitType.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 = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ArchiveUnitRefId", scope = ToDeleteType.class) - @XmlIDREF - public JAXBElement createToDeleteTypeArchiveUnitRefId(Object value) { - return new JAXBElement<>(_ToDeleteTypeArchiveUnitRefId_QNAME, Object.class, ToDeleteType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link RuleIdType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link RuleIdType }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "Rule", scope = HoldRuleType.class) - public JAXBElement createHoldRuleTypeRule(RuleIdType value) { - return new JAXBElement<>(_HoldRuleTypeRule_QNAME, RuleIdType.class, HoldRuleType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "StartDate", scope = HoldRuleType.class) - public JAXBElement createHoldRuleTypeStartDate(XMLGregorianCalendar value) { - return new JAXBElement<>(_HoldRuleTypeStartDate_QNAME, XMLGregorianCalendar.class, HoldRuleType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "HoldEndDate", scope = HoldRuleType.class) - public JAXBElement createHoldRuleTypeHoldEndDate(XMLGregorianCalendar value) { - return new JAXBElement<>(_HoldRuleTypeHoldEndDate_QNAME, XMLGregorianCalendar.class, HoldRuleType.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 = "fr:gouv:culture:archivesdefrance:seda:v2", name = "HoldOwner", scope = HoldRuleType.class) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - public JAXBElement createHoldRuleTypeHoldOwner(String value) { - return new JAXBElement<>(_HoldRuleTypeHoldOwner_QNAME, String.class, HoldRuleType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "HoldReassessingDate", scope = HoldRuleType.class) - public JAXBElement createHoldRuleTypeHoldReassessingDate(XMLGregorianCalendar value) { - return new JAXBElement<>(_HoldRuleTypeHoldReassessingDate_QNAME, XMLGregorianCalendar.class, HoldRuleType.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 = "fr:gouv:culture:archivesdefrance:seda:v2", name = "HoldReason", scope = HoldRuleType.class) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - public JAXBElement createHoldRuleTypeHoldReason(String value) { - return new JAXBElement<>(_HoldRuleTypeHoldReason_QNAME, String.class, HoldRuleType.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 = "fr:gouv:culture:archivesdefrance:seda:v2", name = "PreventRearrangement", scope = HoldRuleType.class) - public JAXBElement createHoldRuleTypePreventRearrangement(Boolean value) { - return new JAXBElement<>(_HoldRuleTypePreventRearrangement_QNAME, Boolean.class, HoldRuleType.class, value); - } - + private static final QName _ObjectGroupExtenstionAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ObjectGroupExtenstionAbstract"); + private static final QName _OtherDimensionsAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "OtherDimensionsAbstract"); + private static final QName _OtherCoreTechnicalMetadataAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "OtherCoreTechnicalMetadataAbstract"); + private static final QName _ArchiveUnitReferenceAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveUnitReferenceAbstract"); + private static final QName _OtherManagementAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "OtherManagementAbstract"); + private static final QName _OtherCodeListAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "OtherCodeListAbstract"); + private static final QName _EventAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "EventAbstract"); + private static final QName _Acknowledgement_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "Acknowledgement"); + private static final QName _ArchiveDeliveryRequest_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveDeliveryRequest"); + private static final QName _ArchiveRestitutionRequest_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveRestitutionRequest"); + private static final QName _ArchiveTransfer_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveTransfer"); + private static final QName _ArchiveTransferRequest_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveTransferRequest"); + private static final QName _AuthorizationControlAuthorityRequest_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "AuthorizationControlAuthorityRequest"); + private static final QName _AuthorizationOriginatingAgencyRequest_QNAME = + new QName( + "fr:gouv:culture:archivesdefrance:seda:v2", "AuthorizationOriginatingAgencyRequest"); + private static final QName _ArchiveDeliveryRequestReply_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveDeliveryRequestReply"); + private static final QName _ArchiveRestitutionRequestReply_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveRestitutionRequestReply"); + private static final QName _ArchiveTransferReply_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveTransferReply"); + private static final QName _ArchiveTransferRequestReply_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveTransferRequestReply"); + private static final QName _AuthorizationControlAuthorityRequestReply_QNAME = + new QName( + "fr:gouv:culture:archivesdefrance:seda:v2", "AuthorizationControlAuthorityRequestReply"); + private static final QName _AuthorizationOriginatingAgencyRequestReply_QNAME = + new QName( + "fr:gouv:culture:archivesdefrance:seda:v2", "AuthorizationOriginatingAgencyRequestReply"); + private static final QName _ArchiveDestructionNotification_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveDestructionNotification"); + private static final QName _ArchiveModificationNotification_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveModificationNotification"); + private static final QName _ArchiveUnitTypeArchiveUnit_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveUnit"); + private static final QName _ArchiveUnitTypeDataObjectReference_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "DataObjectReference"); + private static final QName _ArchiveUnitTypeDataObjectGroup_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "DataObjectGroup"); + private static final QName _ToDeleteTypeArchiveUnitRefId_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "ArchiveUnitRefId"); + private static final QName _HoldRuleTypeRule_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "Rule"); + private static final QName _HoldRuleTypeStartDate_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "StartDate"); + private static final QName _HoldRuleTypeHoldEndDate_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "HoldEndDate"); + private static final QName _HoldRuleTypeHoldOwner_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "HoldOwner"); + private static final QName _HoldRuleTypeHoldReassessingDate_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "HoldReassessingDate"); + private static final QName _HoldRuleTypeHoldReason_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "HoldReason"); + private static final QName _HoldRuleTypePreventRearrangement_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2", "PreventRearrangement"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes + * for package: fr.gouv.culture.archivesdefrance.seda.v2 + */ + public ObjectFactory() {} + + /** + * Create an instance of {@link CodeType } + * + * @return the new instance of {@link CodeType } + */ + public CodeType createCodeType() { + return new CodeType(); + } + + /** + * Create an instance of {@link AcknowledgementType } + * + * @return the new instance of {@link AcknowledgementType } + */ + public AcknowledgementType createAcknowledgementType() { + return new AcknowledgementType(); + } + + /** + * Create an instance of {@link ArchiveDeliveryRequestType } + * + * @return the new instance of {@link ArchiveDeliveryRequestType } + */ + public ArchiveDeliveryRequestType createArchiveDeliveryRequestType() { + return new ArchiveDeliveryRequestType(); + } + + /** + * Create an instance of {@link ArchiveRestitutionRequestType } + * + * @return the new instance of {@link ArchiveRestitutionRequestType } + */ + public ArchiveRestitutionRequestType createArchiveRestitutionRequestType() { + return new ArchiveRestitutionRequestType(); + } + + /** + * Create an instance of {@link ArchiveTransferType } + * + * @return the new instance of {@link ArchiveTransferType } + */ + public ArchiveTransferType createArchiveTransferType() { + return new ArchiveTransferType(); + } + + /** + * Create an instance of {@link ArchiveTransferRequestType } + * + * @return the new instance of {@link ArchiveTransferRequestType } + */ + public ArchiveTransferRequestType createArchiveTransferRequestType() { + return new ArchiveTransferRequestType(); + } + + /** + * Create an instance of {@link AuthorizationControlAuthorityRequestType } + * + * @return the new instance of {@link AuthorizationControlAuthorityRequestType } + */ + public AuthorizationControlAuthorityRequestType createAuthorizationControlAuthorityRequestType() { + return new AuthorizationControlAuthorityRequestType(); + } + + /** + * Create an instance of {@link AuthorizationOriginatingAgencyRequestType } + * + * @return the new instance of {@link AuthorizationOriginatingAgencyRequestType } + */ + public AuthorizationOriginatingAgencyRequestType + createAuthorizationOriginatingAgencyRequestType() { + return new AuthorizationOriginatingAgencyRequestType(); + } + + /** + * Create an instance of {@link ArchiveDeliveryRequestReplyType } + * + * @return the new instance of {@link ArchiveDeliveryRequestReplyType } + */ + public ArchiveDeliveryRequestReplyType createArchiveDeliveryRequestReplyType() { + return new ArchiveDeliveryRequestReplyType(); + } + + /** + * Create an instance of {@link ArchiveRestitutionRequestReplyType } + * + * @return the new instance of {@link ArchiveRestitutionRequestReplyType } + */ + public ArchiveRestitutionRequestReplyType createArchiveRestitutionRequestReplyType() { + return new ArchiveRestitutionRequestReplyType(); + } + + /** + * Create an instance of {@link ArchiveTransferReplyType } + * + * @return the new instance of {@link ArchiveTransferReplyType } + */ + public ArchiveTransferReplyType createArchiveTransferReplyType() { + return new ArchiveTransferReplyType(); + } + + /** + * Create an instance of {@link ArchiveTransferRequestReplyType } + * + * @return the new instance of {@link ArchiveTransferRequestReplyType } + */ + public ArchiveTransferRequestReplyType createArchiveTransferRequestReplyType() { + return new ArchiveTransferRequestReplyType(); + } + + /** + * Create an instance of {@link AuthorizationControlAuthorityRequestReplyType } + * + * @return the new instance of {@link AuthorizationControlAuthorityRequestReplyType } + */ + public AuthorizationControlAuthorityRequestReplyType + createAuthorizationControlAuthorityRequestReplyType() { + return new AuthorizationControlAuthorityRequestReplyType(); + } + + /** + * Create an instance of {@link AuthorizationOriginatingAgencyRequestReplyType } + * + * @return the new instance of {@link AuthorizationOriginatingAgencyRequestReplyType } + */ + public AuthorizationOriginatingAgencyRequestReplyType + createAuthorizationOriginatingAgencyRequestReplyType() { + return new AuthorizationOriginatingAgencyRequestReplyType(); + } + + /** + * Create an instance of {@link ArchiveDestructionNotificationType } + * + * @return the new instance of {@link ArchiveDestructionNotificationType } + */ + public ArchiveDestructionNotificationType createArchiveDestructionNotificationType() { + return new ArchiveDestructionNotificationType(); + } + + /** + * Create an instance of {@link ArchiveModificationNotificationType } + * + * @return the new instance of {@link ArchiveModificationNotificationType } + */ + public ArchiveModificationNotificationType createArchiveModificationNotificationType() { + return new ArchiveModificationNotificationType(); + } + + /** + * Create an instance of {@link CustodialHistoryType } + * + * @return the new instance of {@link CustodialHistoryType } + */ + public CustodialHistoryType createCustodialHistoryType() { + return new CustodialHistoryType(); + } + + /** + * Create an instance of {@link CustodialHistoryItemType } + * + * @return the new instance of {@link CustodialHistoryItemType } + */ + public CustodialHistoryItemType createCustodialHistoryItemType() { + return new CustodialHistoryItemType(); + } + + /** + * Create an instance of {@link KeywordsType } + * + * @return the new instance of {@link KeywordsType } + */ + public KeywordsType createKeywordsType() { + return new KeywordsType(); + } + + /** + * Create an instance of {@link KeyType } + * + * @return the new instance of {@link KeyType } + */ + public KeyType createKeyType() { + return new KeyType(); + } + + /** + * Create an instance of {@link CoverageType } + * + * @return the new instance of {@link CoverageType } + */ + public CoverageType createCoverageType() { + return new CoverageType(); + } + + /** + * Create an instance of {@link RelatedObjectReferenceType } + * + * @return the new instance of {@link RelatedObjectReferenceType } + */ + public RelatedObjectReferenceType createRelatedObjectReferenceType() { + return new RelatedObjectReferenceType(); + } + + /** + * Create an instance of {@link DataObjectOrArchiveUnitReferenceType } + * + * @return the new instance of {@link DataObjectOrArchiveUnitReferenceType } + */ + public DataObjectOrArchiveUnitReferenceType createDataObjectOrArchiveUnitReferenceType() { + return new DataObjectOrArchiveUnitReferenceType(); + } + + /** + * Create an instance of {@link EventType } + * + * @return the new instance of {@link EventType } + */ + public EventType createEventType() { + return new EventType(); + } + + /** + * Create an instance of {@link LinkingAgentIdentifierType } + * + * @return the new instance of {@link LinkingAgentIdentifierType } + */ + public LinkingAgentIdentifierType createLinkingAgentIdentifierType() { + return new LinkingAgentIdentifierType(); + } + + /** + * Create an instance of {@link SignatureType } + * + * @return the new instance of {@link SignatureType } + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link SignerType } + * + * @return the new instance of {@link SignerType } + */ + public SignerType createSignerType() { + return new SignerType(); + } + + /** + * Create an instance of {@link ValidatorType } + * + * @return the new instance of {@link ValidatorType } + */ + public ValidatorType createValidatorType() { + return new ValidatorType(); + } + + /** + * Create an instance of {@link ReferencedObjectType } + * + * @return the new instance of {@link ReferencedObjectType } + */ + public ReferencedObjectType createReferencedObjectType() { + return new ReferencedObjectType(); + } + + /** + * Create an instance of {@link AgentType } + * + * @return the new instance of {@link AgentType } + */ + public AgentType createAgentType() { + return new AgentType(); + } + + /** + * Create an instance of {@link BirthOrDeathPlaceType } + * + * @return the new instance of {@link BirthOrDeathPlaceType } + */ + public BirthOrDeathPlaceType createBirthOrDeathPlaceType() { + return new BirthOrDeathPlaceType(); + } + + /** + * Create an instance of {@link GpsType } + * + * @return the new instance of {@link GpsType } + */ + public GpsType createGpsType() { + return new GpsType(); + } + + /** + * Create an instance of {@link TextType } + * + * @return the new instance of {@link TextType } + */ + public TextType createTextType() { + return new TextType(); + } + + /** + * Create an instance of {@link IdentifierType } + * + * @return the new instance of {@link IdentifierType } + */ + public IdentifierType createIdentifierType() { + return new IdentifierType(); + } + + /** + * Create an instance of {@link DataObjectRefType } + * + * @return the new instance of {@link DataObjectRefType } + */ + public DataObjectRefType createDataObjectRefType() { + return new DataObjectRefType(); + } + + /** + * Create an instance of {@link MessageDigestBinaryObjectType } + * + * @return the new instance of {@link MessageDigestBinaryObjectType } + */ + public MessageDigestBinaryObjectType createMessageDigestBinaryObjectType() { + return new MessageDigestBinaryObjectType(); + } + + /** + * Create an instance of {@link BinaryObjectType } + * + * @return the new instance of {@link BinaryObjectType } + */ + public BinaryObjectType createBinaryObjectType() { + return new BinaryObjectType(); + } + + /** + * Create an instance of {@link RelationshipType } + * + * @return the new instance of {@link RelationshipType } + */ + public RelationshipType createRelationshipType() { + return new RelationshipType(); + } + + /** + * Create an instance of {@link OrganizationType } + * + * @return the new instance of {@link OrganizationType } + */ + public OrganizationType createOrganizationType() { + return new OrganizationType(); + } + + /** + * Create an instance of {@link OrganizationDescriptiveMetadataType } + * + * @return the new instance of {@link OrganizationDescriptiveMetadataType } + */ + public OrganizationDescriptiveMetadataType createOrganizationDescriptiveMetadataType() { + return new OrganizationDescriptiveMetadataType(); + } + + /** + * Create an instance of {@link SignatureMessageType } + * + * @return the new instance of {@link SignatureMessageType } + */ + public SignatureMessageType createSignatureMessageType() { + return new SignatureMessageType(); + } + + /** + * Create an instance of {@link TextTechnicalMetadataType } + * + * @return the new instance of {@link TextTechnicalMetadataType } + */ + public TextTechnicalMetadataType createTextTechnicalMetadataType() { + return new TextTechnicalMetadataType(); + } + + /** + * Create an instance of {@link DocumentTechnicalMetadataType } + * + * @return the new instance of {@link DocumentTechnicalMetadataType } + */ + public DocumentTechnicalMetadataType createDocumentTechnicalMetadataType() { + return new DocumentTechnicalMetadataType(); + } + + /** + * Create an instance of {@link ImageTechnicalMetadataType } + * + * @return the new instance of {@link ImageTechnicalMetadataType } + */ + public ImageTechnicalMetadataType createImageTechnicalMetadataType() { + return new ImageTechnicalMetadataType(); + } + + /** + * Create an instance of {@link AudioTechnicalMetadataType } + * + * @return the new instance of {@link AudioTechnicalMetadataType } + */ + public AudioTechnicalMetadataType createAudioTechnicalMetadataType() { + return new AudioTechnicalMetadataType(); + } + + /** + * Create an instance of {@link VideoTechnicalMetadataType } + * + * @return the new instance of {@link VideoTechnicalMetadataType } + */ + public VideoTechnicalMetadataType createVideoTechnicalMetadataType() { + return new VideoTechnicalMetadataType(); + } + + /** + * Create an instance of {@link DescriptiveTechnicalMetadataType } + * + * @return the new instance of {@link DescriptiveTechnicalMetadataType } + */ + public DescriptiveTechnicalMetadataType createDescriptiveTechnicalMetadataType() { + return new DescriptiveTechnicalMetadataType(); + } + + /** + * Create an instance of {@link BinaryDataObjectType } + * + * @return the new instance of {@link BinaryDataObjectType } + */ + public BinaryDataObjectType createBinaryDataObjectType() { + return new BinaryDataObjectType(); + } + + /** + * Create an instance of {@link CompressedType } + * + * @return the new instance of {@link CompressedType } + */ + public CompressedType createCompressedType() { + return new CompressedType(); + } + + /** + * Create an instance of {@link FormatIdentificationType } + * + * @return the new instance of {@link FormatIdentificationType } + */ + public FormatIdentificationType createFormatIdentificationType() { + return new FormatIdentificationType(); + } + + /** + * Create an instance of {@link FileInfoType } + * + * @return the new instance of {@link FileInfoType } + */ + public FileInfoType createFileInfoType() { + return new FileInfoType(); + } + + /** + * Create an instance of {@link PhysicalDataObjectType } + * + * @return the new instance of {@link PhysicalDataObjectType } + */ + public PhysicalDataObjectType createPhysicalDataObjectType() { + return new PhysicalDataObjectType(); + } + + /** + * Create an instance of {@link CoreMetadataType } + * + * @return the new instance of {@link CoreMetadataType } + */ + public CoreMetadataType createCoreMetadataType() { + return new CoreMetadataType(); + } + + /** + * Create an instance of {@link DimensionsType } + * + * @return the new instance of {@link DimensionsType } + */ + public DimensionsType createDimensionsType() { + return new DimensionsType(); + } + + /** + * Create an instance of {@link MeasurementType } + * + * @return the new instance of {@link MeasurementType } + */ + public MeasurementType createMeasurementType() { + return new MeasurementType(); + } + + /** + * Create an instance of {@link MeasurementWeightType } + * + * @return the new instance of {@link MeasurementWeightType } + */ + public MeasurementWeightType createMeasurementWeightType() { + return new MeasurementWeightType(); + } + + /** + * Create an instance of {@link RuleIdType } + * + * @return the new instance of {@link RuleIdType } + */ + public RuleIdType createRuleIdType() { + return new RuleIdType(); + } + + /** + * Create an instance of {@link LogBookType } + * + * @return the new instance of {@link LogBookType } + */ + public LogBookType createLogBookType() { + return new LogBookType(); + } + + /** + * Create an instance of {@link AccessRuleType } + * + * @return the new instance of {@link AccessRuleType } + */ + public AccessRuleType createAccessRuleType() { + return new AccessRuleType(); + } + + /** + * Create an instance of {@link DisseminationRuleType } + * + * @return the new instance of {@link DisseminationRuleType } + */ + public DisseminationRuleType createDisseminationRuleType() { + return new DisseminationRuleType(); + } + + /** + * Create an instance of {@link ReuseRuleType } + * + * @return the new instance of {@link ReuseRuleType } + */ + public ReuseRuleType createReuseRuleType() { + return new ReuseRuleType(); + } + + /** + * Create an instance of {@link ClassificationRuleType } + * + * @return the new instance of {@link ClassificationRuleType } + */ + public ClassificationRuleType createClassificationRuleType() { + return new ClassificationRuleType(); + } + + /** + * Create an instance of {@link StorageRuleType } + * + * @return the new instance of {@link StorageRuleType } + */ + public StorageRuleType createStorageRuleType() { + return new StorageRuleType(); + } + + /** + * Create an instance of {@link AppraisalRuleType } + * + * @return the new instance of {@link AppraisalRuleType } + */ + public AppraisalRuleType createAppraisalRuleType() { + return new AppraisalRuleType(); + } + + /** + * Create an instance of {@link UpdateOperationType } + * + * @return the new instance of {@link UpdateOperationType } + */ + public UpdateOperationType createUpdateOperationType() { + return new UpdateOperationType(); + } + + /** + * Create an instance of {@link HoldRuleType } + * + * @return the new instance of {@link HoldRuleType } + */ + public HoldRuleType createHoldRuleType() { + return new HoldRuleType(); + } + + /** + * Create an instance of {@link ArchiveUnitIdentifierKeyType } + * + * @return the new instance of {@link ArchiveUnitIdentifierKeyType } + */ + public ArchiveUnitIdentifierKeyType createArchiveUnitIdentifierKeyType() { + return new ArchiveUnitIdentifierKeyType(); + } + + /** + * Create an instance of {@link ToDeleteType } + * + * @return the new instance of {@link ToDeleteType } + */ + public ToDeleteType createToDeleteType() { + return new ToDeleteType(); + } + + /** + * Create an instance of {@link ArchiveUnitType } + * + * @return the new instance of {@link ArchiveUnitType } + */ + public ArchiveUnitType createArchiveUnitType() { + return new ArchiveUnitType(); + } + + /** + * Create an instance of {@link ManagementType } + * + * @return the new instance of {@link ManagementType } + */ + public ManagementType createManagementType() { + return new ManagementType(); + } + + /** + * Create an instance of {@link ObjectGroupRefType } + * + * @return the new instance of {@link ObjectGroupRefType } + */ + public ObjectGroupRefType createObjectGroupRefType() { + return new ObjectGroupRefType(); + } + + /** + * Create an instance of {@link DescriptiveMetadataContentType } + * + * @return the new instance of {@link DescriptiveMetadataContentType } + */ + public DescriptiveMetadataContentType createDescriptiveMetadataContentType() { + return new DescriptiveMetadataContentType(); + } + + /** + * Create an instance of {@link ManagementHistoryType } + * + * @return the new instance of {@link ManagementHistoryType } + */ + public ManagementHistoryType createManagementHistoryType() { + return new ManagementHistoryType(); + } + + /** + * Create an instance of {@link ManagementHistoryDataType } + * + * @return the new instance of {@link ManagementHistoryDataType } + */ + public ManagementHistoryDataType createManagementHistoryDataType() { + return new ManagementHistoryDataType(); + } + + /** + * Create an instance of {@link CodeListVersionsType } + * + * @return the new instance of {@link CodeListVersionsType } + */ + public CodeListVersionsType createCodeListVersionsType() { + return new CodeListVersionsType(); + } + + /** + * Create an instance of {@link DataObjectGroupType } + * + * @return the new instance of {@link DataObjectGroupType } + */ + public DataObjectGroupType createDataObjectGroupType() { + return new DataObjectGroupType(); + } + + /** + * Create an instance of {@link LogBookOgType } + * + * @return the new instance of {@link LogBookOgType } + */ + public LogBookOgType createLogBookOgType() { + return new LogBookOgType(); + } + + /** + * Create an instance of {@link EventLogBookOgType } + * + * @return the new instance of {@link EventLogBookOgType } + */ + public EventLogBookOgType createEventLogBookOgType() { + return new EventLogBookOgType(); + } + + /** + * Create an instance of {@link DataObjectPackageType } + * + * @return the new instance of {@link DataObjectPackageType } + */ + public DataObjectPackageType createDataObjectPackageType() { + return new DataObjectPackageType(); + } + + /** + * Create an instance of {@link ManagementMetadataType } + * + * @return the new instance of {@link ManagementMetadataType } + */ + public ManagementMetadataType createManagementMetadataType() { + return new ManagementMetadataType(); + } + + /** + * Create an instance of {@link AuthorizationRequestContentType } + * + * @return the new instance of {@link AuthorizationRequestContentType } + */ + public AuthorizationRequestContentType createAuthorizationRequestContentType() { + return new AuthorizationRequestContentType(); + } + + /** + * Create an instance of {@link DescriptiveMetadataType } + * + * @return the new instance of {@link DescriptiveMetadataType } + */ + public DescriptiveMetadataType createDescriptiveMetadataType() { + return new DescriptiveMetadataType(); + } + + /** + * Create an instance of {@link OperationType } + * + * @return the new instance of {@link OperationType } + */ + public OperationType createOperationType() { + return new OperationType(); + } + + /** + * Create an instance of {@link OrganizationWithIdType } + * + * @return the new instance of {@link OrganizationWithIdType } + */ + public OrganizationWithIdType createOrganizationWithIdType() { + return new OrganizationWithIdType(); + } + + /** + * 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 = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "ObjectGroupExtenstionAbstract") + public JAXBElement createObjectGroupExtenstionAbstract(Object value) { + return new JAXBElement<>(_ObjectGroupExtenstionAbstract_QNAME, Object.class, null, 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 = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "OtherDimensionsAbstract") + public JAXBElement createOtherDimensionsAbstract(Object value) { + return new JAXBElement<>(_OtherDimensionsAbstract_QNAME, Object.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link OpenType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link OpenType }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "OtherCoreTechnicalMetadataAbstract") + public JAXBElement createOtherCoreTechnicalMetadataAbstract(OpenType value) { + return new JAXBElement<>( + _OtherCoreTechnicalMetadataAbstract_QNAME, OpenType.class, null, 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 = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "ArchiveUnitReferenceAbstract") + public JAXBElement createArchiveUnitReferenceAbstract(Object value) { + return new JAXBElement<>(_ArchiveUnitReferenceAbstract_QNAME, Object.class, null, 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 = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "OtherManagementAbstract") + public JAXBElement createOtherManagementAbstract(Object value) { + return new JAXBElement<>(_OtherManagementAbstract_QNAME, Object.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CodeType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link CodeType }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "OtherCodeListAbstract") + public JAXBElement createOtherCodeListAbstract(CodeType value) { + return new JAXBElement<>(_OtherCodeListAbstract_QNAME, CodeType.class, null, 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 = "fr:gouv:culture:archivesdefrance:seda:v2", name = "EventAbstract") + public JAXBElement createEventAbstract(Object value) { + return new JAXBElement<>(_EventAbstract_QNAME, Object.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AcknowledgementType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link AcknowledgementType }{@code >} + */ + @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "Acknowledgement") + public JAXBElement createAcknowledgement(AcknowledgementType value) { + return new JAXBElement<>(_Acknowledgement_QNAME, AcknowledgementType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestType + * }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "ArchiveDeliveryRequest") + public JAXBElement createArchiveDeliveryRequest( + ArchiveDeliveryRequestType value) { + return new JAXBElement<>( + _ArchiveDeliveryRequest_QNAME, ArchiveDeliveryRequestType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestType }{@code + * >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestType + * }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "ArchiveRestitutionRequest") + public JAXBElement createArchiveRestitutionRequest( + ArchiveRestitutionRequestType value) { + return new JAXBElement<>( + _ArchiveRestitutionRequest_QNAME, ArchiveRestitutionRequestType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link ArchiveTransferType }{@code >} + */ + @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", name = "ArchiveTransfer") + public JAXBElement createArchiveTransfer(ArchiveTransferType value) { + return new JAXBElement<>(_ArchiveTransfer_QNAME, ArchiveTransferType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestType + * }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "ArchiveTransferRequest") + public JAXBElement createArchiveTransferRequest( + ArchiveTransferRequestType value) { + return new JAXBElement<>( + _ArchiveTransferRequest_QNAME, ArchiveTransferRequestType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link + * AuthorizationControlAuthorityRequestType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link + * AuthorizationControlAuthorityRequestType }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "AuthorizationControlAuthorityRequest") + public JAXBElement + createAuthorizationControlAuthorityRequest(AuthorizationControlAuthorityRequestType value) { + return new JAXBElement<>( + _AuthorizationControlAuthorityRequest_QNAME, + AuthorizationControlAuthorityRequestType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link + * AuthorizationOriginatingAgencyRequestType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link + * AuthorizationOriginatingAgencyRequestType }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "AuthorizationOriginatingAgencyRequest") + public JAXBElement + createAuthorizationOriginatingAgencyRequest(AuthorizationOriginatingAgencyRequestType value) { + return new JAXBElement<>( + _AuthorizationOriginatingAgencyRequest_QNAME, + AuthorizationOriginatingAgencyRequestType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestReplyType + * }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestReplyType + * }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "ArchiveDeliveryRequestReply") + public JAXBElement createArchiveDeliveryRequestReply( + ArchiveDeliveryRequestReplyType value) { + return new JAXBElement<>( + _ArchiveDeliveryRequestReply_QNAME, ArchiveDeliveryRequestReplyType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestReplyType + * }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link + * ArchiveRestitutionRequestReplyType }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "ArchiveRestitutionRequestReply") + public JAXBElement createArchiveRestitutionRequestReply( + ArchiveRestitutionRequestReplyType value) { + return new JAXBElement<>( + _ArchiveRestitutionRequestReply_QNAME, + ArchiveRestitutionRequestReplyType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferReplyType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link ArchiveTransferReplyType + * }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "ArchiveTransferReply") + public JAXBElement createArchiveTransferReply( + ArchiveTransferReplyType value) { + return new JAXBElement<>( + _ArchiveTransferReply_QNAME, ArchiveTransferReplyType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestReplyType + * }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestReplyType + * }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "ArchiveTransferRequestReply") + public JAXBElement createArchiveTransferRequestReply( + ArchiveTransferRequestReplyType value) { + return new JAXBElement<>( + _ArchiveTransferRequestReply_QNAME, ArchiveTransferRequestReplyType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link + * AuthorizationControlAuthorityRequestReplyType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link + * AuthorizationControlAuthorityRequestReplyType }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "AuthorizationControlAuthorityRequestReply") + public JAXBElement + createAuthorizationControlAuthorityRequestReply( + AuthorizationControlAuthorityRequestReplyType value) { + return new JAXBElement<>( + _AuthorizationControlAuthorityRequestReply_QNAME, + AuthorizationControlAuthorityRequestReplyType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link + * AuthorizationOriginatingAgencyRequestReplyType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link + * AuthorizationOriginatingAgencyRequestReplyType }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "AuthorizationOriginatingAgencyRequestReply") + public JAXBElement + createAuthorizationOriginatingAgencyRequestReply( + AuthorizationOriginatingAgencyRequestReplyType value) { + return new JAXBElement<>( + _AuthorizationOriginatingAgencyRequestReply_QNAME, + AuthorizationOriginatingAgencyRequestReplyType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDestructionNotificationType + * }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link + * ArchiveDestructionNotificationType }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "ArchiveDestructionNotification") + public JAXBElement createArchiveDestructionNotification( + ArchiveDestructionNotificationType value) { + return new JAXBElement<>( + _ArchiveDestructionNotification_QNAME, + ArchiveDestructionNotificationType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveModificationNotificationType + * }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link + * ArchiveModificationNotificationType }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "ArchiveModificationNotification") + public JAXBElement createArchiveModificationNotification( + ArchiveModificationNotificationType value) { + return new JAXBElement<>( + _ArchiveModificationNotification_QNAME, + ArchiveModificationNotificationType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveUnitType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link ArchiveUnitType }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "ArchiveUnit", + scope = ArchiveUnitType.class) + public JAXBElement createArchiveUnitTypeArchiveUnit(ArchiveUnitType value) { + return new JAXBElement<>( + _ArchiveUnitTypeArchiveUnit_QNAME, ArchiveUnitType.class, ArchiveUnitType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DataObjectRefType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link DataObjectRefType }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "DataObjectReference", + scope = ArchiveUnitType.class) + public JAXBElement createArchiveUnitTypeDataObjectReference( + DataObjectRefType value) { + return new JAXBElement<>( + _ArchiveUnitTypeDataObjectReference_QNAME, + DataObjectRefType.class, + ArchiveUnitType.class, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ObjectGroupRefType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link ObjectGroupRefType }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "DataObjectGroup", + scope = ArchiveUnitType.class) + public JAXBElement createArchiveUnitTypeDataObjectGroup( + ObjectGroupRefType value) { + return new JAXBElement<>( + _ArchiveUnitTypeDataObjectGroup_QNAME, + ObjectGroupRefType.class, + ArchiveUnitType.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 = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "ArchiveUnitRefId", + scope = ToDeleteType.class) + @XmlIDREF + public JAXBElement createToDeleteTypeArchiveUnitRefId(Object value) { + return new JAXBElement<>( + _ToDeleteTypeArchiveUnitRefId_QNAME, Object.class, ToDeleteType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RuleIdType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link RuleIdType }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "Rule", + scope = HoldRuleType.class) + public JAXBElement createHoldRuleTypeRule(RuleIdType value) { + return new JAXBElement<>(_HoldRuleTypeRule_QNAME, RuleIdType.class, HoldRuleType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "StartDate", + scope = HoldRuleType.class) + public JAXBElement createHoldRuleTypeStartDate(XMLGregorianCalendar value) { + return new JAXBElement<>( + _HoldRuleTypeStartDate_QNAME, XMLGregorianCalendar.class, HoldRuleType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "HoldEndDate", + scope = HoldRuleType.class) + public JAXBElement createHoldRuleTypeHoldEndDate( + XMLGregorianCalendar value) { + return new JAXBElement<>( + _HoldRuleTypeHoldEndDate_QNAME, XMLGregorianCalendar.class, HoldRuleType.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 = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "HoldOwner", + scope = HoldRuleType.class) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + public JAXBElement createHoldRuleTypeHoldOwner(String value) { + return new JAXBElement<>(_HoldRuleTypeHoldOwner_QNAME, String.class, HoldRuleType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >} + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "HoldReassessingDate", + scope = HoldRuleType.class) + public JAXBElement createHoldRuleTypeHoldReassessingDate( + XMLGregorianCalendar value) { + return new JAXBElement<>( + _HoldRuleTypeHoldReassessingDate_QNAME, + XMLGregorianCalendar.class, + HoldRuleType.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 = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "HoldReason", + scope = HoldRuleType.class) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + public JAXBElement createHoldRuleTypeHoldReason(String value) { + return new JAXBElement<>( + _HoldRuleTypeHoldReason_QNAME, String.class, HoldRuleType.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 = "fr:gouv:culture:archivesdefrance:seda:v2", + name = "PreventRearrangement", + scope = HoldRuleType.class) + public JAXBElement createHoldRuleTypePreventRearrangement(Boolean value) { + return new JAXBElement<>( + _HoldRuleTypePreventRearrangement_QNAME, Boolean.class, HoldRuleType.class, value); + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ObjectGroupRefType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ObjectGroupRefType.java index bf67e45..15863d9 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ObjectGroupRefType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ObjectGroupRefType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -15,14 +14,13 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** * Référence à un objet-données ou à un groupe d'objets-données existant. - * + * *

Java class for ObjectGroupRefType complex type. - * + * *

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

{@code
  * 
  *   
@@ -35,69 +33,58 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ObjectGroupRefType", propOrder = { - "dataObjectReference", - "dataObjectGroupExistingReferenceId" -}) +@XmlType( + name = "ObjectGroupRefType", + propOrder = {"dataObjectReference", "dataObjectGroupExistingReferenceId"}) public class ObjectGroupRefType { - @XmlElement(name = "DataObjectReference") - protected DataObjectRefType dataObjectReference; - @XmlElement(name = "DataObjectGroupExistingReferenceId", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String dataObjectGroupExistingReferenceId; + /** Permet de faire référence à un objet-donnée binaire ou physique déjà existant. */ + @XmlElement(name = "DataObjectReference") + protected DataObjectRefType dataObjectReference; - /** - * Gets the value of the dataObjectReference property. - * - * @return - * possible object is - * {@link DataObjectRefType } - * - */ - public DataObjectRefType getDataObjectReference() { - return dataObjectReference; - } + /** Référence à un groupe d'objets-données déjà existants. */ + @XmlElement(name = "DataObjectGroupExistingReferenceId", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String dataObjectGroupExistingReferenceId; - /** - * Sets the value of the dataObjectReference property. - * - * @param value - * allowed object is - * {@link DataObjectRefType } - * - */ - public void setDataObjectReference(DataObjectRefType value) { - this.dataObjectReference = value; - } + /** + * Permet de faire référence à un objet-donnée binaire ou physique déjà existant. + * + * @return possible object is {@link DataObjectRefType } + */ + public DataObjectRefType getDataObjectReference() { + return dataObjectReference; + } - /** - * Gets the value of the dataObjectGroupExistingReferenceId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getDataObjectGroupExistingReferenceId() { - return dataObjectGroupExistingReferenceId; - } + /** + * Sets the value of the dataObjectReference property. + * + * @param value allowed object is {@link DataObjectRefType } + * @see #getDataObjectReference() + */ + public void setDataObjectReference(DataObjectRefType value) { + this.dataObjectReference = value; + } - /** - * Sets the value of the dataObjectGroupExistingReferenceId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setDataObjectGroupExistingReferenceId(String value) { - this.dataObjectGroupExistingReferenceId = value; - } + /** + * Référence à un groupe d'objets-données déjà existants. + * + * @return possible object is {@link String } + */ + public String getDataObjectGroupExistingReferenceId() { + return dataObjectGroupExistingReferenceId; + } + /** + * Sets the value of the dataObjectGroupExistingReferenceId property. + * + * @param value allowed object is {@link String } + * @see #getDataObjectGroupExistingReferenceId() + */ + public void setDataObjectGroupExistingReferenceId(String value) { + this.dataObjectGroupExistingReferenceId = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OpenType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OpenType.java index c7c62e1..b0f18a9 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OpenType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OpenType.java @@ -1,14 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAnyElement; @@ -19,14 +16,15 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.util.ArrayList; +import java.util.List; import org.w3c.dom.Element; - /** - *

Java class for OpenType complex type. - * + * Java class for OpenType complex type. + * *

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

{@code
  * 
  *   
@@ -39,113 +37,116 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "OpenType", propOrder = { - "any" -}) +@XmlType( + name = "OpenType", + propOrder = {"any"}) @XmlSeeAlso({ - OrganizationDescriptiveMetadataType.class, - SignatureMessageType.class, - TextTechnicalMetadataType.class, - DocumentTechnicalMetadataType.class, - ImageTechnicalMetadataType.class, - AudioTechnicalMetadataType.class, - VideoTechnicalMetadataType.class, - DescriptiveTechnicalMetadataType.class + OrganizationDescriptiveMetadataType.class, + SignatureMessageType.class, + TextTechnicalMetadataType.class, + DocumentTechnicalMetadataType.class, + ImageTechnicalMetadataType.class, + AudioTechnicalMetadataType.class, + VideoTechnicalMetadataType.class, + DescriptiveTechnicalMetadataType.class }) public abstract class OpenType { - @XmlAnyElement(lax = true) - protected List any; - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") - protected String href; + @XmlAnyElement(lax = true) + protected List any; - /** - * Gets the value of the any 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the any property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link Object } - * {@link Element } - * - * - * @return - * The value of the any property. - */ - public List getAny() { - if (any == null) { - any = new ArrayList<>(); - } - return this.any; - } + /** + * + * + *
+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>id (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        should be interpreted as if declared to be of type ID.
+   *        This name is reserved by virtue of its definition in the
+   *        xml:id specification.</p><p>
+   *       See <a href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+   *       for information about this attribute.</p></div>
+   * 
+ */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + protected String href; - /** - * 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 any 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 any property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link Object } {@link Element } + * + * @return The value of the any property. + */ + public List getAny() { + if (any == null) { + any = new ArrayList<>(); } + return this.any; + } - /** - * Gets the value of the href property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getHref() { - return href; - } + /** + * + * + *
+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>id (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        should be interpreted as if declared to be of type ID.
+   *        This name is reserved by virtue of its definition in the
+   *        xml:id specification.</p><p>
+   *       See <a href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+   *       for information about this attribute.</p></div>
+   * 
+ * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } - /** - * Sets the value of the href property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setHref(String value) { - this.href = value; - } + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link String } + * @see #getId() + */ + public void setId(String value) { + this.id = value; + } + + /** + * Gets the value of the href property. + * + * @return possible object is {@link String } + */ + public String getHref() { + return href; + } + /** + * Sets the value of the href property. + * + * @param value allowed object is {@link String } + */ + public void setHref(String value) { + this.href = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OperationType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OperationType.java index af0ca08..9e21f1e 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OperationType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OperationType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for OperationType complex type. - * + * Java class for OperationType complex type. + * *

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

{@code
  * 
  *   
@@ -31,47 +29,37 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "OperationType", propOrder = { - "event" -}) +@XmlType( + name = "OperationType", + propOrder = {"event"}) public class OperationType { - @XmlElement(name = "Event") - protected List event; + @XmlElement(name = "Event") + protected List event; - /** - * Gets the value of the event 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the event property. - * - *

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

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

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

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

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

Objects of the following type(s) are allowed in the list {@link EventType } + * + * @return The value of the event property. + */ + public List getEvent() { + if (event == null) { + event = new ArrayList<>(); } - + return this.event; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OrganizationDescriptiveMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OrganizationDescriptiveMetadataType.java index a2d90c0..af63fbf 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OrganizationDescriptiveMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OrganizationDescriptiveMetadataType.java @@ -1,24 +1,22 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlType; - /** * Contient toutes les métadonnées de description des organisations. - * + * *

Java class for OrganizationDescriptiveMetadataType complex type. - * + * *

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

{@code
  * 
  *   
@@ -27,14 +25,7 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "OrganizationDescriptiveMetadataType") -public class OrganizationDescriptiveMetadataType - extends OpenType -{ - - -} +public class OrganizationDescriptiveMetadataType extends OpenType {} diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OrganizationType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OrganizationType.java index 89750cc..f5e338a 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OrganizationType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OrganizationType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -13,12 +12,11 @@ import jakarta.xml.bind.annotation.XmlSeeAlso; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for OrganizationType complex type. - * + * Java class for OrganizationType complex type. + * *

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

{@code
  * 
  *   
@@ -31,70 +29,57 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "OrganizationType", propOrder = { - "identifier", - "organizationDescriptiveMetadata" -}) -@XmlSeeAlso({ - OrganizationWithIdType.class -}) +@XmlType( + name = "OrganizationType", + propOrder = {"identifier", "organizationDescriptiveMetadata"}) +@XmlSeeAlso({OrganizationWithIdType.class}) public class OrganizationType { - @XmlElement(name = "Identifier", required = true) - protected IdentifierType identifier; - @XmlElement(name = "OrganizationDescriptiveMetadata") - protected OrganizationDescriptiveMetadataType organizationDescriptiveMetadata; + /** Identifiant de l'organisation. */ + @XmlElement(name = "Identifier", required = true) + protected IdentifierType identifier; - /** - * Gets the value of the identifier property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getIdentifier() { - return identifier; - } + /** Métadonnées de description de l'organisation. */ + @XmlElement(name = "OrganizationDescriptiveMetadata") + protected OrganizationDescriptiveMetadataType organizationDescriptiveMetadata; - /** - * Sets the value of the identifier property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setIdentifier(IdentifierType value) { - this.identifier = value; - } + /** + * Identifiant de l'organisation. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getIdentifier() { + return identifier; + } - /** - * Gets the value of the organizationDescriptiveMetadata property. - * - * @return - * possible object is - * {@link OrganizationDescriptiveMetadataType } - * - */ - public OrganizationDescriptiveMetadataType getOrganizationDescriptiveMetadata() { - return organizationDescriptiveMetadata; - } + /** + * Sets the value of the identifier property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getIdentifier() + */ + public void setIdentifier(IdentifierType value) { + this.identifier = value; + } - /** - * Sets the value of the organizationDescriptiveMetadata property. - * - * @param value - * allowed object is - * {@link OrganizationDescriptiveMetadataType } - * - */ - public void setOrganizationDescriptiveMetadata(OrganizationDescriptiveMetadataType value) { - this.organizationDescriptiveMetadata = value; - } + /** + * Métadonnées de description de l'organisation. + * + * @return possible object is {@link OrganizationDescriptiveMetadataType } + */ + public OrganizationDescriptiveMetadataType getOrganizationDescriptiveMetadata() { + return organizationDescriptiveMetadata; + } + /** + * Sets the value of the organizationDescriptiveMetadata property. + * + * @param value allowed object is {@link OrganizationDescriptiveMetadataType } + * @see #getOrganizationDescriptiveMetadata() + */ + public void setOrganizationDescriptiveMetadata(OrganizationDescriptiveMetadataType value) { + this.organizationDescriptiveMetadata = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OrganizationWithIdType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OrganizationWithIdType.java index 332fcf2..6225041 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OrganizationWithIdType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/OrganizationWithIdType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -16,12 +15,11 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** - *

Java class for OrganizationWithIdType complex type. - * + * Java class for OrganizationWithIdType complex type. + * *

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

{@code
  * 
  *   
@@ -31,43 +29,56 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "OrganizationWithIdType") -public class OrganizationWithIdType - extends OrganizationType -{ - - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; +public class OrganizationWithIdType extends OrganizationType { - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } + /** + * + * + *
+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>id (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        should be interpreted as if declared to be of type ID.
+   *        This name is reserved by virtue of its definition in the
+   *        xml:id specification.</p><p>
+   *       See <a href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+   *       for information about this attribute.</p></div>
+   * 
+ */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Sets the value of the id property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setId(String value) { - this.id = value; - } + /** + * + * + *
+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>id (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        should be interpreted as if declared to be of type ID.
+   *        This name is reserved by virtue of its definition in the
+   *        xml:id specification.</p><p>
+   *       See <a href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+   *       for information about this attribute.</p></div>
+   * 
+ * + * @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 } + * @see #getId() + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/PhysicalDataObjectType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/PhysicalDataObjectType.java index 12e1786..90c1ed0 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/PhysicalDataObjectType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/PhysicalDataObjectType.java @@ -1,28 +1,26 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAnyElement; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlRootElement; import jakarta.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; import org.w3c.dom.Element; - /** - *

Java class for PhysicalDataObjectType complex type. - * + * Java class for PhysicalDataObjectType complex type. + * *

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

{@code
  * 
  *   
@@ -35,105 +33,84 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "PhysicalDataObjectType", propOrder = { - "physicalId", - "physicalDimensions", - "any" -}) +@XmlType( + name = "PhysicalDataObjectType", + propOrder = {"physicalId", "physicalDimensions", "any"}) @XmlRootElement(name = "PhysicalDataObject") -public class PhysicalDataObjectType - extends MinimalDataObjectType -{ +public class PhysicalDataObjectType extends MinimalDataObjectType { - @XmlElement(name = "PhysicalId") - protected IdentifierType physicalId; - @XmlElement(name = "PhysicalDimensions") - protected DimensionsType physicalDimensions; - @XmlAnyElement(lax = true) - protected List any; + /** Identifiant physique d’un objet-données physique, externe à celui-ci (ex. code-barres). */ + @XmlElement(name = "PhysicalId") + protected IdentifierType physicalId; - /** - * Gets the value of the physicalId property. - * - * @return - * possible object is - * {@link IdentifierType } - * - */ - public IdentifierType getPhysicalId() { - return physicalId; - } + /** Dimensions d'un objet-données physique. */ + @XmlElement(name = "PhysicalDimensions") + protected DimensionsType physicalDimensions; - /** - * Sets the value of the physicalId property. - * - * @param value - * allowed object is - * {@link IdentifierType } - * - */ - public void setPhysicalId(IdentifierType value) { - this.physicalId = value; - } + @XmlAnyElement(lax = true) + protected List any; - /** - * Gets the value of the physicalDimensions property. - * - * @return - * possible object is - * {@link DimensionsType } - * - */ - public DimensionsType getPhysicalDimensions() { - return physicalDimensions; - } + /** + * Identifiant physique d’un objet-données physique, externe à celui-ci (ex. code-barres). + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getPhysicalId() { + return physicalId; + } - /** - * Sets the value of the physicalDimensions property. - * - * @param value - * allowed object is - * {@link DimensionsType } - * - */ - public void setPhysicalDimensions(DimensionsType value) { - this.physicalDimensions = value; - } + /** + * Sets the value of the physicalId property. + * + * @param value allowed object is {@link IdentifierType } + * @see #getPhysicalId() + */ + public void setPhysicalId(IdentifierType value) { + this.physicalId = value; + } - /** - * Gets the value of the any 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the any property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link Object } - * {@link Element } - * - * - * @return - * The value of the any property. - */ - public List getAny() { - if (any == null) { - any = new ArrayList<>(); - } - return this.any; - } + /** + * Dimensions d'un objet-données physique. + * + * @return possible object is {@link DimensionsType } + */ + public DimensionsType getPhysicalDimensions() { + return physicalDimensions; + } + + /** + * Sets the value of the physicalDimensions property. + * + * @param value allowed object is {@link DimensionsType } + * @see #getPhysicalDimensions() + */ + public void setPhysicalDimensions(DimensionsType value) { + this.physicalDimensions = value; + } + /** + * Gets the value of the any 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 any property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link Object } {@link Element } + * + * @return The value of the any property. + */ + public List getAny() { + if (any == null) { + any = new ArrayList<>(); + } + return this.any; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ReferencedObjectType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ReferencedObjectType.java index 64a9325..662b432 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ReferencedObjectType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ReferencedObjectType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -14,14 +13,14 @@ import jakarta.xml.bind.annotation.XmlSchemaType; import jakarta.xml.bind.annotation.XmlType; - /** - * Contient la référence à l'objet signé (et son empreinte jusqu'à la fin de la phase de versement dans le SAE). - * + * Contient la référence à l'objet signé (et son empreinte jusqu'à la fin de la phase de versement + * dans le SAE). + * *

Java class for ReferencedObjectType complex type. - * + * *

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

{@code
  * 
  *   
@@ -34,69 +33,70 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ReferencedObjectType", propOrder = { - "signedObjectId", - "signedObjectDigest" -}) +@XmlType( + name = "ReferencedObjectType", + propOrder = {"signedObjectId", "signedObjectDigest"}) public class ReferencedObjectType { - @XmlElement(name = "SignedObjectId", required = true) - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object signedObjectId; - @XmlElement(name = "SignedObjectDigest", required = true) - protected MessageDigestBinaryObjectType signedObjectDigest; + /** Identifiant de l'objet-données signé. */ + @XmlElement(name = "SignedObjectId", required = true) + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object signedObjectId; - /** - * Gets the value of the signedObjectId property. - * - * @return - * possible object is - * {@link Object } - * - */ - public Object getSignedObjectId() { - return signedObjectId; - } + /** + * Empreinte obligatoire jusqu'au processus de versement pour assurer la portabilité de la valeur + * probante. Le SAE peut ne pas la conserver si l'on considère que l'identifiant de l'objet + * correspondant suffit. Ce procédé permet de résister au temps lorsque les informations binaires + * du paquet seront converties au gré des opérations de préservation de la lisibilité des formats. + * Au cours de ces opérations, l'identifiant ne changera pas, contrairement au format dufichier et + * donc à son empreinte. + */ + @XmlElement(name = "SignedObjectDigest", required = true) + protected MessageDigestBinaryObjectType signedObjectDigest; - /** - * Sets the value of the signedObjectId property. - * - * @param value - * allowed object is - * {@link Object } - * - */ - public void setSignedObjectId(Object value) { - this.signedObjectId = value; - } + /** + * Identifiant de l'objet-données signé. + * + * @return possible object is {@link Object } + */ + public Object getSignedObjectId() { + return signedObjectId; + } - /** - * Gets the value of the signedObjectDigest property. - * - * @return - * possible object is - * {@link MessageDigestBinaryObjectType } - * - */ - public MessageDigestBinaryObjectType getSignedObjectDigest() { - return signedObjectDigest; - } + /** + * Sets the value of the signedObjectId property. + * + * @param value allowed object is {@link Object } + * @see #getSignedObjectId() + */ + public void setSignedObjectId(Object value) { + this.signedObjectId = value; + } - /** - * Sets the value of the signedObjectDigest property. - * - * @param value - * allowed object is - * {@link MessageDigestBinaryObjectType } - * - */ - public void setSignedObjectDigest(MessageDigestBinaryObjectType value) { - this.signedObjectDigest = value; - } + /** + * Empreinte obligatoire jusqu'au processus de versement pour assurer la portabilité de la valeur + * probante. Le SAE peut ne pas la conserver si l'on considère que l'identifiant de l'objet + * correspondant suffit. Ce procédé permet de résister au temps lorsque les informations binaires + * du paquet seront converties au gré des opérations de préservation de la lisibilité des formats. + * Au cours de ces opérations, l'identifiant ne changera pas, contrairement au format dufichier et + * donc à son empreinte. + * + * @return possible object is {@link MessageDigestBinaryObjectType } + */ + public MessageDigestBinaryObjectType getSignedObjectDigest() { + return signedObjectDigest; + } + /** + * Sets the value of the signedObjectDigest property. + * + * @param value allowed object is {@link MessageDigestBinaryObjectType } + * @see #getSignedObjectDigest() + */ + public void setSignedObjectDigest(MessageDigestBinaryObjectType value) { + this.signedObjectDigest = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/RelatedObjectReferenceType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/RelatedObjectReferenceType.java index 9d41dc4..d7da9d8 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/RelatedObjectReferenceType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/RelatedObjectReferenceType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for RelatedObjectReferenceType complex type. - * + * Java class for RelatedObjectReferenceType complex type. + * *

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

{@code
  * 
  *   
@@ -35,183 +33,165 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "RelatedObjectReferenceType", propOrder = { - "isVersionOf", - "replaces", - "requires", - "isPartOf", - "references" -}) +@XmlType( + name = "RelatedObjectReferenceType", + propOrder = {"isVersionOf", "replaces", "requires", "isPartOf", "references"}) public class RelatedObjectReferenceType { - @XmlElement(name = "IsVersionOf") - protected List isVersionOf; - @XmlElement(name = "Replaces") - protected List replaces; - @XmlElement(name = "Requires") - protected List requires; - @XmlElement(name = "IsPartOf") - protected List isPartOf; - @XmlElement(name = "References") - protected List references; + /** Références : DC.Relation.isVersionOf */ + @XmlElement(name = "IsVersionOf") + protected List isVersionOf; - /** - * Gets the value of the isVersionOf 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the isVersionOf property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link DataObjectOrArchiveUnitReferenceType } - * - * - * @return - * The value of the isVersionOf property. - */ - public List getIsVersionOf() { - if (isVersionOf == null) { - isVersionOf = new ArrayList<>(); - } - return this.isVersionOf; - } + /** DC.Relation.replaces */ + @XmlElement(name = "Replaces") + protected List replaces; + + /** Références : DC.Relation.requires */ + @XmlElement(name = "Requires") + protected List requires; + + /** Références : DC.Relation.isPartOf */ + @XmlElement(name = "IsPartOf") + protected List isPartOf; - /** - * Gets the value of the replaces 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the replaces property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link DataObjectOrArchiveUnitReferenceType } - * - * - * @return - * The value of the replaces property. - */ - public List getReplaces() { - if (replaces == null) { - replaces = new ArrayList<>(); - } - return this.replaces; + /** DC.Relation.references */ + @XmlElement(name = "References") + protected List references; + + /** + * Références : DC.Relation.isVersionOf + * + *

Gets the value of the isVersionOf 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 isVersionOf property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link + * DataObjectOrArchiveUnitReferenceType } + * + * @return The value of the isVersionOf property. + */ + public List getIsVersionOf() { + if (isVersionOf == null) { + isVersionOf = new ArrayList<>(); } + return this.isVersionOf; + } - /** - * Gets the value of the requires 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the requires property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link DataObjectOrArchiveUnitReferenceType } - * - * - * @return - * The value of the requires property. - */ - public List getRequires() { - if (requires == null) { - requires = new ArrayList<>(); - } - return this.requires; + /** + * DC.Relation.replaces + * + *

Gets the value of the replaces 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 replaces property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link + * DataObjectOrArchiveUnitReferenceType } + * + * @return The value of the replaces property. + */ + public List getReplaces() { + if (replaces == null) { + replaces = new ArrayList<>(); } + return this.replaces; + } - /** - * Gets the value of the isPartOf 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the isPartOf property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link DataObjectOrArchiveUnitReferenceType } - * - * - * @return - * The value of the isPartOf property. - */ - public List getIsPartOf() { - if (isPartOf == null) { - isPartOf = new ArrayList<>(); - } - return this.isPartOf; + /** + * Références : DC.Relation.requires + * + *

Gets the value of the requires 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 requires property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link + * DataObjectOrArchiveUnitReferenceType } + * + * @return The value of the requires property. + */ + public List getRequires() { + if (requires == null) { + requires = new ArrayList<>(); } + return this.requires; + } - /** - * Gets the value of the references 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the references property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link DataObjectOrArchiveUnitReferenceType } - * - * - * @return - * The value of the references property. - */ - public List getReferences() { - if (references == null) { - references = new ArrayList<>(); - } - return this.references; + /** + * Références : DC.Relation.isPartOf + * + *

Gets the value of the isPartOf 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 isPartOf property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link + * DataObjectOrArchiveUnitReferenceType } + * + * @return The value of the isPartOf property. + */ + public List getIsPartOf() { + if (isPartOf == null) { + isPartOf = new ArrayList<>(); } + return this.isPartOf; + } + /** + * DC.Relation.references + * + *

Gets the value of the references 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 references property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link + * DataObjectOrArchiveUnitReferenceType } + * + * @return The value of the references property. + */ + public List getReferences() { + if (references == null) { + references = new ArrayList<>(); + } + return this.references; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/RelationshipType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/RelationshipType.java index 7a7b204..ff8ff5d 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/RelationshipType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/RelationshipType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -16,12 +15,11 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** - *

Java class for RelationshipType complex type. - * + * Java class for RelationshipType complex type. + * *

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

{@code
  * 
  *   
@@ -32,67 +30,53 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "RelationshipType") public class RelationshipType { - @XmlAttribute(name = "target", required = true) - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object target; - @XmlAttribute(name = "type", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String type; + @XmlAttribute(name = "target", required = true) + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object target; - /** - * Gets the value of the target property. - * - * @return - * possible object is - * {@link Object } - * - */ - public Object getTarget() { - return target; - } + @XmlAttribute(name = "type", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String type; - /** - * Sets the value of the target property. - * - * @param value - * allowed object is - * {@link Object } - * - */ - public void setTarget(Object value) { - this.target = value; - } + /** + * Gets the value of the target property. + * + * @return possible object is {@link Object } + */ + public Object getTarget() { + return target; + } - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getType() { - return type; - } + /** + * Sets the value of the target property. + * + * @param value allowed object is {@link Object } + */ + public void setTarget(Object value) { + this.target = value; + } - /** - * 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 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/fr/gouv/culture/archivesdefrance/seda/v2/ReuseRuleType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ReuseRuleType.java index 2f057bb..4a3f207 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ReuseRuleType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ReuseRuleType.java @@ -1,29 +1,28 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlElements; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de cet ArchiveUnit. - * + * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de + * cet ArchiveUnit. + * *

Java class for ReuseRuleType complex type. - * + * *

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

{@code
  * 
  *   
@@ -42,112 +41,98 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ReuseRuleType", propOrder = { - "ruleAndStartDate", - "preventInheritance", - "refNonRuleId" -}) +@XmlType( + name = "ReuseRuleType", + propOrder = {"ruleAndStartDate", "preventInheritance", "refNonRuleId"}) public class ReuseRuleType { - @XmlElements({ - @XmlElement(name = "Rule", type = RuleIdType.class), - @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) - }) - protected List ruleAndStartDate; - @XmlElement(name = "PreventInheritance", defaultValue = "false") - protected Boolean preventInheritance; - @XmlElement(name = "RefNonRuleId") - protected List refNonRuleId; + @XmlElements({ + @XmlElement(name = "Rule", type = RuleIdType.class), + @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) + }) + protected List ruleAndStartDate; - /** - * Gets the value of the ruleAndStartDate 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the ruleAndStartDate property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link RuleIdType } - * {@link XMLGregorianCalendar } - * - * - * @return - * The value of the ruleAndStartDate property. - */ - public List getRuleAndStartDate() { - if (ruleAndStartDate == null) { - ruleAndStartDate = new ArrayList<>(); - } - return this.ruleAndStartDate; - } + /** + * Indique si les règles de gestion héritées des ArchiveUnit parents doivent être ignorées pour + * l’ArchiveUnit concerné. + */ + @XmlElement(name = "PreventInheritance", defaultValue = "false") + protected Boolean preventInheritance; - /** - * Gets the value of the preventInheritance property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isPreventInheritance() { - return preventInheritance; - } + /** L'identifiant de la règle spécifiée pourra être retirée de l'héritage dans ce noeud. */ + @XmlElement(name = "RefNonRuleId") + protected List refNonRuleId; - /** - * Sets the value of the preventInheritance property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPreventInheritance(Boolean value) { - this.preventInheritance = value; + /** + * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType } {@link + * XMLGregorianCalendar } + * + * @return The value of the ruleAndStartDate property. + */ + public List getRuleAndStartDate() { + if (ruleAndStartDate == null) { + ruleAndStartDate = new ArrayList<>(); } + return this.ruleAndStartDate; + } - /** - * Gets the value of the refNonRuleId 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the refNonRuleId property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link RuleIdType } - * - * - * @return - * The value of the refNonRuleId property. - */ - public List getRefNonRuleId() { - if (refNonRuleId == null) { - refNonRuleId = new ArrayList<>(); - } - return this.refNonRuleId; - } + /** + * Indique si les règles de gestion héritées des ArchiveUnit parents doivent être ignorées pour + * l’ArchiveUnit concerné. + * + * @return possible object is {@link Boolean } + */ + public Boolean isPreventInheritance() { + return preventInheritance; + } + + /** + * Sets the value of the preventInheritance property. + * + * @param value allowed object is {@link Boolean } + * @see #isPreventInheritance() + */ + public void setPreventInheritance(Boolean value) { + this.preventInheritance = value; + } + /** + * L'identifiant de la règle spécifiée pourra être retirée de l'héritage dans ce noeud. + * + *

Gets the value of the refNonRuleId 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 refNonRuleId property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType } + * + * @return The value of the refNonRuleId property. + */ + public List getRefNonRuleId() { + if (refNonRuleId == null) { + refNonRuleId = new ArrayList<>(); + } + return this.refNonRuleId; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/RuleIdType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/RuleIdType.java index a7fd2af..6292e2b 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/RuleIdType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/RuleIdType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -17,14 +16,13 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** * Identifiant de la règle de gestion. - * + * *

Java class for RuleIdType complex type. - * + * *

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

{@code
  * 
  *   
@@ -34,70 +32,58 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "RuleIdType", propOrder = { - "value" -}) +@XmlType( + name = "RuleIdType", + propOrder = {"value"}) public class RuleIdType { - @XmlValue - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String value; - @XmlAttribute(name = "id") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + /** Elément ne pouvant être vide. */ + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String value; - /** - * Elément ne pouvant être vide. - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } + @XmlAttribute(name = "id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Sets the value of the value property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setValue(String value) { - this.value = value; - } + /** + * Elément ne pouvant être vide. + * + * @return possible object is {@link String } + */ + public String getValue() { + return value; + } - /** - * Gets the value of the id property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getId() { - return id; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link String } + * @see #getValue() + */ + public void setValue(String value) { + this.value = value; + } - /** - * 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 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/fr/gouv/culture/archivesdefrance/seda/v2/SignatureMessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/SignatureMessageType.java index f53558e..c154e5b 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/SignatureMessageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/SignatureMessageType.java @@ -1,24 +1,22 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlType; - /** * Contient toutes les métadonnées dsur la signature. - * + * *

Java class for SignatureMessageType complex type. - * + * *

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

{@code
  * 
  *   
@@ -27,14 +25,7 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "SignatureMessageType") -public class SignatureMessageType - extends OpenType -{ - - -} +public class SignatureMessageType extends OpenType {} diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/SignatureType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/SignatureType.java index b13e2d9..d817181 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/SignatureType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/SignatureType.java @@ -1,25 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for SignatureType complex type. - * + * Java class for SignatureType complex type. + * *

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

{@code
  * 
  *   
@@ -34,128 +32,113 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "SignatureType", propOrder = { - "signer", - "validator", - "masterdata", - "referencedObject" -}) +@XmlType( + name = "SignatureType", + propOrder = {"signer", "validator", "masterdata", "referencedObject"}) public class SignatureType { - @XmlElement(name = "Signer", required = true) - protected List signer; - @XmlElement(name = "Validator", required = true) - protected ValidatorType validator; - @XmlElement(name = "Masterdata") - protected CodeType masterdata; - @XmlElement(name = "ReferencedObject", required = true) - protected ReferencedObjectType referencedObject; + /** Références : premis.signer */ + @XmlElement(name = "Signer", required = true) + protected List signer; - /** - * Gets the value of the signer 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the signer property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link SignerType } - * - * - * @return - * The value of the signer property. - */ - public List getSigner() { - if (signer == null) { - signer = new ArrayList<>(); - } - return this.signer; - } + /** Validateur de la signature. */ + @XmlElement(name = "Validator", required = true) + protected ValidatorType validator; - /** - * Gets the value of the validator property. - * - * @return - * possible object is - * {@link ValidatorType } - * - */ - public ValidatorType getValidator() { - return validator; - } + /** + * Référentiel des personnes et des organisations au moment de la vérification de la signature et + * de sa validation. + */ + @XmlElement(name = "Masterdata") + protected CodeType masterdata; - /** - * Sets the value of the validator property. - * - * @param value - * allowed object is - * {@link ValidatorType } - * - */ - public void setValidator(ValidatorType value) { - this.validator = value; - } + /** Référence à l'objet signé. */ + @XmlElement(name = "ReferencedObject", required = true) + protected ReferencedObjectType referencedObject; - /** - * Gets the value of the masterdata property. - * - * @return - * possible object is - * {@link CodeType } - * - */ - public CodeType getMasterdata() { - return masterdata; + /** + * Références : premis.signer + * + *

Gets the value of the signer 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 signer property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link SignerType } + * + * @return The value of the signer property. + */ + public List getSigner() { + if (signer == null) { + signer = new ArrayList<>(); } + return this.signer; + } - /** - * Sets the value of the masterdata property. - * - * @param value - * allowed object is - * {@link CodeType } - * - */ - public void setMasterdata(CodeType value) { - this.masterdata = value; - } + /** + * Validateur de la signature. + * + * @return possible object is {@link ValidatorType } + */ + public ValidatorType getValidator() { + return validator; + } - /** - * Gets the value of the referencedObject property. - * - * @return - * possible object is - * {@link ReferencedObjectType } - * - */ - public ReferencedObjectType getReferencedObject() { - return referencedObject; - } + /** + * Sets the value of the validator property. + * + * @param value allowed object is {@link ValidatorType } + * @see #getValidator() + */ + public void setValidator(ValidatorType value) { + this.validator = value; + } - /** - * Sets the value of the referencedObject property. - * - * @param value - * allowed object is - * {@link ReferencedObjectType } - * - */ - public void setReferencedObject(ReferencedObjectType value) { - this.referencedObject = value; - } + /** + * Référentiel des personnes et des organisations au moment de la vérification de la signature et + * de sa validation. + * + * @return possible object is {@link CodeType } + */ + public CodeType getMasterdata() { + return masterdata; + } + + /** + * Sets the value of the masterdata property. + * + * @param value allowed object is {@link CodeType } + * @see #getMasterdata() + */ + public void setMasterdata(CodeType value) { + this.masterdata = value; + } + + /** + * Référence à l'objet signé. + * + * @return possible object is {@link ReferencedObjectType } + */ + public ReferencedObjectType getReferencedObject() { + return referencedObject; + } + /** + * Sets the value of the referencedObject property. + * + * @param value allowed object is {@link ReferencedObjectType } + * @see #getReferencedObject() + */ + public void setReferencedObject(ReferencedObjectType value) { + this.referencedObject = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/SignerType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/SignerType.java index d055da0..550c8e2 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/SignerType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/SignerType.java @@ -1,15 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; @@ -17,13 +13,15 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - +import java.util.ArrayList; +import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - *

Java class for SignerType complex type. - * + * Java class for SignerType complex type. + * *

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

{@code
  * 
  *   
@@ -33,557 +31,509 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "SignerType", propOrder = { - "firstName", - "birthName", - "fullName", - "givenName", - "gender", - "birthDate", - "birthPlace", - "deathDate", - "deathPlace", - "nationality", - "corpname", - "identifier", - "signingTime", - "function", - "activity", - "position", - "role", - "mandate" -}) +@XmlType( + name = "SignerType", + propOrder = { + "firstName", + "birthName", + "fullName", + "givenName", + "gender", + "birthDate", + "birthPlace", + "deathDate", + "deathPlace", + "nationality", + "corpname", + "identifier", + "signingTime", + "function", + "activity", + "position", + "role", + "mandate" + }) public class SignerType { - @XmlElement(name = "FirstName") - protected String firstName; - @XmlElement(name = "BirthName") - protected String birthName; - @XmlElement(name = "FullName") - protected String fullName; - @XmlElement(name = "GivenName") - protected String givenName; - @XmlElement(name = "Gender") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String gender; - @XmlElement(name = "BirthDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar birthDate; - @XmlElement(name = "BirthPlace") - protected BirthOrDeathPlaceType birthPlace; - @XmlElement(name = "DeathDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar deathDate; - @XmlElement(name = "DeathPlace") - protected BirthOrDeathPlaceType deathPlace; - @XmlElement(name = "Nationality") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List nationality; - @XmlElement(name = "Corpname") - protected String corpname; - @XmlElement(name = "Identifier") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List identifier; - @XmlElement(name = "SigningTime", required = true) - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar signingTime; - @XmlElement(name = "Function") - protected List function; - @XmlElement(name = "Activity") - protected List activity; - @XmlElement(name = "Position") - protected List position; - @XmlElement(name = "Role") - protected List role; - @XmlElement(name = "Mandate") - protected List mandate; - - /** - * Gets the value of the firstName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFirstName() { - return firstName; - } - - /** - * Sets the value of the firstName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFirstName(String value) { - this.firstName = value; - } - - /** - * Gets the value of the birthName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getBirthName() { - return birthName; - } - - /** - * Sets the value of the birthName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBirthName(String value) { - this.birthName = value; - } - - /** - * Gets the value of the fullName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFullName() { - return fullName; - } - - /** - * Sets the value of the fullName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFullName(String value) { - this.fullName = value; + /** Prénom d'une personne. */ + @XmlElement(name = "FirstName") + protected String firstName; + + /** Nom de naissance d'une personne. */ + @XmlElement(name = "BirthName") + protected String birthName; + + /** Nom complet d'une personne. */ + @XmlElement(name = "FullName") + protected String fullName; + + /** Nom d'usage d'une personne. */ + @XmlElement(name = "GivenName") + protected String givenName; + + /** Sexe de la personne. */ + @XmlElement(name = "Gender") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String gender; + + /** Date de naissance de la personne. */ + @XmlElement(name = "BirthDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar birthDate; + + /** Lieu de naissance de la personne. */ + @XmlElement(name = "BirthPlace") + protected BirthOrDeathPlaceType birthPlace; + + /** Date de décès d'une personne. */ + @XmlElement(name = "DeathDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar deathDate; + + /** Lieu de décès d'une personne. */ + @XmlElement(name = "DeathPlace") + protected BirthOrDeathPlaceType deathPlace; + + /** Nationalité d'une personne. */ + @XmlElement(name = "Nationality") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List nationality; + + /** Nom d'une entité. */ + @XmlElement(name = "Corpname") + protected String corpname; + + /** Identifiant de la personne (par exemple, le numéro matricule) ou de l'entité. */ + @XmlElement(name = "Identifier") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List identifier; + + /** Date de signature. */ + @XmlElement(name = "SigningTime", required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar signingTime; + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Fonction. + */ + @XmlElement(name = "Function") + protected List function; + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Activité. + */ + @XmlElement(name = "Activity") + protected List activity; + + /** Intitulé du poste de travail occupé par la personne. */ + @XmlElement(name = "Position") + protected List position; + + /** Références : moreq.role */ + @XmlElement(name = "Role") + protected List role; + + /** Définit la propriété intellectuelle et artistique. */ + @XmlElement(name = "Mandate") + protected List mandate; + + /** + * Prénom d'une personne. + * + * @return possible object is {@link String } + */ + public String getFirstName() { + return firstName; + } + + /** + * Sets the value of the firstName property. + * + * @param value allowed object is {@link String } + * @see #getFirstName() + */ + public void setFirstName(String value) { + this.firstName = value; + } + + /** + * Nom de naissance d'une personne. + * + * @return possible object is {@link String } + */ + public String getBirthName() { + return birthName; + } + + /** + * Sets the value of the birthName property. + * + * @param value allowed object is {@link String } + * @see #getBirthName() + */ + public void setBirthName(String value) { + this.birthName = value; + } + + /** + * Nom complet d'une personne. + * + * @return possible object is {@link String } + */ + public String getFullName() { + return fullName; + } + + /** + * Sets the value of the fullName property. + * + * @param value allowed object is {@link String } + * @see #getFullName() + */ + public void setFullName(String value) { + this.fullName = value; + } + + /** + * Nom d'usage d'une personne. + * + * @return possible object is {@link String } + */ + public String getGivenName() { + return givenName; + } + + /** + * Sets the value of the givenName property. + * + * @param value allowed object is {@link String } + * @see #getGivenName() + */ + public void setGivenName(String value) { + this.givenName = value; + } + + /** + * Sexe de la personne. + * + * @return possible object is {@link String } + */ + public String getGender() { + return gender; + } + + /** + * Sets the value of the gender property. + * + * @param value allowed object is {@link String } + * @see #getGender() + */ + public void setGender(String value) { + this.gender = value; + } + + /** + * Date de naissance de la personne. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getBirthDate() { + return birthDate; + } + + /** + * Sets the value of the birthDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getBirthDate() + */ + public void setBirthDate(XMLGregorianCalendar value) { + this.birthDate = value; + } + + /** + * Lieu de naissance de la personne. + * + * @return possible object is {@link BirthOrDeathPlaceType } + */ + public BirthOrDeathPlaceType getBirthPlace() { + return birthPlace; + } + + /** + * Sets the value of the birthPlace property. + * + * @param value allowed object is {@link BirthOrDeathPlaceType } + * @see #getBirthPlace() + */ + public void setBirthPlace(BirthOrDeathPlaceType value) { + this.birthPlace = value; + } + + /** + * Date de décès d'une personne. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getDeathDate() { + return deathDate; + } + + /** + * Sets the value of the deathDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getDeathDate() + */ + public void setDeathDate(XMLGregorianCalendar value) { + this.deathDate = value; + } + + /** + * Lieu de décès d'une personne. + * + * @return possible object is {@link BirthOrDeathPlaceType } + */ + public BirthOrDeathPlaceType getDeathPlace() { + return deathPlace; + } + + /** + * Sets the value of the deathPlace property. + * + * @param value allowed object is {@link BirthOrDeathPlaceType } + * @see #getDeathPlace() + */ + public void setDeathPlace(BirthOrDeathPlaceType value) { + this.deathPlace = value; + } + + /** + * Nationalité d'une personne. + * + *

Gets the value of the nationality 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 nationality property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return The value of the nationality property. + */ + public List getNationality() { + if (nationality == null) { + nationality = new ArrayList<>(); } - - /** - * Gets the value of the givenName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGivenName() { - return givenName; + return this.nationality; + } + + /** + * Nom d'une entité. + * + * @return possible object is {@link String } + */ + public String getCorpname() { + return corpname; + } + + /** + * Sets the value of the corpname property. + * + * @param value allowed object is {@link String } + * @see #getCorpname() + */ + public void setCorpname(String value) { + this.corpname = value; + } + + /** + * Identifiant de la personne (par exemple, le numéro matricule) ou de l'entité. + * + *

Gets the value of the identifier property. + * + *

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

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return The value of the identifier property. + */ + public List getIdentifier() { + if (identifier == null) { + identifier = new ArrayList<>(); } - - /** - * Sets the value of the givenName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGivenName(String value) { - this.givenName = value; + return this.identifier; + } + + /** + * Date de signature. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getSigningTime() { + return signingTime; + } + + /** + * Sets the value of the signingTime property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getSigningTime() + */ + public void setSigningTime(XMLGregorianCalendar value) { + this.signingTime = value; + } + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Fonction. + * + *

Gets the value of the function 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 function property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the function property. + */ + public List getFunction() { + if (function == null) { + function = new ArrayList<>(); } - - /** - * Gets the value of the gender property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGender() { - return gender; + return this.function; + } + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Activité. + * + *

Gets the value of the activity 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 activity property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the activity property. + */ + public List getActivity() { + if (activity == null) { + activity = new ArrayList<>(); } - - /** - * Sets the value of the gender property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGender(String value) { - this.gender = value; + return this.activity; + } + + /** + * Intitulé du poste de travail occupé par la personne. + * + *

Gets the value of the position 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 position property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the position property. + */ + public List getPosition() { + if (position == null) { + position = new ArrayList<>(); } - - /** - * Gets the value of the birthDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getBirthDate() { - return birthDate; + return this.position; + } + + /** + * Références : moreq.role + * + *

Gets the value of the role 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 role property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the role property. + */ + public List getRole() { + if (role == null) { + role = new ArrayList<>(); } - - /** - * Sets the value of the birthDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setBirthDate(XMLGregorianCalendar value) { - this.birthDate = value; - } - - /** - * Gets the value of the birthPlace property. - * - * @return - * possible object is - * {@link BirthOrDeathPlaceType } - * - */ - public BirthOrDeathPlaceType getBirthPlace() { - return birthPlace; - } - - /** - * Sets the value of the birthPlace property. - * - * @param value - * allowed object is - * {@link BirthOrDeathPlaceType } - * - */ - public void setBirthPlace(BirthOrDeathPlaceType value) { - this.birthPlace = value; - } - - /** - * Gets the value of the deathDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getDeathDate() { - return deathDate; + return this.role; + } + + /** + * Définit la propriété intellectuelle et artistique. + * + *

Gets the value of the mandate 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 mandate property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the mandate property. + */ + public List getMandate() { + if (mandate == null) { + mandate = new ArrayList<>(); } - - /** - * Sets the value of the deathDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setDeathDate(XMLGregorianCalendar value) { - this.deathDate = value; - } - - /** - * Gets the value of the deathPlace property. - * - * @return - * possible object is - * {@link BirthOrDeathPlaceType } - * - */ - public BirthOrDeathPlaceType getDeathPlace() { - return deathPlace; - } - - /** - * Sets the value of the deathPlace property. - * - * @param value - * allowed object is - * {@link BirthOrDeathPlaceType } - * - */ - public void setDeathPlace(BirthOrDeathPlaceType value) { - this.deathPlace = value; - } - - /** - * Gets the value of the nationality 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the nationality property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the nationality property. - */ - public List getNationality() { - if (nationality == null) { - nationality = new ArrayList<>(); - } - return this.nationality; - } - - /** - * Gets the value of the corpname property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCorpname() { - return corpname; - } - - /** - * Sets the value of the corpname property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCorpname(String value) { - this.corpname = value; - } - - /** - * Gets the value of the identifier property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the Jakarta XML Binding object. - * This is why there is not a {@code set} method for the identifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the identifier property. - */ - public List getIdentifier() { - if (identifier == null) { - identifier = new ArrayList<>(); - } - return this.identifier; - } - - /** - * Gets the value of the signingTime property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getSigningTime() { - return signingTime; - } - - /** - * Sets the value of the signingTime property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setSigningTime(XMLGregorianCalendar value) { - this.signingTime = value; - } - - /** - * Gets the value of the function 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the function property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the function property. - */ - public List getFunction() { - if (function == null) { - function = new ArrayList<>(); - } - return this.function; - } - - /** - * Gets the value of the activity 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the activity property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the activity property. - */ - public List getActivity() { - if (activity == null) { - activity = new ArrayList<>(); - } - return this.activity; - } - - /** - * Gets the value of the position 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the position property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the position property. - */ - public List getPosition() { - if (position == null) { - position = new ArrayList<>(); - } - return this.position; - } - - /** - * Gets the value of the role 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the role property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the role property. - */ - public List getRole() { - if (role == null) { - role = new ArrayList<>(); - } - return this.role; - } - - /** - * Gets the value of the mandate 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the mandate property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the mandate property. - */ - public List getMandate() { - if (mandate == null) { - mandate = new ArrayList<>(); - } - return this.mandate; - } - + return this.mandate; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/StorageRuleType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/StorageRuleType.java index b372e52..5d1423e 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/StorageRuleType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/StorageRuleType.java @@ -1,30 +1,29 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlElements; import jakarta.xml.bind.annotation.XmlSchemaType; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de cet ArchiveUnit. - * + * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de + * cet ArchiveUnit. + * *

Java class for StorageRuleType complex type. - * + * *

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

{@code
  * 
  *   
@@ -44,140 +43,122 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "StorageRuleType", propOrder = { - "ruleAndStartDate", - "preventInheritance", - "refNonRuleId", - "finalAction" -}) +@XmlType( + name = "StorageRuleType", + propOrder = {"ruleAndStartDate", "preventInheritance", "refNonRuleId", "finalAction"}) public class StorageRuleType { - @XmlElements({ - @XmlElement(name = "Rule", type = RuleIdType.class), - @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) - }) - protected List ruleAndStartDate; - @XmlElement(name = "PreventInheritance", defaultValue = "false") - protected Boolean preventInheritance; - @XmlElement(name = "RefNonRuleId") - protected List refNonRuleId; - @XmlElement(name = "FinalAction", required = true) - @XmlSchemaType(name = "token") - protected FinalActionStorageCodeType finalAction; + @XmlElements({ + @XmlElement(name = "Rule", type = RuleIdType.class), + @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) + }) + protected List ruleAndStartDate; - /** - * Gets the value of the ruleAndStartDate 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the ruleAndStartDate property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link RuleIdType } - * {@link XMLGregorianCalendar } - * - * - * @return - * The value of the ruleAndStartDate property. - */ - public List getRuleAndStartDate() { - if (ruleAndStartDate == null) { - ruleAndStartDate = new ArrayList<>(); - } - return this.ruleAndStartDate; - } + /** + * Indique si les règles de gestion héritées des ArchiveUnit parents doivent être ignorées pour + * l’ArchiveUnit concerné. + */ + @XmlElement(name = "PreventInheritance", defaultValue = "false") + protected Boolean preventInheritance; - /** - * Gets the value of the preventInheritance property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isPreventInheritance() { - return preventInheritance; - } + /** L'identifiant de la règle spécifiée pourra être retirée de l'héritage dans ce noeud. */ + @XmlElement(name = "RefNonRuleId") + protected List refNonRuleId; - /** - * Sets the value of the preventInheritance property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setPreventInheritance(Boolean value) { - this.preventInheritance = value; - } + /** Action à mettre en œuvre au terme de la durée de gestion. */ + @XmlElement(name = "FinalAction", required = true) + @XmlSchemaType(name = "token") + protected FinalActionStorageCodeType finalAction; - /** - * Gets the value of the refNonRuleId 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the refNonRuleId property. - * - *

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

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

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

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType } {@link + * XMLGregorianCalendar } + * + * @return The value of the ruleAndStartDate property. + */ + public List getRuleAndStartDate() { + if (ruleAndStartDate == null) { + ruleAndStartDate = new ArrayList<>(); } + return this.ruleAndStartDate; + } - /** - * Gets the value of the finalAction property. - * - * @return - * possible object is - * {@link FinalActionStorageCodeType } - * - */ - public FinalActionStorageCodeType getFinalAction() { - return finalAction; - } + /** + * Indique si les règles de gestion héritées des ArchiveUnit parents doivent être ignorées pour + * l’ArchiveUnit concerné. + * + * @return possible object is {@link Boolean } + */ + public Boolean isPreventInheritance() { + return preventInheritance; + } + + /** + * Sets the value of the preventInheritance property. + * + * @param value allowed object is {@link Boolean } + * @see #isPreventInheritance() + */ + public void setPreventInheritance(Boolean value) { + this.preventInheritance = value; + } - /** - * Sets the value of the finalAction property. - * - * @param value - * allowed object is - * {@link FinalActionStorageCodeType } - * - */ - public void setFinalAction(FinalActionStorageCodeType value) { - this.finalAction = value; + /** + * L'identifiant de la règle spécifiée pourra être retirée de l'héritage dans ce noeud. + * + *

Gets the value of the refNonRuleId 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 refNonRuleId property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType } + * + * @return The value of the refNonRuleId property. + */ + public List getRefNonRuleId() { + if (refNonRuleId == null) { + refNonRuleId = new ArrayList<>(); } + return this.refNonRuleId; + } + + /** + * Action à mettre en œuvre au terme de la durée de gestion. + * + * @return possible object is {@link FinalActionStorageCodeType } + */ + public FinalActionStorageCodeType getFinalAction() { + return finalAction; + } + /** + * Sets the value of the finalAction property. + * + * @param value allowed object is {@link FinalActionStorageCodeType } + * @see #getFinalAction() + */ + public void setFinalAction(FinalActionStorageCodeType value) { + this.finalAction = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/TextTechnicalMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/TextTechnicalMetadataType.java index 9a03fba..0e237a7 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/TextTechnicalMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/TextTechnicalMetadataType.java @@ -1,24 +1,23 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlType; - /** - * Contient toutes les métadonnées techniques de base pour les objets-données de type texte(XML, JSON, CSV, ...). - * + * Contient toutes les métadonnées techniques de base pour les objets-données de type texte(XML, + * JSON, CSV, ...). + * *

Java class for TextTechnicalMetadataType complex type. - * + * *

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

{@code
  * 
  *   
@@ -27,14 +26,7 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TextTechnicalMetadataType") -public class TextTechnicalMetadataType - extends OpenType -{ - - -} +public class TextTechnicalMetadataType extends OpenType {} diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/TextType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/TextType.java index 1ed0c6a..3993f88 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/TextType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/TextType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -14,12 +13,11 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.XmlValue; - /** - *

Java class for TextType complex type. - * + * Java class for TextType complex type. + * *

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

{@code
  * 
  *   
@@ -29,69 +27,104 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "TextType", propOrder = { - "value" -}) -@XmlSeeAlso({ - CustodialHistoryItemType.class -}) +@XmlType( + name = "TextType", + propOrder = {"value"}) +@XmlSeeAlso({CustodialHistoryItemType.class}) public class TextType { - @XmlValue - protected String value; - @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") - protected String lang; + @XmlValue protected String value; - /** - * Gets the value of the value property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getValue() { - return value; - } + /** + * + * + *
+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>lang (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        is a language code for the natural language of the content of
+   *        any element; its value is inherited.  This name is reserved
+   *        by virtue of its definition in the XML specification.</p></div>
+   * 
+ * + *
+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h4>Notes</h4><p>
+   *       Attempting to install the relevant ISO 2- and 3-letter
+   *       codes as the enumerated possible values is probably never
+   *       going to be a realistic possibility.
+   *      </p><p>
+   *       See BCP 47 at <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">
+   *        http://www.rfc-editor.org/rfc/bcp/bcp47.txt</a>
+   *       and the IANA language subtag registry at<a href="http://www.iana.org/assignments/language-subtag-registry">
+   *        http://www.iana.org/assignments/language-subtag-registry</a>
+   *       for further information.</p><p>
+   *       The union allows for the 'un-declaration' of xml:lang with
+   *       the empty string.
+   *      </p></div>
+   * 
+ */ + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; - /** - * 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 value property. + * + * @return possible object is {@link String } + */ + public String getValue() { + return value; + } - /** - * Gets the value of the lang property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getLang() { - return lang; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link String } + */ + public void setValue(String value) { + this.value = value; + } - /** - * Sets the value of the lang property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLang(String value) { - this.lang = value; - } + /** + * + * + *
+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h3>lang (as an attribute name)</h3><p>
+   *        denotes an attribute whose value
+   *        is a language code for the natural language of the content of
+   *        any element; its value is inherited.  This name is reserved
+   *        by virtue of its definition in the XML specification.</p></div>
+   * 
+ * + *
+   * <?xml version="1.0" encoding="UTF-8"?><div xmlns="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema"><h4>Notes</h4><p>
+   *       Attempting to install the relevant ISO 2- and 3-letter
+   *       codes as the enumerated possible values is probably never
+   *       going to be a realistic possibility.
+   *      </p><p>
+   *       See BCP 47 at <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">
+   *        http://www.rfc-editor.org/rfc/bcp/bcp47.txt</a>
+   *       and the IANA language subtag registry at<a href="http://www.iana.org/assignments/language-subtag-registry">
+   *        http://www.iana.org/assignments/language-subtag-registry</a>
+   *       for further information.</p><p>
+   *       The union allows for the 'un-declaration' of xml:lang with
+   *       the empty string.
+   *      </p></div>
+   * 
+ * + * @return possible object is {@link String } + */ + public String getLang() { + return lang; + } + /** + * Sets the value of the lang property. + * + * @param value allowed object is {@link String } + * @see #getLang() + */ + public void setLang(String value) { + this.lang = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ToDeleteType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ToDeleteType.java index 7c92aca..cdc362b 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ToDeleteType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ToDeleteType.java @@ -1,26 +1,24 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.JAXBElement; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElementRef; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for ToDeleteType complex type. - * + * Java class for ToDeleteType complex type. + * *

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

{@code
  * 
  *   
@@ -32,47 +30,44 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ToDeleteType", propOrder = { - "archiveUnitRefId" -}) +@XmlType( + name = "ToDeleteType", + propOrder = {"archiveUnitRefId"}) public class ToDeleteType { - @XmlElementRef(name = "ArchiveUnitRefId", namespace = "fr:gouv:culture:archivesdefrance:seda:v2", type = JAXBElement.class) - protected List> archiveUnitRefId; + /** Permet la suppression de liens entre un ArchiveUnit père et une liste définie de ses fils. */ + @XmlElementRef( + name = "ArchiveUnitRefId", + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + type = JAXBElement.class) + protected List> archiveUnitRefId; - /** - * Gets the value of the archiveUnitRefId 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the archiveUnitRefId property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link Object }{@code >} - * - * - * @return - * The value of the archiveUnitRefId property. - */ - public List> getArchiveUnitRefId() { - if (archiveUnitRefId == null) { - archiveUnitRefId = new ArrayList<>(); - } - return this.archiveUnitRefId; + /** + * Permet la suppression de liens entre un ArchiveUnit père et une liste définie de ses fils. + * + *

Gets the value of the archiveUnitRefId 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 archiveUnitRefId property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link JAXBElement }{@code <}{@link + * Object }{@code >} + * + * @return The value of the archiveUnitRefId property. + */ + public List> getArchiveUnitRefId() { + if (archiveUnitRefId == null) { + archiveUnitRefId = new ArrayList<>(); } - + return this.archiveUnitRefId; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/UpdateOperationType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/UpdateOperationType.java index b042b00..6faf912 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/UpdateOperationType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/UpdateOperationType.java @@ -1,10 +1,9 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; @@ -15,12 +14,11 @@ import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - /** - *

Java class for UpdateOperationType complex type. - * + * Java class for UpdateOperationType complex type. + * *

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

{@code
  * 
  *   
@@ -37,123 +35,114 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "UpdateOperationType", propOrder = { - "systemId", - "archiveUnitIdentifierKey", - "toDelete", - "fullUpdate" -}) +@XmlType( + name = "UpdateOperationType", + propOrder = {"systemId", "archiveUnitIdentifierKey", "toDelete", "fullUpdate"}) public class UpdateOperationType { - @XmlElement(name = "SystemId") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String systemId; - @XmlElement(name = "ArchiveUnitIdentifierKey") - protected ArchiveUnitIdentifierKeyType archiveUnitIdentifierKey; - @XmlElement(name = "ToDelete") - protected ToDeleteType toDelete; - @XmlElement(name = "FullUpdate", defaultValue = "false") - protected Boolean fullUpdate; + /** + * Identifiant attribué à l'ArchiveUnit. Il est attribué par le SAE et correspond à un identifiant + * interne. + */ + @XmlElement(name = "SystemId") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String systemId; + + /** + * Identifiant attribué à l'ArchiveUnit. Il est attribué par le SAE et correspond à un nom et une + * valeur d'une métadonnée qui identifié d'une manière unique une ArchiveUnit existante. + */ + @XmlElement(name = "ArchiveUnitIdentifierKey") + protected ArchiveUnitIdentifierKeyType archiveUnitIdentifierKey; + + @XmlElement(name = "ToDelete") + protected ToDeleteType toDelete; - /** - * Gets the value of the systemId property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getSystemId() { - return systemId; - } + /** + * Point d'attention : dans le cas d'une Règle de gestion dans Management, le retrait d'une date + * de début (et donc de la date de fin) se fait en positionnant une valeur vide à StartDate. + */ + @XmlElement(name = "FullUpdate", defaultValue = "false") + protected Boolean fullUpdate; - /** - * Sets the value of the systemId property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setSystemId(String value) { - this.systemId = value; - } + /** + * Identifiant attribué à l'ArchiveUnit. Il est attribué par le SAE et correspond à un identifiant + * interne. + * + * @return possible object is {@link String } + */ + public String getSystemId() { + return systemId; + } - /** - * Gets the value of the archiveUnitIdentifierKey property. - * - * @return - * possible object is - * {@link ArchiveUnitIdentifierKeyType } - * - */ - public ArchiveUnitIdentifierKeyType getArchiveUnitIdentifierKey() { - return archiveUnitIdentifierKey; - } + /** + * Sets the value of the systemId property. + * + * @param value allowed object is {@link String } + * @see #getSystemId() + */ + public void setSystemId(String value) { + this.systemId = value; + } - /** - * Sets the value of the archiveUnitIdentifierKey property. - * - * @param value - * allowed object is - * {@link ArchiveUnitIdentifierKeyType } - * - */ - public void setArchiveUnitIdentifierKey(ArchiveUnitIdentifierKeyType value) { - this.archiveUnitIdentifierKey = value; - } + /** + * Identifiant attribué à l'ArchiveUnit. Il est attribué par le SAE et correspond à un nom et une + * valeur d'une métadonnée qui identifié d'une manière unique une ArchiveUnit existante. + * + * @return possible object is {@link ArchiveUnitIdentifierKeyType } + */ + public ArchiveUnitIdentifierKeyType getArchiveUnitIdentifierKey() { + return archiveUnitIdentifierKey; + } - /** - * Gets the value of the toDelete property. - * - * @return - * possible object is - * {@link ToDeleteType } - * - */ - public ToDeleteType getToDelete() { - return toDelete; - } + /** + * Sets the value of the archiveUnitIdentifierKey property. + * + * @param value allowed object is {@link ArchiveUnitIdentifierKeyType } + * @see #getArchiveUnitIdentifierKey() + */ + public void setArchiveUnitIdentifierKey(ArchiveUnitIdentifierKeyType value) { + this.archiveUnitIdentifierKey = value; + } - /** - * Sets the value of the toDelete property. - * - * @param value - * allowed object is - * {@link ToDeleteType } - * - */ - public void setToDelete(ToDeleteType value) { - this.toDelete = value; - } + /** + * Gets the value of the toDelete property. + * + * @return possible object is {@link ToDeleteType } + */ + public ToDeleteType getToDelete() { + return toDelete; + } - /** - * Gets the value of the fullUpdate property. - * - * @return - * possible object is - * {@link Boolean } - * - */ - public Boolean isFullUpdate() { - return fullUpdate; - } + /** + * Sets the value of the toDelete property. + * + * @param value allowed object is {@link ToDeleteType } + */ + public void setToDelete(ToDeleteType value) { + this.toDelete = value; + } - /** - * Sets the value of the fullUpdate property. - * - * @param value - * allowed object is - * {@link Boolean } - * - */ - public void setFullUpdate(Boolean value) { - this.fullUpdate = value; - } + /** + * Point d'attention : dans le cas d'une Règle de gestion dans Management, le retrait d'une date + * de début (et donc de la date de fin) se fait en positionnant une valeur vide à StartDate. + * + * @return possible object is {@link Boolean } + */ + public Boolean isFullUpdate() { + return fullUpdate; + } + /** + * Sets the value of the fullUpdate property. + * + * @param value allowed object is {@link Boolean } + * @see #isFullUpdate() + */ + public void setFullUpdate(Boolean value) { + this.fullUpdate = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ValidatorType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ValidatorType.java index 7027303..077f0a3 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ValidatorType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/ValidatorType.java @@ -1,15 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; -import java.util.ArrayList; -import java.util.List; -import javax.xml.datatype.XMLGregorianCalendar; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; @@ -17,13 +13,15 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - +import java.util.ArrayList; +import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - *

Java class for ValidatorType complex type. - * + * Java class for ValidatorType complex type. + * *

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

{@code
  * 
  *   
@@ -33,557 +31,509 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ValidatorType", propOrder = { - "firstName", - "birthName", - "fullName", - "givenName", - "gender", - "birthDate", - "birthPlace", - "deathDate", - "deathPlace", - "nationality", - "corpname", - "identifier", - "validationTime", - "function", - "activity", - "position", - "role", - "mandate" -}) +@XmlType( + name = "ValidatorType", + propOrder = { + "firstName", + "birthName", + "fullName", + "givenName", + "gender", + "birthDate", + "birthPlace", + "deathDate", + "deathPlace", + "nationality", + "corpname", + "identifier", + "validationTime", + "function", + "activity", + "position", + "role", + "mandate" + }) public class ValidatorType { - @XmlElement(name = "FirstName") - protected String firstName; - @XmlElement(name = "BirthName") - protected String birthName; - @XmlElement(name = "FullName") - protected String fullName; - @XmlElement(name = "GivenName") - protected String givenName; - @XmlElement(name = "Gender") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String gender; - @XmlElement(name = "BirthDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar birthDate; - @XmlElement(name = "BirthPlace") - protected BirthOrDeathPlaceType birthPlace; - @XmlElement(name = "DeathDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar deathDate; - @XmlElement(name = "DeathPlace") - protected BirthOrDeathPlaceType deathPlace; - @XmlElement(name = "Nationality") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List nationality; - @XmlElement(name = "Corpname") - protected String corpname; - @XmlElement(name = "Identifier") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List identifier; - @XmlElement(name = "ValidationTime", required = true) - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar validationTime; - @XmlElement(name = "Function") - protected List function; - @XmlElement(name = "Activity") - protected List activity; - @XmlElement(name = "Position") - protected List position; - @XmlElement(name = "Role") - protected List role; - @XmlElement(name = "Mandate") - protected List mandate; - - /** - * Gets the value of the firstName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFirstName() { - return firstName; - } - - /** - * Sets the value of the firstName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFirstName(String value) { - this.firstName = value; - } - - /** - * Gets the value of the birthName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getBirthName() { - return birthName; - } - - /** - * Sets the value of the birthName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setBirthName(String value) { - this.birthName = value; - } - - /** - * Gets the value of the fullName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFullName() { - return fullName; - } - - /** - * Sets the value of the fullName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFullName(String value) { - this.fullName = value; + /** Prénom d'une personne. */ + @XmlElement(name = "FirstName") + protected String firstName; + + /** Nom de naissance d'une personne. */ + @XmlElement(name = "BirthName") + protected String birthName; + + /** Nom complet d'une personne. */ + @XmlElement(name = "FullName") + protected String fullName; + + /** Nom d'usage d'une personne. */ + @XmlElement(name = "GivenName") + protected String givenName; + + /** Sexe de la personne. */ + @XmlElement(name = "Gender") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String gender; + + /** Date de naissance de la personne. */ + @XmlElement(name = "BirthDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar birthDate; + + /** Lieu de naissance de la personne. */ + @XmlElement(name = "BirthPlace") + protected BirthOrDeathPlaceType birthPlace; + + /** Date de décès d'une personne. */ + @XmlElement(name = "DeathDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar deathDate; + + /** Lieu de décès d'une personne. */ + @XmlElement(name = "DeathPlace") + protected BirthOrDeathPlaceType deathPlace; + + /** Nationalité d'une personne. */ + @XmlElement(name = "Nationality") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List nationality; + + /** Nom d'une entité. */ + @XmlElement(name = "Corpname") + protected String corpname; + + /** Identifiant de la personne (par exemple, le numéro matricule) ou de l'entité. */ + @XmlElement(name = "Identifier") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List identifier; + + /** Date de la validation de la signature. */ + @XmlElement(name = "ValidationTime", required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar validationTime; + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Fonction. + */ + @XmlElement(name = "Function") + protected List function; + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Activité. + */ + @XmlElement(name = "Activity") + protected List activity; + + /** Intitulé du poste de travail occupé par la personne. */ + @XmlElement(name = "Position") + protected List position; + + /** Références : moreq.role */ + @XmlElement(name = "Role") + protected List role; + + /** Définit la propriété intellectuelle et artistique. */ + @XmlElement(name = "Mandate") + protected List mandate; + + /** + * Prénom d'une personne. + * + * @return possible object is {@link String } + */ + public String getFirstName() { + return firstName; + } + + /** + * Sets the value of the firstName property. + * + * @param value allowed object is {@link String } + * @see #getFirstName() + */ + public void setFirstName(String value) { + this.firstName = value; + } + + /** + * Nom de naissance d'une personne. + * + * @return possible object is {@link String } + */ + public String getBirthName() { + return birthName; + } + + /** + * Sets the value of the birthName property. + * + * @param value allowed object is {@link String } + * @see #getBirthName() + */ + public void setBirthName(String value) { + this.birthName = value; + } + + /** + * Nom complet d'une personne. + * + * @return possible object is {@link String } + */ + public String getFullName() { + return fullName; + } + + /** + * Sets the value of the fullName property. + * + * @param value allowed object is {@link String } + * @see #getFullName() + */ + public void setFullName(String value) { + this.fullName = value; + } + + /** + * Nom d'usage d'une personne. + * + * @return possible object is {@link String } + */ + public String getGivenName() { + return givenName; + } + + /** + * Sets the value of the givenName property. + * + * @param value allowed object is {@link String } + * @see #getGivenName() + */ + public void setGivenName(String value) { + this.givenName = value; + } + + /** + * Sexe de la personne. + * + * @return possible object is {@link String } + */ + public String getGender() { + return gender; + } + + /** + * Sets the value of the gender property. + * + * @param value allowed object is {@link String } + * @see #getGender() + */ + public void setGender(String value) { + this.gender = value; + } + + /** + * Date de naissance de la personne. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getBirthDate() { + return birthDate; + } + + /** + * Sets the value of the birthDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getBirthDate() + */ + public void setBirthDate(XMLGregorianCalendar value) { + this.birthDate = value; + } + + /** + * Lieu de naissance de la personne. + * + * @return possible object is {@link BirthOrDeathPlaceType } + */ + public BirthOrDeathPlaceType getBirthPlace() { + return birthPlace; + } + + /** + * Sets the value of the birthPlace property. + * + * @param value allowed object is {@link BirthOrDeathPlaceType } + * @see #getBirthPlace() + */ + public void setBirthPlace(BirthOrDeathPlaceType value) { + this.birthPlace = value; + } + + /** + * Date de décès d'une personne. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getDeathDate() { + return deathDate; + } + + /** + * Sets the value of the deathDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getDeathDate() + */ + public void setDeathDate(XMLGregorianCalendar value) { + this.deathDate = value; + } + + /** + * Lieu de décès d'une personne. + * + * @return possible object is {@link BirthOrDeathPlaceType } + */ + public BirthOrDeathPlaceType getDeathPlace() { + return deathPlace; + } + + /** + * Sets the value of the deathPlace property. + * + * @param value allowed object is {@link BirthOrDeathPlaceType } + * @see #getDeathPlace() + */ + public void setDeathPlace(BirthOrDeathPlaceType value) { + this.deathPlace = value; + } + + /** + * Nationalité d'une personne. + * + *

Gets the value of the nationality 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 nationality property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return The value of the nationality property. + */ + public List getNationality() { + if (nationality == null) { + nationality = new ArrayList<>(); } - - /** - * Gets the value of the givenName property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGivenName() { - return givenName; + return this.nationality; + } + + /** + * Nom d'une entité. + * + * @return possible object is {@link String } + */ + public String getCorpname() { + return corpname; + } + + /** + * Sets the value of the corpname property. + * + * @param value allowed object is {@link String } + * @see #getCorpname() + */ + public void setCorpname(String value) { + this.corpname = value; + } + + /** + * Identifiant de la personne (par exemple, le numéro matricule) ou de l'entité. + * + *

Gets the value of the identifier property. + * + *

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

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return The value of the identifier property. + */ + public List getIdentifier() { + if (identifier == null) { + identifier = new ArrayList<>(); } - - /** - * Sets the value of the givenName property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGivenName(String value) { - this.givenName = value; + return this.identifier; + } + + /** + * Date de la validation de la signature. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getValidationTime() { + return validationTime; + } + + /** + * Sets the value of the validationTime property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + * @see #getValidationTime() + */ + public void setValidationTime(XMLGregorianCalendar value) { + this.validationTime = value; + } + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Fonction. + * + *

Gets the value of the function 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 function property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the function property. + */ + public List getFunction() { + if (function == null) { + function = new ArrayList<>(); } - - /** - * Gets the value of the gender property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getGender() { - return gender; + return this.function; + } + + /** + * En plus des balises Tag et Keyword, il est possible d'indexer les objets avec des éléments + * pré-définis : Activité. + * + *

Gets the value of the activity 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 activity property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the activity property. + */ + public List getActivity() { + if (activity == null) { + activity = new ArrayList<>(); } - - /** - * Sets the value of the gender property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setGender(String value) { - this.gender = value; + return this.activity; + } + + /** + * Intitulé du poste de travail occupé par la personne. + * + *

Gets the value of the position 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 position property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the position property. + */ + public List getPosition() { + if (position == null) { + position = new ArrayList<>(); } - - /** - * Gets the value of the birthDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getBirthDate() { - return birthDate; + return this.position; + } + + /** + * Références : moreq.role + * + *

Gets the value of the role 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 role property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the role property. + */ + public List getRole() { + if (role == null) { + role = new ArrayList<>(); } - - /** - * Sets the value of the birthDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setBirthDate(XMLGregorianCalendar value) { - this.birthDate = value; - } - - /** - * Gets the value of the birthPlace property. - * - * @return - * possible object is - * {@link BirthOrDeathPlaceType } - * - */ - public BirthOrDeathPlaceType getBirthPlace() { - return birthPlace; - } - - /** - * Sets the value of the birthPlace property. - * - * @param value - * allowed object is - * {@link BirthOrDeathPlaceType } - * - */ - public void setBirthPlace(BirthOrDeathPlaceType value) { - this.birthPlace = value; - } - - /** - * Gets the value of the deathDate property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getDeathDate() { - return deathDate; + return this.role; + } + + /** + * Définit la propriété intellectuelle et artistique. + * + *

Gets the value of the mandate 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 mandate property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType } + * + * @return The value of the mandate property. + */ + public List getMandate() { + if (mandate == null) { + mandate = new ArrayList<>(); } - - /** - * Sets the value of the deathDate property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setDeathDate(XMLGregorianCalendar value) { - this.deathDate = value; - } - - /** - * Gets the value of the deathPlace property. - * - * @return - * possible object is - * {@link BirthOrDeathPlaceType } - * - */ - public BirthOrDeathPlaceType getDeathPlace() { - return deathPlace; - } - - /** - * Sets the value of the deathPlace property. - * - * @param value - * allowed object is - * {@link BirthOrDeathPlaceType } - * - */ - public void setDeathPlace(BirthOrDeathPlaceType value) { - this.deathPlace = value; - } - - /** - * Gets the value of the nationality 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the nationality property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the nationality property. - */ - public List getNationality() { - if (nationality == null) { - nationality = new ArrayList<>(); - } - return this.nationality; - } - - /** - * Gets the value of the corpname property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getCorpname() { - return corpname; - } - - /** - * Sets the value of the corpname property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setCorpname(String value) { - this.corpname = value; - } - - /** - * Gets the value of the identifier property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the Jakarta XML Binding object. - * This is why there is not a {@code set} method for the identifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link String } - * - * - * @return - * The value of the identifier property. - */ - public List getIdentifier() { - if (identifier == null) { - identifier = new ArrayList<>(); - } - return this.identifier; - } - - /** - * Gets the value of the validationTime property. - * - * @return - * possible object is - * {@link XMLGregorianCalendar } - * - */ - public XMLGregorianCalendar getValidationTime() { - return validationTime; - } - - /** - * Sets the value of the validationTime property. - * - * @param value - * allowed object is - * {@link XMLGregorianCalendar } - * - */ - public void setValidationTime(XMLGregorianCalendar value) { - this.validationTime = value; - } - - /** - * Gets the value of the function 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the function property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the function property. - */ - public List getFunction() { - if (function == null) { - function = new ArrayList<>(); - } - return this.function; - } - - /** - * Gets the value of the activity 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the activity property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the activity property. - */ - public List getActivity() { - if (activity == null) { - activity = new ArrayList<>(); - } - return this.activity; - } - - /** - * Gets the value of the position 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the position property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the position property. - */ - public List getPosition() { - if (position == null) { - position = new ArrayList<>(); - } - return this.position; - } - - /** - * Gets the value of the role 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the role property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the role property. - */ - public List getRole() { - if (role == null) { - role = new ArrayList<>(); - } - return this.role; - } - - /** - * Gets the value of the mandate 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the mandate property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list - * {@link TextType } - * - * - * @return - * The value of the mandate property. - */ - public List getMandate() { - if (mandate == null) { - mandate = new ArrayList<>(); - } - return this.mandate; - } - + return this.mandate; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/VideoTechnicalMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/VideoTechnicalMetadataType.java index dfc7a63..510bc83 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/VideoTechnicalMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/VideoTechnicalMetadataType.java @@ -1,24 +1,22 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package fr.gouv.culture.archivesdefrance.seda.v2; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlType; - /** * Contient toutes les métadonnées techniques de base pour les objets-données de type video. - * + * *

Java class for VideoTechnicalMetadataType complex type. - * + * *

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

{@code
  * 
  *   
@@ -27,14 +25,7 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "VideoTechnicalMetadataType") -public class VideoTechnicalMetadataType - extends OpenType -{ - - -} +public class VideoTechnicalMetadataType extends OpenType {} diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/package-info.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/package-info.java index a2820ad..1e3ffdc 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/package-info.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v2/package-info.java @@ -1,8 +1,10 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // -@jakarta.xml.bind.annotation.XmlSchema(namespace = "fr:gouv:culture:archivesdefrance:seda:v2", elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED) +@jakarta.xml.bind.annotation.XmlSchema( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2", + elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED) package fr.gouv.culture.archivesdefrance.seda.v2; diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AccessRuleType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AccessRuleType.java index 66a9c00..19daa27 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AccessRuleType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AccessRuleType.java @@ -1,25 +1,24 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; - -import javax.xml.datatype.XMLGregorianCalendar; import java.util.ArrayList; import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de cet ArchiveUnit. + * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de + * cet ArchiveUnit. * - *

- * Java class for AccessRuleType complex type. + *

Java class for AccessRuleType complex type. * - *

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

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

  * <complexType name="AccessRuleType">
@@ -41,104 +40,90 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AccessRuleType", propOrder = { - "ruleAndStartDate", - "preventInheritance", - "refNonRuleId" -}) +@XmlType( + name = "AccessRuleType", + propOrder = {"ruleAndStartDate", "preventInheritance", "refNonRuleId"}) public class AccessRuleType { - /** - * The Rule and start date. - */ - @XmlElements({ - @XmlElement(name = "Rule", type = RuleIdType.class), - @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) - }) - protected List ruleAndStartDate; - /** - * The Prevent inheritance. - */ - @XmlElement(name = "PreventInheritance", defaultValue = "false") - protected Boolean preventInheritance; - /** - * The Ref non rule id. - */ - @XmlElement(name = "RefNonRuleId") - protected List refNonRuleId; + /** The Rule and start date. */ + @XmlElements({ + @XmlElement(name = "Rule", type = RuleIdType.class), + @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) + }) + protected List ruleAndStartDate; - /** - * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list null null null null {@link RuleIdType } - * {@link XMLGregorianCalendar } - * - * @return the rule and start date - */ - public List getRuleAndStartDate() { - if (ruleAndStartDate == null) { - ruleAndStartDate = new ArrayList<>(); - } - return this.ruleAndStartDate; - } + /** The Prevent inheritance. */ + @XmlElement(name = "PreventInheritance", defaultValue = "false") + protected Boolean preventInheritance; - /** - * Gets the value of the preventInheritance property. - * - * @return possible object is {@link Boolean } - */ - public Boolean isPreventInheritance() { - return preventInheritance; - } + /** The Ref non rule id. */ + @XmlElement(name = "RefNonRuleId") + protected List refNonRuleId; - /** - * Sets the value of the preventInheritance property. - * - * @param value allowed object is {@link Boolean } - */ - public void setPreventInheritance(Boolean value) { - this.preventInheritance = value; + /** + * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. + * + *

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

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

Objects of the following type(s) are allowed in the list null null null null {@link + * RuleIdType } {@link XMLGregorianCalendar } + * + * @return the rule and start date + */ + public List getRuleAndStartDate() { + if (ruleAndStartDate == null) { + ruleAndStartDate = new ArrayList<>(); } + return this.ruleAndStartDate; + } - /** - * Gets the value of the refNonRuleId 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 refNonRuleId property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link RuleIdType - * }* - * - * @return the ref non rule id - */ - public List getRefNonRuleId() { - if (refNonRuleId == null) { - refNonRuleId = new ArrayList<>(); - } - return this.refNonRuleId; - } + /** + * Gets the value of the preventInheritance property. + * + * @return possible object is {@link Boolean } + */ + public Boolean isPreventInheritance() { + return preventInheritance; + } + /** + * Sets the value of the preventInheritance property. + * + * @param value allowed object is {@link Boolean } + */ + public void setPreventInheritance(Boolean value) { + this.preventInheritance = value; + } + + /** + * Gets the value of the refNonRuleId 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 refNonRuleId property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType }* + * + * @return the ref non rule id + */ + public List getRefNonRuleId() { + if (refNonRuleId == null) { + refNonRuleId = new ArrayList<>(); + } + return this.refNonRuleId; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AcknowledgementType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AcknowledgementType.java index 81ccb08..f0a1ca7 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AcknowledgementType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AcknowledgementType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for AcknowledgementType complex type. * - *

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

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

  * <complexType name="AcknowledgementType">
@@ -33,82 +32,74 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AcknowledgementType", propOrder = { - "messageReceivedIdentifier", - "sender", - "receiver" -}) -public class AcknowledgementType - extends MessageType { +@XmlType( + name = "AcknowledgementType", + propOrder = {"messageReceivedIdentifier", "sender", "receiver"}) +public class AcknowledgementType extends MessageType { - /** - * The Message received identifier. - */ - @XmlElement(name = "MessageReceivedIdentifier", required = true) - protected IdentifierType messageReceivedIdentifier; - /** - * The Sender. - */ - @XmlElement(name = "Sender", required = true) - protected OrganizationWithIdType sender; - /** - * The Receiver. - */ - @XmlElement(name = "Receiver", required = true) - protected OrganizationWithIdType receiver; + /** The Message received identifier. */ + @XmlElement(name = "MessageReceivedIdentifier", required = true) + protected IdentifierType messageReceivedIdentifier; - /** - * Gets the value of the messageReceivedIdentifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getMessageReceivedIdentifier() { - return messageReceivedIdentifier; - } + /** The Sender. */ + @XmlElement(name = "Sender", required = true) + protected OrganizationWithIdType sender; - /** - * Sets the value of the messageReceivedIdentifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setMessageReceivedIdentifier(IdentifierType value) { - this.messageReceivedIdentifier = value; - } + /** The Receiver. */ + @XmlElement(name = "Receiver", required = true) + protected OrganizationWithIdType receiver; - /** - * Gets the value of the sender property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getSender() { - return sender; - } + /** + * Gets the value of the messageReceivedIdentifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getMessageReceivedIdentifier() { + return messageReceivedIdentifier; + } - /** - * Sets the value of the sender property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setSender(OrganizationWithIdType value) { - this.sender = value; - } + /** + * Sets the value of the messageReceivedIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setMessageReceivedIdentifier(IdentifierType value) { + this.messageReceivedIdentifier = value; + } - /** - * Gets the value of the receiver property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getReceiver() { - return receiver; - } + /** + * Gets the value of the sender property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getSender() { + return sender; + } - /** - * Sets the value of the receiver property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setReceiver(OrganizationWithIdType value) { - this.receiver = value; - } + /** + * Sets the value of the sender property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setSender(OrganizationWithIdType value) { + this.sender = value; + } + /** + * Gets the value of the receiver property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getReceiver() { + return receiver; + } + + /** + * Sets the value of the receiver property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setReceiver(OrganizationWithIdType value) { + this.receiver = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AgentType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AgentType.java index 6824845..54d360a 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AgentType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AgentType.java @@ -1,27 +1,25 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - -import javax.xml.datatype.XMLGregorianCalendar; import java.util.ArrayList; import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** * Informations décrivant une personne physique ou morale. * - *

- * Java class for AgentType complex type. + *

Java class for AgentType complex type. * - *

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

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

  * <complexType name="AgentType">
@@ -37,515 +35,496 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AgentType", propOrder = { - "firstName", - "birthName", - "fullName", - "givenName", - "gender", - "birthDate", - "birthPlace", - "deathDate", - "deathPlace", - "nationality", - "corpname", - "identifier", - "function", - "activity", - "position", - "role", - "mandate" -}) +@XmlType( + name = "AgentType", + propOrder = { + "firstName", + "birthName", + "fullName", + "givenName", + "gender", + "birthDate", + "birthPlace", + "deathDate", + "deathPlace", + "nationality", + "corpname", + "identifier", + "function", + "activity", + "position", + "role", + "mandate" + }) public class AgentType { - /** - * The First name. - */ - @XmlElement(name = "FirstName") - protected String firstName; - /** - * The Birth name. - */ - @XmlElement(name = "BirthName") - protected String birthName; - /** - * The Full name. - */ - @XmlElement(name = "FullName") - protected String fullName; - /** - * The Given name. - */ - @XmlElement(name = "GivenName") - protected String givenName; - /** - * The Gender. - */ - @XmlElement(name = "Gender") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String gender; - /** - * The Birth date. - */ - @XmlElement(name = "BirthDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar birthDate; - /** - * The Birth place. - */ - @XmlElement(name = "BirthPlace") - protected BirthOrDeathPlaceType birthPlace; - /** - * The Death date. - */ - @XmlElement(name = "DeathDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar deathDate; - /** - * The Death place. - */ - @XmlElement(name = "DeathPlace") - protected BirthOrDeathPlaceType deathPlace; - /** - * The Nationality. - */ - @XmlElement(name = "Nationality") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List nationality; - /** - * The Corpname. - */ - @XmlElement(name = "Corpname") - protected String corpname; - /** - * The Identifier. - */ - @XmlElement(name = "Identifier") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List identifier; - /** - * The Function. - */ - @XmlElement(name = "Function") - protected List function; - /** - * The Activity. - */ - @XmlElement(name = "Activity") - protected List activity; - /** - * The Position. - */ - @XmlElement(name = "Position") - protected List position; - /** - * The Role. - */ - @XmlElement(name = "Role") - protected List role; - /** - * The Mandate. - */ - @XmlElement(name = "Mandate") - protected List mandate; - - /** - * Gets the value of the firstName property. - * - * @return possible object is {@link String } - */ - public String getFirstName() { - return firstName; - } - - /** - * Sets the value of the firstName property. - * - * @param value allowed object is {@link String } - */ - public void setFirstName(String value) { - this.firstName = value; - } - - /** - * Gets the value of the birthName property. - * - * @return possible object is {@link String } - */ - public String getBirthName() { - return birthName; - } - - /** - * Sets the value of the birthName property. - * - * @param value allowed object is {@link String } - */ - public void setBirthName(String value) { - this.birthName = value; - } - - /** - * Gets the value of the fullName property. - * - * @return possible object is {@link String } - */ - public String getFullName() { - return fullName; - } - - /** - * Sets the value of the fullName property. - * - * @param value allowed object is {@link String } - */ - public void setFullName(String value) { - this.fullName = value; + /** The First name. */ + @XmlElement(name = "FirstName") + protected String firstName; + + /** The Birth name. */ + @XmlElement(name = "BirthName") + protected String birthName; + + /** The Full name. */ + @XmlElement(name = "FullName") + protected String fullName; + + /** The Given name. */ + @XmlElement(name = "GivenName") + protected String givenName; + + /** The Gender. */ + @XmlElement(name = "Gender") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String gender; + + /** The Birth date. */ + @XmlElement(name = "BirthDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar birthDate; + + /** The Birth place. */ + @XmlElement(name = "BirthPlace") + protected BirthOrDeathPlaceType birthPlace; + + /** The Death date. */ + @XmlElement(name = "DeathDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar deathDate; + + /** The Death place. */ + @XmlElement(name = "DeathPlace") + protected BirthOrDeathPlaceType deathPlace; + + /** The Nationality. */ + @XmlElement(name = "Nationality") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List nationality; + + /** The Corpname. */ + @XmlElement(name = "Corpname") + protected String corpname; + + /** The Identifier. */ + @XmlElement(name = "Identifier") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List identifier; + + /** The Function. */ + @XmlElement(name = "Function") + protected List function; + + /** The Activity. */ + @XmlElement(name = "Activity") + protected List activity; + + /** The Position. */ + @XmlElement(name = "Position") + protected List position; + + /** The Role. */ + @XmlElement(name = "Role") + protected List role; + + /** The Mandate. */ + @XmlElement(name = "Mandate") + protected List mandate; + + /** + * Gets the value of the firstName property. + * + * @return possible object is {@link String } + */ + public String getFirstName() { + return firstName; + } + + /** + * Sets the value of the firstName property. + * + * @param value allowed object is {@link String } + */ + public void setFirstName(String value) { + this.firstName = value; + } + + /** + * Gets the value of the birthName property. + * + * @return possible object is {@link String } + */ + public String getBirthName() { + return birthName; + } + + /** + * Sets the value of the birthName property. + * + * @param value allowed object is {@link String } + */ + public void setBirthName(String value) { + this.birthName = value; + } + + /** + * Gets the value of the fullName property. + * + * @return possible object is {@link String } + */ + public String getFullName() { + return fullName; + } + + /** + * Sets the value of the fullName property. + * + * @param value allowed object is {@link String } + */ + public void setFullName(String value) { + this.fullName = value; + } + + /** + * Gets the value of the givenName property. + * + * @return possible object is {@link String } + */ + public String getGivenName() { + return givenName; + } + + /** + * Sets the value of the givenName property. + * + * @param value allowed object is {@link String } + */ + public void setGivenName(String value) { + this.givenName = value; + } + + /** + * Gets the value of the gender property. + * + * @return possible object is {@link String } + */ + public String getGender() { + return gender; + } + + /** + * Sets the value of the gender property. + * + * @param value allowed object is {@link String } + */ + public void setGender(String value) { + this.gender = value; + } + + /** + * Gets the value of the birthDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getBirthDate() { + return birthDate; + } + + /** + * Sets the value of the birthDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setBirthDate(XMLGregorianCalendar value) { + this.birthDate = value; + } + + /** + * Gets the value of the birthPlace property. + * + * @return possible object is {@link BirthOrDeathPlaceType } + */ + public BirthOrDeathPlaceType getBirthPlace() { + return birthPlace; + } + + /** + * Sets the value of the birthPlace property. + * + * @param value allowed object is {@link BirthOrDeathPlaceType } + */ + public void setBirthPlace(BirthOrDeathPlaceType value) { + this.birthPlace = value; + } + + /** + * Gets the value of the deathDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getDeathDate() { + return deathDate; + } + + /** + * Sets the value of the deathDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setDeathDate(XMLGregorianCalendar value) { + this.deathDate = value; + } + + /** + * Gets the value of the deathPlace property. + * + * @return possible object is {@link BirthOrDeathPlaceType } + */ + public BirthOrDeathPlaceType getDeathPlace() { + return deathPlace; + } + + /** + * Sets the value of the deathPlace property. + * + * @param value allowed object is {@link BirthOrDeathPlaceType } + */ + public void setDeathPlace(BirthOrDeathPlaceType value) { + this.deathPlace = value; + } + + /** + * Gets the value of the nationality 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 nationality property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return the nationality + */ + public List getNationality() { + if (nationality == null) { + nationality = new ArrayList<>(); } - - /** - * Gets the value of the givenName property. - * - * @return possible object is {@link String } - */ - public String getGivenName() { - return givenName; + return this.nationality; + } + + /** + * Gets the value of the corpname property. + * + * @return possible object is {@link String } + */ + public String getCorpname() { + return corpname; + } + + /** + * Sets the value of the corpname property. + * + * @param value allowed object is {@link String } + */ + public void setCorpname(String value) { + this.corpname = value; + } + + /** + * Gets the value of the identifier property. + * + *

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

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return the identifier + */ + public List getIdentifier() { + if (identifier == null) { + identifier = new ArrayList<>(); } - - /** - * Sets the value of the givenName property. - * - * @param value allowed object is {@link String } - */ - public void setGivenName(String value) { - this.givenName = value; + return this.identifier; + } + + /** + * Gets the value of the function 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 function property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the function + */ + public List getFunction() { + if (function == null) { + function = new ArrayList<>(); } - - /** - * Gets the value of the gender property. - * - * @return possible object is {@link String } - */ - public String getGender() { - return gender; + return this.function; + } + + /** + * Gets the value of the activity 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 activity property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the activity + */ + public List getActivity() { + if (activity == null) { + activity = new ArrayList<>(); } - - /** - * Sets the value of the gender property. - * - * @param value allowed object is {@link String } - */ - public void setGender(String value) { - this.gender = value; + return this.activity; + } + + /** + * Gets the value of the position 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 position property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the position + */ + public List getPosition() { + if (position == null) { + position = new ArrayList<>(); } - - /** - * Gets the value of the birthDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getBirthDate() { - return birthDate; - } - - /** - * Sets the value of the birthDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setBirthDate(XMLGregorianCalendar value) { - this.birthDate = value; - } - - /** - * Gets the value of the birthPlace property. - * - * @return possible object is {@link BirthOrDeathPlaceType } - */ - public BirthOrDeathPlaceType getBirthPlace() { - return birthPlace; - } - - /** - * Sets the value of the birthPlace property. - * - * @param value allowed object is {@link BirthOrDeathPlaceType } - */ - public void setBirthPlace(BirthOrDeathPlaceType value) { - this.birthPlace = value; - } - - /** - * Gets the value of the deathDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getDeathDate() { - return deathDate; + return this.position; + } + + /** + * Gets the value of the role 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 role property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the role + */ + public List getRole() { + if (role == null) { + role = new ArrayList<>(); } - - /** - * Sets the value of the deathDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setDeathDate(XMLGregorianCalendar value) { - this.deathDate = value; - } - - /** - * Gets the value of the deathPlace property. - * - * @return possible object is {@link BirthOrDeathPlaceType } - */ - public BirthOrDeathPlaceType getDeathPlace() { - return deathPlace; - } - - /** - * Sets the value of the deathPlace property. - * - * @param value allowed object is {@link BirthOrDeathPlaceType } - */ - public void setDeathPlace(BirthOrDeathPlaceType value) { - this.deathPlace = value; - } - - /** - * Gets the value of the nationality 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 nationality property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link String } - * - * @return the nationality - */ - public List getNationality() { - if (nationality == null) { - nationality = new ArrayList<>(); - } - return this.nationality; - } - - /** - * Gets the value of the corpname property. - * - * @return possible object is {@link String } - */ - public String getCorpname() { - return corpname; - } - - /** - * Sets the value of the corpname property. - * - * @param value allowed object is {@link String } - */ - public void setCorpname(String value) { - this.corpname = value; - } - - /** - * Gets the value of the identifier property. - * - *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the mandate - */ - public List getMandate() { - if (mandate == null) { - mandate = new ArrayList<>(); - } - return this.mandate; - } - - @Override - public String toString() { - return "AgentType{" + - "firstName='" + firstName + '\'' + - ", birthName='" + birthName + '\'' + - ", fullName='" + fullName + '\'' + - ", givenName='" + givenName + '\'' + - ", gender='" + gender + '\'' + - ", birthDate=" + birthDate + - ", birthPlace=" + birthPlace + - ", deathDate=" + deathDate + - ", deathPlace=" + deathPlace + - ", nationality=" + nationality + - ", corpname='" + corpname + '\'' + - ", identifier=" + identifier + - ", function=" + function + - ", activity=" + activity + - ", position=" + position + - ", role=" + role + - ", mandate=" + mandate + - '}'; + return this.role; + } + + /** + * Gets the value of the mandate 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 mandate property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the mandate + */ + public List getMandate() { + if (mandate == null) { + mandate = new ArrayList<>(); } + return this.mandate; + } + + @Override + public String toString() { + return "AgentType{" + + "firstName='" + + firstName + + '\'' + + ", birthName='" + + birthName + + '\'' + + ", fullName='" + + fullName + + '\'' + + ", givenName='" + + givenName + + '\'' + + ", gender='" + + gender + + '\'' + + ", birthDate=" + + birthDate + + ", birthPlace=" + + birthPlace + + ", deathDate=" + + deathDate + + ", deathPlace=" + + deathPlace + + ", nationality=" + + nationality + + ", corpname='" + + corpname + + '\'' + + ", identifier=" + + identifier + + ", function=" + + function + + ", activity=" + + activity + + ", position=" + + position + + ", role=" + + role + + ", mandate=" + + mandate + + '}'; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AppraisalRuleType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AppraisalRuleType.java index a884796..732f0e2 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AppraisalRuleType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AppraisalRuleType.java @@ -1,25 +1,24 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; - -import javax.xml.datatype.XMLGregorianCalendar; import java.util.ArrayList; import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de cet ArchiveUnit. + * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de + * cet ArchiveUnit. * - *

- * Java class for AppraisalRuleType complex type. + *

Java class for AppraisalRuleType complex type. * - *

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

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

  * <complexType name="AppraisalRuleType">
@@ -42,129 +41,113 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AppraisalRuleType", propOrder = { - "ruleAndStartDate", - "preventInheritance", - "refNonRuleId", - "finalAction" -}) +@XmlType( + name = "AppraisalRuleType", + propOrder = {"ruleAndStartDate", "preventInheritance", "refNonRuleId", "finalAction"}) public class AppraisalRuleType { - /** - * The Rule and start date. - */ - @XmlElements({ - @XmlElement(name = "Rule", type = RuleIdType.class), - @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) - }) - protected List ruleAndStartDate; - /** - * The Prevent inheritance. - */ - @XmlElement(name = "PreventInheritance", defaultValue = "false") - protected Boolean preventInheritance; - /** - * The Ref non rule id. - */ - @XmlElement(name = "RefNonRuleId") - protected List refNonRuleId; - /** - * The Final action. - */ - @XmlElement(name = "FinalAction", required = true) - @XmlSchemaType(name = "token") - protected FinalActionAppraisalCodeType finalAction; + /** The Rule and start date. */ + @XmlElements({ + @XmlElement(name = "Rule", type = RuleIdType.class), + @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) + }) + protected List ruleAndStartDate; - /** - * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list null null null null null {@link RuleIdType } - * {@link XMLGregorianCalendar } - * - * @return the rule and start date - */ - public List getRuleAndStartDate() { - if (ruleAndStartDate == null) { - ruleAndStartDate = new ArrayList<>(); - } - return this.ruleAndStartDate; - } + /** The Prevent inheritance. */ + @XmlElement(name = "PreventInheritance", defaultValue = "false") + protected Boolean preventInheritance; - /** - * Gets the value of the preventInheritance property. - * - * @return possible object is {@link Boolean } - */ - public Boolean isPreventInheritance() { - return preventInheritance; - } + /** The Ref non rule id. */ + @XmlElement(name = "RefNonRuleId") + protected List refNonRuleId; - /** - * Sets the value of the preventInheritance property. - * - * @param value allowed object is {@link Boolean } - */ - public void setPreventInheritance(Boolean value) { - this.preventInheritance = value; - } + /** The Final action. */ + @XmlElement(name = "FinalAction", required = true) + @XmlSchemaType(name = "token") + protected FinalActionAppraisalCodeType finalAction; - /** - * Gets the value of the refNonRuleId 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 refNonRuleId property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link RuleIdType - * }* - * - * @return the ref non rule id - */ - public List getRefNonRuleId() { - if (refNonRuleId == null) { - refNonRuleId = new ArrayList<>(); - } - return this.refNonRuleId; + /** + * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. + * + *

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

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

Objects of the following type(s) are allowed in the list null null null null null {@link + * RuleIdType } {@link XMLGregorianCalendar } + * + * @return the rule and start date + */ + public List getRuleAndStartDate() { + if (ruleAndStartDate == null) { + ruleAndStartDate = new ArrayList<>(); } + return this.ruleAndStartDate; + } - /** - * Gets the value of the finalAction property. - * - * @return possible object is {@link FinalActionAppraisalCodeType } - */ - public FinalActionAppraisalCodeType getFinalAction() { - return finalAction; - } + /** + * Gets the value of the preventInheritance property. + * + * @return possible object is {@link Boolean } + */ + public Boolean isPreventInheritance() { + return preventInheritance; + } - /** - * Sets the value of the finalAction property. - * - * @param value allowed object is {@link FinalActionAppraisalCodeType } - */ - public void setFinalAction(FinalActionAppraisalCodeType value) { - this.finalAction = value; + /** + * Sets the value of the preventInheritance property. + * + * @param value allowed object is {@link Boolean } + */ + public void setPreventInheritance(Boolean value) { + this.preventInheritance = value; + } + + /** + * Gets the value of the refNonRuleId 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 refNonRuleId property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType }* + * + * @return the ref non rule id + */ + public List getRefNonRuleId() { + if (refNonRuleId == null) { + refNonRuleId = new ArrayList<>(); } + return this.refNonRuleId; + } + + /** + * Gets the value of the finalAction property. + * + * @return possible object is {@link FinalActionAppraisalCodeType } + */ + public FinalActionAppraisalCodeType getFinalAction() { + return finalAction; + } + /** + * Sets the value of the finalAction property. + * + * @param value allowed object is {@link FinalActionAppraisalCodeType } + */ + public void setFinalAction(FinalActionAppraisalCodeType value) { + this.finalAction = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveDeliveryRequestReplyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveDeliveryRequestReplyType.java index 5597af4..9376ee7 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveDeliveryRequestReplyType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveDeliveryRequestReplyType.java @@ -1,25 +1,20 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; -import jakarta.xml.bind.annotation.XmlAccessType; -import jakarta.xml.bind.annotation.XmlAccessorType; -import jakarta.xml.bind.annotation.XmlElement; -import jakarta.xml.bind.annotation.XmlType; - +import jakarta.xml.bind.annotation.*; import java.util.ArrayList; import java.util.List; /** - *

* Java class for ArchiveDeliveryRequestReplyType complex type. * - *

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

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

  * <complexType name="ArchiveDeliveryRequestReplyType">
@@ -37,116 +32,108 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveDeliveryRequestReplyType", propOrder = { - "authorizationRequestReplyIdentifier", - "unitIdentifier", - "archivalAgency", - "requester" -}) -public class ArchiveDeliveryRequestReplyType - extends BusinessReplyMessageType { +@XmlType( + name = "ArchiveDeliveryRequestReplyType", + propOrder = { + "authorizationRequestReplyIdentifier", + "unitIdentifier", + "archivalAgency", + "requester" + }) +@XmlRootElement(name = "ArchiveDeliveryRequestReply") +public class ArchiveDeliveryRequestReplyType extends BusinessReplyMessageType { - /** - * The Authorization request reply identifier. - */ - @XmlElement(name = "AuthorizationRequestReplyIdentifier") - protected IdentifierType authorizationRequestReplyIdentifier; - /** - * The Unit identifier. - */ - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - /** - * The Requester. - */ - @XmlElement(name = "Requester", required = true) - protected OrganizationWithIdType requester; + /** The Authorization request reply identifier. */ + @XmlElement(name = "AuthorizationRequestReplyIdentifier") + protected IdentifierType authorizationRequestReplyIdentifier; - /** - * Gets the value of the authorizationRequestReplyIdentifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getAuthorizationRequestReplyIdentifier() { - return authorizationRequestReplyIdentifier; - } + /** The Unit identifier. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Sets the value of the authorizationRequestReplyIdentifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setAuthorizationRequestReplyIdentifier(IdentifierType value) { - this.authorizationRequestReplyIdentifier = value; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the unitIdentifier 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 unitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the unit identifier - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** The Requester. */ + @XmlElement(name = "Requester", required = true) + protected OrganizationWithIdType requester; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** + * Gets the value of the authorizationRequestReplyIdentifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getAuthorizationRequestReplyIdentifier() { + return authorizationRequestReplyIdentifier; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Sets the value of the authorizationRequestReplyIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setAuthorizationRequestReplyIdentifier(IdentifierType value) { + this.authorizationRequestReplyIdentifier = value; + } - /** - * Gets the value of the requester property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getRequester() { - return requester; + /** + * Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the unit identifier + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Sets the value of the requester property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setRequester(OrganizationWithIdType value) { - this.requester = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the requester property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getRequester() { + return requester; + } + /** + * Sets the value of the requester property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setRequester(OrganizationWithIdType value) { + this.requester = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveDeliveryRequestType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveDeliveryRequestType.java index 270a9e3..b4de631 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveDeliveryRequestType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveDeliveryRequestType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for ArchiveDeliveryRequestType complex type. * - *

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

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

  * <complexType name="ArchiveDeliveryRequestType">
@@ -37,116 +35,102 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveDeliveryRequestType", propOrder = { - "derogation", - "unitIdentifier", - "archivalAgency", - "requester" -}) -public class ArchiveDeliveryRequestType - extends BusinessRequestMessageType { +@XmlType( + name = "ArchiveDeliveryRequestType", + propOrder = {"derogation", "unitIdentifier", "archivalAgency", "requester"}) +public class ArchiveDeliveryRequestType extends BusinessRequestMessageType { - /** - * The Derogation. - */ - @XmlElement(name = "Derogation") - protected boolean derogation; - /** - * The Unit identifier. - */ - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - /** - * The Requester. - */ - @XmlElement(name = "Requester", required = true) - protected OrganizationWithIdType requester; + /** The Derogation. */ + @XmlElement(name = "Derogation") + protected boolean derogation; - /** - * Gets the value of the derogation property. - * - * @return the boolean - */ - public boolean isDerogation() { - return derogation; - } + /** The Unit identifier. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Sets the value of the derogation property. - * - * @param value the value - */ - public void setDerogation(boolean value) { - this.derogation = value; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the unitIdentifier 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 unitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the unit identifier - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** The Requester. */ + @XmlElement(name = "Requester", required = true) + protected OrganizationWithIdType requester; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** + * Gets the value of the derogation property. + * + * @return the boolean + */ + public boolean isDerogation() { + return derogation; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Sets the value of the derogation property. + * + * @param value the value + */ + public void setDerogation(boolean value) { + this.derogation = value; + } - /** - * Gets the value of the requester property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getRequester() { - return requester; + /** + * Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the unit identifier + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Sets the value of the requester property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setRequester(OrganizationWithIdType value) { - this.requester = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the requester property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getRequester() { + return requester; + } + /** + * Sets the value of the requester property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setRequester(OrganizationWithIdType value) { + this.requester = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveDestructionNotificationType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveDestructionNotificationType.java index 12e5b9a..9e8f575 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveDestructionNotificationType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveDestructionNotificationType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for ArchiveDestructionNotificationType complex type. * - *

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

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

  * <complexType name="ArchiveDestructionNotificationType">
@@ -37,116 +35,107 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveDestructionNotificationType", propOrder = { - "authorizationRequestReplyIdentifier", - "unitIdentifier", - "archivalAgency", - "originatingAgency" -}) -public class ArchiveDestructionNotificationType - extends BusinessNotificationMessageType { +@XmlType( + name = "ArchiveDestructionNotificationType", + propOrder = { + "authorizationRequestReplyIdentifier", + "unitIdentifier", + "archivalAgency", + "originatingAgency" + }) +public class ArchiveDestructionNotificationType extends BusinessNotificationMessageType { - /** - * The Authorization request reply identifier. - */ - @XmlElement(name = "AuthorizationRequestReplyIdentifier", required = true) - protected IdentifierType authorizationRequestReplyIdentifier; - /** - * The Unit identifier. - */ - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - /** - * The Originating agency. - */ - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationWithIdType originatingAgency; + /** The Authorization request reply identifier. */ + @XmlElement(name = "AuthorizationRequestReplyIdentifier", required = true) + protected IdentifierType authorizationRequestReplyIdentifier; - /** - * Gets the value of the authorizationRequestReplyIdentifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getAuthorizationRequestReplyIdentifier() { - return authorizationRequestReplyIdentifier; - } + /** The Unit identifier. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Sets the value of the authorizationRequestReplyIdentifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setAuthorizationRequestReplyIdentifier(IdentifierType value) { - this.authorizationRequestReplyIdentifier = value; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the unitIdentifier 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 unitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the unit identifier - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** The Originating agency. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationWithIdType originatingAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** + * Gets the value of the authorizationRequestReplyIdentifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getAuthorizationRequestReplyIdentifier() { + return authorizationRequestReplyIdentifier; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Sets the value of the authorizationRequestReplyIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setAuthorizationRequestReplyIdentifier(IdentifierType value) { + this.authorizationRequestReplyIdentifier = value; + } - /** - * Gets the value of the originatingAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getOriginatingAgency() { - return originatingAgency; + /** + * Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the unit identifier + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setOriginatingAgency(OrganizationWithIdType value) { - this.originatingAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the originatingAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setOriginatingAgency(OrganizationWithIdType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveModificationNotificationType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveModificationNotificationType.java index 0d249e0..73cb2b3 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveModificationNotificationType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveModificationNotificationType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for ArchiveModificationNotificationType complex type. * - *

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

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

  * <complexType name="ArchiveModificationNotificationType">
@@ -36,92 +34,80 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveModificationNotificationType", propOrder = { - "unitIdentifier", - "archivalAgency", - "originatingAgency" -}) -public class ArchiveModificationNotificationType - extends BusinessNotificationMessageType { +@XmlType( + name = "ArchiveModificationNotificationType", + propOrder = {"unitIdentifier", "archivalAgency", "originatingAgency"}) +public class ArchiveModificationNotificationType extends BusinessNotificationMessageType { - /** - * The Unit identifier. - */ - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - /** - * The Originating agency. - */ - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationWithIdType originatingAgency; + /** The Unit identifier. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Gets the value of the unitIdentifier 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 unitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the unit identifier - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** The Originating agency. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationWithIdType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; + /** + * Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the unit identifier + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Gets the value of the originatingAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getOriginatingAgency() { - return originatingAgency; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setOriginatingAgency(OrganizationWithIdType value) { - this.originatingAgency = value; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the originatingAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setOriginatingAgency(OrganizationWithIdType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveRestitutionRequestReplyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveRestitutionRequestReplyType.java index da7c956..9496ace 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveRestitutionRequestReplyType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveRestitutionRequestReplyType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for ArchiveRestitutionRequestReplyType complex type. * - *

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

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

  * <complexType name="ArchiveRestitutionRequestReplyType">
@@ -36,92 +34,80 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveRestitutionRequestReplyType", propOrder = { - "unitIdentifier", - "archivalAgency", - "originatingAgency" -}) -public class ArchiveRestitutionRequestReplyType - extends BusinessReplyMessageType { +@XmlType( + name = "ArchiveRestitutionRequestReplyType", + propOrder = {"unitIdentifier", "archivalAgency", "originatingAgency"}) +public class ArchiveRestitutionRequestReplyType extends BusinessReplyMessageType { - /** - * The Unit identifier. - */ - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - /** - * The Originating agency. - */ - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationWithIdType originatingAgency; + /** The Unit identifier. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Gets the value of the unitIdentifier 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 unitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the unit identifier - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** The Originating agency. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationWithIdType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; + /** + * Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the unit identifier + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Gets the value of the originatingAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getOriginatingAgency() { - return originatingAgency; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setOriginatingAgency(OrganizationWithIdType value) { - this.originatingAgency = value; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the originatingAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setOriginatingAgency(OrganizationWithIdType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveRestitutionRequestType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveRestitutionRequestType.java index 2112abe..0f8863b 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveRestitutionRequestType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveRestitutionRequestType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for ArchiveRestitutionRequestType complex type. * - *

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

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

  * <complexType name="ArchiveRestitutionRequestType">
@@ -36,92 +34,80 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveRestitutionRequestType", propOrder = { - "unitIdentifier", - "archivalAgency", - "originatingAgency" -}) -public class ArchiveRestitutionRequestType - extends BusinessRequestMessageType { +@XmlType( + name = "ArchiveRestitutionRequestType", + propOrder = {"unitIdentifier", "archivalAgency", "originatingAgency"}) +public class ArchiveRestitutionRequestType extends BusinessRequestMessageType { - /** - * The Unit identifier. - */ - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - /** - * The Originating agency. - */ - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationWithIdType originatingAgency; + /** The Unit identifier. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Gets the value of the unitIdentifier 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 unitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the unit identifier - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** The Originating agency. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationWithIdType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; + /** + * Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the unit identifier + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Gets the value of the originatingAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getOriginatingAgency() { - return originatingAgency; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setOriginatingAgency(OrganizationWithIdType value) { - this.originatingAgency = value; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the originatingAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setOriginatingAgency(OrganizationWithIdType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferReplyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferReplyType.java index f97ee16..136d8c9 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferReplyType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferReplyType.java @@ -1,21 +1,19 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; - import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for ArchiveTransferReplyType complex type. * - *

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

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

  * <complexType name="ArchiveTransferReplyType">
@@ -32,83 +30,75 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveTransferReplyType", propOrder = { - "grantDate", - "archivalAgency", - "transferringAgency" -}) -public class ArchiveTransferReplyType - extends BusinessReplyMessageType { +@XmlType( + name = "ArchiveTransferReplyType", + propOrder = {"grantDate", "archivalAgency", "transferringAgency"}) +public class ArchiveTransferReplyType extends BusinessReplyMessageType { + + /** The Grant date. */ + @XmlElement(name = "GrantDate") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar grantDate; - /** - * The Grant date. - */ - @XmlElement(name = "GrantDate") - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar grantDate; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - /** - * The Transferring agency. - */ - @XmlElement(name = "TransferringAgency", required = true) - protected OrganizationWithIdType transferringAgency; + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the grantDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getGrantDate() { - return grantDate; - } + /** The Transferring agency. */ + @XmlElement(name = "TransferringAgency", required = true) + protected OrganizationWithIdType transferringAgency; - /** - * Sets the value of the grantDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setGrantDate(XMLGregorianCalendar value) { - this.grantDate = value; - } + /** + * Gets the value of the grantDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getGrantDate() { + return grantDate; + } - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** + * Sets the value of the grantDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setGrantDate(XMLGregorianCalendar value) { + this.grantDate = value; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the transferringAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getTransferringAgency() { - return transferringAgency; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the transferringAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setTransferringAgency(OrganizationWithIdType value) { - this.transferringAgency = value; - } + /** + * Gets the value of the transferringAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getTransferringAgency() { + return transferringAgency; + } + /** + * Sets the value of the transferringAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setTransferringAgency(OrganizationWithIdType value) { + this.transferringAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferRequestReplyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferRequestReplyType.java index 040890c..9ace36b 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferRequestReplyType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferRequestReplyType.java @@ -1,21 +1,19 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; - import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for ArchiveTransferRequestReplyType complex type. * - *

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

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

  * <complexType name="ArchiveTransferRequestReplyType">
@@ -32,83 +30,75 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveTransferRequestReplyType", propOrder = { - "transferDate", - "archivalAgency", - "transferringAgency" -}) -public class ArchiveTransferRequestReplyType - extends BusinessReplyMessageType { +@XmlType( + name = "ArchiveTransferRequestReplyType", + propOrder = {"transferDate", "archivalAgency", "transferringAgency"}) +public class ArchiveTransferRequestReplyType extends BusinessReplyMessageType { + + /** The Transfer date. */ + @XmlElement(name = "TransferDate") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar transferDate; - /** - * The Transfer date. - */ - @XmlElement(name = "TransferDate") - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar transferDate; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - /** - * The Transferring agency. - */ - @XmlElement(name = "TransferringAgency", required = true) - protected OrganizationWithIdType transferringAgency; + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the transferDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getTransferDate() { - return transferDate; - } + /** The Transferring agency. */ + @XmlElement(name = "TransferringAgency", required = true) + protected OrganizationWithIdType transferringAgency; - /** - * Sets the value of the transferDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setTransferDate(XMLGregorianCalendar value) { - this.transferDate = value; - } + /** + * Gets the value of the transferDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getTransferDate() { + return transferDate; + } - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** + * Sets the value of the transferDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setTransferDate(XMLGregorianCalendar value) { + this.transferDate = value; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the transferringAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getTransferringAgency() { - return transferringAgency; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the transferringAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setTransferringAgency(OrganizationWithIdType value) { - this.transferringAgency = value; - } + /** + * Gets the value of the transferringAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getTransferringAgency() { + return transferringAgency; + } + /** + * Sets the value of the transferringAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setTransferringAgency(OrganizationWithIdType value) { + this.transferringAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferRequestType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferRequestType.java index 37ed86f..6d84fdf 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferRequestType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferRequestType.java @@ -1,23 +1,21 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; - -import javax.xml.datatype.XMLGregorianCalendar; import java.util.ArrayList; import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for ArchiveTransferRequestType complex type. * - *

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

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

  * <complexType name="ArchiveTransferRequestType">
@@ -35,117 +33,108 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveTransferRequestType", propOrder = { - "relatedTransferReference", - "transferDate", - "archivalAgency", - "transferringAgency" -}) -public class ArchiveTransferRequestType - extends BusinessRequestMessageType { +@XmlType( + name = "ArchiveTransferRequestType", + propOrder = { + "relatedTransferReference", + "transferDate", + "archivalAgency", + "transferringAgency" + }) +public class ArchiveTransferRequestType extends BusinessRequestMessageType { - /** - * The Related transfer reference. - */ - @XmlElement(name = "RelatedTransferReference") - protected List relatedTransferReference; - /** - * The Transfer date. - */ - @XmlElement(name = "TransferDate") - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar transferDate; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - /** - * The Transferring agency. - */ - @XmlElement(name = "TransferringAgency", required = true) - protected OrganizationWithIdType transferringAgency; + /** The Related transfer reference. */ + @XmlElement(name = "RelatedTransferReference") + protected List relatedTransferReference; - /** - * Gets the value of the relatedTransferReference 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 relatedTransferReference property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the related transfer reference - */ - public List getRelatedTransferReference() { - if (relatedTransferReference == null) { - relatedTransferReference = new ArrayList<>(); - } - return this.relatedTransferReference; - } + /** The Transfer date. */ + @XmlElement(name = "TransferDate") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar transferDate; - /** - * Gets the value of the transferDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getTransferDate() { - return transferDate; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Sets the value of the transferDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setTransferDate(XMLGregorianCalendar value) { - this.transferDate = value; - } + /** The Transferring agency. */ + @XmlElement(name = "TransferringAgency", required = true) + protected OrganizationWithIdType transferringAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; + /** + * Gets the value of the relatedTransferReference 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 relatedTransferReference property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the related transfer reference + */ + public List getRelatedTransferReference() { + if (relatedTransferReference == null) { + relatedTransferReference = new ArrayList<>(); } + return this.relatedTransferReference; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the transferDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getTransferDate() { + return transferDate; + } - /** - * Gets the value of the transferringAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getTransferringAgency() { - return transferringAgency; - } + /** + * Sets the value of the transferDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setTransferDate(XMLGregorianCalendar value) { + this.transferDate = value; + } - /** - * Sets the value of the transferringAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setTransferringAgency(OrganizationWithIdType value) { - this.transferringAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the transferringAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getTransferringAgency() { + return transferringAgency; + } + /** + * Sets the value of the transferringAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setTransferringAgency(OrganizationWithIdType value) { + this.transferringAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferType.java index 4417c18..9d2293e 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveTransferType.java @@ -1,22 +1,20 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for ArchiveTransferType complex type. * - *

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

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

  * <complexType name="ArchiveTransferType">
@@ -35,116 +33,107 @@
  */
 @XmlRootElement(name = "ArchiveTransfer")
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "ArchiveTransferType", propOrder = {
-    "relatedTransferReference",
-    "transferRequestReplyIdentifier",
-    "archivalAgency",
-    "transferringAgency"
-})
-public class ArchiveTransferType
-        extends BusinessRequestMessageType {
+@XmlType(
+    name = "ArchiveTransferType",
+    propOrder = {
+      "relatedTransferReference",
+      "transferRequestReplyIdentifier",
+      "archivalAgency",
+      "transferringAgency"
+    })
+public class ArchiveTransferType extends BusinessRequestMessageType {
 
-    /**
-     * The Related transfer reference.
-     */
-    @XmlElement(name = "RelatedTransferReference")
-    protected List relatedTransferReference;
-    /**
-     * The Transfer request reply identifier.
-     */
-    @XmlElement(name = "TransferRequestReplyIdentifier")
-    protected IdentifierType transferRequestReplyIdentifier;
-    /**
-     * The Archival agency.
-     */
-    @XmlElement(name = "ArchivalAgency", required = true)
-    protected OrganizationWithIdType archivalAgency;
-    /**
-     * The Transferring agency.
-     */
-    @XmlElement(name = "TransferringAgency", required = true)
-    protected OrganizationWithIdType transferringAgency;
+  /** The Related transfer reference. */
+  @XmlElement(name = "RelatedTransferReference")
+  protected List relatedTransferReference;
 
-    /**
-     * Gets the value of the relatedTransferReference 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 relatedTransferReference property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the related transfer reference - */ - public List getRelatedTransferReference() { - if (relatedTransferReference == null) { - relatedTransferReference = new ArrayList(); - } - return this.relatedTransferReference; - } + /** The Transfer request reply identifier. */ + @XmlElement(name = "TransferRequestReplyIdentifier") + protected IdentifierType transferRequestReplyIdentifier; - /** - * Gets the value of the transferRequestReplyIdentifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getTransferRequestReplyIdentifier() { - return transferRequestReplyIdentifier; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Sets the value of the transferRequestReplyIdentifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setTransferRequestReplyIdentifier(IdentifierType value) { - this.transferRequestReplyIdentifier = value; - } + /** The Transferring agency. */ + @XmlElement(name = "TransferringAgency", required = true) + protected OrganizationWithIdType transferringAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; + /** + * Gets the value of the relatedTransferReference 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 relatedTransferReference property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the related transfer reference + */ + public List getRelatedTransferReference() { + if (relatedTransferReference == null) { + relatedTransferReference = new ArrayList(); } + return this.relatedTransferReference; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the transferRequestReplyIdentifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getTransferRequestReplyIdentifier() { + return transferRequestReplyIdentifier; + } - /** - * Gets the value of the transferringAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getTransferringAgency() { - return transferringAgency; - } + /** + * Sets the value of the transferRequestReplyIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setTransferRequestReplyIdentifier(IdentifierType value) { + this.transferRequestReplyIdentifier = value; + } - /** - * Sets the value of the transferringAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setTransferringAgency(OrganizationWithIdType value) { - this.transferringAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the transferringAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getTransferringAgency() { + return transferringAgency; + } + /** + * Sets the value of the transferringAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setTransferringAgency(OrganizationWithIdType value) { + this.transferringAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveUnitIdentifierKeyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveUnitIdentifierKeyType.java index b89145f..711750f 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveUnitIdentifierKeyType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveUnitIdentifierKeyType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for ArchiveUnitIdentifierKeyType complex type. * - *

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

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

  * <complexType name="ArchiveUnitIdentifierKeyType">
@@ -31,59 +30,54 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveUnitIdentifierKeyType", propOrder = { - "metadataName", - "metadataValue" -}) +@XmlType( + name = "ArchiveUnitIdentifierKeyType", + propOrder = {"metadataName", "metadataValue"}) public class ArchiveUnitIdentifierKeyType { - /** - * The Metadata name. - */ - @XmlElement(name = "MetadataName", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String metadataName; - /** - * The Metadata value. - */ - @XmlElement(name = "MetadataValue", required = true) - protected String metadataValue; + /** The Metadata name. */ + @XmlElement(name = "MetadataName", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String metadataName; - /** - * Gets the value of the metadataName property. - * - * @return possible object is {@link String } - */ - public String getMetadataName() { - return metadataName; - } + /** The Metadata value. */ + @XmlElement(name = "MetadataValue", required = true) + protected String metadataValue; - /** - * Sets the value of the metadataName property. - * - * @param value allowed object is {@link String } - */ - public void setMetadataName(String value) { - this.metadataName = value; - } + /** + * Gets the value of the metadataName property. + * + * @return possible object is {@link String } + */ + public String getMetadataName() { + return metadataName; + } - /** - * Gets the value of the metadataValue property. - * - * @return possible object is {@link String } - */ - public String getMetadataValue() { - return metadataValue; - } + /** + * Sets the value of the metadataName property. + * + * @param value allowed object is {@link String } + */ + public void setMetadataName(String value) { + this.metadataName = value; + } - /** - * Sets the value of the metadataValue property. - * - * @param value allowed object is {@link String } - */ - public void setMetadataValue(String value) { - this.metadataValue = value; - } + /** + * Gets the value of the metadataValue property. + * + * @return possible object is {@link String } + */ + public String getMetadataValue() { + return metadataValue; + } + /** + * Sets the value of the metadataValue property. + * + * @param value allowed object is {@link String } + */ + public void setMetadataValue(String value) { + this.metadataValue = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveUnitType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveUnitType.java index 2054271..d8742dd 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveUnitType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ArchiveUnitType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -10,19 +11,16 @@ import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; -import org.w3c.dom.Element; - import java.util.ArrayList; import java.util.List; +import org.w3c.dom.Element; /** * Unité de base des métadonnées de description contenant la gestion de l'arborescence. * - *

- * Java class for ArchiveUnitType complex type. + *

Java class for ArchiveUnitType complex type. * - *

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

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

  * <complexType name="ArchiveUnitType">
@@ -49,181 +47,174 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveUnitType", propOrder = { - "archiveUnitRefId", - "archiveUnitProfile", - "management", - "content", - "archiveUnitOrDataObjectReferenceOrDataObjectGroup" -}) -public class ArchiveUnitType { - - /** - * The Archive unit ref id. - */ - @XmlElement(name = "ArchiveUnitRefId") - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object archiveUnitRefId; - /** - * The Archive unit profile. - */ - @XmlElement(name = "ArchiveUnitProfile") - protected IdentifierType archiveUnitProfile; - /** - * The Management. - */ - @XmlElement(name = "Management") - protected ManagementType management; - /** - * The Content. - */ - @XmlElement(name = "Content") - protected DescriptiveMetadataContentType content; - - /** - * The Archive unit or data object reference or data object group. - */ -// $ed -// @XmlElementRefs({ -// @XmlElementRef(name = "ArchiveUnit", namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", type = JAXBElement.class, required = false), -// @XmlElementRef(name = "DataObjectReference", namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", type = JAXBElement.class, required = false), -// @XmlElementRef(name = "DataObjectGroup", namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", type = JAXBElement.class, required = false) -// }) -// @XmlAnyElement(lax = true) - @XmlElements({ - @XmlElement(name = "ArchiveUnit", type = ArchiveUnitType.class), - @XmlElement(name = "DataObjectReference", type = DataObjectRefType.class), - @XmlElement(name = "DataObjectGroup", type = DataObjectGroupType.class) +@XmlType( + name = "ArchiveUnitType", + propOrder = { + "archiveUnitRefId", + "archiveUnitProfile", + "management", + "content", + "archiveUnitOrDataObjectReferenceOrDataObjectGroup" }) - protected List archiveUnitOrDataObjectReferenceOrDataObjectGroup; - /** - * The Id. - */ - @XmlAttribute(name = "id", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - protected String id; - - /** - * Gets the value of the archiveUnitRefId property. - * - * @return possible object is {@link Object } - */ - public Object getArchiveUnitRefId() { - return archiveUnitRefId; - } - - /** - * Sets the value of the archiveUnitRefId property. - * - * @param value allowed object is {@link Object } - */ - public void setArchiveUnitRefId(Object value) { - this.archiveUnitRefId = value; - } - - /** - * Gets the value of the archiveUnitProfile property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getArchiveUnitProfile() { - return archiveUnitProfile; - } - - /** - * Sets the value of the archiveUnitProfile property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setArchiveUnitProfile(IdentifierType value) { - this.archiveUnitProfile = value; - } - - /** - * Gets the value of the management property. - * - * @return possible object is {@link ManagementType } - */ - public ManagementType getManagement() { - return management; - } - - /** - * Sets the value of the management property. - * - * @param value allowed object is {@link ManagementType } - */ - public void setManagement(ManagementType value) { - this.management = value; - } - - /** - * Gets the value of the content property. - * - * @return possible object is {@link DescriptiveMetadataContentType } - */ - public DescriptiveMetadataContentType getContent() { - return content; - } - - /** - * Sets the value of the content property. - * - * @param value allowed object is {@link DescriptiveMetadataContentType } - */ - public void setContent(DescriptiveMetadataContentType value) { - this.content = value; - } - - /** - * Gets the value of the archiveUnitOrDataObjectReferenceOrDataObjectGroup 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 archiveUnitOrDataObjectReferenceOrDataObjectGroup property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list null null null null {@link JAXBElement }{@code <}{@link ArchiveUnitType }{@code >} - * {@link JAXBElement }{@code <}{@link DataObjectRefType }{@code >} - * {@link JAXBElement }{@code <}{@link ObjectGroupRefType }{@code >} - * {@link Element } - * {@link Object } - * - * @return the archive unit or data object reference or data object group - */ - public List getArchiveUnitOrDataObjectReferenceOrDataObjectGroup() { - if (archiveUnitOrDataObjectReferenceOrDataObjectGroup == null) { - archiveUnitOrDataObjectReferenceOrDataObjectGroup = new ArrayList(); - } - return this.archiveUnitOrDataObjectReferenceOrDataObjectGroup; - } - - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } +public class ArchiveUnitType { - /** - * Sets the value of the id property. - * - * @param value allowed object is {@link String } - */ - public void setId(String value) { - this.id = value; + /** The Archive unit ref id. */ + @XmlElement(name = "ArchiveUnitRefId") + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object archiveUnitRefId; + + /** The Archive unit profile. */ + @XmlElement(name = "ArchiveUnitProfile") + protected IdentifierType archiveUnitProfile; + + /** The Management. */ + @XmlElement(name = "Management") + protected ManagementType management; + + /** The Content. */ + @XmlElement(name = "Content") + protected DescriptiveMetadataContentType content; + + /** The Archive unit or data object reference or data object group. */ + // $ed + // @XmlElementRefs({ + // @XmlElementRef(name = "ArchiveUnit", namespace = + // "fr:gouv:culture:archivesdefrance:seda:v2.1", type = JAXBElement.class, required = false), + // @XmlElementRef(name = "DataObjectReference", namespace = + // "fr:gouv:culture:archivesdefrance:seda:v2.1", type = JAXBElement.class, required = false), + // @XmlElementRef(name = "DataObjectGroup", namespace = + // "fr:gouv:culture:archivesdefrance:seda:v2.1", type = JAXBElement.class, required = false) + // }) + // @XmlAnyElement(lax = true) + @XmlElements({ + @XmlElement(name = "ArchiveUnit", type = ArchiveUnitType.class), + @XmlElement(name = "DataObjectReference", type = DataObjectRefType.class), + @XmlElement(name = "DataObjectGroup", type = DataObjectGroupType.class) + }) + protected List archiveUnitOrDataObjectReferenceOrDataObjectGroup; + + /** The Id. */ + @XmlAttribute(name = "id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Gets the value of the archiveUnitRefId property. + * + * @return possible object is {@link Object } + */ + public Object getArchiveUnitRefId() { + return archiveUnitRefId; + } + + /** + * Sets the value of the archiveUnitRefId property. + * + * @param value allowed object is {@link Object } + */ + public void setArchiveUnitRefId(Object value) { + this.archiveUnitRefId = value; + } + + /** + * Gets the value of the archiveUnitProfile property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getArchiveUnitProfile() { + return archiveUnitProfile; + } + + /** + * Sets the value of the archiveUnitProfile property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setArchiveUnitProfile(IdentifierType value) { + this.archiveUnitProfile = value; + } + + /** + * Gets the value of the management property. + * + * @return possible object is {@link ManagementType } + */ + public ManagementType getManagement() { + return management; + } + + /** + * Sets the value of the management property. + * + * @param value allowed object is {@link ManagementType } + */ + public void setManagement(ManagementType value) { + this.management = value; + } + + /** + * Gets the value of the content property. + * + * @return possible object is {@link DescriptiveMetadataContentType } + */ + public DescriptiveMetadataContentType getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value allowed object is {@link DescriptiveMetadataContentType } + */ + public void setContent(DescriptiveMetadataContentType value) { + this.content = value; + } + + /** + * Gets the value of the archiveUnitOrDataObjectReferenceOrDataObjectGroup 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 + * archiveUnitOrDataObjectReferenceOrDataObjectGroup property. + * + *

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

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

Objects of the following type(s) are allowed in the list null null null null {@link + * JAXBElement }{@code <}{@link ArchiveUnitType }{@code >} {@link JAXBElement }{@code <}{@link + * DataObjectRefType }{@code >} {@link JAXBElement }{@code <}{@link ObjectGroupRefType }{@code >} + * {@link Element } {@link Object } + * + * @return the archive unit or data object reference or data object group + */ + public List getArchiveUnitOrDataObjectReferenceOrDataObjectGroup() { + if (archiveUnitOrDataObjectReferenceOrDataObjectGroup == null) { + archiveUnitOrDataObjectReferenceOrDataObjectGroup = new ArrayList(); } - + return this.archiveUnitOrDataObjectReferenceOrDataObjectGroup; + } + + /** + * 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/fr/gouv/culture/archivesdefrance/seda/v21/AudioTechnicalMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AudioTechnicalMetadataType.java index bea9de3..8e5c1f2 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AudioTechnicalMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AudioTechnicalMetadataType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -13,11 +14,9 @@ /** * Contient toutes les métadonnées techniques de base pour les objets-données de type audio. * - *

- * Java class for AudioTechnicalMetadataType complex type. + *

Java class for AudioTechnicalMetadataType complex type. * - *

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

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

  * <complexType name="AudioTechnicalMetadataType">
@@ -30,7 +29,4 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "AudioTechnicalMetadataType")
-public class AudioTechnicalMetadataType
-        extends OpenType {
-
-}
+public class AudioTechnicalMetadataType extends OpenType {}
diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationControlAuthorityRequestReplyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationControlAuthorityRequestReplyType.java
index 494f870..5dc1857 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationControlAuthorityRequestReplyType.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationControlAuthorityRequestReplyType.java
@@ -1,8 +1,9 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
 package fr.gouv.culture.archivesdefrance.seda.v21;
 
@@ -12,11 +13,9 @@
 import jakarta.xml.bind.annotation.XmlType;
 
 /**
- * 

* Java class for AuthorizationControlAuthorityRequestReplyType complex type. * - *

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

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

  * <complexType name="AuthorizationControlAuthorityRequestReplyType">
@@ -32,58 +31,53 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationControlAuthorityRequestReplyType", propOrder = { - "archivalAgency", - "controlAuthority" -}) +@XmlType( + name = "AuthorizationControlAuthorityRequestReplyType", + propOrder = {"archivalAgency", "controlAuthority"}) public class AuthorizationControlAuthorityRequestReplyType - extends BusinessAuthorizationRequestReplyMessageType { + extends BusinessAuthorizationRequestReplyMessageType { - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - /** - * The Control authority. - */ - @XmlElement(name = "ControlAuthority", required = true) - protected OrganizationWithIdType controlAuthority; + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** The Control authority. */ + @XmlElement(name = "ControlAuthority", required = true) + protected OrganizationWithIdType controlAuthority; - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the controlAuthority property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getControlAuthority() { - return controlAuthority; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the controlAuthority property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setControlAuthority(OrganizationWithIdType value) { - this.controlAuthority = value; - } + /** + * Gets the value of the controlAuthority property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getControlAuthority() { + return controlAuthority; + } + /** + * Sets the value of the controlAuthority property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setControlAuthority(OrganizationWithIdType value) { + this.controlAuthority = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationControlAuthorityRequestType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationControlAuthorityRequestType.java index 7f50259..d249160 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationControlAuthorityRequestType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationControlAuthorityRequestType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for AuthorizationControlAuthorityRequestType complex type. * - *

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

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

  * <complexType name="AuthorizationControlAuthorityRequestType">
@@ -32,58 +31,53 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationControlAuthorityRequestType", propOrder = { - "archivalAgency", - "controlAuthority" -}) +@XmlType( + name = "AuthorizationControlAuthorityRequestType", + propOrder = {"archivalAgency", "controlAuthority"}) public class AuthorizationControlAuthorityRequestType - extends BusinessAuthorizationRequestMessageType { + extends BusinessAuthorizationRequestMessageType { - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - /** - * The Control authority. - */ - @XmlElement(name = "ControlAuthority", required = true) - protected OrganizationWithIdType controlAuthority; + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** The Control authority. */ + @XmlElement(name = "ControlAuthority", required = true) + protected OrganizationWithIdType controlAuthority; - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the controlAuthority property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getControlAuthority() { - return controlAuthority; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the controlAuthority property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setControlAuthority(OrganizationWithIdType value) { - this.controlAuthority = value; - } + /** + * Gets the value of the controlAuthority property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getControlAuthority() { + return controlAuthority; + } + /** + * Sets the value of the controlAuthority property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setControlAuthority(OrganizationWithIdType value) { + this.controlAuthority = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationOriginatingAgencyRequestReplyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationOriginatingAgencyRequestReplyType.java index d91da27..42ea04d 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationOriginatingAgencyRequestReplyType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationOriginatingAgencyRequestReplyType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for AuthorizationOriginatingAgencyRequestReplyType complex type. * - *

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

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

  * <complexType name="AuthorizationOriginatingAgencyRequestReplyType">
@@ -32,58 +31,53 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationOriginatingAgencyRequestReplyType", propOrder = { - "archivalAgency", - "originatingAgency" -}) +@XmlType( + name = "AuthorizationOriginatingAgencyRequestReplyType", + propOrder = {"archivalAgency", "originatingAgency"}) public class AuthorizationOriginatingAgencyRequestReplyType - extends BusinessAuthorizationRequestReplyMessageType { + extends BusinessAuthorizationRequestReplyMessageType { - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - /** - * The Originating agency. - */ - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationWithIdType originatingAgency; + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** The Originating agency. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationWithIdType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the originatingAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getOriginatingAgency() { - return originatingAgency; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setOriginatingAgency(OrganizationWithIdType value) { - this.originatingAgency = value; - } + /** + * Gets the value of the originatingAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setOriginatingAgency(OrganizationWithIdType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationOriginatingAgencyRequestType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationOriginatingAgencyRequestType.java index 41b6397..32bdbe0 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationOriginatingAgencyRequestType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationOriginatingAgencyRequestType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for AuthorizationOriginatingAgencyRequestType complex type. * - *

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

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

  * <complexType name="AuthorizationOriginatingAgencyRequestType">
@@ -32,58 +31,53 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationOriginatingAgencyRequestType", propOrder = { - "archivalAgency", - "originatingAgency" -}) +@XmlType( + name = "AuthorizationOriginatingAgencyRequestType", + propOrder = {"archivalAgency", "originatingAgency"}) public class AuthorizationOriginatingAgencyRequestType - extends BusinessAuthorizationRequestMessageType { + extends BusinessAuthorizationRequestMessageType { - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationWithIdType archivalAgency; - /** - * The Originating agency. - */ - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationWithIdType originatingAgency; + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationWithIdType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getArchivalAgency() { - return archivalAgency; - } + /** The Originating agency. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationWithIdType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setArchivalAgency(OrganizationWithIdType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the originatingAgency property. - * - * @return possible object is {@link OrganizationWithIdType } - */ - public OrganizationWithIdType getOriginatingAgency() { - return originatingAgency; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setArchivalAgency(OrganizationWithIdType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value allowed object is {@link OrganizationWithIdType } - */ - public void setOriginatingAgency(OrganizationWithIdType value) { - this.originatingAgency = value; - } + /** + * Gets the value of the originatingAgency property. + * + * @return possible object is {@link OrganizationWithIdType } + */ + public OrganizationWithIdType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationWithIdType } + */ + public void setOriginatingAgency(OrganizationWithIdType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationRequestContentType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationRequestContentType.java index e7e3317..aedb6e7 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationRequestContentType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/AuthorizationRequestContentType.java @@ -1,25 +1,23 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - -import javax.xml.datatype.XMLGregorianCalendar; import java.util.ArrayList; import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for AuthorizationRequestContentType complex type. * - *

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

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

  * <complexType name="AuthorizationRequestContentType">
@@ -40,212 +38,194 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationRequestContentType", propOrder = { - "authorizationReason", - "comment", - "requestDate", - "unitIdentifier", - "requester", - "authorizationRequestReply" -}) +@XmlType( + name = "AuthorizationRequestContentType", + propOrder = { + "authorizationReason", + "comment", + "requestDate", + "unitIdentifier", + "requester", + "authorizationRequestReply" + }) public class AuthorizationRequestContentType { - /** - * The Authorization reason. - */ - @XmlElement(name = "AuthorizationReason", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String authorizationReason; - /** - * The Comment. - */ - @XmlElement(name = "Comment") - protected List comment; - /** - * The Request date. - */ - @XmlElement(name = "RequestDate", required = true) - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar requestDate; - /** - * The Unit identifier. - */ - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - /** - * The Requester. - */ - @XmlElement(name = "Requester", required = true) - protected OrganizationType requester; - /** - * The Authorization request reply. - */ - @XmlElement(name = "AuthorizationRequestReply") - protected List authorizationRequestReply; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - - /** - * Gets the value of the authorizationReason property. - * - * @return possible object is {@link String } - */ - public String getAuthorizationReason() { - return authorizationReason; - } - - /** - * Sets the value of the authorizationReason property. - * - * @param value allowed object is {@link String } - */ - public void setAuthorizationReason(String value) { - this.authorizationReason = value; - } - - /** - * Gets the value of the comment 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 comment property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the comment - */ - public List getComment() { - if (comment == null) { - comment = new ArrayList(); - } - return this.comment; - } - - /** - * Gets the value of the requestDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getRequestDate() { - return requestDate; - } - - /** - * Sets the value of the requestDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setRequestDate(XMLGregorianCalendar value) { - this.requestDate = value; + /** The Authorization reason. */ + @XmlElement(name = "AuthorizationReason", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String authorizationReason; + + /** The Comment. */ + @XmlElement(name = "Comment") + protected List comment; + + /** The Request date. */ + @XmlElement(name = "RequestDate", required = true) + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar requestDate; + + /** The Unit identifier. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; + + /** The Requester. */ + @XmlElement(name = "Requester", required = true) + protected OrganizationType requester; + + /** The Authorization request reply. */ + @XmlElement(name = "AuthorizationRequestReply") + protected List authorizationRequestReply; + + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Gets the value of the authorizationReason property. + * + * @return possible object is {@link String } + */ + public String getAuthorizationReason() { + return authorizationReason; + } + + /** + * Sets the value of the authorizationReason property. + * + * @param value allowed object is {@link String } + */ + public void setAuthorizationReason(String value) { + this.authorizationReason = value; + } + + /** + * Gets the value of the comment 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 comment property. + * + *

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

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

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

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

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

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the unit identifier - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList(); - } - return this.unitIdentifier; - } - - /** - * Gets the value of the requester property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getRequester() { - return requester; + return this.comment; + } + + /** + * Gets the value of the requestDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getRequestDate() { + return requestDate; + } + + /** + * Sets the value of the requestDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setRequestDate(XMLGregorianCalendar value) { + this.requestDate = value; + } + + /** + * Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the unit identifier + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList(); } - - /** - * Sets the value of the requester property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setRequester(OrganizationType value) { - this.requester = value; - } - - /** - * Gets the value of the authorizationRequestReply 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 authorizationRequestReply property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link BusinessAuthorizationRequestReplyMessageType - * }* - * - * @return the authorization request reply - */ - public List getAuthorizationRequestReply() { - if (authorizationRequestReply == null) { - authorizationRequestReply = new ArrayList(); - } - return this.authorizationRequestReply; + return this.unitIdentifier; + } + + /** + * Gets the value of the requester property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getRequester() { + return requester; + } + + /** + * Sets the value of the requester property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setRequester(OrganizationType value) { + this.requester = value; + } + + /** + * Gets the value of the authorizationRequestReply 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 authorizationRequestReply property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link + * BusinessAuthorizationRequestReplyMessageType }* + * + * @return the authorization request reply + */ + public List getAuthorizationRequestReply() { + if (authorizationRequestReply == null) { + authorizationRequestReply = new ArrayList(); } - - /** - * 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; - } - + return this.authorizationRequestReply; + } + + /** + * 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/fr/gouv/culture/archivesdefrance/seda/v21/BaseDimensionsType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BaseDimensionsType.java index 095103a..83be913 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BaseDimensionsType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BaseDimensionsType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for BaseDimensionsType complex type. * - *

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

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

  * <complexType name="BaseDimensionsType">
@@ -29,9 +28,5 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "BaseDimensionsType")
-@XmlSeeAlso({
-    DimensionsType.class
-})
-public abstract class BaseDimensionsType {
-
-}
+@XmlSeeAlso({DimensionsType.class})
+public abstract class BaseDimensionsType {}
diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BinaryDataObjectType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BinaryDataObjectType.java
index 74fcedc..c64ed58 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BinaryDataObjectType.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BinaryDataObjectType.java
@@ -1,25 +1,23 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
 package fr.gouv.culture.archivesdefrance.seda.v21;
 
 import jakarta.xml.bind.annotation.*;
-
 import java.math.BigInteger;
 
 /**
  * Objet-données numérique.
- * 

- * Métadonnées techniques minimales : URI, Digest, Poids. * - *

- * Java class for BinaryDataObjectType complex type. + *

Métadonnées techniques minimales : URI, Digest, Poids. + * + *

Java class for BinaryDataObjectType complex type. * - *

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

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

  * <complexType name="BinaryDataObjectType">
@@ -37,228 +35,218 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BinaryDataObjectType", propOrder = { - "attachment", - "uri", - "messageDigest", - "size", - "compressed", - "formatIdentification", - "fileInfo", - "metadata", - "otherMetadata" -}) -public class BinaryDataObjectType - extends MinimalDataObjectType { - - /** - * The Attachment. - */ - @XmlElement(name = "Attachment") - protected BinaryObjectType attachment; - /** - * The Uri. - */ - @XmlElement(name = "Uri") - @XmlSchemaType(name = "anyURI") - protected String uri; - /** - * The Message digest. - */ - @XmlElement(name = "MessageDigest") - protected MessageDigestBinaryObjectType messageDigest; - /** - * The Size. - */ - @XmlElement(name = "Size") - @XmlSchemaType(name = "positiveInteger") - protected BigInteger size; - /** - * The Compressed. - */ - @XmlElement(name = "Compressed") - protected CompressedType compressed; - /** - * The Format identification. - */ - @XmlElement(name = "FormatIdentification") - protected FormatIdentificationType formatIdentification; - /** - * The File info. - */ - @XmlElement(name = "FileInfo") - protected FileInfoType fileInfo; - /** - * The Metadata. - */ - @XmlElement(name = "Metadata") - protected CoreMetadataType metadata; - /** - * The Other metadata. - */ - @XmlElement(name = "OtherMetadata") - protected DescriptiveTechnicalMetadataType otherMetadata; - - /** - * Gets the value of the attachment property. - * - * @return possible object is {@link BinaryObjectType } - */ - public BinaryObjectType getAttachment() { - return attachment; - } - - /** - * Sets the value of the attachment property. - * - * @param value allowed object is {@link BinaryObjectType } - */ - public void setAttachment(BinaryObjectType value) { - this.attachment = value; - } - - /** - * Gets the value of the uri property. - * - * @return possible object is {@link String } - */ - public String getUri() { - return uri; - } - - /** - * Sets the value of the uri property. - * - * @param value allowed object is {@link String } - */ - public void setUri(String value) { - this.uri = value; - } - - /** - * Gets the value of the messageDigest property. - * - * @return possible object is {@link MessageDigestBinaryObjectType } - */ - public MessageDigestBinaryObjectType getMessageDigest() { - return messageDigest; - } - - /** - * Sets the value of the messageDigest property. - * - * @param value allowed object is {@link MessageDigestBinaryObjectType } - */ - public void setMessageDigest(MessageDigestBinaryObjectType value) { - this.messageDigest = value; - } - - /** - * Gets the value of the size property. - * - * @return possible object is {@link BigInteger } - */ - public BigInteger getSize() { - return size; - } - - /** - * Sets the value of the size property. - * - * @param value allowed object is {@link BigInteger } - */ - public void setSize(BigInteger value) { - this.size = value; - } - - /** - * Gets the value of the compressed property. - * - * @return possible object is {@link CompressedType } - */ - public CompressedType getCompressed() { - return compressed; - } - - /** - * Sets the value of the compressed property. - * - * @param value allowed object is {@link CompressedType } - */ - public void setCompressed(CompressedType value) { - this.compressed = value; - } - - /** - * Gets the value of the formatIdentification property. - * - * @return possible object is {@link FormatIdentificationType } - */ - public FormatIdentificationType getFormatIdentification() { - return formatIdentification; - } - - /** - * Sets the value of the formatIdentification property. - * - * @param value allowed object is {@link FormatIdentificationType } - */ - public void setFormatIdentification(FormatIdentificationType value) { - this.formatIdentification = value; - } - - /** - * Gets the value of the fileInfo property. - * - * @return possible object is {@link FileInfoType } - */ - public FileInfoType getFileInfo() { - return fileInfo; - } - - /** - * Sets the value of the fileInfo property. - * - * @param value allowed object is {@link FileInfoType } - */ - public void setFileInfo(FileInfoType value) { - this.fileInfo = value; - } - - /** - * Gets the value of the metadata property. - * - * @return possible object is {@link CoreMetadataType } - */ - public CoreMetadataType getMetadata() { - return metadata; - } - - /** - * Sets the value of the metadata property. - * - * @param value allowed object is {@link CoreMetadataType } - */ - public void setMetadata(CoreMetadataType value) { - this.metadata = value; - } - - /** - * Gets the value of the otherMetadata property. - * - * @return possible object is {@link DescriptiveTechnicalMetadataType } - */ - public DescriptiveTechnicalMetadataType getOtherMetadata() { - return otherMetadata; - } - - /** - * Sets the value of the otherMetadata property. - * - * @param value allowed object is {@link DescriptiveTechnicalMetadataType } - */ - public void setOtherMetadata(DescriptiveTechnicalMetadataType value) { - this.otherMetadata = value; - } - +@XmlType( + name = "BinaryDataObjectType", + propOrder = { + "attachment", + "uri", + "messageDigest", + "size", + "compressed", + "formatIdentification", + "fileInfo", + "metadata", + "otherMetadata" + }) +public class BinaryDataObjectType extends MinimalDataObjectType { + + /** The Attachment. */ + @XmlElement(name = "Attachment") + protected BinaryObjectType attachment; + + /** The Uri. */ + @XmlElement(name = "Uri") + @XmlSchemaType(name = "anyURI") + protected String uri; + + /** The Message digest. */ + @XmlElement(name = "MessageDigest") + protected MessageDigestBinaryObjectType messageDigest; + + /** The Size. */ + @XmlElement(name = "Size") + @XmlSchemaType(name = "positiveInteger") + protected BigInteger size; + + /** The Compressed. */ + @XmlElement(name = "Compressed") + protected CompressedType compressed; + + /** The Format identification. */ + @XmlElement(name = "FormatIdentification") + protected FormatIdentificationType formatIdentification; + + /** The File info. */ + @XmlElement(name = "FileInfo") + protected FileInfoType fileInfo; + + /** The Metadata. */ + @XmlElement(name = "Metadata") + protected CoreMetadataType metadata; + + /** The Other metadata. */ + @XmlElement(name = "OtherMetadata") + protected DescriptiveTechnicalMetadataType otherMetadata; + + /** + * Gets the value of the attachment property. + * + * @return possible object is {@link BinaryObjectType } + */ + public BinaryObjectType getAttachment() { + return attachment; + } + + /** + * Sets the value of the attachment property. + * + * @param value allowed object is {@link BinaryObjectType } + */ + public void setAttachment(BinaryObjectType value) { + this.attachment = value; + } + + /** + * Gets the value of the uri property. + * + * @return possible object is {@link String } + */ + public String getUri() { + return uri; + } + + /** + * Sets the value of the uri property. + * + * @param value allowed object is {@link String } + */ + public void setUri(String value) { + this.uri = value; + } + + /** + * Gets the value of the messageDigest property. + * + * @return possible object is {@link MessageDigestBinaryObjectType } + */ + public MessageDigestBinaryObjectType getMessageDigest() { + return messageDigest; + } + + /** + * Sets the value of the messageDigest property. + * + * @param value allowed object is {@link MessageDigestBinaryObjectType } + */ + public void setMessageDigest(MessageDigestBinaryObjectType value) { + this.messageDigest = value; + } + + /** + * Gets the value of the size property. + * + * @return possible object is {@link BigInteger } + */ + public BigInteger getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value allowed object is {@link BigInteger } + */ + public void setSize(BigInteger value) { + this.size = value; + } + + /** + * Gets the value of the compressed property. + * + * @return possible object is {@link CompressedType } + */ + public CompressedType getCompressed() { + return compressed; + } + + /** + * Sets the value of the compressed property. + * + * @param value allowed object is {@link CompressedType } + */ + public void setCompressed(CompressedType value) { + this.compressed = value; + } + + /** + * Gets the value of the formatIdentification property. + * + * @return possible object is {@link FormatIdentificationType } + */ + public FormatIdentificationType getFormatIdentification() { + return formatIdentification; + } + + /** + * Sets the value of the formatIdentification property. + * + * @param value allowed object is {@link FormatIdentificationType } + */ + public void setFormatIdentification(FormatIdentificationType value) { + this.formatIdentification = value; + } + + /** + * Gets the value of the fileInfo property. + * + * @return possible object is {@link FileInfoType } + */ + public FileInfoType getFileInfo() { + return fileInfo; + } + + /** + * Sets the value of the fileInfo property. + * + * @param value allowed object is {@link FileInfoType } + */ + public void setFileInfo(FileInfoType value) { + this.fileInfo = value; + } + + /** + * Gets the value of the metadata property. + * + * @return possible object is {@link CoreMetadataType } + */ + public CoreMetadataType getMetadata() { + return metadata; + } + + /** + * Sets the value of the metadata property. + * + * @param value allowed object is {@link CoreMetadataType } + */ + public void setMetadata(CoreMetadataType value) { + this.metadata = value; + } + + /** + * Gets the value of the otherMetadata property. + * + * @return possible object is {@link DescriptiveTechnicalMetadataType } + */ + public DescriptiveTechnicalMetadataType getOtherMetadata() { + return otherMetadata; + } + + /** + * Sets the value of the otherMetadata property. + * + * @param value allowed object is {@link DescriptiveTechnicalMetadataType } + */ + public void setOtherMetadata(DescriptiveTechnicalMetadataType value) { + this.otherMetadata = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BinaryObjectType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BinaryObjectType.java index be98741..704780b 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BinaryObjectType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BinaryObjectType.java @@ -1,19 +1,18 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; /** - *

* Java class for BinaryObjectType complex type. * - *

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

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

  * <complexType name="BinaryObjectType">
@@ -27,80 +26,74 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BinaryObjectType", propOrder = { - "value" -}) +@XmlType( + name = "BinaryObjectType", + propOrder = {"value"}) public class BinaryObjectType { - /** - * The Value. - */ - @XmlValue - protected byte[] value; - /** - * The Filename. - */ - @XmlAttribute(name = "filename") - protected String filename; - /** - * The Uri. - */ - @XmlAttribute(name = "uri") - @XmlSchemaType(name = "anyURI") - protected String uri; + /** The Value. */ + @XmlValue protected byte[] value; - /** - * Gets the value of the value property. - * - * @return possible object is byte[] - */ - public byte[] getValue() { - return value; - } + /** The Filename. */ + @XmlAttribute(name = "filename") + protected String filename; - /** - * Sets the value of the value property. - * - * @param value allowed object is byte[] - */ - public void setValue(byte[] value) { - this.value = value; - } + /** The Uri. */ + @XmlAttribute(name = "uri") + @XmlSchemaType(name = "anyURI") + protected String uri; - /** - * Gets the value of the filename property. - * - * @return possible object is {@link String } - */ - public String getFilename() { - return filename; - } + /** + * Gets the value of the value property. + * + * @return possible object is byte[] + */ + public byte[] getValue() { + return value; + } - /** - * Sets the value of the filename property. - * - * @param value allowed object is {@link String } - */ - public void setFilename(String value) { - this.filename = value; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } - /** - * Gets the value of the uri property. - * - * @return possible object is {@link String } - */ - public String getUri() { - return uri; - } + /** + * Gets the value of the filename property. + * + * @return possible object is {@link String } + */ + public String getFilename() { + return filename; + } - /** - * Sets the value of the uri property. - * - * @param value allowed object is {@link String } - */ - public void setUri(String value) { - this.uri = value; - } + /** + * Sets the value of the filename property. + * + * @param value allowed object is {@link String } + */ + public void setFilename(String value) { + this.filename = value; + } + /** + * Gets the value of the uri property. + * + * @return possible object is {@link String } + */ + public String getUri() { + return uri; + } + + /** + * Sets the value of the uri property. + * + * @param value allowed object is {@link String } + */ + public void setUri(String value) { + this.uri = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BirthOrDeathPlaceType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BirthOrDeathPlaceType.java index 7925652..ad682c9 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BirthOrDeathPlaceType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BirthOrDeathPlaceType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for BirthOrDeathPlaceType complex type. * - *

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

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

  * <complexType name="BirthOrDeathPlaceType">
@@ -29,153 +28,140 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BirthOrDeathPlaceType", propOrder = { - "geogname", - "address", - "postalCode", - "city", - "region", - "country" -}) +@XmlType( + name = "BirthOrDeathPlaceType", + propOrder = {"geogname", "address", "postalCode", "city", "region", "country"}) public class BirthOrDeathPlaceType { - /** - * The Geogname. - */ - @XmlElement(name = "Geogname") - protected String geogname; - /** - * The Address. - */ - @XmlElement(name = "Address") - protected String address; - /** - * The Postal code. - */ - @XmlElement(name = "PostalCode") - protected String postalCode; - /** - * The City. - */ - @XmlElement(name = "City") - protected String city; - /** - * The Region. - */ - @XmlElement(name = "Region") - protected String region; - /** - * The Country. - */ - @XmlElement(name = "Country") - protected String country; - - /** - * Gets the value of the geogname property. - * - * @return possible object is {@link String } - */ - public String getGeogname() { - return geogname; - } - - /** - * Sets the value of the geogname property. - * - * @param value allowed object is {@link String } - */ - public void setGeogname(String value) { - this.geogname = value; - } - - /** - * Gets the value of the address property. - * - * @return possible object is {@link String } - */ - public String getAddress() { - return address; - } - - /** - * Sets the value of the address property. - * - * @param value allowed object is {@link String } - */ - public void setAddress(String value) { - this.address = value; - } - - /** - * Gets the value of the postalCode property. - * - * @return possible object is {@link String } - */ - public String getPostalCode() { - return postalCode; - } - - /** - * Sets the value of the postalCode property. - * - * @param value allowed object is {@link String } - */ - public void setPostalCode(String value) { - this.postalCode = value; - } - - /** - * Gets the value of the city property. - * - * @return possible object is {@link String } - */ - public String getCity() { - return city; - } - - /** - * Sets the value of the city property. - * - * @param value allowed object is {@link String } - */ - public void setCity(String value) { - this.city = value; - } - - /** - * Gets the value of the region property. - * - * @return possible object is {@link String } - */ - public String getRegion() { - return region; - } - - /** - * Sets the value of the region property. - * - * @param value allowed object is {@link String } - */ - public void setRegion(String value) { - this.region = value; - } - - /** - * Gets the value of the country property. - * - * @return possible object is {@link String } - */ - public String getCountry() { - return country; - } - - /** - * Sets the value of the country property. - * - * @param value allowed object is {@link String } - */ - public void setCountry(String value) { - this.country = value; - } - + /** The Geogname. */ + @XmlElement(name = "Geogname") + protected String geogname; + + /** The Address. */ + @XmlElement(name = "Address") + protected String address; + + /** The Postal code. */ + @XmlElement(name = "PostalCode") + protected String postalCode; + + /** The City. */ + @XmlElement(name = "City") + protected String city; + + /** The Region. */ + @XmlElement(name = "Region") + protected String region; + + /** The Country. */ + @XmlElement(name = "Country") + protected String country; + + /** + * Gets the value of the geogname property. + * + * @return possible object is {@link String } + */ + public String getGeogname() { + return geogname; + } + + /** + * Sets the value of the geogname property. + * + * @param value allowed object is {@link String } + */ + public void setGeogname(String value) { + this.geogname = value; + } + + /** + * Gets the value of the address property. + * + * @return possible object is {@link String } + */ + public String getAddress() { + return address; + } + + /** + * Sets the value of the address property. + * + * @param value allowed object is {@link String } + */ + public void setAddress(String value) { + this.address = value; + } + + /** + * Gets the value of the postalCode property. + * + * @return possible object is {@link String } + */ + public String getPostalCode() { + return postalCode; + } + + /** + * Sets the value of the postalCode property. + * + * @param value allowed object is {@link String } + */ + public void setPostalCode(String value) { + this.postalCode = value; + } + + /** + * Gets the value of the city property. + * + * @return possible object is {@link String } + */ + public String getCity() { + return city; + } + + /** + * Sets the value of the city property. + * + * @param value allowed object is {@link String } + */ + public void setCity(String value) { + this.city = value; + } + + /** + * Gets the value of the region property. + * + * @return possible object is {@link String } + */ + public String getRegion() { + return region; + } + + /** + * Sets the value of the region property. + * + * @param value allowed object is {@link String } + */ + public void setRegion(String value) { + this.region = value; + } + + /** + * Gets the value of the country property. + * + * @return possible object is {@link String } + */ + public String getCountry() { + return country; + } + + /** + * Sets the value of the country property. + * + * @param value allowed object is {@link String } + */ + public void setCountry(String value) { + this.country = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessAuthorizationRequestMessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessAuthorizationRequestMessageType.java index 42dfa88..9cba835 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessAuthorizationRequestMessageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessAuthorizationRequestMessageType.java @@ -1,19 +1,18 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; /** - *

* Java class for BusinessAuthorizationRequestMessageType complex type. * - *

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

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

  * <complexType name="BusinessAuthorizationRequestMessageType">
@@ -28,38 +27,34 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BusinessAuthorizationRequestMessageType", propOrder = { - "authorizationRequestContent" -}) +@XmlType( + name = "BusinessAuthorizationRequestMessageType", + propOrder = {"authorizationRequestContent"}) @XmlSeeAlso({ - AuthorizationOriginatingAgencyRequestType.class, - AuthorizationControlAuthorityRequestType.class + AuthorizationOriginatingAgencyRequestType.class, + AuthorizationControlAuthorityRequestType.class }) -public abstract class BusinessAuthorizationRequestMessageType - extends BusinessRequestMessageType { - - /** - * The Authorization request content. - */ - @XmlElement(name = "AuthorizationRequestContent", required = true) - protected AuthorizationRequestContentType authorizationRequestContent; +public abstract class BusinessAuthorizationRequestMessageType extends BusinessRequestMessageType { - /** - * Gets the value of the authorizationRequestContent property. - * - * @return possible object is {@link AuthorizationRequestContentType } - */ - public AuthorizationRequestContentType getAuthorizationRequestContent() { - return authorizationRequestContent; - } + /** The Authorization request content. */ + @XmlElement(name = "AuthorizationRequestContent", required = true) + protected AuthorizationRequestContentType authorizationRequestContent; - /** - * Sets the value of the authorizationRequestContent property. - * - * @param value allowed object is {@link AuthorizationRequestContentType } - */ - public void setAuthorizationRequestContent(AuthorizationRequestContentType value) { - this.authorizationRequestContent = value; - } + /** + * Gets the value of the authorizationRequestContent property. + * + * @return possible object is {@link AuthorizationRequestContentType } + */ + public AuthorizationRequestContentType getAuthorizationRequestContent() { + return authorizationRequestContent; + } + /** + * Sets the value of the authorizationRequestContent property. + * + * @param value allowed object is {@link AuthorizationRequestContentType } + */ + public void setAuthorizationRequestContent(AuthorizationRequestContentType value) { + this.authorizationRequestContent = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessAuthorizationRequestReplyMessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessAuthorizationRequestReplyMessageType.java index 2ada56b..e7d3eb4 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessAuthorizationRequestReplyMessageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessAuthorizationRequestReplyMessageType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for BusinessAuthorizationRequestReplyMessageType complex type. * - *

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

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

  * <complexType name="BusinessAuthorizationRequestReplyMessageType">
@@ -30,10 +29,8 @@
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "BusinessAuthorizationRequestReplyMessageType")
 @XmlSeeAlso({
-    AuthorizationControlAuthorityRequestReplyType.class,
-    AuthorizationOriginatingAgencyRequestReplyType.class
+  AuthorizationControlAuthorityRequestReplyType.class,
+  AuthorizationOriginatingAgencyRequestReplyType.class
 })
 public abstract class BusinessAuthorizationRequestReplyMessageType
-        extends BusinessReplyMessageType {
-
-}
+    extends BusinessReplyMessageType {}
diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessMessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessMessageType.java
index dc79649..2d2f867 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessMessageType.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessMessageType.java
@@ -1,19 +1,18 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
 package fr.gouv.culture.archivesdefrance.seda.v21;
 
 import jakarta.xml.bind.annotation.*;
 
 /**
- * 

* Java class for BusinessMessageType complex type. * - *

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

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

  * <complexType name="BusinessMessageType">
@@ -30,87 +29,79 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BusinessMessageType", propOrder = { - "archivalAgreement", - "codeListVersions", - "dataObjectPackage" -}) +@XmlType( + name = "BusinessMessageType", + propOrder = {"archivalAgreement", "codeListVersions", "dataObjectPackage"}) @XmlSeeAlso({ - BusinessNotificationMessageType.class, - BusinessRequestMessageType.class, - BusinessReplyMessageType.class + BusinessNotificationMessageType.class, + BusinessRequestMessageType.class, + BusinessReplyMessageType.class }) -public abstract class BusinessMessageType - extends MessageType { +public abstract class BusinessMessageType extends MessageType { + + /** The Archival agreement. */ + @XmlElement(name = "ArchivalAgreement") + protected IdentifierType archivalAgreement; - /** - * The Archival agreement. - */ - @XmlElement(name = "ArchivalAgreement") - protected IdentifierType archivalAgreement; - /** - * The Code list versions. - */ - @XmlElement(name = "CodeListVersions", required = true) - protected CodeListVersionsType codeListVersions; - /** - * The Data object package. - */ - @XmlElement(name = "DataObjectPackage") - protected DataObjectPackageType dataObjectPackage; + /** The Code list versions. */ + @XmlElement(name = "CodeListVersions", required = true) + protected CodeListVersionsType codeListVersions; - /** - * Gets the value of the archivalAgreement property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getArchivalAgreement() { - return archivalAgreement; - } + /** The Data object package. */ + @XmlElement(name = "DataObjectPackage") + protected DataObjectPackageType dataObjectPackage; - /** - * Sets the value of the archivalAgreement property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setArchivalAgreement(IdentifierType value) { - this.archivalAgreement = value; - } + /** + * Gets the value of the archivalAgreement property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getArchivalAgreement() { + return archivalAgreement; + } - /** - * Gets the value of the codeListVersions property. - * - * @return possible object is {@link CodeListVersionsType } - */ - public CodeListVersionsType getCodeListVersions() { - return codeListVersions; - } + /** + * Sets the value of the archivalAgreement property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setArchivalAgreement(IdentifierType value) { + this.archivalAgreement = value; + } - /** - * Sets the value of the codeListVersions property. - * - * @param value allowed object is {@link CodeListVersionsType } - */ - public void setCodeListVersions(CodeListVersionsType value) { - this.codeListVersions = value; - } + /** + * Gets the value of the codeListVersions property. + * + * @return possible object is {@link CodeListVersionsType } + */ + public CodeListVersionsType getCodeListVersions() { + return codeListVersions; + } - /** - * Gets the value of the dataObjectPackage property. - * - * @return possible object is {@link DataObjectPackageType } - */ - public DataObjectPackageType getDataObjectPackage() { - return dataObjectPackage; - } + /** + * Sets the value of the codeListVersions property. + * + * @param value allowed object is {@link CodeListVersionsType } + */ + public void setCodeListVersions(CodeListVersionsType value) { + this.codeListVersions = value; + } - /** - * Sets the value of the dataObjectPackage property. - * - * @param value allowed object is {@link DataObjectPackageType } - */ - public void setDataObjectPackage(DataObjectPackageType value) { - this.dataObjectPackage = value; - } + /** + * Gets the value of the dataObjectPackage property. + * + * @return possible object is {@link DataObjectPackageType } + */ + public DataObjectPackageType getDataObjectPackage() { + return dataObjectPackage; + } + /** + * Sets the value of the dataObjectPackage property. + * + * @param value allowed object is {@link DataObjectPackageType } + */ + public void setDataObjectPackage(DataObjectPackageType value) { + this.dataObjectPackage = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessNotificationMessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessNotificationMessageType.java index 6b387cf..8d9b7cb 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessNotificationMessageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessNotificationMessageType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for BusinessNotificationMessageType complex type. * - *

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

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

  * <complexType name="BusinessNotificationMessageType">
@@ -29,11 +28,5 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "BusinessNotificationMessageType")
-@XmlSeeAlso({
-    ArchiveDestructionNotificationType.class,
-    ArchiveModificationNotificationType.class
-})
-public abstract class BusinessNotificationMessageType
-        extends BusinessMessageType {
-
-}
+@XmlSeeAlso({ArchiveDestructionNotificationType.class, ArchiveModificationNotificationType.class})
+public abstract class BusinessNotificationMessageType extends BusinessMessageType {}
diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessReplyMessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessReplyMessageType.java
index bdd51d6..1997ffc 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessReplyMessageType.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessReplyMessageType.java
@@ -1,8 +1,9 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
 package fr.gouv.culture.archivesdefrance.seda.v21;
 
@@ -11,11 +12,9 @@
 import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 
 /**
- * 

* Java class for BusinessReplyMessageType complex type. * - *

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

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

  * <complexType name="BusinessReplyMessageType">
@@ -32,91 +31,83 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BusinessReplyMessageType", propOrder = { - "replyCode", - "operation", - "messageRequestIdentifier" -}) +@XmlType( + name = "BusinessReplyMessageType", + propOrder = {"replyCode", "operation", "messageRequestIdentifier"}) @XmlSeeAlso({ - ArchiveTransferReplyType.class, - ArchiveRestitutionRequestReplyType.class, - ArchiveTransferRequestReplyType.class, - ArchiveDeliveryRequestReplyType.class, - BusinessAuthorizationRequestReplyMessageType.class + ArchiveTransferReplyType.class, + ArchiveRestitutionRequestReplyType.class, + ArchiveTransferRequestReplyType.class, + ArchiveDeliveryRequestReplyType.class, + BusinessAuthorizationRequestReplyMessageType.class }) -public abstract class BusinessReplyMessageType - extends BusinessMessageType { +public abstract class BusinessReplyMessageType extends BusinessMessageType { + + /** The Reply code. */ + @XmlElement(name = "ReplyCode") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String replyCode; - /** - * The Reply code. - */ - @XmlElement(name = "ReplyCode") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String replyCode; - /** - * The Operation. - */ - @XmlElement(name = "Operation") - protected OperationType operation; - /** - * The Message request identifier. - */ - @XmlElement(name = "MessageRequestIdentifier", required = true) - protected IdentifierType messageRequestIdentifier; + /** The Operation. */ + @XmlElement(name = "Operation") + protected OperationType operation; - /** - * Gets the value of the replyCode property. - * - * @return possible object is {@link String } - */ - public String getReplyCode() { - return replyCode; - } + /** The Message request identifier. */ + @XmlElement(name = "MessageRequestIdentifier", required = true) + protected IdentifierType messageRequestIdentifier; - /** - * Sets the value of the replyCode property. - * - * @param value allowed object is {@link String } - */ - public void setReplyCode(String value) { - this.replyCode = value; - } + /** + * Gets the value of the replyCode property. + * + * @return possible object is {@link String } + */ + public String getReplyCode() { + return replyCode; + } - /** - * Gets the value of the operation property. - * - * @return possible object is {@link OperationType } - */ - public OperationType getOperation() { - return operation; - } + /** + * Sets the value of the replyCode property. + * + * @param value allowed object is {@link String } + */ + public void setReplyCode(String value) { + this.replyCode = value; + } - /** - * Sets the value of the operation property. - * - * @param value allowed object is {@link OperationType } - */ - public void setOperation(OperationType value) { - this.operation = value; - } + /** + * Gets the value of the operation property. + * + * @return possible object is {@link OperationType } + */ + public OperationType getOperation() { + return operation; + } - /** - * Gets the value of the messageRequestIdentifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getMessageRequestIdentifier() { - return messageRequestIdentifier; - } + /** + * Sets the value of the operation property. + * + * @param value allowed object is {@link OperationType } + */ + public void setOperation(OperationType value) { + this.operation = value; + } - /** - * Sets the value of the messageRequestIdentifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setMessageRequestIdentifier(IdentifierType value) { - this.messageRequestIdentifier = value; - } + /** + * Gets the value of the messageRequestIdentifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getMessageRequestIdentifier() { + return messageRequestIdentifier; + } + /** + * Sets the value of the messageRequestIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setMessageRequestIdentifier(IdentifierType value) { + this.messageRequestIdentifier = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessRequestMessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessRequestMessageType.java index e143944..bd1561d 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessRequestMessageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/BusinessRequestMessageType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for BusinessRequestMessageType complex type. * - *

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

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

  * <complexType name="BusinessRequestMessageType">
@@ -30,13 +29,10 @@
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "BusinessRequestMessageType")
 @XmlSeeAlso({
-    ArchiveTransferType.class,
-    ArchiveDeliveryRequestType.class,
-    ArchiveRestitutionRequestType.class,
-    ArchiveTransferRequestType.class,
-    BusinessAuthorizationRequestMessageType.class
+  ArchiveTransferType.class,
+  ArchiveDeliveryRequestType.class,
+  ArchiveRestitutionRequestType.class,
+  ArchiveTransferRequestType.class,
+  BusinessAuthorizationRequestMessageType.class
 })
-public abstract class BusinessRequestMessageType
-        extends BusinessMessageType {
-
-}
+public abstract class BusinessRequestMessageType extends BusinessMessageType {}
diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ClassificationRuleType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ClassificationRuleType.java
index 4f65357..a135895 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ClassificationRuleType.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ClassificationRuleType.java
@@ -1,27 +1,26 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
 package fr.gouv.culture.archivesdefrance.seda.v21;
 
 import jakarta.xml.bind.annotation.*;
 import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
 import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-import javax.xml.datatype.XMLGregorianCalendar;
 import java.util.ArrayList;
 import java.util.List;
+import javax.xml.datatype.XMLGregorianCalendar;
 
 /**
- * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de cet ArchiveUnit.
+ * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de
+ * cet ArchiveUnit.
  *
- * 

- * Java class for ClassificationRuleType complex type. + *

Java class for ClassificationRuleType complex type. * - *

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

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

  * <complexType name="ClassificationRuleType">
@@ -48,231 +47,216 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ClassificationRuleType", propOrder = { - "ruleAndStartDate", - "classificationAudience", - "preventInheritance", - "refNonRuleId", - "classificationLevel", - "classificationOwner", - "classificationReassessingDate", - "needReassessingAuthorization" -}) +@XmlType( + name = "ClassificationRuleType", + propOrder = { + "ruleAndStartDate", + "classificationAudience", + "preventInheritance", + "refNonRuleId", + "classificationLevel", + "classificationOwner", + "classificationReassessingDate", + "needReassessingAuthorization" + }) public class ClassificationRuleType { - /** - * The Rule and start date. - */ - @XmlElements({ - @XmlElement(name = "Rule", type = RuleIdType.class), - @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) - }) - protected List ruleAndStartDate; - /** - * The Classification audience. - */ - @XmlElement(name = "ClassificationAudience") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String classificationAudience; - /** - * The Prevent inheritance. - */ - @XmlElement(name = "PreventInheritance", defaultValue = "false") - protected Boolean preventInheritance; - /** - * The Ref non rule id. - */ - @XmlElement(name = "RefNonRuleId") - protected List refNonRuleId; - /** - * The Classification level. - */ - @XmlElement(name = "ClassificationLevel", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String classificationLevel; - /** - * The Classification owner. - */ - @XmlElement(name = "ClassificationOwner", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String classificationOwner; - /** - * The Classification reassessing date. - */ - @XmlElement(name = "ClassificationReassessingDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar classificationReassessingDate; - /** - * The Need reassessing authorization. - */ - @XmlElement(name = "NeedReassessingAuthorization") - protected Boolean needReassessingAuthorization; + /** The Rule and start date. */ + @XmlElements({ + @XmlElement(name = "Rule", type = RuleIdType.class), + @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) + }) + protected List ruleAndStartDate; - /** - * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list null null null null {@link RuleIdType } - * {@link XMLGregorianCalendar } - * - * @return the rule and start date - */ - public List getRuleAndStartDate() { - if (ruleAndStartDate == null) { - ruleAndStartDate = new ArrayList(); - } - return this.ruleAndStartDate; - } + /** The Classification audience. */ + @XmlElement(name = "ClassificationAudience") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String classificationAudience; - /** - * Gets the value of the classificationAudience property. - * - * @return possible object is {@link String } - */ - public String getClassificationAudience() { - return classificationAudience; - } + /** The Prevent inheritance. */ + @XmlElement(name = "PreventInheritance", defaultValue = "false") + protected Boolean preventInheritance; - /** - * Sets the value of the classificationAudience property. - * - * @param value allowed object is {@link String } - */ - public void setClassificationAudience(String value) { - this.classificationAudience = value; - } + /** The Ref non rule id. */ + @XmlElement(name = "RefNonRuleId") + protected List refNonRuleId; - /** - * Gets the value of the preventInheritance property. - * - * @return possible object is {@link Boolean } - */ - public Boolean isPreventInheritance() { - return preventInheritance; - } + /** The Classification level. */ + @XmlElement(name = "ClassificationLevel", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String classificationLevel; - /** - * Sets the value of the preventInheritance property. - * - * @param value allowed object is {@link Boolean } - */ - public void setPreventInheritance(Boolean value) { - this.preventInheritance = value; - } + /** The Classification owner. */ + @XmlElement(name = "ClassificationOwner", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String classificationOwner; - /** - * Gets the value of the refNonRuleId 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 refNonRuleId property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link RuleIdType - * }* - * - * @return the ref non rule id - */ - public List getRefNonRuleId() { - if (refNonRuleId == null) { - refNonRuleId = new ArrayList(); - } - return this.refNonRuleId; - } + /** The Classification reassessing date. */ + @XmlElement(name = "ClassificationReassessingDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar classificationReassessingDate; - /** - * Gets the value of the classificationLevel property. - * - * @return possible object is {@link String } - */ - public String getClassificationLevel() { - return classificationLevel; - } + /** The Need reassessing authorization. */ + @XmlElement(name = "NeedReassessingAuthorization") + protected Boolean needReassessingAuthorization; - /** - * Sets the value of the classificationLevel property. - * - * @param value allowed object is {@link String } - */ - public void setClassificationLevel(String value) { - this.classificationLevel = value; + /** + * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. + * + *

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

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

Objects of the following type(s) are allowed in the list null null null null {@link + * RuleIdType } {@link XMLGregorianCalendar } + * + * @return the rule and start date + */ + public List getRuleAndStartDate() { + if (ruleAndStartDate == null) { + ruleAndStartDate = new ArrayList(); } + return this.ruleAndStartDate; + } - /** - * Gets the value of the classificationOwner property. - * - * @return possible object is {@link String } - */ - public String getClassificationOwner() { - return classificationOwner; - } + /** + * Gets the value of the classificationAudience property. + * + * @return possible object is {@link String } + */ + public String getClassificationAudience() { + return classificationAudience; + } - /** - * Sets the value of the classificationOwner property. - * - * @param value allowed object is {@link String } - */ - public void setClassificationOwner(String value) { - this.classificationOwner = value; - } + /** + * Sets the value of the classificationAudience property. + * + * @param value allowed object is {@link String } + */ + public void setClassificationAudience(String value) { + this.classificationAudience = value; + } - /** - * Gets the value of the classificationReassessingDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getClassificationReassessingDate() { - return classificationReassessingDate; - } + /** + * Gets the value of the preventInheritance property. + * + * @return possible object is {@link Boolean } + */ + public Boolean isPreventInheritance() { + return preventInheritance; + } - /** - * Sets the value of the classificationReassessingDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setClassificationReassessingDate(XMLGregorianCalendar value) { - this.classificationReassessingDate = value; - } + /** + * Sets the value of the preventInheritance property. + * + * @param value allowed object is {@link Boolean } + */ + public void setPreventInheritance(Boolean value) { + this.preventInheritance = value; + } - /** - * Gets the value of the needReassessingAuthorization property. - * - * @return possible object is {@link Boolean } - */ - public Boolean isNeedReassessingAuthorization() { - return needReassessingAuthorization; + /** + * Gets the value of the refNonRuleId 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 refNonRuleId property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link RuleIdType }* + * + * @return the ref non rule id + */ + public List getRefNonRuleId() { + if (refNonRuleId == null) { + refNonRuleId = new ArrayList(); } + return this.refNonRuleId; + } - /** - * Sets the value of the needReassessingAuthorization property. - * - * @param value allowed object is {@link Boolean } - */ - public void setNeedReassessingAuthorization(Boolean value) { - this.needReassessingAuthorization = value; - } + /** + * Gets the value of the classificationLevel property. + * + * @return possible object is {@link String } + */ + public String getClassificationLevel() { + return classificationLevel; + } + + /** + * Sets the value of the classificationLevel property. + * + * @param value allowed object is {@link String } + */ + public void setClassificationLevel(String value) { + this.classificationLevel = value; + } + + /** + * Gets the value of the classificationOwner property. + * + * @return possible object is {@link String } + */ + public String getClassificationOwner() { + return classificationOwner; + } + + /** + * Sets the value of the classificationOwner property. + * + * @param value allowed object is {@link String } + */ + public void setClassificationOwner(String value) { + this.classificationOwner = value; + } + + /** + * Gets the value of the classificationReassessingDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getClassificationReassessingDate() { + return classificationReassessingDate; + } + + /** + * Sets the value of the classificationReassessingDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setClassificationReassessingDate(XMLGregorianCalendar value) { + this.classificationReassessingDate = value; + } + + /** + * Gets the value of the needReassessingAuthorization property. + * + * @return possible object is {@link Boolean } + */ + public Boolean isNeedReassessingAuthorization() { + return needReassessingAuthorization; + } + /** + * Sets the value of the needReassessingAuthorization property. + * + * @param value allowed object is {@link Boolean } + */ + public void setNeedReassessingAuthorization(Boolean value) { + this.needReassessingAuthorization = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CodeKeywordType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CodeKeywordType.java index d5f316c..1c4c749 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CodeKeywordType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CodeKeywordType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,98 +12,75 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for CodeKeywordType. * - *

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

- * < - * pre> - * <simpleType name="CodeKeywordType"> <restriction base="{http://www.w3.org/2001/XMLSchema}token"> - * <enumeration value="corpname"/> <enumeration value="famname"/> <enumeration value="geogname"/> - * <enumeration value="name"/> <enumeration value="occupation"/> <enumeration value="persname"/> - * <enumeration value="subject"/> <enumeration value="genreform"/> <enumeration value="function"/> - * </restriction> </simpleType> - * + *

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

< pre> <simpleType name="CodeKeywordType"> <restriction + * base="{http://www.w3.org/2001/XMLSchema}token"> <enumeration value="corpname"/> + * <enumeration value="famname"/> <enumeration value="geogname"/> <enumeration + * value="name"/> <enumeration value="occupation"/> <enumeration value="persname"/> + * <enumeration value="subject"/> <enumeration value="genreform"/> <enumeration + * value="function"/> </restriction> </simpleType> */ @XmlType(name = "CodeKeywordType") @XmlEnum public enum CodeKeywordType { - /** - * Références : ead.corpname - */ - @XmlEnumValue("corpname") - CORPNAME("corpname"), - /** - * Nom de famille. - */ - @XmlEnumValue("famname") - FAMNAME("famname"), - /** - * Nom géographique. - */ - @XmlEnumValue("geogname") - GEOGNAME("geogname"), - /** - * Nom. - */ - @XmlEnumValue("name") - NAME("name"), - /** - * Fonction. - */ - @XmlEnumValue("occupation") - OCCUPATION("occupation"), - /** - * Nom de personne. - */ - @XmlEnumValue("persname") - PERSNAME("persname"), - /** - * Mot-matière. - */ - @XmlEnumValue("subject") - SUBJECT("subject"), - /** - * Type de document. - */ - @XmlEnumValue("genreform") - GENREFORM("genreform"), - /** - * Références : ead.function - */ - @XmlEnumValue("function") - FUNCTION("function"); - private final String value; + /** Références : ead.corpname */ + @XmlEnumValue("corpname") + CORPNAME("corpname"), + /** Nom de famille. */ + @XmlEnumValue("famname") + FAMNAME("famname"), + /** Nom géographique. */ + @XmlEnumValue("geogname") + GEOGNAME("geogname"), + /** Nom. */ + @XmlEnumValue("name") + NAME("name"), + /** Fonction. */ + @XmlEnumValue("occupation") + OCCUPATION("occupation"), + /** Nom de personne. */ + @XmlEnumValue("persname") + PERSNAME("persname"), + /** Mot-matière. */ + @XmlEnumValue("subject") + SUBJECT("subject"), + /** Type de document. */ + @XmlEnumValue("genreform") + GENREFORM("genreform"), + /** Références : ead.function */ + @XmlEnumValue("function") + FUNCTION("function"); + private final String value; - CodeKeywordType(String v) { - value = v; - } + CodeKeywordType(String v) { + value = v; + } - /** - * Value string. - * - * @return the string - */ - public String value() { - return value; - } + /** + * Value string. + * + * @return the string + */ + public String value() { + return value; + } - /** - * From value code keyword type. - * - * @param v the v - * @return the code keyword type - */ - public static CodeKeywordType fromValue(String v) { - for (CodeKeywordType c : CodeKeywordType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** + * From value code keyword type. + * + * @param v the v + * @return the code keyword type + */ + public static CodeKeywordType fromValue(String v) { + for (CodeKeywordType c : CodeKeywordType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CodeListVersionsType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CodeListVersionsType.java index 4a68d9f..e0c00ee 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CodeListVersionsType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CodeListVersionsType.java @@ -1,25 +1,23 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; -import org.w3c.dom.Element; - import java.util.ArrayList; import java.util.List; +import org.w3c.dom.Element; /** - *

* Java class for CodeListVersionsType complex type. * - *

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

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

  * <complexType name="CodeListVersionsType">
@@ -41,453 +39,432 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CodeListVersionsType", propOrder = { - "replyCodeListVersion", - "messageDigestAlgorithmCodeListVersion", - "mimeTypeCodeListVersion", - "encodingCodeListVersion", - "fileFormatCodeListVersion", - "compressionAlgorithmCodeListVersion", - "dataObjectVersionCodeListVersion", - "storageRuleCodeListVersion", - "appraisalRuleCodeListVersion", - "accessRuleCodeListVersion", - "disseminationRuleCodeListVersion", - "reuseRuleCodeListVersion", - "classificationRuleCodeListVersion", - "acquisitionInformationCodeListVersion", - "authorizationReasonCodeListVersion", - "relationshipCodeListVersion", - "any" -}) +@XmlType( + name = "CodeListVersionsType", + propOrder = { + "replyCodeListVersion", + "messageDigestAlgorithmCodeListVersion", + "mimeTypeCodeListVersion", + "encodingCodeListVersion", + "fileFormatCodeListVersion", + "compressionAlgorithmCodeListVersion", + "dataObjectVersionCodeListVersion", + "storageRuleCodeListVersion", + "appraisalRuleCodeListVersion", + "accessRuleCodeListVersion", + "disseminationRuleCodeListVersion", + "reuseRuleCodeListVersion", + "classificationRuleCodeListVersion", + "acquisitionInformationCodeListVersion", + "authorizationReasonCodeListVersion", + "relationshipCodeListVersion", + "any" + }) public class CodeListVersionsType { - /** - * The Reply code list version. - */ - @XmlElement(name = "ReplyCodeListVersion") - protected CodeType replyCodeListVersion; - /** - * The Message digest algorithm code list version. - */ - @XmlElement(name = "MessageDigestAlgorithmCodeListVersion") - protected CodeType messageDigestAlgorithmCodeListVersion; - /** - * The Mime type code list version. - */ - @XmlElement(name = "MimeTypeCodeListVersion") - protected CodeType mimeTypeCodeListVersion; - /** - * The Encoding code list version. - */ - @XmlElement(name = "EncodingCodeListVersion") - protected CodeType encodingCodeListVersion; - /** - * The File format code list version. - */ - @XmlElement(name = "FileFormatCodeListVersion") - protected CodeType fileFormatCodeListVersion; - /** - * The Compression algorithm code list version. - */ - @XmlElement(name = "CompressionAlgorithmCodeListVersion") - protected CodeType compressionAlgorithmCodeListVersion; - /** - * The Data object version code list version. - */ - @XmlElement(name = "DataObjectVersionCodeListVersion") - protected CodeType dataObjectVersionCodeListVersion; - /** - * The Storage rule code list version. - */ - @XmlElement(name = "StorageRuleCodeListVersion") - protected CodeType storageRuleCodeListVersion; - /** - * The Appraisal rule code list version. - */ - @XmlElement(name = "AppraisalRuleCodeListVersion") - protected CodeType appraisalRuleCodeListVersion; - /** - * The Access rule code list version. - */ - @XmlElement(name = "AccessRuleCodeListVersion") - protected CodeType accessRuleCodeListVersion; - /** - * The Dissemination rule code list version. - */ - @XmlElement(name = "DisseminationRuleCodeListVersion") - protected CodeType disseminationRuleCodeListVersion; - /** - * The Reuse rule code list version. - */ - @XmlElement(name = "ReuseRuleCodeListVersion") - protected CodeType reuseRuleCodeListVersion; - /** - * The Classification rule code list version. - */ - @XmlElement(name = "ClassificationRuleCodeListVersion") - protected CodeType classificationRuleCodeListVersion; - /** - * The Acquisition information code list version. - */ - @XmlElement(name = "AcquisitionInformationCodeListVersion") - protected CodeType acquisitionInformationCodeListVersion; - /** - * The Authorization reason code list version. - */ - @XmlElement(name = "AuthorizationReasonCodeListVersion") - protected CodeType authorizationReasonCodeListVersion; - /** - * The Relationship code list version. - */ - @XmlElement(name = "RelationshipCodeListVersion") - protected CodeType relationshipCodeListVersion; - /** - * The Any. - */ - @XmlAnyElement(lax = true) - protected List any; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - - /** - * Gets the value of the replyCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getReplyCodeListVersion() { - return replyCodeListVersion; - } - - /** - * Sets the value of the replyCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setReplyCodeListVersion(CodeType value) { - this.replyCodeListVersion = value; - } - - /** - * Gets the value of the messageDigestAlgorithmCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getMessageDigestAlgorithmCodeListVersion() { - return messageDigestAlgorithmCodeListVersion; - } - - /** - * Sets the value of the messageDigestAlgorithmCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setMessageDigestAlgorithmCodeListVersion(CodeType value) { - this.messageDigestAlgorithmCodeListVersion = value; - } - - /** - * Gets the value of the mimeTypeCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getMimeTypeCodeListVersion() { - return mimeTypeCodeListVersion; - } - - /** - * Sets the value of the mimeTypeCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setMimeTypeCodeListVersion(CodeType value) { - this.mimeTypeCodeListVersion = value; - } - - /** - * Gets the value of the encodingCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getEncodingCodeListVersion() { - return encodingCodeListVersion; - } - - /** - * Sets the value of the encodingCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setEncodingCodeListVersion(CodeType value) { - this.encodingCodeListVersion = value; - } - - /** - * Gets the value of the fileFormatCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getFileFormatCodeListVersion() { - return fileFormatCodeListVersion; - } - - /** - * Sets the value of the fileFormatCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setFileFormatCodeListVersion(CodeType value) { - this.fileFormatCodeListVersion = value; - } - - /** - * Gets the value of the compressionAlgorithmCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getCompressionAlgorithmCodeListVersion() { - return compressionAlgorithmCodeListVersion; - } - - /** - * Sets the value of the compressionAlgorithmCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setCompressionAlgorithmCodeListVersion(CodeType value) { - this.compressionAlgorithmCodeListVersion = value; - } - - /** - * Gets the value of the dataObjectVersionCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getDataObjectVersionCodeListVersion() { - return dataObjectVersionCodeListVersion; - } - - /** - * Sets the value of the dataObjectVersionCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setDataObjectVersionCodeListVersion(CodeType value) { - this.dataObjectVersionCodeListVersion = value; - } - - /** - * Gets the value of the storageRuleCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getStorageRuleCodeListVersion() { - return storageRuleCodeListVersion; - } - - /** - * Sets the value of the storageRuleCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setStorageRuleCodeListVersion(CodeType value) { - this.storageRuleCodeListVersion = value; - } - - /** - * Gets the value of the appraisalRuleCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getAppraisalRuleCodeListVersion() { - return appraisalRuleCodeListVersion; - } - - /** - * Sets the value of the appraisalRuleCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setAppraisalRuleCodeListVersion(CodeType value) { - this.appraisalRuleCodeListVersion = value; - } - - /** - * Gets the value of the accessRuleCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getAccessRuleCodeListVersion() { - return accessRuleCodeListVersion; - } - - /** - * Sets the value of the accessRuleCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setAccessRuleCodeListVersion(CodeType value) { - this.accessRuleCodeListVersion = value; - } - - /** - * Gets the value of the disseminationRuleCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getDisseminationRuleCodeListVersion() { - return disseminationRuleCodeListVersion; - } - - /** - * Sets the value of the disseminationRuleCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setDisseminationRuleCodeListVersion(CodeType value) { - this.disseminationRuleCodeListVersion = value; - } - - /** - * Gets the value of the reuseRuleCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getReuseRuleCodeListVersion() { - return reuseRuleCodeListVersion; - } - - /** - * Sets the value of the reuseRuleCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setReuseRuleCodeListVersion(CodeType value) { - this.reuseRuleCodeListVersion = value; - } - - /** - * Gets the value of the classificationRuleCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getClassificationRuleCodeListVersion() { - return classificationRuleCodeListVersion; - } - - /** - * Sets the value of the classificationRuleCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setClassificationRuleCodeListVersion(CodeType value) { - this.classificationRuleCodeListVersion = value; - } - - /** - * Gets the value of the acquisitionInformationCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getAcquisitionInformationCodeListVersion() { - return acquisitionInformationCodeListVersion; - } - - /** - * Sets the value of the acquisitionInformationCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setAcquisitionInformationCodeListVersion(CodeType value) { - this.acquisitionInformationCodeListVersion = value; - } - - /** - * Gets the value of the authorizationReasonCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getAuthorizationReasonCodeListVersion() { - return authorizationReasonCodeListVersion; - } - - /** - * Sets the value of the authorizationReasonCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setAuthorizationReasonCodeListVersion(CodeType value) { - this.authorizationReasonCodeListVersion = value; - } - - /** - * Gets the value of the relationshipCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getRelationshipCodeListVersion() { - return relationshipCodeListVersion; - } - - /** - * Sets the value of the relationshipCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setRelationshipCodeListVersion(CodeType value) { - this.relationshipCodeListVersion = value; - } - - /** - * Gets the value of the any 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 any property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list null null null null {@link Element } - * {@link Object } - * - * @return the any - */ - public List getAny() { - if (any == null) { - any = new ArrayList(); - } - return this.any; - } - - /** - * 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; - } - + /** The Reply code list version. */ + @XmlElement(name = "ReplyCodeListVersion") + protected CodeType replyCodeListVersion; + + /** The Message digest algorithm code list version. */ + @XmlElement(name = "MessageDigestAlgorithmCodeListVersion") + protected CodeType messageDigestAlgorithmCodeListVersion; + + /** The Mime type code list version. */ + @XmlElement(name = "MimeTypeCodeListVersion") + protected CodeType mimeTypeCodeListVersion; + + /** The Encoding code list version. */ + @XmlElement(name = "EncodingCodeListVersion") + protected CodeType encodingCodeListVersion; + + /** The File format code list version. */ + @XmlElement(name = "FileFormatCodeListVersion") + protected CodeType fileFormatCodeListVersion; + + /** The Compression algorithm code list version. */ + @XmlElement(name = "CompressionAlgorithmCodeListVersion") + protected CodeType compressionAlgorithmCodeListVersion; + + /** The Data object version code list version. */ + @XmlElement(name = "DataObjectVersionCodeListVersion") + protected CodeType dataObjectVersionCodeListVersion; + + /** The Storage rule code list version. */ + @XmlElement(name = "StorageRuleCodeListVersion") + protected CodeType storageRuleCodeListVersion; + + /** The Appraisal rule code list version. */ + @XmlElement(name = "AppraisalRuleCodeListVersion") + protected CodeType appraisalRuleCodeListVersion; + + /** The Access rule code list version. */ + @XmlElement(name = "AccessRuleCodeListVersion") + protected CodeType accessRuleCodeListVersion; + + /** The Dissemination rule code list version. */ + @XmlElement(name = "DisseminationRuleCodeListVersion") + protected CodeType disseminationRuleCodeListVersion; + + /** The Reuse rule code list version. */ + @XmlElement(name = "ReuseRuleCodeListVersion") + protected CodeType reuseRuleCodeListVersion; + + /** The Classification rule code list version. */ + @XmlElement(name = "ClassificationRuleCodeListVersion") + protected CodeType classificationRuleCodeListVersion; + + /** The Acquisition information code list version. */ + @XmlElement(name = "AcquisitionInformationCodeListVersion") + protected CodeType acquisitionInformationCodeListVersion; + + /** The Authorization reason code list version. */ + @XmlElement(name = "AuthorizationReasonCodeListVersion") + protected CodeType authorizationReasonCodeListVersion; + + /** The Relationship code list version. */ + @XmlElement(name = "RelationshipCodeListVersion") + protected CodeType relationshipCodeListVersion; + + /** The Any. */ + @XmlAnyElement(lax = true) + protected List any; + + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Gets the value of the replyCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getReplyCodeListVersion() { + return replyCodeListVersion; + } + + /** + * Sets the value of the replyCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setReplyCodeListVersion(CodeType value) { + this.replyCodeListVersion = value; + } + + /** + * Gets the value of the messageDigestAlgorithmCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getMessageDigestAlgorithmCodeListVersion() { + return messageDigestAlgorithmCodeListVersion; + } + + /** + * Sets the value of the messageDigestAlgorithmCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setMessageDigestAlgorithmCodeListVersion(CodeType value) { + this.messageDigestAlgorithmCodeListVersion = value; + } + + /** + * Gets the value of the mimeTypeCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getMimeTypeCodeListVersion() { + return mimeTypeCodeListVersion; + } + + /** + * Sets the value of the mimeTypeCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setMimeTypeCodeListVersion(CodeType value) { + this.mimeTypeCodeListVersion = value; + } + + /** + * Gets the value of the encodingCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getEncodingCodeListVersion() { + return encodingCodeListVersion; + } + + /** + * Sets the value of the encodingCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setEncodingCodeListVersion(CodeType value) { + this.encodingCodeListVersion = value; + } + + /** + * Gets the value of the fileFormatCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getFileFormatCodeListVersion() { + return fileFormatCodeListVersion; + } + + /** + * Sets the value of the fileFormatCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setFileFormatCodeListVersion(CodeType value) { + this.fileFormatCodeListVersion = value; + } + + /** + * Gets the value of the compressionAlgorithmCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getCompressionAlgorithmCodeListVersion() { + return compressionAlgorithmCodeListVersion; + } + + /** + * Sets the value of the compressionAlgorithmCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setCompressionAlgorithmCodeListVersion(CodeType value) { + this.compressionAlgorithmCodeListVersion = value; + } + + /** + * Gets the value of the dataObjectVersionCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getDataObjectVersionCodeListVersion() { + return dataObjectVersionCodeListVersion; + } + + /** + * Sets the value of the dataObjectVersionCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setDataObjectVersionCodeListVersion(CodeType value) { + this.dataObjectVersionCodeListVersion = value; + } + + /** + * Gets the value of the storageRuleCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getStorageRuleCodeListVersion() { + return storageRuleCodeListVersion; + } + + /** + * Sets the value of the storageRuleCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setStorageRuleCodeListVersion(CodeType value) { + this.storageRuleCodeListVersion = value; + } + + /** + * Gets the value of the appraisalRuleCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getAppraisalRuleCodeListVersion() { + return appraisalRuleCodeListVersion; + } + + /** + * Sets the value of the appraisalRuleCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setAppraisalRuleCodeListVersion(CodeType value) { + this.appraisalRuleCodeListVersion = value; + } + + /** + * Gets the value of the accessRuleCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getAccessRuleCodeListVersion() { + return accessRuleCodeListVersion; + } + + /** + * Sets the value of the accessRuleCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setAccessRuleCodeListVersion(CodeType value) { + this.accessRuleCodeListVersion = value; + } + + /** + * Gets the value of the disseminationRuleCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getDisseminationRuleCodeListVersion() { + return disseminationRuleCodeListVersion; + } + + /** + * Sets the value of the disseminationRuleCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setDisseminationRuleCodeListVersion(CodeType value) { + this.disseminationRuleCodeListVersion = value; + } + + /** + * Gets the value of the reuseRuleCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getReuseRuleCodeListVersion() { + return reuseRuleCodeListVersion; + } + + /** + * Sets the value of the reuseRuleCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setReuseRuleCodeListVersion(CodeType value) { + this.reuseRuleCodeListVersion = value; + } + + /** + * Gets the value of the classificationRuleCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getClassificationRuleCodeListVersion() { + return classificationRuleCodeListVersion; + } + + /** + * Sets the value of the classificationRuleCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setClassificationRuleCodeListVersion(CodeType value) { + this.classificationRuleCodeListVersion = value; + } + + /** + * Gets the value of the acquisitionInformationCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getAcquisitionInformationCodeListVersion() { + return acquisitionInformationCodeListVersion; + } + + /** + * Sets the value of the acquisitionInformationCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setAcquisitionInformationCodeListVersion(CodeType value) { + this.acquisitionInformationCodeListVersion = value; + } + + /** + * Gets the value of the authorizationReasonCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getAuthorizationReasonCodeListVersion() { + return authorizationReasonCodeListVersion; + } + + /** + * Sets the value of the authorizationReasonCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setAuthorizationReasonCodeListVersion(CodeType value) { + this.authorizationReasonCodeListVersion = value; + } + + /** + * Gets the value of the relationshipCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getRelationshipCodeListVersion() { + return relationshipCodeListVersion; + } + + /** + * Sets the value of the relationshipCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setRelationshipCodeListVersion(CodeType value) { + this.relationshipCodeListVersion = value; + } + + /** + * Gets the value of the any 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 any property. + * + *

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

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

Objects of the following type(s) are allowed in the list null null null null {@link Element + * } {@link Object } + * + * @return the any + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * 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/fr/gouv/culture/archivesdefrance/seda/v21/CodeType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CodeType.java index 20aa11d..19e7e62 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CodeType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CodeType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for CodeType complex type. * - *

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

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

  * <complexType name="CodeType">
@@ -36,251 +35,239 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CodeType", propOrder = { - "value" -}) +@XmlType( + name = "CodeType", + propOrder = {"value"}) public class CodeType { - /** - * The Value. - */ - @XmlValue - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String value; - /** - * The List id. - */ - @XmlAttribute(name = "listID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String listID; - /** - * The List agency id. - */ - @XmlAttribute(name = "listAgencyID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String listAgencyID; - /** - * The List agency name. - */ - @XmlAttribute(name = "listAgencyName") - protected String listAgencyName; - /** - * The List name. - */ - @XmlAttribute(name = "listName") - protected String listName; - /** - * The List version id. - */ - @XmlAttribute(name = "listVersionID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String listVersionID; - /** - * The Name. - */ - @XmlAttribute(name = "name") - protected String name; - /** - * The Language id. - */ - @XmlAttribute(name = "languageID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "language") - protected String languageID; - /** - * The List uri. - */ - @XmlAttribute(name = "listURI") - @XmlSchemaType(name = "anyURI") - protected String listURI; - /** - * The List scheme uri. - */ - @XmlAttribute(name = "listSchemeURI") - @XmlSchemaType(name = "anyURI") - protected String listSchemeURI; - - /** - * Elément ne pouvant être vide. - * - * @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 listID property. - * - * @return possible object is {@link String } - */ - public String getListID() { - return listID; - } - - /** - * Sets the value of the listID property. - * - * @param value allowed object is {@link String } - */ - public void setListID(String value) { - this.listID = value; - } - - /** - * Gets the value of the listAgencyID property. - * - * @return possible object is {@link String } - */ - public String getListAgencyID() { - return listAgencyID; - } - - /** - * Sets the value of the listAgencyID property. - * - * @param value allowed object is {@link String } - */ - public void setListAgencyID(String value) { - this.listAgencyID = value; - } - - /** - * Gets the value of the listAgencyName property. - * - * @return possible object is {@link String } - */ - public String getListAgencyName() { - return listAgencyName; - } - - /** - * Sets the value of the listAgencyName property. - * - * @param value allowed object is {@link String } - */ - public void setListAgencyName(String value) { - this.listAgencyName = value; - } - - /** - * Gets the value of the listName property. - * - * @return possible object is {@link String } - */ - public String getListName() { - return listName; - } - - /** - * Sets the value of the listName property. - * - * @param value allowed object is {@link String } - */ - public void setListName(String value) { - this.listName = value; - } - - /** - * Gets the value of the listVersionID property. - * - * @return possible object is {@link String } - */ - public String getListVersionID() { - return listVersionID; - } - - /** - * Sets the value of the listVersionID property. - * - * @param value allowed object is {@link String } - */ - public void setListVersionID(String value) { - this.listVersionID = 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 languageID property. - * - * @return possible object is {@link String } - */ - public String getLanguageID() { - return languageID; - } - - /** - * Sets the value of the languageID property. - * - * @param value allowed object is {@link String } - */ - public void setLanguageID(String value) { - this.languageID = value; - } - - /** - * Gets the value of the listURI property. - * - * @return possible object is {@link String } - */ - public String getListURI() { - return listURI; - } - - /** - * Sets the value of the listURI property. - * - * @param value allowed object is {@link String } - */ - public void setListURI(String value) { - this.listURI = value; - } - - /** - * Gets the value of the listSchemeURI property. - * - * @return possible object is {@link String } - */ - public String getListSchemeURI() { - return listSchemeURI; - } - - /** - * Sets the value of the listSchemeURI property. - * - * @param value allowed object is {@link String } - */ - public void setListSchemeURI(String value) { - this.listSchemeURI = value; - } + /** The Value. */ + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String value; + /** The List id. */ + @XmlAttribute(name = "listID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String listID; + + /** The List agency id. */ + @XmlAttribute(name = "listAgencyID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String listAgencyID; + + /** The List agency name. */ + @XmlAttribute(name = "listAgencyName") + protected String listAgencyName; + + /** The List name. */ + @XmlAttribute(name = "listName") + protected String listName; + + /** The List version id. */ + @XmlAttribute(name = "listVersionID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String listVersionID; + + /** The Name. */ + @XmlAttribute(name = "name") + protected String name; + + /** The Language id. */ + @XmlAttribute(name = "languageID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "language") + protected String languageID; + + /** The List uri. */ + @XmlAttribute(name = "listURI") + @XmlSchemaType(name = "anyURI") + protected String listURI; + + /** The List scheme uri. */ + @XmlAttribute(name = "listSchemeURI") + @XmlSchemaType(name = "anyURI") + protected String listSchemeURI; + + /** + * Elément ne pouvant être vide. + * + * @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 listID property. + * + * @return possible object is {@link String } + */ + public String getListID() { + return listID; + } + + /** + * Sets the value of the listID property. + * + * @param value allowed object is {@link String } + */ + public void setListID(String value) { + this.listID = value; + } + + /** + * Gets the value of the listAgencyID property. + * + * @return possible object is {@link String } + */ + public String getListAgencyID() { + return listAgencyID; + } + + /** + * Sets the value of the listAgencyID property. + * + * @param value allowed object is {@link String } + */ + public void setListAgencyID(String value) { + this.listAgencyID = value; + } + + /** + * Gets the value of the listAgencyName property. + * + * @return possible object is {@link String } + */ + public String getListAgencyName() { + return listAgencyName; + } + + /** + * Sets the value of the listAgencyName property. + * + * @param value allowed object is {@link String } + */ + public void setListAgencyName(String value) { + this.listAgencyName = value; + } + + /** + * Gets the value of the listName property. + * + * @return possible object is {@link String } + */ + public String getListName() { + return listName; + } + + /** + * Sets the value of the listName property. + * + * @param value allowed object is {@link String } + */ + public void setListName(String value) { + this.listName = value; + } + + /** + * Gets the value of the listVersionID property. + * + * @return possible object is {@link String } + */ + public String getListVersionID() { + return listVersionID; + } + + /** + * Sets the value of the listVersionID property. + * + * @param value allowed object is {@link String } + */ + public void setListVersionID(String value) { + this.listVersionID = 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 languageID property. + * + * @return possible object is {@link String } + */ + public String getLanguageID() { + return languageID; + } + + /** + * Sets the value of the languageID property. + * + * @param value allowed object is {@link String } + */ + public void setLanguageID(String value) { + this.languageID = value; + } + + /** + * Gets the value of the listURI property. + * + * @return possible object is {@link String } + */ + public String getListURI() { + return listURI; + } + + /** + * Sets the value of the listURI property. + * + * @param value allowed object is {@link String } + */ + public void setListURI(String value) { + this.listURI = value; + } + + /** + * Gets the value of the listSchemeURI property. + * + * @return possible object is {@link String } + */ + public String getListSchemeURI() { + return listSchemeURI; + } + + /** + * Sets the value of the listSchemeURI property. + * + * @param value allowed object is {@link String } + */ + public void setListSchemeURI(String value) { + this.listSchemeURI = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CompressedType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CompressedType.java index 4c40621..2ea2467 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CompressedType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CompressedType.java @@ -1,23 +1,21 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - import java.math.BigInteger; /** - *

* Java class for CompressedType complex type. * - *

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

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

  * <complexType name="CompressedType">
@@ -31,80 +29,74 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CompressedType", propOrder = { - "value" -}) +@XmlType( + name = "CompressedType", + propOrder = {"value"}) public class CompressedType { - /** - * The Value. - */ - @XmlValue - protected String value; - /** - * The Algorithm. - */ - @XmlAttribute(name = "algorithm", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String algorithm; - /** - * The Uncompressed size. - */ - @XmlAttribute(name = "uncompressedSize", required = true) - protected BigInteger uncompressedSize; + /** The Value. */ + @XmlValue protected String value; + + /** The Algorithm. */ + @XmlAttribute(name = "algorithm", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String algorithm; - /** - * Gets the value of the value property. - * - * @return possible object is {@link String } - */ - public String getValue() { - return value; - } + /** The Uncompressed size. */ + @XmlAttribute(name = "uncompressedSize", required = true) + protected BigInteger uncompressedSize; - /** - * 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 value property. + * + * @return possible object is {@link String } + */ + public String getValue() { + return value; + } - /** - * Gets the value of the algorithm property. - * - * @return possible object is {@link String } - */ - public String getAlgorithm() { - return algorithm; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link String } + */ + public void setValue(String value) { + this.value = value; + } - /** - * Sets the value of the algorithm property. - * - * @param value allowed object is {@link String } - */ - public void setAlgorithm(String value) { - this.algorithm = value; - } + /** + * Gets the value of the algorithm property. + * + * @return possible object is {@link String } + */ + public String getAlgorithm() { + return algorithm; + } - /** - * Gets the value of the uncompressedSize property. - * - * @return possible object is {@link BigInteger } - */ - public BigInteger getUncompressedSize() { - return uncompressedSize; - } + /** + * Sets the value of the algorithm property. + * + * @param value allowed object is {@link String } + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } - /** - * Sets the value of the uncompressedSize property. - * - * @param value allowed object is {@link BigInteger } - */ - public void setUncompressedSize(BigInteger value) { - this.uncompressedSize = value; - } + /** + * Gets the value of the uncompressedSize property. + * + * @return possible object is {@link BigInteger } + */ + public BigInteger getUncompressedSize() { + return uncompressedSize; + } + /** + * Sets the value of the uncompressedSize property. + * + * @param value allowed object is {@link BigInteger } + */ + public void setUncompressedSize(BigInteger value) { + this.uncompressedSize = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CoreMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CoreMetadataType.java index a5a7a06..7e6d9bf 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CoreMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CoreMetadataType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -12,11 +13,9 @@ /** * Métadonnées de base par type d'objet-données. * - *

- * Java class for CoreMetadataType complex type. + *

Java class for CoreMetadataType complex type. * - *

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

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

  * <complexType name="CoreMetadataType">
@@ -36,153 +35,140 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CoreMetadataType", propOrder = { - "text", - "document", - "image", - "audio", - "video", - "any" -}) +@XmlType( + name = "CoreMetadataType", + propOrder = {"text", "document", "image", "audio", "video", "any"}) public class CoreMetadataType { - /** - * The Text. - */ - @XmlElement(name = "Text") - protected TextTechnicalMetadataType text; - /** - * The Document. - */ - @XmlElement(name = "Document") - protected DocumentTechnicalMetadataType document; - /** - * The Image. - */ - @XmlElement(name = "Image") - protected ImageTechnicalMetadataType image; - /** - * The Audio. - */ - @XmlElement(name = "Audio") - protected AudioTechnicalMetadataType audio; - /** - * The Video. - */ - @XmlElement(name = "Video") - protected VideoTechnicalMetadataType video; - /** - * The Any. - */ - @XmlAnyElement(lax = true) - protected Object any; - - /** - * Gets the value of the text property. - * - * @return possible object is {@link TextTechnicalMetadataType } - */ - public TextTechnicalMetadataType getText() { - return text; - } - - /** - * Sets the value of the text property. - * - * @param value allowed object is {@link TextTechnicalMetadataType } - */ - public void setText(TextTechnicalMetadataType value) { - this.text = value; - } - - /** - * Gets the value of the document property. - * - * @return possible object is {@link DocumentTechnicalMetadataType } - */ - public DocumentTechnicalMetadataType getDocument() { - return document; - } - - /** - * Sets the value of the document property. - * - * @param value allowed object is {@link DocumentTechnicalMetadataType } - */ - public void setDocument(DocumentTechnicalMetadataType value) { - this.document = value; - } - - /** - * Gets the value of the image property. - * - * @return possible object is {@link ImageTechnicalMetadataType } - */ - public ImageTechnicalMetadataType getImage() { - return image; - } - - /** - * Sets the value of the image property. - * - * @param value allowed object is {@link ImageTechnicalMetadataType } - */ - public void setImage(ImageTechnicalMetadataType value) { - this.image = value; - } - - /** - * Gets the value of the audio property. - * - * @return possible object is {@link AudioTechnicalMetadataType } - */ - public AudioTechnicalMetadataType getAudio() { - return audio; - } - - /** - * Sets the value of the audio property. - * - * @param value allowed object is {@link AudioTechnicalMetadataType } - */ - public void setAudio(AudioTechnicalMetadataType value) { - this.audio = value; - } - - /** - * Gets the value of the video property. - * - * @return possible object is {@link VideoTechnicalMetadataType } - */ - public VideoTechnicalMetadataType getVideo() { - return video; - } - - /** - * Sets the value of the video property. - * - * @param value allowed object is {@link VideoTechnicalMetadataType } - */ - public void setVideo(VideoTechnicalMetadataType value) { - this.video = value; - } - - /** - * Gets the value of the any property. - * - * @return possible object is null null null null {@link Element } {@link Object } - */ - public Object getAny() { - return any; - } - - /** - * Sets the value of the any property. - * - * @param value allowed object is null null null null {@link Element } {@link Object } - */ - public void setAny(Object value) { - this.any = value; - } - + /** The Text. */ + @XmlElement(name = "Text") + protected TextTechnicalMetadataType text; + + /** The Document. */ + @XmlElement(name = "Document") + protected DocumentTechnicalMetadataType document; + + /** The Image. */ + @XmlElement(name = "Image") + protected ImageTechnicalMetadataType image; + + /** The Audio. */ + @XmlElement(name = "Audio") + protected AudioTechnicalMetadataType audio; + + /** The Video. */ + @XmlElement(name = "Video") + protected VideoTechnicalMetadataType video; + + /** The Any. */ + @XmlAnyElement(lax = true) + protected Object any; + + /** + * Gets the value of the text property. + * + * @return possible object is {@link TextTechnicalMetadataType } + */ + public TextTechnicalMetadataType getText() { + return text; + } + + /** + * Sets the value of the text property. + * + * @param value allowed object is {@link TextTechnicalMetadataType } + */ + public void setText(TextTechnicalMetadataType value) { + this.text = value; + } + + /** + * Gets the value of the document property. + * + * @return possible object is {@link DocumentTechnicalMetadataType } + */ + public DocumentTechnicalMetadataType getDocument() { + return document; + } + + /** + * Sets the value of the document property. + * + * @param value allowed object is {@link DocumentTechnicalMetadataType } + */ + public void setDocument(DocumentTechnicalMetadataType value) { + this.document = value; + } + + /** + * Gets the value of the image property. + * + * @return possible object is {@link ImageTechnicalMetadataType } + */ + public ImageTechnicalMetadataType getImage() { + return image; + } + + /** + * Sets the value of the image property. + * + * @param value allowed object is {@link ImageTechnicalMetadataType } + */ + public void setImage(ImageTechnicalMetadataType value) { + this.image = value; + } + + /** + * Gets the value of the audio property. + * + * @return possible object is {@link AudioTechnicalMetadataType } + */ + public AudioTechnicalMetadataType getAudio() { + return audio; + } + + /** + * Sets the value of the audio property. + * + * @param value allowed object is {@link AudioTechnicalMetadataType } + */ + public void setAudio(AudioTechnicalMetadataType value) { + this.audio = value; + } + + /** + * Gets the value of the video property. + * + * @return possible object is {@link VideoTechnicalMetadataType } + */ + public VideoTechnicalMetadataType getVideo() { + return video; + } + + /** + * Sets the value of the video property. + * + * @param value allowed object is {@link VideoTechnicalMetadataType } + */ + public void setVideo(VideoTechnicalMetadataType value) { + this.video = value; + } + + /** + * Gets the value of the any property. + * + * @return possible object is null null null null {@link Element } {@link Object } + */ + public Object getAny() { + return any; + } + + /** + * Sets the value of the any property. + * + * @param value allowed object is null null null null {@link Element } {@link Object } + */ + public void setAny(Object value) { + this.any = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CoverageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CoverageType.java index 9e36ab2..0ea3334 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CoverageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CoverageType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for CoverageType complex type. * - *

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

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

  * <complexType name="CoverageType">
@@ -36,111 +34,92 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CoverageType", propOrder = { - "spatial", - "temporal", - "juridictional" -}) +@XmlType( + name = "CoverageType", + propOrder = {"spatial", "temporal", "juridictional"}) public class CoverageType { - /** - * The Spatial. - */ - @XmlElement(name = "Spatial") - protected List spatial; - /** - * The Temporal. - */ - @XmlElement(name = "Temporal") - protected List temporal; - /** - * The Juridictional. - */ - @XmlElement(name = "Juridictional") - protected List juridictional; + /** The Spatial. */ + @XmlElement(name = "Spatial") + protected List spatial; - /** - * Gets the value of the spatial 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 spatial property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the spatial - */ - public List getSpatial() { - if (spatial == null) { - spatial = new ArrayList(); - } - return this.spatial; - } + /** The Temporal. */ + @XmlElement(name = "Temporal") + protected List temporal; - /** - * Gets the value of the temporal 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 temporal property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the temporal - */ - public List getTemporal() { - if (temporal == null) { - temporal = new ArrayList(); - } - return this.temporal; + /** The Juridictional. */ + @XmlElement(name = "Juridictional") + protected List juridictional; + + /** + * Gets the value of the spatial 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 spatial property. + * + *

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

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

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

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

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

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

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

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

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

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

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

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the juridictional + */ + public List getJuridictional() { + if (juridictional == null) { + juridictional = new ArrayList(); + } + return this.juridictional; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CustodialHistoryItemType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CustodialHistoryItemType.java index 9a19d6a..97426b7 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CustodialHistoryItemType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CustodialHistoryItemType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for CustodialHistoryItemType complex type. * - *

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

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

  * <complexType name="CustodialHistoryItemType">
@@ -30,31 +29,27 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "CustodialHistoryItemType")
-public class CustodialHistoryItemType
-        extends TextType {
+public class CustodialHistoryItemType extends TextType {
 
-    /**
-     * The When.
-     */
-    @XmlAttribute(name = "when")
-    protected String when;
+  /** The When. */
+  @XmlAttribute(name = "when")
+  protected String when;
 
-    /**
-     * Gets the value of the when property.
-     *
-     * @return possible object is {@link String }
-     */
-    public String getWhen() {
-        return when;
-    }
-
-    /**
-     * Sets the value of the when property.
-     *
-     * @param value allowed object is {@link String }
-     */
-    public void setWhen(String value) {
-        this.when = value;
-    }
+  /**
+   * Gets the value of the when property.
+   *
+   * @return possible object is {@link String }
+   */
+  public String getWhen() {
+    return when;
+  }
 
+  /**
+   * Sets the value of the when property.
+   *
+   * @param value allowed object is {@link String }
+   */
+  public void setWhen(String value) {
+    this.when = value;
+  }
 }
diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CustodialHistoryType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CustodialHistoryType.java
index a36fd06..e22d2aa 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CustodialHistoryType.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/CustodialHistoryType.java
@@ -1,8 +1,9 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
 package fr.gouv.culture.archivesdefrance.seda.v21;
 
@@ -10,16 +11,13 @@
 import jakarta.xml.bind.annotation.XmlAccessorType;
 import jakarta.xml.bind.annotation.XmlElement;
 import jakarta.xml.bind.annotation.XmlType;
-
 import java.util.ArrayList;
 import java.util.List;
 
 /**
- * 

* Java class for CustodialHistoryType complex type. * - *

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

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

  * <complexType name="CustodialHistoryType">
@@ -35,67 +33,58 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CustodialHistoryType", propOrder = { - "custodialHistoryItem", - "custodialHistoryFile" -}) +@XmlType( + name = "CustodialHistoryType", + propOrder = {"custodialHistoryItem", "custodialHistoryFile"}) public class CustodialHistoryType { - /** - * The Custodial history item. - */ - @XmlElement(name = "CustodialHistoryItem", required = true) - protected List custodialHistoryItem; - /** - * The Custodial history file. - */ - @XmlElement(name = "CustodialHistoryFile") - protected DataObjectRefType custodialHistoryFile; + /** The Custodial history item. */ + @XmlElement(name = "CustodialHistoryItem", required = true) + protected List custodialHistoryItem; - /** - * Gets the value of the custodialHistoryItem 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 custodialHistoryItem property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link CustodialHistoryItemType - * }* - * - * @return the custodial history item - */ - public List getCustodialHistoryItem() { - if (custodialHistoryItem == null) { - custodialHistoryItem = new ArrayList(); - } - return this.custodialHistoryItem; - } + /** The Custodial history file. */ + @XmlElement(name = "CustodialHistoryFile") + protected DataObjectRefType custodialHistoryFile; - /** - * Gets the value of the custodialHistoryFile property. - * - * @return possible object is {@link DataObjectRefType } - */ - public DataObjectRefType getCustodialHistoryFile() { - return custodialHistoryFile; + /** + * Gets the value of the custodialHistoryItem 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 custodialHistoryItem property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link CustodialHistoryItemType }* + * + * @return the custodial history item + */ + public List getCustodialHistoryItem() { + if (custodialHistoryItem == null) { + custodialHistoryItem = new ArrayList(); } + return this.custodialHistoryItem; + } - /** - * Sets the value of the custodialHistoryFile property. - * - * @param value allowed object is {@link DataObjectRefType } - */ - public void setCustodialHistoryFile(DataObjectRefType value) { - this.custodialHistoryFile = value; - } + /** + * Gets the value of the custodialHistoryFile property. + * + * @return possible object is {@link DataObjectRefType } + */ + public DataObjectRefType getCustodialHistoryFile() { + return custodialHistoryFile; + } + /** + * Sets the value of the custodialHistoryFile property. + * + * @param value allowed object is {@link DataObjectRefType } + */ + public void setCustodialHistoryFile(DataObjectRefType value) { + this.custodialHistoryFile = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectGroupType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectGroupType.java index 7f83f14..3317318 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectGroupType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectGroupType.java @@ -1,24 +1,22 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for DataObjectGroupType complex type. * - *

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

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

  * <complexType name="DataObjectGroupType">
@@ -38,96 +36,86 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DataObjectGroupType", propOrder = { - "binaryDataObjectOrPhysicalDataObject", - "logBook" -}) +@XmlType( + name = "DataObjectGroupType", + propOrder = {"binaryDataObjectOrPhysicalDataObject", "logBook"}) public class DataObjectGroupType { - /** - * The Binary data object or physical data object. - */ - @XmlElements({ - @XmlElement(name = "BinaryDataObject", type = BinaryDataObjectType.class), - @XmlElement(name = "PhysicalDataObject", type = PhysicalDataObjectType.class) - }) - protected List binaryDataObjectOrPhysicalDataObject; - /** - * The Log book. - */ - @XmlElement(name = "LogBook") - protected LogBookOgType logBook; + /** The Binary data object or physical data object. */ + @XmlElements({ + @XmlElement(name = "BinaryDataObject", type = BinaryDataObjectType.class), + @XmlElement(name = "PhysicalDataObject", type = PhysicalDataObjectType.class) + }) + protected List binaryDataObjectOrPhysicalDataObject; - /** - * The Id. - */ - @XmlAttribute(name = "id", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - protected String id; + /** The Log book. */ + @XmlElement(name = "LogBook") + protected LogBookOgType logBook; - /** - * Gets the value of the binaryDataObjectOrPhysicalDataObject 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 binaryDataObjectOrPhysicalDataObject property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list null null null null {@link BinaryDataObjectType } - * {@link PhysicalDataObjectType } - * - * @return the binary data object or physical data object - */ - public List getBinaryDataObjectOrPhysicalDataObject() { - if (binaryDataObjectOrPhysicalDataObject == null) { - binaryDataObjectOrPhysicalDataObject = new ArrayList(); - } - return this.binaryDataObjectOrPhysicalDataObject; - } + /** The Id. */ + @XmlAttribute(name = "id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; - /** - * Gets the value of the logBook property. - * - * @return possible object is {@link LogBookOgType } - */ - public LogBookOgType getLogBook() { - return logBook; + /** + * Gets the value of the binaryDataObjectOrPhysicalDataObject 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 binaryDataObjectOrPhysicalDataObject property. + * + *

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

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

Objects of the following type(s) are allowed in the list null null null null {@link + * BinaryDataObjectType } {@link PhysicalDataObjectType } + * + * @return the binary data object or physical data object + */ + public List getBinaryDataObjectOrPhysicalDataObject() { + if (binaryDataObjectOrPhysicalDataObject == null) { + binaryDataObjectOrPhysicalDataObject = new ArrayList(); } + return this.binaryDataObjectOrPhysicalDataObject; + } - /** - * Sets the value of the logBook property. - * - * @param value allowed object is {@link LogBookOgType } - */ - public void setLogBook(LogBookOgType value) { - this.logBook = value; - } + /** + * Gets the value of the logBook property. + * + * @return possible object is {@link LogBookOgType } + */ + public LogBookOgType getLogBook() { + return logBook; + } - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** + * Sets the value of the logBook property. + * + * @param value allowed object is {@link LogBookOgType } + */ + public void setLogBook(LogBookOgType value) { + this.logBook = value; + } - /** - * 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 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/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectOrArchiveUnitReferenceType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectOrArchiveUnitReferenceType.java index dd52235..64d7df6 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectOrArchiveUnitReferenceType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectOrArchiveUnitReferenceType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for DataObjectOrArchiveUnitReferenceType complex type. * - *

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

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

  * <complexType name="DataObjectOrArchiveUnitReferenceType">
@@ -34,137 +33,132 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DataObjectOrArchiveUnitReferenceType", propOrder = { - "archiveUnitRefId", - "dataObjectReference", - "repositoryArchiveUnitPID", - "repositoryObjectPID", - "externalReference" -}) +@XmlType( + name = "DataObjectOrArchiveUnitReferenceType", + propOrder = { + "archiveUnitRefId", + "dataObjectReference", + "repositoryArchiveUnitPID", + "repositoryObjectPID", + "externalReference" + }) public class DataObjectOrArchiveUnitReferenceType { - /** - * The Archive unit ref id. - */ - @XmlElement(name = "ArchiveUnitRefId") - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object archiveUnitRefId; - /** - * The Data object reference. - */ - @XmlElement(name = "DataObjectReference") - protected DataObjectRefType dataObjectReference; - /** - * The Repository archive unit pid. - */ - @XmlElement(name = "RepositoryArchiveUnitPID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String repositoryArchiveUnitPID; - /** - * The Repository object pid. - */ - @XmlElement(name = "RepositoryObjectPID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String repositoryObjectPID; - /** - * The External reference. - */ - @XmlElement(name = "ExternalReference") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String externalReference; - - /** - * Gets the value of the archiveUnitRefId property. - * - * @return possible object is {@link Object } - */ - public Object getArchiveUnitRefId() { - return archiveUnitRefId; - } - - /** - * Sets the value of the archiveUnitRefId property. - * - * @param value allowed object is {@link Object } - */ - public void setArchiveUnitRefId(Object value) { - this.archiveUnitRefId = value; - } - - /** - * Gets the value of the dataObjectReference property. - * - * @return possible object is {@link DataObjectRefType } - */ - public DataObjectRefType getDataObjectReference() { - return dataObjectReference; - } - - /** - * Sets the value of the dataObjectReference property. - * - * @param value allowed object is {@link DataObjectRefType } - */ - public void setDataObjectReference(DataObjectRefType value) { - this.dataObjectReference = value; - } - - /** - * Gets the value of the repositoryArchiveUnitPID property. - * - * @return possible object is {@link String } - */ - public String getRepositoryArchiveUnitPID() { - return repositoryArchiveUnitPID; - } - - /** - * Sets the value of the repositoryArchiveUnitPID property. - * - * @param value allowed object is {@link String } - */ - public void setRepositoryArchiveUnitPID(String value) { - this.repositoryArchiveUnitPID = value; - } - - /** - * Gets the value of the repositoryObjectPID property. - * - * @return possible object is {@link String } - */ - public String getRepositoryObjectPID() { - return repositoryObjectPID; - } - - /** - * Sets the value of the repositoryObjectPID property. - * - * @param value allowed object is {@link String } - */ - public void setRepositoryObjectPID(String value) { - this.repositoryObjectPID = value; - } - - /** - * Gets the value of the externalReference property. - * - * @return possible object is {@link String } - */ - public String getExternalReference() { - return externalReference; - } - - /** - * Sets the value of the externalReference property. - * - * @param value allowed object is {@link String } - */ - public void setExternalReference(String value) { - this.externalReference = value; - } + /** The Archive unit ref id. */ + @XmlElement(name = "ArchiveUnitRefId") + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object archiveUnitRefId; + /** The Data object reference. */ + @XmlElement(name = "DataObjectReference") + protected DataObjectRefType dataObjectReference; + + /** The Repository archive unit pid. */ + @XmlElement(name = "RepositoryArchiveUnitPID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String repositoryArchiveUnitPID; + + /** The Repository object pid. */ + @XmlElement(name = "RepositoryObjectPID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String repositoryObjectPID; + + /** The External reference. */ + @XmlElement(name = "ExternalReference") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String externalReference; + + /** + * Gets the value of the archiveUnitRefId property. + * + * @return possible object is {@link Object } + */ + public Object getArchiveUnitRefId() { + return archiveUnitRefId; + } + + /** + * Sets the value of the archiveUnitRefId property. + * + * @param value allowed object is {@link Object } + */ + public void setArchiveUnitRefId(Object value) { + this.archiveUnitRefId = value; + } + + /** + * Gets the value of the dataObjectReference property. + * + * @return possible object is {@link DataObjectRefType } + */ + public DataObjectRefType getDataObjectReference() { + return dataObjectReference; + } + + /** + * Sets the value of the dataObjectReference property. + * + * @param value allowed object is {@link DataObjectRefType } + */ + public void setDataObjectReference(DataObjectRefType value) { + this.dataObjectReference = value; + } + + /** + * Gets the value of the repositoryArchiveUnitPID property. + * + * @return possible object is {@link String } + */ + public String getRepositoryArchiveUnitPID() { + return repositoryArchiveUnitPID; + } + + /** + * Sets the value of the repositoryArchiveUnitPID property. + * + * @param value allowed object is {@link String } + */ + public void setRepositoryArchiveUnitPID(String value) { + this.repositoryArchiveUnitPID = value; + } + + /** + * Gets the value of the repositoryObjectPID property. + * + * @return possible object is {@link String } + */ + public String getRepositoryObjectPID() { + return repositoryObjectPID; + } + + /** + * Sets the value of the repositoryObjectPID property. + * + * @param value allowed object is {@link String } + */ + public void setRepositoryObjectPID(String value) { + this.repositoryObjectPID = value; + } + + /** + * Gets the value of the externalReference property. + * + * @return possible object is {@link String } + */ + public String getExternalReference() { + return externalReference; + } + + /** + * Sets the value of the externalReference property. + * + * @param value allowed object is {@link String } + */ + public void setExternalReference(String value) { + this.externalReference = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectPackageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectPackageType.java index 4d0fe59..b642be7 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectPackageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectPackageType.java @@ -1,24 +1,22 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for DataObjectPackageType complex type. * - *

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

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

  * <complexType name="DataObjectPackageType">
@@ -42,122 +40,115 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DataObjectPackageType", propOrder = { - "dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject", - "descriptiveMetadata", - "managementMetadata" -}) +@XmlType( + name = "DataObjectPackageType", + propOrder = { + "dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject", + "descriptiveMetadata", + "managementMetadata" + }) public class DataObjectPackageType { - /** - * The Data object group or binary data object or physical data object. - */ - @XmlElements({ - @XmlElement(name = "DataObjectGroup", type = DataObjectGroupType.class), - @XmlElement(name = "BinaryDataObject", type = BinaryDataObjectType.class), - @XmlElement(name = "PhysicalDataObject", type = PhysicalDataObjectType.class) - }) - protected List dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject; - /** - * The Descriptive metadata. - */ - @XmlElement(name = "DescriptiveMetadata", required = true) - protected DescriptiveMetadataType descriptiveMetadata; - /** - * The Management metadata. - */ - @XmlElement(name = "ManagementMetadata", required = true) - protected ManagementMetadataType managementMetadata; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + /** The Data object group or binary data object or physical data object. */ + @XmlElements({ + @XmlElement(name = "DataObjectGroup", type = DataObjectGroupType.class), + @XmlElement(name = "BinaryDataObject", type = BinaryDataObjectType.class), + @XmlElement(name = "PhysicalDataObject", type = PhysicalDataObjectType.class) + }) + protected List dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject; - /** - * Gets the value of the dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject 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 dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list null null null null {@link DataObjectGroupType } - * {@link BinaryDataObjectType } - * {@link PhysicalDataObjectType } - * - * @return the data object group or binary data object or physical data object - */ - public List getDataObjectGroupOrBinaryDataObjectOrPhysicalDataObject() { - if (dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject == null) { - dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject = new ArrayList(); - } - return this.dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject; - } + /** The Descriptive metadata. */ + @XmlElement(name = "DescriptiveMetadata", required = true) + protected DescriptiveMetadataType descriptiveMetadata; - /** - * Gets the value of the descriptiveMetadata property. - * - * @return possible object is {@link DescriptiveMetadataType } - */ - public DescriptiveMetadataType getDescriptiveMetadata() { - return descriptiveMetadata; - } + /** The Management metadata. */ + @XmlElement(name = "ManagementMetadata", required = true) + protected ManagementMetadataType managementMetadata; - /** - * Sets the value of the descriptiveMetadata property. - * - * @param value allowed object is {@link DescriptiveMetadataType } - */ - public void setDescriptiveMetadata(DescriptiveMetadataType value) { - this.descriptiveMetadata = value; - } + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Gets the value of the managementMetadata property. - * - * @return possible object is {@link ManagementMetadataType } - */ - public ManagementMetadataType getManagementMetadata() { - return managementMetadata; + /** + * Gets the value of the dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject 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 + * dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject property. + * + *

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

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

Objects of the following type(s) are allowed in the list null null null null {@link + * DataObjectGroupType } {@link BinaryDataObjectType } {@link PhysicalDataObjectType } + * + * @return the data object group or binary data object or physical data object + */ + public List getDataObjectGroupOrBinaryDataObjectOrPhysicalDataObject() { + if (dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject == null) { + dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject = new ArrayList(); } + return this.dataObjectGroupOrBinaryDataObjectOrPhysicalDataObject; + } - /** - * Sets the value of the managementMetadata property. - * - * @param value allowed object is {@link ManagementMetadataType } - */ - public void setManagementMetadata(ManagementMetadataType value) { - this.managementMetadata = value; - } + /** + * Gets the value of the descriptiveMetadata property. + * + * @return possible object is {@link DescriptiveMetadataType } + */ + public DescriptiveMetadataType getDescriptiveMetadata() { + return descriptiveMetadata; + } - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** + * Sets the value of the descriptiveMetadata property. + * + * @param value allowed object is {@link DescriptiveMetadataType } + */ + public void setDescriptiveMetadata(DescriptiveMetadataType value) { + this.descriptiveMetadata = value; + } - /** - * 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 managementMetadata property. + * + * @return possible object is {@link ManagementMetadataType } + */ + public ManagementMetadataType getManagementMetadata() { + return managementMetadata; + } + + /** + * Sets the value of the managementMetadata property. + * + * @param value allowed object is {@link ManagementMetadataType } + */ + public void setManagementMetadata(ManagementMetadataType value) { + this.managementMetadata = value; + } + + /** + * Gets the value of the id property. + * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link String } + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectRefType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectRefType.java index 124e080..b42a616 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectRefType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DataObjectRefType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -13,11 +14,9 @@ /** * Référence à un objet-données ou à un groupe d'objets-données. * - *

- * Java class for DataObjectRefType complex type. + *

Java class for DataObjectRefType complex type. * - *

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

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

  * <complexType name="DataObjectRefType">
@@ -36,87 +35,81 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DataObjectRefType", propOrder = { - "dataObjectReferenceId", - "dataObjectGroupReferenceId" -}) +@XmlType( + name = "DataObjectRefType", + propOrder = {"dataObjectReferenceId", "dataObjectGroupReferenceId"}) public class DataObjectRefType { - /** - * The Data object reference id. - */ - @XmlElement(name = "DataObjectReferenceId") - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object dataObjectReferenceId; - /** - * The Data object group reference id. - */ - @XmlElement(name = "DataObjectGroupReferenceId") - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object dataObjectGroupReferenceId; - /** - * The Id. - */ - @XmlAttribute(name = "id") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + /** The Data object reference id. */ + @XmlElement(name = "DataObjectReferenceId") + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object dataObjectReferenceId; - /** - * Gets the value of the dataObjectReferenceId property. - * - * @return possible object is {@link Object } - */ - public Object getDataObjectReferenceId() { - return dataObjectReferenceId; - } + /** The Data object group reference id. */ + @XmlElement(name = "DataObjectGroupReferenceId") + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object dataObjectGroupReferenceId; - /** - * Sets the value of the dataObjectReferenceId property. - * - * @param value allowed object is {@link Object } - */ - public void setDataObjectReferenceId(Object value) { - this.dataObjectReferenceId = value; - } + /** The Id. */ + @XmlAttribute(name = "id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Gets the value of the dataObjectGroupReferenceId property. - * - * @return possible object is {@link Object } - */ - public Object getDataObjectGroupReferenceId() { - return dataObjectGroupReferenceId; - } + /** + * Gets the value of the dataObjectReferenceId property. + * + * @return possible object is {@link Object } + */ + public Object getDataObjectReferenceId() { + return dataObjectReferenceId; + } - /** - * Sets the value of the dataObjectGroupReferenceId property. - * - * @param value allowed object is {@link Object } - */ - public void setDataObjectGroupReferenceId(Object value) { - this.dataObjectGroupReferenceId = value; - } + /** + * Sets the value of the dataObjectReferenceId property. + * + * @param value allowed object is {@link Object } + */ + public void setDataObjectReferenceId(Object value) { + this.dataObjectReferenceId = value; + } - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** + * Gets the value of the dataObjectGroupReferenceId property. + * + * @return possible object is {@link Object } + */ + public Object getDataObjectGroupReferenceId() { + return dataObjectGroupReferenceId; + } - /** - * Sets the value of the id property. - * - * @param value allowed object is {@link String } - */ - public void setId(String value) { - this.id = value; - } + /** + * Sets the value of the dataObjectGroupReferenceId property. + * + * @param value allowed object is {@link Object } + */ + public void setDataObjectGroupReferenceId(Object value) { + this.dataObjectGroupReferenceId = value; + } + /** + * Gets the value of the id property. + * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link String } + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DescriptiveMetadataContentType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DescriptiveMetadataContentType.java index 5fdece9..0070735 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DescriptiveMetadataContentType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DescriptiveMetadataContentType.java @@ -1,27 +1,25 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; -import org.w3c.dom.Element; - import java.util.ArrayList; import java.util.List; +import org.w3c.dom.Element; /** * Permet de définir les métadonnées de description. Peut être étendu. * - *

- * Java class for DescriptiveMetadataContentType complex type. + *

Java class for DescriptiveMetadataContentType complex type. * - *

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

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

  * <complexType name="DescriptiveMetadataContentType">
@@ -37,1274 +35,1153 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DescriptiveMetadataContentType", propOrder = { - "descriptionLevel", - "title", - "filePlanPosition", - "systemId", - "originatingSystemId", - "archivalAgencyArchiveUnitIdentifier", - "originatingAgencyArchiveUnitIdentifier", - "transferringAgencyArchiveUnitIdentifier", - "description", - "custodialHistory", - "type", - "documentType", - "language", - "descriptionLanguage", - "status", - "version", - "tag", - "keyword", - "coverage", - "originatingAgency", - "submissionAgency", - "agentAbstract", - "authorizedAgent", - "writer", - "addressee", - "recipient", - "transmitter", - "sender", - "source", - "relatedObjectReference", - "createdDate", - "transactedDate", - "acquiredDate", - "sentDate", - "receivedDate", - "registeredDate", - "startDate", - "endDate", - "event", - "signature", - "gps", - "any", - "history" -}) +@XmlType( + name = "DescriptiveMetadataContentType", + propOrder = { + "descriptionLevel", + "title", + "filePlanPosition", + "systemId", + "originatingSystemId", + "archivalAgencyArchiveUnitIdentifier", + "originatingAgencyArchiveUnitIdentifier", + "transferringAgencyArchiveUnitIdentifier", + "description", + "custodialHistory", + "type", + "documentType", + "language", + "descriptionLanguage", + "status", + "version", + "tag", + "keyword", + "coverage", + "originatingAgency", + "submissionAgency", + "agentAbstract", + "authorizedAgent", + "writer", + "addressee", + "recipient", + "transmitter", + "sender", + "source", + "relatedObjectReference", + "createdDate", + "transactedDate", + "acquiredDate", + "sentDate", + "receivedDate", + "registeredDate", + "startDate", + "endDate", + "event", + "signature", + "gps", + "any", + "history" + }) public class DescriptiveMetadataContentType { - /** - * The Description level. - */ - @XmlElement(name = "DescriptionLevel") - @XmlSchemaType(name = "token") - protected LevelType descriptionLevel; - /** - * The Title. - */ - @XmlElement(name = "Title") - protected List title; - /** - * The File plan position. - */ - @XmlElement(name = "FilePlanPosition") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List filePlanPosition; - /** - * The System id. - */ - @XmlElement(name = "SystemId") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List systemId; - /** - * The Originating system id. - */ - @XmlElement(name = "OriginatingSystemId") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List originatingSystemId; - /** - * The Archival agency archive unit identifier. - */ - @XmlElement(name = "ArchivalAgencyArchiveUnitIdentifier") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List archivalAgencyArchiveUnitIdentifier; - /** - * The Originating agency archive unit identifier. - */ - @XmlElement(name = "OriginatingAgencyArchiveUnitIdentifier") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List originatingAgencyArchiveUnitIdentifier; - /** - * The Transferring agency archive unit identifier. - */ - @XmlElement(name = "TransferringAgencyArchiveUnitIdentifier") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List transferringAgencyArchiveUnitIdentifier; - /** - * The Description. - */ - @XmlElement(name = "Description") - protected List description; - /** - * The Custodial history. - */ - @XmlElement(name = "CustodialHistory") - protected CustodialHistoryType custodialHistory; - /** - * The Type. - */ - @XmlElement(name = "Type") - protected TextType type; - /** - * The Document type. - */ - @XmlElement(name = "DocumentType") - protected TextType documentType; - /** - * The Language. - */ - @XmlElement(name = "Language") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "language") - protected List language; - /** - * The Description language. - */ - @XmlElement(name = "DescriptionLanguage") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "language") - protected String descriptionLanguage; - /** - * The Status. - */ - @XmlElement(name = "Status") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String status; - /** - * The Version. - */ - @XmlElement(name = "Version") - protected String version; - /** - * The Tag. - */ - @XmlElement(name = "Tag") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List tag; - /** - * The Keyword. - */ - @XmlElement(name = "Keyword") - protected List keyword; - /** - * The Coverage. - */ - @XmlElement(name = "Coverage") - protected CoverageType coverage; - /** - * The Originating agency. - */ - @XmlElement(name = "OriginatingAgency") - protected OrganizationType originatingAgency; - /** - * The Submission agency. - */ - @XmlElement(name = "SubmissionAgency") - protected OrganizationType submissionAgency; - /** - * The Agent abstract. - */ - @XmlElement(name = "AgentAbstract") - protected List agentAbstract; - /** - * The Authorized agent. - */ - @XmlElement(name = "AuthorizedAgent") - protected List authorizedAgent; - /** - * The Writer. - */ - @XmlElement(name = "Writer") - protected List writer; - /** - * The Addressee. - */ - @XmlElement(name = "Addressee") - protected List addressee; - /** - * The Recipient. - */ - @XmlElement(name = "Recipient") - protected List recipient; - /** - * The Transmitter. - */ - @XmlElement(name = "Transmitter") - protected List transmitter; - /** - * The Sender. - */ - @XmlElement(name = "Sender") - protected List sender; - /** - * The Source. - */ - @XmlElement(name = "Source") - protected String source; - /** - * The Related object reference. - */ - @XmlElement(name = "RelatedObjectReference") - protected RelatedObjectReferenceType relatedObjectReference; - /** - * The Created date. - */ - @XmlElement(name = "CreatedDate") - protected String createdDate; - /** - * The Transacted date. - */ - @XmlElement(name = "TransactedDate") - protected String transactedDate; - /** - * The Acquired date. - */ - @XmlElement(name = "AcquiredDate") - protected String acquiredDate; - /** - * The Sent date. - */ - @XmlElement(name = "SentDate") - protected String sentDate; - /** - * The Received date. - */ - @XmlElement(name = "ReceivedDate") - protected String receivedDate; - /** - * The Registered date. - */ - @XmlElement(name = "RegisteredDate") - protected String registeredDate; - /** - * The Start date. - */ - @XmlElement(name = "StartDate") - protected String startDate; - /** - * The End date. - */ - @XmlElement(name = "EndDate") - protected String endDate; - /** - * The Event. - */ - @XmlElement(name = "Event") - protected List event; - /** - * The Signature. - */ - @XmlElement(name = "Signature") - protected List signature; - /** - * The Gps. - */ - @XmlElement(name = "Gps") - protected GpsType gps; - /** - * The Any. - */ - @XmlAnyElement(lax = true) - protected List any; - /** - * The History. - */ - @XmlElement(name = "History") - protected List history; - - /** - * Gets the value of the descriptionLevel property. - * - * @return possible object is {@link LevelType } - */ - public LevelType getDescriptionLevel() { - return descriptionLevel; - } - - /** - * Sets the value of the descriptionLevel property. - * - * @param value allowed object is {@link LevelType } - */ - public void setDescriptionLevel(LevelType value) { - this.descriptionLevel = value; - } - - /** - * Gets the value of the title 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 title property. - * - *

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

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

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

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

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

- * Objects of the following type(s) are allowed in the list {@link String } - * - * @return the file plan position - */ - public List getFilePlanPosition() { - if (filePlanPosition == null) { - filePlanPosition = new ArrayList(); - } - return this.filePlanPosition; - } - - /** - * Gets the value of the systemId 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 systemId property. - * - *

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

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

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

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

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

- * Objects of the following type(s) are allowed in the list {@link String } - * - * @return the originating system id - */ - public List getOriginatingSystemId() { - if (originatingSystemId == null) { - originatingSystemId = new ArrayList(); - } - return this.originatingSystemId; - } - - /** - * Gets the value of the archivalAgencyArchiveUnitIdentifier 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 archivalAgencyArchiveUnitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link String } - * - * @return the archival agency archive unit identifier - */ - public List getArchivalAgencyArchiveUnitIdentifier() { - if (archivalAgencyArchiveUnitIdentifier == null) { - archivalAgencyArchiveUnitIdentifier = new ArrayList(); - } - return this.archivalAgencyArchiveUnitIdentifier; - } - - /** - * Gets the value of the originatingAgencyArchiveUnitIdentifier 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 originatingAgencyArchiveUnitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link String } - * - * @return the originating agency archive unit identifier - */ - public List getOriginatingAgencyArchiveUnitIdentifier() { - if (originatingAgencyArchiveUnitIdentifier == null) { - originatingAgencyArchiveUnitIdentifier = new ArrayList(); - } - return this.originatingAgencyArchiveUnitIdentifier; - } - - /** - * Gets the value of the transferringAgencyArchiveUnitIdentifier 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 transferringAgencyArchiveUnitIdentifier property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link String } - * - * @return the transferring agency archive unit identifier - */ - public List getTransferringAgencyArchiveUnitIdentifier() { - if (transferringAgencyArchiveUnitIdentifier == null) { - transferringAgencyArchiveUnitIdentifier = new ArrayList(); - } - return this.transferringAgencyArchiveUnitIdentifier; - } - - /** - * Gets the value of the description 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 description property. - * - *

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

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

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the description - */ - public List getDescription() { - if (description == null) { - description = new ArrayList(); - } - return this.description; - } - - /** - * Gets the value of the custodialHistory property. - * - * @return possible object is {@link CustodialHistoryType } - */ - public CustodialHistoryType getCustodialHistory() { - return custodialHistory; - } - - /** - * Sets the value of the custodialHistory property. - * - * @param value allowed object is {@link CustodialHistoryType } - */ - public void setCustodialHistory(CustodialHistoryType value) { - this.custodialHistory = value; - } - - /** - * Gets the value of the type property. - * - * @return possible object is {@link TextType } - */ - public TextType getType() { - return type; - } - - /** - * Sets the value of the type property. - * - * @param value allowed object is {@link TextType } - */ - public void setType(TextType value) { - this.type = value; - } - - /** - * Gets the value of the documentType property. - * - * @return possible object is {@link TextType } - */ - public TextType getDocumentType() { - return documentType; - } - - /** - * Sets the value of the documentType property. - * - * @param value allowed object is {@link TextType } - */ - public void setDocumentType(TextType value) { - this.documentType = value; - } - - /** - * Gets the value of the language property. - * - *

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

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

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

- * Objects of the following type(s) are allowed in the list {@link String } - * - * @return the language - */ - public List getLanguage() { - if (language == null) { - language = new ArrayList(); - } - return this.language; - } - - /** - * Gets the value of the descriptionLanguage property. - * - * @return possible object is {@link String } - */ - public String getDescriptionLanguage() { - return descriptionLanguage; - } - - /** - * Sets the value of the descriptionLanguage property. - * - * @param value allowed object is {@link String } - */ - public void setDescriptionLanguage(String value) { - this.descriptionLanguage = value; - } - - /** - * Gets the value of the status property. - * - * @return possible object is {@link String } - */ - public String getStatus() { - return status; - } - - /** - * Sets the value of the status property. - * - * @param value allowed object is {@link String } - */ - public void setStatus(String value) { - this.status = value; - } - - /** - * Gets the value of the version property. - * - * @return possible object is {@link String } - */ - public String getVersion() { - return version; - } - - /** - * Sets the value of the version property. - * - * @param value allowed object is {@link String } - */ - public void setVersion(String value) { - this.version = value; - } - - /** - * Gets the value of the tag 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 tag property. - * - *

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

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

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

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

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

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

- * Objects of the following type(s) are allowed in the list {@link KeywordsType - * }* - * - * @return the keyword - */ - public List getKeyword() { - if (keyword == null) { - keyword = new ArrayList(); - } - return this.keyword; - } - - /** - * Gets the value of the coverage property. - * - * @return possible object is {@link CoverageType } - */ - public CoverageType getCoverage() { - return coverage; - } - - /** - * Sets the value of the coverage property. - * - * @param value allowed object is {@link CoverageType } - */ - public void setCoverage(CoverageType value) { - this.coverage = value; - } - - /** - * Gets the value of the originatingAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getOriginatingAgency() { - return originatingAgency; - } - - /** - * Sets the value of the originatingAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setOriginatingAgency(OrganizationType value) { - this.originatingAgency = value; - } - - /** - * Gets the value of the submissionAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getSubmissionAgency() { - return submissionAgency; - } - - /** - * Sets the value of the submissionAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setSubmissionAgency(OrganizationType value) { - this.submissionAgency = value; - } - - /** - * Gets the value of the agentAbstract 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 agentAbstract property. - * - *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

- * Objects of the following type(s) are allowed in the list {@link AgentType - * }* - * - * @return the sender - */ - public List getSender() { - if (sender == null) { - sender = new ArrayList(); - } - return this.sender; - } - - /** - * Gets the value of the source property. - * - * @return possible object is {@link String } - */ - public String getSource() { - return source; - } - - /** - * Sets the value of the source property. - * - * @param value allowed object is {@link String } - */ - public void setSource(String value) { - this.source = value; - } - - /** - * Gets the value of the relatedObjectReference property. - * - * @return possible object is {@link RelatedObjectReferenceType } - */ - public RelatedObjectReferenceType getRelatedObjectReference() { - return relatedObjectReference; - } - - /** - * Sets the value of the relatedObjectReference property. - * - * @param value allowed object is {@link RelatedObjectReferenceType } - */ - public void setRelatedObjectReference(RelatedObjectReferenceType value) { - this.relatedObjectReference = value; - } - - /** - * Gets the value of the createdDate property. - * - * @return possible object is {@link String } - */ - public String getCreatedDate() { - return createdDate; - } - - /** - * Sets the value of the createdDate property. - * - * @param value allowed object is {@link String } - */ - public void setCreatedDate(String value) { - this.createdDate = value; - } - - /** - * Gets the value of the transactedDate property. - * - * @return possible object is {@link String } - */ - public String getTransactedDate() { - return transactedDate; - } - - /** - * Sets the value of the transactedDate property. - * - * @param value allowed object is {@link String } - */ - public void setTransactedDate(String value) { - this.transactedDate = value; - } - - /** - * Gets the value of the acquiredDate property. - * - * @return possible object is {@link String } - */ - public String getAcquiredDate() { - return acquiredDate; - } - - /** - * Sets the value of the acquiredDate property. - * - * @param value allowed object is {@link String } - */ - public void setAcquiredDate(String value) { - this.acquiredDate = value; - } - - /** - * Gets the value of the sentDate property. - * - * @return possible object is {@link String } - */ - public String getSentDate() { - return sentDate; - } - - /** - * Sets the value of the sentDate property. - * - * @param value allowed object is {@link String } - */ - public void setSentDate(String value) { - this.sentDate = value; - } - - /** - * Gets the value of the receivedDate property. - * - * @return possible object is {@link String } - */ - public String getReceivedDate() { - return receivedDate; - } - - /** - * Sets the value of the receivedDate property. - * - * @param value allowed object is {@link String } - */ - public void setReceivedDate(String value) { - this.receivedDate = value; - } - - /** - * Gets the value of the registeredDate property. - * - * @return possible object is {@link String } - */ - public String getRegisteredDate() { - return registeredDate; - } - - /** - * Sets the value of the registeredDate property. - * - * @param value allowed object is {@link String } - */ - public void setRegisteredDate(String value) { - this.registeredDate = value; - } - - /** - * Gets the value of the startDate property. - * - * @return possible object is {@link String } - */ - public String getStartDate() { - return startDate; - } - - /** - * Sets the value of the startDate property. - * - * @param value allowed object is {@link String } - */ - public void setStartDate(String value) { - this.startDate = value; - } - - /** - * Gets the value of the endDate property. - * - * @return possible object is {@link String } - */ - public String getEndDate() { - return endDate; - } - - /** - * Sets the value of the endDate property. - * - * @param value allowed object is {@link String } - */ - public void setEndDate(String value) { - this.endDate = value; - } - - /** - * Gets the value of the event 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 event property. - * - *

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

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

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

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

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

- * Objects of the following type(s) are allowed in the list {@link SignatureType - * }* - * - * @return the signature - */ - public List getSignature() { - if (signature == null) { - signature = new ArrayList(); - } - return this.signature; - } - - /** - * Gets the value of the gps property. - * - * @return possible object is {@link GpsType } - */ - public GpsType getGps() { - return gps; - } - - /** - * Sets the value of the gps property. - * - * @param value allowed object is {@link GpsType } - */ - public void setGps(GpsType value) { - this.gps = value; - } - - /** - * Gets the value of the any 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 any property. - * - *

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

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

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

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

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

- * Objects of the following type(s) are allowed in the list {@link ManagementHistoryType - * }* - * - * @return the history - */ - public List getHistory() { - if (history == null) { - history = new ArrayList(); - } - return this.history; - } - + /** The Description level. */ + @XmlElement(name = "DescriptionLevel") + @XmlSchemaType(name = "token") + protected LevelType descriptionLevel; + + /** The Title. */ + @XmlElement(name = "Title") + protected List title; + + /** The File plan position. */ + @XmlElement(name = "FilePlanPosition") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List filePlanPosition; + + /** The System id. */ + @XmlElement(name = "SystemId") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List systemId; + + /** The Originating system id. */ + @XmlElement(name = "OriginatingSystemId") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List originatingSystemId; + + /** The Archival agency archive unit identifier. */ + @XmlElement(name = "ArchivalAgencyArchiveUnitIdentifier") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List archivalAgencyArchiveUnitIdentifier; + + /** The Originating agency archive unit identifier. */ + @XmlElement(name = "OriginatingAgencyArchiveUnitIdentifier") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List originatingAgencyArchiveUnitIdentifier; + + /** The Transferring agency archive unit identifier. */ + @XmlElement(name = "TransferringAgencyArchiveUnitIdentifier") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List transferringAgencyArchiveUnitIdentifier; + + /** The Description. */ + @XmlElement(name = "Description") + protected List description; + + /** The Custodial history. */ + @XmlElement(name = "CustodialHistory") + protected CustodialHistoryType custodialHistory; + + /** The Type. */ + @XmlElement(name = "Type") + protected TextType type; + + /** The Document type. */ + @XmlElement(name = "DocumentType") + protected TextType documentType; + + /** The Language. */ + @XmlElement(name = "Language") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "language") + protected List language; + + /** The Description language. */ + @XmlElement(name = "DescriptionLanguage") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "language") + protected String descriptionLanguage; + + /** The Status. */ + @XmlElement(name = "Status") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String status; + + /** The Version. */ + @XmlElement(name = "Version") + protected String version; + + /** The Tag. */ + @XmlElement(name = "Tag") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List tag; + + /** The Keyword. */ + @XmlElement(name = "Keyword") + protected List keyword; + + /** The Coverage. */ + @XmlElement(name = "Coverage") + protected CoverageType coverage; + + /** The Originating agency. */ + @XmlElement(name = "OriginatingAgency") + protected OrganizationType originatingAgency; + + /** The Submission agency. */ + @XmlElement(name = "SubmissionAgency") + protected OrganizationType submissionAgency; + + /** The Agent abstract. */ + @XmlElement(name = "AgentAbstract") + protected List agentAbstract; + + /** The Authorized agent. */ + @XmlElement(name = "AuthorizedAgent") + protected List authorizedAgent; + + /** The Writer. */ + @XmlElement(name = "Writer") + protected List writer; + + /** The Addressee. */ + @XmlElement(name = "Addressee") + protected List addressee; + + /** The Recipient. */ + @XmlElement(name = "Recipient") + protected List recipient; + + /** The Transmitter. */ + @XmlElement(name = "Transmitter") + protected List transmitter; + + /** The Sender. */ + @XmlElement(name = "Sender") + protected List sender; + + /** The Source. */ + @XmlElement(name = "Source") + protected String source; + + /** The Related object reference. */ + @XmlElement(name = "RelatedObjectReference") + protected RelatedObjectReferenceType relatedObjectReference; + + /** The Created date. */ + @XmlElement(name = "CreatedDate") + protected String createdDate; + + /** The Transacted date. */ + @XmlElement(name = "TransactedDate") + protected String transactedDate; + + /** The Acquired date. */ + @XmlElement(name = "AcquiredDate") + protected String acquiredDate; + + /** The Sent date. */ + @XmlElement(name = "SentDate") + protected String sentDate; + + /** The Received date. */ + @XmlElement(name = "ReceivedDate") + protected String receivedDate; + + /** The Registered date. */ + @XmlElement(name = "RegisteredDate") + protected String registeredDate; + + /** The Start date. */ + @XmlElement(name = "StartDate") + protected String startDate; + + /** The End date. */ + @XmlElement(name = "EndDate") + protected String endDate; + + /** The Event. */ + @XmlElement(name = "Event") + protected List event; + + /** The Signature. */ + @XmlElement(name = "Signature") + protected List signature; + + /** The Gps. */ + @XmlElement(name = "Gps") + protected GpsType gps; + + /** The Any. */ + @XmlAnyElement(lax = true) + protected List any; + + /** The History. */ + @XmlElement(name = "History") + protected List history; + + /** + * Gets the value of the descriptionLevel property. + * + * @return possible object is {@link LevelType } + */ + public LevelType getDescriptionLevel() { + return descriptionLevel; + } + + /** + * Sets the value of the descriptionLevel property. + * + * @param value allowed object is {@link LevelType } + */ + public void setDescriptionLevel(LevelType value) { + this.descriptionLevel = value; + } + + /** + * Gets the value of the title 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 title property. + * + *

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

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

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

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return the file plan position + */ + public List getFilePlanPosition() { + if (filePlanPosition == null) { + filePlanPosition = new ArrayList(); + } + return this.filePlanPosition; + } + + /** + * Gets the value of the systemId 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 systemId property. + * + *

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

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

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

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return the originating system id + */ + public List getOriginatingSystemId() { + if (originatingSystemId == null) { + originatingSystemId = new ArrayList(); + } + return this.originatingSystemId; + } + + /** + * Gets the value of the archivalAgencyArchiveUnitIdentifier 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 archivalAgencyArchiveUnitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return the archival agency archive unit identifier + */ + public List getArchivalAgencyArchiveUnitIdentifier() { + if (archivalAgencyArchiveUnitIdentifier == null) { + archivalAgencyArchiveUnitIdentifier = new ArrayList(); + } + return this.archivalAgencyArchiveUnitIdentifier; + } + + /** + * Gets the value of the originatingAgencyArchiveUnitIdentifier 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 originatingAgencyArchiveUnitIdentifier property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return the originating agency archive unit identifier + */ + public List getOriginatingAgencyArchiveUnitIdentifier() { + if (originatingAgencyArchiveUnitIdentifier == null) { + originatingAgencyArchiveUnitIdentifier = new ArrayList(); + } + return this.originatingAgencyArchiveUnitIdentifier; + } + + /** + * Gets the value of the transferringAgencyArchiveUnitIdentifier 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 transferringAgencyArchiveUnitIdentifier + * property. + * + *

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

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

Objects of the following type(s) are allowed in the list {@link String } + * + * @return the transferring agency archive unit identifier + */ + public List getTransferringAgencyArchiveUnitIdentifier() { + if (transferringAgencyArchiveUnitIdentifier == null) { + transferringAgencyArchiveUnitIdentifier = new ArrayList(); + } + return this.transferringAgencyArchiveUnitIdentifier; + } + + /** + * Gets the value of the description 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 description property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getDescription().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the description + */ + public List getDescription() { + if (description == null) { + description = new ArrayList(); + } + return this.description; + } + + /** + * Gets the value of the custodialHistory property. + * + * @return possible object is {@link CustodialHistoryType } + */ + public CustodialHistoryType getCustodialHistory() { + return custodialHistory; + } + + /** + * Sets the value of the custodialHistory property. + * + * @param value allowed object is {@link CustodialHistoryType } + */ + public void setCustodialHistory(CustodialHistoryType value) { + this.custodialHistory = value; + } + + /** + * Gets the value of the type property. + * + * @return possible object is {@link TextType } + */ + public TextType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value allowed object is {@link TextType } + */ + public void setType(TextType value) { + this.type = value; + } + + /** + * Gets the value of the documentType property. + * + * @return possible object is {@link TextType } + */ + public TextType getDocumentType() { + return documentType; + } + + /** + * Sets the value of the documentType property. + * + * @param value allowed object is {@link TextType } + */ + public void setDocumentType(TextType value) { + this.documentType = value; + } + + /** + * Gets the value of the language property. + * + *

This accessor method returns a reference to the live list, not a snapshot. Therefore any + * modification you make to the returned list will be present inside the JAXB object. This is why + * there is not a set method for the language property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getLanguage().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link String } + * + * @return the language + */ + public List getLanguage() { + if (language == null) { + language = new ArrayList(); + } + return this.language; + } + + /** + * Gets the value of the descriptionLanguage property. + * + * @return possible object is {@link String } + */ + public String getDescriptionLanguage() { + return descriptionLanguage; + } + + /** + * Sets the value of the descriptionLanguage property. + * + * @param value allowed object is {@link String } + */ + public void setDescriptionLanguage(String value) { + this.descriptionLanguage = value; + } + + /** + * Gets the value of the status property. + * + * @return possible object is {@link String } + */ + public String getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value allowed object is {@link String } + */ + public void setStatus(String value) { + this.status = value; + } + + /** + * Gets the value of the version property. + * + * @return possible object is {@link String } + */ + public String getVersion() { + return version; + } + + /** + * Sets the value of the version property. + * + * @param value allowed object is {@link String } + */ + public void setVersion(String value) { + this.version = value; + } + + /** + * Gets the value of the tag 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 tag property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getTag().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link String } + * + * @return the tag + */ + public List getTag() { + if (tag == null) { + tag = new ArrayList(); + } + return this.tag; + } + + /** + * Gets the value of the keyword property. + * + *

This accessor method returns a reference to the live list, not a snapshot. Therefore any + * modification you make to the returned list will be present inside the JAXB object. This is why + * there is not a set method for the keyword property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getKeyword().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link KeywordsType }* + * + * @return the keyword + */ + public List getKeyword() { + if (keyword == null) { + keyword = new ArrayList(); + } + return this.keyword; + } + + /** + * Gets the value of the coverage property. + * + * @return possible object is {@link CoverageType } + */ + public CoverageType getCoverage() { + return coverage; + } + + /** + * Sets the value of the coverage property. + * + * @param value allowed object is {@link CoverageType } + */ + public void setCoverage(CoverageType value) { + this.coverage = value; + } + + /** + * Gets the value of the originatingAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getOriginatingAgency() { + return originatingAgency; + } + + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setOriginatingAgency(OrganizationType value) { + this.originatingAgency = value; + } + + /** + * Gets the value of the submissionAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getSubmissionAgency() { + return submissionAgency; + } + + /** + * Sets the value of the submissionAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setSubmissionAgency(OrganizationType value) { + this.submissionAgency = value; + } + + /** + * Gets the value of the agentAbstract 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 agentAbstract property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getAgentAbstract().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link AgentType }* + * + * @return the agent abstract + */ + public List getAgentAbstract() { + if (agentAbstract == null) { + agentAbstract = new ArrayList(); + } + return this.agentAbstract; + } + + /** + * Gets the value of the authorizedAgent 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 authorizedAgent property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getAuthorizedAgent().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link AgentType }* + * + * @return the authorized agent + */ + public List getAuthorizedAgent() { + if (authorizedAgent == null) { + authorizedAgent = new ArrayList(); + } + return this.authorizedAgent; + } + + /** + * Gets the value of the writer 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 writer property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getWriter().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link AgentType }* + * + * @return the writer + */ + public List getWriter() { + if (writer == null) { + writer = new ArrayList(); + } + return this.writer; + } + + /** + * Gets the value of the addressee 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 addressee property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getAddressee().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link AgentType }* + * + * @return the addressee + */ + public List getAddressee() { + if (addressee == null) { + addressee = new ArrayList(); + } + return this.addressee; + } + + /** + * Gets the value of the recipient 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 recipient property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getRecipient().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link AgentType }* + * + * @return the recipient + */ + public List getRecipient() { + if (recipient == null) { + recipient = new ArrayList(); + } + return this.recipient; + } + + /** + * Gets the value of the transmitter 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 transmitter property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getTransmitter().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link AgentType }* + * + * @return the transmitter + */ + public List getTransmitter() { + if (transmitter == null) { + transmitter = new ArrayList(); + } + return this.transmitter; + } + + /** + * Gets the value of the sender 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 sender property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getSender().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link AgentType }* + * + * @return the sender + */ + public List getSender() { + if (sender == null) { + sender = new ArrayList(); + } + return this.sender; + } + + /** + * Gets the value of the source property. + * + * @return possible object is {@link String } + */ + public String getSource() { + return source; + } + + /** + * Sets the value of the source property. + * + * @param value allowed object is {@link String } + */ + public void setSource(String value) { + this.source = value; + } + + /** + * Gets the value of the relatedObjectReference property. + * + * @return possible object is {@link RelatedObjectReferenceType } + */ + public RelatedObjectReferenceType getRelatedObjectReference() { + return relatedObjectReference; + } + + /** + * Sets the value of the relatedObjectReference property. + * + * @param value allowed object is {@link RelatedObjectReferenceType } + */ + public void setRelatedObjectReference(RelatedObjectReferenceType value) { + this.relatedObjectReference = value; + } + + /** + * Gets the value of the createdDate property. + * + * @return possible object is {@link String } + */ + public String getCreatedDate() { + return createdDate; + } + + /** + * Sets the value of the createdDate property. + * + * @param value allowed object is {@link String } + */ + public void setCreatedDate(String value) { + this.createdDate = value; + } + + /** + * Gets the value of the transactedDate property. + * + * @return possible object is {@link String } + */ + public String getTransactedDate() { + return transactedDate; + } + + /** + * Sets the value of the transactedDate property. + * + * @param value allowed object is {@link String } + */ + public void setTransactedDate(String value) { + this.transactedDate = value; + } + + /** + * Gets the value of the acquiredDate property. + * + * @return possible object is {@link String } + */ + public String getAcquiredDate() { + return acquiredDate; + } + + /** + * Sets the value of the acquiredDate property. + * + * @param value allowed object is {@link String } + */ + public void setAcquiredDate(String value) { + this.acquiredDate = value; + } + + /** + * Gets the value of the sentDate property. + * + * @return possible object is {@link String } + */ + public String getSentDate() { + return sentDate; + } + + /** + * Sets the value of the sentDate property. + * + * @param value allowed object is {@link String } + */ + public void setSentDate(String value) { + this.sentDate = value; + } + + /** + * Gets the value of the receivedDate property. + * + * @return possible object is {@link String } + */ + public String getReceivedDate() { + return receivedDate; + } + + /** + * Sets the value of the receivedDate property. + * + * @param value allowed object is {@link String } + */ + public void setReceivedDate(String value) { + this.receivedDate = value; + } + + /** + * Gets the value of the registeredDate property. + * + * @return possible object is {@link String } + */ + public String getRegisteredDate() { + return registeredDate; + } + + /** + * Sets the value of the registeredDate property. + * + * @param value allowed object is {@link String } + */ + public void setRegisteredDate(String value) { + this.registeredDate = value; + } + + /** + * Gets the value of the startDate property. + * + * @return possible object is {@link String } + */ + public String getStartDate() { + return startDate; + } + + /** + * Sets the value of the startDate property. + * + * @param value allowed object is {@link String } + */ + public void setStartDate(String value) { + this.startDate = value; + } + + /** + * Gets the value of the endDate property. + * + * @return possible object is {@link String } + */ + public String getEndDate() { + return endDate; + } + + /** + * Sets the value of the endDate property. + * + * @param value allowed object is {@link String } + */ + public void setEndDate(String value) { + this.endDate = value; + } + + /** + * Gets the value of the event 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 event property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getEvent().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link EventType }* + * + * @return the event + */ + public List getEvent() { + if (event == null) { + event = new ArrayList(); + } + return this.event; + } + + /** + * Gets the value of the signature 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 signature property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getSignature().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link SignatureType }* + * + * @return the signature + */ + public List getSignature() { + if (signature == null) { + signature = new ArrayList(); + } + return this.signature; + } + + /** + * Gets the value of the gps property. + * + * @return possible object is {@link GpsType } + */ + public GpsType getGps() { + return gps; + } + + /** + * Sets the value of the gps property. + * + * @param value allowed object is {@link GpsType } + */ + public void setGps(GpsType value) { + this.gps = value; + } + + /** + * Gets the value of the any 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 any property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getAny().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list null null null null {@link Element + * } {@link Object } + * + * @return the any + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets the value of the history 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 history property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getHistory().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link ManagementHistoryType }* + * + * @return the history + */ + public List getHistory() { + if (history == null) { + history = new ArrayList(); + } + return this.history; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DescriptiveMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DescriptiveMetadataType.java index 0a832c3..93b677c 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DescriptiveMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DescriptiveMetadataType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for DescriptiveMetadataType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="DescriptiveMetadataType">
@@ -34,43 +32,36 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DescriptiveMetadataType", propOrder = { - "archiveUnit" -}) +@XmlType( + name = "DescriptiveMetadataType", + propOrder = {"archiveUnit"}) public class DescriptiveMetadataType { - /** - * The Archive unit. - */ - @XmlElement(name = "ArchiveUnit") - protected List archiveUnit; + /** The Archive unit. */ + @XmlElement(name = "ArchiveUnit") + protected List archiveUnit; - /** - * Gets the value of the archiveUnit 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 archiveUnit property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getArchiveUnit().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link ArchiveUnitType - * }* - * - * @return the archive unit - */ - public List getArchiveUnit() { - if (archiveUnit == null) { - archiveUnit = new ArrayList(); - } - return this.archiveUnit; + /** + * Gets the value of the archiveUnit 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 archiveUnit property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getArchiveUnit().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link ArchiveUnitType }* + * + * @return the archive unit + */ + public List getArchiveUnit() { + if (archiveUnit == null) { + archiveUnit = new ArrayList(); } - + return this.archiveUnit; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DescriptiveTechnicalMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DescriptiveTechnicalMetadataType.java index 897a038..46c4e11 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DescriptiveTechnicalMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DescriptiveTechnicalMetadataType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,14 +12,12 @@ import jakarta.xml.bind.annotation.XmlType; /** - * Contient toutes les métadonnées techniques et/ou descriptives définies dans un schéma par un service producteur ou - * versant mais n'étant pas présentes dans les métadonnées de base. + * Contient toutes les métadonnées techniques et/ou descriptives définies dans un schéma par un + * service producteur ou versant mais n'étant pas présentes dans les métadonnées de base. * - *

- * Java class for DescriptiveTechnicalMetadataType complex type. + *

Java class for DescriptiveTechnicalMetadataType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="DescriptiveTechnicalMetadataType">
@@ -31,7 +30,4 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "DescriptiveTechnicalMetadataType")
-public class DescriptiveTechnicalMetadataType
-        extends OpenType {
-
-}
+public class DescriptiveTechnicalMetadataType extends OpenType {}
diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DimensionsType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DimensionsType.java
index b1de7eb..ffc8654 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DimensionsType.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DimensionsType.java
@@ -1,8 +1,9 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
 package fr.gouv.culture.archivesdefrance.seda.v21;
 
@@ -14,11 +15,9 @@
 /**
  * Permet d'exprimer les mesures de dimensions basiques.
  *
- * 

- * Java class for DimensionsType complex type. + *

Java class for DimensionsType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="DimensionsType">
@@ -41,226 +40,216 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DimensionsType", propOrder = { - "width", - "height", - "depth", - "shape", - "diameter", - "length", - "thickness", - "weight", - "numberOfPage" -}) -public class DimensionsType - extends BaseDimensionsType { - - /** - * The Width. - */ - @XmlElement(name = "Width") - protected MeasurementType width; - /** - * The Height. - */ - @XmlElement(name = "Height") - protected MeasurementType height; - /** - * The Depth. - */ - @XmlElement(name = "Depth") - protected MeasurementType depth; - /** - * The Shape. - */ - @XmlElement(name = "Shape") - protected String shape; - /** - * The Diameter. - */ - @XmlElement(name = "Diameter") - protected MeasurementType diameter; - /** - * The Length. - */ - @XmlElement(name = "Length") - protected MeasurementType length; - /** - * The Thickness. - */ - @XmlElement(name = "Thickness") - protected MeasurementType thickness; - /** - * The Weight. - */ - @XmlElement(name = "Weight") - protected MeasurementWeightType weight; - /** - * The Number of page. - */ - @XmlElement(name = "NumberOfPage") - protected Integer numberOfPage; - - /** - * Gets the value of the width property. - * - * @return possible object is {@link MeasurementType } - */ - public MeasurementType getWidth() { - return width; - } - - /** - * Sets the value of the width property. - * - * @param value allowed object is {@link MeasurementType } - */ - public void setWidth(MeasurementType value) { - this.width = value; - } - - /** - * Gets the value of the height property. - * - * @return possible object is {@link MeasurementType } - */ - public MeasurementType getHeight() { - return height; - } - - /** - * Sets the value of the height property. - * - * @param value allowed object is {@link MeasurementType } - */ - public void setHeight(MeasurementType value) { - this.height = value; - } - - /** - * Gets the value of the depth property. - * - * @return possible object is {@link MeasurementType } - */ - public MeasurementType getDepth() { - return depth; - } - - /** - * Sets the value of the depth property. - * - * @param value allowed object is {@link MeasurementType } - */ - public void setDepth(MeasurementType value) { - this.depth = value; - } - - /** - * Gets the value of the shape property. - * - * @return possible object is {@link String } - */ - public String getShape() { - return shape; - } - - /** - * Sets the value of the shape property. - * - * @param value allowed object is {@link String } - */ - public void setShape(String value) { - this.shape = value; - } - - /** - * Gets the value of the diameter property. - * - * @return possible object is {@link MeasurementType } - */ - public MeasurementType getDiameter() { - return diameter; - } - - /** - * Sets the value of the diameter property. - * - * @param value allowed object is {@link MeasurementType } - */ - public void setDiameter(MeasurementType value) { - this.diameter = value; - } - - /** - * Gets the value of the length property. - * - * @return possible object is {@link MeasurementType } - */ - public MeasurementType getLength() { - return length; - } - - /** - * Sets the value of the length property. - * - * @param value allowed object is {@link MeasurementType } - */ - public void setLength(MeasurementType value) { - this.length = value; - } - - /** - * Gets the value of the thickness property. - * - * @return possible object is {@link MeasurementType } - */ - public MeasurementType getThickness() { - return thickness; - } - - /** - * Sets the value of the thickness property. - * - * @param value allowed object is {@link MeasurementType } - */ - public void setThickness(MeasurementType value) { - this.thickness = value; - } - - /** - * Gets the value of the weight property. - * - * @return possible object is {@link MeasurementWeightType } - */ - public MeasurementWeightType getWeight() { - return weight; - } - - /** - * Sets the value of the weight property. - * - * @param value allowed object is {@link MeasurementWeightType } - */ - public void setWeight(MeasurementWeightType value) { - this.weight = value; - } - - /** - * Gets the value of the numberOfPage property. - * - * @return possible object is {@link Integer } - */ - public Integer getNumberOfPage() { - return numberOfPage; - } - - /** - * Sets the value of the numberOfPage property. - * - * @param value allowed object is {@link Integer } - */ - public void setNumberOfPage(Integer value) { - this.numberOfPage = value; - } - +@XmlType( + name = "DimensionsType", + propOrder = { + "width", + "height", + "depth", + "shape", + "diameter", + "length", + "thickness", + "weight", + "numberOfPage" + }) +public class DimensionsType extends BaseDimensionsType { + + /** The Width. */ + @XmlElement(name = "Width") + protected MeasurementType width; + + /** The Height. */ + @XmlElement(name = "Height") + protected MeasurementType height; + + /** The Depth. */ + @XmlElement(name = "Depth") + protected MeasurementType depth; + + /** The Shape. */ + @XmlElement(name = "Shape") + protected String shape; + + /** The Diameter. */ + @XmlElement(name = "Diameter") + protected MeasurementType diameter; + + /** The Length. */ + @XmlElement(name = "Length") + protected MeasurementType length; + + /** The Thickness. */ + @XmlElement(name = "Thickness") + protected MeasurementType thickness; + + /** The Weight. */ + @XmlElement(name = "Weight") + protected MeasurementWeightType weight; + + /** The Number of page. */ + @XmlElement(name = "NumberOfPage") + protected Integer numberOfPage; + + /** + * Gets the value of the width property. + * + * @return possible object is {@link MeasurementType } + */ + public MeasurementType getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value allowed object is {@link MeasurementType } + */ + public void setWidth(MeasurementType value) { + this.width = value; + } + + /** + * Gets the value of the height property. + * + * @return possible object is {@link MeasurementType } + */ + public MeasurementType getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value allowed object is {@link MeasurementType } + */ + public void setHeight(MeasurementType value) { + this.height = value; + } + + /** + * Gets the value of the depth property. + * + * @return possible object is {@link MeasurementType } + */ + public MeasurementType getDepth() { + return depth; + } + + /** + * Sets the value of the depth property. + * + * @param value allowed object is {@link MeasurementType } + */ + public void setDepth(MeasurementType value) { + this.depth = value; + } + + /** + * Gets the value of the shape property. + * + * @return possible object is {@link String } + */ + public String getShape() { + return shape; + } + + /** + * Sets the value of the shape property. + * + * @param value allowed object is {@link String } + */ + public void setShape(String value) { + this.shape = value; + } + + /** + * Gets the value of the diameter property. + * + * @return possible object is {@link MeasurementType } + */ + public MeasurementType getDiameter() { + return diameter; + } + + /** + * Sets the value of the diameter property. + * + * @param value allowed object is {@link MeasurementType } + */ + public void setDiameter(MeasurementType value) { + this.diameter = value; + } + + /** + * Gets the value of the length property. + * + * @return possible object is {@link MeasurementType } + */ + public MeasurementType getLength() { + return length; + } + + /** + * Sets the value of the length property. + * + * @param value allowed object is {@link MeasurementType } + */ + public void setLength(MeasurementType value) { + this.length = value; + } + + /** + * Gets the value of the thickness property. + * + * @return possible object is {@link MeasurementType } + */ + public MeasurementType getThickness() { + return thickness; + } + + /** + * Sets the value of the thickness property. + * + * @param value allowed object is {@link MeasurementType } + */ + public void setThickness(MeasurementType value) { + this.thickness = value; + } + + /** + * Gets the value of the weight property. + * + * @return possible object is {@link MeasurementWeightType } + */ + public MeasurementWeightType getWeight() { + return weight; + } + + /** + * Sets the value of the weight property. + * + * @param value allowed object is {@link MeasurementWeightType } + */ + public void setWeight(MeasurementWeightType value) { + this.weight = value; + } + + /** + * Gets the value of the numberOfPage property. + * + * @return possible object is {@link Integer } + */ + public Integer getNumberOfPage() { + return numberOfPage; + } + + /** + * Sets the value of the numberOfPage property. + * + * @param value allowed object is {@link Integer } + */ + public void setNumberOfPage(Integer value) { + this.numberOfPage = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DisseminationRuleType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DisseminationRuleType.java index a83ead8..762e57d 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DisseminationRuleType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DisseminationRuleType.java @@ -1,25 +1,24 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; - -import javax.xml.datatype.XMLGregorianCalendar; import java.util.ArrayList; import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de cet ArchiveUnit. + * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de + * cet ArchiveUnit. * - *

- * Java class for DisseminationRuleType complex type. + *

Java class for DisseminationRuleType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="DisseminationRuleType">
@@ -41,104 +40,90 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DisseminationRuleType", propOrder = { - "ruleAndStartDate", - "preventInheritance", - "refNonRuleId" -}) +@XmlType( + name = "DisseminationRuleType", + propOrder = {"ruleAndStartDate", "preventInheritance", "refNonRuleId"}) public class DisseminationRuleType { - /** - * The Rule and start date. - */ - @XmlElements({ - @XmlElement(name = "Rule", type = RuleIdType.class), - @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) - }) - protected List ruleAndStartDate; - /** - * The Prevent inheritance. - */ - @XmlElement(name = "PreventInheritance", defaultValue = "false") - protected Boolean preventInheritance; - /** - * The Ref non rule id. - */ - @XmlElement(name = "RefNonRuleId") - protected List refNonRuleId; + /** The Rule and start date. */ + @XmlElements({ + @XmlElement(name = "Rule", type = RuleIdType.class), + @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) + }) + protected List ruleAndStartDate; - /** - * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRuleAndStartDate().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list null null null null {@link RuleIdType } - * {@link XMLGregorianCalendar } - * - * @return the rule and start date - */ - public List getRuleAndStartDate() { - if (ruleAndStartDate == null) { - ruleAndStartDate = new ArrayList(); - } - return this.ruleAndStartDate; - } + /** The Prevent inheritance. */ + @XmlElement(name = "PreventInheritance", defaultValue = "false") + protected Boolean preventInheritance; - /** - * Gets the value of the preventInheritance property. - * - * @return possible object is {@link Boolean } - */ - public Boolean isPreventInheritance() { - return preventInheritance; - } + /** The Ref non rule id. */ + @XmlElement(name = "RefNonRuleId") + protected List refNonRuleId; - /** - * Sets the value of the preventInheritance property. - * - * @param value allowed object is {@link Boolean } - */ - public void setPreventInheritance(Boolean value) { - this.preventInheritance = value; + /** + * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getRuleAndStartDate().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list null null null null {@link + * RuleIdType } {@link XMLGregorianCalendar } + * + * @return the rule and start date + */ + public List getRuleAndStartDate() { + if (ruleAndStartDate == null) { + ruleAndStartDate = new ArrayList(); } + return this.ruleAndStartDate; + } - /** - * Gets the value of the refNonRuleId 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 refNonRuleId property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRefNonRuleId().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link RuleIdType - * }* - * - * @return the ref non rule id - */ - public List getRefNonRuleId() { - if (refNonRuleId == null) { - refNonRuleId = new ArrayList(); - } - return this.refNonRuleId; - } + /** + * Gets the value of the preventInheritance property. + * + * @return possible object is {@link Boolean } + */ + public Boolean isPreventInheritance() { + return preventInheritance; + } + /** + * Sets the value of the preventInheritance property. + * + * @param value allowed object is {@link Boolean } + */ + public void setPreventInheritance(Boolean value) { + this.preventInheritance = value; + } + + /** + * Gets the value of the refNonRuleId 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 refNonRuleId property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getRefNonRuleId().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link RuleIdType }* + * + * @return the ref non rule id + */ + public List getRefNonRuleId() { + if (refNonRuleId == null) { + refNonRuleId = new ArrayList(); + } + return this.refNonRuleId; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DocumentTechnicalMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DocumentTechnicalMetadataType.java index 738cb69..664cb1e 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DocumentTechnicalMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/DocumentTechnicalMetadataType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,14 +12,12 @@ import jakarta.xml.bind.annotation.XmlType; /** - * Contient toutes les métadonnées techniques de base pour les objets-données de type document (Word, PDF, XLS, - * LibreOffice, ...). + * Contient toutes les métadonnées techniques de base pour les objets-données de type document + * (Word, PDF, XLS, LibreOffice, ...). * - *

- * Java class for DocumentTechnicalMetadataType complex type. + *

Java class for DocumentTechnicalMetadataType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="DocumentTechnicalMetadataType">
@@ -31,7 +30,4 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "DocumentTechnicalMetadataType")
-public class DocumentTechnicalMetadataType
-        extends OpenType {
-
-}
+public class DocumentTechnicalMetadataType extends OpenType {}
diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/EventLogBookOgType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/EventLogBookOgType.java
index 72f3a5d..d63c9b7 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/EventLogBookOgType.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/EventLogBookOgType.java
@@ -1,19 +1,18 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
 package fr.gouv.culture.archivesdefrance.seda.v21;
 
 import jakarta.xml.bind.annotation.*;
 
 /**
- * 

* Java class for EventLogBookOgType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="EventLogBookOgType">
@@ -28,36 +27,32 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "EventLogBookOgType", propOrder = { - "dataObjectReferenceId" -}) -public class EventLogBookOgType - extends EventType { +@XmlType( + name = "EventLogBookOgType", + propOrder = {"dataObjectReferenceId"}) +public class EventLogBookOgType extends EventType { - /** - * The Data object reference id. - */ - @XmlElement(name = "DataObjectReferenceId") - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object dataObjectReferenceId; + /** The Data object reference id. */ + @XmlElement(name = "DataObjectReferenceId") + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object dataObjectReferenceId; - /** - * Gets the value of the dataObjectReferenceId property. - * - * @return possible object is {@link Object } - */ - public Object getDataObjectReferenceId() { - return dataObjectReferenceId; - } - - /** - * Sets the value of the dataObjectReferenceId property. - * - * @param value allowed object is {@link Object } - */ - public void setDataObjectReferenceId(Object value) { - this.dataObjectReferenceId = value; - } + /** + * Gets the value of the dataObjectReferenceId property. + * + * @return possible object is {@link Object } + */ + public Object getDataObjectReferenceId() { + return dataObjectReferenceId; + } + /** + * Sets the value of the dataObjectReferenceId property. + * + * @param value allowed object is {@link Object } + */ + public void setDataObjectReferenceId(Object value) { + this.dataObjectReferenceId = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/EventType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/EventType.java index 356d25d..9d5e2ac 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/EventType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/EventType.java @@ -1,24 +1,22 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for EventType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="EventType">
@@ -42,275 +40,260 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "EventType", propOrder = { - "eventIdentifier", - "eventTypeCode", - "eventType", - "eventDateTime", - "eventDetail", - "outcome", - "outcomeDetail", - "outcomeDetailMessage", - "eventDetailData", - "eventAbstract" -}) -@XmlSeeAlso({ - EventLogBookOgType.class -}) +@XmlType( + name = "EventType", + propOrder = { + "eventIdentifier", + "eventTypeCode", + "eventType", + "eventDateTime", + "eventDetail", + "outcome", + "outcomeDetail", + "outcomeDetailMessage", + "eventDetailData", + "eventAbstract" + }) +@XmlSeeAlso({EventLogBookOgType.class}) public class EventType { - /** - * The Event identifier. - */ - @XmlElement(name = "EventIdentifier") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String eventIdentifier; - /** - * The Event type code. - */ - @XmlElement(name = "EventTypeCode") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String eventTypeCode; - /** - * The Event type. - */ - @XmlElement(name = "EventType") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String eventType; - /** - * The Event date time. - */ - @XmlElement(name = "EventDateTime", required = true) - protected String eventDateTime; - /** - * The Event detail. - */ - @XmlElement(name = "EventDetail") - protected TextType eventDetail; - /** - * The Outcome. - */ - @XmlElement(name = "Outcome") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String outcome; - /** - * The Outcome detail. - */ - @XmlElement(name = "OutcomeDetail") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String outcomeDetail; - /** - * The Outcome detail message. - */ - @XmlElement(name = "OutcomeDetailMessage") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String outcomeDetailMessage; - /** - * The Event detail data. - */ - @XmlElement(name = "EventDetailData") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String eventDetailData; - /** - * The Event abstract. - */ - @XmlElement(name = "EventAbstract") - protected List eventAbstract; + /** The Event identifier. */ + @XmlElement(name = "EventIdentifier") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String eventIdentifier; - /** - * Gets the value of the eventIdentifier property. - * - * @return possible object is {@link String } - */ - public String getEventIdentifier() { - return eventIdentifier; - } + /** The Event type code. */ + @XmlElement(name = "EventTypeCode") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String eventTypeCode; - /** - * Sets the value of the eventIdentifier property. - * - * @param value allowed object is {@link String } - */ - public void setEventIdentifier(String value) { - this.eventIdentifier = value; - } + /** The Event type. */ + @XmlElement(name = "EventType") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String eventType; - /** - * Gets the value of the eventTypeCode property. - * - * @return possible object is {@link String } - */ - public String getEventTypeCode() { - return eventTypeCode; - } + /** The Event date time. */ + @XmlElement(name = "EventDateTime", required = true) + protected String eventDateTime; - /** - * Sets the value of the eventTypeCode property. - * - * @param value allowed object is {@link String } - */ - public void setEventTypeCode(String value) { - this.eventTypeCode = value; - } + /** The Event detail. */ + @XmlElement(name = "EventDetail") + protected TextType eventDetail; - /** - * Gets the value of the eventType property. - * - * @return possible object is {@link String } - */ - public String getEventType() { - return eventType; - } + /** The Outcome. */ + @XmlElement(name = "Outcome") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String outcome; - /** - * Sets the value of the eventType property. - * - * @param value allowed object is {@link String } - */ - public void setEventType(String value) { - this.eventType = value; - } + /** The Outcome detail. */ + @XmlElement(name = "OutcomeDetail") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String outcomeDetail; - /** - * Gets the value of the eventDateTime property. - * - * @return possible object is {@link String } - */ - public String getEventDateTime() { - return eventDateTime; - } + /** The Outcome detail message. */ + @XmlElement(name = "OutcomeDetailMessage") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String outcomeDetailMessage; - /** - * Sets the value of the eventDateTime property. - * - * @param value allowed object is {@link String } - */ - public void setEventDateTime(String value) { - this.eventDateTime = value; - } + /** The Event detail data. */ + @XmlElement(name = "EventDetailData") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String eventDetailData; - /** - * Gets the value of the eventDetail property. - * - * @return possible object is {@link TextType } - */ - public TextType getEventDetail() { - return eventDetail; - } + /** The Event abstract. */ + @XmlElement(name = "EventAbstract") + protected List eventAbstract; - /** - * Sets the value of the eventDetail property. - * - * @param value allowed object is {@link TextType } - */ - public void setEventDetail(TextType value) { - this.eventDetail = value; - } + /** + * Gets the value of the eventIdentifier property. + * + * @return possible object is {@link String } + */ + public String getEventIdentifier() { + return eventIdentifier; + } - /** - * Gets the value of the outcome property. - * - * @return possible object is {@link String } - */ - public String getOutcome() { - return outcome; - } + /** + * Sets the value of the eventIdentifier property. + * + * @param value allowed object is {@link String } + */ + public void setEventIdentifier(String value) { + this.eventIdentifier = value; + } - /** - * Sets the value of the outcome property. - * - * @param value allowed object is {@link String } - */ - public void setOutcome(String value) { - this.outcome = value; - } + /** + * Gets the value of the eventTypeCode property. + * + * @return possible object is {@link String } + */ + public String getEventTypeCode() { + return eventTypeCode; + } - /** - * Gets the value of the outcomeDetail property. - * - * @return possible object is {@link String } - */ - public String getOutcomeDetail() { - return outcomeDetail; - } + /** + * Sets the value of the eventTypeCode property. + * + * @param value allowed object is {@link String } + */ + public void setEventTypeCode(String value) { + this.eventTypeCode = value; + } - /** - * Sets the value of the outcomeDetail property. - * - * @param value allowed object is {@link String } - */ - public void setOutcomeDetail(String value) { - this.outcomeDetail = value; - } + /** + * Gets the value of the eventType property. + * + * @return possible object is {@link String } + */ + public String getEventType() { + return eventType; + } - /** - * Gets the value of the outcomeDetailMessage property. - * - * @return possible object is {@link String } - */ - public String getOutcomeDetailMessage() { - return outcomeDetailMessage; - } + /** + * Sets the value of the eventType property. + * + * @param value allowed object is {@link String } + */ + public void setEventType(String value) { + this.eventType = value; + } - /** - * Sets the value of the outcomeDetailMessage property. - * - * @param value allowed object is {@link String } - */ - public void setOutcomeDetailMessage(String value) { - this.outcomeDetailMessage = value; - } + /** + * Gets the value of the eventDateTime property. + * + * @return possible object is {@link String } + */ + public String getEventDateTime() { + return eventDateTime; + } - /** - * Gets the value of the eventDetailData property. - * - * @return possible object is {@link String } - */ - public String getEventDetailData() { - return eventDetailData; - } + /** + * Sets the value of the eventDateTime property. + * + * @param value allowed object is {@link String } + */ + public void setEventDateTime(String value) { + this.eventDateTime = value; + } - /** - * Sets the value of the eventDetailData property. - * - * @param value allowed object is {@link String } - */ - public void setEventDetailData(String value) { - this.eventDetailData = value; - } + /** + * Gets the value of the eventDetail property. + * + * @return possible object is {@link TextType } + */ + public TextType getEventDetail() { + return eventDetail; + } - /** - * Permet d'étendre de nouveaux types d'évenéments.Gets the value of the eventAbstract 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 eventAbstract property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getEventAbstract().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link Object } - * - * @return the event abstract - */ - public List getEventAbstract() { - if (eventAbstract == null) { - eventAbstract = new ArrayList(); - } - return this.eventAbstract; - } + /** + * Sets the value of the eventDetail property. + * + * @param value allowed object is {@link TextType } + */ + public void setEventDetail(TextType value) { + this.eventDetail = value; + } + + /** + * Gets the value of the outcome property. + * + * @return possible object is {@link String } + */ + public String getOutcome() { + return outcome; + } + + /** + * Sets the value of the outcome property. + * + * @param value allowed object is {@link String } + */ + public void setOutcome(String value) { + this.outcome = value; + } + /** + * Gets the value of the outcomeDetail property. + * + * @return possible object is {@link String } + */ + public String getOutcomeDetail() { + return outcomeDetail; + } + + /** + * Sets the value of the outcomeDetail property. + * + * @param value allowed object is {@link String } + */ + public void setOutcomeDetail(String value) { + this.outcomeDetail = value; + } + + /** + * Gets the value of the outcomeDetailMessage property. + * + * @return possible object is {@link String } + */ + public String getOutcomeDetailMessage() { + return outcomeDetailMessage; + } + + /** + * Sets the value of the outcomeDetailMessage property. + * + * @param value allowed object is {@link String } + */ + public void setOutcomeDetailMessage(String value) { + this.outcomeDetailMessage = value; + } + + /** + * Gets the value of the eventDetailData property. + * + * @return possible object is {@link String } + */ + public String getEventDetailData() { + return eventDetailData; + } + + /** + * Sets the value of the eventDetailData property. + * + * @param value allowed object is {@link String } + */ + public void setEventDetailData(String value) { + this.eventDetailData = value; + } + + /** + * Permet d'étendre de nouveaux types d'évenéments.Gets the value of the eventAbstract 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 eventAbstract property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getEventAbstract().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link Object } + * + * @return the event abstract + */ + public List getEventAbstract() { + if (eventAbstract == null) { + eventAbstract = new ArrayList(); + } + return this.eventAbstract; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FileInfoType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FileInfoType.java index bf03bf8..9fe70a1 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FileInfoType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FileInfoType.java @@ -1,23 +1,21 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; - import javax.xml.datatype.XMLGregorianCalendar; /** * Informations sur le fichier lui-même (d'un point de vue technique). * - *

- * Java class for FileInfoType complex type. + *

Java class for FileInfoType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="FileInfoType">
@@ -38,179 +36,172 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "FileInfoType", propOrder = { - "filename", - "creatingApplicationName", - "creatingApplicationVersion", - "dateCreatedByApplication", - "creatingOs", - "creatingOsVersion", - "lastModified" -}) +@XmlType( + name = "FileInfoType", + propOrder = { + "filename", + "creatingApplicationName", + "creatingApplicationVersion", + "dateCreatedByApplication", + "creatingOs", + "creatingOsVersion", + "lastModified" + }) public class FileInfoType { - /** - * The Filename. - */ - @XmlElement(name = "Filename", required = true) - protected String filename; - /** - * The Creating application name. - */ - @XmlElement(name = "CreatingApplicationName") - protected String creatingApplicationName; - /** - * The Creating application version. - */ - @XmlElement(name = "CreatingApplicationVersion") - protected String creatingApplicationVersion; - /** - * The Date created by application. - */ - @XmlElement(name = "DateCreatedByApplication") - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar dateCreatedByApplication; - /** - * The Creating os. - */ - @XmlElement(name = "CreatingOs") - protected String creatingOs; - /** - * The Creating os version. - */ - @XmlElement(name = "CreatingOsVersion") - protected String creatingOsVersion; - /** - * The Last modified. - */ - @XmlElement(name = "LastModified") - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar lastModified; - - /** - * Gets the value of the filename property. - * - * @return possible object is {@link String } - */ - public String getFilename() { - return filename; - } - - /** - * Sets the value of the filename property. - * - * @param value allowed object is {@link String } - */ - public void setFilename(String value) { - this.filename = value; - } - - /** - * Gets the value of the creatingApplicationName property. - * - * @return possible object is {@link String } - */ - public String getCreatingApplicationName() { - return creatingApplicationName; - } - - /** - * Sets the value of the creatingApplicationName property. - * - * @param value allowed object is {@link String } - */ - public void setCreatingApplicationName(String value) { - this.creatingApplicationName = value; - } - - /** - * Gets the value of the creatingApplicationVersion property. - * - * @return possible object is {@link String } - */ - public String getCreatingApplicationVersion() { - return creatingApplicationVersion; - } - - /** - * Sets the value of the creatingApplicationVersion property. - * - * @param value allowed object is {@link String } - */ - public void setCreatingApplicationVersion(String value) { - this.creatingApplicationVersion = value; - } - - /** - * Gets the value of the dateCreatedByApplication property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getDateCreatedByApplication() { - return dateCreatedByApplication; - } - - /** - * Sets the value of the dateCreatedByApplication property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setDateCreatedByApplication(XMLGregorianCalendar value) { - this.dateCreatedByApplication = value; - } - - /** - * Gets the value of the creatingOs property. - * - * @return possible object is {@link String } - */ - public String getCreatingOs() { - return creatingOs; - } - - /** - * Sets the value of the creatingOs property. - * - * @param value allowed object is {@link String } - */ - public void setCreatingOs(String value) { - this.creatingOs = value; - } - - /** - * Gets the value of the creatingOsVersion property. - * - * @return possible object is {@link String } - */ - public String getCreatingOsVersion() { - return creatingOsVersion; - } - - /** - * Sets the value of the creatingOsVersion property. - * - * @param value allowed object is {@link String } - */ - public void setCreatingOsVersion(String value) { - this.creatingOsVersion = value; - } - - /** - * Gets the value of the lastModified property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getLastModified() { - return lastModified; - } - - /** - * Sets the value of the lastModified property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setLastModified(XMLGregorianCalendar value) { - this.lastModified = value; - } - + /** The Filename. */ + @XmlElement(name = "Filename", required = true) + protected String filename; + + /** The Creating application name. */ + @XmlElement(name = "CreatingApplicationName") + protected String creatingApplicationName; + + /** The Creating application version. */ + @XmlElement(name = "CreatingApplicationVersion") + protected String creatingApplicationVersion; + + /** The Date created by application. */ + @XmlElement(name = "DateCreatedByApplication") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar dateCreatedByApplication; + + /** The Creating os. */ + @XmlElement(name = "CreatingOs") + protected String creatingOs; + + /** The Creating os version. */ + @XmlElement(name = "CreatingOsVersion") + protected String creatingOsVersion; + + /** The Last modified. */ + @XmlElement(name = "LastModified") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar lastModified; + + /** + * Gets the value of the filename property. + * + * @return possible object is {@link String } + */ + public String getFilename() { + return filename; + } + + /** + * Sets the value of the filename property. + * + * @param value allowed object is {@link String } + */ + public void setFilename(String value) { + this.filename = value; + } + + /** + * Gets the value of the creatingApplicationName property. + * + * @return possible object is {@link String } + */ + public String getCreatingApplicationName() { + return creatingApplicationName; + } + + /** + * Sets the value of the creatingApplicationName property. + * + * @param value allowed object is {@link String } + */ + public void setCreatingApplicationName(String value) { + this.creatingApplicationName = value; + } + + /** + * Gets the value of the creatingApplicationVersion property. + * + * @return possible object is {@link String } + */ + public String getCreatingApplicationVersion() { + return creatingApplicationVersion; + } + + /** + * Sets the value of the creatingApplicationVersion property. + * + * @param value allowed object is {@link String } + */ + public void setCreatingApplicationVersion(String value) { + this.creatingApplicationVersion = value; + } + + /** + * Gets the value of the dateCreatedByApplication property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getDateCreatedByApplication() { + return dateCreatedByApplication; + } + + /** + * Sets the value of the dateCreatedByApplication property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setDateCreatedByApplication(XMLGregorianCalendar value) { + this.dateCreatedByApplication = value; + } + + /** + * Gets the value of the creatingOs property. + * + * @return possible object is {@link String } + */ + public String getCreatingOs() { + return creatingOs; + } + + /** + * Sets the value of the creatingOs property. + * + * @param value allowed object is {@link String } + */ + public void setCreatingOs(String value) { + this.creatingOs = value; + } + + /** + * Gets the value of the creatingOsVersion property. + * + * @return possible object is {@link String } + */ + public String getCreatingOsVersion() { + return creatingOsVersion; + } + + /** + * Sets the value of the creatingOsVersion property. + * + * @param value allowed object is {@link String } + */ + public void setCreatingOsVersion(String value) { + this.creatingOsVersion = value; + } + + /** + * Gets the value of the lastModified property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getLastModified() { + return lastModified; + } + + /** + * Sets the value of the lastModified property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setLastModified(XMLGregorianCalendar value) { + this.lastModified = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FinalActionAppraisalCodeType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FinalActionAppraisalCodeType.java index 6f03313..74ba462 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FinalActionAppraisalCodeType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FinalActionAppraisalCodeType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,61 +12,51 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for FinalActionAppraisalCodeType. * - *

- * The following schema fragment specifies the expected content contained within this class. - *

- * < - * pre> - * <simpleType name="FinalActionAppraisalCodeType"> <restriction - * base="{fr:gouv:culture:archivesdefrance:seda:v2.1}NonEmptyTokenType"> <enumeration value="Keep"/> <enumeration - * value="Destroy"/> </restriction> </simpleType> - * + *

The following schema fragment specifies the expected content contained within this class. + * + *

< pre> <simpleType name="FinalActionAppraisalCodeType"> <restriction + * base="{fr:gouv:culture:archivesdefrance:seda:v2.1}NonEmptyTokenType"> <enumeration + * value="Keep"/> <enumeration value="Destroy"/> </restriction> </simpleType> */ @XmlType(name = "FinalActionAppraisalCodeType") @XmlEnum public enum FinalActionAppraisalCodeType { - /** - * Keep final action appraisal code type. - */ - @XmlEnumValue("Keep") - KEEP("Keep"), - /** - * Destroy final action appraisal code type. - */ - @XmlEnumValue("Destroy") - DESTROY("Destroy"); - private final String value; + /** Keep final action appraisal code type. */ + @XmlEnumValue("Keep") + KEEP("Keep"), + /** Destroy final action appraisal code type. */ + @XmlEnumValue("Destroy") + DESTROY("Destroy"); + private final String value; - FinalActionAppraisalCodeType(String v) { - value = v; - } + FinalActionAppraisalCodeType(String v) { + value = v; + } - /** - * Value string. - * - * @return the string - */ - public String value() { - return value; - } + /** + * Value string. + * + * @return the string + */ + public String value() { + return value; + } - /** - * From value final action appraisal code type. - * - * @param v the v - * @return the final action appraisal code type - */ - public static FinalActionAppraisalCodeType fromValue(String v) { - for (FinalActionAppraisalCodeType c : FinalActionAppraisalCodeType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** + * From value final action appraisal code type. + * + * @param v the v + * @return the final action appraisal code type + */ + public static FinalActionAppraisalCodeType fromValue(String v) { + for (FinalActionAppraisalCodeType c : FinalActionAppraisalCodeType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FinalActionStorageCodeType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FinalActionStorageCodeType.java index 969ccab..0da23a7 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FinalActionStorageCodeType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FinalActionStorageCodeType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,66 +12,55 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for FinalActionStorageCodeType. * - *

- * The following schema fragment specifies the expected content contained within this class. - *

- * < - * pre> - * <simpleType name="FinalActionStorageCodeType"> <restriction - * base="{fr:gouv:culture:archivesdefrance:seda:v2.1}NonEmptyTokenType"> <enumeration value="RestrictAccess"/> - * <enumeration value="Transfer"/> <enumeration value="Copy"/> </restriction> </simpleType> - * + *

The following schema fragment specifies the expected content contained within this class. + * + *

< pre> <simpleType name="FinalActionStorageCodeType"> <restriction + * base="{fr:gouv:culture:archivesdefrance:seda:v2.1}NonEmptyTokenType"> <enumeration + * value="RestrictAccess"/> <enumeration value="Transfer"/> <enumeration value="Copy"/> + * </restriction> </simpleType> */ @XmlType(name = "FinalActionStorageCodeType") @XmlEnum public enum FinalActionStorageCodeType { - /** - * Restrict access final action storage code type. - */ - @XmlEnumValue("RestrictAccess") - RESTRICT_ACCESS("RestrictAccess"), - /** - * Transfer final action storage code type. - */ - @XmlEnumValue("Transfer") - TRANSFER("Transfer"), - /** - * Copy final action storage code type. - */ - @XmlEnumValue("Copy") - COPY("Copy"); - private final String value; + /** Restrict access final action storage code type. */ + @XmlEnumValue("RestrictAccess") + RESTRICT_ACCESS("RestrictAccess"), + /** Transfer final action storage code type. */ + @XmlEnumValue("Transfer") + TRANSFER("Transfer"), + /** Copy final action storage code type. */ + @XmlEnumValue("Copy") + COPY("Copy"); + private final String value; - FinalActionStorageCodeType(String v) { - value = v; - } + FinalActionStorageCodeType(String v) { + value = v; + } - /** - * Value string. - * - * @return the string - */ - public String value() { - return value; - } + /** + * Value string. + * + * @return the string + */ + public String value() { + return value; + } - /** - * From value final action storage code type. - * - * @param v the v - * @return the final action storage code type - */ - public static FinalActionStorageCodeType fromValue(String v) { - for (FinalActionStorageCodeType c : FinalActionStorageCodeType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** + * From value final action storage code type. + * + * @param v the v + * @return the final action storage code type + */ + public static FinalActionStorageCodeType fromValue(String v) { + for (FinalActionStorageCodeType c : FinalActionStorageCodeType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FormatIdentificationType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FormatIdentificationType.java index 218b096..68121fb 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FormatIdentificationType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/FormatIdentificationType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for FormatIdentificationType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="FormatIdentificationType">
@@ -33,111 +32,102 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "FormatIdentificationType", propOrder = { - "formatLitteral", - "mimeType", - "formatId", - "encoding" -}) +@XmlType( + name = "FormatIdentificationType", + propOrder = {"formatLitteral", "mimeType", "formatId", "encoding"}) public class FormatIdentificationType { - /** - * The Format litteral. - */ - @XmlElement(name = "FormatLitteral") - protected String formatLitteral; - /** - * The Mime type. - */ - @XmlElement(name = "MimeType") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String mimeType; - /** - * The Format id. - */ - @XmlElement(name = "FormatId") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String formatId; - /** - * The Encoding. - */ - @XmlElement(name = "Encoding") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String encoding; + /** The Format litteral. */ + @XmlElement(name = "FormatLitteral") + protected String formatLitteral; - /** - * Gets the value of the formatLitteral property. - * - * @return possible object is {@link String } - */ - public String getFormatLitteral() { - return formatLitteral; - } + /** The Mime type. */ + @XmlElement(name = "MimeType") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String mimeType; - /** - * Sets the value of the formatLitteral property. - * - * @param value allowed object is {@link String } - */ - public void setFormatLitteral(String value) { - this.formatLitteral = value; - } + /** The Format id. */ + @XmlElement(name = "FormatId") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String formatId; - /** - * Gets the value of the mimeType property. - * - * @return possible object is {@link String } - */ - public String getMimeType() { - return mimeType; - } + /** The Encoding. */ + @XmlElement(name = "Encoding") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String encoding; - /** - * Sets the value of the mimeType property. - * - * @param value allowed object is {@link String } - */ - public void setMimeType(String value) { - this.mimeType = value; - } + /** + * Gets the value of the formatLitteral property. + * + * @return possible object is {@link String } + */ + public String getFormatLitteral() { + return formatLitteral; + } - /** - * Gets the value of the formatId property. - * - * @return possible object is {@link String } - */ - public String getFormatId() { - return formatId; - } + /** + * Sets the value of the formatLitteral property. + * + * @param value allowed object is {@link String } + */ + public void setFormatLitteral(String value) { + this.formatLitteral = value; + } - /** - * Sets the value of the formatId property. - * - * @param value allowed object is {@link String } - */ - public void setFormatId(String value) { - this.formatId = value; - } + /** + * Gets the value of the mimeType property. + * + * @return possible object is {@link String } + */ + public String getMimeType() { + return mimeType; + } - /** - * Gets the value of the encoding property. - * - * @return possible object is {@link String } - */ - public String getEncoding() { - return encoding; - } + /** + * Sets the value of the mimeType property. + * + * @param value allowed object is {@link String } + */ + public void setMimeType(String value) { + this.mimeType = value; + } - /** - * Sets the value of the encoding property. - * - * @param value allowed object is {@link String } - */ - public void setEncoding(String value) { - this.encoding = value; - } + /** + * Gets the value of the formatId property. + * + * @return possible object is {@link String } + */ + public String getFormatId() { + return formatId; + } + /** + * Sets the value of the formatId property. + * + * @param value allowed object is {@link String } + */ + public void setFormatId(String value) { + this.formatId = value; + } + + /** + * Gets the value of the encoding property. + * + * @return possible object is {@link String } + */ + public String getEncoding() { + return encoding; + } + + /** + * Sets the value of the encoding property. + * + * @param value allowed object is {@link String } + */ + public void setEncoding(String value) { + this.encoding = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/GpsType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/GpsType.java index aec903d..5ab2ae7 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/GpsType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/GpsType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -10,15 +11,12 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.math.BigInteger; /** - *

* Java class for GpsType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="GpsType">
@@ -40,201 +38,193 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "GpsType", propOrder = { - "gpsVersionID", - "gpsAltitude", - "gpsAltitudeRef", - "gpsLatitude", - "gpsLatitudeRef", - "gpsLongitude", - "gpsLongitudeRef", - "gpsDateStamp" -}) +@XmlType( + name = "GpsType", + propOrder = { + "gpsVersionID", + "gpsAltitude", + "gpsAltitudeRef", + "gpsLatitude", + "gpsLatitudeRef", + "gpsLongitude", + "gpsLongitudeRef", + "gpsDateStamp" + }) public class GpsType { - /** - * The Gps version id. - */ - @XmlElement(name = "GpsVersionID") - protected String gpsVersionID; - /** - * The Gps altitude. - */ - @XmlElement(name = "GpsAltitude") - protected BigInteger gpsAltitude; - /** - * The Gps altitude ref. - */ - @XmlElement(name = "GpsAltitudeRef") - protected String gpsAltitudeRef; - /** - * The Gps latitude. - */ - @XmlElement(name = "GpsLatitude") - protected String gpsLatitude; - /** - * The Gps latitude ref. - */ - @XmlElement(name = "GpsLatitudeRef") - protected String gpsLatitudeRef; - /** - * The Gps longitude. - */ - @XmlElement(name = "GpsLongitude") - protected String gpsLongitude; - /** - * The Gps longitude ref. - */ - @XmlElement(name = "GpsLongitudeRef") - protected String gpsLongitudeRef; - /** - * The Gps date stamp. - */ - @XmlElement(name = "GpsDateStamp") - protected String gpsDateStamp; - - /** - * Gets the value of the gpsVersionID property. - * - * @return possible object is {@link String } - */ - public String getGpsVersionID() { - return gpsVersionID; - } - - /** - * Sets the value of the gpsVersionID property. - * - * @param value allowed object is {@link String } - */ - public void setGpsVersionID(String value) { - this.gpsVersionID = value; - } - - /** - * Gets the value of the gpsAltitude property. - * - * @return possible object is {@link BigInteger } - */ - public BigInteger getGpsAltitude() { - return gpsAltitude; - } - - /** - * Sets the value of the gpsAltitude property. - * - * @param value allowed object is {@link BigInteger } - */ - public void setGpsAltitude(BigInteger value) { - this.gpsAltitude = value; - } - - /** - * Gets the value of the gpsAltitudeRef property. - * - * @return possible object is {@link String } - */ - public String getGpsAltitudeRef() { - return gpsAltitudeRef; - } - - /** - * Sets the value of the gpsAltitudeRef property. - * - * @param value allowed object is {@link String } - */ - public void setGpsAltitudeRef(String value) { - this.gpsAltitudeRef = value; - } - - /** - * Gets the value of the gpsLatitude property. - * - * @return possible object is {@link String } - */ - public String getGpsLatitude() { - return gpsLatitude; - } - - /** - * Sets the value of the gpsLatitude property. - * - * @param value allowed object is {@link String } - */ - public void setGpsLatitude(String value) { - this.gpsLatitude = value; - } - - /** - * Gets the value of the gpsLatitudeRef property. - * - * @return possible object is {@link String } - */ - public String getGpsLatitudeRef() { - return gpsLatitudeRef; - } - - /** - * Sets the value of the gpsLatitudeRef property. - * - * @param value allowed object is {@link String } - */ - public void setGpsLatitudeRef(String value) { - this.gpsLatitudeRef = value; - } - - /** - * Gets the value of the gpsLongitude property. - * - * @return possible object is {@link String } - */ - public String getGpsLongitude() { - return gpsLongitude; - } - - /** - * Sets the value of the gpsLongitude property. - * - * @param value allowed object is {@link String } - */ - public void setGpsLongitude(String value) { - this.gpsLongitude = value; - } - - /** - * Gets the value of the gpsLongitudeRef property. - * - * @return possible object is {@link String } - */ - public String getGpsLongitudeRef() { - return gpsLongitudeRef; - } - - /** - * Sets the value of the gpsLongitudeRef property. - * - * @param value allowed object is {@link String } - */ - public void setGpsLongitudeRef(String value) { - this.gpsLongitudeRef = value; - } - - /** - * Gets the value of the gpsDateStamp property. - * - * @return possible object is {@link String } - */ - public String getGpsDateStamp() { - return gpsDateStamp; - } - - /** - * Sets the value of the gpsDateStamp property. - * - * @param value allowed object is {@link String } - */ - public void setGpsDateStamp(String value) { - this.gpsDateStamp = value; - } - + /** The Gps version id. */ + @XmlElement(name = "GpsVersionID") + protected String gpsVersionID; + + /** The Gps altitude. */ + @XmlElement(name = "GpsAltitude") + protected BigInteger gpsAltitude; + + /** The Gps altitude ref. */ + @XmlElement(name = "GpsAltitudeRef") + protected String gpsAltitudeRef; + + /** The Gps latitude. */ + @XmlElement(name = "GpsLatitude") + protected String gpsLatitude; + + /** The Gps latitude ref. */ + @XmlElement(name = "GpsLatitudeRef") + protected String gpsLatitudeRef; + + /** The Gps longitude. */ + @XmlElement(name = "GpsLongitude") + protected String gpsLongitude; + + /** The Gps longitude ref. */ + @XmlElement(name = "GpsLongitudeRef") + protected String gpsLongitudeRef; + + /** The Gps date stamp. */ + @XmlElement(name = "GpsDateStamp") + protected String gpsDateStamp; + + /** + * Gets the value of the gpsVersionID property. + * + * @return possible object is {@link String } + */ + public String getGpsVersionID() { + return gpsVersionID; + } + + /** + * Sets the value of the gpsVersionID property. + * + * @param value allowed object is {@link String } + */ + public void setGpsVersionID(String value) { + this.gpsVersionID = value; + } + + /** + * Gets the value of the gpsAltitude property. + * + * @return possible object is {@link BigInteger } + */ + public BigInteger getGpsAltitude() { + return gpsAltitude; + } + + /** + * Sets the value of the gpsAltitude property. + * + * @param value allowed object is {@link BigInteger } + */ + public void setGpsAltitude(BigInteger value) { + this.gpsAltitude = value; + } + + /** + * Gets the value of the gpsAltitudeRef property. + * + * @return possible object is {@link String } + */ + public String getGpsAltitudeRef() { + return gpsAltitudeRef; + } + + /** + * Sets the value of the gpsAltitudeRef property. + * + * @param value allowed object is {@link String } + */ + public void setGpsAltitudeRef(String value) { + this.gpsAltitudeRef = value; + } + + /** + * Gets the value of the gpsLatitude property. + * + * @return possible object is {@link String } + */ + public String getGpsLatitude() { + return gpsLatitude; + } + + /** + * Sets the value of the gpsLatitude property. + * + * @param value allowed object is {@link String } + */ + public void setGpsLatitude(String value) { + this.gpsLatitude = value; + } + + /** + * Gets the value of the gpsLatitudeRef property. + * + * @return possible object is {@link String } + */ + public String getGpsLatitudeRef() { + return gpsLatitudeRef; + } + + /** + * Sets the value of the gpsLatitudeRef property. + * + * @param value allowed object is {@link String } + */ + public void setGpsLatitudeRef(String value) { + this.gpsLatitudeRef = value; + } + + /** + * Gets the value of the gpsLongitude property. + * + * @return possible object is {@link String } + */ + public String getGpsLongitude() { + return gpsLongitude; + } + + /** + * Sets the value of the gpsLongitude property. + * + * @param value allowed object is {@link String } + */ + public void setGpsLongitude(String value) { + this.gpsLongitude = value; + } + + /** + * Gets the value of the gpsLongitudeRef property. + * + * @return possible object is {@link String } + */ + public String getGpsLongitudeRef() { + return gpsLongitudeRef; + } + + /** + * Sets the value of the gpsLongitudeRef property. + * + * @param value allowed object is {@link String } + */ + public void setGpsLongitudeRef(String value) { + this.gpsLongitudeRef = value; + } + + /** + * Gets the value of the gpsDateStamp property. + * + * @return possible object is {@link String } + */ + public String getGpsDateStamp() { + return gpsDateStamp; + } + + /** + * Sets the value of the gpsDateStamp property. + * + * @param value allowed object is {@link String } + */ + public void setGpsDateStamp(String value) { + this.gpsDateStamp = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/IdentifierType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/IdentifierType.java index 43f6ee1..0bdfc5e 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/IdentifierType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/IdentifierType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for IdentifierType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="IdentifierType">
@@ -34,204 +33,194 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "IdentifierType", propOrder = { - "value" -}) +@XmlType( + name = "IdentifierType", + propOrder = {"value"}) public class IdentifierType { - /** - * The Value. - */ - @XmlValue - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String value; - /** - * The Scheme id. - */ - @XmlAttribute(name = "schemeID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String schemeID; - /** - * The Scheme name. - */ - @XmlAttribute(name = "schemeName") - protected String schemeName; - /** - * The Scheme agency id. - */ - @XmlAttribute(name = "schemeAgencyID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String schemeAgencyID; - /** - * The Scheme agency name. - */ - @XmlAttribute(name = "schemeAgencyName") - protected String schemeAgencyName; - /** - * The Scheme version id. - */ - @XmlAttribute(name = "schemeVersionID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String schemeVersionID; - /** - * The Scheme data uri. - */ - @XmlAttribute(name = "schemeDataURI") - @XmlSchemaType(name = "anyURI") - protected String schemeDataURI; - /** - * The Scheme uri. - */ - @XmlAttribute(name = "schemeURI") - @XmlSchemaType(name = "anyURI") - protected String schemeURI; - - /** - * 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 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; - } - - /** - * Gets the value of the schemeAgencyID property. - * - * @return possible object is {@link String } - */ - public String getSchemeAgencyID() { - return schemeAgencyID; - } - - /** - * Sets the value of the schemeAgencyID property. - * - * @param value allowed object is {@link String } - */ - public void setSchemeAgencyID(String value) { - this.schemeAgencyID = value; - } - - /** - * Gets the value of the schemeAgencyName property. - * - * @return possible object is {@link String } - */ - public String getSchemeAgencyName() { - return schemeAgencyName; - } - - /** - * Sets the value of the schemeAgencyName property. - * - * @param value allowed object is {@link String } - */ - public void setSchemeAgencyName(String value) { - this.schemeAgencyName = value; - } - - /** - * Gets the value of the schemeVersionID property. - * - * @return possible object is {@link String } - */ - public String getSchemeVersionID() { - return schemeVersionID; - } - - /** - * Sets the value of the schemeVersionID property. - * - * @param value allowed object is {@link String } - */ - public void setSchemeVersionID(String value) { - this.schemeVersionID = value; - } - - /** - * Gets the value of the schemeDataURI property. - * - * @return possible object is {@link String } - */ - public String getSchemeDataURI() { - return schemeDataURI; - } - - /** - * Sets the value of the schemeDataURI property. - * - * @param value allowed object is {@link String } - */ - public void setSchemeDataURI(String value) { - this.schemeDataURI = value; - } - - /** - * Gets the value of the schemeURI property. - * - * @return possible object is {@link String } - */ - public String getSchemeURI() { - return schemeURI; - } - - /** - * Sets the value of the schemeURI property. - * - * @param value allowed object is {@link String } - */ - public void setSchemeURI(String value) { - this.schemeURI = value; - } - + /** The Value. */ + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String value; + + /** The Scheme id. */ + @XmlAttribute(name = "schemeID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String schemeID; + + /** The Scheme name. */ + @XmlAttribute(name = "schemeName") + protected String schemeName; + + /** The Scheme agency id. */ + @XmlAttribute(name = "schemeAgencyID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String schemeAgencyID; + + /** The Scheme agency name. */ + @XmlAttribute(name = "schemeAgencyName") + protected String schemeAgencyName; + + /** The Scheme version id. */ + @XmlAttribute(name = "schemeVersionID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String schemeVersionID; + + /** The Scheme data uri. */ + @XmlAttribute(name = "schemeDataURI") + @XmlSchemaType(name = "anyURI") + protected String schemeDataURI; + + /** The Scheme uri. */ + @XmlAttribute(name = "schemeURI") + @XmlSchemaType(name = "anyURI") + protected String schemeURI; + + /** + * 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 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; + } + + /** + * Gets the value of the schemeAgencyID property. + * + * @return possible object is {@link String } + */ + public String getSchemeAgencyID() { + return schemeAgencyID; + } + + /** + * Sets the value of the schemeAgencyID property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeAgencyID(String value) { + this.schemeAgencyID = value; + } + + /** + * Gets the value of the schemeAgencyName property. + * + * @return possible object is {@link String } + */ + public String getSchemeAgencyName() { + return schemeAgencyName; + } + + /** + * Sets the value of the schemeAgencyName property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeAgencyName(String value) { + this.schemeAgencyName = value; + } + + /** + * Gets the value of the schemeVersionID property. + * + * @return possible object is {@link String } + */ + public String getSchemeVersionID() { + return schemeVersionID; + } + + /** + * Sets the value of the schemeVersionID property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeVersionID(String value) { + this.schemeVersionID = value; + } + + /** + * Gets the value of the schemeDataURI property. + * + * @return possible object is {@link String } + */ + public String getSchemeDataURI() { + return schemeDataURI; + } + + /** + * Sets the value of the schemeDataURI property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeDataURI(String value) { + this.schemeDataURI = value; + } + + /** + * Gets the value of the schemeURI property. + * + * @return possible object is {@link String } + */ + public String getSchemeURI() { + return schemeURI; + } + + /** + * Sets the value of the schemeURI property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeURI(String value) { + this.schemeURI = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ImageTechnicalMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ImageTechnicalMetadataType.java index dce8418..f68d438 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ImageTechnicalMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ImageTechnicalMetadataType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -13,11 +14,9 @@ /** * Contient toutes les métadonnées techniques de base pour les objets-données de type image. * - *

- * Java class for ImageTechnicalMetadataType complex type. + *

Java class for ImageTechnicalMetadataType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ImageTechnicalMetadataType">
@@ -30,7 +29,4 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "ImageTechnicalMetadataType")
-public class ImageTechnicalMetadataType
-        extends OpenType {
-
-}
+public class ImageTechnicalMetadataType extends OpenType {}
diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/KeyType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/KeyType.java
index 12d0ab5..7820ce0 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/KeyType.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/KeyType.java
@@ -1,8 +1,9 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
 package fr.gouv.culture.archivesdefrance.seda.v21;
 
@@ -11,11 +12,9 @@
 import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 
 /**
- * 

* Java class for KeyType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="KeyType">
@@ -28,63 +27,57 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "KeyType", propOrder = { - "value" -}) +@XmlType( + name = "KeyType", + propOrder = {"value"}) public class KeyType { - /** - * The Value. - */ - @XmlValue - protected CodeKeywordType value; - /** - * The List version id. - */ - @XmlAttribute(name = "listVersionID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String listVersionID; + /** The Value. */ + @XmlValue protected CodeKeywordType value; - /** - * Table des types de mots-clés. - * - * @return possible object is {@link CodeKeywordType } - */ - public CodeKeywordType getValue() { - return value; - } + /** The List version id. */ + @XmlAttribute(name = "listVersionID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String listVersionID; - /** - * Sets the value of the value property. - * - * @param value allowed object is {@link CodeKeywordType } - */ - public void setValue(CodeKeywordType value) { - this.value = value; - } + /** + * Table des types de mots-clés. + * + * @return possible object is {@link CodeKeywordType } + */ + public CodeKeywordType getValue() { + return value; + } - /** - * Gets the value of the listVersionID property. - * - * @return possible object is {@link String } - */ - public String getListVersionID() { - if (listVersionID == null) { - return "edition 2009"; - } - else { - return listVersionID; - } - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link CodeKeywordType } + */ + public void setValue(CodeKeywordType value) { + this.value = value; + } - /** - * Sets the value of the listVersionID property. - * - * @param value allowed object is {@link String } - */ - public void setListVersionID(String value) { - this.listVersionID = value; + /** + * Gets the value of the listVersionID property. + * + * @return possible object is {@link String } + */ + public String getListVersionID() { + if (listVersionID == null) { + return "edition 2009"; + } else { + return listVersionID; } + } + /** + * Sets the value of the listVersionID property. + * + * @param value allowed object is {@link String } + */ + public void setListVersionID(String value) { + this.listVersionID = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/KeywordsType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/KeywordsType.java index df16aaa..77da7f2 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/KeywordsType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/KeywordsType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -13,11 +14,9 @@ /** * Mots-clés. * - *

- * Java class for KeywordsType complex type. + *

Java class for KeywordsType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="KeywordsType">
@@ -35,107 +34,99 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "KeywordsType", propOrder = { - "keywordContent", - "keywordReference", - "keywordType" -}) +@XmlType( + name = "KeywordsType", + propOrder = {"keywordContent", "keywordReference", "keywordType"}) public class KeywordsType { - /** - * The Keyword content. - */ - @XmlElement(name = "KeywordContent", required = true) - protected TextType keywordContent; - /** - * The Keyword reference. - */ - @XmlElement(name = "KeywordReference") - protected IdentifierType keywordReference; - /** - * The Keyword type. - */ - @XmlElement(name = "KeywordType") - protected KeyType keywordType; - /** - * The Id. - */ - @XmlAttribute(name = "id") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + /** The Keyword content. */ + @XmlElement(name = "KeywordContent", required = true) + protected TextType keywordContent; - /** - * Gets the value of the keywordContent property. - * - * @return possible object is {@link TextType } - */ - public TextType getKeywordContent() { - return keywordContent; - } + /** The Keyword reference. */ + @XmlElement(name = "KeywordReference") + protected IdentifierType keywordReference; - /** - * Sets the value of the keywordContent property. - * - * @param value allowed object is {@link TextType } - */ - public void setKeywordContent(TextType value) { - this.keywordContent = value; - } + /** The Keyword type. */ + @XmlElement(name = "KeywordType") + protected KeyType keywordType; - /** - * Gets the value of the keywordReference property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getKeywordReference() { - return keywordReference; - } + /** The Id. */ + @XmlAttribute(name = "id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Sets the value of the keywordReference property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setKeywordReference(IdentifierType value) { - this.keywordReference = value; - } + /** + * Gets the value of the keywordContent property. + * + * @return possible object is {@link TextType } + */ + public TextType getKeywordContent() { + return keywordContent; + } - /** - * Gets the value of the keywordType property. - * - * @return possible object is {@link KeyType } - */ - public KeyType getKeywordType() { - return keywordType; - } + /** + * Sets the value of the keywordContent property. + * + * @param value allowed object is {@link TextType } + */ + public void setKeywordContent(TextType value) { + this.keywordContent = value; + } - /** - * Sets the value of the keywordType property. - * - * @param value allowed object is {@link KeyType } - */ - public void setKeywordType(KeyType value) { - this.keywordType = value; - } + /** + * Gets the value of the keywordReference property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getKeywordReference() { + return keywordReference; + } - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** + * Sets the value of the keywordReference property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setKeywordReference(IdentifierType value) { + this.keywordReference = value; + } - /** - * 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 keywordType property. + * + * @return possible object is {@link KeyType } + */ + public KeyType getKeywordType() { + return keywordType; + } + /** + * Sets the value of the keywordType property. + * + * @param value allowed object is {@link KeyType } + */ + public void setKeywordType(KeyType value) { + this.keywordType = value; + } + + /** + * Gets the value of the id property. + * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link String } + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LegalStatusType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LegalStatusType.java index 9f67e6c..c4c84f8 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LegalStatusType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LegalStatusType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,66 +12,55 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for LegalStatusType. * - *

- * The following schema fragment specifies the expected content contained within this class. - *

- * < - * pre> - * <simpleType name="LegalStatusType"> <restriction base="{http://www.w3.org/2001/XMLSchema}token"> - * <enumeration value="Public Archive"/> <enumeration value="Private Archive"/> <enumeration value="Public and - * Private Archive"/> </restriction> </simpleType> - *

+ *

The following schema fragment specifies the expected content contained within this class. + * + *

< pre> <simpleType name="LegalStatusType"> <restriction + * base="{http://www.w3.org/2001/XMLSchema}token"> <enumeration value="Public Archive"/> + * <enumeration value="Private Archive"/> <enumeration value="Public and Private Archive"/> + * </restriction> </simpleType> */ @XmlType(name = "LegalStatusType") @XmlEnum public enum LegalStatusType { - /** - * The Public archive. - */ - @XmlEnumValue("Public Archive") - PUBLIC_ARCHIVE("Public Archive"), - /** - * The Private archive. - */ - @XmlEnumValue("Private Archive") - PRIVATE_ARCHIVE("Private Archive"), - /** - * The Public and private archive. - */ - @XmlEnumValue("Public and Private Archive") - PUBLIC_AND_PRIVATE_ARCHIVE("Public and Private Archive"); - private final String value; + /** The Public archive. */ + @XmlEnumValue("Public Archive") + PUBLIC_ARCHIVE("Public Archive"), + /** The Private archive. */ + @XmlEnumValue("Private Archive") + PRIVATE_ARCHIVE("Private Archive"), + /** The Public and private archive. */ + @XmlEnumValue("Public and Private Archive") + PUBLIC_AND_PRIVATE_ARCHIVE("Public and Private Archive"); + private final String value; - LegalStatusType(String v) { - value = v; - } + LegalStatusType(String v) { + value = v; + } - /** - * Value string. - * - * @return the string - */ - public String value() { - return value; - } + /** + * Value string. + * + * @return the string + */ + public String value() { + return value; + } - /** - * From value legal status type. - * - * @param v the v - * @return the legal status type - */ - public static LegalStatusType fromValue(String v) { - for (LegalStatusType c : LegalStatusType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** + * From value legal status type. + * + * @param v the v + * @return the legal status type + */ + public static LegalStatusType fromValue(String v) { + for (LegalStatusType c : LegalStatusType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LevelType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LevelType.java index a38e65f..77cfaf1 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LevelType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LevelType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,108 +12,82 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for LevelType. * - *

- * The following schema fragment specifies the expected content contained within this class. - *

- * < - * pre> - * <simpleType name="LevelType"> <restriction base="{http://www.w3.org/2001/XMLSchema}token"> <enumeration - * value="Fonds"/> <enumeration value="Subfonds"/> <enumeration value="Class"/> <enumeration - * value="Collection"/> <enumeration value="Series"/> <enumeration value="Subseries"/> <enumeration - * value="RecordGrp"/> <enumeration value="SubGrp"/> <enumeration value="File"/> <enumeration value="Item"/> - * <enumeration value="OtherLevel"/> </restriction> </simpleType> - * + *

The following schema fragment specifies the expected content contained within this class. + * + *

< pre> <simpleType name="LevelType"> <restriction + * base="{http://www.w3.org/2001/XMLSchema}token"> <enumeration value="Fonds"/> <enumeration + * value="Subfonds"/> <enumeration value="Class"/> <enumeration value="Collection"/> + * <enumeration value="Series"/> <enumeration value="Subseries"/> <enumeration + * value="RecordGrp"/> <enumeration value="SubGrp"/> <enumeration value="File"/> + * <enumeration value="Item"/> <enumeration value="OtherLevel"/> </restriction> + * </simpleType> */ @XmlType(name = "LevelType") @XmlEnum public enum LevelType { - /** - * Fonds level type. - */ - @XmlEnumValue("Fonds") - FONDS("Fonds"), - /** - * Subfonds level type. - */ - @XmlEnumValue("Subfonds") - SUBFONDS("Subfonds"), - /** - * Class level type. - */ - @XmlEnumValue("Class") - CLASS("Class"), - /** - * Collection level type. - */ - @XmlEnumValue("Collection") - COLLECTION("Collection"), - /** - * Series level type. - */ - @XmlEnumValue("Series") - SERIES("Series"), - /** - * Subseries level type. - */ - @XmlEnumValue("Subseries") - SUBSERIES("Subseries"), - /** - * Record grp level type. - */ - @XmlEnumValue("RecordGrp") - RECORD_GRP("RecordGrp"), - /** - * Sub grp level type. - */ - @XmlEnumValue("SubGrp") - SUB_GRP("SubGrp"), - /** - * File level type. - */ - @XmlEnumValue("File") - FILE("File"), - /** - * Item level type. - */ - @XmlEnumValue("Item") - ITEM("Item"), - /** - * Other level level type. - */ - @XmlEnumValue("OtherLevel") - OTHER_LEVEL("OtherLevel"); - private final String value; + /** Fonds level type. */ + @XmlEnumValue("Fonds") + FONDS("Fonds"), + /** Subfonds level type. */ + @XmlEnumValue("Subfonds") + SUBFONDS("Subfonds"), + /** Class level type. */ + @XmlEnumValue("Class") + CLASS("Class"), + /** Collection level type. */ + @XmlEnumValue("Collection") + COLLECTION("Collection"), + /** Series level type. */ + @XmlEnumValue("Series") + SERIES("Series"), + /** Subseries level type. */ + @XmlEnumValue("Subseries") + SUBSERIES("Subseries"), + /** Record grp level type. */ + @XmlEnumValue("RecordGrp") + RECORD_GRP("RecordGrp"), + /** Sub grp level type. */ + @XmlEnumValue("SubGrp") + SUB_GRP("SubGrp"), + /** File level type. */ + @XmlEnumValue("File") + FILE("File"), + /** Item level type. */ + @XmlEnumValue("Item") + ITEM("Item"), + /** Other level level type. */ + @XmlEnumValue("OtherLevel") + OTHER_LEVEL("OtherLevel"); + private final String value; - LevelType(String v) { - value = v; - } + LevelType(String v) { + value = v; + } - /** - * Value string. - * - * @return the string - */ - public String value() { - return value; - } + /** + * Value string. + * + * @return the string + */ + public String value() { + return value; + } - /** - * From value level type. - * - * @param v the v - * @return the level type - */ - public static LevelType fromValue(String v) { - for (LevelType c : LevelType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** + * From value level type. + * + * @param v the v + * @return the level type + */ + public static LevelType fromValue(String v) { + for (LevelType c : LevelType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LogBookOgType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LogBookOgType.java index 16f66c9..adbc265 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LogBookOgType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LogBookOgType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for LogBookOgType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="LogBookOgType">
@@ -34,43 +32,36 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "LogBookOgType", propOrder = { - "event" -}) +@XmlType( + name = "LogBookOgType", + propOrder = {"event"}) public class LogBookOgType { - /** - * The Event. - */ - @XmlElement(name = "Event") - protected List event; + /** The Event. */ + @XmlElement(name = "Event") + protected List event; - /** - * Gets the value of the event 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 event property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getEvent().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link EventLogBookOgType - * }* - * - * @return the event - */ - public List getEvent() { - if (event == null) { - event = new ArrayList(); - } - return this.event; + /** + * Gets the value of the event 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 event property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getEvent().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link EventLogBookOgType }* + * + * @return the event + */ + public List getEvent() { + if (event == null) { + event = new ArrayList(); } - + return this.event; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LogBookType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LogBookType.java index 5316c40..6fff16c 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LogBookType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/LogBookType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for LogBookType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="LogBookType">
@@ -34,43 +32,36 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "LogBookType", propOrder = { - "event" -}) +@XmlType( + name = "LogBookType", + propOrder = {"event"}) public class LogBookType { - /** - * The Event. - */ - @XmlElement(name = "Event", required = true) - protected List event; + /** The Event. */ + @XmlElement(name = "Event", required = true) + protected List event; - /** - * Gets the value of the event 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 event property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getEvent().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link EventType - * }* - * - * @return the event - */ - public List getEvent() { - if (event == null) { - event = new ArrayList(); - } - return this.event; + /** + * Gets the value of the event 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 event property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getEvent().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link EventType }* + * + * @return the event + */ + public List getEvent() { + if (event == null) { + event = new ArrayList(); } - + return this.event; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementHistoryDataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementHistoryDataType.java index cde0511..a6955b4 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementHistoryDataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementHistoryDataType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -14,12 +15,9 @@ /** * Référence à un objet-données ou à un groupe d'objets-données existant. * + *

Java class for ManagementHistoryDataType complex type. * - *

- * Java class for ManagementHistoryDataType complex type. - * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ManagementHistoryDataType">
@@ -35,57 +33,52 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ManagementHistoryDataType", propOrder = { - "version", - "management" -}) +@XmlType( + name = "ManagementHistoryDataType", + propOrder = {"version", "management"}) public class ManagementHistoryDataType { - /** - * The Version. - */ - @XmlElement(name = "Version", required = true) - protected String version; - /** - * The Management. - */ - @XmlElement(name = "Management") - protected ManagementType management; + /** The Version. */ + @XmlElement(name = "Version", required = true) + protected String version; - /** - * Gets the value of the version property. - * - * @return possible object is {@link String } - */ - public String getVersion() { - return version; - } + /** The Management. */ + @XmlElement(name = "Management") + protected ManagementType management; - /** - * Sets the value of the version property. - * - * @param value allowed object is {@link String } - */ - public void setVersion(String value) { - this.version = value; - } + /** + * Gets the value of the version property. + * + * @return possible object is {@link String } + */ + public String getVersion() { + return version; + } - /** - * Gets the value of the management property. - * - * @return possible object is {@link ManagementType } - */ - public ManagementType getManagement() { - return management; - } + /** + * Sets the value of the version property. + * + * @param value allowed object is {@link String } + */ + public void setVersion(String value) { + this.version = value; + } - /** - * Sets the value of the management property. - * - * @param value allowed object is {@link ManagementType } - */ - public void setManagement(ManagementType value) { - this.management = value; - } + /** + * Gets the value of the management property. + * + * @return possible object is {@link ManagementType } + */ + public ManagementType getManagement() { + return management; + } + /** + * Sets the value of the management property. + * + * @param value allowed object is {@link ManagementType } + */ + public void setManagement(ManagementType value) { + this.management = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementHistoryType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementHistoryType.java index 500bceb..224ccd0 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementHistoryType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementHistoryType.java @@ -1,24 +1,21 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; - import javax.xml.datatype.XMLGregorianCalendar; /** * Référence à un objet-données ou à un groupe d'objets-données existant. * + *

Java class for ManagementHistoryType complex type. * - *

- * Java class for ManagementHistoryType complex type. - * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ManagementHistoryType">
@@ -34,58 +31,53 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ManagementHistoryType", propOrder = { - "updateDate", - "data" -}) +@XmlType( + name = "ManagementHistoryType", + propOrder = {"updateDate", "data"}) public class ManagementHistoryType { - /** - * The Update date. - */ - @XmlElement(name = "UpdateDate", required = true) - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar updateDate; - /** - * The Data. - */ - @XmlElement(name = "Data", required = true) - protected ManagementHistoryDataType data; + /** The Update date. */ + @XmlElement(name = "UpdateDate", required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar updateDate; - /** - * Gets the value of the updateDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getUpdateDate() { - return updateDate; - } + /** The Data. */ + @XmlElement(name = "Data", required = true) + protected ManagementHistoryDataType data; - /** - * Sets the value of the updateDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setUpdateDate(XMLGregorianCalendar value) { - this.updateDate = value; - } + /** + * Gets the value of the updateDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getUpdateDate() { + return updateDate; + } - /** - * Gets the value of the data property. - * - * @return possible object is {@link ManagementHistoryDataType } - */ - public ManagementHistoryDataType getData() { - return data; - } + /** + * Sets the value of the updateDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setUpdateDate(XMLGregorianCalendar value) { + this.updateDate = value; + } - /** - * Sets the value of the data property. - * - * @param value allowed object is {@link ManagementHistoryDataType } - */ - public void setData(ManagementHistoryDataType value) { - this.data = value; - } + /** + * Gets the value of the data property. + * + * @return possible object is {@link ManagementHistoryDataType } + */ + public ManagementHistoryDataType getData() { + return data; + } + /** + * Sets the value of the data property. + * + * @param value allowed object is {@link ManagementHistoryDataType } + */ + public void setData(ManagementHistoryDataType value) { + this.data = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementMetadataType.java index 7c768f6..545470b 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementMetadataType.java @@ -1,25 +1,23 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; -import org.w3c.dom.Element; - import java.util.ArrayList; import java.util.List; +import org.w3c.dom.Element; /** - *

* Java class for ManagementMetadataType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ManagementMetadataType">
@@ -41,432 +39,412 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ManagementMetadataType", propOrder = { - "archivalProfile", - "serviceLevel", - "acquisitionInformation", - "legalStatus", - "originatingAgencyIdentifier", - "submissionAgencyIdentifier", - "storageRule", - "appraisalRule", - "accessRule", - "disseminationRule", - "reuseRule", - "classificationRule", - "logBook", - "needAuthorization", - "updateOperation", - "any" -}) +@XmlType( + name = "ManagementMetadataType", + propOrder = { + "archivalProfile", + "serviceLevel", + "acquisitionInformation", + "legalStatus", + "originatingAgencyIdentifier", + "submissionAgencyIdentifier", + "storageRule", + "appraisalRule", + "accessRule", + "disseminationRule", + "reuseRule", + "classificationRule", + "logBook", + "needAuthorization", + "updateOperation", + "any" + }) public class ManagementMetadataType { - /** - * The Archival profile. - */ - @XmlElement(name = "ArchivalProfile") - protected IdentifierType archivalProfile; - /** - * The Service level. - */ - @XmlElement(name = "ServiceLevel") - protected IdentifierType serviceLevel; - /** - * The Acquisition information. - */ - @XmlElement(name = "AcquisitionInformation") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String acquisitionInformation; - /** - * The Legal status. - */ - @XmlElement(name = "LegalStatus") - @XmlSchemaType(name = "token") - protected LegalStatusType legalStatus; - /** - * The Originating agency identifier. - */ - @XmlElement(name = "OriginatingAgencyIdentifier") - protected IdentifierType originatingAgencyIdentifier; - /** - * The Submission agency identifier. - */ - @XmlElement(name = "SubmissionAgencyIdentifier") - protected IdentifierType submissionAgencyIdentifier; - /** - * The Storage rule. - */ - @XmlElement(name = "StorageRule") - protected StorageRuleType storageRule; - /** - * The Appraisal rule. - */ - @XmlElement(name = "AppraisalRule") - protected AppraisalRuleType appraisalRule; - /** - * The Access rule. - */ - @XmlElement(name = "AccessRule") - protected AccessRuleType accessRule; - /** - * The Dissemination rule. - */ - @XmlElement(name = "DisseminationRule") - protected DisseminationRuleType disseminationRule; - /** - * The Reuse rule. - */ - @XmlElement(name = "ReuseRule") - protected ReuseRuleType reuseRule; - /** - * The Classification rule. - */ - @XmlElement(name = "ClassificationRule") - protected ClassificationRuleType classificationRule; - /** - * The Log book. - */ - @XmlElement(name = "LogBook") - protected LogBookType logBook; - /** - * The Need authorization. - */ - @XmlElement(name = "NeedAuthorization") - protected Boolean needAuthorization; - /** - * The Update operation. - */ - @XmlElement(name = "UpdateOperation") - protected UpdateOperationType updateOperation; - /** - * The Any. - */ - @XmlAnyElement(lax = true) - protected List any; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - - /** - * Gets the value of the archivalProfile property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getArchivalProfile() { - return archivalProfile; - } - - /** - * Sets the value of the archivalProfile property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setArchivalProfile(IdentifierType value) { - this.archivalProfile = value; - } - - /** - * Gets the value of the serviceLevel property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getServiceLevel() { - return serviceLevel; - } - - /** - * Sets the value of the serviceLevel property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setServiceLevel(IdentifierType value) { - this.serviceLevel = value; - } - - /** - * Gets the value of the acquisitionInformation property. - * - * @return possible object is {@link String } - */ - public String getAcquisitionInformation() { - return acquisitionInformation; - } - - /** - * Sets the value of the acquisitionInformation property. - * - * @param value allowed object is {@link String } - */ - public void setAcquisitionInformation(String value) { - this.acquisitionInformation = value; - } - - /** - * Gets the value of the legalStatus property. - * - * @return possible object is {@link LegalStatusType } - */ - public LegalStatusType getLegalStatus() { - return legalStatus; - } - - /** - * Sets the value of the legalStatus property. - * - * @param value allowed object is {@link LegalStatusType } - */ - public void setLegalStatus(LegalStatusType value) { - this.legalStatus = value; - } - - /** - * Gets the value of the originatingAgencyIdentifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getOriginatingAgencyIdentifier() { - return originatingAgencyIdentifier; - } - - /** - * Sets the value of the originatingAgencyIdentifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setOriginatingAgencyIdentifier(IdentifierType value) { - this.originatingAgencyIdentifier = value; - } - - /** - * Gets the value of the submissionAgencyIdentifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getSubmissionAgencyIdentifier() { - return submissionAgencyIdentifier; - } - - /** - * Sets the value of the submissionAgencyIdentifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setSubmissionAgencyIdentifier(IdentifierType value) { - this.submissionAgencyIdentifier = value; - } - - /** - * Gets the value of the storageRule property. - * - * @return possible object is {@link StorageRuleType } - */ - public StorageRuleType getStorageRule() { - return storageRule; - } - - /** - * Sets the value of the storageRule property. - * - * @param value allowed object is {@link StorageRuleType } - */ - public void setStorageRule(StorageRuleType value) { - this.storageRule = value; - } - - /** - * Gets the value of the appraisalRule property. - * - * @return possible object is {@link AppraisalRuleType } - */ - public AppraisalRuleType getAppraisalRule() { - return appraisalRule; - } - - /** - * Sets the value of the appraisalRule property. - * - * @param value allowed object is {@link AppraisalRuleType } - */ - public void setAppraisalRule(AppraisalRuleType value) { - this.appraisalRule = value; - } - - /** - * Gets the value of the accessRule property. - * - * @return possible object is {@link AccessRuleType } - */ - public AccessRuleType getAccessRule() { - return accessRule; - } - - /** - * Sets the value of the accessRule property. - * - * @param value allowed object is {@link AccessRuleType } - */ - public void setAccessRule(AccessRuleType value) { - this.accessRule = value; - } - - /** - * Gets the value of the disseminationRule property. - * - * @return possible object is {@link DisseminationRuleType } - */ - public DisseminationRuleType getDisseminationRule() { - return disseminationRule; - } - - /** - * Sets the value of the disseminationRule property. - * - * @param value allowed object is {@link DisseminationRuleType } - */ - public void setDisseminationRule(DisseminationRuleType value) { - this.disseminationRule = value; - } - - /** - * Gets the value of the reuseRule property. - * - * @return possible object is {@link ReuseRuleType } - */ - public ReuseRuleType getReuseRule() { - return reuseRule; - } - - /** - * Sets the value of the reuseRule property. - * - * @param value allowed object is {@link ReuseRuleType } - */ - public void setReuseRule(ReuseRuleType value) { - this.reuseRule = value; - } - - /** - * Gets the value of the classificationRule property. - * - * @return possible object is {@link ClassificationRuleType } - */ - public ClassificationRuleType getClassificationRule() { - return classificationRule; - } - - /** - * Sets the value of the classificationRule property. - * - * @param value allowed object is {@link ClassificationRuleType } - */ - public void setClassificationRule(ClassificationRuleType value) { - this.classificationRule = value; - } - - /** - * Gets the value of the logBook property. - * - * @return possible object is {@link LogBookType } - */ - public LogBookType getLogBook() { - return logBook; - } - - /** - * Sets the value of the logBook property. - * - * @param value allowed object is {@link LogBookType } - */ - public void setLogBook(LogBookType value) { - this.logBook = value; - } - - /** - * Gets the value of the needAuthorization property. - * - * @return possible object is {@link Boolean } - */ - public Boolean isNeedAuthorization() { - return needAuthorization; - } - - /** - * Sets the value of the needAuthorization property. - * - * @param value allowed object is {@link Boolean } - */ - public void setNeedAuthorization(Boolean value) { - this.needAuthorization = value; - } - - /** - * Gets the value of the updateOperation property. - * - * @return possible object is {@link UpdateOperationType } - */ - public UpdateOperationType getUpdateOperation() { - return updateOperation; - } - - /** - * Sets the value of the updateOperation property. - * - * @param value allowed object is {@link UpdateOperationType } - */ - public void setUpdateOperation(UpdateOperationType value) { - this.updateOperation = value; - } - - /** - * Gets the value of the any 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 any property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getAny().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list null null null null {@link Element } - * {@link Object } - * - * @return the any - */ - public List getAny() { - if (any == null) { - any = new ArrayList(); - } - return this.any; - } - - /** - * 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; - } - + /** The Archival profile. */ + @XmlElement(name = "ArchivalProfile") + protected IdentifierType archivalProfile; + + /** The Service level. */ + @XmlElement(name = "ServiceLevel") + protected IdentifierType serviceLevel; + + /** The Acquisition information. */ + @XmlElement(name = "AcquisitionInformation") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String acquisitionInformation; + + /** The Legal status. */ + @XmlElement(name = "LegalStatus") + @XmlSchemaType(name = "token") + protected LegalStatusType legalStatus; + + /** The Originating agency identifier. */ + @XmlElement(name = "OriginatingAgencyIdentifier") + protected IdentifierType originatingAgencyIdentifier; + + /** The Submission agency identifier. */ + @XmlElement(name = "SubmissionAgencyIdentifier") + protected IdentifierType submissionAgencyIdentifier; + + /** The Storage rule. */ + @XmlElement(name = "StorageRule") + protected StorageRuleType storageRule; + + /** The Appraisal rule. */ + @XmlElement(name = "AppraisalRule") + protected AppraisalRuleType appraisalRule; + + /** The Access rule. */ + @XmlElement(name = "AccessRule") + protected AccessRuleType accessRule; + + /** The Dissemination rule. */ + @XmlElement(name = "DisseminationRule") + protected DisseminationRuleType disseminationRule; + + /** The Reuse rule. */ + @XmlElement(name = "ReuseRule") + protected ReuseRuleType reuseRule; + + /** The Classification rule. */ + @XmlElement(name = "ClassificationRule") + protected ClassificationRuleType classificationRule; + + /** The Log book. */ + @XmlElement(name = "LogBook") + protected LogBookType logBook; + + /** The Need authorization. */ + @XmlElement(name = "NeedAuthorization") + protected Boolean needAuthorization; + + /** The Update operation. */ + @XmlElement(name = "UpdateOperation") + protected UpdateOperationType updateOperation; + + /** The Any. */ + @XmlAnyElement(lax = true) + protected List any; + + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Gets the value of the archivalProfile property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getArchivalProfile() { + return archivalProfile; + } + + /** + * Sets the value of the archivalProfile property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setArchivalProfile(IdentifierType value) { + this.archivalProfile = value; + } + + /** + * Gets the value of the serviceLevel property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getServiceLevel() { + return serviceLevel; + } + + /** + * Sets the value of the serviceLevel property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setServiceLevel(IdentifierType value) { + this.serviceLevel = value; + } + + /** + * Gets the value of the acquisitionInformation property. + * + * @return possible object is {@link String } + */ + public String getAcquisitionInformation() { + return acquisitionInformation; + } + + /** + * Sets the value of the acquisitionInformation property. + * + * @param value allowed object is {@link String } + */ + public void setAcquisitionInformation(String value) { + this.acquisitionInformation = value; + } + + /** + * Gets the value of the legalStatus property. + * + * @return possible object is {@link LegalStatusType } + */ + public LegalStatusType getLegalStatus() { + return legalStatus; + } + + /** + * Sets the value of the legalStatus property. + * + * @param value allowed object is {@link LegalStatusType } + */ + public void setLegalStatus(LegalStatusType value) { + this.legalStatus = value; + } + + /** + * Gets the value of the originatingAgencyIdentifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getOriginatingAgencyIdentifier() { + return originatingAgencyIdentifier; + } + + /** + * Sets the value of the originatingAgencyIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setOriginatingAgencyIdentifier(IdentifierType value) { + this.originatingAgencyIdentifier = value; + } + + /** + * Gets the value of the submissionAgencyIdentifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getSubmissionAgencyIdentifier() { + return submissionAgencyIdentifier; + } + + /** + * Sets the value of the submissionAgencyIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setSubmissionAgencyIdentifier(IdentifierType value) { + this.submissionAgencyIdentifier = value; + } + + /** + * Gets the value of the storageRule property. + * + * @return possible object is {@link StorageRuleType } + */ + public StorageRuleType getStorageRule() { + return storageRule; + } + + /** + * Sets the value of the storageRule property. + * + * @param value allowed object is {@link StorageRuleType } + */ + public void setStorageRule(StorageRuleType value) { + this.storageRule = value; + } + + /** + * Gets the value of the appraisalRule property. + * + * @return possible object is {@link AppraisalRuleType } + */ + public AppraisalRuleType getAppraisalRule() { + return appraisalRule; + } + + /** + * Sets the value of the appraisalRule property. + * + * @param value allowed object is {@link AppraisalRuleType } + */ + public void setAppraisalRule(AppraisalRuleType value) { + this.appraisalRule = value; + } + + /** + * Gets the value of the accessRule property. + * + * @return possible object is {@link AccessRuleType } + */ + public AccessRuleType getAccessRule() { + return accessRule; + } + + /** + * Sets the value of the accessRule property. + * + * @param value allowed object is {@link AccessRuleType } + */ + public void setAccessRule(AccessRuleType value) { + this.accessRule = value; + } + + /** + * Gets the value of the disseminationRule property. + * + * @return possible object is {@link DisseminationRuleType } + */ + public DisseminationRuleType getDisseminationRule() { + return disseminationRule; + } + + /** + * Sets the value of the disseminationRule property. + * + * @param value allowed object is {@link DisseminationRuleType } + */ + public void setDisseminationRule(DisseminationRuleType value) { + this.disseminationRule = value; + } + + /** + * Gets the value of the reuseRule property. + * + * @return possible object is {@link ReuseRuleType } + */ + public ReuseRuleType getReuseRule() { + return reuseRule; + } + + /** + * Sets the value of the reuseRule property. + * + * @param value allowed object is {@link ReuseRuleType } + */ + public void setReuseRule(ReuseRuleType value) { + this.reuseRule = value; + } + + /** + * Gets the value of the classificationRule property. + * + * @return possible object is {@link ClassificationRuleType } + */ + public ClassificationRuleType getClassificationRule() { + return classificationRule; + } + + /** + * Sets the value of the classificationRule property. + * + * @param value allowed object is {@link ClassificationRuleType } + */ + public void setClassificationRule(ClassificationRuleType value) { + this.classificationRule = value; + } + + /** + * Gets the value of the logBook property. + * + * @return possible object is {@link LogBookType } + */ + public LogBookType getLogBook() { + return logBook; + } + + /** + * Sets the value of the logBook property. + * + * @param value allowed object is {@link LogBookType } + */ + public void setLogBook(LogBookType value) { + this.logBook = value; + } + + /** + * Gets the value of the needAuthorization property. + * + * @return possible object is {@link Boolean } + */ + public Boolean isNeedAuthorization() { + return needAuthorization; + } + + /** + * Sets the value of the needAuthorization property. + * + * @param value allowed object is {@link Boolean } + */ + public void setNeedAuthorization(Boolean value) { + this.needAuthorization = value; + } + + /** + * Gets the value of the updateOperation property. + * + * @return possible object is {@link UpdateOperationType } + */ + public UpdateOperationType getUpdateOperation() { + return updateOperation; + } + + /** + * Sets the value of the updateOperation property. + * + * @param value allowed object is {@link UpdateOperationType } + */ + public void setUpdateOperation(UpdateOperationType value) { + this.updateOperation = value; + } + + /** + * Gets the value of the any 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 any property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getAny().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list null null null null {@link Element + * } {@link Object } + * + * @return the any + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * 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/fr/gouv/culture/archivesdefrance/seda/v21/ManagementType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementType.java index 3be62e2..4982648 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ManagementType.java @@ -1,23 +1,21 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; -import org.w3c.dom.Element; - import java.util.ArrayList; import java.util.List; +import org.w3c.dom.Element; /** - *

* Java class for ManagementType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ManagementType">
@@ -30,259 +28,246 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ManagementType", propOrder = { - "storageRule", - "appraisalRule", - "accessRule", - "disseminationRule", - "reuseRule", - "classificationRule", - "logBook", - "needAuthorization", - "updateOperation", - "any" -}) +@XmlType( + name = "ManagementType", + propOrder = { + "storageRule", + "appraisalRule", + "accessRule", + "disseminationRule", + "reuseRule", + "classificationRule", + "logBook", + "needAuthorization", + "updateOperation", + "any" + }) public class ManagementType { - /** - * The Storage rule. - */ - @XmlElement(name = "StorageRule") - protected StorageRuleType storageRule; - /** - * The Appraisal rule. - */ - @XmlElement(name = "AppraisalRule") - protected AppraisalRuleType appraisalRule; - /** - * The Access rule. - */ - @XmlElement(name = "AccessRule") - protected AccessRuleType accessRule; - /** - * The Dissemination rule. - */ - @XmlElement(name = "DisseminationRule") - protected DisseminationRuleType disseminationRule; - /** - * The Reuse rule. - */ - @XmlElement(name = "ReuseRule") - protected ReuseRuleType reuseRule; - /** - * The Classification rule. - */ - @XmlElement(name = "ClassificationRule") - protected ClassificationRuleType classificationRule; - /** - * The Log book. - */ - @XmlElement(name = "LogBook") - protected LogBookType logBook; - /** - * The Need authorization. - */ - @XmlElement(name = "NeedAuthorization") - protected Boolean needAuthorization; - /** - * The Update operation. - */ - @XmlElement(name = "UpdateOperation") - protected UpdateOperationType updateOperation; - /** - * The Any. - */ - @XmlAnyElement(lax = true) - protected List any; + /** The Storage rule. */ + @XmlElement(name = "StorageRule") + protected StorageRuleType storageRule; - /** - * Gets the value of the storageRule property. - * - * @return possible object is {@link StorageRuleType } - */ - public StorageRuleType getStorageRule() { - return storageRule; - } + /** The Appraisal rule. */ + @XmlElement(name = "AppraisalRule") + protected AppraisalRuleType appraisalRule; - /** - * Sets the value of the storageRule property. - * - * @param value allowed object is {@link StorageRuleType } - */ - public void setStorageRule(StorageRuleType value) { - this.storageRule = value; - } + /** The Access rule. */ + @XmlElement(name = "AccessRule") + protected AccessRuleType accessRule; - /** - * Gets the value of the appraisalRule property. - * - * @return possible object is {@link AppraisalRuleType } - */ - public AppraisalRuleType getAppraisalRule() { - return appraisalRule; - } + /** The Dissemination rule. */ + @XmlElement(name = "DisseminationRule") + protected DisseminationRuleType disseminationRule; - /** - * Sets the value of the appraisalRule property. - * - * @param value allowed object is {@link AppraisalRuleType } - */ - public void setAppraisalRule(AppraisalRuleType value) { - this.appraisalRule = value; - } + /** The Reuse rule. */ + @XmlElement(name = "ReuseRule") + protected ReuseRuleType reuseRule; - /** - * Gets the value of the accessRule property. - * - * @return possible object is {@link AccessRuleType } - */ - public AccessRuleType getAccessRule() { - return accessRule; - } + /** The Classification rule. */ + @XmlElement(name = "ClassificationRule") + protected ClassificationRuleType classificationRule; - /** - * Sets the value of the accessRule property. - * - * @param value allowed object is {@link AccessRuleType } - */ - public void setAccessRule(AccessRuleType value) { - this.accessRule = value; - } + /** The Log book. */ + @XmlElement(name = "LogBook") + protected LogBookType logBook; - /** - * Gets the value of the disseminationRule property. - * - * @return possible object is {@link DisseminationRuleType } - */ - public DisseminationRuleType getDisseminationRule() { - return disseminationRule; - } + /** The Need authorization. */ + @XmlElement(name = "NeedAuthorization") + protected Boolean needAuthorization; - /** - * Sets the value of the disseminationRule property. - * - * @param value allowed object is {@link DisseminationRuleType } - */ - public void setDisseminationRule(DisseminationRuleType value) { - this.disseminationRule = value; - } + /** The Update operation. */ + @XmlElement(name = "UpdateOperation") + protected UpdateOperationType updateOperation; - /** - * Gets the value of the reuseRule property. - * - * @return possible object is {@link ReuseRuleType } - */ - public ReuseRuleType getReuseRule() { - return reuseRule; - } + /** The Any. */ + @XmlAnyElement(lax = true) + protected List any; - /** - * Sets the value of the reuseRule property. - * - * @param value allowed object is {@link ReuseRuleType } - */ - public void setReuseRule(ReuseRuleType value) { - this.reuseRule = value; - } + /** + * Gets the value of the storageRule property. + * + * @return possible object is {@link StorageRuleType } + */ + public StorageRuleType getStorageRule() { + return storageRule; + } - /** - * Gets the value of the classificationRule property. - * - * @return possible object is {@link ClassificationRuleType } - */ - public ClassificationRuleType getClassificationRule() { - return classificationRule; - } + /** + * Sets the value of the storageRule property. + * + * @param value allowed object is {@link StorageRuleType } + */ + public void setStorageRule(StorageRuleType value) { + this.storageRule = value; + } - /** - * Sets the value of the classificationRule property. - * - * @param value allowed object is {@link ClassificationRuleType } - */ - public void setClassificationRule(ClassificationRuleType value) { - this.classificationRule = value; - } + /** + * Gets the value of the appraisalRule property. + * + * @return possible object is {@link AppraisalRuleType } + */ + public AppraisalRuleType getAppraisalRule() { + return appraisalRule; + } - /** - * Gets the value of the logBook property. - * - * @return possible object is {@link LogBookType } - */ - public LogBookType getLogBook() { - return logBook; - } + /** + * Sets the value of the appraisalRule property. + * + * @param value allowed object is {@link AppraisalRuleType } + */ + public void setAppraisalRule(AppraisalRuleType value) { + this.appraisalRule = value; + } - /** - * Sets the value of the logBook property. - * - * @param value allowed object is {@link LogBookType } - */ - public void setLogBook(LogBookType value) { - this.logBook = value; - } + /** + * Gets the value of the accessRule property. + * + * @return possible object is {@link AccessRuleType } + */ + public AccessRuleType getAccessRule() { + return accessRule; + } - /** - * Gets the value of the needAuthorization property. - * - * @return possible object is {@link Boolean } - */ - public Boolean isNeedAuthorization() { - return needAuthorization; - } + /** + * Sets the value of the accessRule property. + * + * @param value allowed object is {@link AccessRuleType } + */ + public void setAccessRule(AccessRuleType value) { + this.accessRule = value; + } - /** - * Sets the value of the needAuthorization property. - * - * @param value allowed object is {@link Boolean } - */ - public void setNeedAuthorization(Boolean value) { - this.needAuthorization = value; - } + /** + * Gets the value of the disseminationRule property. + * + * @return possible object is {@link DisseminationRuleType } + */ + public DisseminationRuleType getDisseminationRule() { + return disseminationRule; + } - /** - * Gets the value of the updateOperation property. - * - * @return possible object is {@link UpdateOperationType } - */ - public UpdateOperationType getUpdateOperation() { - return updateOperation; - } + /** + * Sets the value of the disseminationRule property. + * + * @param value allowed object is {@link DisseminationRuleType } + */ + public void setDisseminationRule(DisseminationRuleType value) { + this.disseminationRule = value; + } - /** - * Sets the value of the updateOperation property. - * - * @param value allowed object is {@link UpdateOperationType } - */ - public void setUpdateOperation(UpdateOperationType value) { - this.updateOperation = value; - } + /** + * Gets the value of the reuseRule property. + * + * @return possible object is {@link ReuseRuleType } + */ + public ReuseRuleType getReuseRule() { + return reuseRule; + } - /** - * Gets the value of the any 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 any property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getAny().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list null null null null {@link Element } - * {@link Object } - * - * @return the any - */ - public List getAny() { - if (any == null) { - any = new ArrayList(); - } - return this.any; - } + /** + * Sets the value of the reuseRule property. + * + * @param value allowed object is {@link ReuseRuleType } + */ + public void setReuseRule(ReuseRuleType value) { + this.reuseRule = value; + } + + /** + * Gets the value of the classificationRule property. + * + * @return possible object is {@link ClassificationRuleType } + */ + public ClassificationRuleType getClassificationRule() { + return classificationRule; + } + + /** + * Sets the value of the classificationRule property. + * + * @param value allowed object is {@link ClassificationRuleType } + */ + public void setClassificationRule(ClassificationRuleType value) { + this.classificationRule = value; + } + /** + * Gets the value of the logBook property. + * + * @return possible object is {@link LogBookType } + */ + public LogBookType getLogBook() { + return logBook; + } + + /** + * Sets the value of the logBook property. + * + * @param value allowed object is {@link LogBookType } + */ + public void setLogBook(LogBookType value) { + this.logBook = value; + } + + /** + * Gets the value of the needAuthorization property. + * + * @return possible object is {@link Boolean } + */ + public Boolean isNeedAuthorization() { + return needAuthorization; + } + + /** + * Sets the value of the needAuthorization property. + * + * @param value allowed object is {@link Boolean } + */ + public void setNeedAuthorization(Boolean value) { + this.needAuthorization = value; + } + + /** + * Gets the value of the updateOperation property. + * + * @return possible object is {@link UpdateOperationType } + */ + public UpdateOperationType getUpdateOperation() { + return updateOperation; + } + + /** + * Sets the value of the updateOperation property. + * + * @param value allowed object is {@link UpdateOperationType } + */ + public void setUpdateOperation(UpdateOperationType value) { + this.updateOperation = value; + } + + /** + * Gets the value of the any 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 any property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getAny().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list null null null null {@link Element + * } {@link Object } + * + * @return the any + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MeasurementType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MeasurementType.java index ce6eff9..880831b 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MeasurementType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MeasurementType.java @@ -1,21 +1,19 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; - import java.math.BigDecimal; /** - *

* Java class for MeasurementType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="MeasurementType">
@@ -28,56 +26,51 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "MeasurementType", propOrder = { - "value" -}) +@XmlType( + name = "MeasurementType", + propOrder = {"value"}) public class MeasurementType { - /** - * The Value. - */ - @XmlValue - protected BigDecimal value; - /** - * The Unit. - */ - @XmlAttribute(name = "unit", required = true) - protected String unit; + /** The Value. */ + @XmlValue protected BigDecimal value; - /** - * Gets the value of the value property. - * - * @return possible object is {@link BigDecimal } - */ - public BigDecimal getValue() { - return value; - } + /** The Unit. */ + @XmlAttribute(name = "unit", required = true) + protected String unit; - /** - * Sets the value of the value property. - * - * @param value allowed object is {@link BigDecimal } - */ - public void setValue(BigDecimal value) { - this.value = value; - } + /** + * Gets the value of the value property. + * + * @return possible object is {@link BigDecimal } + */ + public BigDecimal getValue() { + return value; + } - /** - * Gets the value of the unit property. - * - * @return possible object is {@link String } - */ - public String getUnit() { - return unit; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link BigDecimal } + */ + public void setValue(BigDecimal value) { + this.value = value; + } - /** - * Sets the value of the unit property. - * - * @param value allowed object is {@link String } - */ - public void setUnit(String value) { - this.unit = value; - } + /** + * Gets the value of the unit property. + * + * @return possible object is {@link String } + */ + public String getUnit() { + return unit; + } + /** + * Sets the value of the unit property. + * + * @param value allowed object is {@link String } + */ + public void setUnit(String value) { + this.unit = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MeasurementWeightType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MeasurementWeightType.java index fcf3f83..e11afa7 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MeasurementWeightType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MeasurementWeightType.java @@ -1,21 +1,19 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; - import java.math.BigDecimal; /** - *

* Java class for MeasurementWeightType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="MeasurementWeightType">
@@ -28,56 +26,51 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "MeasurementWeightType", propOrder = { - "value" -}) +@XmlType( + name = "MeasurementWeightType", + propOrder = {"value"}) public class MeasurementWeightType { - /** - * The Value. - */ - @XmlValue - protected BigDecimal value; - /** - * The Unit. - */ - @XmlAttribute(name = "unit", required = true) - protected MeasurementWeightUnitsType unit; + /** The Value. */ + @XmlValue protected BigDecimal value; - /** - * Gets the value of the value property. - * - * @return possible object is {@link BigDecimal } - */ - public BigDecimal getValue() { - return value; - } + /** The Unit. */ + @XmlAttribute(name = "unit", required = true) + protected MeasurementWeightUnitsType unit; - /** - * Sets the value of the value property. - * - * @param value allowed object is {@link BigDecimal } - */ - public void setValue(BigDecimal value) { - this.value = value; - } + /** + * Gets the value of the value property. + * + * @return possible object is {@link BigDecimal } + */ + public BigDecimal getValue() { + return value; + } - /** - * Gets the value of the unit property. - * - * @return possible object is {@link MeasurementWeightUnitsType } - */ - public MeasurementWeightUnitsType getUnit() { - return unit; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link BigDecimal } + */ + public void setValue(BigDecimal value) { + this.value = value; + } - /** - * Sets the value of the unit property. - * - * @param value allowed object is {@link MeasurementWeightUnitsType } - */ - public void setUnit(MeasurementWeightUnitsType value) { - this.unit = value; - } + /** + * Gets the value of the unit property. + * + * @return possible object is {@link MeasurementWeightUnitsType } + */ + public MeasurementWeightUnitsType getUnit() { + return unit; + } + /** + * Sets the value of the unit property. + * + * @param value allowed object is {@link MeasurementWeightUnitsType } + */ + public void setUnit(MeasurementWeightUnitsType value) { + this.unit = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MeasurementWeightUnitsType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MeasurementWeightUnitsType.java index 0da73bf..7fbb303 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MeasurementWeightUnitsType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MeasurementWeightUnitsType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,88 +12,67 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for MeasurementWeightUnitsType. * - *

- * The following schema fragment specifies the expected content contained within this class. - *

- * < - * pre> - * <simpleType name="MeasurementWeightUnitsType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> - * <enumeration value="microgram"/> <enumeration value="MC"/> <enumeration value="milligram"/> <enumeration - * value="MGM"/> <enumeration value="gram"/> <enumeration value="GRM"/> <enumeration value="kilogram"/> - * <enumeration value="KGM"/> </restriction> </simpleType> - * + *

The following schema fragment specifies the expected content contained within this class. + * + *

< pre> <simpleType name="MeasurementWeightUnitsType"> <restriction + * base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="microgram"/> + * <enumeration value="MC"/> <enumeration value="milligram"/> <enumeration value="MGM"/> + * <enumeration value="gram"/> <enumeration value="GRM"/> <enumeration value="kilogram"/> + * <enumeration value="KGM"/> </restriction> </simpleType> */ @XmlType(name = "MeasurementWeightUnitsType") @XmlEnum public enum MeasurementWeightUnitsType { - /** - * Microgram measurement weight units type. - */ - @XmlEnumValue("microgram") - MICROGRAM("microgram"), - /** - * Mc measurement weight units type. - */ - MC("MC"), - /** - * Milligram measurement weight units type. - */ - @XmlEnumValue("milligram") - MILLIGRAM("milligram"), - /** - * Mgm measurement weight units type. - */ - MGM("MGM"), - /** - * Gram measurement weight units type. - */ - @XmlEnumValue("gram") - GRAM("gram"), - /** - * Grm measurement weight units type. - */ - GRM("GRM"), - /** - * Kilogram measurement weight units type. - */ - @XmlEnumValue("kilogram") - KILOGRAM("kilogram"), - /** - * Kgm measurement weight units type. - */ - KGM("KGM"); - private final String value; + /** Microgram measurement weight units type. */ + @XmlEnumValue("microgram") + MICROGRAM("microgram"), + /** Mc measurement weight units type. */ + MC("MC"), + /** Milligram measurement weight units type. */ + @XmlEnumValue("milligram") + MILLIGRAM("milligram"), + /** Mgm measurement weight units type. */ + MGM("MGM"), + /** Gram measurement weight units type. */ + @XmlEnumValue("gram") + GRAM("gram"), + /** Grm measurement weight units type. */ + GRM("GRM"), + /** Kilogram measurement weight units type. */ + @XmlEnumValue("kilogram") + KILOGRAM("kilogram"), + /** Kgm measurement weight units type. */ + KGM("KGM"); + private final String value; - MeasurementWeightUnitsType(String v) { - value = v; - } + MeasurementWeightUnitsType(String v) { + value = v; + } - /** - * Value string. - * - * @return the string - */ - public String value() { - return value; - } + /** + * Value string. + * + * @return the string + */ + public String value() { + return value; + } - /** - * From value measurement weight units type. - * - * @param v the v - * @return the measurement weight units type - */ - public static MeasurementWeightUnitsType fromValue(String v) { - for (MeasurementWeightUnitsType c : MeasurementWeightUnitsType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** + * From value measurement weight units type. + * + * @param v the v + * @return the measurement weight units type + */ + public static MeasurementWeightUnitsType fromValue(String v) { + for (MeasurementWeightUnitsType c : MeasurementWeightUnitsType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MessageDigestBinaryObjectType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MessageDigestBinaryObjectType.java index 9bf3b2a..651bd70 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MessageDigestBinaryObjectType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MessageDigestBinaryObjectType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for MessageDigestBinaryObjectType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="MessageDigestBinaryObjectType">
@@ -28,57 +27,52 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "MessageDigestBinaryObjectType", propOrder = { - "value" -}) +@XmlType( + name = "MessageDigestBinaryObjectType", + propOrder = {"value"}) public class MessageDigestBinaryObjectType { - /** - * The Value. - */ - @XmlValue - protected String value; - /** - * The Algorithm. - */ - @XmlAttribute(name = "algorithm", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String algorithm; + /** The Value. */ + @XmlValue protected String value; - /** - * Représentation binaire : utilisation possible de base64 ou d'hexadécimal. - * - * @return possible object is {@link String } - */ - public String getValue() { - return value; - } + /** The Algorithm. */ + @XmlAttribute(name = "algorithm", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String algorithm; - /** - * Sets the value of the value property. - * - * @param value allowed object is {@link String } - */ - public void setValue(String value) { - this.value = value; - } + /** + * Représentation binaire : utilisation possible de base64 ou d'hexadécimal. + * + * @return possible object is {@link String } + */ + public String getValue() { + return value; + } - /** - * Gets the value of the algorithm property. - * - * @return possible object is {@link String } - */ - public String getAlgorithm() { - return algorithm; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link String } + */ + public void setValue(String value) { + this.value = value; + } - /** - * Sets the value of the algorithm property. - * - * @param value allowed object is {@link String } - */ - public void setAlgorithm(String value) { - this.algorithm = value; - } + /** + * Gets the value of the algorithm property. + * + * @return possible object is {@link String } + */ + public String getAlgorithm() { + return algorithm; + } + /** + * Sets the value of the algorithm property. + * + * @param value allowed object is {@link String } + */ + public void setAlgorithm(String value) { + this.algorithm = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MessageType.java index 173c833..dc4e4e1 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MessageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MessageType.java @@ -1,25 +1,23 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - -import javax.xml.datatype.XMLGregorianCalendar; import java.util.ArrayList; import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for MessageType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="MessageType">
@@ -38,146 +36,129 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "MessageType", propOrder = { - "comment", - "date", - "messageIdentifier", - "signature" -}) -@XmlSeeAlso({ - AcknowledgementType.class, - BusinessMessageType.class -}) +@XmlType( + name = "MessageType", + propOrder = {"comment", "date", "messageIdentifier", "signature"}) +@XmlSeeAlso({AcknowledgementType.class, BusinessMessageType.class}) public abstract class MessageType { - /** - * The Comment. - */ - @XmlElement(name = "Comment") - protected List comment; - /** - * The Date. - */ - @XmlElement(name = "Date", required = true) - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar date; - /** - * The Message identifier. - */ - @XmlElement(name = "MessageIdentifier", required = true) - protected IdentifierType messageIdentifier; - /** - * The Signature. - */ - @XmlElement(name = "Signature") - protected SignatureMessageType signature; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - - /** - * Gets the value of the comment 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 comment property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getComment().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the comment - */ - public List getComment() { - if (comment == null) { - comment = new ArrayList(); - } - return this.comment; - } + /** The Comment. */ + @XmlElement(name = "Comment") + protected List comment; - /** - * Gets the value of the date property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getDate() { - return date; - } + /** The Date. */ + @XmlElement(name = "Date", required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar date; - /** - * Sets the value of the date property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setDate(XMLGregorianCalendar value) { - this.date = value; - } + /** The Message identifier. */ + @XmlElement(name = "MessageIdentifier", required = true) + protected IdentifierType messageIdentifier; - /** - * Gets the value of the messageIdentifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getMessageIdentifier() { - return messageIdentifier; - } + /** The Signature. */ + @XmlElement(name = "Signature") + protected SignatureMessageType signature; - /** - * Sets the value of the messageIdentifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setMessageIdentifier(IdentifierType value) { - this.messageIdentifier = value; - } + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Gets the value of the signature property. - * - * @return possible object is {@link SignatureMessageType } - */ - public SignatureMessageType getSignature() { - return signature; + /** + * Gets the value of the comment 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 comment property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getComment().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the comment + */ + public List getComment() { + if (comment == null) { + comment = new ArrayList(); } + return this.comment; + } - /** - * Sets the value of the signature property. - * - * @param value allowed object is {@link SignatureMessageType } - */ - public void setSignature(SignatureMessageType value) { - this.signature = value; - } + /** + * Gets the value of the date property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getDate() { + return date; + } - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** + * Sets the value of the date property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setDate(XMLGregorianCalendar value) { + this.date = value; + } - /** - * 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 messageIdentifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getMessageIdentifier() { + return messageIdentifier; + } + + /** + * Sets the value of the messageIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setMessageIdentifier(IdentifierType value) { + this.messageIdentifier = value; + } + + /** + * Gets the value of the signature property. + * + * @return possible object is {@link SignatureMessageType } + */ + public SignatureMessageType getSignature() { + return signature; + } + + /** + * Sets the value of the signature property. + * + * @param value allowed object is {@link SignatureMessageType } + */ + public void setSignature(SignatureMessageType value) { + this.signature = value; + } + + /** + * Gets the value of the id property. + * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link String } + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MinimalDataObjectType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MinimalDataObjectType.java index 5d2711a..a811bfc 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MinimalDataObjectType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/MinimalDataObjectType.java @@ -1,24 +1,22 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for MinimalDataObjectType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="MinimalDataObjectType">
@@ -38,200 +36,186 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "MinimalDataObjectType", propOrder = { - "dataObjectSystemId", - "dataObjectGroupSystemId", - "relationship", - "dataObjectGroupReferenceId", - "dataObjectGroupId", - "dataObjectVersion" -}) -@XmlSeeAlso({ - PhysicalDataObjectType.class, - BinaryDataObjectType.class -}) +@XmlType( + name = "MinimalDataObjectType", + propOrder = { + "dataObjectSystemId", + "dataObjectGroupSystemId", + "relationship", + "dataObjectGroupReferenceId", + "dataObjectGroupId", + "dataObjectVersion" + }) +@XmlSeeAlso({PhysicalDataObjectType.class, BinaryDataObjectType.class}) public abstract class MinimalDataObjectType { - /** - * The Data object system id. - */ - @XmlElement(name = "DataObjectSystemId") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String dataObjectSystemId; - /** - * The Data object group system id. - */ - @XmlElement(name = "DataObjectGroupSystemId") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String dataObjectGroupSystemId; - /** - * The Relationship. - */ - @XmlElement(name = "Relationship") - protected List relationship; - /** - * The Data object group reference id. - */ - @XmlElement(name = "DataObjectGroupReferenceId") - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object dataObjectGroupReferenceId; - /** - * The Data object group id. - */ - @XmlElement(name = "DataObjectGroupId") - protected String dataObjectGroupId; - /** - * The Data object version. - */ - @XmlElement(name = "DataObjectVersion") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String dataObjectVersion; - /** - * The Id. - */ - @XmlAttribute(name = "id", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - protected String id; - - /** - * Gets the value of the dataObjectSystemId property. - * - * @return possible object is {@link String } - */ - public String getDataObjectSystemId() { - return dataObjectSystemId; - } - - /** - * Sets the value of the dataObjectSystemId property. - * - * @param value allowed object is {@link String } - */ - public void setDataObjectSystemId(String value) { - this.dataObjectSystemId = value; - } - - /** - * Gets the value of the dataObjectGroupSystemId property. - * - * @return possible object is {@link String } - */ - public String getDataObjectGroupSystemId() { - return dataObjectGroupSystemId; - } - - /** - * Sets the value of the dataObjectGroupSystemId property. - * - * @param value allowed object is {@link String } - */ - public void setDataObjectGroupSystemId(String value) { - this.dataObjectGroupSystemId = value; - } - - /** - * Gets the value of the relationship 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 relationship property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRelationship().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link RelationshipType - * }* - * - * @return the relationship - */ - public List getRelationship() { - if (relationship == null) { - relationship = new ArrayList(); - } - return this.relationship; - } - - /** - * Gets the value of the dataObjectGroupReferenceId property. - * - * @return possible object is {@link Object } - */ - public Object getDataObjectGroupReferenceId() { - return dataObjectGroupReferenceId; - } - - /** - * Sets the value of the dataObjectGroupReferenceId property. - * - * @param value allowed object is {@link Object } - */ - public void setDataObjectGroupReferenceId(Object value) { - this.dataObjectGroupReferenceId = value; + /** The Data object system id. */ + @XmlElement(name = "DataObjectSystemId") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String dataObjectSystemId; + + /** The Data object group system id. */ + @XmlElement(name = "DataObjectGroupSystemId") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String dataObjectGroupSystemId; + + /** The Relationship. */ + @XmlElement(name = "Relationship") + protected List relationship; + + /** The Data object group reference id. */ + @XmlElement(name = "DataObjectGroupReferenceId") + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object dataObjectGroupReferenceId; + + /** The Data object group id. */ + @XmlElement(name = "DataObjectGroupId") + protected String dataObjectGroupId; + + /** The Data object version. */ + @XmlElement(name = "DataObjectVersion") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String dataObjectVersion; + + /** The Id. */ + @XmlAttribute(name = "id", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + + /** + * Gets the value of the dataObjectSystemId property. + * + * @return possible object is {@link String } + */ + public String getDataObjectSystemId() { + return dataObjectSystemId; + } + + /** + * Sets the value of the dataObjectSystemId property. + * + * @param value allowed object is {@link String } + */ + public void setDataObjectSystemId(String value) { + this.dataObjectSystemId = value; + } + + /** + * Gets the value of the dataObjectGroupSystemId property. + * + * @return possible object is {@link String } + */ + public String getDataObjectGroupSystemId() { + return dataObjectGroupSystemId; + } + + /** + * Sets the value of the dataObjectGroupSystemId property. + * + * @param value allowed object is {@link String } + */ + public void setDataObjectGroupSystemId(String value) { + this.dataObjectGroupSystemId = value; + } + + /** + * Gets the value of the relationship 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 relationship property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getRelationship().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link RelationshipType }* + * + * @return the relationship + */ + public List getRelationship() { + if (relationship == null) { + relationship = new ArrayList(); } - - /** - * Gets the value of the dataObjectGroupId property. - * - * @return possible object is {@link String } - */ - public String getDataObjectGroupId() { - return dataObjectGroupId; - } - - /** - * Sets the value of the dataObjectGroupId property. - * - * @param value allowed object is {@link String } - */ - public void setDataObjectGroupId(String value) { - this.dataObjectGroupId = value; - } - - /** - * Gets the value of the dataObjectVersion property. - * - * @return possible object is {@link String } - */ - public String getDataObjectVersion() { - return dataObjectVersion; - } - - /** - * Sets the value of the dataObjectVersion property. - * - * @param value allowed object is {@link String } - */ - public void setDataObjectVersion(String value) { - this.dataObjectVersion = 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; - } - + return this.relationship; + } + + /** + * Gets the value of the dataObjectGroupReferenceId property. + * + * @return possible object is {@link Object } + */ + public Object getDataObjectGroupReferenceId() { + return dataObjectGroupReferenceId; + } + + /** + * Sets the value of the dataObjectGroupReferenceId property. + * + * @param value allowed object is {@link Object } + */ + public void setDataObjectGroupReferenceId(Object value) { + this.dataObjectGroupReferenceId = value; + } + + /** + * Gets the value of the dataObjectGroupId property. + * + * @return possible object is {@link String } + */ + public String getDataObjectGroupId() { + return dataObjectGroupId; + } + + /** + * Sets the value of the dataObjectGroupId property. + * + * @param value allowed object is {@link String } + */ + public void setDataObjectGroupId(String value) { + this.dataObjectGroupId = value; + } + + /** + * Gets the value of the dataObjectVersion property. + * + * @return possible object is {@link String } + */ + public String getDataObjectVersion() { + return dataObjectVersion; + } + + /** + * Sets the value of the dataObjectVersion property. + * + * @param value allowed object is {@link String } + */ + public void setDataObjectVersion(String value) { + this.dataObjectVersion = value; + } + + /** + * Gets the value of the id property. + * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link String } + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ObjectFactory.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ObjectFactory.java index 1e6564f..07d3253 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ObjectFactory.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ObjectFactory.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -10,1094 +11,1253 @@ import jakarta.xml.bind.annotation.XmlElementDecl; import jakarta.xml.bind.annotation.XmlIDREF; import jakarta.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 - * fr.gouv.culture.archivesdefrance.seda.v2 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. + * This object contains factory methods for each Java content interface and Java element interface + * generated in the fr.gouv.culture.archivesdefrance.seda.v2 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 _OtherDimensionsAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "OtherDimensionsAbstract"); - private final static QName _AuthorizationOriginatingAgencyRequest_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "AuthorizationOriginatingAgencyRequest"); - private final static QName _ArchiveRestitutionRequestReply_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveRestitutionRequestReply"); - private final static QName _ArchiveUnitReferenceAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveUnitReferenceAbstract"); - private final static QName _ArchiveTransferRequestReply_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveTransferRequestReply"); - private final static QName _AuthorizationOriginatingAgencyRequestReply_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "AuthorizationOriginatingAgencyRequestReply"); - private final static QName _ArchiveTransferRequest_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveTransferRequest"); - private final static QName _ArchiveDeliveryRequest_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveDeliveryRequest"); - private final static QName _ArchiveRestitutionRequest_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveRestitutionRequest"); - private final static QName _OtherCodeListAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "OtherCodeListAbstract"); - private final static QName _AuthorizationControlAuthorityRequestReply_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "AuthorizationControlAuthorityRequestReply"); - private final static QName _ArchiveDestructionNotification_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveDestructionNotification"); - private final static QName _ArchiveTransfer_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveTransfer"); - private final static QName _OtherManagementAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "OtherManagementAbstract"); - private final static QName _ArchiveTransferReply_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveTransferReply"); - private final static QName _ObjectGroupExtenstionAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ObjectGroupExtenstionAbstract"); - private final static QName _AgentAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "AgentAbstract"); - private final static QName _OtherCoreTechnicalMetadataAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "OtherCoreTechnicalMetadataAbstract"); - private final static QName _Acknowledgement_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "Acknowledgement"); - private final static QName _AuthorizationControlAuthorityRequest_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "AuthorizationControlAuthorityRequest"); - private final static QName _ArchiveModificationNotification_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveModificationNotification"); - private final static QName _EventAbstract_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "EventAbstract"); - private final static QName _ArchiveDeliveryRequestReply_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveDeliveryRequestReply"); - private final static QName _ArchiveUnitTypeDataObjectGroup_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "DataObjectGroup"); - private final static QName _ArchiveUnitTypeDataObjectReference_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "DataObjectReference"); - private final static QName _ArchiveUnitTypeArchiveUnit_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveUnit"); - private final static QName _ToDeleteTypeArchiveUnitRefId_QNAME = new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveUnitRefId"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: - * fr.gouv.culture.archivesdefrance.seda.v2 - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link AuthorizationOriginatingAgencyRequestType } - * - * @return the authorization originating agency request type - */ - public AuthorizationOriginatingAgencyRequestType createAuthorizationOriginatingAgencyRequestType() { - return new AuthorizationOriginatingAgencyRequestType(); - } - - /** - * Create an instance of {@link AuthorizationControlAuthorityRequestReplyType - * }* - * - * @return the authorization control authority request reply type - */ - public AuthorizationControlAuthorityRequestReplyType createAuthorizationControlAuthorityRequestReplyType() { - return new AuthorizationControlAuthorityRequestReplyType(); - } - - /** - * Create an instance of {@link ArchiveDestructionNotificationType } - * - * @return the archive destruction notification type - */ - public ArchiveDestructionNotificationType createArchiveDestructionNotificationType() { - return new ArchiveDestructionNotificationType(); - } - - /** - * Create an instance of {@link ArchiveTransferType } - * - * @return the archive transfer type - */ - public ArchiveTransferType createArchiveTransferType() { - return new ArchiveTransferType(); - } - - /** - * Create an instance of {@link AgentType } - * - * @return the agent type - */ - public AgentType createAgentType() { - return new AgentType(); - } - - /** - * Create an instance of {@link ArchiveTransferReplyType } - * - * @return the archive transfer reply type - */ - public ArchiveTransferReplyType createArchiveTransferReplyType() { - return new ArchiveTransferReplyType(); - } - - /** - * Create an instance of {@link ArchiveRestitutionRequestReplyType } - * - * @return the archive restitution request reply type - */ - public ArchiveRestitutionRequestReplyType createArchiveRestitutionRequestReplyType() { - return new ArchiveRestitutionRequestReplyType(); - } - - /** - * Create an instance of {@link ArchiveTransferRequestReplyType } - * - * @return the archive transfer request reply type - */ - public ArchiveTransferRequestReplyType createArchiveTransferRequestReplyType() { - return new ArchiveTransferRequestReplyType(); - } - - /** - * Create an instance of {@link AuthorizationOriginatingAgencyRequestReplyType - * }* - * - * @return the authorization originating agency request reply type - */ - public AuthorizationOriginatingAgencyRequestReplyType createAuthorizationOriginatingAgencyRequestReplyType() { - return new AuthorizationOriginatingAgencyRequestReplyType(); - } - - /** - * Create an instance of {@link AuthorizationControlAuthorityRequestType } - * - * @return the authorization control authority request type - */ - public AuthorizationControlAuthorityRequestType createAuthorizationControlAuthorityRequestType() { - return new AuthorizationControlAuthorityRequestType(); - } - - /** - * Create an instance of {@link AcknowledgementType } - * - * @return the acknowledgement type - */ - public AcknowledgementType createAcknowledgementType() { - return new AcknowledgementType(); - } - - /** - * Create an instance of {@link ArchiveDeliveryRequestType } - * - * @return the archive delivery request type - */ - public ArchiveDeliveryRequestType createArchiveDeliveryRequestType() { - return new ArchiveDeliveryRequestType(); - } - - /** - * Create an instance of {@link ArchiveRestitutionRequestType } - * - * @return the archive restitution request type - */ - public ArchiveRestitutionRequestType createArchiveRestitutionRequestType() { - return new ArchiveRestitutionRequestType(); - } - - /** - * Create an instance of {@link ArchiveTransferRequestType } - * - * @return the archive transfer request type - */ - public ArchiveTransferRequestType createArchiveTransferRequestType() { - return new ArchiveTransferRequestType(); - } - - /** - * Create an instance of {@link ArchiveDeliveryRequestReplyType } - * - * @return the archive delivery request reply type - */ - public ArchiveDeliveryRequestReplyType createArchiveDeliveryRequestReplyType() { - return new ArchiveDeliveryRequestReplyType(); - } - - /** - * Create an instance of {@link CodeType } - * - * @return the code type - */ - public CodeType createCodeType() { - return new CodeType(); - } - - /** - * Create an instance of {@link ArchiveModificationNotificationType } - * - * @return the archive modification notification type - */ - public ArchiveModificationNotificationType createArchiveModificationNotificationType() { - return new ArchiveModificationNotificationType(); - } - - /** - * Create an instance of {@link CustodialHistoryItemType } - * - * @return the custodial history item type - */ - public CustodialHistoryItemType createCustodialHistoryItemType() { - return new CustodialHistoryItemType(); - } - - /** - * Create an instance of {@link ImageTechnicalMetadataType } - * - * @return the image technical metadata type - */ - public ImageTechnicalMetadataType createImageTechnicalMetadataType() { - return new ImageTechnicalMetadataType(); - } - - /** - * Create an instance of {@link DescriptiveMetadataType } - * - * @return the descriptive metadata type - */ - public DescriptiveMetadataType createDescriptiveMetadataType() { - return new DescriptiveMetadataType(); - } - - /** - * Create an instance of {@link ReferencedObjectType } - * - * @return the referenced object type - */ - public ReferencedObjectType createReferencedObjectType() { - return new ReferencedObjectType(); - } - - /** - * Create an instance of {@link FileInfoType } - * - * @return the file info type - */ - public FileInfoType createFileInfoType() { - return new FileInfoType(); - } - - /** - * Create an instance of {@link FormatIdentificationType } - * - * @return the format identification type - */ - public FormatIdentificationType createFormatIdentificationType() { - return new FormatIdentificationType(); - } - - /** - * Create an instance of {@link CoverageType } - * - * @return the coverage type - */ - public CoverageType createCoverageType() { - return new CoverageType(); - } - - /** - * Create an instance of {@link DescriptiveMetadataContentType } - * - * @return the descriptive metadata content type - */ - public DescriptiveMetadataContentType createDescriptiveMetadataContentType() { - return new DescriptiveMetadataContentType(); - } - - /** - * Create an instance of {@link CustodialHistoryType } - * - * @return the custodial history type - */ - public CustodialHistoryType createCustodialHistoryType() { - return new CustodialHistoryType(); - } - - /** - * Create an instance of {@link CodeListVersionsType } - * - * @return the code list versions type - */ - public CodeListVersionsType createCodeListVersionsType() { - return new CodeListVersionsType(); - } - - /** - * Create an instance of {@link ReuseRuleType } - * - * @return the reuse rule type - */ - public ReuseRuleType createReuseRuleType() { - return new ReuseRuleType(); - } - - /** - * Create an instance of {@link ObjectGroupRefType } - * - * @return the object group ref type - */ - public ObjectGroupRefType createObjectGroupRefType() { - return new ObjectGroupRefType(); - } - - /** - * Create an instance of {@link TextType } - * - * @return the text type - */ - public TextType createTextType() { - return new TextType(); - } - - /** - * Create an instance of {@link AudioTechnicalMetadataType } - * - * @return the audio technical metadata type - */ - public AudioTechnicalMetadataType createAudioTechnicalMetadataType() { - return new AudioTechnicalMetadataType(); - } - - /** - * Create an instance of {@link CoreMetadataType } - * - * @return the core metadata type - */ - public CoreMetadataType createCoreMetadataType() { - return new CoreMetadataType(); - } - - /** - * Create an instance of {@link DataObjectGroupType } - * - * @return the data object group type - */ - public DataObjectGroupType createDataObjectGroupType() { - return new DataObjectGroupType(); - } - - /** - * Create an instance of {@link KeywordsType } - * - * @return the keywords type - */ - public KeywordsType createKeywordsType() { - return new KeywordsType(); - } - - /** - * Create an instance of {@link BinaryObjectType } - * - * @return the binary object type - */ - public BinaryObjectType createBinaryObjectType() { - return new BinaryObjectType(); - } - - /** - * Create an instance of {@link AppraisalRuleType } - * - * @return the appraisal rule type - */ - public AppraisalRuleType createAppraisalRuleType() { - return new AppraisalRuleType(); - } - - /** - * Create an instance of {@link OperationType } - * - * @return the operation type - */ - public OperationType createOperationType() { - return new OperationType(); - } - - /** - * Create an instance of {@link TextTechnicalMetadataType } - * - * @return the text technical metadata type - */ - public TextTechnicalMetadataType createTextTechnicalMetadataType() { - return new TextTechnicalMetadataType(); - } - - /** - * Create an instance of {@link PhysicalDataObjectType } - * - * @return the physical data object type - */ - public PhysicalDataObjectType createPhysicalDataObjectType() { - return new PhysicalDataObjectType(); - } - - /** - * Create an instance of {@link DataObjectOrArchiveUnitReferenceType } - * - * @return the data object or archive unit reference type - */ - public DataObjectOrArchiveUnitReferenceType createDataObjectOrArchiveUnitReferenceType() { - return new DataObjectOrArchiveUnitReferenceType(); - } - - /** - * Create an instance of {@link ManagementHistoryType } - * - * @return the management history type - */ - public ManagementHistoryType createManagementHistoryType() { - return new ManagementHistoryType(); - } - - /** - * Create an instance of {@link OrganizationDescriptiveMetadataType } - * - * @return the organization descriptive metadata type - */ - public OrganizationDescriptiveMetadataType createOrganizationDescriptiveMetadataType() { - return new OrganizationDescriptiveMetadataType(); - } - - /** - * Create an instance of {@link BirthOrDeathPlaceType } - * - * @return the birth or death place type - */ - public BirthOrDeathPlaceType createBirthOrDeathPlaceType() { - return new BirthOrDeathPlaceType(); - } - - /** - * Create an instance of {@link OrganizationWithIdType } - * - * @return the organization with id type - */ - public OrganizationWithIdType createOrganizationWithIdType() { - return new OrganizationWithIdType(); - } - - /** - * Create an instance of {@link EventLogBookOgType } - * - * @return the event log book og type - */ - public EventLogBookOgType createEventLogBookOgType() { - return new EventLogBookOgType(); - } - - /** - * Create an instance of {@link ClassificationRuleType } - * - * @return the classification rule type - */ - public ClassificationRuleType createClassificationRuleType() { - return new ClassificationRuleType(); - } - - /** - * Create an instance of {@link KeyType } - * - * @return the key type - */ - public KeyType createKeyType() { - return new KeyType(); - } - - /** - * Create an instance of {@link EventType } - * - * @return the event type - */ - public EventType createEventType() { - return new EventType(); - } - - /** - * Create an instance of {@link RelationshipType } - * - * @return the relationship type - */ - public RelationshipType createRelationshipType() { - return new RelationshipType(); - } - - /** - * Create an instance of {@link SignerType } - * - * @return the signer type - */ - public SignerType createSignerType() { - return new SignerType(); - } - - /** - * Create an instance of {@link GpsType } - * - * @return the gps type - */ - public GpsType createGpsType() { - return new GpsType(); - } - - /** - * Create an instance of {@link BinaryDataObjectType } - * - * @return the binary data object type - */ - public BinaryDataObjectType createBinaryDataObjectType() { - return new BinaryDataObjectType(); - } - - /** - * Create an instance of {@link DisseminationRuleType } - * - * @return the dissemination rule type - */ - public DisseminationRuleType createDisseminationRuleType() { - return new DisseminationRuleType(); - } - - /** - * Create an instance of {@link LogBookType } - * - * @return the log book type - */ - public LogBookType createLogBookType() { - return new LogBookType(); - } - - /** - * Create an instance of {@link MeasurementWeightType } - * - * @return the measurement weight type - */ - public MeasurementWeightType createMeasurementWeightType() { - return new MeasurementWeightType(); - } - - /** - * Create an instance of {@link SignatureType } - * - * @return the signature type - */ - public SignatureType createSignatureType() { - return new SignatureType(); - } - - /** - * Create an instance of {@link ValidatorType } - * - * @return the validator type - */ - public ValidatorType createValidatorType() { - return new ValidatorType(); - } - - /** - * Create an instance of {@link CompressedType } - * - * @return the compressed type - */ - public CompressedType createCompressedType() { - return new CompressedType(); - } - - /** - * Create an instance of {@link IdentifierType } - * - * @return the identifier type - */ - public IdentifierType createIdentifierType() { - return new IdentifierType(); - } - - /** - * Create an instance of {@link LogBookOgType } - * - * @return the log book og type - */ - public LogBookOgType createLogBookOgType() { - return new LogBookOgType(); - } - - /** - * Create an instance of {@link ArchiveUnitIdentifierKeyType } - * - * @return the archive unit identifier key type - */ - public ArchiveUnitIdentifierKeyType createArchiveUnitIdentifierKeyType() { - return new ArchiveUnitIdentifierKeyType(); - } - - /** - * Create an instance of {@link ManagementHistoryDataType } - * - * @return the management history data type - */ - public ManagementHistoryDataType createManagementHistoryDataType() { - return new ManagementHistoryDataType(); - } - - /** - * Create an instance of {@link ArchiveUnitType } - * - * @return the archive unit type - */ - public ArchiveUnitType createArchiveUnitType() { - return new ArchiveUnitType(); - } - - /** - * Create an instance of {@link VideoTechnicalMetadataType } - * - * @return the video technical metadata type - */ - public VideoTechnicalMetadataType createVideoTechnicalMetadataType() { - return new VideoTechnicalMetadataType(); - } - - /** - * Create an instance of {@link DocumentTechnicalMetadataType } - * - * @return the document technical metadata type - */ - public DocumentTechnicalMetadataType createDocumentTechnicalMetadataType() { - return new DocumentTechnicalMetadataType(); - } - - /** - * Create an instance of {@link SignatureMessageType } - * - * @return the signature message type - */ - public SignatureMessageType createSignatureMessageType() { - return new SignatureMessageType(); - } - - /** - * Create an instance of {@link StorageRuleType } - * - * @return the storage rule type - */ - public StorageRuleType createStorageRuleType() { - return new StorageRuleType(); - } - - /** - * Create an instance of {@link UpdateOperationType } - * - * @return the update operation type - */ - public UpdateOperationType createUpdateOperationType() { - return new UpdateOperationType(); - } - - /** - * Create an instance of {@link DataObjectRefType } - * - * @return the data object ref type - */ - public DataObjectRefType createDataObjectRefType() { - return new DataObjectRefType(); - } - - /** - * Create an instance of {@link MeasurementType } - * - * @return the measurement type - */ - public MeasurementType createMeasurementType() { - return new MeasurementType(); - } - - /** - * Create an instance of {@link ManagementMetadataType } - * - * @return the management metadata type - */ - public ManagementMetadataType createManagementMetadataType() { - return new ManagementMetadataType(); - } - - /** - * Create an instance of {@link RelatedObjectReferenceType } - * - * @return the related object reference type - */ - public RelatedObjectReferenceType createRelatedObjectReferenceType() { - return new RelatedObjectReferenceType(); - } - - /** - * Create an instance of {@link AuthorizationRequestContentType } - * - * @return the authorization request content type - */ - public AuthorizationRequestContentType createAuthorizationRequestContentType() { - return new AuthorizationRequestContentType(); - } - - /** - * Create an instance of {@link ManagementType } - * - * @return the management type - */ - public ManagementType createManagementType() { - return new ManagementType(); - } - - /** - * Create an instance of {@link DescriptiveTechnicalMetadataType } - * - * @return the descriptive technical metadata type - */ - public DescriptiveTechnicalMetadataType createDescriptiveTechnicalMetadataType() { - return new DescriptiveTechnicalMetadataType(); - } - - /** - * Create an instance of {@link OrganizationType } - * - * @return the organization type - */ - public OrganizationType createOrganizationType() { - return new OrganizationType(); - } - - /** - * Create an instance of {@link RuleIdType } - * - * @return the rule id type - */ - public RuleIdType createRuleIdType() { - return new RuleIdType(); - } - - /** - * Create an instance of {@link MessageDigestBinaryObjectType } - * - * @return the message digest binary object type - */ - public MessageDigestBinaryObjectType createMessageDigestBinaryObjectType() { - return new MessageDigestBinaryObjectType(); - } - - /** - * Create an instance of {@link ToDeleteType } - * - * @return the to delete type - */ - public ToDeleteType createToDeleteType() { - return new ToDeleteType(); - } - - /** - * Create an instance of {@link DimensionsType } - * - * @return the dimensions type - */ - public DimensionsType createDimensionsType() { - return new DimensionsType(); - } - - /** - * Create an instance of {@link AccessRuleType } - * - * @return the access rule type - */ - public AccessRuleType createAccessRuleType() { - return new AccessRuleType(); - } - - /** - * Create an instance of {@link DataObjectPackageType } - * - * @return the data object package type - */ - public DataObjectPackageType createDataObjectPackageType() { - return new DataObjectPackageType(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "OtherDimensionsAbstract") - public JAXBElement createOtherDimensionsAbstract(Object value) { - return new JAXBElement(_OtherDimensionsAbstract_QNAME, Object.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AuthorizationOriginatingAgencyRequestType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "AuthorizationOriginatingAgencyRequest") - public JAXBElement createAuthorizationOriginatingAgencyRequest(AuthorizationOriginatingAgencyRequestType value) { - return new JAXBElement(_AuthorizationOriginatingAgencyRequest_QNAME, AuthorizationOriginatingAgencyRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestReplyType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "ArchiveRestitutionRequestReply") - public JAXBElement createArchiveRestitutionRequestReply(ArchiveRestitutionRequestReplyType value) { - return new JAXBElement(_ArchiveRestitutionRequestReply_QNAME, ArchiveRestitutionRequestReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "ArchiveUnitReferenceAbstract") - public JAXBElement createArchiveUnitReferenceAbstract(Object value) { - return new JAXBElement(_ArchiveUnitReferenceAbstract_QNAME, Object.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestReplyType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "ArchiveTransferRequestReply") - public JAXBElement createArchiveTransferRequestReply(ArchiveTransferRequestReplyType value) { - return new JAXBElement(_ArchiveTransferRequestReply_QNAME, ArchiveTransferRequestReplyType.class, null, value); - } - - /** - * Create an instance of - * {@link JAXBElement }{@code <}{@link AuthorizationOriginatingAgencyRequestReplyType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "AuthorizationOriginatingAgencyRequestReply") - public JAXBElement createAuthorizationOriginatingAgencyRequestReply(AuthorizationOriginatingAgencyRequestReplyType value) { - return new JAXBElement(_AuthorizationOriginatingAgencyRequestReply_QNAME, AuthorizationOriginatingAgencyRequestReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "ArchiveTransferRequest") - public JAXBElement createArchiveTransferRequest(ArchiveTransferRequestType value) { - return new JAXBElement(_ArchiveTransferRequest_QNAME, ArchiveTransferRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "ArchiveDeliveryRequest") - public JAXBElement createArchiveDeliveryRequest(ArchiveDeliveryRequestType value) { - return new JAXBElement(_ArchiveDeliveryRequest_QNAME, ArchiveDeliveryRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "ArchiveRestitutionRequest") - public JAXBElement createArchiveRestitutionRequest(ArchiveRestitutionRequestType value) { - return new JAXBElement(_ArchiveRestitutionRequest_QNAME, ArchiveRestitutionRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CodeType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "OtherCodeListAbstract") - public JAXBElement createOtherCodeListAbstract(CodeType value) { - return new JAXBElement(_OtherCodeListAbstract_QNAME, CodeType.class, null, value); - } - - /** - * Create an instance of - * {@link JAXBElement }{@code <}{@link AuthorizationControlAuthorityRequestReplyType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "AuthorizationControlAuthorityRequestReply") - public JAXBElement createAuthorizationControlAuthorityRequestReply(AuthorizationControlAuthorityRequestReplyType value) { - return new JAXBElement(_AuthorizationControlAuthorityRequestReply_QNAME, AuthorizationControlAuthorityRequestReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDestructionNotificationType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "ArchiveDestructionNotification") - public JAXBElement createArchiveDestructionNotification(ArchiveDestructionNotificationType value) { - return new JAXBElement(_ArchiveDestructionNotification_QNAME, ArchiveDestructionNotificationType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "ArchiveTransfer") - public JAXBElement createArchiveTransfer(ArchiveTransferType value) { - return new JAXBElement(_ArchiveTransfer_QNAME, ArchiveTransferType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "OtherManagementAbstract") - public JAXBElement createOtherManagementAbstract(Object value) { - return new JAXBElement(_OtherManagementAbstract_QNAME, Object.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferReplyType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "ArchiveTransferReply") - public JAXBElement createArchiveTransferReply(ArchiveTransferReplyType value) { - return new JAXBElement(_ArchiveTransferReply_QNAME, ArchiveTransferReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "ObjectGroupExtenstionAbstract") - public JAXBElement createObjectGroupExtenstionAbstract(Object value) { - return new JAXBElement(_ObjectGroupExtenstionAbstract_QNAME, Object.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AgentType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "AgentAbstract") - public JAXBElement createAgentAbstract(AgentType value) { - return new JAXBElement(_AgentAbstract_QNAME, AgentType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link OpenType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "OtherCoreTechnicalMetadataAbstract") - public JAXBElement createOtherCoreTechnicalMetadataAbstract(OpenType value) { - return new JAXBElement(_OtherCoreTechnicalMetadataAbstract_QNAME, OpenType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AcknowledgementType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "Acknowledgement") - public JAXBElement createAcknowledgement(AcknowledgementType value) { - return new JAXBElement(_Acknowledgement_QNAME, AcknowledgementType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AuthorizationControlAuthorityRequestType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "AuthorizationControlAuthorityRequest") - public JAXBElement createAuthorizationControlAuthorityRequest(AuthorizationControlAuthorityRequestType value) { - return new JAXBElement(_AuthorizationControlAuthorityRequest_QNAME, AuthorizationControlAuthorityRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveModificationNotificationType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "ArchiveModificationNotification") - public JAXBElement createArchiveModificationNotification(ArchiveModificationNotificationType value) { - return new JAXBElement(_ArchiveModificationNotification_QNAME, ArchiveModificationNotificationType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "EventAbstract") - public JAXBElement createEventAbstract(Object value) { - return new JAXBElement(_EventAbstract_QNAME, Object.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestReplyType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "ArchiveDeliveryRequestReply") - public JAXBElement createArchiveDeliveryRequestReply(ArchiveDeliveryRequestReplyType value) { - return new JAXBElement(_ArchiveDeliveryRequestReply_QNAME, ArchiveDeliveryRequestReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ObjectGroupRefType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "DataObjectGroup", scope = ArchiveUnitType.class) - public JAXBElement createArchiveUnitTypeDataObjectGroup(ObjectGroupRefType value) { - return new JAXBElement(_ArchiveUnitTypeDataObjectGroup_QNAME, ObjectGroupRefType.class, ArchiveUnitType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DataObjectRefType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "DataObjectReference", scope = ArchiveUnitType.class) - public JAXBElement createArchiveUnitTypeDataObjectReference(DataObjectRefType value) { - return new JAXBElement(_ArchiveUnitTypeDataObjectReference_QNAME, DataObjectRefType.class, ArchiveUnitType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveUnitType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "ArchiveUnit", scope = ArchiveUnitType.class) - public JAXBElement createArchiveUnitTypeArchiveUnit(ArchiveUnitType value) { - return new JAXBElement(_ArchiveUnitTypeArchiveUnit_QNAME, ArchiveUnitType.class, ArchiveUnitType.class, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "ArchiveUnitRefId", scope = ToDeleteType.class) - @XmlIDREF - public JAXBElement createToDeleteTypeArchiveUnitRefId(Object value) { - return new JAXBElement(_ToDeleteTypeArchiveUnitRefId_QNAME, Object.class, ToDeleteType.class, value); - } - + private static final QName _OtherDimensionsAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "OtherDimensionsAbstract"); + private static final QName _AuthorizationOriginatingAgencyRequest_QNAME = + new QName( + "fr:gouv:culture:archivesdefrance:seda:v2.1", "AuthorizationOriginatingAgencyRequest"); + private static final QName _ArchiveRestitutionRequestReply_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveRestitutionRequestReply"); + private static final QName _ArchiveUnitReferenceAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveUnitReferenceAbstract"); + private static final QName _ArchiveTransferRequestReply_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveTransferRequestReply"); + private static final QName _AuthorizationOriginatingAgencyRequestReply_QNAME = + new QName( + "fr:gouv:culture:archivesdefrance:seda:v2.1", + "AuthorizationOriginatingAgencyRequestReply"); + private static final QName _ArchiveTransferRequest_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveTransferRequest"); + private static final QName _ArchiveDeliveryRequest_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveDeliveryRequest"); + private static final QName _ArchiveRestitutionRequest_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveRestitutionRequest"); + private static final QName _OtherCodeListAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "OtherCodeListAbstract"); + private static final QName _AuthorizationControlAuthorityRequestReply_QNAME = + new QName( + "fr:gouv:culture:archivesdefrance:seda:v2.1", + "AuthorizationControlAuthorityRequestReply"); + private static final QName _ArchiveDestructionNotification_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveDestructionNotification"); + private static final QName _ArchiveTransfer_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveTransfer"); + private static final QName _OtherManagementAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "OtherManagementAbstract"); + private static final QName _ArchiveTransferReply_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveTransferReply"); + private static final QName _ObjectGroupExtenstionAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ObjectGroupExtenstionAbstract"); + private static final QName _AgentAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "AgentAbstract"); + private static final QName _OtherCoreTechnicalMetadataAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "OtherCoreTechnicalMetadataAbstract"); + private static final QName _Acknowledgement_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "Acknowledgement"); + private static final QName _AuthorizationControlAuthorityRequest_QNAME = + new QName( + "fr:gouv:culture:archivesdefrance:seda:v2.1", "AuthorizationControlAuthorityRequest"); + private static final QName _ArchiveModificationNotification_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveModificationNotification"); + private static final QName _EventAbstract_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "EventAbstract"); + private static final QName _ArchiveDeliveryRequestReply_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveDeliveryRequestReply"); + private static final QName _ArchiveUnitTypeDataObjectGroup_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "DataObjectGroup"); + private static final QName _ArchiveUnitTypeDataObjectReference_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "DataObjectReference"); + private static final QName _ArchiveUnitTypeArchiveUnit_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveUnit"); + private static final QName _ToDeleteTypeArchiveUnitRefId_QNAME = + new QName("fr:gouv:culture:archivesdefrance:seda:v2.1", "ArchiveUnitRefId"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes + * for package: fr.gouv.culture.archivesdefrance.seda.v2 + */ + public ObjectFactory() {} + + /** + * Create an instance of {@link AuthorizationOriginatingAgencyRequestType } + * + * @return the authorization originating agency request type + */ + public AuthorizationOriginatingAgencyRequestType + createAuthorizationOriginatingAgencyRequestType() { + return new AuthorizationOriginatingAgencyRequestType(); + } + + /** + * Create an instance of {@link AuthorizationControlAuthorityRequestReplyType }* + * + * @return the authorization control authority request reply type + */ + public AuthorizationControlAuthorityRequestReplyType + createAuthorizationControlAuthorityRequestReplyType() { + return new AuthorizationControlAuthorityRequestReplyType(); + } + + /** + * Create an instance of {@link ArchiveDestructionNotificationType } + * + * @return the archive destruction notification type + */ + public ArchiveDestructionNotificationType createArchiveDestructionNotificationType() { + return new ArchiveDestructionNotificationType(); + } + + /** + * Create an instance of {@link ArchiveTransferType } + * + * @return the archive transfer type + */ + public ArchiveTransferType createArchiveTransferType() { + return new ArchiveTransferType(); + } + + /** + * Create an instance of {@link AgentType } + * + * @return the agent type + */ + public AgentType createAgentType() { + return new AgentType(); + } + + /** + * Create an instance of {@link ArchiveTransferReplyType } + * + * @return the archive transfer reply type + */ + public ArchiveTransferReplyType createArchiveTransferReplyType() { + return new ArchiveTransferReplyType(); + } + + /** + * Create an instance of {@link ArchiveRestitutionRequestReplyType } + * + * @return the archive restitution request reply type + */ + public ArchiveRestitutionRequestReplyType createArchiveRestitutionRequestReplyType() { + return new ArchiveRestitutionRequestReplyType(); + } + + /** + * Create an instance of {@link ArchiveTransferRequestReplyType } + * + * @return the archive transfer request reply type + */ + public ArchiveTransferRequestReplyType createArchiveTransferRequestReplyType() { + return new ArchiveTransferRequestReplyType(); + } + + /** + * Create an instance of {@link AuthorizationOriginatingAgencyRequestReplyType }* + * + * @return the authorization originating agency request reply type + */ + public AuthorizationOriginatingAgencyRequestReplyType + createAuthorizationOriginatingAgencyRequestReplyType() { + return new AuthorizationOriginatingAgencyRequestReplyType(); + } + + /** + * Create an instance of {@link AuthorizationControlAuthorityRequestType } + * + * @return the authorization control authority request type + */ + public AuthorizationControlAuthorityRequestType createAuthorizationControlAuthorityRequestType() { + return new AuthorizationControlAuthorityRequestType(); + } + + /** + * Create an instance of {@link AcknowledgementType } + * + * @return the acknowledgement type + */ + public AcknowledgementType createAcknowledgementType() { + return new AcknowledgementType(); + } + + /** + * Create an instance of {@link ArchiveDeliveryRequestType } + * + * @return the archive delivery request type + */ + public ArchiveDeliveryRequestType createArchiveDeliveryRequestType() { + return new ArchiveDeliveryRequestType(); + } + + /** + * Create an instance of {@link ArchiveRestitutionRequestType } + * + * @return the archive restitution request type + */ + public ArchiveRestitutionRequestType createArchiveRestitutionRequestType() { + return new ArchiveRestitutionRequestType(); + } + + /** + * Create an instance of {@link ArchiveTransferRequestType } + * + * @return the archive transfer request type + */ + public ArchiveTransferRequestType createArchiveTransferRequestType() { + return new ArchiveTransferRequestType(); + } + + /** + * Create an instance of {@link ArchiveDeliveryRequestReplyType } + * + * @return the archive delivery request reply type + */ + public ArchiveDeliveryRequestReplyType createArchiveDeliveryRequestReplyType() { + return new ArchiveDeliveryRequestReplyType(); + } + + /** + * Create an instance of {@link CodeType } + * + * @return the code type + */ + public CodeType createCodeType() { + return new CodeType(); + } + + /** + * Create an instance of {@link ArchiveModificationNotificationType } + * + * @return the archive modification notification type + */ + public ArchiveModificationNotificationType createArchiveModificationNotificationType() { + return new ArchiveModificationNotificationType(); + } + + /** + * Create an instance of {@link CustodialHistoryItemType } + * + * @return the custodial history item type + */ + public CustodialHistoryItemType createCustodialHistoryItemType() { + return new CustodialHistoryItemType(); + } + + /** + * Create an instance of {@link ImageTechnicalMetadataType } + * + * @return the image technical metadata type + */ + public ImageTechnicalMetadataType createImageTechnicalMetadataType() { + return new ImageTechnicalMetadataType(); + } + + /** + * Create an instance of {@link DescriptiveMetadataType } + * + * @return the descriptive metadata type + */ + public DescriptiveMetadataType createDescriptiveMetadataType() { + return new DescriptiveMetadataType(); + } + + /** + * Create an instance of {@link ReferencedObjectType } + * + * @return the referenced object type + */ + public ReferencedObjectType createReferencedObjectType() { + return new ReferencedObjectType(); + } + + /** + * Create an instance of {@link FileInfoType } + * + * @return the file info type + */ + public FileInfoType createFileInfoType() { + return new FileInfoType(); + } + + /** + * Create an instance of {@link FormatIdentificationType } + * + * @return the format identification type + */ + public FormatIdentificationType createFormatIdentificationType() { + return new FormatIdentificationType(); + } + + /** + * Create an instance of {@link CoverageType } + * + * @return the coverage type + */ + public CoverageType createCoverageType() { + return new CoverageType(); + } + + /** + * Create an instance of {@link DescriptiveMetadataContentType } + * + * @return the descriptive metadata content type + */ + public DescriptiveMetadataContentType createDescriptiveMetadataContentType() { + return new DescriptiveMetadataContentType(); + } + + /** + * Create an instance of {@link CustodialHistoryType } + * + * @return the custodial history type + */ + public CustodialHistoryType createCustodialHistoryType() { + return new CustodialHistoryType(); + } + + /** + * Create an instance of {@link CodeListVersionsType } + * + * @return the code list versions type + */ + public CodeListVersionsType createCodeListVersionsType() { + return new CodeListVersionsType(); + } + + /** + * Create an instance of {@link ReuseRuleType } + * + * @return the reuse rule type + */ + public ReuseRuleType createReuseRuleType() { + return new ReuseRuleType(); + } + + /** + * Create an instance of {@link ObjectGroupRefType } + * + * @return the object group ref type + */ + public ObjectGroupRefType createObjectGroupRefType() { + return new ObjectGroupRefType(); + } + + /** + * Create an instance of {@link TextType } + * + * @return the text type + */ + public TextType createTextType() { + return new TextType(); + } + + /** + * Create an instance of {@link AudioTechnicalMetadataType } + * + * @return the audio technical metadata type + */ + public AudioTechnicalMetadataType createAudioTechnicalMetadataType() { + return new AudioTechnicalMetadataType(); + } + + /** + * Create an instance of {@link CoreMetadataType } + * + * @return the core metadata type + */ + public CoreMetadataType createCoreMetadataType() { + return new CoreMetadataType(); + } + + /** + * Create an instance of {@link DataObjectGroupType } + * + * @return the data object group type + */ + public DataObjectGroupType createDataObjectGroupType() { + return new DataObjectGroupType(); + } + + /** + * Create an instance of {@link KeywordsType } + * + * @return the keywords type + */ + public KeywordsType createKeywordsType() { + return new KeywordsType(); + } + + /** + * Create an instance of {@link BinaryObjectType } + * + * @return the binary object type + */ + public BinaryObjectType createBinaryObjectType() { + return new BinaryObjectType(); + } + + /** + * Create an instance of {@link AppraisalRuleType } + * + * @return the appraisal rule type + */ + public AppraisalRuleType createAppraisalRuleType() { + return new AppraisalRuleType(); + } + + /** + * Create an instance of {@link OperationType } + * + * @return the operation type + */ + public OperationType createOperationType() { + return new OperationType(); + } + + /** + * Create an instance of {@link TextTechnicalMetadataType } + * + * @return the text technical metadata type + */ + public TextTechnicalMetadataType createTextTechnicalMetadataType() { + return new TextTechnicalMetadataType(); + } + + /** + * Create an instance of {@link PhysicalDataObjectType } + * + * @return the physical data object type + */ + public PhysicalDataObjectType createPhysicalDataObjectType() { + return new PhysicalDataObjectType(); + } + + /** + * Create an instance of {@link DataObjectOrArchiveUnitReferenceType } + * + * @return the data object or archive unit reference type + */ + public DataObjectOrArchiveUnitReferenceType createDataObjectOrArchiveUnitReferenceType() { + return new DataObjectOrArchiveUnitReferenceType(); + } + + /** + * Create an instance of {@link ManagementHistoryType } + * + * @return the management history type + */ + public ManagementHistoryType createManagementHistoryType() { + return new ManagementHistoryType(); + } + + /** + * Create an instance of {@link OrganizationDescriptiveMetadataType } + * + * @return the organization descriptive metadata type + */ + public OrganizationDescriptiveMetadataType createOrganizationDescriptiveMetadataType() { + return new OrganizationDescriptiveMetadataType(); + } + + /** + * Create an instance of {@link BirthOrDeathPlaceType } + * + * @return the birth or death place type + */ + public BirthOrDeathPlaceType createBirthOrDeathPlaceType() { + return new BirthOrDeathPlaceType(); + } + + /** + * Create an instance of {@link OrganizationWithIdType } + * + * @return the organization with id type + */ + public OrganizationWithIdType createOrganizationWithIdType() { + return new OrganizationWithIdType(); + } + + /** + * Create an instance of {@link EventLogBookOgType } + * + * @return the event log book og type + */ + public EventLogBookOgType createEventLogBookOgType() { + return new EventLogBookOgType(); + } + + /** + * Create an instance of {@link ClassificationRuleType } + * + * @return the classification rule type + */ + public ClassificationRuleType createClassificationRuleType() { + return new ClassificationRuleType(); + } + + /** + * Create an instance of {@link KeyType } + * + * @return the key type + */ + public KeyType createKeyType() { + return new KeyType(); + } + + /** + * Create an instance of {@link EventType } + * + * @return the event type + */ + public EventType createEventType() { + return new EventType(); + } + + /** + * Create an instance of {@link RelationshipType } + * + * @return the relationship type + */ + public RelationshipType createRelationshipType() { + return new RelationshipType(); + } + + /** + * Create an instance of {@link SignerType } + * + * @return the signer type + */ + public SignerType createSignerType() { + return new SignerType(); + } + + /** + * Create an instance of {@link GpsType } + * + * @return the gps type + */ + public GpsType createGpsType() { + return new GpsType(); + } + + /** + * Create an instance of {@link BinaryDataObjectType } + * + * @return the binary data object type + */ + public BinaryDataObjectType createBinaryDataObjectType() { + return new BinaryDataObjectType(); + } + + /** + * Create an instance of {@link DisseminationRuleType } + * + * @return the dissemination rule type + */ + public DisseminationRuleType createDisseminationRuleType() { + return new DisseminationRuleType(); + } + + /** + * Create an instance of {@link LogBookType } + * + * @return the log book type + */ + public LogBookType createLogBookType() { + return new LogBookType(); + } + + /** + * Create an instance of {@link MeasurementWeightType } + * + * @return the measurement weight type + */ + public MeasurementWeightType createMeasurementWeightType() { + return new MeasurementWeightType(); + } + + /** + * Create an instance of {@link SignatureType } + * + * @return the signature type + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link ValidatorType } + * + * @return the validator type + */ + public ValidatorType createValidatorType() { + return new ValidatorType(); + } + + /** + * Create an instance of {@link CompressedType } + * + * @return the compressed type + */ + public CompressedType createCompressedType() { + return new CompressedType(); + } + + /** + * Create an instance of {@link IdentifierType } + * + * @return the identifier type + */ + public IdentifierType createIdentifierType() { + return new IdentifierType(); + } + + /** + * Create an instance of {@link LogBookOgType } + * + * @return the log book og type + */ + public LogBookOgType createLogBookOgType() { + return new LogBookOgType(); + } + + /** + * Create an instance of {@link ArchiveUnitIdentifierKeyType } + * + * @return the archive unit identifier key type + */ + public ArchiveUnitIdentifierKeyType createArchiveUnitIdentifierKeyType() { + return new ArchiveUnitIdentifierKeyType(); + } + + /** + * Create an instance of {@link ManagementHistoryDataType } + * + * @return the management history data type + */ + public ManagementHistoryDataType createManagementHistoryDataType() { + return new ManagementHistoryDataType(); + } + + /** + * Create an instance of {@link ArchiveUnitType } + * + * @return the archive unit type + */ + public ArchiveUnitType createArchiveUnitType() { + return new ArchiveUnitType(); + } + + /** + * Create an instance of {@link VideoTechnicalMetadataType } + * + * @return the video technical metadata type + */ + public VideoTechnicalMetadataType createVideoTechnicalMetadataType() { + return new VideoTechnicalMetadataType(); + } + + /** + * Create an instance of {@link DocumentTechnicalMetadataType } + * + * @return the document technical metadata type + */ + public DocumentTechnicalMetadataType createDocumentTechnicalMetadataType() { + return new DocumentTechnicalMetadataType(); + } + + /** + * Create an instance of {@link SignatureMessageType } + * + * @return the signature message type + */ + public SignatureMessageType createSignatureMessageType() { + return new SignatureMessageType(); + } + + /** + * Create an instance of {@link StorageRuleType } + * + * @return the storage rule type + */ + public StorageRuleType createStorageRuleType() { + return new StorageRuleType(); + } + + /** + * Create an instance of {@link UpdateOperationType } + * + * @return the update operation type + */ + public UpdateOperationType createUpdateOperationType() { + return new UpdateOperationType(); + } + + /** + * Create an instance of {@link DataObjectRefType } + * + * @return the data object ref type + */ + public DataObjectRefType createDataObjectRefType() { + return new DataObjectRefType(); + } + + /** + * Create an instance of {@link MeasurementType } + * + * @return the measurement type + */ + public MeasurementType createMeasurementType() { + return new MeasurementType(); + } + + /** + * Create an instance of {@link ManagementMetadataType } + * + * @return the management metadata type + */ + public ManagementMetadataType createManagementMetadataType() { + return new ManagementMetadataType(); + } + + /** + * Create an instance of {@link RelatedObjectReferenceType } + * + * @return the related object reference type + */ + public RelatedObjectReferenceType createRelatedObjectReferenceType() { + return new RelatedObjectReferenceType(); + } + + /** + * Create an instance of {@link AuthorizationRequestContentType } + * + * @return the authorization request content type + */ + public AuthorizationRequestContentType createAuthorizationRequestContentType() { + return new AuthorizationRequestContentType(); + } + + /** + * Create an instance of {@link ManagementType } + * + * @return the management type + */ + public ManagementType createManagementType() { + return new ManagementType(); + } + + /** + * Create an instance of {@link DescriptiveTechnicalMetadataType } + * + * @return the descriptive technical metadata type + */ + public DescriptiveTechnicalMetadataType createDescriptiveTechnicalMetadataType() { + return new DescriptiveTechnicalMetadataType(); + } + + /** + * Create an instance of {@link OrganizationType } + * + * @return the organization type + */ + public OrganizationType createOrganizationType() { + return new OrganizationType(); + } + + /** + * Create an instance of {@link RuleIdType } + * + * @return the rule id type + */ + public RuleIdType createRuleIdType() { + return new RuleIdType(); + } + + /** + * Create an instance of {@link MessageDigestBinaryObjectType } + * + * @return the message digest binary object type + */ + public MessageDigestBinaryObjectType createMessageDigestBinaryObjectType() { + return new MessageDigestBinaryObjectType(); + } + + /** + * Create an instance of {@link ToDeleteType } + * + * @return the to delete type + */ + public ToDeleteType createToDeleteType() { + return new ToDeleteType(); + } + + /** + * Create an instance of {@link DimensionsType } + * + * @return the dimensions type + */ + public DimensionsType createDimensionsType() { + return new DimensionsType(); + } + + /** + * Create an instance of {@link AccessRuleType } + * + * @return the access rule type + */ + public AccessRuleType createAccessRuleType() { + return new AccessRuleType(); + } + + /** + * Create an instance of {@link DataObjectPackageType } + * + * @return the data object package type + */ + public DataObjectPackageType createDataObjectPackageType() { + return new DataObjectPackageType(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "OtherDimensionsAbstract") + public JAXBElement createOtherDimensionsAbstract(Object value) { + return new JAXBElement(_OtherDimensionsAbstract_QNAME, Object.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link + * AuthorizationOriginatingAgencyRequestType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "AuthorizationOriginatingAgencyRequest") + public JAXBElement + createAuthorizationOriginatingAgencyRequest(AuthorizationOriginatingAgencyRequestType value) { + return new JAXBElement( + _AuthorizationOriginatingAgencyRequest_QNAME, + AuthorizationOriginatingAgencyRequestType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestReplyType + * }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "ArchiveRestitutionRequestReply") + public JAXBElement createArchiveRestitutionRequestReply( + ArchiveRestitutionRequestReplyType value) { + return new JAXBElement( + _ArchiveRestitutionRequestReply_QNAME, + ArchiveRestitutionRequestReplyType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "ArchiveUnitReferenceAbstract") + public JAXBElement createArchiveUnitReferenceAbstract(Object value) { + return new JAXBElement(_ArchiveUnitReferenceAbstract_QNAME, Object.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestReplyType + * }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "ArchiveTransferRequestReply") + public JAXBElement createArchiveTransferRequestReply( + ArchiveTransferRequestReplyType value) { + return new JAXBElement( + _ArchiveTransferRequestReply_QNAME, ArchiveTransferRequestReplyType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link + * AuthorizationOriginatingAgencyRequestReplyType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "AuthorizationOriginatingAgencyRequestReply") + public JAXBElement + createAuthorizationOriginatingAgencyRequestReply( + AuthorizationOriginatingAgencyRequestReplyType value) { + return new JAXBElement( + _AuthorizationOriginatingAgencyRequestReply_QNAME, + AuthorizationOriginatingAgencyRequestReplyType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestType }{@code + * >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "ArchiveTransferRequest") + public JAXBElement createArchiveTransferRequest( + ArchiveTransferRequestType value) { + return new JAXBElement( + _ArchiveTransferRequest_QNAME, ArchiveTransferRequestType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestType }{@code + * >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "ArchiveDeliveryRequest") + public JAXBElement createArchiveDeliveryRequest( + ArchiveDeliveryRequestType value) { + return new JAXBElement( + _ArchiveDeliveryRequest_QNAME, ArchiveDeliveryRequestType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestType }{@code + * >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "ArchiveRestitutionRequest") + public JAXBElement createArchiveRestitutionRequest( + ArchiveRestitutionRequestType value) { + return new JAXBElement( + _ArchiveRestitutionRequest_QNAME, ArchiveRestitutionRequestType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CodeType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "OtherCodeListAbstract") + public JAXBElement createOtherCodeListAbstract(CodeType value) { + return new JAXBElement(_OtherCodeListAbstract_QNAME, CodeType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link + * AuthorizationControlAuthorityRequestReplyType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "AuthorizationControlAuthorityRequestReply") + public JAXBElement + createAuthorizationControlAuthorityRequestReply( + AuthorizationControlAuthorityRequestReplyType value) { + return new JAXBElement( + _AuthorizationControlAuthorityRequestReply_QNAME, + AuthorizationControlAuthorityRequestReplyType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDestructionNotificationType + * }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "ArchiveDestructionNotification") + public JAXBElement createArchiveDestructionNotification( + ArchiveDestructionNotificationType value) { + return new JAXBElement( + _ArchiveDestructionNotification_QNAME, + ArchiveDestructionNotificationType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "ArchiveTransfer") + public JAXBElement createArchiveTransfer(ArchiveTransferType value) { + return new JAXBElement( + _ArchiveTransfer_QNAME, ArchiveTransferType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "OtherManagementAbstract") + public JAXBElement createOtherManagementAbstract(Object value) { + return new JAXBElement(_OtherManagementAbstract_QNAME, Object.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferReplyType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "ArchiveTransferReply") + public JAXBElement createArchiveTransferReply( + ArchiveTransferReplyType value) { + return new JAXBElement( + _ArchiveTransferReply_QNAME, ArchiveTransferReplyType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "ObjectGroupExtenstionAbstract") + public JAXBElement createObjectGroupExtenstionAbstract(Object value) { + return new JAXBElement(_ObjectGroupExtenstionAbstract_QNAME, Object.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AgentType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "AgentAbstract") + public JAXBElement createAgentAbstract(AgentType value) { + return new JAXBElement(_AgentAbstract_QNAME, AgentType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link OpenType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "OtherCoreTechnicalMetadataAbstract") + public JAXBElement createOtherCoreTechnicalMetadataAbstract(OpenType value) { + return new JAXBElement( + _OtherCoreTechnicalMetadataAbstract_QNAME, OpenType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AcknowledgementType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "Acknowledgement") + public JAXBElement createAcknowledgement(AcknowledgementType value) { + return new JAXBElement( + _Acknowledgement_QNAME, AcknowledgementType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link + * AuthorizationControlAuthorityRequestType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "AuthorizationControlAuthorityRequest") + public JAXBElement + createAuthorizationControlAuthorityRequest(AuthorizationControlAuthorityRequestType value) { + return new JAXBElement( + _AuthorizationControlAuthorityRequest_QNAME, + AuthorizationControlAuthorityRequestType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveModificationNotificationType + * }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "ArchiveModificationNotification") + public JAXBElement createArchiveModificationNotification( + ArchiveModificationNotificationType value) { + return new JAXBElement( + _ArchiveModificationNotification_QNAME, + ArchiveModificationNotificationType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", name = "EventAbstract") + public JAXBElement createEventAbstract(Object value) { + return new JAXBElement(_EventAbstract_QNAME, Object.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestReplyType + * }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "ArchiveDeliveryRequestReply") + public JAXBElement createArchiveDeliveryRequestReply( + ArchiveDeliveryRequestReplyType value) { + return new JAXBElement( + _ArchiveDeliveryRequestReply_QNAME, ArchiveDeliveryRequestReplyType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ObjectGroupRefType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "DataObjectGroup", + scope = ArchiveUnitType.class) + public JAXBElement createArchiveUnitTypeDataObjectGroup( + ObjectGroupRefType value) { + return new JAXBElement( + _ArchiveUnitTypeDataObjectGroup_QNAME, + ObjectGroupRefType.class, + ArchiveUnitType.class, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DataObjectRefType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "DataObjectReference", + scope = ArchiveUnitType.class) + public JAXBElement createArchiveUnitTypeDataObjectReference( + DataObjectRefType value) { + return new JAXBElement( + _ArchiveUnitTypeDataObjectReference_QNAME, + DataObjectRefType.class, + ArchiveUnitType.class, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveUnitType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "ArchiveUnit", + scope = ArchiveUnitType.class) + public JAXBElement createArchiveUnitTypeArchiveUnit(ArchiveUnitType value) { + return new JAXBElement( + _ArchiveUnitTypeArchiveUnit_QNAME, ArchiveUnitType.class, ArchiveUnitType.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + name = "ArchiveUnitRefId", + scope = ToDeleteType.class) + @XmlIDREF + public JAXBElement createToDeleteTypeArchiveUnitRefId(Object value) { + return new JAXBElement( + _ToDeleteTypeArchiveUnitRefId_QNAME, Object.class, ToDeleteType.class, value); + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ObjectGroupRefType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ObjectGroupRefType.java index 8d3eb6f..0a13d7c 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ObjectGroupRefType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ObjectGroupRefType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -13,11 +14,9 @@ /** * Référence à un objet-données ou à un groupe d'objets-données existant. * - *

- * Java class for ObjectGroupRefType complex type. + *

Java class for ObjectGroupRefType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ObjectGroupRefType">
@@ -33,59 +32,54 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ObjectGroupRefType", propOrder = { - "dataObjectReference", - "dataObjectGroupExistingReferenceId" -}) +@XmlType( + name = "ObjectGroupRefType", + propOrder = {"dataObjectReference", "dataObjectGroupExistingReferenceId"}) public class ObjectGroupRefType { - /** - * The Data object reference. - */ - @XmlElement(name = "DataObjectReference") - protected DataObjectRefType dataObjectReference; - /** - * The Data object group existing reference id. - */ - @XmlElement(name = "DataObjectGroupExistingReferenceId", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String dataObjectGroupExistingReferenceId; + /** The Data object reference. */ + @XmlElement(name = "DataObjectReference") + protected DataObjectRefType dataObjectReference; - /** - * Gets the value of the dataObjectReference property. - * - * @return possible object is {@link DataObjectRefType } - */ - public DataObjectRefType getDataObjectReference() { - return dataObjectReference; - } + /** The Data object group existing reference id. */ + @XmlElement(name = "DataObjectGroupExistingReferenceId", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String dataObjectGroupExistingReferenceId; - /** - * Sets the value of the dataObjectReference property. - * - * @param value allowed object is {@link DataObjectRefType } - */ - public void setDataObjectReference(DataObjectRefType value) { - this.dataObjectReference = value; - } + /** + * Gets the value of the dataObjectReference property. + * + * @return possible object is {@link DataObjectRefType } + */ + public DataObjectRefType getDataObjectReference() { + return dataObjectReference; + } - /** - * Gets the value of the dataObjectGroupExistingReferenceId property. - * - * @return possible object is {@link String } - */ - public String getDataObjectGroupExistingReferenceId() { - return dataObjectGroupExistingReferenceId; - } + /** + * Sets the value of the dataObjectReference property. + * + * @param value allowed object is {@link DataObjectRefType } + */ + public void setDataObjectReference(DataObjectRefType value) { + this.dataObjectReference = value; + } - /** - * Sets the value of the dataObjectGroupExistingReferenceId property. - * - * @param value allowed object is {@link String } - */ - public void setDataObjectGroupExistingReferenceId(String value) { - this.dataObjectGroupExistingReferenceId = value; - } + /** + * Gets the value of the dataObjectGroupExistingReferenceId property. + * + * @return possible object is {@link String } + */ + public String getDataObjectGroupExistingReferenceId() { + return dataObjectGroupExistingReferenceId; + } + /** + * Sets the value of the dataObjectGroupExistingReferenceId property. + * + * @param value allowed object is {@link String } + */ + public void setDataObjectGroupExistingReferenceId(String value) { + this.dataObjectGroupExistingReferenceId = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OpenType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OpenType.java index fa66e95..f801fbf 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OpenType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OpenType.java @@ -1,25 +1,23 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; -import org.w3c.dom.Element; - import java.util.ArrayList; import java.util.List; +import org.w3c.dom.Element; /** - *

* Java class for OpenType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="OpenType">
@@ -35,102 +33,94 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "OpenType", propOrder = { - "any" -}) +@XmlType( + name = "OpenType", + propOrder = {"any"}) @XmlSeeAlso({ - ImageTechnicalMetadataType.class, - AudioTechnicalMetadataType.class, - TextTechnicalMetadataType.class, - OrganizationDescriptiveMetadataType.class, - VideoTechnicalMetadataType.class, - DocumentTechnicalMetadataType.class, - SignatureMessageType.class, - DescriptiveTechnicalMetadataType.class + ImageTechnicalMetadataType.class, + AudioTechnicalMetadataType.class, + TextTechnicalMetadataType.class, + OrganizationDescriptiveMetadataType.class, + VideoTechnicalMetadataType.class, + DocumentTechnicalMetadataType.class, + SignatureMessageType.class, + DescriptiveTechnicalMetadataType.class }) public abstract class OpenType { - /** - * The Any. - */ - @XmlAnyElement(lax = true) - protected List any; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - /** - * The Href. - */ - @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") - protected String href; + /** The Any. */ + @XmlAnyElement(lax = true) + protected List any; - /** - * Gets the value of the any 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 any property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getAny().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list null null null null {@link Element } - * {@link Object } - * - * @return the any - */ - public List getAny() { - if (any == null) { - any = new ArrayList(); - } - return this.any; - } + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** The Href. */ + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + protected String href; - /** - * 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 any 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 any property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getAny().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list null null null null {@link Element + * } {@link Object } + * + * @return the any + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); } + return this.any; + } - /** - * Gets the value of the href property. - * - * @return possible object is {@link String } - */ - public String getHref() { - return href; - } + /** + * Gets the value of the id property. + * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } - /** - * Sets the value of the href property. - * - * @param value allowed object is {@link String } - */ - public void setHref(String value) { - this.href = value; - } + /** + * 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 href property. + * + * @return possible object is {@link String } + */ + public String getHref() { + return href; + } + /** + * Sets the value of the href property. + * + * @param value allowed object is {@link String } + */ + public void setHref(String value) { + this.href = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OperationType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OperationType.java index ae441fc..c3a2ab0 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OperationType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OperationType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for OperationType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="OperationType">
@@ -34,43 +32,36 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "OperationType", propOrder = { - "event" -}) +@XmlType( + name = "OperationType", + propOrder = {"event"}) public class OperationType { - /** - * The Event. - */ - @XmlElement(name = "Event") - protected List event; + /** The Event. */ + @XmlElement(name = "Event") + protected List event; - /** - * Gets the value of the event 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 event property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getEvent().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link EventType - * }* - * - * @return the event - */ - public List getEvent() { - if (event == null) { - event = new ArrayList(); - } - return this.event; + /** + * Gets the value of the event 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 event property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getEvent().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link EventType }* + * + * @return the event + */ + public List getEvent() { + if (event == null) { + event = new ArrayList(); } - + return this.event; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OrganizationDescriptiveMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OrganizationDescriptiveMetadataType.java index 0fb69c0..e34a0ee 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OrganizationDescriptiveMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OrganizationDescriptiveMetadataType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -13,11 +14,9 @@ /** * Contient toutes les métadonnées de description des organisations. * - *

- * Java class for OrganizationDescriptiveMetadataType complex type. + *

Java class for OrganizationDescriptiveMetadataType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="OrganizationDescriptiveMetadataType">
@@ -30,7 +29,4 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "OrganizationDescriptiveMetadataType")
-public class OrganizationDescriptiveMetadataType
-        extends OpenType {
-
-}
+public class OrganizationDescriptiveMetadataType extends OpenType {}
diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OrganizationType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OrganizationType.java
index cf9c7d8..e34edde 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OrganizationType.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OrganizationType.java
@@ -1,19 +1,18 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
 package fr.gouv.culture.archivesdefrance.seda.v21;
 
 import jakarta.xml.bind.annotation.*;
 
 /**
- * 

* Java class for OrganizationType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="OrganizationType">
@@ -29,61 +28,53 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "OrganizationType", propOrder = { - "identifier", - "organizationDescriptiveMetadata" -}) -@XmlSeeAlso({ - OrganizationWithIdType.class -}) +@XmlType( + name = "OrganizationType", + propOrder = {"identifier", "organizationDescriptiveMetadata"}) +@XmlSeeAlso({OrganizationWithIdType.class}) public class OrganizationType { - /** - * The Identifier. - */ - @XmlElement(name = "Identifier", required = true) - protected IdentifierType identifier; - /** - * The Organization descriptive metadata. - */ - @XmlElement(name = "OrganizationDescriptiveMetadata") - protected OrganizationDescriptiveMetadataType organizationDescriptiveMetadata; + /** The Identifier. */ + @XmlElement(name = "Identifier", required = true) + protected IdentifierType identifier; - /** - * Gets the value of the identifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getIdentifier() { - return identifier; - } + /** The Organization descriptive metadata. */ + @XmlElement(name = "OrganizationDescriptiveMetadata") + protected OrganizationDescriptiveMetadataType organizationDescriptiveMetadata; - /** - * Sets the value of the identifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setIdentifier(IdentifierType value) { - this.identifier = value; - } + /** + * Gets the value of the identifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getIdentifier() { + return identifier; + } - /** - * Gets the value of the organizationDescriptiveMetadata property. - * - * @return possible object is {@link OrganizationDescriptiveMetadataType } - */ - public OrganizationDescriptiveMetadataType getOrganizationDescriptiveMetadata() { - return organizationDescriptiveMetadata; - } + /** + * Sets the value of the identifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setIdentifier(IdentifierType value) { + this.identifier = value; + } - /** - * Sets the value of the organizationDescriptiveMetadata property. - * - * @param value allowed object is {@link OrganizationDescriptiveMetadataType - * } - */ - public void setOrganizationDescriptiveMetadata(OrganizationDescriptiveMetadataType value) { - this.organizationDescriptiveMetadata = value; - } + /** + * Gets the value of the organizationDescriptiveMetadata property. + * + * @return possible object is {@link OrganizationDescriptiveMetadataType } + */ + public OrganizationDescriptiveMetadataType getOrganizationDescriptiveMetadata() { + return organizationDescriptiveMetadata; + } + /** + * Sets the value of the organizationDescriptiveMetadata property. + * + * @param value allowed object is {@link OrganizationDescriptiveMetadataType } + */ + public void setOrganizationDescriptiveMetadata(OrganizationDescriptiveMetadataType value) { + this.organizationDescriptiveMetadata = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OrganizationWithIdType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OrganizationWithIdType.java index 5a17fe5..d7f0948 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OrganizationWithIdType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/OrganizationWithIdType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for OrganizationWithIdType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="OrganizationWithIdType">
@@ -29,34 +28,30 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "OrganizationWithIdType")
-public class OrganizationWithIdType
-        extends OrganizationType {
+public class OrganizationWithIdType extends OrganizationType {
 
-    /**
-     * The Id.
-     */
-    @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace")
-    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
-    @XmlID
-    @XmlSchemaType(name = "ID")
-    protected String id;
+  /** The Id. */
+  @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace")
+  @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+  @XmlID
+  @XmlSchemaType(name = "ID")
+  protected String id;
 
-    /**
-     * 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 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/fr/gouv/culture/archivesdefrance/seda/v21/PhysicalDataObjectType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/PhysicalDataObjectType.java
index 43c53e6..99af899 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/PhysicalDataObjectType.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/PhysicalDataObjectType.java
@@ -1,23 +1,21 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
 package fr.gouv.culture.archivesdefrance.seda.v21;
 
 import jakarta.xml.bind.annotation.*;
-import org.w3c.dom.Element;
-
 import java.util.ArrayList;
 import java.util.List;
+import org.w3c.dom.Element;
 
 /**
- * 

* Java class for PhysicalDataObjectType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="PhysicalDataObjectType">
@@ -33,92 +31,81 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "PhysicalDataObjectType", propOrder = { - "physicalId", - "physicalDimensions", - "any" -}) -public class PhysicalDataObjectType - extends MinimalDataObjectType { +@XmlType( + name = "PhysicalDataObjectType", + propOrder = {"physicalId", "physicalDimensions", "any"}) +public class PhysicalDataObjectType extends MinimalDataObjectType { - /** - * The Physical id. - */ - @XmlElement(name = "PhysicalId") - protected IdentifierType physicalId; - /** - * The Physical dimensions. - */ - @XmlElement(name = "PhysicalDimensions") - protected DimensionsType physicalDimensions; - /** - * The Any. - */ - @XmlAnyElement(lax = true) - protected List any; + /** The Physical id. */ + @XmlElement(name = "PhysicalId") + protected IdentifierType physicalId; - /** - * Gets the value of the physicalId property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getPhysicalId() { - return physicalId; - } + /** The Physical dimensions. */ + @XmlElement(name = "PhysicalDimensions") + protected DimensionsType physicalDimensions; - /** - * Sets the value of the physicalId property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setPhysicalId(IdentifierType value) { - this.physicalId = value; - } + /** The Any. */ + @XmlAnyElement(lax = true) + protected List any; - /** - * Gets the value of the physicalDimensions property. - * - * @return possible object is {@link DimensionsType } - */ - public DimensionsType getPhysicalDimensions() { - return physicalDimensions; - } + /** + * Gets the value of the physicalId property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getPhysicalId() { + return physicalId; + } - /** - * Sets the value of the physicalDimensions property. - * - * @param value allowed object is {@link DimensionsType } - */ - public void setPhysicalDimensions(DimensionsType value) { - this.physicalDimensions = value; - } + /** + * Sets the value of the physicalId property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setPhysicalId(IdentifierType value) { + this.physicalId = value; + } - /** - * Gets the value of the any 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 any property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getAny().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list null null null null {@link Element } - * {@link Object } - * - * @return the any - */ - public List getAny() { - if (any == null) { - any = new ArrayList(); - } - return this.any; - } + /** + * Gets the value of the physicalDimensions property. + * + * @return possible object is {@link DimensionsType } + */ + public DimensionsType getPhysicalDimensions() { + return physicalDimensions; + } + /** + * Sets the value of the physicalDimensions property. + * + * @param value allowed object is {@link DimensionsType } + */ + public void setPhysicalDimensions(DimensionsType value) { + this.physicalDimensions = value; + } + + /** + * Gets the value of the any 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 any property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getAny().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list null null null null {@link Element + * } {@link Object } + * + * @return the any + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ReferencedObjectType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ReferencedObjectType.java index 0d9788b..bd5c097 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ReferencedObjectType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ReferencedObjectType.java @@ -1,21 +1,21 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; /** - * Contient la référence à l'objet signé (et son empreinte jusqu'à la fin de la phase de versement dans le SAE). + * Contient la référence à l'objet signé (et son empreinte jusqu'à la fin de la phase de versement + * dans le SAE). * - *

- * Java class for ReferencedObjectType complex type. + *

Java class for ReferencedObjectType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ReferencedObjectType">
@@ -31,59 +31,54 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ReferencedObjectType", propOrder = { - "signedObjectId", - "signedObjectDigest" -}) +@XmlType( + name = "ReferencedObjectType", + propOrder = {"signedObjectId", "signedObjectDigest"}) public class ReferencedObjectType { - /** - * The Signed object id. - */ - @XmlElement(name = "SignedObjectId", required = true) - @XmlIDREF - @XmlSchemaType(name = "IDREF") - protected Object signedObjectId; - /** - * The Signed object digest. - */ - @XmlElement(name = "SignedObjectDigest", required = true) - protected MessageDigestBinaryObjectType signedObjectDigest; + /** The Signed object id. */ + @XmlElement(name = "SignedObjectId", required = true) + @XmlIDREF + @XmlSchemaType(name = "IDREF") + protected Object signedObjectId; - /** - * Gets the value of the signedObjectId property. - * - * @return possible object is {@link Object } - */ - public Object getSignedObjectId() { - return signedObjectId; - } + /** The Signed object digest. */ + @XmlElement(name = "SignedObjectDigest", required = true) + protected MessageDigestBinaryObjectType signedObjectDigest; - /** - * Sets the value of the signedObjectId property. - * - * @param value allowed object is {@link Object } - */ - public void setSignedObjectId(Object value) { - this.signedObjectId = value; - } + /** + * Gets the value of the signedObjectId property. + * + * @return possible object is {@link Object } + */ + public Object getSignedObjectId() { + return signedObjectId; + } - /** - * Gets the value of the signedObjectDigest property. - * - * @return possible object is {@link MessageDigestBinaryObjectType } - */ - public MessageDigestBinaryObjectType getSignedObjectDigest() { - return signedObjectDigest; - } + /** + * Sets the value of the signedObjectId property. + * + * @param value allowed object is {@link Object } + */ + public void setSignedObjectId(Object value) { + this.signedObjectId = value; + } - /** - * Sets the value of the signedObjectDigest property. - * - * @param value allowed object is {@link MessageDigestBinaryObjectType } - */ - public void setSignedObjectDigest(MessageDigestBinaryObjectType value) { - this.signedObjectDigest = value; - } + /** + * Gets the value of the signedObjectDigest property. + * + * @return possible object is {@link MessageDigestBinaryObjectType } + */ + public MessageDigestBinaryObjectType getSignedObjectDigest() { + return signedObjectDigest; + } + /** + * Sets the value of the signedObjectDigest property. + * + * @param value allowed object is {@link MessageDigestBinaryObjectType } + */ + public void setSignedObjectDigest(MessageDigestBinaryObjectType value) { + this.signedObjectDigest = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/RelatedObjectReferenceType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/RelatedObjectReferenceType.java index af1b83b..1702fd3 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/RelatedObjectReferenceType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/RelatedObjectReferenceType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for RelatedObjectReferenceType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="RelatedObjectReferenceType">
@@ -38,179 +36,153 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "RelatedObjectReferenceType", propOrder = { - "isVersionOf", - "replaces", - "requires", - "isPartOf", - "references" -}) +@XmlType( + name = "RelatedObjectReferenceType", + propOrder = {"isVersionOf", "replaces", "requires", "isPartOf", "references"}) public class RelatedObjectReferenceType { - /** - * The Is version of. - */ - @XmlElement(name = "IsVersionOf") - protected List isVersionOf; - /** - * The Replaces. - */ - @XmlElement(name = "Replaces") - protected List replaces; - /** - * The Requires. - */ - @XmlElement(name = "Requires") - protected List requires; - /** - * The Is part of. - */ - @XmlElement(name = "IsPartOf") - protected List isPartOf; - /** - * The References. - */ - @XmlElement(name = "References") - protected List references; + /** The Is version of. */ + @XmlElement(name = "IsVersionOf") + protected List isVersionOf; - /** - * Gets the value of the isVersionOf 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 isVersionOf property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getIsVersionOf().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link DataObjectOrArchiveUnitReferenceType - * }* - * - * @return the is version of - */ - public List getIsVersionOf() { - if (isVersionOf == null) { - isVersionOf = new ArrayList(); - } - return this.isVersionOf; - } + /** The Replaces. */ + @XmlElement(name = "Replaces") + protected List replaces; + + /** The Requires. */ + @XmlElement(name = "Requires") + protected List requires; - /** - * Gets the value of the replaces 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 replaces property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getReplaces().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link DataObjectOrArchiveUnitReferenceType - * }* - * - * @return the replaces - */ - public List getReplaces() { - if (replaces == null) { - replaces = new ArrayList(); - } - return this.replaces; + /** The Is part of. */ + @XmlElement(name = "IsPartOf") + protected List isPartOf; + + /** The References. */ + @XmlElement(name = "References") + protected List references; + + /** + * Gets the value of the isVersionOf 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 isVersionOf property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getIsVersionOf().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link + * DataObjectOrArchiveUnitReferenceType }* + * + * @return the is version of + */ + public List getIsVersionOf() { + if (isVersionOf == null) { + isVersionOf = new ArrayList(); } + return this.isVersionOf; + } - /** - * Gets the value of the requires 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 requires property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRequires().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link DataObjectOrArchiveUnitReferenceType - * }* - * - * @return the requires - */ - public List getRequires() { - if (requires == null) { - requires = new ArrayList(); - } - return this.requires; + /** + * Gets the value of the replaces 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 replaces property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getReplaces().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link + * DataObjectOrArchiveUnitReferenceType }* + * + * @return the replaces + */ + public List getReplaces() { + if (replaces == null) { + replaces = new ArrayList(); } + return this.replaces; + } - /** - * Gets the value of the isPartOf 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 isPartOf property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getIsPartOf().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link DataObjectOrArchiveUnitReferenceType - * }* - * - * @return the is part of - */ - public List getIsPartOf() { - if (isPartOf == null) { - isPartOf = new ArrayList(); - } - return this.isPartOf; + /** + * Gets the value of the requires 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 requires property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getRequires().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link + * DataObjectOrArchiveUnitReferenceType }* + * + * @return the requires + */ + public List getRequires() { + if (requires == null) { + requires = new ArrayList(); } + return this.requires; + } - /** - * Gets the value of the references 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 references property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getReferences().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link DataObjectOrArchiveUnitReferenceType - * }* - * - * @return the references - */ - public List getReferences() { - if (references == null) { - references = new ArrayList(); - } - return this.references; + /** + * Gets the value of the isPartOf 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 isPartOf property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getIsPartOf().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link + * DataObjectOrArchiveUnitReferenceType }* + * + * @return the is part of + */ + public List getIsPartOf() { + if (isPartOf == null) { + isPartOf = new ArrayList(); } + return this.isPartOf; + } + /** + * Gets the value of the references 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 references property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getReferences().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link + * DataObjectOrArchiveUnitReferenceType }* + * + * @return the references + */ + public List getReferences() { + if (references == null) { + references = new ArrayList(); + } + return this.references; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/RelationshipType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/RelationshipType.java index c694095..9112bf5 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/RelationshipType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/RelationshipType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for RelationshipType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="RelationshipType">
@@ -32,54 +31,50 @@
 @XmlType(name = "RelationshipType")
 public class RelationshipType {
 
-    /**
-     * The Target.
-     */
-    @XmlAttribute(name = "target", required = true)
-    @XmlIDREF
-    @XmlSchemaType(name = "IDREF")
-    protected Object target;
-    /**
-     * The Type.
-     */
-    @XmlAttribute(name = "type", required = true)
-    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
-    protected String type;
+  /** The Target. */
+  @XmlAttribute(name = "target", required = true)
+  @XmlIDREF
+  @XmlSchemaType(name = "IDREF")
+  protected Object target;
 
-    /**
-     * Gets the value of the target property.
-     *
-     * @return possible object is {@link Object }
-     */
-    public Object getTarget() {
-        return target;
-    }
+  /** The Type. */
+  @XmlAttribute(name = "type", required = true)
+  @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+  protected String type;
 
-    /**
-     * Sets the value of the target property.
-     *
-     * @param value allowed object is {@link Object }
-     */
-    public void setTarget(Object value) {
-        this.target = value;
-    }
+  /**
+   * Gets the value of the target property.
+   *
+   * @return possible object is {@link Object }
+   */
+  public Object getTarget() {
+    return target;
+  }
 
-    /**
-     * Gets the value of the type property.
-     *
-     * @return possible object is {@link String }
-     */
-    public String getType() {
-        return type;
-    }
+  /**
+   * Sets the value of the target property.
+   *
+   * @param value allowed object is {@link Object }
+   */
+  public void setTarget(Object value) {
+    this.target = value;
+  }
 
-    /**
-     * 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 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/fr/gouv/culture/archivesdefrance/seda/v21/ReuseRuleType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ReuseRuleType.java
index 3ca0f3a..3100362 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ReuseRuleType.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ReuseRuleType.java
@@ -1,25 +1,24 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
 package fr.gouv.culture.archivesdefrance.seda.v21;
 
 import jakarta.xml.bind.annotation.*;
-
-import javax.xml.datatype.XMLGregorianCalendar;
 import java.util.ArrayList;
 import java.util.List;
+import javax.xml.datatype.XMLGregorianCalendar;
 
 /**
- * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de cet ArchiveUnit.
+ * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de
+ * cet ArchiveUnit.
  *
- * 

- * Java class for ReuseRuleType complex type. + *

Java class for ReuseRuleType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ReuseRuleType">
@@ -41,104 +40,90 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ReuseRuleType", propOrder = { - "ruleAndStartDate", - "preventInheritance", - "refNonRuleId" -}) +@XmlType( + name = "ReuseRuleType", + propOrder = {"ruleAndStartDate", "preventInheritance", "refNonRuleId"}) public class ReuseRuleType { - /** - * The Rule and start date. - */ - @XmlElements({ - @XmlElement(name = "Rule", type = RuleIdType.class), - @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) - }) - protected List ruleAndStartDate; - /** - * The Prevent inheritance. - */ - @XmlElement(name = "PreventInheritance", defaultValue = "false") - protected Boolean preventInheritance; - /** - * The Ref non rule id. - */ - @XmlElement(name = "RefNonRuleId") - protected List refNonRuleId; + /** The Rule and start date. */ + @XmlElements({ + @XmlElement(name = "Rule", type = RuleIdType.class), + @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) + }) + protected List ruleAndStartDate; - /** - * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRuleAndStartDate().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list null null null null {@link RuleIdType } - * {@link XMLGregorianCalendar } - * - * @return the rule and start date - */ - public List getRuleAndStartDate() { - if (ruleAndStartDate == null) { - ruleAndStartDate = new ArrayList(); - } - return this.ruleAndStartDate; - } + /** The Prevent inheritance. */ + @XmlElement(name = "PreventInheritance", defaultValue = "false") + protected Boolean preventInheritance; - /** - * Gets the value of the preventInheritance property. - * - * @return possible object is {@link Boolean } - */ - public Boolean isPreventInheritance() { - return preventInheritance; - } + /** The Ref non rule id. */ + @XmlElement(name = "RefNonRuleId") + protected List refNonRuleId; - /** - * Sets the value of the preventInheritance property. - * - * @param value allowed object is {@link Boolean } - */ - public void setPreventInheritance(Boolean value) { - this.preventInheritance = value; + /** + * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getRuleAndStartDate().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list null null null null {@link + * RuleIdType } {@link XMLGregorianCalendar } + * + * @return the rule and start date + */ + public List getRuleAndStartDate() { + if (ruleAndStartDate == null) { + ruleAndStartDate = new ArrayList(); } + return this.ruleAndStartDate; + } - /** - * Gets the value of the refNonRuleId 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 refNonRuleId property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRefNonRuleId().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link RuleIdType - * }* - * - * @return the ref non rule id - */ - public List getRefNonRuleId() { - if (refNonRuleId == null) { - refNonRuleId = new ArrayList(); - } - return this.refNonRuleId; - } + /** + * Gets the value of the preventInheritance property. + * + * @return possible object is {@link Boolean } + */ + public Boolean isPreventInheritance() { + return preventInheritance; + } + /** + * Sets the value of the preventInheritance property. + * + * @param value allowed object is {@link Boolean } + */ + public void setPreventInheritance(Boolean value) { + this.preventInheritance = value; + } + + /** + * Gets the value of the refNonRuleId 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 refNonRuleId property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getRefNonRuleId().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link RuleIdType }* + * + * @return the ref non rule id + */ + public List getRefNonRuleId() { + if (refNonRuleId == null) { + refNonRuleId = new ArrayList(); + } + return this.refNonRuleId; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/RuleIdType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/RuleIdType.java index 3b4d709..1ed8fa9 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/RuleIdType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/RuleIdType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -13,11 +14,9 @@ /** * Identifiant de la règle de gestion. * - *

- * Java class for RuleIdType complex type. + *

Java class for RuleIdType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="RuleIdType">
@@ -30,60 +29,56 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "RuleIdType", propOrder = { - "value" -}) +@XmlType( + name = "RuleIdType", + propOrder = {"value"}) public class RuleIdType { - /** - * The Value. - */ - @XmlValue - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String value; - /** - * The Id. - */ - @XmlAttribute(name = "id") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + /** The Value. */ + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String value; - /** - * Elément ne pouvant être vide. - * - * @return possible object is {@link String } - */ - public String getValue() { - return value; - } + /** The Id. */ + @XmlAttribute(name = "id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Sets the value of the value property. - * - * @param value allowed object is {@link String } - */ - public void setValue(String value) { - this.value = value; - } + /** + * Elément ne pouvant être vide. + * + * @return possible object is {@link String } + */ + public String getValue() { + return value; + } - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link String } + */ + public void setValue(String value) { + this.value = value; + } - /** - * 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 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/fr/gouv/culture/archivesdefrance/seda/v21/SignatureMessageType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/SignatureMessageType.java index d457981..7c200e1 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/SignatureMessageType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/SignatureMessageType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -13,11 +14,9 @@ /** * Contient toutes les métadonnées dsur la signature. * - *

- * Java class for SignatureMessageType complex type. + *

Java class for SignatureMessageType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="SignatureMessageType">
@@ -30,7 +29,4 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "SignatureMessageType")
-public class SignatureMessageType
-        extends OpenType {
-
-}
+public class SignatureMessageType extends OpenType {}
diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/SignatureType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/SignatureType.java
index faddb09..7018496 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/SignatureType.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/SignatureType.java
@@ -1,8 +1,9 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
 package fr.gouv.culture.archivesdefrance.seda.v21;
 
@@ -10,16 +11,13 @@
 import jakarta.xml.bind.annotation.XmlAccessorType;
 import jakarta.xml.bind.annotation.XmlElement;
 import jakarta.xml.bind.annotation.XmlType;
-
 import java.util.ArrayList;
 import java.util.List;
 
 /**
- * 

* Java class for SignatureType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="SignatureType">
@@ -37,115 +35,102 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "SignatureType", propOrder = { - "signer", - "validator", - "masterdata", - "referencedObject" -}) +@XmlType( + name = "SignatureType", + propOrder = {"signer", "validator", "masterdata", "referencedObject"}) public class SignatureType { - /** - * The Signer. - */ - @XmlElement(name = "Signer", required = true) - protected List signer; - /** - * The Validator. - */ - @XmlElement(name = "Validator", required = true) - protected ValidatorType validator; - /** - * The Masterdata. - */ - @XmlElement(name = "Masterdata") - protected CodeType masterdata; - /** - * The Referenced object. - */ - @XmlElement(name = "ReferencedObject", required = true) - protected ReferencedObjectType referencedObject; + /** The Signer. */ + @XmlElement(name = "Signer", required = true) + protected List signer; - /** - * Gets the value of the signer 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 signer property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSigner().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link SignerType - * }* - * - * @return the signer - */ - public List getSigner() { - if (signer == null) { - signer = new ArrayList(); - } - return this.signer; - } + /** The Validator. */ + @XmlElement(name = "Validator", required = true) + protected ValidatorType validator; - /** - * Gets the value of the validator property. - * - * @return possible object is {@link ValidatorType } - */ - public ValidatorType getValidator() { - return validator; - } + /** The Masterdata. */ + @XmlElement(name = "Masterdata") + protected CodeType masterdata; - /** - * Sets the value of the validator property. - * - * @param value allowed object is {@link ValidatorType } - */ - public void setValidator(ValidatorType value) { - this.validator = value; - } + /** The Referenced object. */ + @XmlElement(name = "ReferencedObject", required = true) + protected ReferencedObjectType referencedObject; - /** - * Gets the value of the masterdata property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getMasterdata() { - return masterdata; + /** + * Gets the value of the signer 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 signer property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getSigner().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link SignerType }* + * + * @return the signer + */ + public List getSigner() { + if (signer == null) { + signer = new ArrayList(); } + return this.signer; + } - /** - * Sets the value of the masterdata property. - * - * @param value allowed object is {@link CodeType } - */ - public void setMasterdata(CodeType value) { - this.masterdata = value; - } + /** + * Gets the value of the validator property. + * + * @return possible object is {@link ValidatorType } + */ + public ValidatorType getValidator() { + return validator; + } - /** - * Gets the value of the referencedObject property. - * - * @return possible object is {@link ReferencedObjectType } - */ - public ReferencedObjectType getReferencedObject() { - return referencedObject; - } + /** + * Sets the value of the validator property. + * + * @param value allowed object is {@link ValidatorType } + */ + public void setValidator(ValidatorType value) { + this.validator = value; + } - /** - * Sets the value of the referencedObject property. - * - * @param value allowed object is {@link ReferencedObjectType } - */ - public void setReferencedObject(ReferencedObjectType value) { - this.referencedObject = value; - } + /** + * Gets the value of the masterdata property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getMasterdata() { + return masterdata; + } + + /** + * Sets the value of the masterdata property. + * + * @param value allowed object is {@link CodeType } + */ + public void setMasterdata(CodeType value) { + this.masterdata = value; + } + + /** + * Gets the value of the referencedObject property. + * + * @return possible object is {@link ReferencedObjectType } + */ + public ReferencedObjectType getReferencedObject() { + return referencedObject; + } + /** + * Sets the value of the referencedObject property. + * + * @param value allowed object is {@link ReferencedObjectType } + */ + public void setReferencedObject(ReferencedObjectType value) { + this.referencedObject = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/SignerType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/SignerType.java index 215a75b..451906b 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/SignerType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/SignerType.java @@ -1,25 +1,23 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - -import javax.xml.datatype.XMLGregorianCalendar; import java.util.ArrayList; import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for SignerType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="SignerType">
@@ -32,518 +30,474 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "SignerType", propOrder = { - "firstName", - "birthName", - "fullName", - "givenName", - "gender", - "birthDate", - "birthPlace", - "deathDate", - "deathPlace", - "nationality", - "corpname", - "identifier", - "signingTime", - "function", - "activity", - "position", - "role", - "mandate" -}) +@XmlType( + name = "SignerType", + propOrder = { + "firstName", + "birthName", + "fullName", + "givenName", + "gender", + "birthDate", + "birthPlace", + "deathDate", + "deathPlace", + "nationality", + "corpname", + "identifier", + "signingTime", + "function", + "activity", + "position", + "role", + "mandate" + }) public class SignerType { - /** - * The First name. - */ - @XmlElement(name = "FirstName") - protected String firstName; - /** - * The Birth name. - */ - @XmlElement(name = "BirthName") - protected String birthName; - /** - * The Full name. - */ - @XmlElement(name = "FullName") - protected String fullName; - /** - * The Given name. - */ - @XmlElement(name = "GivenName") - protected String givenName; - /** - * The Gender. - */ - @XmlElement(name = "Gender") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String gender; - /** - * The Birth date. - */ - @XmlElement(name = "BirthDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar birthDate; - /** - * The Birth place. - */ - @XmlElement(name = "BirthPlace") - protected BirthOrDeathPlaceType birthPlace; - /** - * The Death date. - */ - @XmlElement(name = "DeathDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar deathDate; - /** - * The Death place. - */ - @XmlElement(name = "DeathPlace") - protected BirthOrDeathPlaceType deathPlace; - /** - * The Nationality. - */ - @XmlElement(name = "Nationality") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List nationality; - /** - * The Corpname. - */ - @XmlElement(name = "Corpname") - protected String corpname; - /** - * The Identifier. - */ - @XmlElement(name = "Identifier") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List identifier; - /** - * The Signing time. - */ - @XmlElement(name = "SigningTime", required = true) - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar signingTime; - /** - * The Function. - */ - @XmlElement(name = "Function") - protected List function; - /** - * The Activity. - */ - @XmlElement(name = "Activity") - protected List activity; - /** - * The Position. - */ - @XmlElement(name = "Position") - protected List position; - /** - * The Role. - */ - @XmlElement(name = "Role") - protected List role; - /** - * The Mandate. - */ - @XmlElement(name = "Mandate") - protected List mandate; - - /** - * Gets the value of the firstName property. - * - * @return possible object is {@link String } - */ - public String getFirstName() { - return firstName; - } - - /** - * Sets the value of the firstName property. - * - * @param value allowed object is {@link String } - */ - public void setFirstName(String value) { - this.firstName = value; - } - - /** - * Gets the value of the birthName property. - * - * @return possible object is {@link String } - */ - public String getBirthName() { - return birthName; - } - - /** - * Sets the value of the birthName property. - * - * @param value allowed object is {@link String } - */ - public void setBirthName(String value) { - this.birthName = value; - } - - /** - * Gets the value of the fullName property. - * - * @return possible object is {@link String } - */ - public String getFullName() { - return fullName; - } - - /** - * Sets the value of the fullName property. - * - * @param value allowed object is {@link String } - */ - public void setFullName(String value) { - this.fullName = value; - } - - /** - * Gets the value of the givenName property. - * - * @return possible object is {@link String } - */ - public String getGivenName() { - return givenName; - } - - /** - * Sets the value of the givenName property. - * - * @param value allowed object is {@link String } - */ - public void setGivenName(String value) { - this.givenName = value; - } - - /** - * Gets the value of the gender property. - * - * @return possible object is {@link String } - */ - public String getGender() { - return gender; - } - - /** - * Sets the value of the gender property. - * - * @param value allowed object is {@link String } - */ - public void setGender(String value) { - this.gender = value; - } - - /** - * Gets the value of the birthDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getBirthDate() { - return birthDate; - } - - /** - * Sets the value of the birthDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setBirthDate(XMLGregorianCalendar value) { - this.birthDate = value; - } - - /** - * Gets the value of the birthPlace property. - * - * @return possible object is {@link BirthOrDeathPlaceType } - */ - public BirthOrDeathPlaceType getBirthPlace() { - return birthPlace; + /** The First name. */ + @XmlElement(name = "FirstName") + protected String firstName; + + /** The Birth name. */ + @XmlElement(name = "BirthName") + protected String birthName; + + /** The Full name. */ + @XmlElement(name = "FullName") + protected String fullName; + + /** The Given name. */ + @XmlElement(name = "GivenName") + protected String givenName; + + /** The Gender. */ + @XmlElement(name = "Gender") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String gender; + + /** The Birth date. */ + @XmlElement(name = "BirthDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar birthDate; + + /** The Birth place. */ + @XmlElement(name = "BirthPlace") + protected BirthOrDeathPlaceType birthPlace; + + /** The Death date. */ + @XmlElement(name = "DeathDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar deathDate; + + /** The Death place. */ + @XmlElement(name = "DeathPlace") + protected BirthOrDeathPlaceType deathPlace; + + /** The Nationality. */ + @XmlElement(name = "Nationality") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List nationality; + + /** The Corpname. */ + @XmlElement(name = "Corpname") + protected String corpname; + + /** The Identifier. */ + @XmlElement(name = "Identifier") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List identifier; + + /** The Signing time. */ + @XmlElement(name = "SigningTime", required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar signingTime; + + /** The Function. */ + @XmlElement(name = "Function") + protected List function; + + /** The Activity. */ + @XmlElement(name = "Activity") + protected List activity; + + /** The Position. */ + @XmlElement(name = "Position") + protected List position; + + /** The Role. */ + @XmlElement(name = "Role") + protected List role; + + /** The Mandate. */ + @XmlElement(name = "Mandate") + protected List mandate; + + /** + * Gets the value of the firstName property. + * + * @return possible object is {@link String } + */ + public String getFirstName() { + return firstName; + } + + /** + * Sets the value of the firstName property. + * + * @param value allowed object is {@link String } + */ + public void setFirstName(String value) { + this.firstName = value; + } + + /** + * Gets the value of the birthName property. + * + * @return possible object is {@link String } + */ + public String getBirthName() { + return birthName; + } + + /** + * Sets the value of the birthName property. + * + * @param value allowed object is {@link String } + */ + public void setBirthName(String value) { + this.birthName = value; + } + + /** + * Gets the value of the fullName property. + * + * @return possible object is {@link String } + */ + public String getFullName() { + return fullName; + } + + /** + * Sets the value of the fullName property. + * + * @param value allowed object is {@link String } + */ + public void setFullName(String value) { + this.fullName = value; + } + + /** + * Gets the value of the givenName property. + * + * @return possible object is {@link String } + */ + public String getGivenName() { + return givenName; + } + + /** + * Sets the value of the givenName property. + * + * @param value allowed object is {@link String } + */ + public void setGivenName(String value) { + this.givenName = value; + } + + /** + * Gets the value of the gender property. + * + * @return possible object is {@link String } + */ + public String getGender() { + return gender; + } + + /** + * Sets the value of the gender property. + * + * @param value allowed object is {@link String } + */ + public void setGender(String value) { + this.gender = value; + } + + /** + * Gets the value of the birthDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getBirthDate() { + return birthDate; + } + + /** + * Sets the value of the birthDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setBirthDate(XMLGregorianCalendar value) { + this.birthDate = value; + } + + /** + * Gets the value of the birthPlace property. + * + * @return possible object is {@link BirthOrDeathPlaceType } + */ + public BirthOrDeathPlaceType getBirthPlace() { + return birthPlace; + } + + /** + * Sets the value of the birthPlace property. + * + * @param value allowed object is {@link BirthOrDeathPlaceType } + */ + public void setBirthPlace(BirthOrDeathPlaceType value) { + this.birthPlace = value; + } + + /** + * Gets the value of the deathDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getDeathDate() { + return deathDate; + } + + /** + * Sets the value of the deathDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setDeathDate(XMLGregorianCalendar value) { + this.deathDate = value; + } + + /** + * Gets the value of the deathPlace property. + * + * @return possible object is {@link BirthOrDeathPlaceType } + */ + public BirthOrDeathPlaceType getDeathPlace() { + return deathPlace; + } + + /** + * Sets the value of the deathPlace property. + * + * @param value allowed object is {@link BirthOrDeathPlaceType } + */ + public void setDeathPlace(BirthOrDeathPlaceType value) { + this.deathPlace = value; + } + + /** + * Gets the value of the nationality 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 nationality property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getNationality().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link String } + * + * @return the nationality + */ + public List getNationality() { + if (nationality == null) { + nationality = new ArrayList(); } - - /** - * Sets the value of the birthPlace property. - * - * @param value allowed object is {@link BirthOrDeathPlaceType } - */ - public void setBirthPlace(BirthOrDeathPlaceType value) { - this.birthPlace = value; - } - - /** - * Gets the value of the deathDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getDeathDate() { - return deathDate; - } - - /** - * Sets the value of the deathDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setDeathDate(XMLGregorianCalendar value) { - this.deathDate = value; - } - - /** - * Gets the value of the deathPlace property. - * - * @return possible object is {@link BirthOrDeathPlaceType } - */ - public BirthOrDeathPlaceType getDeathPlace() { - return deathPlace; + return this.nationality; + } + + /** + * Gets the value of the corpname property. + * + * @return possible object is {@link String } + */ + public String getCorpname() { + return corpname; + } + + /** + * Sets the value of the corpname property. + * + * @param value allowed object is {@link String } + */ + public void setCorpname(String value) { + this.corpname = value; + } + + /** + * Gets the value of the identifier property. + * + *

This accessor method returns a reference to the live list, not a snapshot. Therefore any + * modification you make to the returned list will be present inside the JAXB object. This is why + * there is not a set method for the identifier property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getIdentifier().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link String } + * + * @return the identifier + */ + public List getIdentifier() { + if (identifier == null) { + identifier = new ArrayList(); } - - /** - * Sets the value of the deathPlace property. - * - * @param value allowed object is {@link BirthOrDeathPlaceType } - */ - public void setDeathPlace(BirthOrDeathPlaceType value) { - this.deathPlace = value; + return this.identifier; + } + + /** + * Gets the value of the signingTime property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getSigningTime() { + return signingTime; + } + + /** + * Sets the value of the signingTime property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setSigningTime(XMLGregorianCalendar value) { + this.signingTime = value; + } + + /** + * Gets the value of the function 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 function property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getFunction().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the function + */ + public List getFunction() { + if (function == null) { + function = new ArrayList(); } - - /** - * Gets the value of the nationality 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 nationality property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getNationality().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link String } - * - * @return the nationality - */ - public List getNationality() { - if (nationality == null) { - nationality = new ArrayList(); - } - return this.nationality; + return this.function; + } + + /** + * Gets the value of the activity 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 activity property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getActivity().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the activity + */ + public List getActivity() { + if (activity == null) { + activity = new ArrayList(); } - - /** - * Gets the value of the corpname property. - * - * @return possible object is {@link String } - */ - public String getCorpname() { - return corpname; + return this.activity; + } + + /** + * Gets the value of the position 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 position property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getPosition().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the position + */ + public List getPosition() { + if (position == null) { + position = new ArrayList(); } - - /** - * Sets the value of the corpname property. - * - * @param value allowed object is {@link String } - */ - public void setCorpname(String value) { - this.corpname = value; + return this.position; + } + + /** + * Gets the value of the role 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 role property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getRole().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the role + */ + public List getRole() { + if (role == null) { + role = new ArrayList(); } - - /** - * Gets the value of the identifier property. - * - *

- * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to - * the returned list will be present inside the JAXB object. This is why there is not a set method for - * the identifier property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getIdentifier().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link String } - * - * @return the identifier - */ - public List getIdentifier() { - if (identifier == null) { - identifier = new ArrayList(); - } - return this.identifier; - } - - /** - * Gets the value of the signingTime property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getSigningTime() { - return signingTime; + return this.role; + } + + /** + * Gets the value of the mandate 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 mandate property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getMandate().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the mandate + */ + public List getMandate() { + if (mandate == null) { + mandate = new ArrayList(); } - - /** - * Sets the value of the signingTime property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setSigningTime(XMLGregorianCalendar value) { - this.signingTime = value; - } - - /** - * Gets the value of the function 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 function property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFunction().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the function - */ - public List getFunction() { - if (function == null) { - function = new ArrayList(); - } - return this.function; - } - - /** - * Gets the value of the activity 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 activity property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getActivity().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the activity - */ - public List getActivity() { - if (activity == null) { - activity = new ArrayList(); - } - return this.activity; - } - - /** - * Gets the value of the position 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 position property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getPosition().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the position - */ - public List getPosition() { - if (position == null) { - position = new ArrayList(); - } - return this.position; - } - - /** - * Gets the value of the role 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 role property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRole().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the role - */ - public List getRole() { - if (role == null) { - role = new ArrayList(); - } - return this.role; - } - - /** - * Gets the value of the mandate 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 mandate property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMandate().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the mandate - */ - public List getMandate() { - if (mandate == null) { - mandate = new ArrayList(); - } - return this.mandate; - } - + return this.mandate; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/StorageRuleType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/StorageRuleType.java index 6e7f3f2..84f69f4 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/StorageRuleType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/StorageRuleType.java @@ -1,25 +1,24 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; - -import javax.xml.datatype.XMLGregorianCalendar; import java.util.ArrayList; import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de cet ArchiveUnit. + * La liste d'identifiants de règles à appliquer et à ignorer qui doit être appliquée à partir de + * cet ArchiveUnit. * - *

- * Java class for StorageRuleType complex type. + *

Java class for StorageRuleType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="StorageRuleType">
@@ -42,129 +41,113 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "StorageRuleType", propOrder = { - "ruleAndStartDate", - "preventInheritance", - "refNonRuleId", - "finalAction" -}) +@XmlType( + name = "StorageRuleType", + propOrder = {"ruleAndStartDate", "preventInheritance", "refNonRuleId", "finalAction"}) public class StorageRuleType { - /** - * The Rule and start date. - */ - @XmlElements({ - @XmlElement(name = "Rule", type = RuleIdType.class), - @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) - }) - protected List ruleAndStartDate; - /** - * The Prevent inheritance. - */ - @XmlElement(name = "PreventInheritance", defaultValue = "false") - protected Boolean preventInheritance; - /** - * The Ref non rule id. - */ - @XmlElement(name = "RefNonRuleId") - protected List refNonRuleId; - /** - * The Final action. - */ - @XmlElement(name = "FinalAction", required = true) - @XmlSchemaType(name = "token") - protected FinalActionStorageCodeType finalAction; + /** The Rule and start date. */ + @XmlElements({ + @XmlElement(name = "Rule", type = RuleIdType.class), + @XmlElement(name = "StartDate", type = XMLGregorianCalendar.class, nillable = true) + }) + protected List ruleAndStartDate; - /** - * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRuleAndStartDate().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list null null null null {@link RuleIdType } - * {@link XMLGregorianCalendar } - * - * @return the rule and start date - */ - public List getRuleAndStartDate() { - if (ruleAndStartDate == null) { - ruleAndStartDate = new ArrayList(); - } - return this.ruleAndStartDate; - } + /** The Prevent inheritance. */ + @XmlElement(name = "PreventInheritance", defaultValue = "false") + protected Boolean preventInheritance; - /** - * Gets the value of the preventInheritance property. - * - * @return possible object is {@link Boolean } - */ - public Boolean isPreventInheritance() { - return preventInheritance; - } + /** The Ref non rule id. */ + @XmlElement(name = "RefNonRuleId") + protected List refNonRuleId; - /** - * Sets the value of the preventInheritance property. - * - * @param value allowed object is {@link Boolean } - */ - public void setPreventInheritance(Boolean value) { - this.preventInheritance = value; - } + /** The Final action. */ + @XmlElement(name = "FinalAction", required = true) + @XmlSchemaType(name = "token") + protected FinalActionStorageCodeType finalAction; - /** - * Gets the value of the refNonRuleId 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 refNonRuleId property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRefNonRuleId().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link RuleIdType - * }* - * - * @return the ref non rule id - */ - public List getRefNonRuleId() { - if (refNonRuleId == null) { - refNonRuleId = new ArrayList(); - } - return this.refNonRuleId; + /** + * Gets the value of the ruleAndStartDate 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 ruleAndStartDate property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getRuleAndStartDate().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list null null null null {@link + * RuleIdType } {@link XMLGregorianCalendar } + * + * @return the rule and start date + */ + public List getRuleAndStartDate() { + if (ruleAndStartDate == null) { + ruleAndStartDate = new ArrayList(); } + return this.ruleAndStartDate; + } - /** - * Gets the value of the finalAction property. - * - * @return possible object is {@link FinalActionStorageCodeType } - */ - public FinalActionStorageCodeType getFinalAction() { - return finalAction; - } + /** + * Gets the value of the preventInheritance property. + * + * @return possible object is {@link Boolean } + */ + public Boolean isPreventInheritance() { + return preventInheritance; + } - /** - * Sets the value of the finalAction property. - * - * @param value allowed object is {@link FinalActionStorageCodeType } - */ - public void setFinalAction(FinalActionStorageCodeType value) { - this.finalAction = value; + /** + * Sets the value of the preventInheritance property. + * + * @param value allowed object is {@link Boolean } + */ + public void setPreventInheritance(Boolean value) { + this.preventInheritance = value; + } + + /** + * Gets the value of the refNonRuleId 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 refNonRuleId property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getRefNonRuleId().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link RuleIdType }* + * + * @return the ref non rule id + */ + public List getRefNonRuleId() { + if (refNonRuleId == null) { + refNonRuleId = new ArrayList(); } + return this.refNonRuleId; + } + + /** + * Gets the value of the finalAction property. + * + * @return possible object is {@link FinalActionStorageCodeType } + */ + public FinalActionStorageCodeType getFinalAction() { + return finalAction; + } + /** + * Sets the value of the finalAction property. + * + * @param value allowed object is {@link FinalActionStorageCodeType } + */ + public void setFinalAction(FinalActionStorageCodeType value) { + this.finalAction = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/TextTechnicalMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/TextTechnicalMetadataType.java index aececae..0d10e75 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/TextTechnicalMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/TextTechnicalMetadataType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,13 +12,12 @@ import jakarta.xml.bind.annotation.XmlType; /** - * Contient toutes les métadonnées techniques de base pour les objets-données de type texte(XML, JSON, CSV, ...). + * Contient toutes les métadonnées techniques de base pour les objets-données de type texte(XML, + * JSON, CSV, ...). * - *

- * Java class for TextTechnicalMetadataType complex type. + *

Java class for TextTechnicalMetadataType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="TextTechnicalMetadataType">
@@ -30,7 +30,4 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "TextTechnicalMetadataType")
-public class TextTechnicalMetadataType
-        extends OpenType {
-
-}
+public class TextTechnicalMetadataType extends OpenType {}
diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/TextType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/TextType.java
index dc028d1..7baa839 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/TextType.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/TextType.java
@@ -1,19 +1,18 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
 package fr.gouv.culture.archivesdefrance.seda.v21;
 
 import jakarta.xml.bind.annotation.*;
 
 /**
- * 

* Java class for TextType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="TextType">
@@ -26,59 +25,52 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "TextType", propOrder = { - "value" -}) -@XmlSeeAlso({ - CustodialHistoryItemType.class -}) +@XmlType( + name = "TextType", + propOrder = {"value"}) +@XmlSeeAlso({CustodialHistoryItemType.class}) public class TextType { - /** - * The Value. - */ - @XmlValue - protected String value; - /** - * The Lang. - */ - @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") - protected String lang; + /** The Value. */ + @XmlValue protected String value; - /** - * Gets the value of the value property. - * - * @return possible object is {@link String } - */ - public String getValue() { - return value; - } + /** The Lang. */ + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; - /** - * 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 value property. + * + * @return possible object is {@link String } + */ + public String getValue() { + return value; + } - /** - * Gets the value of the lang property. - * - * @return possible object is {@link String } - */ - public String getLang() { - return lang; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link String } + */ + public void setValue(String value) { + this.value = value; + } - /** - * Sets the value of the lang property. - * - * @param value allowed object is {@link String } - */ - public void setLang(String value) { - this.lang = value; - } + /** + * Gets the value of the lang property. + * + * @return possible object is {@link String } + */ + public String getLang() { + return lang; + } + /** + * Sets the value of the lang property. + * + * @param value allowed object is {@link String } + */ + public void setLang(String value) { + this.lang = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ToDeleteType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ToDeleteType.java index 924dd4d..a308bb3 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ToDeleteType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ToDeleteType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,16 +12,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElementRef; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for ToDeleteType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ToDeleteType">
@@ -35,42 +33,40 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ToDeleteType", propOrder = { - "archiveUnitRefId" -}) +@XmlType( + name = "ToDeleteType", + propOrder = {"archiveUnitRefId"}) public class ToDeleteType { - /** - * The Archive unit ref id. - */ - @XmlElementRef(name = "ArchiveUnitRefId", namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", type = JAXBElement.class) - protected List> archiveUnitRefId; + /** The Archive unit ref id. */ + @XmlElementRef( + name = "ArchiveUnitRefId", + namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", + type = JAXBElement.class) + protected List> archiveUnitRefId; - /** - * Gets the value of the archiveUnitRefId 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 archiveUnitRefId property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getArchiveUnitRefId().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link JAXBElement }{@code <}{@link Object }{@code >} - * - * @return the archive unit ref id - */ - public List> getArchiveUnitRefId() { - if (archiveUnitRefId == null) { - archiveUnitRefId = new ArrayList>(); - } - return this.archiveUnitRefId; + /** + * Gets the value of the archiveUnitRefId 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 archiveUnitRefId property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getArchiveUnitRefId().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link JAXBElement }{@code <}{@link + * Object }{@code >} + * + * @return the archive unit ref id + */ + public List> getArchiveUnitRefId() { + if (archiveUnitRefId == null) { + archiveUnitRefId = new ArrayList>(); } - + return this.archiveUnitRefId; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/UpdateOperationType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/UpdateOperationType.java index 47e3371..6a95ed4 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/UpdateOperationType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/UpdateOperationType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for UpdateOperationType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="UpdateOperationType">
@@ -35,107 +34,98 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "UpdateOperationType", propOrder = { - "systemId", - "archiveUnitIdentifierKey", - "toDelete", - "fullUpdate" -}) +@XmlType( + name = "UpdateOperationType", + propOrder = {"systemId", "archiveUnitIdentifierKey", "toDelete", "fullUpdate"}) public class UpdateOperationType { - /** - * The System id. - */ - @XmlElement(name = "SystemId") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String systemId; - /** - * The Archive unit identifier key. - */ - @XmlElement(name = "ArchiveUnitIdentifierKey") - protected ArchiveUnitIdentifierKeyType archiveUnitIdentifierKey; - /** - * The To delete. - */ - @XmlElement(name = "ToDelete") - protected ToDeleteType toDelete; - /** - * The Full update. - */ - @XmlElement(name = "FullUpdate", defaultValue = "false") - protected Boolean fullUpdate; + /** The System id. */ + @XmlElement(name = "SystemId") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String systemId; - /** - * Gets the value of the systemId property. - * - * @return possible object is {@link String } - */ - public String getSystemId() { - return systemId; - } + /** The Archive unit identifier key. */ + @XmlElement(name = "ArchiveUnitIdentifierKey") + protected ArchiveUnitIdentifierKeyType archiveUnitIdentifierKey; - /** - * Sets the value of the systemId property. - * - * @param value allowed object is {@link String } - */ - public void setSystemId(String value) { - this.systemId = value; - } + /** The To delete. */ + @XmlElement(name = "ToDelete") + protected ToDeleteType toDelete; - /** - * Gets the value of the archiveUnitIdentifierKey property. - * - * @return possible object is {@link ArchiveUnitIdentifierKeyType } - */ - public ArchiveUnitIdentifierKeyType getArchiveUnitIdentifierKey() { - return archiveUnitIdentifierKey; - } + /** The Full update. */ + @XmlElement(name = "FullUpdate", defaultValue = "false") + protected Boolean fullUpdate; - /** - * Sets the value of the archiveUnitIdentifierKey property. - * - * @param value allowed object is {@link ArchiveUnitIdentifierKeyType } - */ - public void setArchiveUnitIdentifierKey(ArchiveUnitIdentifierKeyType value) { - this.archiveUnitIdentifierKey = value; - } + /** + * Gets the value of the systemId property. + * + * @return possible object is {@link String } + */ + public String getSystemId() { + return systemId; + } - /** - * Gets the value of the toDelete property. - * - * @return possible object is {@link ToDeleteType } - */ - public ToDeleteType getToDelete() { - return toDelete; - } + /** + * Sets the value of the systemId property. + * + * @param value allowed object is {@link String } + */ + public void setSystemId(String value) { + this.systemId = value; + } - /** - * Sets the value of the toDelete property. - * - * @param value allowed object is {@link ToDeleteType } - */ - public void setToDelete(ToDeleteType value) { - this.toDelete = value; - } + /** + * Gets the value of the archiveUnitIdentifierKey property. + * + * @return possible object is {@link ArchiveUnitIdentifierKeyType } + */ + public ArchiveUnitIdentifierKeyType getArchiveUnitIdentifierKey() { + return archiveUnitIdentifierKey; + } - /** - * Gets the value of the fullUpdate property. - * - * @return possible object is {@link Boolean } - */ - public Boolean isFullUpdate() { - return fullUpdate; - } + /** + * Sets the value of the archiveUnitIdentifierKey property. + * + * @param value allowed object is {@link ArchiveUnitIdentifierKeyType } + */ + public void setArchiveUnitIdentifierKey(ArchiveUnitIdentifierKeyType value) { + this.archiveUnitIdentifierKey = value; + } - /** - * Sets the value of the fullUpdate property. - * - * @param value allowed object is {@link Boolean } - */ - public void setFullUpdate(Boolean value) { - this.fullUpdate = value; - } + /** + * Gets the value of the toDelete property. + * + * @return possible object is {@link ToDeleteType } + */ + public ToDeleteType getToDelete() { + return toDelete; + } + /** + * Sets the value of the toDelete property. + * + * @param value allowed object is {@link ToDeleteType } + */ + public void setToDelete(ToDeleteType value) { + this.toDelete = value; + } + + /** + * Gets the value of the fullUpdate property. + * + * @return possible object is {@link Boolean } + */ + public Boolean isFullUpdate() { + return fullUpdate; + } + + /** + * Sets the value of the fullUpdate property. + * + * @param value allowed object is {@link Boolean } + */ + public void setFullUpdate(Boolean value) { + this.fullUpdate = value; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ValidatorType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ValidatorType.java index d9abc14..d119ba8 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ValidatorType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/ValidatorType.java @@ -1,25 +1,23 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - -import javax.xml.datatype.XMLGregorianCalendar; import java.util.ArrayList; import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for ValidatorType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ValidatorType">
@@ -32,518 +30,474 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ValidatorType", propOrder = { - "firstName", - "birthName", - "fullName", - "givenName", - "gender", - "birthDate", - "birthPlace", - "deathDate", - "deathPlace", - "nationality", - "corpname", - "identifier", - "validationTime", - "function", - "activity", - "position", - "role", - "mandate" -}) +@XmlType( + name = "ValidatorType", + propOrder = { + "firstName", + "birthName", + "fullName", + "givenName", + "gender", + "birthDate", + "birthPlace", + "deathDate", + "deathPlace", + "nationality", + "corpname", + "identifier", + "validationTime", + "function", + "activity", + "position", + "role", + "mandate" + }) public class ValidatorType { - /** - * The First name. - */ - @XmlElement(name = "FirstName") - protected String firstName; - /** - * The Birth name. - */ - @XmlElement(name = "BirthName") - protected String birthName; - /** - * The Full name. - */ - @XmlElement(name = "FullName") - protected String fullName; - /** - * The Given name. - */ - @XmlElement(name = "GivenName") - protected String givenName; - /** - * The Gender. - */ - @XmlElement(name = "Gender") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String gender; - /** - * The Birth date. - */ - @XmlElement(name = "BirthDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar birthDate; - /** - * The Birth place. - */ - @XmlElement(name = "BirthPlace") - protected BirthOrDeathPlaceType birthPlace; - /** - * The Death date. - */ - @XmlElement(name = "DeathDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar deathDate; - /** - * The Death place. - */ - @XmlElement(name = "DeathPlace") - protected BirthOrDeathPlaceType deathPlace; - /** - * The Nationality. - */ - @XmlElement(name = "Nationality") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List nationality; - /** - * The Corpname. - */ - @XmlElement(name = "Corpname") - protected String corpname; - /** - * The Identifier. - */ - @XmlElement(name = "Identifier") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected List identifier; - /** - * The Validation time. - */ - @XmlElement(name = "ValidationTime", required = true) - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar validationTime; - /** - * The Function. - */ - @XmlElement(name = "Function") - protected List function; - /** - * The Activity. - */ - @XmlElement(name = "Activity") - protected List activity; - /** - * The Position. - */ - @XmlElement(name = "Position") - protected List position; - /** - * The Role. - */ - @XmlElement(name = "Role") - protected List role; - /** - * The Mandate. - */ - @XmlElement(name = "Mandate") - protected List mandate; - - /** - * Gets the value of the firstName property. - * - * @return possible object is {@link String } - */ - public String getFirstName() { - return firstName; - } - - /** - * Sets the value of the firstName property. - * - * @param value allowed object is {@link String } - */ - public void setFirstName(String value) { - this.firstName = value; - } - - /** - * Gets the value of the birthName property. - * - * @return possible object is {@link String } - */ - public String getBirthName() { - return birthName; - } - - /** - * Sets the value of the birthName property. - * - * @param value allowed object is {@link String } - */ - public void setBirthName(String value) { - this.birthName = value; - } - - /** - * Gets the value of the fullName property. - * - * @return possible object is {@link String } - */ - public String getFullName() { - return fullName; - } - - /** - * Sets the value of the fullName property. - * - * @param value allowed object is {@link String } - */ - public void setFullName(String value) { - this.fullName = value; - } - - /** - * Gets the value of the givenName property. - * - * @return possible object is {@link String } - */ - public String getGivenName() { - return givenName; - } - - /** - * Sets the value of the givenName property. - * - * @param value allowed object is {@link String } - */ - public void setGivenName(String value) { - this.givenName = value; - } - - /** - * Gets the value of the gender property. - * - * @return possible object is {@link String } - */ - public String getGender() { - return gender; - } - - /** - * Sets the value of the gender property. - * - * @param value allowed object is {@link String } - */ - public void setGender(String value) { - this.gender = value; - } - - /** - * Gets the value of the birthDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getBirthDate() { - return birthDate; - } - - /** - * Sets the value of the birthDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setBirthDate(XMLGregorianCalendar value) { - this.birthDate = value; - } - - /** - * Gets the value of the birthPlace property. - * - * @return possible object is {@link BirthOrDeathPlaceType } - */ - public BirthOrDeathPlaceType getBirthPlace() { - return birthPlace; + /** The First name. */ + @XmlElement(name = "FirstName") + protected String firstName; + + /** The Birth name. */ + @XmlElement(name = "BirthName") + protected String birthName; + + /** The Full name. */ + @XmlElement(name = "FullName") + protected String fullName; + + /** The Given name. */ + @XmlElement(name = "GivenName") + protected String givenName; + + /** The Gender. */ + @XmlElement(name = "Gender") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String gender; + + /** The Birth date. */ + @XmlElement(name = "BirthDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar birthDate; + + /** The Birth place. */ + @XmlElement(name = "BirthPlace") + protected BirthOrDeathPlaceType birthPlace; + + /** The Death date. */ + @XmlElement(name = "DeathDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar deathDate; + + /** The Death place. */ + @XmlElement(name = "DeathPlace") + protected BirthOrDeathPlaceType deathPlace; + + /** The Nationality. */ + @XmlElement(name = "Nationality") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List nationality; + + /** The Corpname. */ + @XmlElement(name = "Corpname") + protected String corpname; + + /** The Identifier. */ + @XmlElement(name = "Identifier") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected List identifier; + + /** The Validation time. */ + @XmlElement(name = "ValidationTime", required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar validationTime; + + /** The Function. */ + @XmlElement(name = "Function") + protected List function; + + /** The Activity. */ + @XmlElement(name = "Activity") + protected List activity; + + /** The Position. */ + @XmlElement(name = "Position") + protected List position; + + /** The Role. */ + @XmlElement(name = "Role") + protected List role; + + /** The Mandate. */ + @XmlElement(name = "Mandate") + protected List mandate; + + /** + * Gets the value of the firstName property. + * + * @return possible object is {@link String } + */ + public String getFirstName() { + return firstName; + } + + /** + * Sets the value of the firstName property. + * + * @param value allowed object is {@link String } + */ + public void setFirstName(String value) { + this.firstName = value; + } + + /** + * Gets the value of the birthName property. + * + * @return possible object is {@link String } + */ + public String getBirthName() { + return birthName; + } + + /** + * Sets the value of the birthName property. + * + * @param value allowed object is {@link String } + */ + public void setBirthName(String value) { + this.birthName = value; + } + + /** + * Gets the value of the fullName property. + * + * @return possible object is {@link String } + */ + public String getFullName() { + return fullName; + } + + /** + * Sets the value of the fullName property. + * + * @param value allowed object is {@link String } + */ + public void setFullName(String value) { + this.fullName = value; + } + + /** + * Gets the value of the givenName property. + * + * @return possible object is {@link String } + */ + public String getGivenName() { + return givenName; + } + + /** + * Sets the value of the givenName property. + * + * @param value allowed object is {@link String } + */ + public void setGivenName(String value) { + this.givenName = value; + } + + /** + * Gets the value of the gender property. + * + * @return possible object is {@link String } + */ + public String getGender() { + return gender; + } + + /** + * Sets the value of the gender property. + * + * @param value allowed object is {@link String } + */ + public void setGender(String value) { + this.gender = value; + } + + /** + * Gets the value of the birthDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getBirthDate() { + return birthDate; + } + + /** + * Sets the value of the birthDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setBirthDate(XMLGregorianCalendar value) { + this.birthDate = value; + } + + /** + * Gets the value of the birthPlace property. + * + * @return possible object is {@link BirthOrDeathPlaceType } + */ + public BirthOrDeathPlaceType getBirthPlace() { + return birthPlace; + } + + /** + * Sets the value of the birthPlace property. + * + * @param value allowed object is {@link BirthOrDeathPlaceType } + */ + public void setBirthPlace(BirthOrDeathPlaceType value) { + this.birthPlace = value; + } + + /** + * Gets the value of the deathDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getDeathDate() { + return deathDate; + } + + /** + * Sets the value of the deathDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setDeathDate(XMLGregorianCalendar value) { + this.deathDate = value; + } + + /** + * Gets the value of the deathPlace property. + * + * @return possible object is {@link BirthOrDeathPlaceType } + */ + public BirthOrDeathPlaceType getDeathPlace() { + return deathPlace; + } + + /** + * Sets the value of the deathPlace property. + * + * @param value allowed object is {@link BirthOrDeathPlaceType } + */ + public void setDeathPlace(BirthOrDeathPlaceType value) { + this.deathPlace = value; + } + + /** + * Gets the value of the nationality 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 nationality property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getNationality().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link String } + * + * @return the nationality + */ + public List getNationality() { + if (nationality == null) { + nationality = new ArrayList(); } - - /** - * Sets the value of the birthPlace property. - * - * @param value allowed object is {@link BirthOrDeathPlaceType } - */ - public void setBirthPlace(BirthOrDeathPlaceType value) { - this.birthPlace = value; - } - - /** - * Gets the value of the deathDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getDeathDate() { - return deathDate; - } - - /** - * Sets the value of the deathDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setDeathDate(XMLGregorianCalendar value) { - this.deathDate = value; - } - - /** - * Gets the value of the deathPlace property. - * - * @return possible object is {@link BirthOrDeathPlaceType } - */ - public BirthOrDeathPlaceType getDeathPlace() { - return deathPlace; + return this.nationality; + } + + /** + * Gets the value of the corpname property. + * + * @return possible object is {@link String } + */ + public String getCorpname() { + return corpname; + } + + /** + * Sets the value of the corpname property. + * + * @param value allowed object is {@link String } + */ + public void setCorpname(String value) { + this.corpname = value; + } + + /** + * Gets the value of the identifier property. + * + *

This accessor method returns a reference to the live list, not a snapshot. Therefore any + * modification you make to the returned list will be present inside the JAXB object. This is why + * there is not a set method for the identifier property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getIdentifier().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link String } + * + * @return the identifier + */ + public List getIdentifier() { + if (identifier == null) { + identifier = new ArrayList(); } - - /** - * Sets the value of the deathPlace property. - * - * @param value allowed object is {@link BirthOrDeathPlaceType } - */ - public void setDeathPlace(BirthOrDeathPlaceType value) { - this.deathPlace = value; + return this.identifier; + } + + /** + * Gets the value of the validationTime property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getValidationTime() { + return validationTime; + } + + /** + * Sets the value of the validationTime property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setValidationTime(XMLGregorianCalendar value) { + this.validationTime = value; + } + + /** + * Gets the value of the function 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 function property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getFunction().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the function + */ + public List getFunction() { + if (function == null) { + function = new ArrayList(); } - - /** - * Gets the value of the nationality 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 nationality property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getNationality().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link String } - * - * @return the nationality - */ - public List getNationality() { - if (nationality == null) { - nationality = new ArrayList(); - } - return this.nationality; + return this.function; + } + + /** + * Gets the value of the activity 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 activity property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getActivity().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the activity + */ + public List getActivity() { + if (activity == null) { + activity = new ArrayList(); } - - /** - * Gets the value of the corpname property. - * - * @return possible object is {@link String } - */ - public String getCorpname() { - return corpname; + return this.activity; + } + + /** + * Gets the value of the position 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 position property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getPosition().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the position + */ + public List getPosition() { + if (position == null) { + position = new ArrayList(); } - - /** - * Sets the value of the corpname property. - * - * @param value allowed object is {@link String } - */ - public void setCorpname(String value) { - this.corpname = value; + return this.position; + } + + /** + * Gets the value of the role 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 role property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getRole().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the role + */ + public List getRole() { + if (role == null) { + role = new ArrayList(); } - - /** - * Gets the value of the identifier property. - * - *

- * This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to - * the returned list will be present inside the JAXB object. This is why there is not a set method for - * the identifier property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getIdentifier().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link String } - * - * @return the identifier - */ - public List getIdentifier() { - if (identifier == null) { - identifier = new ArrayList(); - } - return this.identifier; - } - - /** - * Gets the value of the validationTime property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getValidationTime() { - return validationTime; + return this.role; + } + + /** + * Gets the value of the mandate 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 mandate property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getMandate().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the mandate + */ + public List getMandate() { + if (mandate == null) { + mandate = new ArrayList(); } - - /** - * Sets the value of the validationTime property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setValidationTime(XMLGregorianCalendar value) { - this.validationTime = value; - } - - /** - * Gets the value of the function 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 function property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFunction().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the function - */ - public List getFunction() { - if (function == null) { - function = new ArrayList(); - } - return this.function; - } - - /** - * Gets the value of the activity 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 activity property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getActivity().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the activity - */ - public List getActivity() { - if (activity == null) { - activity = new ArrayList(); - } - return this.activity; - } - - /** - * Gets the value of the position 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 position property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getPosition().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the position - */ - public List getPosition() { - if (position == null) { - position = new ArrayList(); - } - return this.position; - } - - /** - * Gets the value of the role 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 role property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRole().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the role - */ - public List getRole() { - if (role == null) { - role = new ArrayList(); - } - return this.role; - } - - /** - * Gets the value of the mandate 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 mandate property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getMandate().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the mandate - */ - public List getMandate() { - if (mandate == null) { - mandate = new ArrayList(); - } - return this.mandate; - } - + return this.mandate; + } } diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/VideoTechnicalMetadataType.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/VideoTechnicalMetadataType.java index 949f0ca..399216c 100644 --- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/VideoTechnicalMetadataType.java +++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/VideoTechnicalMetadataType.java @@ -1,8 +1,9 @@ // -// 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: 2019.10.29 at 01:17:12 AM CET +// 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: 2019.10.29 at 01:17:12 AM CET // package fr.gouv.culture.archivesdefrance.seda.v21; @@ -13,11 +14,9 @@ /** * Contient toutes les métadonnées techniques de base pour les objets-données de type video. * - *

- * Java class for VideoTechnicalMetadataType complex type. + *

Java class for VideoTechnicalMetadataType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="VideoTechnicalMetadataType">
@@ -30,7 +29,4 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "VideoTechnicalMetadataType")
-public class VideoTechnicalMetadataType
-        extends OpenType {
-
-}
+public class VideoTechnicalMetadataType extends OpenType {}
diff --git a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/package-info.java b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/package-info.java
index 1e5a83e..dff3406 100644
--- a/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/package-info.java
+++ b/src/main/java/fr/gouv/culture/archivesdefrance/seda/v21/package-info.java
@@ -1,8 +1,11 @@
 //
-// 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: 2019.10.29 at 01:17:12 AM CET 
+// 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: 2019.10.29 at 01:17:12 AM CET
 //
-@jakarta.xml.bind.annotation.XmlSchema(namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1", elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED)
+@jakarta.xml.bind.annotation.XmlSchema(
+    namespace = "fr:gouv:culture:archivesdefrance:seda:v2.1",
+    elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED)
 package fr.gouv.culture.archivesdefrance.seda.v21;
diff --git a/src/main/java/fr/xelians/sipg/model/AbstractRules.java b/src/main/java/fr/xelians/sipg/model/AbstractRules.java
index 6f77a7d..2f21cae 100644
--- a/src/main/java/fr/xelians/sipg/model/AbstractRules.java
+++ b/src/main/java/fr/xelians/sipg/model/AbstractRules.java
@@ -19,10 +19,9 @@
 package fr.xelians.sipg.model;
 
 import fr.xelians.sipg.utils.SipUtils;
-import org.apache.commons.lang3.Validate;
-
 import java.util.ArrayList;
 import java.util.List;
+import org.apache.commons.lang3.Validate;
 
 /**
  * La classe AbstractRules représente la liste des règles des archives.
@@ -31,75 +30,69 @@
  */
 public abstract class AbstractRules {
 
+  /**
+   * La liste des identifiants des règles qui pourront être retirées de l'héritage dans ce nœud.
+   * Cette propriété est ignorée en FNTC v4.
+   */
+  protected final List preventRuleNames = new ArrayList<>();
 
-    /**
-     * La liste des identifiants des règles qui pourront être retirées de l'héritage dans ce nœud. Cette propriété est
-     * ignorée en FNTC v4.
-     */
-    protected final List preventRuleNames = new ArrayList<>();
-
-    /**
-     * Indique si les règles de gestion héritées des unités d'archives parentes doivent être ignorées pour l’unité d'archive
-     * concernée. Cette propriété est ignorée en FNTC v4.
-     */
-    protected Boolean preventInheritance;
-
-    /**
-     * Instancie la classe.
-     */
-    protected AbstractRules() {
-    }
-
-
-    /**
-     * Ajoute l'identifiant de la règle qui pourra être retirée de l'héritage dans ce nœud.
-     *
-     * @param ruleName l'identifiant de la règle
-     */
-    public void addPreventRuleName(String ruleName) {
-        Validate.notNull(ruleName, SipUtils.NOT_NULL, "ruleName");
-        preventRuleNames.add(ruleName);
-    }
+  /**
+   * Indique si les règles de gestion héritées des unités d'archives parentes doivent être ignorées
+   * pour l’unité d'archive concernée. Cette propriété est ignorée en FNTC v4.
+   */
+  protected Boolean preventInheritance;
 
-    /**
-     * Supprime l'identifiant de la règle qui pourra être retirée de l'héritage dans ce nœud.
-     *
-     * @param ruleName l'identifiant de la règle
-     * @return true si la suppression de l'identifiant a réalisé avec succès, false sinon
-     */
-    public boolean removePreventRuleName(String ruleName) {
-        Validate.notNull(ruleName, SipUtils.NOT_NULL, "ruleName");
-        return preventRuleNames.remove(ruleName);
-    }
+  /** Instancie la classe. */
+  protected AbstractRules() {}
 
-    /**
-     * Fournit la liste des identifiants des règles qui pourront être retirées de l'héritage dans ce nœud.
-     *
-     * @return la liste des identifiants
-     */
-    public List getPreventRuleNames() {
-        return new ArrayList<>(preventRuleNames);
-    }
+  /**
+   * Ajoute l'identifiant de la règle qui pourra être retirée de l'héritage dans ce nœud.
+   *
+   * @param ruleName l'identifiant de la règle
+   */
+  public void addPreventRuleName(String ruleName) {
+    Validate.notNull(ruleName, SipUtils.NOT_NULL, "ruleName");
+    preventRuleNames.add(ruleName);
+  }
 
+  /**
+   * Supprime l'identifiant de la règle qui pourra être retirée de l'héritage dans ce nœud.
+   *
+   * @param ruleName l'identifiant de la règle
+   * @return true si la suppression de l'identifiant a réalisé avec succès, false sinon
+   */
+  public boolean removePreventRuleName(String ruleName) {
+    Validate.notNull(ruleName, SipUtils.NOT_NULL, "ruleName");
+    return preventRuleNames.remove(ruleName);
+  }
 
-    /**
-     * Indique si les règles de gestion héritées des unités d'archives parentes doivent être ignorées pour l’unité d'archive
-     * concernée.
-     *
-     * @return l'interdiction d'hériter
-     */
-    public Boolean isPreventInheritance() {
-        return preventInheritance;
-    }
+  /**
+   * Fournit la liste des identifiants des règles qui pourront être retirées de l'héritage dans ce
+   * nœud.
+   *
+   * @return la liste des identifiants
+   */
+  public List getPreventRuleNames() {
+    return new ArrayList<>(preventRuleNames);
+  }
 
-    /**
-     * Spécifie si les règles de gestion héritées des unités d'archives parentes doivent être ignorées pour l’unité
-     * d'archive concernée.
-     *
-     * @param preventInheritance interdiction d'hériter
-     */
-    public void setPreventInheritance(Boolean preventInheritance) {
-        this.preventInheritance = preventInheritance;
-    }
+  /**
+   * Indique si les règles de gestion héritées des unités d'archives parentes doivent être ignorées
+   * pour l’unité d'archive concernée.
+   *
+   * @return l'interdiction d'hériter
+   */
+  public Boolean isPreventInheritance() {
+    return preventInheritance;
+  }
 
+  /**
+   * Spécifie si les règles de gestion héritées des unités d'archives parentes doivent être ignorées
+   * pour l’unité d'archive concernée.
+   *
+   * @param preventInheritance interdiction d'hériter
+   */
+  public void setPreventInheritance(Boolean preventInheritance) {
+    this.preventInheritance = preventInheritance;
+  }
 }
diff --git a/src/main/java/fr/xelians/sipg/model/AbstractSimpleRules.java b/src/main/java/fr/xelians/sipg/model/AbstractSimpleRules.java
index 710359e..1d13437 100644
--- a/src/main/java/fr/xelians/sipg/model/AbstractSimpleRules.java
+++ b/src/main/java/fr/xelians/sipg/model/AbstractSimpleRules.java
@@ -21,97 +21,90 @@
 
 import com.fasterxml.jackson.annotation.JsonIgnore;
 import fr.xelians.sipg.utils.SipUtils;
-import org.apache.commons.lang3.Validate;
-
 import java.time.LocalDate;
 import java.util.ArrayList;
 import java.util.List;
+import org.apache.commons.lang3.Validate;
 
 public abstract class AbstractSimpleRules extends AbstractRules {
 
-    /**
-     * La liste des règles.
-     */
-    protected final List rules = new ArrayList<>();
+  /** La liste des règles. */
+  protected final List rules = new ArrayList<>();
 
-    /**
-     * Instancie la classe.
-     */
-    public AbstractSimpleRules() {
-        super();
-    }
+  /** Instancie la classe. */
+  protected AbstractSimpleRules() {
+    super();
+  }
 
-    /**
-     * Instancie la classe avec une règle spécifiée par les paramètres.
-     *
-     * @param name      la référence de la règle communicabilité
-     * @param startDate date de départ de calcul de la règle de communicabilité
-     */
-    public AbstractSimpleRules(String name, LocalDate startDate) {
-        super();
-        ;
-        addRule(name, startDate);
-    }
+  /**
+   * Instancie la classe avec une règle spécifiée par les paramètres.
+   *
+   * @param name la référence de la règle communicabilité
+   * @param startDate date de départ de calcul de la règle de communicabilité
+   */
+  protected AbstractSimpleRules(String name, LocalDate startDate) {
+    super();
+    addRule(name, startDate);
+  }
 
-    /**
-     * Ajoute une règle de communicabilité.
-     *
-     * @param name      la référence de la règle communicabilité à ajouter
-     * @param startDate date de départ de calcul de la règle de communicabilité
-     */
-    public void addRule(String name, LocalDate startDate) {
-        Rule rule = new Rule(name, startDate);
-        rules.add(rule);
-    }
+  /**
+   * Ajoute une règle de communicabilité.
+   *
+   * @param name la référence de la règle communicabilité à ajouter
+   * @param startDate date de départ de calcul de la règle de communicabilité
+   */
+  public void addRule(String name, LocalDate startDate) {
+    Rule rule = new Rule(name, startDate);
+    rules.add(rule);
+  }
 
-    /**
-     * Ajoute une règle de communicabilité.
-     *
-     * @param rule règle de communicabilité
-     */
-    public void addRule(Rule rule) {
-        Validate.notNull(rule, SipUtils.NOT_NULL, "rule");
-        rules.add(rule);
-    }
+  /**
+   * Ajoute une règle de communicabilité.
+   *
+   * @param rule règle de communicabilité
+   */
+  public void addRule(Rule rule) {
+    Validate.notNull(rule, SipUtils.NOT_NULL, "rule");
+    rules.add(rule);
+  }
 
-    /**
-     * Supprime une règle de communicabilité.
-     *
-     * @param rule la règle de communicabilité à supprimer
-     * @return true si la suppression de la règle a réalisé avec succès, false sinon
-     */
-    public boolean removeRule(Rule rule) {
-        Validate.notNull(rule, SipUtils.NOT_NULL, "rule");
-        return rules.remove(rule);
-    }
+  /**
+   * Supprime une règle de communicabilité.
+   *
+   * @param rule la règle de communicabilité à supprimer
+   * @return true si la suppression de la règle a réalisé avec succès, false sinon
+   */
+  public boolean removeRule(Rule rule) {
+    Validate.notNull(rule, SipUtils.NOT_NULL, "rule");
+    return rules.remove(rule);
+  }
 
-    /**
-     * Fournit la liste des règles de communicabilité.
-     *
-     * @return la liste des règles de communicabilité
-     */
-    public List getRules() {
-        return new ArrayList<>(rules);
-    }
+  /**
+   * Fournit la liste des règles de communicabilité.
+   *
+   * @return la liste des règles de communicabilité
+   */
+  public List getRules() {
+    return new ArrayList<>(rules);
+  }
 
-    /**
-     * Indique la date de départ de calcul de la première règle de communicabilité.
-     *
-     * @return la date
-     */
-    @JsonIgnore
-    public String getRuleName() {
-        return rules.isEmpty() ? null : rules.get(0).getName();
-    }
+  /**
+   * Indique la date de départ de calcul de la première règle de communicabilité.
+   *
+   * @return la date
+   */
+  @JsonIgnore
+  public String getRuleName() {
+    return rules.isEmpty() ? null : rules.get(0).getName();
+  }
 
-    /**
-     * Indique la date de départ de calcul de la première règle de communicabilité.
-     *
-     * @return la date
-     */
-    @JsonIgnore
-    public LocalDate getStartDate() {
-        return rules.isEmpty() ? null : rules.get(0).getStartDate();
-    }
+  /**
+   * Indique la date de départ de calcul de la première règle de communicabilité.
+   *
+   * @return la date
+   */
+  @JsonIgnore
+  public LocalDate getStartDate() {
+    return rules.isEmpty() ? null : rules.get(0).getStartDate();
+  }
 }
-
diff --git a/src/main/java/fr/xelians/sipg/model/AccessRules.java b/src/main/java/fr/xelians/sipg/model/AccessRules.java
index f74b327..18e2ae0 100644
--- a/src/main/java/fr/xelians/sipg/model/AccessRules.java
+++ b/src/main/java/fr/xelians/sipg/model/AccessRules.java
@@ -21,35 +21,26 @@
 import java.time.LocalDate;
 
 /**
- * 

* La classe AccessRules représente les règles de communicabilité (accessibilité) des archives. - *

* - *

- * Supporté en SEDA v2.1 et FNTC v4. - *

+ *

Supporté en SEDA v2.1 et FNTC v4. * * @author Emmanuel Deviller */ public class AccessRules extends AbstractSimpleRules { + /** Instancie la classe. */ + public AccessRules() { + super(); + } - /** - * Instancie la classe. - */ - public AccessRules() { - super(); - } - - /** - * Instancie la classe avec une règle spécifiée par les paramètres. - * - * @param name la référence de la règle communicabilité - * @param startDate date de départ de calcul de la règle de communicabilité - */ - public AccessRules(String name, LocalDate startDate) { - super(name, startDate); - } - - + /** + * Instancie la classe avec une règle spécifiée par les paramètres. + * + * @param name la référence de la règle communicabilité + * @param startDate date de départ de calcul de la règle de communicabilité + */ + public AccessRules(String name, LocalDate startDate) { + super(name, startDate); + } } diff --git a/src/main/java/fr/xelians/sipg/model/Agency.java b/src/main/java/fr/xelians/sipg/model/Agency.java index e72a02b..e1f55a0 100644 --- a/src/main/java/fr/xelians/sipg/model/Agency.java +++ b/src/main/java/fr/xelians/sipg/model/Agency.java @@ -21,165 +21,161 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import fr.xelians.sipg.utils.SipUtils; -import org.apache.commons.lang3.Validate; - import java.util.ArrayList; import java.util.List; import java.util.Objects; +import org.apache.commons.lang3.Validate; /** - *

- * La classe Agency représente un service agent. Il existe plusieurs types de services agents. ArchivalAgency : service - * d'archives responsable de la demande de communication ou de restitution. OriginatingAgency : service producteur ou - * "Personne physique ou morale, publique ou privée, qui a produit, reçu et conservé des archives dans l'exercice de son - * activité" (Dictionnaire de terminologie archivistique, direction des archives de France, 2002). SubmissionAgency : - * service versant responsable du transfert des données. TransferringAgency : service versant chargé de réaliser le - * transport. - *

+ * La classe Agency représente un service agent. Il existe plusieurs types de services agents. + * ArchivalAgency : service d'archives responsable de la demande de communication ou de restitution. + * OriginatingAgency : service producteur ou "Personne physique ou morale, publique ou privée, qui a + * produit, reçu et conservé des archives dans l'exercice de son activité" (Dictionnaire de + * terminologie archivistique, direction des archives de France, 2002). SubmissionAgency : service + * versant responsable du transfert des données. TransferringAgency : service versant chargé de + * réaliser le transport. * - *

- * Supporté en SEDA v2.1 et FNTC v4. - *

+ *

Supporté en SEDA v2.1 et FNTC v4. * * @author Emmanuel Deviller */ public class Agency { - /** - * Identifiant du service agent - */ - protected final String identifier; - - /** - * Nom du service agent - */ - protected final String name; - - /** - * Liste des éléments métadonnées de description du service agent - */ - protected final ArrayList elements; - - /** - * Instancie la classe selon les paramètres indiqués. - * - * @param identifier l'identifiant du service - * @param name le nom du service - */ - @JsonCreator - public Agency(@JsonProperty("identifier") String identifier, @JsonProperty("name") String name) { - Validate.notNull(identifier, SipUtils.NOT_NULL, "identifier"); - - this.identifier = identifier; - this.name = name; - this.elements = new ArrayList<>(); - } - - /** - * Indique l'identifiant du service agent. - * - * @return the identifier - */ - public String getIdentifier() { - return identifier; - } - - /** - * Indique le nom du service agent. - * - * @return le nom - */ - public String getName() { - return name; - } - - /** - * Ajoute un élément métadonnée de description du service agent selon les paramètres indiqués. - * - * @param name le nom de la métadonnée - * @param value la valeur de la métadonnée - */ - public void addElement(String name, String value) { - elements.add(new Element(name, value)); + /** Identifiant du service agent */ + protected final String identifier; + + /** Nom du service agent */ + protected final String name; + + /** Liste des éléments métadonnées de description du service agent */ + protected final ArrayList elements; + + /** + * Instancie la classe selon les paramètres indiqués. + * + * @param identifier l'identifiant du service + * @param name le nom du service + */ + @JsonCreator + public Agency(@JsonProperty("identifier") String identifier, @JsonProperty("name") String name) { + Validate.notNull(identifier, SipUtils.NOT_NULL, "identifier"); + + this.identifier = identifier; + this.name = name; + this.elements = new ArrayList<>(); + } + + /** + * Indique l'identifiant du service agent. + * + * @return the identifier + */ + public String getIdentifier() { + return identifier; + } + + /** + * Indique le nom du service agent. + * + * @return le nom + */ + public String getName() { + return name; + } + + /** + * Ajoute un élément métadonnée de description du service agent selon les paramètres indiqués. + * + * @param name le nom de la métadonnée + * @param value la valeur de la métadonnée + */ + public void addElement(String name, String value) { + elements.add(new Element(name, value)); + } + + /** + * Ajoute un élément métadonnée de description du service agent. + * + * @param element l'élément de métadonnée + */ + public void addElement(Element element) { + elements.add(element); + } + + /** + * Supprime un élément métadonnée de description. + * + * @param element l'élément de métadonnée à supprimer + * @return true si la suppression de l'élément a été réalisée avec succès, false sinon + */ + public boolean removeElement(Element element) { + return elements.remove(element); + } + + /** + * Fournit la liste des éléments métadonnées de description du service agent. + * + * @return la liste des éléments + */ + public List getElements() { + return new ArrayList<>(elements); + } + + /** + * Indique la valeur du hash code de l'objet. + * + * @return le hash code de l'objet + */ + @Override + public int hashCode() { + int hash = 7; + hash = 71 * hash + Objects.hashCode(this.identifier); + hash = 71 * hash + Objects.hashCode(this.name); + hash = 71 * hash + Objects.hashCode(this.elements); + return hash; + } + + /** + * Indique si un autre objet est égal à celui-ci. + * + * @param obj l'objet à vérifier + * @return true si l'objet est identique, false sinon + */ + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; } - - /** - * Ajoute un élément métadonnée de description du service agent. - * - * @param element l'élément de métadonnée - */ - public void addElement(Element element) { - elements.add(element); + if (obj == null) { + return false; } - - /** - * Supprime un élément métadonnée de description. - * - * @param element l'élément de métadonnée à supprimer - * @return true si la suppression de l'élément a été réalisée avec succès, false sinon - */ - public boolean removeElement(Element element) { - return elements.remove(element); + if (getClass() != obj.getClass()) { + return false; } - - /** - * Fournit la liste des éléments métadonnées de description du service agent. - * - * @return la liste des éléments - */ - public List getElements() { - return new ArrayList<>(elements); + final Agency other = (Agency) obj; + if (!Objects.equals(this.identifier, other.identifier)) { + return false; } - - /** - * Indique la valeur du hash code de l'objet. - * - * @return le hash code de l'objet - */ - @Override - public int hashCode() { - int hash = 7; - hash = 71 * hash + Objects.hashCode(this.identifier); - hash = 71 * hash + Objects.hashCode(this.name); - hash = 71 * hash + Objects.hashCode(this.elements); - return hash; + if (!Objects.equals(this.name, other.name)) { + return false; } - - /** - * Indique si un autre objet est égal à celui-ci. - * - * @param obj l'objet à vérifier - * @return true si l'objet est identique, false sinon - */ - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (getClass() != obj.getClass()) { - return false; - } - final Agency other = (Agency) obj; - if (!Objects.equals(this.identifier, other.identifier)) { - return false; - } - if (!Objects.equals(this.name, other.name)) { - return false; - } - return Objects.equals(this.elements, other.elements); - } - - /** - * Indique la représentation en tant que String de l'objet. - * - * @return la représentation en tant que String - */ - @Override - public String toString() { - return "Agency{" + "identifier=" + identifier + ", name=" + name + ", elements=" + elements + '}'; - } - + return Objects.equals(this.elements, other.elements); + } + + /** + * Indique la représentation en tant que String de l'objet. + * + * @return la représentation en tant que String + */ + @Override + public String toString() { + return "Agency{" + + "identifier=" + + identifier + + ", name=" + + name + + ", elements=" + + elements + + '}'; + } } diff --git a/src/main/java/fr/xelians/sipg/model/Agent.java b/src/main/java/fr/xelians/sipg/model/Agent.java index 4a498bf..4477ea7 100644 --- a/src/main/java/fr/xelians/sipg/model/Agent.java +++ b/src/main/java/fr/xelians/sipg/model/Agent.java @@ -19,7 +19,6 @@ package fr.xelians.sipg.model; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; - import java.time.LocalDate; import java.util.ArrayList; import java.util.List; @@ -28,9 +27,7 @@ /** * La classe Agent représente une personne physique ou morale. * - *

- * Supporté en SEDA v2.1 et FNTC v4 (étendu). - *

+ *

Supporté en SEDA v2.1 et FNTC v4 (étendu). * * @author Emmanuel Deviller * @see AgentBuilder @@ -40,604 +37,627 @@ @JsonDeserialize(builder = AgentBuilder.class) public class Agent { - /** - * Nationalités de la personne. - */ - protected final List nationalities = new ArrayList<>(); - /** - * Identifiants de la personne. - */ - protected final List identifiers = new ArrayList<>(); - /** - * Fonctions de la personne. - */ - protected final List functions = new ArrayList<>(); - /** - * Activités de la personne. - */ - protected final List activities = new ArrayList<>(); - /** - * Positions ou intitulés du poste de travail occupé par la personne. - */ - protected final List positions = new ArrayList<>(); - /** - * Rôles ou droits avec lesquels une personne a réalisé une opération, notamment dans une application. - */ - protected final List roles = new ArrayList<>(); - /** - * Propriétés intellectuelles et artistiques de la personne. - */ - protected final List mandates = new ArrayList<>(); - /** - * Prénom de la personne. - */ - protected String firstName; - /** - * Nom de naissance de la personne. - */ - protected String birthName; - /** - * Nom complet de la personne. - */ - protected String fullName; - /** - * Nom d'usage de la personne. - */ - protected String givenName; - /** - * Sexe de la personne. - */ - protected String gender; - /** - * Date de naissance de la personne. - */ - protected LocalDate birthDate; - /** - * Lieu de naissance de la personne. - */ - protected Place birthPlace; - /** - * Date de décès de la personne. - */ - protected LocalDate deathDate; - /** - * Lieu de décès de la personne. - */ - protected Place deathPlace; - /** - * Entité d'appartenance de la personne. Il peut s'agir d'une organisation, d'une société, etc. - */ - protected String corpName; - - /** - * Instancie la classe. - */ - public Agent() { - } - - /** - * Instancie la classe avec l'identifiant de l'agent. - * - * @param identifier l'identifiant - */ - public Agent(String identifier) { - identifiers.add(identifier); - } - - /** - * Instancie la classe selon les paramètres indiqués. - * - * @param firstName le prénom - * @param birthName le nom de naissance - * @param fullName le nom complet - * @param givenName le nom d'usage - * @param gender le sexe - * @param birthDate la date de naissance - * @param birthPlace le lieu de naissance - * @param deathDate la date de décès - * @param deathPlace le lieu de décès - * @param corpName l'entité - */ - public Agent(String firstName, String birthName, String fullName, String givenName, String gender, - LocalDate birthDate, Place birthPlace, LocalDate deathDate, Place deathPlace, String corpName) { - - this.firstName = firstName; - this.birthName = birthName; - this.fullName = fullName; - this.givenName = givenName; - this.gender = gender; - this.birthDate = birthDate; - this.birthPlace = birthPlace; - this.deathDate = deathDate; - this.deathPlace = deathPlace; - this.corpName = corpName; - } - - /** - * Indique le prénom de la personne. - * - * @return le prénom - */ - public String getFirstName() { - return firstName; - } - - /** - * Spécifie le prénom de la personne. - * - * @param value le prénom - */ - public void setFirstName(String value) { - this.firstName = value; - } - - /** - * Indique le nom de naissance de la personne. - * - * @return le nom de naissance - */ - public String getBirthName() { - return birthName; - } - - /** - * Spécifie le nom de naissance de la personne. - * - * @param value le nom de naissance - */ - public void setBirthName(String value) { - this.birthName = value; - } - - /** - * Indique le nom de complet de la personne. - * - * @return le nom complet - */ - public String getFullName() { - return fullName; - } - - /** - * Spécifie le nom de complet de la personne. - * - * @param value le nom complet - */ - public void setFullName(String value) { - this.fullName = value; - } - - /** - * Indique le nom d'usage de la personne. - * - * @return le nom complet - */ - public String getGivenName() { - return givenName; - } - - /** - * Spécifie le nom d'usage de la personne. - * - * @param value le nom d'usage - */ - public void setGivenName(String value) { - this.givenName = value; - } - - /** - * Indique le sexe de la personne. - * - * @return le sexe - */ - public String getGender() { - return gender; - } - - /** - * Spécifie le sexe de la personne. - * - * @param value le sexe - */ - public void setGender(String value) { - this.gender = value; - } - - /** - * Indique la date de naissance de la personne. - * - * @return la date de naissance - */ - public LocalDate getBirthDate() { - return birthDate; - } - - /** - * Spécifie la date de naissance de la personne. - * - * @param value la date de naissance - */ - public void setBirthDate(LocalDate value) { - this.birthDate = value; - } - - /** - * Indique le lieu de naissance de la personne. - * - * @return le lieu de naissance - */ - public Place getBirthPlace() { - return birthPlace; - } - - /** - * Spécifie le lieu de naissance de la personne. - * - * @param value le lieu de naissance - */ - public void setBirthPlace(Place value) { - this.birthPlace = value; - } - - /** - * Indique la date de décès de la personne. - * - * @return la date de décès - */ - public LocalDate getDeathDate() { - return deathDate; - } - - /** - * Spécifie la date de décès de la personne. - * - * @param value la date de décès - */ - public void setDeathDate(LocalDate value) { - this.deathDate = value; - } - - /** - * Indique le lieu de décès de la personne. - * - * @return le lieu de décès - */ - public Place getDeathPlace() { - return deathPlace; - } - - /** - * Spécifie le lieu de décès de la personne. - * - * @param value le lieu de décès - */ - public void setDeathPlace(Place value) { - this.deathPlace = value; - } - - /** - * Fournit les nationalités de la personne. - * - * @return la liste des nationalités - */ - public List getNationalities() { - return new ArrayList<>(nationalities); - } - - /** - * Ajoute une nationalité à la personne. - * - * @param value la nationalité à ajouter - */ - public void addNationality(String value) { - nationalities.add(value); - } - - /** - * Supprime une nationalité de la personne. - * - * @param value la nationalité à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeNationality(String value) { - return nationalities.remove(value); - } - - /** - * Indique l'entité d'appartenance de la personne. - * - * @return l'entité - */ - public String getCorpName() { - return corpName; - } - - /** - * Spécifie l'entité d'appartenance de la personne. - * - * @param value l'entité - */ - public void setCorpName(String value) { - this.corpName = value; - } - - /** - * Fournit les identifiants de la personne. - * - * @return la liste des identifiants - */ - public List getIdentifiers() { - return new ArrayList<>(identifiers); - } - - /** - * Ajoute un identifiant à la personne. - * - * @param value l'identifiant à ajouter - */ - public void addIdentifier(String value) { - identifiers.add(value); - } - - /** - * Supprime un identifiants de la personne. - * - * @param value l'identifiant à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeIdentifier(String value) { - return identifiers.remove(value); - } - - /** - * Fournit les fonctions de la personne. - * - * @return la liste des fonctions - */ - public List getFunctions() { - return new ArrayList<>(functions); - } - - /** - * Ajoute une fonction à la personne. - * - * @param value la fonction à ajouter - */ - public void addFunction(String value) { - functions.add(value); - } - - /** - * Supprime une fonction de la personne. - * - * @param value la fonction à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeFunction(String value) { - return functions.remove(value); - } - - /** - * Fournit les activités de la personne. - * - * @return la liste des activités - */ - public List getActivities() { - return new ArrayList<>(activities); - } - - /** - * Ajoute une activité à la personne. - * - * @param value l'activité à ajouter - */ - public void addActivity(String value) { - activities.add(value); - } - - /** - * Supprime une activité de la personne. - * - * @param value l'activité à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeActivity(String value) { - return activities.remove(value); - } - - /** - * Fournit les positions de la personne. - * - * @return la liste des positions - */ - public List getPositions() { - return new ArrayList<>(positions); - } - - /** - * Ajoute une position à la personne. - * - * @param value la position à ajouter - */ - public void addPosition(String value) { - positions.add(value); - } - - /** - * Supprime une position de la personne. - * - * @param value la position à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removePosition(String value) { - return positions.remove(value); - } - - /** - * Fournit les rôles de la personne. - * - * @return la liste des rôles - */ - public List getRoles() { - return new ArrayList<>(roles); - } - - /** - * Ajoute un rôle à la personne. - * - * @param value le rôle à ajouter - */ - public void addRole(String value) { - roles.add(value); - } - - /** - * Supprime un rôle de la personne. - * - * @param value le rôle à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeRole(String value) { - return roles.remove(value); - } - - /** - * Fournit les propriétés intellectuelles et artistiques de la personne. - * - * @return la liste des propriétés intellectuelles et artistiques - */ - public List getMandates() { - return new ArrayList<>(mandates); - } - - /** - * Ajoute une propriété intellectuelle ou artistique à la personne. - * - * @param value la propriété à ajouter - */ - public void addMandate(String value) { - mandates.add(value); - } - - /** - * Supprime une propriété intellectuelle ou artistique de la personne. - * - * @param value la propriété à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeMandate(String value) { - return mandates.remove(value); - } - - /** - * Indique la valeur du hash code de l'objet. - * - * @return le hash code de l'objet - */ - @Override - public int hashCode() { - int hash = 3; - hash = 79 * hash + Objects.hashCode(this.firstName); - hash = 79 * hash + Objects.hashCode(this.birthName); - hash = 79 * hash + Objects.hashCode(this.fullName); - hash = 79 * hash + Objects.hashCode(this.givenName); - hash = 79 * hash + Objects.hashCode(this.gender); - hash = 79 * hash + Objects.hashCode(this.birthDate); - hash = 79 * hash + Objects.hashCode(this.birthPlace); - hash = 79 * hash + Objects.hashCode(this.deathDate); - hash = 79 * hash + Objects.hashCode(this.deathPlace); - hash = 79 * hash + Objects.hashCode(this.nationalities); - hash = 79 * hash + Objects.hashCode(this.corpName); - hash = 79 * hash + Objects.hashCode(this.identifiers); - hash = 79 * hash + Objects.hashCode(this.functions); - hash = 79 * hash + Objects.hashCode(this.activities); - hash = 79 * hash + Objects.hashCode(this.positions); - hash = 79 * hash + Objects.hashCode(this.roles); - hash = 79 * hash + Objects.hashCode(this.mandates); - return hash; - } - - /** - * Indique si un autre objet est égal à celui-ci. - * - * @param obj l'objet à vérifier - * @return true si l'objet est identique, false sinon - */ - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (getClass() != obj.getClass()) { - return false; - } - final Agent other = (Agent) obj; - if (!Objects.equals(this.firstName, other.firstName)) { - return false; - } - if (!Objects.equals(this.birthName, other.birthName)) { - return false; - } - if (!Objects.equals(this.fullName, other.fullName)) { - return false; - } - if (!Objects.equals(this.givenName, other.givenName)) { - return false; - } - if (!Objects.equals(this.gender, other.gender)) { - return false; - } - if (!Objects.equals(this.corpName, other.corpName)) { - return false; - } - if (!Objects.equals(this.birthDate, other.birthDate)) { - return false; - } - if (!Objects.equals(this.birthPlace, other.birthPlace)) { - return false; - } - if (!Objects.equals(this.deathDate, other.deathDate)) { - return false; - } - if (!Objects.equals(this.deathPlace, other.deathPlace)) { - return false; - } - if (!Objects.equals(this.nationalities, other.nationalities)) { - return false; - } - if (!Objects.equals(this.identifiers, other.identifiers)) { - return false; - } - if (!Objects.equals(this.functions, other.functions)) { - return false; - } - if (!Objects.equals(this.activities, other.activities)) { - return false; - } - if (!Objects.equals(this.positions, other.positions)) { - return false; - } - if (!Objects.equals(this.roles, other.roles)) { - return false; - } - return Objects.equals(this.mandates, other.mandates); - } - - /** - * Indique la représentation en tant que String de l'objet. - * - * @return la représentation en tant que String - */ - @Override - public String toString() { - return "Agent{" + "firstName=" + firstName + ", birthName=" + birthName + ", fullName=" + fullName + ", givenName=" - + givenName + ", gender=" + gender + ", birthDate=" + birthDate + ", birthPlace=" + birthPlace + ", deathDate=" - + deathDate + ", deathPlace=" + deathPlace + ", nationality=" + nationalities + ", corpName=" + corpName - + ", identifiers=" + identifiers + ", functions=" + functions + ", activities=" + activities + ", positions=" - + positions + ", roles=" + roles + ", mandates=" + mandates + '}'; - } - + /** Nationalités de la personne. */ + protected final List nationalities = new ArrayList<>(); + + /** Identifiants de la personne. */ + protected final List identifiers = new ArrayList<>(); + + /** Fonctions de la personne. */ + protected final List functions = new ArrayList<>(); + + /** Activités de la personne. */ + protected final List activities = new ArrayList<>(); + + /** Positions ou intitulés du poste de travail occupé par la personne. */ + protected final List positions = new ArrayList<>(); + + /** + * Rôles ou droits avec lesquels une personne a réalisé une opération, notamment dans une + * application. + */ + protected final List roles = new ArrayList<>(); + + /** Propriétés intellectuelles et artistiques de la personne. */ + protected final List mandates = new ArrayList<>(); + + /** Prénom de la personne. */ + protected String firstName; + + /** Nom de naissance de la personne. */ + protected String birthName; + + /** Nom complet de la personne. */ + protected String fullName; + + /** Nom d'usage de la personne. */ + protected String givenName; + + /** Sexe de la personne. */ + protected String gender; + + /** Date de naissance de la personne. */ + protected LocalDate birthDate; + + /** Lieu de naissance de la personne. */ + protected Place birthPlace; + + /** Date de décès de la personne. */ + protected LocalDate deathDate; + + /** Lieu de décès de la personne. */ + protected Place deathPlace; + + /** + * Entité d'appartenance de la personne. Il peut s'agir d'une organisation, d'une société, etc. + */ + protected String corpName; + + /** Instancie la classe. */ + public Agent() {} + + /** + * Instancie la classe avec l'identifiant de l'agent. + * + * @param identifier l'identifiant + */ + public Agent(String identifier) { + identifiers.add(identifier); + } + + /** + * Instancie la classe selon les paramètres indiqués. + * + * @param firstName le prénom + * @param birthName le nom de naissance + * @param fullName le nom complet + * @param givenName le nom d'usage + * @param gender le sexe + * @param birthDate la date de naissance + * @param birthPlace le lieu de naissance + * @param deathDate la date de décès + * @param deathPlace le lieu de décès + * @param corpName l'entité + */ + public Agent( + String firstName, + String birthName, + String fullName, + String givenName, + String gender, + LocalDate birthDate, + Place birthPlace, + LocalDate deathDate, + Place deathPlace, + String corpName) { + + this.firstName = firstName; + this.birthName = birthName; + this.fullName = fullName; + this.givenName = givenName; + this.gender = gender; + this.birthDate = birthDate; + this.birthPlace = birthPlace; + this.deathDate = deathDate; + this.deathPlace = deathPlace; + this.corpName = corpName; + } + + /** + * Indique le prénom de la personne. + * + * @return le prénom + */ + public String getFirstName() { + return firstName; + } + + /** + * Spécifie le prénom de la personne. + * + * @param value le prénom + */ + public void setFirstName(String value) { + this.firstName = value; + } + + /** + * Indique le nom de naissance de la personne. + * + * @return le nom de naissance + */ + public String getBirthName() { + return birthName; + } + + /** + * Spécifie le nom de naissance de la personne. + * + * @param value le nom de naissance + */ + public void setBirthName(String value) { + this.birthName = value; + } + + /** + * Indique le nom de complet de la personne. + * + * @return le nom complet + */ + public String getFullName() { + return fullName; + } + + /** + * Spécifie le nom de complet de la personne. + * + * @param value le nom complet + */ + public void setFullName(String value) { + this.fullName = value; + } + + /** + * Indique le nom d'usage de la personne. + * + * @return le nom complet + */ + public String getGivenName() { + return givenName; + } + + /** + * Spécifie le nom d'usage de la personne. + * + * @param value le nom d'usage + */ + public void setGivenName(String value) { + this.givenName = value; + } + + /** + * Indique le sexe de la personne. + * + * @return le sexe + */ + public String getGender() { + return gender; + } + + /** + * Spécifie le sexe de la personne. + * + * @param value le sexe + */ + public void setGender(String value) { + this.gender = value; + } + + /** + * Indique la date de naissance de la personne. + * + * @return la date de naissance + */ + public LocalDate getBirthDate() { + return birthDate; + } + + /** + * Spécifie la date de naissance de la personne. + * + * @param value la date de naissance + */ + public void setBirthDate(LocalDate value) { + this.birthDate = value; + } + + /** + * Indique le lieu de naissance de la personne. + * + * @return le lieu de naissance + */ + public Place getBirthPlace() { + return birthPlace; + } + + /** + * Spécifie le lieu de naissance de la personne. + * + * @param value le lieu de naissance + */ + public void setBirthPlace(Place value) { + this.birthPlace = value; + } + + /** + * Indique la date de décès de la personne. + * + * @return la date de décès + */ + public LocalDate getDeathDate() { + return deathDate; + } + + /** + * Spécifie la date de décès de la personne. + * + * @param value la date de décès + */ + public void setDeathDate(LocalDate value) { + this.deathDate = value; + } + + /** + * Indique le lieu de décès de la personne. + * + * @return le lieu de décès + */ + public Place getDeathPlace() { + return deathPlace; + } + + /** + * Spécifie le lieu de décès de la personne. + * + * @param value le lieu de décès + */ + public void setDeathPlace(Place value) { + this.deathPlace = value; + } + + /** + * Fournit les nationalités de la personne. + * + * @return la liste des nationalités + */ + public List getNationalities() { + return new ArrayList<>(nationalities); + } + + /** + * Ajoute une nationalité à la personne. + * + * @param value la nationalité à ajouter + */ + public void addNationality(String value) { + nationalities.add(value); + } + + /** + * Supprime une nationalité de la personne. + * + * @param value la nationalité à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeNationality(String value) { + return nationalities.remove(value); + } + + /** + * Indique l'entité d'appartenance de la personne. + * + * @return l'entité + */ + public String getCorpName() { + return corpName; + } + + /** + * Spécifie l'entité d'appartenance de la personne. + * + * @param value l'entité + */ + public void setCorpName(String value) { + this.corpName = value; + } + + /** + * Fournit les identifiants de la personne. + * + * @return la liste des identifiants + */ + public List getIdentifiers() { + return new ArrayList<>(identifiers); + } + + /** + * Ajoute un identifiant à la personne. + * + * @param value l'identifiant à ajouter + */ + public void addIdentifier(String value) { + identifiers.add(value); + } + + /** + * Supprime un identifiants de la personne. + * + * @param value l'identifiant à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeIdentifier(String value) { + return identifiers.remove(value); + } + + /** + * Fournit les fonctions de la personne. + * + * @return la liste des fonctions + */ + public List getFunctions() { + return new ArrayList<>(functions); + } + + /** + * Ajoute une fonction à la personne. + * + * @param value la fonction à ajouter + */ + public void addFunction(String value) { + functions.add(value); + } + + /** + * Supprime une fonction de la personne. + * + * @param value la fonction à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeFunction(String value) { + return functions.remove(value); + } + + /** + * Fournit les activités de la personne. + * + * @return la liste des activités + */ + public List getActivities() { + return new ArrayList<>(activities); + } + + /** + * Ajoute une activité à la personne. + * + * @param value l'activité à ajouter + */ + public void addActivity(String value) { + activities.add(value); + } + + /** + * Supprime une activité de la personne. + * + * @param value l'activité à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeActivity(String value) { + return activities.remove(value); + } + + /** + * Fournit les positions de la personne. + * + * @return la liste des positions + */ + public List getPositions() { + return new ArrayList<>(positions); + } + + /** + * Ajoute une position à la personne. + * + * @param value la position à ajouter + */ + public void addPosition(String value) { + positions.add(value); + } + + /** + * Supprime une position de la personne. + * + * @param value la position à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removePosition(String value) { + return positions.remove(value); + } + + /** + * Fournit les rôles de la personne. + * + * @return la liste des rôles + */ + public List getRoles() { + return new ArrayList<>(roles); + } + + /** + * Ajoute un rôle à la personne. + * + * @param value le rôle à ajouter + */ + public void addRole(String value) { + roles.add(value); + } + + /** + * Supprime un rôle de la personne. + * + * @param value le rôle à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeRole(String value) { + return roles.remove(value); + } + + /** + * Fournit les propriétés intellectuelles et artistiques de la personne. + * + * @return la liste des propriétés intellectuelles et artistiques + */ + public List getMandates() { + return new ArrayList<>(mandates); + } + + /** + * Ajoute une propriété intellectuelle ou artistique à la personne. + * + * @param value la propriété à ajouter + */ + public void addMandate(String value) { + mandates.add(value); + } + + /** + * Supprime une propriété intellectuelle ou artistique de la personne. + * + * @param value la propriété à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeMandate(String value) { + return mandates.remove(value); + } + + /** + * Indique la valeur du hash code de l'objet. + * + * @return le hash code de l'objet + */ + @Override + public int hashCode() { + int hash = 3; + hash = 79 * hash + Objects.hashCode(this.firstName); + hash = 79 * hash + Objects.hashCode(this.birthName); + hash = 79 * hash + Objects.hashCode(this.fullName); + hash = 79 * hash + Objects.hashCode(this.givenName); + hash = 79 * hash + Objects.hashCode(this.gender); + hash = 79 * hash + Objects.hashCode(this.birthDate); + hash = 79 * hash + Objects.hashCode(this.birthPlace); + hash = 79 * hash + Objects.hashCode(this.deathDate); + hash = 79 * hash + Objects.hashCode(this.deathPlace); + hash = 79 * hash + Objects.hashCode(this.nationalities); + hash = 79 * hash + Objects.hashCode(this.corpName); + hash = 79 * hash + Objects.hashCode(this.identifiers); + hash = 79 * hash + Objects.hashCode(this.functions); + hash = 79 * hash + Objects.hashCode(this.activities); + hash = 79 * hash + Objects.hashCode(this.positions); + hash = 79 * hash + Objects.hashCode(this.roles); + hash = 79 * hash + Objects.hashCode(this.mandates); + return hash; + } + + /** + * Indique si un autre objet est égal à celui-ci. + * + * @param obj l'objet à vérifier + * @return true si l'objet est identique, false sinon + */ + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (getClass() != obj.getClass()) { + return false; + } + final Agent other = (Agent) obj; + if (!Objects.equals(this.firstName, other.firstName)) { + return false; + } + if (!Objects.equals(this.birthName, other.birthName)) { + return false; + } + if (!Objects.equals(this.fullName, other.fullName)) { + return false; + } + if (!Objects.equals(this.givenName, other.givenName)) { + return false; + } + if (!Objects.equals(this.gender, other.gender)) { + return false; + } + if (!Objects.equals(this.corpName, other.corpName)) { + return false; + } + if (!Objects.equals(this.birthDate, other.birthDate)) { + return false; + } + if (!Objects.equals(this.birthPlace, other.birthPlace)) { + return false; + } + if (!Objects.equals(this.deathDate, other.deathDate)) { + return false; + } + if (!Objects.equals(this.deathPlace, other.deathPlace)) { + return false; + } + if (!Objects.equals(this.nationalities, other.nationalities)) { + return false; + } + if (!Objects.equals(this.identifiers, other.identifiers)) { + return false; + } + if (!Objects.equals(this.functions, other.functions)) { + return false; + } + if (!Objects.equals(this.activities, other.activities)) { + return false; + } + if (!Objects.equals(this.positions, other.positions)) { + return false; + } + if (!Objects.equals(this.roles, other.roles)) { + return false; + } + return Objects.equals(this.mandates, other.mandates); + } + + /** + * Indique la représentation en tant que String de l'objet. + * + * @return la représentation en tant que String + */ + @Override + public String toString() { + return "Agent{" + + "firstName=" + + firstName + + ", birthName=" + + birthName + + ", fullName=" + + fullName + + ", givenName=" + + givenName + + ", gender=" + + gender + + ", birthDate=" + + birthDate + + ", birthPlace=" + + birthPlace + + ", deathDate=" + + deathDate + + ", deathPlace=" + + deathPlace + + ", nationality=" + + nationalities + + ", corpName=" + + corpName + + ", identifiers=" + + identifiers + + ", functions=" + + functions + + ", activities=" + + activities + + ", positions=" + + positions + + ", roles=" + + roles + + ", mandates=" + + mandates + + '}'; + } } diff --git a/src/main/java/fr/xelians/sipg/model/AgentBuilder.java b/src/main/java/fr/xelians/sipg/model/AgentBuilder.java index 0bac915..518de39 100644 --- a/src/main/java/fr/xelians/sipg/model/AgentBuilder.java +++ b/src/main/java/fr/xelians/sipg/model/AgentBuilder.java @@ -23,324 +23,333 @@ import java.util.List; /** - * La classe AgentBuilder facilite la création d'un objet Agent en suivant le principe de conception du pattern - * builder. + * La classe AgentBuilder facilite la création d'un objet Agent en suivant le principe de conception + * du pattern builder. * * @author Emmanuel Deviller * @see Agent */ public class AgentBuilder { - private String firstName; - private String birthName; - private String fullName; - private String givenName; - private String gender; - private LocalDate birthDate; - private Place birthPlace; - private LocalDate deathDate; - private Place deathPlace; - private String corpName; + private String firstName; + private String birthName; + private String fullName; + private String givenName; + private String gender; + private LocalDate birthDate; + private Place birthPlace; + private LocalDate deathDate; + private Place deathPlace; + private String corpName; - private List nationalities = new ArrayList<>(); - private List identifiers = new ArrayList<>(); - private List functions = new ArrayList<>(); - private List activities = new ArrayList<>(); - private List positions = new ArrayList<>(); - private List roles = new ArrayList<>(); - private List mandates = new ArrayList<>(); + private List nationalities = new ArrayList<>(); + private List identifiers = new ArrayList<>(); + private List functions = new ArrayList<>(); + private List activities = new ArrayList<>(); + private List positions = new ArrayList<>(); + private List roles = new ArrayList<>(); + private List mandates = new ArrayList<>(); - private AgentBuilder() { - } + private AgentBuilder() {} - /** - * Instancie le builder. - * - * @return le builder - */ - public static AgentBuilder builder() { - return new AgentBuilder(); - } + /** + * Instancie le builder. + * + * @return le builder + */ + public static AgentBuilder builder() { + return new AgentBuilder(); + } - /** - * Spécifie le prénom de la personne. - * - * @param firstName le prénom - * @return le builder - */ - public AgentBuilder withFirstName(String firstName) { - this.firstName = firstName; - return this; - } + /** + * Spécifie le prénom de la personne. + * + * @param firstName le prénom + * @return le builder + */ + public AgentBuilder withFirstName(String firstName) { + this.firstName = firstName; + return this; + } - /** - * Spécifie le nom de naissance de la personne. - * - * @param birthName le nom de naissance - * @return le builder - */ - public AgentBuilder withBirthName(String birthName) { - this.birthName = birthName; - return this; - } + /** + * Spécifie le nom de naissance de la personne. + * + * @param birthName le nom de naissance + * @return le builder + */ + public AgentBuilder withBirthName(String birthName) { + this.birthName = birthName; + return this; + } - /** - * Spécifie le nom de complet de la personne. - * - * @param fullName le nom complet - * @return le builder - */ - public AgentBuilder withFullName(String fullName) { - this.fullName = fullName; - return this; - } + /** + * Spécifie le nom de complet de la personne. + * + * @param fullName le nom complet + * @return le builder + */ + public AgentBuilder withFullName(String fullName) { + this.fullName = fullName; + return this; + } - /** - * Spécifie le nom d'usage de la personne. - * - * @param givenName le nom d'usage - * @return le builder - */ - public AgentBuilder withGivenName(String givenName) { - this.givenName = givenName; - return this; - } + /** + * Spécifie le nom d'usage de la personne. + * + * @param givenName le nom d'usage + * @return le builder + */ + public AgentBuilder withGivenName(String givenName) { + this.givenName = givenName; + return this; + } - /** - * Spécifie le sexe de la personne. - * - * @param gender le sexe - * @return le builder - */ - public AgentBuilder withGender(String gender) { - this.gender = gender; - return this; - } + /** + * Spécifie le sexe de la personne. + * + * @param gender le sexe + * @return le builder + */ + public AgentBuilder withGender(String gender) { + this.gender = gender; + return this; + } - /** - * Spécifie la date de naissance de la personne. - * - * @param birthDate la date de naissance - * @return le builder - */ - public AgentBuilder withBirthDate(LocalDate birthDate) { - this.birthDate = birthDate; - return this; - } + /** + * Spécifie la date de naissance de la personne. + * + * @param birthDate la date de naissance + * @return le builder + */ + public AgentBuilder withBirthDate(LocalDate birthDate) { + this.birthDate = birthDate; + return this; + } - /** - * Spécifie le lieu de naissance de la personne. - * - * @param birthPlace le lieu de naissance - * @return le builder - */ - public AgentBuilder withBirthPlace(Place birthPlace) { - this.birthPlace = birthPlace; - return this; - } + /** + * Spécifie le lieu de naissance de la personne. + * + * @param birthPlace le lieu de naissance + * @return le builder + */ + public AgentBuilder withBirthPlace(Place birthPlace) { + this.birthPlace = birthPlace; + return this; + } - /** - * Spécifie la date de décès de la personne. - * - * @param deathDate la date de décès - * @return le builder - */ - public AgentBuilder withDeathDate(LocalDate deathDate) { - this.deathDate = deathDate; - return this; - } + /** + * Spécifie la date de décès de la personne. + * + * @param deathDate la date de décès + * @return le builder + */ + public AgentBuilder withDeathDate(LocalDate deathDate) { + this.deathDate = deathDate; + return this; + } - /** - * Spécifie le lieu de décès de la personne. - * - * @param deathPlace le lieu de décès - * @return le builder - */ - public AgentBuilder withDeathPlace(Place deathPlace) { - this.deathPlace = deathPlace; - return this; - } + /** + * Spécifie le lieu de décès de la personne. + * + * @param deathPlace le lieu de décès + * @return le builder + */ + public AgentBuilder withDeathPlace(Place deathPlace) { + this.deathPlace = deathPlace; + return this; + } - /** - * Spécifie l'entité d'appartenance de la personne. - * - * @param corpName l'entité - * @return le builder - */ - public AgentBuilder withCorpName(String corpName) { - this.corpName = corpName; - return this; - } + /** + * Spécifie l'entité d'appartenance de la personne. + * + * @param corpName l'entité + * @return le builder + */ + public AgentBuilder withCorpName(String corpName) { + this.corpName = corpName; + return this; + } - /** - * Spécifie la liste des nationalités de la personne. - * - * @param list la liste des nationalités - * @return le builder - */ - public AgentBuilder withNationalities(List list) { - nationalities = list; - return this; - } + /** + * Spécifie la liste des nationalités de la personne. + * + * @param list la liste des nationalités + * @return le builder + */ + public AgentBuilder withNationalities(List list) { + nationalities = list; + return this; + } - /** - * Spécifie la liste des identifiants de la personne. - * - * @param list la liste des identifiants - * @return le builder - */ - public AgentBuilder withIdentifiers(List list) { - identifiers = list; - return this; - } + /** + * Spécifie la liste des identifiants de la personne. + * + * @param list la liste des identifiants + * @return le builder + */ + public AgentBuilder withIdentifiers(List list) { + identifiers = list; + return this; + } - /** - * Spécifie la liste des fonctions de la personne. - * - * @param list la liste des fonctions - * @return le builder - */ - public AgentBuilder withFunctions(List list) { - functions = list; - return this; - } + /** + * Spécifie la liste des fonctions de la personne. + * + * @param list la liste des fonctions + * @return le builder + */ + public AgentBuilder withFunctions(List list) { + functions = list; + return this; + } - /** - * Spécifie la liste des activités de la personne. - * - * @param list la liste des activités - * @return le builder - */ - public AgentBuilder withActivities(List list) { - activities = list; - return this; - } + /** + * Spécifie la liste des activités de la personne. + * + * @param list la liste des activités + * @return le builder + */ + public AgentBuilder withActivities(List list) { + activities = list; + return this; + } - /** - * Spécifie la liste des positions de la personne. - * - * @param list la liste des positions - * @return le builder - */ - public AgentBuilder withPositions(List list) { - positions = list; - return this; - } + /** + * Spécifie la liste des positions de la personne. + * + * @param list la liste des positions + * @return le builder + */ + public AgentBuilder withPositions(List list) { + positions = list; + return this; + } - /** - * Spécifie la liste des rôles de la personne. - * - * @param list la liste des rôles - * @return le builder - */ - public AgentBuilder withRoles(List list) { - roles = list; - return this; - } + /** + * Spécifie la liste des rôles de la personne. + * + * @param list la liste des rôles + * @return le builder + */ + public AgentBuilder withRoles(List list) { + roles = list; + return this; + } - /** - * Spécifie la liste des propriétés intellectuelles ou artistiques de la personne. - * - * @param list la liste des propriétés intellectuelles ou artistiques - * @return le builder - */ - public AgentBuilder withMandates(List list) { - mandates = list; - return this; - } + /** + * Spécifie la liste des propriétés intellectuelles ou artistiques de la personne. + * + * @param list la liste des propriétés intellectuelles ou artistiques + * @return le builder + */ + public AgentBuilder withMandates(List list) { + mandates = list; + return this; + } - /** - * Ajoute une nationalité à la personne. - * - * @param value la nationalité à ajouter - * @return le builder - */ - public AgentBuilder addNationality(String value) { - nationalities.add(value); - return this; - } + /** + * Ajoute une nationalité à la personne. + * + * @param value la nationalité à ajouter + * @return le builder + */ + public AgentBuilder addNationality(String value) { + nationalities.add(value); + return this; + } - /** - * Ajoute un identifiant à la personne. - * - * @param value l'identifiant à ajouter - * @return le builder - */ - public AgentBuilder addIdentifier(String value) { - identifiers.add(value); - return this; - } + /** + * Ajoute un identifiant à la personne. + * + * @param value l'identifiant à ajouter + * @return le builder + */ + public AgentBuilder addIdentifier(String value) { + identifiers.add(value); + return this; + } - /** - * Ajoute une fonction à la personne. - * - * @param value la fonction à ajouter - * @return le builder - */ - public AgentBuilder addFunction(String value) { - functions.add(value); - return this; - } + /** + * Ajoute une fonction à la personne. + * + * @param value la fonction à ajouter + * @return le builder + */ + public AgentBuilder addFunction(String value) { + functions.add(value); + return this; + } - /** - * Ajoute une activité à la personne. - * - * @param value l'activité à ajouter - * @return le builder - */ - public AgentBuilder addActivity(String value) { - activities.add(value); - return this; - } + /** + * Ajoute une activité à la personne. + * + * @param value l'activité à ajouter + * @return le builder + */ + public AgentBuilder addActivity(String value) { + activities.add(value); + return this; + } - /** - * Ajoute une position à la personne. - * - * @param value la position à ajouter - * @return le builder - */ - public AgentBuilder addPosition(String value) { - positions.add(value); - return this; - } + /** + * Ajoute une position à la personne. + * + * @param value la position à ajouter + * @return le builder + */ + public AgentBuilder addPosition(String value) { + positions.add(value); + return this; + } - /** - * Ajoute un rôle à la personne. - * - * @param value le rôle à ajouter - * @return le builder - */ - public AgentBuilder addRole(String value) { - roles.add(value); - return this; - } + /** + * Ajoute un rôle à la personne. + * + * @param value le rôle à ajouter + * @return le builder + */ + public AgentBuilder addRole(String value) { + roles.add(value); + return this; + } - /** - * Ajoute une propriété intellectuelle ou artistique à la personne. - * - * @param value la propriété à ajouter - * @return le builder - */ - public AgentBuilder addMandate(String value) { - mandates.add(value); - return this; - } + /** + * Ajoute une propriété intellectuelle ou artistique à la personne. + * + * @param value la propriété à ajouter + * @return le builder + */ + public AgentBuilder addMandate(String value) { + mandates.add(value); + return this; + } - /** - * Instancie la classe Agent selon les paramètres précédemment spécifiés dans le builder. - * - * @return l'agent - */ - public Agent build() { - Agent agent = new Agent(firstName, birthName, fullName, givenName, gender, birthDate, birthPlace, deathDate, - deathPlace, corpName); - nationalities.forEach(agent::addNationality); - identifiers.forEach(agent::addIdentifier); - functions.forEach(agent::addFunction); - activities.forEach(agent::addActivity); - positions.forEach(agent::addPosition); - roles.forEach(agent::addRole); - mandates.forEach(agent::addMandate); - return agent; - } + /** + * Instancie la classe Agent selon les paramètres précédemment spécifiés dans le builder. + * + * @return l'agent + */ + public Agent build() { + Agent agent = + new Agent( + firstName, + birthName, + fullName, + givenName, + gender, + birthDate, + birthPlace, + deathDate, + deathPlace, + corpName); + nationalities.forEach(agent::addNationality); + identifiers.forEach(agent::addIdentifier); + functions.forEach(agent::addFunction); + activities.forEach(agent::addActivity); + positions.forEach(agent::addPosition); + roles.forEach(agent::addRole); + mandates.forEach(agent::addMandate); + return agent; + } } diff --git a/src/main/java/fr/xelians/sipg/model/AppraisalRules.java b/src/main/java/fr/xelians/sipg/model/AppraisalRules.java index bb70b41..9a901c6 100644 --- a/src/main/java/fr/xelians/sipg/model/AppraisalRules.java +++ b/src/main/java/fr/xelians/sipg/model/AppraisalRules.java @@ -21,80 +21,71 @@ import java.time.LocalDate; /** - *

* La classe AppraisalRules représente les règles de durée d’utilité administrative des archives. - *

* - *

- * Supporté en SEDA v2.1 et FNTC v4. - *

+ *

Supporté en SEDA v2.1 et FNTC v4. * * @author Emmanuel Deviller */ public class AppraisalRules extends AbstractSimpleRules { + /** + * Action à entreprendre au terme de la durée d’utilité administrative. Cette propriété est + * ignorée en FNTC v4. + */ + protected String finalAction; - /** - * Action à entreprendre au terme de la durée d’utilité administrative. Cette propriété est ignorée en FNTC v4. - */ - protected String finalAction; + /** La durée d’utilité administrative. Cette propriété est ignorée en SEDA v2.1. */ + protected String duration; - /** - * La durée de d’utilité administrative. Cette propriété est ignorée en SEDA v2.1. - */ - protected String duration; + /** Instancie la classe. */ + public AppraisalRules() { + super(); + } - /** - * Instancie la classe. - */ - public AppraisalRules() { - super(); - } + /** + * Instancie la classe avec la règle spécifiée par les paramètres. + * + * @param name la référence de la règle communicabilité + * @param startDate date de départ de calcul de la règle de communicabilité + */ + public AppraisalRules(String name, LocalDate startDate) { + super(name, startDate); + } - /** - * Instancie la classe avec la règle spécifiée par les paramètres. - * - * @param name la référence de la règle communicabilité - * @param startDate date de départ de calcul de la règle de communicabilité - */ - public AppraisalRules(String name, LocalDate startDate) { - super(name, startDate); - } + /** + * Indique l'action à entreprendre au terme de la durée d’utilité administrative. + * + * @return l'action à entreprendre + */ + public String getFinalAction() { + return finalAction; + } - /** - * Indique l'action à entreprendre au terme de la durée d’utilité administrative. - * - * @return l'action à entreprendre - */ - public String getFinalAction() { - return finalAction; - } + /** + * Spécifie l'action à entreprendre au terme de la durée d’utilité administrative. + * + * @param finalAction l'action à entreprendre + */ + public void setFinalAction(String finalAction) { + this.finalAction = finalAction; + } - /** - * Spécifie l'action à entreprendre au terme de la durée d’utilité administrative. - * - * @param finalAction l'action à entreprendre - */ - public void setFinalAction(String finalAction) { - this.finalAction = finalAction; - } - - /** - * Indique la durée de d’utilité administrative. - * - * @return la durée de d’utilité administrative - */ - public String getDuration() { - return duration; - } - - /** - * Spécifie la durée de d’utilité administrative. - * - * @param duration la durée de d’utilité administrative - */ - public void setDuration(String duration) { - this.duration = duration; - } + /** + * Indique la durée d’utilité administrative. + * + * @return la durée d’utilité administrative + */ + public String getDuration() { + return duration; + } + /** + * Spécifie la durée d’utilité administrative. + * + * @param duration la durée d’utilité administrative + */ + public void setDuration(String duration) { + this.duration = duration; + } } diff --git a/src/main/java/fr/xelians/sipg/model/ArchiveDeliveryRequestReply.java b/src/main/java/fr/xelians/sipg/model/ArchiveDeliveryRequestReply.java new file mode 100644 index 0000000..2b23a2e --- /dev/null +++ b/src/main/java/fr/xelians/sipg/model/ArchiveDeliveryRequestReply.java @@ -0,0 +1,204 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package fr.xelians.sipg.model; + +import java.util.ArrayList; + +/** + * La classe ArchiveTransfer représente une archive à transférer. Elle peut contenir une ou + * plusieurs unités d'archives. + * + *

Supporté en SEDA v2.1 et FNTC v4. + * + * @author Emmanuel Deviller + * @see Message + * @see ArchiveUnit + */ +// Note. Add @XmlRootElement(name = "ArchiveTransfer") on ArchiveTransferType +public class ArchiveDeliveryRequestReply extends Message implements ArchiveUnitContainer { + + /** Liste des unités d'archives contenues dans l'archive. */ + protected final ArrayList archiveUnits; + + /** Listes de codes de références utilisés dans le message. */ + protected CodeListVersions codeListVersions; + + /** Accord de service. */ + protected String archivalAgreement; + + /** Service d'archives responsable du transfert. */ + protected Agency archivalAgency; + + /** Le code de retour (OK, KO, etc.) */ + protected String replyCode; + + /** Identifiant de la requête qui a initié la réponse. */ + protected String messageRequestIdentifier; + + /** Identifiant de l'archive unit */ + protected String unitIdentifier; + + /** Identifient de l'agence à l'origine du SIP */ + protected String originatingAgencyIdentifier; + + public String getOriginatingAgencyIdentifier() { + return originatingAgencyIdentifier; + } + + public void setOriginatingAgencyIdentifier(String originatingAgencyIdentifier) { + this.originatingAgencyIdentifier = originatingAgencyIdentifier; + } + + /** Demandeur */ + protected Agency requester; + + /** Instancie la classe. */ + public ArchiveDeliveryRequestReply() { + super(); + archiveUnits = new ArrayList<>(); + codeListVersions = new CodeListVersions(); + } + + /** + * Indique les codes de références utilisés dans le message. + * + * @return les codes de références + */ + public CodeListVersions getCodeListVersions() { + return codeListVersions; + } + + /** + * Spécifie les codes de références utilisés dans le message. + * + * @param codeListVersions les codes de références + */ + public void setCodeListVersions(CodeListVersions codeListVersions) { + this.codeListVersions = codeListVersions; + } + + /** + * Indique l'accord de service. + * + * @return l 'accord de service + */ + public String getArchivalAgreement() { + return archivalAgreement; + } + + /** + * Spécifie l'accord de service. + * + * @param archivalAgreement l'accord de service + */ + public void setArchivalAgreement(String archivalAgreement) { + this.archivalAgreement = archivalAgreement; + } + + /** + * Ajoute une unité d'archive à l'archive. + * + * @param archiveUnit l'unité d'archive + */ + @Override + public void addArchiveUnit(ArchiveUnit archiveUnit) { + archiveUnits.add(archiveUnit); + } + + /** + * Supprime une unité d'archive de l'archive. + * + * @param archiveUnit l'unité d'archive + * @return true si la suppression de l'élément a été réalisée avec succès, false sinon + */ + @Override + public boolean removeArchiveUnit(ArchiveUnit archiveUnit) { + return archiveUnits.remove(archiveUnit); + } + + /** + * Fournit la liste des unités d'archives contenues dans l'archive. + * + * @return la liste des unités d'archives + */ + @Override + public ArrayList getArchiveUnits() { + return new ArrayList<>(archiveUnits); + } + + /** + * Indique le service d'archives responsable du transfert. + * + * @return le service d'archives + */ + public Agency getArchivalAgency() { + return archivalAgency; + } + + /** + * Spécifie le service d'archives responsable du transfert. + * + * @param archivalAgency le service d'archives + */ + public void setArchivalAgency(Agency archivalAgency) { + this.archivalAgency = archivalAgency; + } + + /** + * Spécifie le service d'archives responsable du transfert. + * + * @param agencyIdentifier l'identifiant du service d'archives + * @param agencyName le nom du service d'archives + */ + public void setArchivalAgency(String agencyIdentifier, String agencyName) { + this.archivalAgency = new Agency(agencyIdentifier, agencyName); + } + + public String getReplyCode() { + return replyCode; + } + + public void setReplyCode(String replyCode) { + this.replyCode = replyCode; + } + + public String getMessageRequestIdentifier() { + return messageRequestIdentifier; + } + + public void setMessageRequestIdentifier(String messageRequestIdentifier) { + this.messageRequestIdentifier = messageRequestIdentifier; + } + + public String getUnitIdentifier() { + return unitIdentifier; + } + + public void setUnitIdentifier(String unitIdentifier) { + this.unitIdentifier = unitIdentifier; + } + + public Agency getRequester() { + return requester; + } + + public void setRequester(Agency requester) { + this.requester = requester; + } +} diff --git a/src/main/java/fr/xelians/sipg/model/ArchiveTransfer.java b/src/main/java/fr/xelians/sipg/model/ArchiveTransfer.java index d5c385f..5aaa854 100644 --- a/src/main/java/fr/xelians/sipg/model/ArchiveTransfer.java +++ b/src/main/java/fr/xelians/sipg/model/ArchiveTransfer.java @@ -21,14 +21,10 @@ import java.util.ArrayList; /** - *

- * La classe ArchiveTransfer représente une archive à transférer. Elle peut contenir une ou plusieurs unités - * d'archives. - *

+ * La classe ArchiveTransfer représente une archive à transférer. Elle peut contenir une ou + * plusieurs unités d'archives. * - *

- * Supporté en SEDA v2.1 et FNTC v4. - *

+ *

Supporté en SEDA v2.1 et FNTC v4. * * @author Emmanuel Deviller * @see Message @@ -37,295 +33,284 @@ // Note. Add @XmlRootElement(name = "ArchiveTransfer") on ArchiveTransferType public class ArchiveTransfer extends Message implements ArchiveUnitContainer { - /** - * Liste des unités d'archives contenues dans l'archive. - */ - protected final ArrayList archiveUnits; - /** - * Listes de codes de références utilisés dans le message. - */ - protected CodeListVersions codeListVersions; - /** - * Accord de service. - */ - protected String archivalAgreement; - /** - * Service d'archives responsable du transfert. - */ - protected Agency archivalAgency; - /** - * Service versant chargé de réaliser le transport. - */ - protected Agency transferringAgency; - /** - * Profil d’archivage applicable aux unités d'archives. - */ - protected String archivalProfile; - /** - * Niveau de service applicable aux unités d’archives. - */ - protected String serviceLevel; - /** - * Modalités d'entrée des archives. - */ - protected String acquisitionInformation; - /** - * Statut légal des archives. - */ - protected String legalStatus; - /** - * Identifiant du service producteur - information de gestion à ne pas confondre avec OriginatingAgency dans les - * métadonnées de description. - */ - protected String originatingAgencyIdentifier; - /** - * Identifiant du service versant - information de gestion à ne pas confondre avec SubmissionAgency dans les - * métadonnées de description. - */ - protected String submissionAgencyIdentifier; - - /** - * Instancie la classe. - */ - public ArchiveTransfer() { - super(); - archiveUnits = new ArrayList<>(); - codeListVersions = new CodeListVersions(); - } - - /** - * Indique les codes de références utilisés dans le message. - * - * @return les codes de références - */ - public CodeListVersions getCodeListVersions() { - return codeListVersions; - } - - /** - * Spécifie les codes de références utilisés dans le message. - * - * @param codeListVersions les codes de références - */ - public void setCodeListVersions(CodeListVersions codeListVersions) { - this.codeListVersions = codeListVersions; - } - - /** - * Indique l'accord de service. - * - * @return l 'accord de service - */ - public String getArchivalAgreement() { - return archivalAgreement; - } - - /** - * Spécifie l'accord de service. - * - * @param archivalAgreement l'accord de service - */ - public void setArchivalAgreement(String archivalAgreement) { - this.archivalAgreement = archivalAgreement; - } - - /** - * Ajoute une unité d'archive à l'archive. - * - * @param archiveUnit l'unité d'archive - */ - @Override - public void addArchiveUnit(ArchiveUnit archiveUnit) { - archiveUnits.add(archiveUnit); - } - - /** - * Supprime une unité d'archive de l'archive. - * - * @param archiveUnit l'unité d'archive - * @return true si la suppression de l'élément a été réalisée avec succès, false sinon - */ - @Override - public boolean removeArchiveUnit(ArchiveUnit archiveUnit) { - return archiveUnits.remove(archiveUnit); - } - - /** - * Fournit la liste des unités d'archives contenues dans l'archive. - * - * @return la liste des unités d'archives - */ - @Override - public ArrayList getArchiveUnits() { - return new ArrayList<>(archiveUnits); - } - - /** - * Indique le service d'archives responsable du transfert. - * - * @return le service d'archives - */ - public Agency getArchivalAgency() { - return archivalAgency; - } - - /** - * Spécifie le service d'archives responsable du transfert. - * - * @param archivalAgency le service d'archives - */ - public void setArchivalAgency(Agency archivalAgency) { - this.archivalAgency = archivalAgency; - } - - /** - * Spécifie le service d'archives responsable du transfert. - * - * @param agencyIdentifier l'identifiant du service d'archives - * @param agencyName le nom du service d'archives - */ - public void setArchivalAgency(String agencyIdentifier, String agencyName) { - this.archivalAgency = new Agency(agencyIdentifier, agencyName); - } - - /** - * Indique le service versant chargé de réaliser le transport. - * - * @return le service versant - */ - public Agency getTransferringAgency() { - return transferringAgency; - } - - /** - * Spécifie le service versant chargé de réaliser le transport. - * - * @param transferringAgency le service versant - */ - public void setTransferringAgency(Agency transferringAgency) { - this.transferringAgency = transferringAgency; - } - - /** - * Spécifie le service versant chargé de réaliser le transport. - * - * @param agencyIdentifier l'identifiant du service versant - * @param agencyName le nom du service versant - */ - public void setTransferringAgency(String agencyIdentifier, String agencyName) { - this.transferringAgency = new Agency(agencyIdentifier, agencyName); - } - - /** - * Indique le profil d’archivage applicable aux unités d'archives. - * - * @return le profil d’archivage - */ - public String getArchivalProfile() { - return archivalProfile; - } - - /** - * Spécifie le profil d’archivage applicable aux unités d'archives. - * - * @param archivalProfile le profil d’archivage - */ - public void setArchivalProfile(String archivalProfile) { - this.archivalProfile = archivalProfile; - } - - /** - * Indique le niveau de service applicable aux unités d’archives. - * - * @return le niveau de service - */ - public String getServiceLevel() { - return serviceLevel; - } - - /** - * Spécifie le niveau de service applicable aux unités d’archives. - * - * @param serviceLevel le niveau de service - */ - public void setServiceLevel(String serviceLevel) { - this.serviceLevel = serviceLevel; - } - - /** - * Indique les modalités d'entrée des archives. - * - * @return les modalités d'entrée - */ - public String getAcquisitionInformation() { - return acquisitionInformation; - } - - /** - * Spécifie les modalités d'entrée des archives. - * - * @param acquisitionInformation les modalités d'entrée - */ - public void setAcquisitionInformation(String acquisitionInformation) { - this.acquisitionInformation = acquisitionInformation; - } - - /** - * Indique le statut légal des archives. - * - * @return le statut légal - */ - public String getLegalStatus() { - return legalStatus; - } - - /** - * Spécifie le statut légal des archives. - * - * @param legalStatus le statut des archives - */ - public void setLegalStatus(String legalStatus) { - this.legalStatus = legalStatus; - } - - /** - * Indique l'identifiant du service producteur - information de gestion à ne pas confondre avec OriginatingAgency dans - * les métadonnées de description. - * - * @return l'identifiant du service producteur - */ - public String getOriginatingAgencyIdentifier() { - return originatingAgencyIdentifier; - } - - /** - * Spécifie l'identifiant du service producteur - information de gestion à ne pas confondre avec OriginatingAgency - * dans les métadonnées de description. - * - * @param originatingAgencyIdentifier l'identifiant du service producteur - */ - public void setOriginatingAgencyIdentifier(String originatingAgencyIdentifier) { - this.originatingAgencyIdentifier = originatingAgencyIdentifier; - } - - /** - * Indique l'identifiant du service versant - information de gestion à ne pas confondre avec SubmissionAgency dans les - * métadonnées de description. - * - * @return l'identifiant du service versant - */ - public String getSubmissionAgencyIdentifier() { - return submissionAgencyIdentifier; - } - - /** - * Spécifie l'identifiant du service versant - information de gestion à ne pas confondre avec SubmissionAgency dans - * les métadonnées de description. - * - * @param submissionAgencyIdentifier l'identifiant du service versant - */ - public void setSubmissionAgencyIdentifier(String submissionAgencyIdentifier) { - this.submissionAgencyIdentifier = submissionAgencyIdentifier; - } + /** Liste des unités d'archives contenues dans l'archive. */ + protected final ArrayList archiveUnits; + /** Listes de codes de références utilisés dans le message. */ + protected CodeListVersions codeListVersions; + + /** Accord de service. */ + protected String archivalAgreement; + + /** Service d'archives responsable du transfert. */ + protected Agency archivalAgency; + + /** Service versant chargé de réaliser le transport. */ + protected Agency transferringAgency; + + /** Profil d’archivage applicable aux unités d'archives. */ + protected String archivalProfile; + + /** Niveau de service applicable aux unités d’archives. */ + protected String serviceLevel; + + /** Modalités d'entrée des archives. */ + protected String acquisitionInformation; + + /** Statut légal des archives. */ + protected String legalStatus; + + /** + * Identifiant du service producteur. Information de gestion à ne pas confondre avec + * OriginatingAgency dans les métadonnées de description. + */ + protected String originatingAgencyIdentifier; + + /** + * Identifiant du service versant. Information de gestion à ne pas confondre avec SubmissionAgency + * dans les métadonnées de description. + */ + protected String submissionAgencyIdentifier; + + /** Instancie la classe. */ + public ArchiveTransfer() { + super(); + archiveUnits = new ArrayList<>(); + codeListVersions = new CodeListVersions(); + } + + /** + * Indique les codes de références utilisés dans le message. + * + * @return les codes de références + */ + public CodeListVersions getCodeListVersions() { + return codeListVersions; + } + + /** + * Spécifie les codes de références utilisés dans le message. + * + * @param codeListVersions les codes de références + */ + public void setCodeListVersions(CodeListVersions codeListVersions) { + this.codeListVersions = codeListVersions; + } + + /** + * Indique l'accord de service. + * + * @return l 'accord de service + */ + public String getArchivalAgreement() { + return archivalAgreement; + } + + /** + * Spécifie l'accord de service. + * + * @param archivalAgreement l'accord de service + */ + public void setArchivalAgreement(String archivalAgreement) { + this.archivalAgreement = archivalAgreement; + } + + /** + * Ajoute une unité d'archive à l'archive. + * + * @param archiveUnit l'unité d'archive + */ + @Override + public void addArchiveUnit(ArchiveUnit archiveUnit) { + archiveUnits.add(archiveUnit); + } + + /** + * Supprime une unité d'archive de l'archive. + * + * @param archiveUnit l'unité d'archive + * @return true si la suppression de l'élément a été réalisée avec succès, false sinon + */ + @Override + public boolean removeArchiveUnit(ArchiveUnit archiveUnit) { + return archiveUnits.remove(archiveUnit); + } + + /** + * Fournit la liste des unités d'archives contenues dans l'archive. + * + * @return la liste des unités d'archives + */ + @Override + public ArrayList getArchiveUnits() { + return new ArrayList<>(archiveUnits); + } + + /** + * Indique le service d'archives responsable du transfert. + * + * @return le service d'archives + */ + public Agency getArchivalAgency() { + return archivalAgency; + } + + /** + * Spécifie le service d'archives responsable du transfert. + * + * @param archivalAgency le service d'archives + */ + public void setArchivalAgency(Agency archivalAgency) { + this.archivalAgency = archivalAgency; + } + + /** + * Spécifie le service d'archives responsable du transfert. + * + * @param agencyIdentifier l'identifiant du service d'archives + * @param agencyName le nom du service d'archives + */ + public void setArchivalAgency(String agencyIdentifier, String agencyName) { + this.archivalAgency = new Agency(agencyIdentifier, agencyName); + } + + /** + * Indique le service versant chargé de réaliser le transport. + * + * @return le service versant + */ + public Agency getTransferringAgency() { + return transferringAgency; + } + + /** + * Spécifie le service versant chargé de réaliser le transport. + * + * @param transferringAgency le service versant + */ + public void setTransferringAgency(Agency transferringAgency) { + this.transferringAgency = transferringAgency; + } + + /** + * Spécifie le service versant chargé de réaliser le transport. + * + * @param agencyIdentifier l'identifiant du service versant + * @param agencyName le nom du service versant + */ + public void setTransferringAgency(String agencyIdentifier, String agencyName) { + this.transferringAgency = new Agency(agencyIdentifier, agencyName); + } + + /** + * Indique le profil d’archivage applicable aux unités d'archives. + * + * @return le profil d’archivage + */ + public String getArchivalProfile() { + return archivalProfile; + } + + /** + * Spécifie le profil d’archivage applicable aux unités d'archives. + * + * @param archivalProfile le profil d’archivage + */ + public void setArchivalProfile(String archivalProfile) { + this.archivalProfile = archivalProfile; + } + + /** + * Indique le niveau de service applicable aux unités d’archives. + * + * @return le niveau de service + */ + public String getServiceLevel() { + return serviceLevel; + } + + /** + * Spécifie le niveau de service applicable aux unités d’archives. + * + * @param serviceLevel le niveau de service + */ + public void setServiceLevel(String serviceLevel) { + this.serviceLevel = serviceLevel; + } + + /** + * Indique les modalités d'entrée des archives. + * + * @return les modalités d'entrée + */ + public String getAcquisitionInformation() { + return acquisitionInformation; + } + + /** + * Spécifie les modalités d'entrée des archives. + * + * @param acquisitionInformation les modalités d'entrée + */ + public void setAcquisitionInformation(String acquisitionInformation) { + this.acquisitionInformation = acquisitionInformation; + } + + /** + * Indique le statut légal des archives. + * + * @return le statut légal + */ + public String getLegalStatus() { + return legalStatus; + } + + /** + * Spécifie le statut légal des archives. + * + * @param legalStatus le statut des archives + */ + public void setLegalStatus(String legalStatus) { + this.legalStatus = legalStatus; + } + + /** + * Indique l'identifiant du service producteur. Information de gestion à ne pas confondre avec + * OriginatingAgency dans les métadonnées de description. + * + * @return l'identifiant du service producteur + */ + public String getOriginatingAgencyIdentifier() { + return originatingAgencyIdentifier; + } + + /** + * Spécifie l'identifiant du service producteur. Iinformation de gestion à ne pas confondre avec + * OriginatingAgency dans les métadonnées de description. + * + * @param originatingAgencyIdentifier l'identifiant du service producteur + */ + public void setOriginatingAgencyIdentifier(String originatingAgencyIdentifier) { + this.originatingAgencyIdentifier = originatingAgencyIdentifier; + } + + /** + * Indique l'identifiant du service versant. Information de gestion à ne pas confondre avec + * SubmissionAgency dans les métadonnées de description. + * + * @return l'identifiant du service versant + */ + public String getSubmissionAgencyIdentifier() { + return submissionAgencyIdentifier; + } + + /** + * Spécifie l'identifiant du service versant. Information de gestion à ne pas confondre avec + * SubmissionAgency dans les métadonnées de description. + * + * @param submissionAgencyIdentifier l'identifiant du service versant + */ + public void setSubmissionAgencyIdentifier(String submissionAgencyIdentifier) { + this.submissionAgencyIdentifier = submissionAgencyIdentifier; + } } diff --git a/src/main/java/fr/xelians/sipg/model/ArchiveUnit.java b/src/main/java/fr/xelians/sipg/model/ArchiveUnit.java index 07471c9..41e3a76 100644 --- a/src/main/java/fr/xelians/sipg/model/ArchiveUnit.java +++ b/src/main/java/fr/xelians/sipg/model/ArchiveUnit.java @@ -23,26 +23,22 @@ import com.fasterxml.jackson.annotation.ObjectIdGenerators; import fr.xelians.sipg.utils.SipException; import fr.xelians.sipg.utils.SipUtils; -import org.apache.commons.lang3.Validate; - import java.nio.file.Path; import java.time.LocalDate; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; import java.util.function.Supplier; +import org.apache.commons.lang3.Validate; /** - *

- * La classe ArchiveUnit représente une unité d'archive qui contient la référence de l'objet physique ou numérique à - * archiver, les métadonnées de description, les règles et les métadonnées de gestion de l'objet. Une unité d'archive - * peut contenir d'autres unités d'archives et constituer ainsi une arborescence. L'unité d'archive racine de - * l'arborescence est rattachée à un ArchiveTransfer. - *

+ * La classe ArchiveUnit représente une unité d'archive qui contient la référence de l'objet + * physique ou numérique à archiver, les métadonnées de description, les règles et les métadonnées + * de gestion de l'objet. Une unité d'archive peut contenir d'autres unités d'archives et constituer + * ainsi une arborescence. L'unité d'archive racine de l'arborescence est rattachée à un + * ArchiveTransfer. * - *

- * Supporté en SEDA v2.1 et FNTC v4. - *

+ *

Supporté en SEDA v2.1 et FNTC v4. * * @author Emmanuel Deviller * @see ArchiveTransfer @@ -50,2656 +46,2736 @@ @JsonIdentityInfo(generator = ObjectIdGenerators.IntSequenceGenerator.class) public class ArchiveUnit implements ArchiveUnitContainer { - public static final String PHYSICAL_MASTER = "PhysicalMaster"; - - /** - * La liste des évènements de l'unité d'archive. Un évènement correspond à toute opération concernant l'unité - * d'archive : opération de versement, de mise à jour de métadonnées, de préservation, etc. - */ - protected final List logEvents = new ArrayList<>(); - /** - * La liste des intitulés de l'unité d'archive. - */ - protected final List titles = new ArrayList<>(); - /** - * La liste des descriptions de l'unité d'archive. - */ - protected final List descriptions = new ArrayList<>(); - /** - * La liste des changements successifs de propriété, de responsabilité et de conservation des unités d'archives avant - * leur entrée dans le lieu de conservation. On peut notamment y indiquer comment s'est effectué le passage de - * l'application d'origine au fichier archivable. Correspond à l'historique de la conservation en ISAD(G). - */ - protected final List custodialItems = new ArrayList<>(); - /** - * La liste des langues du contenu des objets binaires ou physique. - */ - protected final List languages = new ArrayList<>(); - /** - * La liste de mots-clés de description. - */ - protected final List tags = new ArrayList<>(); - /** - * La liste des titulaires des droits de propriété intellectuelle. - */ - protected final List authorizedAgents = new ArrayList<>(); - /** - * La liste des rédacteurs de l’unité d'archive. - */ - protected final List writers = new ArrayList<>(); - /** - * La liste des destinataires pour action. Utilisé pour indiquer le nom du destinataire par exemple dans un courrier - * électronique. - */ - protected final List addressees = new ArrayList<>(); - /** - * La liste des destinataires pour information. Utilisé pour indiquer le nom du destinataire en copie, pour - * information, par exemple dans un courrier électronique. - */ - protected final List recipients = new ArrayList<>(); - /** - * La liste des émetteurs du message. - */ - protected final List transmitters = new ArrayList<>(); - /** - * La liste des expéditeurs du message. - */ - protected final List senders = new ArrayList<>(); - /** - * La liste des informations relatives à la signature. - */ - protected final List signatures = new ArrayList<>(); - /** - * La liste des éléments étendus qui n'appartiennent pas à l'ontolgie standard. - */ - protected final List elements = new ArrayList<>(); - /** - * La liste d'autres unités d'archives contenues dans cette unité d'archive. - */ - protected final List archiveUnits = new ArrayList<>(); - - /** - * La liste des archives unites référencées par cette unité d'archive. - */ - protected final List references = new ArrayList<>(); - - /** - * L'identifiant unique de l'archive unit dans le document. - */ - protected String id; - - /** - * L'identifiant de l'objet physique. - */ - protected String physicalId; - /** - * La quantité ou taille de l'objet physique. - */ - protected double measure; - /** - * La version de l'objet physique. - */ - protected String physicalVersion; - - /** - * L'objet binaire de type binary master. - */ - protected BinaryMasterDataObject binaryMasterDataObject; - - /** - * L'objet binaire de type dissemination (publication). - */ - protected DisseminationDataObject disseminationDataObject; - - /** - * L'objet binaire de type thumbnail (vignette). - */ - protected ThumbnailDataObject thumbnailDataObject; - - /** - * L'objet binaire de type text content (contenu texte). - */ - protected TextContentDataObject textContentDataObject; - - /** - * Le statut de la signature de l'objet binaire. - */ - protected String signatureStatus; - /** - * Le profile d’archivage applicable à l'unité d'archive. - */ - protected String archiveUnitProfile; - /** - * L'identifiant du service producteur. - */ - protected String originatingAgencyIdentifier; - /** - * L'identifiant du service versant. - */ - protected String submissionAgencyIdentifier; - /** - * Indique si une autorisation humaine est nécessaire pour vérifier ou valider les opérations de gestion des - * ArchiveUnit. - */ - protected Boolean needAuthorization; - /** - * Les règles de communicabilité (accessibilité). - */ - protected AccessRules accessRules; - /** - * Les règles de durée d’utilité administrative. - */ - protected AppraisalRules appraisalRules; - /** - * Les règles de diffusion. - */ - protected DisseminationRules disseminationRules; - /** - * Les règles de réutilisation. - */ - protected ReuseRules reuseRules; - /** - * Les règles de classification. - */ - protected ClassificationRules classificationRules; - /** - * Les règles de durée d'utilité courante. - */ - protected StorageRules storageRules; - /** - * Les règles de gel. - */ - protected HoldRules holdRules; - /** - * L'opération de mise à jour. - */ - protected UpdateOperation updateOperation; - /** - * Le niveau de description au sens de la norme ISAD (G). Indique si l’unité d'archive correspond à un fonds, à un - * sous-fonds, à une classe, à une série organique, à une sous-série organique, à un dossier, à un sous-dossier ou à - * une pièce. - */ - protected String descriptionLevel; - /** - * La position de l’unité d'archive dans le plan de classement du service producteur. - */ - protected List filePlanPositions = new ArrayList<>(); - /** - * L'identifiant attribué aux objets. Il est attribué par le SAE et correspond à un identifiant interne. - */ - protected List systemIds = new ArrayList<>(); - /** - * L'identifiant attribué aux objets de données. Il est attribué par le SAE et correspond à un identifiant interne. - */ - protected List dataObjectSystemIds = new ArrayList<>(); - /** - * L'identifiant système attribué à l’ArchiveUnit par l’application du service producteur. - */ - protected List originatingSystemIds = new ArrayList<>(); - /** - * L'identifiant métier attribué à l'unité d'archive par le service d'archives. Peut être comparé à une cote. - */ - protected List archivalAgencyArchiveUnitIdentifiers = new ArrayList<>(); - /** - * L'identifiant métier attribué à l’ArchiveUnit par le service producteur. - */ - protected List originatingAgencyArchiveUnitIdentifiers = new ArrayList<>(); - /** - * L'identifiant attribué à l'ArchiveUnit par le service versant. - */ - protected List transferringAgencyArchiveUnitIdentifiers = new ArrayList<>(); - /** - * Le type d’information au sens de l’OAIS (information de représentation, information de pérennisation, etc.). - */ - protected String type; - /** - * Le type de document au sens diplomatique du terme (ex. compte rendu de réunion, note, correspondance, etc.). - * Attention à ne pas confondre avec le Type. - */ - protected String documentType; - /** - * La langue utilisée pour les métadonnées de description. - */ - protected String descriptionLanguage; - /** - * L'état de l'objet binaire ou physique (par rapport avec son cycle de vie). L'état permet par exemple d'indiquer si - * la signature du fichier a été vérifiée avant le transfert aux archives. - */ - protected String status; - /** - * La version du document. - */ - protected String version; - /** - * Le service producteur. Il s'agit d'une personne physique ou morale, publique ou privée, qui a produit, reçu et - * conservé des archives dans l'exercice de son activité. - */ - protected Agency originatingAgency; - /** - * Le service versant responsable du transfert des données. - */ - protected Agency submissionAgency; - /** - * La référence à la source papier originale. - */ - protected String source; - /** - * La référence à un objet faisant ou ne faisant pas partie du présent paquet d'information. - */ - // TODO: implement deserialization for RelatedObjectRef (serialization is done) - @JsonIgnore - protected RelatedObjectRef relation; - /** - * L'identifiant de la version du GPS. - */ - protected String gpsVersionID; - /** - * L'altitude basée sur la référence dans GPSAltitudeRef. L'altitude est exprimée en mètres. - */ - protected String gpsAltitude; - /** - * L'altitude utilisée comme altitude de référence. Si l'altitude est au-dessus du niveau de la mer, la valeur 0 est - * normalement donnée. Si l'altitude est au-dessous du niveau de la mer, la valeur 1 est normalement donnée. - */ - protected String gpsAltitudeRef; - /** - * La latitude qui peut être exprimée de deux manières différentes : degrés, décimaux ou degrés, minutes et secondes. - * Si la latitude est exprimée en degrés, décimaux, le format type est dd, dd. Par ex: "45.3130339". Si la latitude - * est exprimée en degrés, minutes et secondes, le format type est dd, mm, ss. Par ex: "45 18 46.922". - */ - protected String gpsLatitude; - /** - * Indique la latitude. La valeur 'N' indique la latitude nord, et 'S' indique la latitude sud. - */ - protected String gpsLatitudeRef; - /** - * La longitude peut être exprimée de deux manières différentes : degrés, décimaux ou degrés, minutes et secondes. Si - * la longitude est exprimée en degrés, décimaux, le format type est dd, dd. Par exemple : "5.392285833333334". Si la - * longitude est exprimée en degrés, minutes et secondes, le format type est dd, mm, ss. Par exemple : "5 23 32.229". - */ - protected String gpsLongitude; - /** - * Indique la longitude. La valeur 'E' indique la longitude Est, et 'W' indique la longitude Ouest. - */ - protected String gpsLongitudeRef; - /** - * L'heure et la date de la position GPS. - */ - protected String gpsDateStamp; - /** - * La date de création. - */ - protected LocalDate createdDate; - /** - * La date de la transaction. - */ - protected LocalDate transactedDate; - /** - * La date de numérisation. - */ - protected LocalDate acquiredDate; - /** - * La date d'envoi. - */ - protected LocalDate sentDate; - /** - * La date de réception. - */ - protected LocalDate receivedDate; - /** - * La date d'enregistrement. - */ - protected LocalDate registeredDate; - /** - * La date d'ouverture / date de début. - */ - protected LocalDate startDate; - /** - * La date de fermeture / Date de fin. - */ - protected LocalDate endDate; - - /** - * Instancie la classe. - */ - public ArchiveUnit() { - // Do nothing here - } - - /** - * Indique l'identifiant de l'objet physique. - * - * @return l'identifiant de l'objet physique - */ - public String getPhysicalId() { - return physicalId; - } - - /** - * Spécifie l'identifiant de l'objet physique. - * - * @param physicalId l'identifiant de l'objet physique - */ - public void setPhysicalId(String physicalId) { - this.physicalId = physicalId; - } - - /** - * Indique la quantité ou taille de l'objet physique. - * - * @return la quantité ou taille de l'objet physique - */ - public double getMeasure() { - return measure; - } - - /** - * Spécifie la quantité ou taille de l'objet physique. - * - * @param measure la quantité ou taille de l'objet physique - */ - public void setMeasure(double measure) { - this.measure = measure; - } - - /** - * Indique l'objet binaire de type binary master. - * - * @return l'objet binaire - */ - public BinaryDataObject getBinaryMasterDataObject() { - return binaryMasterDataObject; - } - - /** - * Indique l'objet binaire de type dissemination. - * - * @return l'objet binaire - */ - public BinaryDataObject getDisseminationDataObject() { - return disseminationDataObject; - } - - /** - * Indique l'objet binaire de type thumbnail. - * - * @return l'objet binaire - */ - public BinaryDataObject getThumbnailDataObject() { - return thumbnailDataObject; - } - - /** - * Indique l'objet binaire de type text content. - * - * @return l'objet binaire - */ - public BinaryDataObject getTextContentDataObject() { - return textContentDataObject; - } - - /** - * Fournit l'objet binaire de type qualifier. Si l'objet n'existe pas, il est alors créé. - * - * @return l'objet binaire - */ - public BinaryDataObject provideBinaryDataObject(String qualifier) { - return switch (qualifier) { - case BinaryDataObject.BINARY_MASTER -> provideBinaryMasterDataObject(); - case BinaryDataObject.DISSEMINATION -> provideDisseminationDataObject(); - case BinaryDataObject.THUMBNAIL -> provideThumbnailDataObject(); - case BinaryDataObject.TEXT_CONTENT -> provideTextContentDataObject(); - default -> throw new SipException(String.format("Unknown qualifier %s", qualifier)); - }; - } - - /** - * Indique le fournisseur du path de l'objet binaire de type binary master. - * - * @return le fournisseur du path de l'objet binaire - */ - @JsonIgnore - public Supplier getBinaryPathSupplier() { - return binaryMasterDataObject == null ? null : binaryMasterDataObject.getBinaryPathSupplier(); - } - - private BinaryMasterDataObject provideBinaryMasterDataObject() { - if (binaryMasterDataObject == null) { - binaryMasterDataObject = new BinaryMasterDataObject(); - } - return binaryMasterDataObject; - } - - /** - * Spécifie le fournisseur du path de l'objet binaire de type binary master. - * - * @param binaryPathSupplier le fournisseur du path de l'objet binaire - */ - public void setBinaryPathSupplier(Supplier binaryPathSupplier) { - provideBinaryMasterDataObject().setBinaryPathSupplier(binaryPathSupplier); - } - - /** - * Indique le path de l'objet binaire de type binary master. - * - * @return le path de l'objet binaire - */ - public Path getBinaryPath() { - return binaryMasterDataObject == null ? null : binaryMasterDataObject.getBinaryPath(); - } - - /** - * Spécifie le path de l'objet binaire de type binary master. - * - * @param binaryPath le path de l'objet binaire - */ - public void setBinaryPath(Path binaryPath) { - provideBinaryMasterDataObject().setBinaryPath(binaryPath); - } - - /** - * Indique la version de l'objet binaire de type binary master. - * - * @return la version de l'objet binaire - */ - public String getBinaryVersion() { - return binaryMasterDataObject == null ? null : binaryMasterDataObject.getBinaryVersion(); - } - - /** - * Spécifie la version de l'objet binaire de type binary master. - * - * @param binaryVersion la version de l'objet binaire - */ - public void setBinaryVersion(String binaryVersion) { - provideBinaryMasterDataObject().setBinaryVersion(binaryVersion); - } - - /** - * Indique l'algorithme utilisé pour générer l'empreinte (hash) de l'objet binaire de type binary master. - * - * @return l'algorithme utilisé - */ - public String getDigestAlgorithm() { - return binaryMasterDataObject == null ? null : binaryMasterDataObject.getDigestAlgorithm(); - } - - /** - * Indique les informations techniques de l'objet binaire de type binary master. - * - * @return les informations techniques - */ - public FileInfo getFileInfo() { - return binaryMasterDataObject == null ? null : binaryMasterDataObject.getFileInfo(); - } - - /** - * Spécifie les informations techniques de l'objet binaire de type binary master. - * - * @param fileInfo les informations techniques - */ - public void setFileInfo(FileInfo fileInfo) { - provideBinaryMasterDataObject().setFileInfo(fileInfo); - } - - /** - * Indique l'identifiant du format de l'objet binaire de type binary master. Il est fortement conseillé - * d'identifier le format de l'objet binaire selon le référentiel Pronom édité par The British National Archives. - * - * @return l 'identifiant du format de l'objet binaire - */ - public String getFormatId() { - return binaryMasterDataObject == null ? null : binaryMasterDataObject.getFormatIdentification().getFormatId(); - } - - /** - * Spécifie l'identifiant du format de l'objet binaire de type binary master. Il est fortement conseillé - * d'identifier le format de l'objet binaire selon le référentiel Pronom édité par The British National Archives. - * - * @param formatId l'identifiant du format de l'objet binaire - */ - public void setFormatId(String formatId) { - provideBinaryMasterDataObject().getFormatIdentification().setFormatId(formatId); - } - - /** - * Indique le nom du format de l'objet binaire de type binary master. Il est fortement conseillé - * de nommer le format de l'objet binaire selon le référentiel Pronom édité par The British National Archives. - * - * @return le nom du format de l'objet binaire - */ - public String getFormatName() { - return binaryMasterDataObject == null ? null : binaryMasterDataObject.getFormatIdentification().getFormatName(); - } - - /** - * Spécifie le nom du format de l'objet binaire de type binary master. Il est fortement conseillé - * de nommer le format de l'objet binaire selon le référentiel Pronom édite par The British National Archives. - * - * @param formatName le nom du format de l'objet binaire - */ - public void setFormatName(String formatName) { - provideBinaryMasterDataObject().getFormatIdentification().setFormatName(formatName); - } - - /** - * Indique le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type binary master. - * - * @return le type MIME - */ - public String getMimeType() { - return binaryMasterDataObject == null ? null : binaryMasterDataObject.getFormatIdentification().getMimeType(); - } - - /** - * Spécifie le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type binary master. - * - * @param mimeType le type MIME - */ - public void setMimeType(String mimeType) { - provideBinaryMasterDataObject().getFormatIdentification().setMimeType(mimeType); - } - - private DisseminationDataObject provideDisseminationDataObject() { - if (disseminationDataObject == null) { - disseminationDataObject = new DisseminationDataObject(); - } - return disseminationDataObject; - } - - /** - * Indique le fournisseur du path de l'objet binaire de type dissemination (publication). - * - * @return le fournisseur du path de l'objet binaire - */ - @JsonIgnore - public Supplier getDisseminationPathSupplier() { - return disseminationDataObject == null ? null : disseminationDataObject.getBinaryPathSupplier(); - } - - /** - * Spécifie le fournisseur du path de l'objet binaire de type dissemination (publication). - * - * @param binaryPathSupplier le fournisseur du path de l'objet binaire - */ - public void setDisseminationPathSupplier(Supplier binaryPathSupplier) { - provideDisseminationDataObject().setBinaryPathSupplier(binaryPathSupplier); - } - - /** - * Indique le path de l'objet binaire de type dissemination (publication). - * - * @return le path de l'objet binaire - */ - public Path getDisseminationPath() { - return disseminationDataObject == null ? null : disseminationDataObject.getBinaryPath(); - } - - /** - * Spécifie le path de l'objet binaire de type dissemination (publication). - * - * @param binaryPath le path de l'objet binaire - */ - public void setDisseminationPath(Path binaryPath) { - provideDisseminationDataObject().setBinaryPath(binaryPath); - } - - /** - * Indique la version de l'objet binaire de type dissemination (publication). - * - * @return la version de l'objet binaire - */ - public String getDisseminationVersion() { - return disseminationDataObject == null ? null : disseminationDataObject.getBinaryVersion(); - } - - /** - * Spécifie la version de l'objet binaire de type dissemination (publication). - * - * @param binaryVersion la version de l'objet binaire - */ - public void setDisseminationVersion(String binaryVersion) { - provideDisseminationDataObject().setBinaryVersion(binaryVersion); - } - - /** - * Indique l'algorithme utilisé pour générer l'empreinte (hash) de l'objet binaire de type dissemination (publication). - * - * @return l'algorithme utilisé - */ - public String getDisseminationDigestAlgorithm() { - return disseminationDataObject == null ? null : disseminationDataObject.getDigestAlgorithm(); - } - - /** - * Indique les informations techniques de l'objet binaire de type dissemination (publication). - * - * @return les informations techniques - */ - public FileInfo getDisseminationFileInfo() { - return disseminationDataObject == null ? null : disseminationDataObject.getFileInfo(); - } - - /** - * Spécifie les informations techniques de l'objet binaire de type dissemination (publication). - * - * @param fileInfo les informations techniques - */ - public void setDisseminationFileInfo(FileInfo fileInfo) { - provideDisseminationDataObject().setFileInfo(fileInfo); - } - - /** - * Indique l'identifiant du format de l'objet binaire de type dissemination (publication). Il est fortement conseillé - * d'identifier le format de l'objet binaire selon le référentiel Pronom édité par The British National Archives. - * - * @return l 'identifiant du format de l'objet binaire - */ - public String getDisseminationFormatId() { - return disseminationDataObject == null ? null : disseminationDataObject.getFormatIdentification().getFormatId(); - } - - /** - * Spécifie l'identifiant du format de l'objet binaire de type dissemination (publication). Il est fortement conseillé - * d'identifier le format de l'objet binaire selon le référentiel Pronom édité par The British National Archives. - * - * @param formatId l'identifiant du format de l'objet binaire - */ - public void setDisseminationFormatId(String formatId) { - provideDisseminationDataObject().getFormatIdentification().setFormatId(formatId); - } - - /** - * Indique le nom du format de l'objet binaire de type dissemination (publication). Il est fortement conseillé - * de nommer le format de l'objet binaire selon le référentiel Pronom édité par The British National Archives. - * - * @return le nom du format de l'objet binaire - */ - public String getDisseminationFormatName() { - return disseminationDataObject == null ? null : disseminationDataObject.getFormatIdentification().getFormatName(); - } - - /** - * Spécifie le nom du format de l'objet binaire de type dissemination (publication). Il est fortement conseillé - * de nommer le format de l'objet binaire selon le référentiel Pronom édite par The British National Archives. - * - * @param formatName le nom du format de l'objet binaire - */ - public void setDisseminationFormatName(String formatName) { - provideDisseminationDataObject().getFormatIdentification().setFormatName(formatName); - } - - /** - * Indique le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type dissemination (publication). - * - * @return le type MIME - */ - public String getDisseminationMimeType() { - return disseminationDataObject == null ? null : disseminationDataObject.getFormatIdentification().getMimeType(); - } - - /** - * Spécifie le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type dissemination (publication). - * - * @param mimeType le type MIME - */ - public void setDisseminationMimeType(String mimeType) { - provideDisseminationDataObject().getFormatIdentification().setMimeType(mimeType); - } - - private ThumbnailDataObject provideThumbnailDataObject() { - if (thumbnailDataObject == null) { - thumbnailDataObject = new ThumbnailDataObject(); - } - return thumbnailDataObject; - } - - /** - * Indique le fournisseur du path de l'objet binaire de type thumbnail (vignette). - * - * @return le fournisseur du path de l'objet binaire - */ - @JsonIgnore - public Supplier getThumbnailPathSupplier() { - return thumbnailDataObject == null ? null : thumbnailDataObject.getBinaryPathSupplier(); - } - - /** - * Spécifie le fournisseur du path de l'objet binaire de type thumbnail (vignette). - * - * @param binaryPathSupplier le fournisseur du path de l'objet binaire - */ - public void setThumbnailPathSupplier(Supplier binaryPathSupplier) { - provideThumbnailDataObject().setBinaryPathSupplier(binaryPathSupplier); - } - - /** - * Indique le path de l'objet binaire de type thumbnail (vignette). - * - * @return le path de l'objet binaire - */ - public Path getThumbnailPath() { - return thumbnailDataObject == null ? null : thumbnailDataObject.getBinaryPath(); - } - - /** - * Spécifie le path de l'objet binaire de type thumbnail (vignette). - * - * @param binaryPath le path de l'objet binaire - */ - public void setThumbnailPath(Path binaryPath) { - provideThumbnailDataObject().setBinaryPath(binaryPath); - } - - /** - * Indique la version de l'objet binaire de type thumbnail (vignette). - * - * @return la version de l'objet binaire - */ - public String getThumbnailVersion() { - return thumbnailDataObject == null ? null : thumbnailDataObject.getBinaryVersion(); - } - - /** - * Spécifie la version de l'objet binaire de type thumbnail (vignette). - * - * @param binaryVersion la version de l'objet binaire - */ - public void setThumbnailVersion(String binaryVersion) { - provideThumbnailDataObject().setBinaryVersion(binaryVersion); - } - - /** - * Indique l'algorithme utilisé pour générer l'empreinte (hash) de l'objet binaire de type thumbnail (vignette). - * - * @return l'algorithme utilisé - */ - public String getThumbnailDigestAlgorithm() { - return thumbnailDataObject == null ? null : thumbnailDataObject.getDigestAlgorithm(); - } - - /** - * Indique les informations techniques de l'objet binaire de type thumbnail (vignette). - * - * @return les informations techniques - */ - public FileInfo getThumbnailFileInfo() { - return thumbnailDataObject == null ? null : thumbnailDataObject.getFileInfo(); - } - - /** - * Spécifie les informations techniques de l'objet binaire de type thumbnail (vignette). - * - * @param fileInfo les informations techniques - */ - public void setThumbnailFileInfo(FileInfo fileInfo) { - provideThumbnailDataObject().setFileInfo(fileInfo); - } - - /** - * Indique l'identifiant du format de l'objet binaire de type thumbnail (vignette). Il est fortement conseillé - * d'identifier le format de l'objet binaire selon le référentiel Pronom édité par The British National Archives. - * - * @return l 'identifiant du format de l'objet binaire - */ - public String getThumbnailFormatId() { - return thumbnailDataObject == null ? null : thumbnailDataObject.getFormatIdentification().getFormatId(); - } - - /** - * Spécifie l'identifiant du format de l'objet binaire de type thumbnail (vignette). Il est fortement conseillé - * d'identifier le format de l'objet binaire selon le référentiel Pronom édité par The British National Archives. - * - * @param formatId l'identifiant du format de l'objet binaire - */ - public void setThumbnailFormatId(String formatId) { - provideThumbnailDataObject().getFormatIdentification().setFormatId(formatId); - } - - /** - * Indique le nom du format de l'objet binaire de type thumbnail (vignette). Il est fortement conseillé - * de nommer le format de l'objet binaire selon le référentiel Pronom édité par The British National Archives. - * - * @return le nom du format de l'objet binaire - */ - public String getThumbnailFormatName() { - return thumbnailDataObject == null ? null : thumbnailDataObject.getFormatIdentification().getFormatName(); - } - - /** - * Spécifie le nom du format de l'objet binaire de type thumbnail (vignette). Il est fortement conseillé - * de nommer le format de l'objet binaire selon le référentiel Pronom édite par The British National Archives. - * - * @param formatName le nom du format de l'objet binaire - */ - public void setThumbnailFormatName(String formatName) { - provideThumbnailDataObject().getFormatIdentification().setFormatName(formatName); - } - - /** - * Indique le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type thumbnail (vignette). - * - * @return le type MIME - */ - public String getThumbnailMimeType() { - return thumbnailDataObject == null ? null : thumbnailDataObject.getFormatIdentification().getMimeType(); - } - - /** - * Spécifie le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type thumbnail (vignette). - * - * @param mimeType le type MIME - */ - public void setThumbnailMimeType(String mimeType) { - provideThumbnailDataObject().getFormatIdentification().setMimeType(mimeType); - } - - private TextContentDataObject provideTextContentDataObject() { - if (textContentDataObject == null) { - textContentDataObject = new TextContentDataObject(); - } - return textContentDataObject; - } - - /** - * Indique le fournisseur du path de l'objet binaire de type text content (contenu texte). - * - * @return le fournisseur du path de l'objet binaire - */ - @JsonIgnore - public Supplier getTextContentPathSupplier() { - return textContentDataObject == null ? null : textContentDataObject.getBinaryPathSupplier(); - } - - /** - * Spécifie le fournisseur du path de l'objet binaire de type text content (contenu texte). - * - * @param binaryPathSupplier le fournisseur du path de l'objet binaire - */ - public void setTextContentPathSupplier(Supplier binaryPathSupplier) { - provideTextContentDataObject().setBinaryPathSupplier(binaryPathSupplier); - } - - /** - * Indique le path de l'objet binaire de type text content (contenu texte). - * - * @return le path de l'objet binaire - */ - public Path getTextContentPath() { - return textContentDataObject == null ? null : textContentDataObject.getBinaryPath(); - } - - /** - * Spécifie le path de l'objet binaire de type text content (contenu texte). - * - * @param binaryPath le path de l'objet binaire - */ - public void setTextContentPath(Path binaryPath) { - provideTextContentDataObject().setBinaryPath(binaryPath); - } - - /** - * Indique la version de l'objet binaire de type text content (contenu texte). - * - * @return la version de l'objet binaire - */ - public String getTextContentVersion() { - return textContentDataObject == null ? null : textContentDataObject.getBinaryVersion(); - } - - /** - * Spécifie la version de l'objet binaire de type text content (contenu texte). - * - * @param binaryVersion la version de l'objet binaire - */ - public void setTextContentVersion(String binaryVersion) { - provideTextContentDataObject().setBinaryVersion(binaryVersion); - } - - /** - * Indique l'algorithme utilisé pour générer l'empreinte (hash) de l'objet binaire de type text content (contenu texte). - * - * @return l'algorithme utilisé - */ - public String getTextContentDigestAlgorithm() { - return textContentDataObject == null ? null : textContentDataObject.getDigestAlgorithm(); - } - - /** - * Indique les informations techniques de l'objet binaire de type text content (contenu texte). - * - * @return les informations techniques - */ - public FileInfo getTextContentFileInfo() { - return textContentDataObject == null ? null : textContentDataObject.getFileInfo(); - } - - /** - * Spécifie les informations techniques de l'objet binaire de type text content (contenu texte). - * - * @param fileInfo les informations techniques - */ - public void setTextContentFileInfo(FileInfo fileInfo) { - provideTextContentDataObject().setFileInfo(fileInfo); - } - - /** - * Indique l'identifiant du format de l'objet binaire de type text content (contenu texte). Il est fortement conseillé - * d'identifier le format de l'objet binaire selon le référentiel Pronom édité par The British National Archives. - * - * @return l 'identifiant du format de l'objet binaire - */ - public String getTextContentFormatId() { - return textContentDataObject == null ? null : textContentDataObject.getFormatIdentification().getFormatId(); - } - - /** - * Spécifie l'identifiant du format de l'objet binaire de type text content (contenu texte). Il est fortement conseillé - * d'identifier le format de l'objet binaire selon le référentiel Pronom édité par The British National Archives. - * - * @param formatId l'identifiant du format de l'objet binaire - */ - public void setTextContentFormatId(String formatId) { - provideTextContentDataObject().getFormatIdentification().setFormatId(formatId); - } - - /** - * Indique le nom du format de l'objet binaire de type text content (contenu texte). Il est fortement conseillé - * de nommer le format de l'objet binaire selon le référentiel Pronom édité par The British National Archives. - * - * @return le nom du format de l'objet binaire - */ - public String getTextContentFormatName() { - return textContentDataObject == null ? null : textContentDataObject.getFormatIdentification().getFormatName(); - } - - /** - * Spécifie le nom du format de l'objet binaire de type text content (contenu texte). Il est fortement conseillé - * de nommer le format de l'objet binaire selon le référentiel Pronom édite par The British National Archives. - * - * @param formatName le nom du format de l'objet binaire - */ - public void setTextContentFormatName(String formatName) { - provideTextContentDataObject().getFormatIdentification().setFormatName(formatName); - } - - /** - * Indique le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type text content (contenu texte). - * - * @return le type MIME - */ - public String getTextContentMimeType() { - return textContentDataObject == null ? null : textContentDataObject.getFormatIdentification().getMimeType(); - } - - /** - * Spécifie le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type text content (contenu texte). - * - * @param mimeType le type MIME - */ - public void setTextContentMimeType(String mimeType) { - provideTextContentDataObject().getFormatIdentification().setMimeType(mimeType); - } - - /** - * Indique la version de l'objet physique. - * - * @return la version de l'objet physique - */ - public String getPhysicalVersion() { - return physicalVersion; - } - - /** - * Spécifie la version de l'objet physique. - * - * @param physicalVersion la version de l'objet physique - */ - public void setPhysicalVersion(String physicalVersion) { - this.physicalVersion = physicalVersion; - } - - - /** - * Indique le statut de la signature de l'objet binaire. - * - * @return le statut de la signature de l'objet binaire - */ - public String getSignatureStatus() { - return signatureStatus; - } - - /** - * Spécifie le statut de la signature de l'objet binaire. - * - * @param signatureStatus le statut de la signature de l'objet binaire - */ - public void setSignatureStatus(String signatureStatus) { - this.signatureStatus = signatureStatus; - } - - /** - * Indique le profile d’archivage applicable à l'unité d'archive. - * - * @return le profile d’archivage - */ - public String getArchiveUnitProfile() { - return archiveUnitProfile; - } - - /** - * Spécifie le profile d’archivage applicable à l'unité d'archive. - * - * @param achiveUnitProfile le profile d’archivage - */ - public void setArchiveUnitProfile(String achiveUnitProfile) { - this.archiveUnitProfile = achiveUnitProfile; - } - - /** - * Indique les règles de communicabilité (accessibilité). - * - * @return les règles de communicabilité - */ - public AccessRules getAccessRules() { - return accessRules; - } - - /** - * Spécifie les règles de communicabilité (accessibilité). - * - * @param accessRules les règles de communicabilité - */ - public void setAccessRules(AccessRules accessRules) { - this.accessRules = accessRules; - } - - /** - * Spécifie les règles de communicabilité (accessibilité). - * - * @param ruleName le nom de la règle - * @param startDate la date de début - */ - public void setAccessRules(String ruleName, LocalDate startDate) { - this.accessRules = new AccessRules(ruleName, startDate); - } - - /** - * Indique les règles de diffusion. - * - * @return les règles de diffusion - */ - public DisseminationRules getDisseminationRules() { - return disseminationRules; - } - - /** - * Spécifie les règles de diffusion. - * - * @param disseminationRules les règles de diffusion. - */ - public void setDisseminationRules(DisseminationRules disseminationRules) { - this.disseminationRules = disseminationRules; - } - - /** - * Spécifie les règles de diffusion. - * - * @param ruleName le nom de la règle - * @param startDate la date de début - */ - public void setDisseminationRule(String ruleName, LocalDate startDate) { - this.disseminationRules = new DisseminationRules(ruleName, startDate); - } - - /** - * Indique les règles de classification. - * - * @return les règles de classification - */ - public ClassificationRules getClassificationRules() { - return classificationRules; - } - - /** - * Spécifie les règles de classification. - * - * @param classificationRules les règles de classification - */ - public void setClassificationRules(ClassificationRules classificationRules) { - this.classificationRules = classificationRules; - } - - /** - * Spécifie les règles de classification. - * - * @param ruleName le nom de la règle - * @param startDate la date de début - */ - public void setClassificationRules(String ruleName, LocalDate startDate) { - this.classificationRules = new ClassificationRules(ruleName, startDate); - } - - /** - * Indique les règles de réutilisation. - * - * @return les règles de réutilisation - */ - public ReuseRules getReuseRules() { - return reuseRules; - } - - /** - * Spécifie les règles de réutilisation. - * - * @param reuseRules les règles de réutilisation - */ - public void setReuseRules(ReuseRules reuseRules) { - this.reuseRules = reuseRules; - } - - /** - * Spécifie les règles de réutilisation. - * - * @param ruleName le nom de la règle - * @param startDate la date de début - */ - public void setReuseRules(String ruleName, LocalDate startDate) { - this.reuseRules = new ReuseRules(ruleName, startDate); - } - - /** - * Indique les règles de durée d’utilité administrative. - * - * @return les règles de durée d’utilité administrative - */ - public AppraisalRules getAppraisalRules() { - return appraisalRules; - } - - /** - * Spécifie les règles de durée d’utilité administrative. - * - * @param appraisalRules les règles de durée d’utilité administrative - */ - public void setAppraisalRules(AppraisalRules appraisalRules) { - this.appraisalRules = appraisalRules; - } - - /** - * Spécifie les règles de durée d’utilité administrative. - * - * @param ruleName le nom de la règle - * @param startDate la date de début - */ - public void setAppraisalRules(String ruleName, LocalDate startDate) { - this.appraisalRules = new AppraisalRules(ruleName, startDate); - } - - /** - * Indique les règles de durée d'utilité courante. - * - * @return les règles de durée d'utilité courante - */ - public StorageRules getStorageRules() { - return storageRules; - } - - /** - * Spécifie les règles de durée d'utilité courante. - * - * @param storageRules les règles de durée d'utilité courante - */ - public void setStorageRules(StorageRules storageRules) { - this.storageRules = storageRules; - } - - /** - * Spécifie les règles de durée d'utilité courante. - * - * @param ruleName le nom de la règle - * @param startDate la date de début - */ - public void setStorageRules(String ruleName, LocalDate startDate) { - this.storageRules = new StorageRules(ruleName, startDate); - } - - /** - * Indique les règles de gel. - * - * @return les règles de gel - */ - public HoldRules getHoldRules() { - return holdRules; - } - - /** - * Spécifie les règles de gel. - * - * @param holdRules les règles de gel - */ - public void setHoldRules(HoldRules holdRules) { - this.holdRules = holdRules; - } - - /** - * Spécifie les règles de gel. - * - * @param ruleName le nom de la règle - * @param startDate la date de début - */ - public void setHoldRules(String ruleName, LocalDate startDate, LocalDate holdEndDate, String holdOwner, String holdReason, LocalDate holdReassessingDate, Boolean preventRearrangement) { - this.holdRules = new HoldRules(ruleName, startDate, holdEndDate, holdOwner, holdReason, holdReassessingDate, preventRearrangement); - } - - /** - * Indique si une autorisation humaine est nécessaire pour vérifier ou valider les opérations de gestion des - * ArchiveUnit. - * - * @return si une autorisation est nécessaire - */ - public Boolean getNeedAuthorization() { - return needAuthorization; - } - - /** - * Spécifie si une autorisation humaine est nécessaire pour vérifier ou valider les opérations de gestion des - * ArchiveUnit. - * - * @param needAuthorization si une autorisation est nécessaire - */ - public void setNeedAuthorization(Boolean needAuthorization) { - this.needAuthorization = needAuthorization; - } - - /** - * Indique l'opération de mise à jour. - * - * @return l'opération de mise à jour - */ - public UpdateOperation getUpdateOperation() { - return updateOperation; - } - - /** - * Spécifie l'opération de mise à jour. - * - * @param updateOperation l'opération de mise à jour - */ - public void setUpdateOperation(UpdateOperation updateOperation) { - this.updateOperation = updateOperation; - } - - /** - * Ajoute un évènement à la liste des évènements de l'unité d'archive. - * - * @param event l'évènement à ajouter - */ - public void addLogEvent(Event event) { - Validate.notNull(event, SipUtils.NOT_NULL, "event"); - logEvents.add(event); - } - - /** - * Supprime un évènement de la liste des évènements de l'unité d'archive. - * - * @param event l'évènement à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeLogEvent(Event event) { - Validate.notNull(event, SipUtils.NOT_NULL, "event"); - return logEvents.remove(event); - } - - /** - * Fournit la liste des évènements de l'unité d'archive. Un évènement correspond à toute opération concernant l'unité - * d'archive : opération de versement, de mise à jour de métadonnées, de préservation, etc. - * - * @return la liste des évènements de l'unité d'archive - */ - public List getLogEvents() { - return new ArrayList<>(logEvents); - } - - /** - * Indique le niveau de description au sens de la norme ISAD (G). Indique si l’unité d'archive correspond à un fonds, - * à un sous-fonds, à une classe, à une série organique, à une sous-série organique, à un dossier, à un sous-dossier - * ou à une pièce. - * - * @return le niveau de description - */ - public String getDescriptionLevel() { - return descriptionLevel; - } - - /** - * Spécifie le niveau de description au sens de la norme ISAD (G). Indique si l’unité d'archive correspond à un fonds, - * à un sous-fonds, à une classe, à une série organique, à une sous-série organique, à un dossier, à un sous-dossier - * ou à une pièce. - * - * @param descriptionLevel le niveau de description - */ - public void setDescriptionLevel(String descriptionLevel) { - this.descriptionLevel = descriptionLevel; - } - - /** - * Fournit la liste des intitulés de l'unité d'archive. - * - * @return la liste des intitulés - */ - public List getTitles() { - return new ArrayList<>(titles); - } - - /** - * Ajoute un intitulé à l'unité d'archive. - * - * @param message l'intitulé à ajouter - */ - public void addTitle(String message) { - titles.add(new Text(message)); - } - - /** - * Ajoute un intitulé à l'unité d'archive. - * - * @param message l'intitulé à ajouter - * @param lang la langue à ajouter - */ - public void addTitle(String message, String lang) { - titles.add(new Text(message, lang)); - } - - /** - * Ajoute un intitulé à l'unité d'archive. - * - * @param title le texte de l'intitulé à ajouter - */ - public void addTitle(Text title) { - Validate.notNull(title, SipUtils.NOT_NULL, "title"); - titles.add(title); - } - - /** - * Supprime un intitulé de l'unité d'archive. - * - * @param title le texte de l'intitulé à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeTitle(Text title) { - Validate.notNull(title, SipUtils.NOT_NULL, "title"); - return titles.remove(title); - } - - /** - * Fournit la liste des descriptions de l'unité d'archive. - * - * @return la liste des descriptions - */ - public List getDescriptions() { - return new ArrayList<>(descriptions); - } - - /** - * Ajoute une description à l'unité d'archive. - * - * @param message la description à ajouter - */ - public void addDescription(String message) { - descriptions.add(new Text(message)); - } - - /** - * Ajoute une description à l'unité d'archive. - * - * @param message la description à ajouter - * @param lang la langue à ajouter - */ - public void addDescription(String message, String lang) { - descriptions.add(new Text(message, lang)); - } - - /** - * Ajoute une description à l'unité d'archive. - * - * @param description le texte de la description à ajouter - */ - public void addDescription(Text description) { - Validate.notNull(description, SipUtils.NOT_NULL, "description"); - descriptions.add(description); - } - - /** - * Indique l'identifiant de l'archive unit. Note. L'identifiant de l'archive unit est unique dans le document. - * - * @return l'identifiant de l'archive unit. - */ - public String getId() { - return id; - } - - /** - * Spécifie l'attribut ID identifiant l'archive unit. Il est de la responsabilité du développeur de s'assurer que - * l'attribut spécifié est unique dans le document. Pour éviter d'éventuels conflits avec les attributs générés - * automatiquement, il est conseillé de préfixer l'attribut une valeur différente de "ID" qui est celle utilisé par le - * générateur. - *

- * Note. Les attributs de type ID permettent d'identifier de manière unique un élément dans le document. La valeur - * d'un attribut de type ID doit donc être unique parmi toutes les valeurs de tous les attributs ID de tout le - * document. Dans le cas contraire le document XML n'est pas valide. Si l'ID d'un élément n'est pas défini, le - * générateur crée automatiquement en se basant sur une séquence un ID unique préfixé par "ID". - * - * @param id l'identifiant de l'archive unit - */ - public void setId(String id) { - this.id = id; - } - - /** - * Supprime une description de l'unité d'archive. - * - * @param description la description à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeDescription(Text description) { - Validate.notNull(description, SipUtils.NOT_NULL, "description"); - return descriptions.remove(description); - } - - /** - * Indique les positions de l’unité d'archive dans le plan de classement du service producteur. - * - * @return la position - */ - public List getFilePlanPositions() { - return new ArrayList<>(filePlanPositions); - } - - /** - * Ajoute la position de l’unité d'archive dans le plan de classement du service producteur. - * - * @param filePlanPosition la position à ajouter - */ - public void addFilePlanPosition(String filePlanPosition) { - Validate.notNull(filePlanPosition, SipUtils.NOT_NULL, "filePlanPosition"); - this.filePlanPositions.add(filePlanPosition); - } - - /** - * Supprime la position de l’unité d'archive. - * - * @param filePlanPosition la position à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeFilePlanPosition(String filePlanPosition) { - Validate.notNull(filePlanPosition, SipUtils.NOT_NULL, "filePlanPosition"); - return filePlanPositions.remove(filePlanPosition); - } - - /** - * Indique les identifiants attribués à l'archive. Il est attribué par le SAE et correspond à un identifiant interne. - * - * @return l 'identifiant - */ - public List getSystemIds() { - return new ArrayList<>(systemIds); - } - - /** - * Ajoute l'identifiant. - * - * @param systemId la position à ajouter - */ - public void addSystemId(String systemId) { - Validate.notNull(systemId, SipUtils.NOT_NULL, "systemId"); - this.systemIds.add(systemId); - } - - /** - * Supprime l'identifiant. - * - * @param systemId la position à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeSystemId(String systemId) { - Validate.notNull(systemId, SipUtils.NOT_NULL, "systemId"); - return systemIds.remove(systemId); - } - - /** - * Indique les identifiants attribués aux objets de données. Il est attribué par le SAE et correspond à un identifiant - * interne. - * - * @return l 'identifiant - */ - public List getDataObjectSystemIds() { - return dataObjectSystemIds; - } - - /** - * Ajoute l'identifiant. - * - * @param dataObjectSystemId la position à ajouter - */ - public void addDataObjectSystemId(String dataObjectSystemId) { - Validate.notNull(dataObjectSystemId, SipUtils.NOT_NULL, "dataObjectSystemId"); - this.dataObjectSystemIds.add(dataObjectSystemId); - } - - /** - * Supprime l'identifiant. - * - * @param dataObjectSystemId la position à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeDataObjectSystemId(String dataObjectSystemId) { - Validate.notNull(dataObjectSystemId, SipUtils.NOT_NULL, "dataObjectSystemId"); - return dataObjectSystemIds.remove(dataObjectSystemId); - } - - /** - * Indique les identifiants système attribué à l’ArchiveUnit par l’application du service producteur. - * - * @return l 'identifiant - */ - public List getOriginatingSystemIds() { - return new ArrayList<>(originatingSystemIds); - } - - /** - * Ajoute l'identifiant système attribué à l’ArchiveUnit par l’application du service producteur. - * - * @param originatingSystemId l'identifiant à ajouter - */ - public void addOriginatingSystemId(String originatingSystemId) { - Validate.notNull(originatingSystemId, SipUtils.NOT_NULL, "originatingSystemId"); - this.originatingSystemIds.add(originatingSystemId); - } - - /** - * Supprime l'identifiant système à la liste. - * - * @param originatingSystemId l'identifiant à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeOriginatingSystemId(String originatingSystemId) { - Validate.notNull(originatingSystemId, SipUtils.NOT_NULL, "originatingSystemId"); - return originatingSystemIds.remove(originatingSystemId); - } - - /** - * Indique les identifiants métier attribué à l'unité d'archive par le service d'archives. Peut être comparé à une cote. - * - * @return l 'identifiant - */ - public List getArchivalAgencyArchiveUnitIdentifiers() { - return new ArrayList<>(archivalAgencyArchiveUnitIdentifiers); - } - - /** - * Ajoute l'identifiant métier attribué à l’ArchiveUnit par l’application du service producteur. - * - * @param archivalAgencyArchiveUnitIdentifier l'identifiant à ajouter - */ - public void addArchivalAgencyArchiveUnitIdentifier(String archivalAgencyArchiveUnitIdentifier) { - Validate.notNull(archivalAgencyArchiveUnitIdentifier, SipUtils.NOT_NULL, "archivalAgencyArchiveUnitIdentifier"); - this.archivalAgencyArchiveUnitIdentifiers.add(archivalAgencyArchiveUnitIdentifier); - } - - /** - * Supprime l'identifiant métier à la liste. - * - * @param archivalAgencyArchiveUnitIdentifier l'identifiant à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeArchivalAgencyArchiveUnitIdentifier(String archivalAgencyArchiveUnitIdentifier) { - Validate.notNull(archivalAgencyArchiveUnitIdentifier, SipUtils.NOT_NULL, "archivalAgencyArchiveUnitIdentifier"); - return archivalAgencyArchiveUnitIdentifiers.remove(archivalAgencyArchiveUnitIdentifier); - } - - /** - * Indique les identifiants métier attribués à l’ArchiveUnit par le service producteur. - * - * @return l 'identifiant - */ - public List getOriginatingAgencyArchiveUnitIdentifiers() { - return new ArrayList<>(originatingAgencyArchiveUnitIdentifiers); - } - - /** - * Ajoute l'identifiant métier attribué à l’ArchiveUnit par l’application du service producteur. - * - * @param originatingAgencyArchiveUnitIdentifier l'identifiant à ajouter - */ - public void addOriginatingAgencyArchiveUnitIdentifier(String originatingAgencyArchiveUnitIdentifier) { - Validate.notNull(originatingAgencyArchiveUnitIdentifier, SipUtils.NOT_NULL, "originatingAgencyArchiveUnitIdentifier"); - this.originatingAgencyArchiveUnitIdentifiers.add(originatingAgencyArchiveUnitIdentifier); - } - - /** - * Supprime l'identifiant métier à la liste des langues du contenu des objets binaires ou physiques. - * - * @param originatingAgencyArchiveUnitIdentifier l'identifiant à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeOriginatingAgencyArchiveUnitIdentifier(String originatingAgencyArchiveUnitIdentifier) { - Validate.notNull(originatingAgencyArchiveUnitIdentifier, SipUtils.NOT_NULL, "archivalAgencyArchiveUnitIdentifier"); - return originatingAgencyArchiveUnitIdentifiers.remove(originatingAgencyArchiveUnitIdentifier); - } - - /** - * Indique les identifiants attribués à l'ArchiveUnit par le service versant. - * - * @return l 'identifiant - */ - public List getTransferringAgencyArchiveUnitIdentifiers() { - return new ArrayList<>(transferringAgencyArchiveUnitIdentifiers); - } - - /** - * Ajoute l'identifiant attribué à l’ArchiveUnit par le service versant. - * - * @param transferringAgencyArchiveUnitIdentifier l'identifiant à ajouter - */ - public void addTransferringAgencyArchiveUnitIdentifier(String transferringAgencyArchiveUnitIdentifier) { - Validate.notNull(transferringAgencyArchiveUnitIdentifier, SipUtils.NOT_NULL, "transferringAgencyArchiveUnitIdentifier"); - this.transferringAgencyArchiveUnitIdentifiers.add(transferringAgencyArchiveUnitIdentifier); - } - - /** - * Supprime l'identifiant métier à la liste. - * - * @param transferringAgencyArchiveUnitIdentifier l'identifiant à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeTransferringAgencyArchiveUnitIdentifier(String transferringAgencyArchiveUnitIdentifier) { - Validate.notNull(transferringAgencyArchiveUnitIdentifier, SipUtils.NOT_NULL, "transferringAgencyArchiveUnitIdentifier"); - return transferringAgencyArchiveUnitIdentifiers.remove(transferringAgencyArchiveUnitIdentifier); - } - - /** - * Ajoute un changement à la liste des changements. La liste contient les changements successifs de propriété, de - * responsabilité et de conservation des unités d'archives avant leur entrée dans le lieu de conservation. On peut - * notamment y indiquer comment s'est effectué le passage de l'application d'origine au fichier archivable. Correspond - * à l'historique de la conservation en ISAD(G). - * - * @param custodialItem le changement à ajouter - */ - public void addCustodialItem(CustodialItem custodialItem) { - Validate.notNull(custodialItem, SipUtils.NOT_NULL, "custodialItem"); - custodialItems.add(custodialItem); - } - - /** - * Ajoute un changement à la liste des changements. La liste contient les changements successifs de propriété, de - * responsabilité et de conservation des unités d'archives avant leur entrée dans le lieu de conservation. On peut - * notamment y indiquer comment s'est effectué le passage de l'application d'origine au fichier archivable. Correspond - * à l'historique de la conservation en ISAD(G). - * - * @param value l'intitulé du changement à ajouter - * @param when la date du changement à ajouter - */ - public void addCustodialItem(String value, LocalDateTime when) { - custodialItems.add(new CustodialItem(value, when)); - } - - /** - * Supprime un changement à la liste des changements. La liste contient les changements successifs de propriété, de - * responsabilité et de conservation des unités d'archives avant leur entrée dans le lieu de conservation. On peut - * notamment y indiquer comment s'est effectué le passage de l'application d'origine au fichier archivable. Correspond - * à l'historique de la conservation en ISAD(G). - * - * @param custodialItem le changement à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeCustodialItem(CustodialItem custodialItem) { - Validate.notNull(custodialItem, SipUtils.NOT_NULL, "custodialItem"); - return custodialItems.remove(custodialItem); - } - - /** - * Fournit la liste des changements successifs de propriété, de responsabilité et de conservation des unités - * d'archives avant leur entrée dans le lieu de conservation. - * - * @return la liste des changements - */ - public List getCustodialItems() { - return new ArrayList<>(custodialItems); - } - - /** - * Indique le type d’information au sens de l’OAIS (information de représentation, information de pérennisation, - * etc.). - * - * @return le type - */ - public String getType() { - return type; - } - - /** - * Spécifie le type d’information au sens de l’OAIS (information de représentation, information de pérennisation, - * etc.). - * - * @param type le type - */ - public void setType(String type) { - this.type = type; - } - - /** - * Indique le type de document au sens diplomatique du terme (ex. compte rendu de réunion, note, correspondance, - * etc.). - * - * @return le type de document - */ - public String getDocumentType() { - return documentType; - } - - /** - * Spécifie le type de document au sens diplomatique du terme (ex. compte rendu de réunion, note, correspondance, - * etc.). - * - * @param documentType le type de document - */ - public void setDocumentType(String documentType) { - this.documentType = documentType; - } - - /** - * Ajoute la langue à la liste des langues du contenu des objets binaires ou physiques. - * - * @param language la langue à ajouter - */ - public void addLanguage(String language) { - Validate.notNull(language, SipUtils.NOT_NULL, "language"); - languages.add(language); - } - - /** - * Supprime la langue à la liste des langues du contenu des objets binaires ou physiques. - * - * @param language la langue à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeLanguage(String language) { - Validate.notNull(language, SipUtils.NOT_NULL, "language"); - return languages.remove(language); - } - - /** - * Fournit la liste des langues du contenu des objets binaires ou physiques. - * - * @return la liste des langues - */ - public List getLanguages() { - return new ArrayList<>(languages); - } - - /** - * Indique la langue utilisée pour les métadonnées de description. - * - * @return la langue - */ - public String getDescriptionLanguage() { - return descriptionLanguage; - } - - /** - * Spécifie la langue utilisée pour les métadonnées de description. - * - * @param descriptionLanguage la langue - */ - public void setDescriptionLanguage(String descriptionLanguage) { - this.descriptionLanguage = descriptionLanguage; - } - - /** - * Indique l'état de l'objet binaire ou physique (par rapport avec son cycle de vie). L'état permet par exemple - * d'indiquer si la signature du fichier a été vérifiée avant le transfert aux archives. - * - * @return la statut - */ - public String getStatus() { - return status; - } - - /** - * Spécifie l'état de l'objet binaire ou physique (par rapport avec son cycle de vie). L'état permet par exemple - * d'indiquer si la signature du fichier a été vérifiée avant le transfert aux archives. - * - * @param status la statut - */ - public void setStatus(String status) { - this.status = status; - } - - /** - * Indique la version du document. - * - * @return la version - */ - public String getVersion() { - return version; - } - - /** - * Spécifie la version du document. - * - * @param version la version - */ - public void setVersion(String version) { - this.version = version; - } - - /** - * Indique le service producteur. Il s'agit d'une personne physique ou morale, publique ou privée, qui a produit, reçu - * et conservé des archives dans l'exercice de son activité. - * - * @return le service producteur - */ - public Agency getOriginatingAgency() { - return originatingAgency; - } - - /** - * Spécifie le service producteur. Il s'agit d'une personne physique ou morale, publique ou privée, qui a produit, - * reçu et conservé des archives dans l'exercice de son activité. - * - * @param originatingAgency le service producteur - */ - public void setOriginatingAgency(Agency originatingAgency) { - this.originatingAgency = originatingAgency; - } - - /** - * Indique le service versant responsable du transfert des données. - * - * @return le service versant - */ - public Agency getSubmissionAgency() { - return submissionAgency; - } - - /** - * Spécifie le service versant responsable du transfert des données. - * - * @param submissionAgency le service versant - */ - public void setSubmissionAgency(Agency submissionAgency) { - this.submissionAgency = submissionAgency; - } - - /** - * Ajoute un titulaire à la liste des titulaires des droits de propriété intellectuelle. - * - * @param authorizedAgent le titulaire à ajouter - */ - public void addAuthorizedAgent(Agent authorizedAgent) { - Validate.notNull(authorizedAgent, SipUtils.NOT_NULL, "authorizedAgent"); - authorizedAgents.add(authorizedAgent); - } - - /** - * Supprime un titulaire à la liste des titulaires des droits de propriété intellectuelle. - * - * @param authorizedAgent le titulaire à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeAuthorizedAgent(Agent authorizedAgent) { - Validate.notNull(authorizedAgent, SipUtils.NOT_NULL, "authorizedAgent"); - return authorizedAgents.remove(authorizedAgent); - } - - /** - * Fournit la liste des titulaires des droits de propriété intellectuelle. - * - * @return la liste des titulaires - */ - public List getAuthorizedAgents() { - return new ArrayList<>(authorizedAgents); - } - - /** - * Ajoute un rédacteur à la liste des rédacteurs de l’unité d'archive. - * - * @param writer le rédacteur à ajouter - */ - public void addWriter(Agent writer) { - Validate.notNull(writer, SipUtils.NOT_NULL, "writer"); - writers.add(writer); - } - - /** - * Supprime un rédacteur de la liste des rédacteurs de l’unité d'archive. - * - * @param writer le rédacteur à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeWriter(Agent writer) { - Validate.notNull(writer, SipUtils.NOT_NULL, "writer"); - return writers.remove(writer); - } - - /** - * Fournit la liste des rédacteurs de l’unité d'archive. - * - * @return la liste des rédacteurs - */ - public List getWriters() { - return new ArrayList<>(writers); - } - - /** - * Ajoute un destinataire à la liste des destinataires pour action. Utilisé pour indiquer le nom du destinataire par - * exemple dans un courrier électronique. - * - * @param addressee le destinataire à ajouter - */ - public void addAddressee(Agent addressee) { - Validate.notNull(addressee, SipUtils.NOT_NULL, "addressee"); - addressees.add(addressee); - } - - /** - * Supprime un destinataire de la liste des destinataires pour action. Utilisé pour indiquer le nom du destinataire - * par exemple dans un courrier électronique. - * - * @param addressee le destinataire à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeAddressee(Agent addressee) { - Validate.notNull(addressee, SipUtils.NOT_NULL, "addressee"); - return addressees.remove(addressee); - } - - /** - * Fournit la liste des destinataires pour action. Utilisé pour indiquer le nom du destinataire par exemple dans un - * courrier électronique. - * - * @return la liste des destinataires pour action - */ - public List getAddressees() { - return new ArrayList<>(addressees); - } - - /** - * Ajoute un destinataire à la liste des destinataires pour information. Utilisé pour indiquer le nom du destinataire - * en copie, pour information, par exemple dans un courrier électronique. - * - * @param recipient le destinataire à ajouter - */ - public void addRecipient(Agent recipient) { - Validate.notNull(recipient, SipUtils.NOT_NULL, "recipient"); - recipients.add(recipient); - } - - /** - * Supprime un destinataire de la liste des destinataires pour information. Utilisé pour indiquer le nom du - * destinataire en copie, pour information, par exemple dans un courrier électronique. - * - * @param recipient le destinataire à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeRecipient(Agent recipient) { - Validate.notNull(recipient, SipUtils.NOT_NULL, "recipient"); - return recipients.remove(recipient); - } - - /** - * Fournit la liste des destinataires pour information. Utilisé pour indiquer le nom du destinataire en copie, pour - * information, par exemple dans un courrier électronique. - * - * @return la liste des destinataires pour information - */ - public List getRecipients() { - return new ArrayList<>(recipients); - } - - /** - * Ajoute un émetteur à la liste des émetteurs du message. - * - * @param transmitter l'émetteur du message à ajouter - */ - public void addTransmitter(Agent transmitter) { - Validate.notNull(transmitter, SipUtils.NOT_NULL, "transmitter"); - transmitters.add(transmitter); - } - - /** - * Supprime un émetteur de la liste des émetteurs du message. - * - * @param transmitter l'émetteur du message à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeTransmitter(Agent transmitter) { - Validate.notNull(transmitter, SipUtils.NOT_NULL, "transmitter"); - return transmitters.remove(transmitter); - } - - /** - * Fournit la liste des émetteurs du message. - * - * @return la liste des émetteurs du message - */ - public List getTransmitters() { - return new ArrayList<>(transmitters); - } - - /** - * Ajoute un expéditeur à la liste des expéditeurs du message. - * - * @param sender l'expéditeur à ajouter - */ - public void addSender(Agent sender) { - Validate.notNull(sender, SipUtils.NOT_NULL, "sender"); - senders.add(sender); - } - - /** - * Supprime un expéditeur de la liste des expéditeurs du message. - * - * @param sender l'expéditeur à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeSender(Agent sender) { - Validate.notNull(sender, SipUtils.NOT_NULL, "sender"); - return senders.remove(sender); - } - - /** - * Fournit la liste des expéditeurs du message. - * - * @return la liste des expéditeurs du message - */ - public List getSenders() { - return new ArrayList<>(senders); - } - - /** - * Indique la référence à la source papier originale. - * - * @return la source - */ - public String getSource() { - return source; - } - - /** - * Spécifie la référence à la source papier originale. - * - * @param source la source - */ - public void setSource(String source) { - this.source = source; - } - - /** - * Indique la référence à un objet faisant ou ne faisant pas partie du présent paquet d'information. - * - * @return la référence - */ - public RelatedObjectRef getRelation() { - return relation; - } - - /** - * Spécifie la référence à un objet faisant ou ne faisant pas partie du présent paquet d'information. - * - * @param relation la référence - */ - public void setRelation(RelatedObjectRef relation) { - this.relation = relation; - } - - /** - * Ajoute une signature à la liste des informations relatives à la signature. - * - * @param signature la signature à ajouter - */ - public void addSignature(Signature signature) { - Validate.notNull(signature, SipUtils.NOT_NULL, "signature"); - signatures.add(signature); - } - - /** - * Supprime une signature à la liste des informations relatives à la signature. - * - * @param signature la signature à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeSignature(Signature signature) { - Validate.notNull(signature, SipUtils.NOT_NULL, "signature"); - return signatures.remove(signature); - } - - /** - * Fournit la liste des informations relatives à la signature. - * - * @return la liste des informations relatives à la signature - */ - public List getSignatures() { - return new ArrayList<>(signatures); - } + public static final String PHYSICAL_MASTER = "PhysicalMaster"; - /** - * Indique l'identifiant de la version du GPS. - * - * @return l 'identifiant - */ - public String getGpsVersionID() { - return gpsVersionID; - } + /** + * La liste des évènements de l'unité d'archive. Un évènement correspond à toute opération + * concernant l'unité d'archive : opération de versement, de mise à jour de métadonnées, de + * préservation, etc. + */ + protected final List logEvents = new ArrayList<>(); - /** - * Spécifie l'identifiant de la version du GPS. - * - * @param gpsVersionID l'identifiant - */ - public void setGpsVersionID(String gpsVersionID) { - this.gpsVersionID = gpsVersionID; - } + /** La liste des intitulés de l'unité d'archive. */ + protected final List titles = new ArrayList<>(); - /** - * Indique l'altitude basée sur la référence dans GPSAltitudeRef. L'altitude est exprimée en mètres. - * - * @return l 'altitude - */ - public String getGpsAltitude() { - return gpsAltitude; - } + /** La liste des descriptions de l'unité d'archive. */ + protected final List descriptions = new ArrayList<>(); - /** - * Spécifie l'altitude basée sur la référence dans GPSAltitudeRef. L'altitude est exprimée en mètres. - * - * @param gpsAltitude l'altitude - */ - public void setGpsAltitude(String gpsAltitude) { - this.gpsAltitude = gpsAltitude; - } + /** + * La liste des changements successifs de propriété, de responsabilité et de conservation des + * unités d'archives avant leur entrée dans le lieu de conservation. On peut notamment y indiquer + * comment s'est effectué le passage de l'application d'origine au fichier archivable. Correspond + * à l'historique de la conservation en ISAD(G). + */ + protected final List custodialItems = new ArrayList<>(); - /** - * Indique l'altitude utilisée comme altitude de référence. Si l'altitude est au-dessus du niveau de la mer, la valeur - * 0 est normalement donnée. Si l'altitude est au-dessous du niveau de la mer, la valeur 1 est normalement donnée. - * - * @return l'altitude de référence - */ - public String getGpsAltitudeRef() { - return gpsAltitudeRef; - } + /** La liste des langues du contenu des objets binaires ou physiques. */ + protected final List languages = new ArrayList<>(); - /** - * Spécifie l'altitude utilisée comme altitude de référence. Si l'altitude est au-dessus du niveau de la mer, la - * valeur 0 est normalement donnée. Si l'altitude est au-dessous du niveau de la mer, la valeur 1 est normalement - * donnée. - * - * @param gpsAltitudeRef l'altitude de référence - */ - public void setGpsAltitudeRef(String gpsAltitudeRef) { - this.gpsAltitudeRef = gpsAltitudeRef; - } + /** La liste de mots-clés de description. */ + protected final List tags = new ArrayList<>(); - /** - * Indique la latitude. La latitude qui peut être exprimée de deux manières différentes : degrés, décimaux ou degrés, - * minutes et secondes. Si la latitude est exprimée en degrés, décimaux, le format type est dd, dd. Par ex: - * "45.3130339". Si la latitude est exprimée en degrés, minutes et secondes, le format type est dd, mm, ss. Par ex: - * "45 18 46.922". - * - * @return la latitude - */ - public String getGpsLatitude() { - return gpsLatitude; - } + /** La liste des titulaires des droits de propriété intellectuelle. */ + protected final List authorizedAgents = new ArrayList<>(); - /** - * Spécifie la latitude. La latitude qui peut être exprimée de deux manières différentes : degrés, décimaux ou degrés, - * minutes et secondes. Si la latitude est exprimée en degrés, décimaux, le format type est dd, dd. Par ex: - * "45.3130339". Si la latitude est exprimée en degrés, minutes et secondes, le format type est dd, mm, ss. Par ex: - * "45 18 46.922". - * - * @param gpsLatitude la latitude - */ - public void setGpsLatitude(String gpsLatitude) { - this.gpsLatitude = gpsLatitude; - } + /** La liste des rédacteurs de l’unité d'archive. */ + protected final List writers = new ArrayList<>(); - /** - * Indique la latitude. La valeur 'N' indique la latitude nord, et 'S' indique la latitude sud. - * - * @return la latitude de référence - */ - public String getGpsLatitudeRef() { - return gpsLatitudeRef; - } + /** + * La liste des destinataires pour action. Utilisé pour indiquer le nom du destinataire par + * exemple dans un courrier électronique. + */ + protected final List addressees = new ArrayList<>(); - /** - * Spécifie la latitude. La valeur 'N' indique la latitude nord, et 'S' indique la latitude sud. - * - * @param gpsLatitudeRef la latitude de référence - */ - public void setGpsLatitudeRef(String gpsLatitudeRef) { - this.gpsLatitudeRef = gpsLatitudeRef; - } + /** + * La liste des destinataires pour information. Utilisé pour indiquer le nom du destinataire en + * copie, pour information, par exemple dans un courrier électronique. + */ + protected final List recipients = new ArrayList<>(); - /** - * Indique la longitude. La longitude peut être exprimée de deux manières différentes : degrés, décimaux ou degrés, - * minutes et secondes. Si la longitude est exprimée en degrés, décimaux, le format type est dd, dd. Par exemple : - * "5.392285833333334". Si la longitude est exprimée en degrés, minutes et secondes, le format type est dd, mm, ss. - * Par ex: "5 23 32.229". - * - * @return la longitude - */ - public String getGpsLongitude() { - return gpsLongitude; - } + /** La liste des émetteurs du message. */ + protected final List transmitters = new ArrayList<>(); - /** - * Spécifie la longitude. La longitude peut être exprimée de deux manières différentes : degrés, décimaux ou degrés, - * minutes et secondes. Si la longitude est exprimée en degrés, décimaux, le format type est dd, dd. Par exemple : - * "5.392285833333334". Si la longitude est exprimée en degrés, minutes et secondes, le format type est dd, mm, ss. - * Par ex: "5 23 32.229". - * - * @param gpsLongitude la longitude - */ - public void setGpsLongitude(String gpsLongitude) { - this.gpsLongitude = gpsLongitude; - } + /** La liste des expéditeurs du message. */ + protected final List senders = new ArrayList<>(); - /** - * Indique la longitude. La valeur 'E' indique la longitude Est, et 'W' indique la longitude Ouest. - * - * @return la longitude de référence - */ - public String getGpsLongitudeRef() { - return gpsLongitudeRef; - } + /** La liste des informations relatives à la signature. */ + protected final List signatures = new ArrayList<>(); - /** - * Spécifie la longitude. La valeur 'E' indique la longitude Est, et 'W' indique la longitude Ouest. - * - * @param gpsLongitudeRef la longitude de référence - */ - public void setGpsLongitudeRef(String gpsLongitudeRef) { - this.gpsLongitudeRef = gpsLongitudeRef; - } + /** La liste des éléments étendus qui n'appartiennent pas à l'ontolgie standard. */ + protected final List elements = new ArrayList<>(); - /** - * Indique l'heure et la date de la position GPS. - * - * @return la date et l'heure - */ - public String getGpsDateStamp() { - return gpsDateStamp; - } + /** La liste d'autres unités d'archives contenues dans cette unité d'archive. */ + protected final List archiveUnits = new ArrayList<>(); - /** - * Spécifie l'heure et la date de la position GPS. - * - * @param gpsDateStamp la date et l'heure - */ - public void setGpsDateStamp(String gpsDateStamp) { - this.gpsDateStamp = gpsDateStamp; - } + /** La liste des archives unites référencées par cette unité d'archive. */ + protected final List references = new ArrayList<>(); - /** - * Indique la date de création. - * - * @return la date de création - */ - public LocalDate getCreatedDate() { - return createdDate; - } + /** L'identifiant unique de l'archive unit dans le document. */ + protected String id; - /** - * Spécifie la date de création. - * - * @param createdDate la date de création - */ - public void setCreatedDate(LocalDate createdDate) { - this.createdDate = createdDate; - } + /** L'identifiant de l'objet physique. */ + protected String physicalId; - /** - * Indique la date de la transaction. - * - * @return la date de la transaction - */ - public LocalDate getTransactedDate() { - return transactedDate; - } + /** La quantité ou taille de l'objet physique. */ + protected double measure; - /** - * Spécifie la date de la transaction. - * - * @param transactedDate la date de la transaction - */ - public void setTransactedDate(LocalDate transactedDate) { - this.transactedDate = transactedDate; - } + /** La version de l'objet physique. */ + protected String physicalVersion; - /** - * Indique la date de numérisation. - * - * @return la date de numérisation - */ - public LocalDate getAcquiredDate() { - return acquiredDate; - } + /** L'objet binaire de type binary master. */ + protected BinaryMasterDataObject binaryMasterDataObject; - /** - * Spécifie la date de numérisation. - * - * @param acquiredDate la date de numérisation - */ - public void setAcquiredDate(LocalDate acquiredDate) { - this.acquiredDate = acquiredDate; - } + /** L'objet binaire de type dissemination (publication). */ + protected DisseminationDataObject disseminationDataObject; - /** - * Indique la date d'envoi. - * - * @return la date d'envoi - */ - public LocalDate getSentDate() { - return sentDate; - } + /** L'objet binaire de type thumbnail (vignette). */ + protected ThumbnailDataObject thumbnailDataObject; - /** - * Spécifie la date d'envoi. - * - * @param sentDate la date d'envoi - */ - public void setSentDate(LocalDate sentDate) { - this.sentDate = sentDate; - } + /** L'objet binaire de type text content (contenu texte). */ + protected TextContentDataObject textContentDataObject; - /** - * Indique la date de réception. - * - * @return la date de réception - */ - public LocalDate getReceivedDate() { - return receivedDate; - } + /** Le statut de la signature de l'objet binaire. */ + protected String signatureStatus; - /** - * Spécifie la date de réception. - * - * @param receivedDate la date de réception - */ - public void setReceivedDate(LocalDate receivedDate) { - this.receivedDate = receivedDate; - } + /** Le profile d’archivage applicable à l'unité d'archive. */ + protected String archiveUnitProfile; - /** - * Indique la date d'enregistrement. - * - * @return la date d'enregistrement - */ - public LocalDate getRegisteredDate() { - return registeredDate; - } + /** L'identifiant du service producteur. */ + protected String originatingAgencyIdentifier; - /** - * Spécifie la date d'enregistrement. - * - * @param registeredDate la date d'enregistrement. - */ - public void setRegisteredDate(LocalDate registeredDate) { - this.registeredDate = registeredDate; - } + /** L'identifiant du service versant. */ + protected String submissionAgencyIdentifier; - /** - * Indique la date d'ouverture / date de début. - * - * @return la date de début - */ - public LocalDate getStartDate() { - return startDate; - } + /** + * Indique si une autorisation humaine est nécessaire pour vérifier ou valider les opérations de + * gestion des ArchiveUnit. + */ + protected Boolean needAuthorization; - /** - * Spécifie la date d'ouverture / date de début. - * - * @param startDate la date de début - */ - public void setStartDate(LocalDate startDate) { - this.startDate = startDate; - } + /** Les règles de communicabilité (accessibilité). */ + protected AccessRules accessRules; - /** - * Indique la date de fermeture ou la date de fin. - * - * @return la date de fin - */ - public LocalDate getEndDate() { - return endDate; - } + /** Les règles de durée d’utilité administrative. */ + protected AppraisalRules appraisalRules; - /** - * Spécifie la date de fermeture ou la date de fin. - * - * @param endDate la date de fin - */ - public void setEndDate(LocalDate endDate) { - this.endDate = endDate; - } + /** Les règles de diffusion. */ + protected DisseminationRules disseminationRules; - /** - * Ajoute des mot-clés à la liste de mots-clés de description. - * - * @param values les mot-clés à ajouter - */ - public void addTags(String... values) { - for (String value : values) { - tags.add(new Tag(null, value)); - } - } + /** Les règles de réutilisation. */ + protected ReuseRules reuseRules; - /** - * Ajoute un mot-clé à la liste de mots-clés de description. - * - * @param tag le mot-clé à ajouter - */ - public void addTag(Tag tag) { - Validate.notNull(tag, SipUtils.NOT_NULL, "tag"); - tags.add(tag); - } + /** Les règles de classification. */ + protected ClassificationRules classificationRules; - /** - * Ajoute une valeur à la liste de mots-clés de description. - * - * @param value la valeur à ajouter - */ - public void addTag(String value) { - tags.add(new Tag(null, value)); - } + /** Les règles de durée d'utilité courante. */ + protected StorageRules storageRules; - /** - * Ajoute une clé et une valeur à la liste de mots-clés de description. - * - * @param key la clé du mot-clé - * @param value la valeur du mot-clé - */ - public void addTag(String key, String value) { - tags.add(new Tag(key, value)); - } + /** Les règles de gel. */ + protected HoldRules holdRules; - /** - * Supprime un mot-clé de la liste de mots-clés de description. - * - * @param tag le mot-clé à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeTag(Tag tag) { - Validate.notNull(tag, SipUtils.NOT_NULL, "tag"); - return tags.remove(tag); - } + /** L'opération de mise à jour. */ + protected UpdateOperation updateOperation; - /** - * Fournit la liste de mots-clés de description. - * - * @return la liste de mots-clés de description - */ - public List getTags() { - return new ArrayList<>(tags); - } + /** + * Le niveau de description au sens de la norme ISAD (G). Indique si l’unité d'archive correspond + * à un fonds, à un sous-fonds, à une classe, à une série organique, à une sous-série organique, à + * un dossier, à un sous-dossier ou à une pièce. + */ + protected String descriptionLevel; - /** - * Ajoute une unité d'archive à la liste d'autres unités d'archives contenues dans cette unité d'archive. - * - * @param archiveUnit l'unité d'archive - */ - @Override - public void addArchiveUnit(ArchiveUnit archiveUnit) { - Validate.notNull(archiveUnit, SipUtils.NOT_NULL, "archiveUnit"); - archiveUnits.add(archiveUnit); - } + /** La position de l’unité d'archive dans le plan de classement du service producteur. */ + protected final List filePlanPositions = new ArrayList<>(); - /** - * Supprime une unité d'archive de la liste d'autres unités d'archives contenues dans cette unité d'archive. - * - * @param archiveUnit l'unité d'archive à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - @Override - public boolean removeArchiveUnit(ArchiveUnit archiveUnit) { - Validate.notNull(archiveUnit, SipUtils.NOT_NULL, "archiveUnit"); - return archiveUnits.remove(archiveUnit); - } + /** + * L'identifiant attribué aux objets. Il est attribué par le SAE et correspond à un identifiant + * interne. + */ + protected final List systemIds = new ArrayList<>(); - /** - * Fournit la liste d'autres unités d'archives contenues dans cette unité d'archive. - * - * @return la liste d'autres unités d'archives - */ - @Override - public List getArchiveUnits() { - return new ArrayList<>(archiveUnits); - } + /** + * L'identifiant attribué aux objets de données. Il est attribué par le SAE et correspond à un + * identifiant interne. + */ + protected final List dataObjectSystemIds = new ArrayList<>(); - /** - * Ajoute une référence d'unité d'archive à la liste d'autres unités d'archives référencées par cette unité d'archive - * - * @param reference référence à l'unité d'archive - */ - public void addReference(ArchiveUnitRef reference) { - Validate.notNull(reference, SipUtils.NOT_NULL, "reference"); - references.add(reference); - } + /** L'identifiant système attribué à l’ArchiveUnit par l’application du service producteur. */ + protected final List originatingSystemIds = new ArrayList<>(); - /** - * Supprime une référence d'unité d'archive de la liste d'autres références d'unités d'archives contenues dans cette unité d'archive. - * - * @param reference la référence d'unité d'archive à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeReference(ArchiveUnitRef reference) { - Validate.notNull(reference, SipUtils.NOT_NULL, "reference"); - return references.remove(reference); - } + /** + * L'identifiant métier attribué à l'unité d'archive par le service d'archives. Peut être comparé + * à une cote. + */ + protected final List archivalAgencyArchiveUnitIdentifiers = new ArrayList<>(); - /** - * Fournit la liste d'autres références d'unités d'archives contenues dans cette unité d'archive. - * - * @return la liste d'autres références d'unités d'archives - */ - public List getReferences() { - return new ArrayList<>(references); - } + /** L'identifiant métier attribué à l’ArchiveUnit par le service producteur. */ + protected final List originatingAgencyArchiveUnitIdentifiers = new ArrayList<>(); - /** - * Ajoute l'élément à la liste des éléments étendus qui n'appartiennent pas à l'ontolgie standard. - * - * @param element l'élément à ajouter - */ - public void addElement(String element) { - Validate.notNull(element, SipUtils.NOT_NULL, "element"); - elements.add(element); - } + /** L'identifiant attribué à l'ArchiveUnit par le service versant. */ + protected final List transferringAgencyArchiveUnitIdentifiers = new ArrayList<>(); - /** - * Supprime un élément de la liste des éléments étendus qui n'appartiennent pas à l'ontologie standard. - * - * @param element l'élément à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeElement(String element) { - Validate.notNull(element, SipUtils.NOT_NULL, "element"); - return elements.remove(element); - } + /** + * Le type d’information au sens de l’OAIS (information de représentation, information de + * pérennisation, etc.). + */ + protected String type; - /** - * Ajoute un élément à la liste des éléments étendus qui n'appartiennent pas à l'ontologie standard. - * - * @param element l'élément à ajouter - */ - public void addElement(Element element) { - Validate.notNull(element, SipUtils.NOT_NULL, "element"); - elements.add(element); - } + /** + * Le type de document au sens diplomatique du terme (ex. compte rendu de réunion, note, + * correspondance, etc.). Attention à ne pas confondre avec le Type. + */ + protected String documentType; + /** La langue utilisée pour les métadonnées de description. */ + protected String descriptionLanguage; - /** - * Fournit le premier élément dont le "name" correspond à "elementName" dans la liste des éléments étendus. Note. La - * recherche s'effectue uniquement sur les objets de type Element (et pas de type String). - * - * @param elementName le nom de l'élément recherché - * @return l'élément trouvé sinon null - */ - public Element getFirstElement(String elementName) { - Validate.notNull(elementName, SipUtils.NOT_NULL, "elementName"); - - for (Object e : elements) { - if (e instanceof Element element) { - if (elementName.equals(element.getName())) { - return element; - } - } + /** + * L'état de l'objet binaire ou physique (par rapport avec son cycle de vie). L'état permet par + * exemple d'indiquer si la signature du fichier a été vérifiée avant le transfert aux archives. + */ + protected String status; + + /** La version du document. */ + protected String version; + + /** + * Le service producteur. Il s'agit d'une personne physique ou morale, publique ou privée, qui a + * produit, reçu et conservé des archives dans l'exercice de son activité. + */ + protected Agency originatingAgency; + + /** Le service versant responsable du transfert des données. */ + protected Agency submissionAgency; + + /** La référence à la source papier originale. */ + protected String source; + + /** La référence à un objet faisant ou ne faisant pas partie du présent paquet d'information. */ + // TODO: implement deserialization for RelatedObjectRef (serialization is done) + @JsonIgnore protected RelatedObjectRef relation; + + /** L'identifiant de la version du GPS. */ + protected String gpsVersionID; + + /** L'altitude basée sur la référence dans GPSAltitudeRef. L'altitude est exprimée en mètres. */ + protected String gpsAltitude; + + /** + * L'altitude utilisée comme altitude de référence. Si l'altitude est au-dessus du niveau de la + * mer, la valeur 0 est normalement donnée. Si l'altitude est au-dessous du niveau de la mer, la + * valeur 1 est donnée. + */ + protected String gpsAltitudeRef; + + /** + * La latitude qui peut être exprimée de deux manières différentes : degrés, décimaux ou degrés, + * minutes et secondes. Si la latitude est exprimée en degrés, décimaux, le format type est dd, + * dd. Par exemple : "45.3130339". Si la latitude est exprimée en degrés, minutes et secondes, le + * format type est dd, mm, ss. Par exemple : "45 18 46.922". + */ + protected String gpsLatitude; + + /** + * Indique la latitude. La valeur 'N' indique la latitude nord, et 'S' indique la latitude sud. + */ + protected String gpsLatitudeRef; + + /** + * La longitude peut être exprimée de deux manières différentes : degrés, décimaux ou degrés, + * minutes et secondes. Si la longitude est exprimée en degrés, décimaux, le format type est dd, + * dd. Par exemple : "5.392285833333334". Si la longitude est exprimée en degrés, minutes et + * secondes, le format type est dd, mm, ss. Par exemple : "5 23 32.229". + */ + protected String gpsLongitude; + + /** + * Indique la longitude. La valeur 'E' indique la longitude EST, et 'W' indique la longitude + * OUEST. + */ + protected String gpsLongitudeRef; + + /** L'heure et la date de la position GPS. */ + protected String gpsDateStamp; + + /** La date de création. */ + protected LocalDate createdDate; + + /** La date de la transaction. */ + protected LocalDate transactedDate; + + /** La date de numérisation. */ + protected LocalDate acquiredDate; + + /** La date d'envoi. */ + protected LocalDate sentDate; + + /** La date de réception. */ + protected LocalDate receivedDate; + + /** La date d'enregistrement. */ + protected LocalDate registeredDate; + + /** La date d'ouverture / date de début. */ + protected LocalDate startDate; + + /** La date de fermeture / Date de fin. */ + protected LocalDate endDate; + + /** Instancie la classe. */ + public ArchiveUnit() { + // Do nothing here + } + + /** + * Indique l'identifiant de l'objet physique. + * + * @return l'identifiant de l'objet physique + */ + public String getPhysicalId() { + return physicalId; + } + + /** + * Spécifie l'identifiant de l'objet physique. + * + * @param physicalId l'identifiant de l'objet physique + */ + public void setPhysicalId(String physicalId) { + this.physicalId = physicalId; + } + + /** + * Indique la quantité ou taille de l'objet physique. + * + * @return la quantité ou taille de l'objet physique + */ + public double getMeasure() { + return measure; + } + + /** + * Spécifie la quantité ou taille de l'objet physique. + * + * @param measure la quantité ou taille de l'objet physique + */ + public void setMeasure(double measure) { + this.measure = measure; + } + + /** + * Indique l'objet binaire de type binary master. + * + * @return l'objet binaire + */ + public BinaryDataObject getBinaryMasterDataObject() { + return binaryMasterDataObject; + } + + /** + * Indique l'objet binaire de type dissemination. + * + * @return l'objet binaire + */ + public BinaryDataObject getDisseminationDataObject() { + return disseminationDataObject; + } + + /** + * Indique l'objet binaire de type thumbnail. + * + * @return l'objet binaire + */ + public BinaryDataObject getThumbnailDataObject() { + return thumbnailDataObject; + } + + /** + * Indique l'objet binaire de type text content. + * + * @return l'objet binaire + */ + public BinaryDataObject getTextContentDataObject() { + return textContentDataObject; + } + + /** + * Fournit l'objet binaire de type "qualifier". Si l'objet n'existe pas, il est alors créé. + * + * @return l'objet binaire + */ + public BinaryDataObject provideBinaryDataObject(String qualifier) { + return switch (qualifier) { + case BinaryDataObject.BINARY_MASTER -> provideBinaryMasterDataObject(); + case BinaryDataObject.DISSEMINATION -> provideDisseminationDataObject(); + case BinaryDataObject.THUMBNAIL -> provideThumbnailDataObject(); + case BinaryDataObject.TEXT_CONTENT -> provideTextContentDataObject(); + default -> throw new SipException(String.format("Unknown qualifier %s", qualifier)); + }; + } + + /** + * Indique le fournisseur du path de l'objet binaire de type binary master. + * + * @return le fournisseur du path de l'objet binaire + */ + @JsonIgnore + public Supplier getBinaryPathSupplier() { + return binaryMasterDataObject == null ? null : binaryMasterDataObject.getBinaryPathSupplier(); + } + + private BinaryMasterDataObject provideBinaryMasterDataObject() { + if (binaryMasterDataObject == null) { + binaryMasterDataObject = new BinaryMasterDataObject(); + } + return binaryMasterDataObject; + } + + /** + * Spécifie le fournisseur du path de l'objet binaire de type binary master. + * + * @param binaryPathSupplier le fournisseur du path de l'objet binaire + */ + public void setBinaryPathSupplier(Supplier binaryPathSupplier) { + provideBinaryMasterDataObject().setBinaryPathSupplier(binaryPathSupplier); + } + + /** + * Indique le path de l'objet binaire de type binary master. + * + * @return le path de l'objet binaire + */ + public Path getBinaryPath() { + return binaryMasterDataObject == null ? null : binaryMasterDataObject.getBinaryPath(); + } + + /** + * Spécifie le path de l'objet binaire de type binary master. + * + * @param binaryPath le path de l'objet binaire + */ + public void setBinaryPath(Path binaryPath) { + provideBinaryMasterDataObject().setBinaryPath(binaryPath); + } + + /** + * Indique la version de l'objet binaire de type binary master. + * + * @return la version de l'objet binaire + */ + public String getBinaryVersion() { + return binaryMasterDataObject == null ? null : binaryMasterDataObject.getBinaryVersion(); + } + + /** + * Spécifie la version de l'objet binaire de type binary master. + * + * @param binaryVersion la version de l'objet binaire + */ + public void setBinaryVersion(String binaryVersion) { + provideBinaryMasterDataObject().setBinaryVersion(binaryVersion); + } + + /** + * Indique l'algorithme utilisé pour générer l'empreinte (hash) de l'objet binaire de type binary + * master. + * + * @return l'algorithme utilisé + */ + public String getDigestAlgorithm() { + return binaryMasterDataObject == null ? null : binaryMasterDataObject.getDigestAlgorithm(); + } + + /** + * Indique les informations techniques de l'objet binaire de type binary master. + * + * @return les informations techniques + */ + public FileInfo getFileInfo() { + return binaryMasterDataObject == null ? null : binaryMasterDataObject.getFileInfo(); + } + + /** + * Spécifie les informations techniques de l'objet binaire de type binary master. + * + * @param fileInfo les informations techniques + */ + public void setFileInfo(FileInfo fileInfo) { + provideBinaryMasterDataObject().setFileInfo(fileInfo); + } + + /** + * Indique l'identifiant du format de l'objet binaire de type binary master. Il est fortement + * conseillé d'identifier le format de l'objet binaire selon le référentiel Pronom édité par The + * British National Archives. + * + * @return l 'identifiant du format de l'objet binaire + */ + public String getFormatId() { + return binaryMasterDataObject == null + ? null + : binaryMasterDataObject.getFormatIdentification().getFormatId(); + } + + /** + * Spécifie l'identifiant du format de l'objet binaire de type binary master. Il est fortement + * conseillé d'identifier le format de l'objet binaire selon le référentiel Pronom édité par The + * British National Archives. + * + * @param formatId l'identifiant du format de l'objet binaire + */ + public void setFormatId(String formatId) { + provideBinaryMasterDataObject().getFormatIdentification().setFormatId(formatId); + } + + /** + * Indique le nom du format de l'objet binaire de type binary master. Il est fortement conseillé + * de nommer le format de l'objet binaire selon le référentiel Pronom édité par The British + * National Archives. + * + * @return le nom du format de l'objet binaire + */ + public String getFormatName() { + return binaryMasterDataObject == null + ? null + : binaryMasterDataObject.getFormatIdentification().getFormatName(); + } + + /** + * Spécifie le nom du format de l'objet binaire de type binary master. Il est fortement conseillé + * de nommer le format de l'objet binaire selon le référentiel Pronom édite par The British + * National Archives. + * + * @param formatName le nom du format de l'objet binaire + */ + public void setFormatName(String formatName) { + provideBinaryMasterDataObject().getFormatIdentification().setFormatName(formatName); + } + + /** + * Indique le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type binary + * master. + * + * @return le type MIME + */ + public String getMimeType() { + return binaryMasterDataObject == null + ? null + : binaryMasterDataObject.getFormatIdentification().getMimeType(); + } + + /** + * Spécifie le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type binary + * master. + * + * @param mimeType le type MIME + */ + public void setMimeType(String mimeType) { + provideBinaryMasterDataObject().getFormatIdentification().setMimeType(mimeType); + } + + private DisseminationDataObject provideDisseminationDataObject() { + if (disseminationDataObject == null) { + disseminationDataObject = new DisseminationDataObject(); + } + return disseminationDataObject; + } + + /** + * Indique le fournisseur du path de l'objet binaire de type dissemination (publication). + * + * @return le fournisseur du path de l'objet binaire + */ + @JsonIgnore + public Supplier getDisseminationPathSupplier() { + return disseminationDataObject == null ? null : disseminationDataObject.getBinaryPathSupplier(); + } + + /** + * Spécifie le fournisseur du path de l'objet binaire de type dissemination (publication). + * + * @param binaryPathSupplier le fournisseur du path de l'objet binaire + */ + public void setDisseminationPathSupplier(Supplier binaryPathSupplier) { + provideDisseminationDataObject().setBinaryPathSupplier(binaryPathSupplier); + } + + /** + * Indique le path de l'objet binaire de type dissemination (publication). + * + * @return le path de l'objet binaire + */ + public Path getDisseminationPath() { + return disseminationDataObject == null ? null : disseminationDataObject.getBinaryPath(); + } + + /** + * Spécifie le path de l'objet binaire de type dissemination (publication). + * + * @param binaryPath le path de l'objet binaire + */ + public void setDisseminationPath(Path binaryPath) { + provideDisseminationDataObject().setBinaryPath(binaryPath); + } + + /** + * Indique la version de l'objet binaire de type dissemination (publication). + * + * @return la version de l'objet binaire + */ + public String getDisseminationVersion() { + return disseminationDataObject == null ? null : disseminationDataObject.getBinaryVersion(); + } + + /** + * Spécifie la version de l'objet binaire de type dissemination (publication). + * + * @param binaryVersion la version de l'objet binaire + */ + public void setDisseminationVersion(String binaryVersion) { + provideDisseminationDataObject().setBinaryVersion(binaryVersion); + } + + /** + * Indique l'algorithme utilisé pour générer l'empreinte (hash) de l'objet binaire de type + * dissemination (publication). + * + * @return l'algorithme utilisé + */ + public String getDisseminationDigestAlgorithm() { + return disseminationDataObject == null ? null : disseminationDataObject.getDigestAlgorithm(); + } + + /** + * Indique les informations techniques de l'objet binaire de type dissemination (publication). + * + * @return les informations techniques + */ + public FileInfo getDisseminationFileInfo() { + return disseminationDataObject == null ? null : disseminationDataObject.getFileInfo(); + } + + /** + * Spécifie les informations techniques de l'objet binaire de type dissemination (publication). + * + * @param fileInfo les informations techniques + */ + public void setDisseminationFileInfo(FileInfo fileInfo) { + provideDisseminationDataObject().setFileInfo(fileInfo); + } + + /** + * Indique l'identifiant du format de l'objet binaire de type dissemination (publication). Il est + * fortement conseillé d'identifier le format de l'objet binaire selon le référentiel Pronom édité + * par The British National Archives. + * + * @return l 'identifiant du format de l'objet binaire + */ + public String getDisseminationFormatId() { + return disseminationDataObject == null + ? null + : disseminationDataObject.getFormatIdentification().getFormatId(); + } + + /** + * Spécifie l'identifiant du format de l'objet binaire de type dissemination (publication). Il est + * fortement conseillé d'identifier le format de l'objet binaire selon le référentiel Pronom édité + * par The British National Archives. + * + * @param formatId l'identifiant du format de l'objet binaire + */ + public void setDisseminationFormatId(String formatId) { + provideDisseminationDataObject().getFormatIdentification().setFormatId(formatId); + } + + /** + * Indique le nom du format de l'objet binaire de type dissemination (publication). Il est + * fortement conseillé de nommer le format de l'objet binaire selon le référentiel Pronom édité + * par The British National Archives. + * + * @return le nom du format de l'objet binaire + */ + public String getDisseminationFormatName() { + return disseminationDataObject == null + ? null + : disseminationDataObject.getFormatIdentification().getFormatName(); + } + + /** + * Spécifie le nom du format de l'objet binaire de type dissemination (publication). Il est + * fortement conseillé de nommer le format de l'objet binaire selon le référentiel Pronom édite + * par The British National Archives. + * + * @param formatName le nom du format de l'objet binaire + */ + public void setDisseminationFormatName(String formatName) { + provideDisseminationDataObject().getFormatIdentification().setFormatName(formatName); + } + + /** + * Indique le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type + * dissemination (publication). + * + * @return le type MIME + */ + public String getDisseminationMimeType() { + return disseminationDataObject == null + ? null + : disseminationDataObject.getFormatIdentification().getMimeType(); + } + + /** + * Spécifie le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type + * dissemination (publication). + * + * @param mimeType le type MIME + */ + public void setDisseminationMimeType(String mimeType) { + provideDisseminationDataObject().getFormatIdentification().setMimeType(mimeType); + } + + private ThumbnailDataObject provideThumbnailDataObject() { + if (thumbnailDataObject == null) { + thumbnailDataObject = new ThumbnailDataObject(); + } + return thumbnailDataObject; + } + + /** + * Indique le fournisseur du path de l'objet binaire de type thumbnail (vignette). + * + * @return le fournisseur du path de l'objet binaire + */ + @JsonIgnore + public Supplier getThumbnailPathSupplier() { + return thumbnailDataObject == null ? null : thumbnailDataObject.getBinaryPathSupplier(); + } + + /** + * Spécifie le fournisseur du path de l'objet binaire de type thumbnail (vignette). + * + * @param binaryPathSupplier le fournisseur du path de l'objet binaire + */ + public void setThumbnailPathSupplier(Supplier binaryPathSupplier) { + provideThumbnailDataObject().setBinaryPathSupplier(binaryPathSupplier); + } + + /** + * Indique le path de l'objet binaire de type thumbnail (vignette). + * + * @return le path de l'objet binaire + */ + public Path getThumbnailPath() { + return thumbnailDataObject == null ? null : thumbnailDataObject.getBinaryPath(); + } + + /** + * Spécifie le path de l'objet binaire de type thumbnail (vignette). + * + * @param binaryPath le path de l'objet binaire + */ + public void setThumbnailPath(Path binaryPath) { + provideThumbnailDataObject().setBinaryPath(binaryPath); + } + + /** + * Indique la version de l'objet binaire de type thumbnail (vignette). + * + * @return la version de l'objet binaire + */ + public String getThumbnailVersion() { + return thumbnailDataObject == null ? null : thumbnailDataObject.getBinaryVersion(); + } + + /** + * Spécifie la version de l'objet binaire de type thumbnail (vignette). + * + * @param binaryVersion la version de l'objet binaire + */ + public void setThumbnailVersion(String binaryVersion) { + provideThumbnailDataObject().setBinaryVersion(binaryVersion); + } + + /** + * Indique l'algorithme utilisé pour générer l'empreinte (hash) de l'objet binaire de type + * thumbnail (vignette). + * + * @return l'algorithme utilisé + */ + public String getThumbnailDigestAlgorithm() { + return thumbnailDataObject == null ? null : thumbnailDataObject.getDigestAlgorithm(); + } + + /** + * Indique les informations techniques de l'objet binaire de type thumbnail (vignette). + * + * @return les informations techniques + */ + public FileInfo getThumbnailFileInfo() { + return thumbnailDataObject == null ? null : thumbnailDataObject.getFileInfo(); + } + + /** + * Spécifie les informations techniques de l'objet binaire de type thumbnail (vignette). + * + * @param fileInfo les informations techniques + */ + public void setThumbnailFileInfo(FileInfo fileInfo) { + provideThumbnailDataObject().setFileInfo(fileInfo); + } + + /** + * Indique l'identifiant du format de l'objet binaire de type thumbnail (vignette). Il est + * fortement conseillé d'identifier le format de l'objet binaire selon le référentiel Pronom édité + * par The British National Archives. + * + * @return l 'identifiant du format de l'objet binaire + */ + public String getThumbnailFormatId() { + return thumbnailDataObject == null + ? null + : thumbnailDataObject.getFormatIdentification().getFormatId(); + } + + /** + * Spécifie l'identifiant du format de l'objet binaire de type thumbnail (vignette). Il est + * fortement conseillé d'identifier le format de l'objet binaire selon le référentiel Pronom édité + * par The British National Archives. + * + * @param formatId l'identifiant du format de l'objet binaire + */ + public void setThumbnailFormatId(String formatId) { + provideThumbnailDataObject().getFormatIdentification().setFormatId(formatId); + } + + /** + * Indique le nom du format de l'objet binaire de type thumbnail (vignette). Il est fortement + * conseillé de nommer le format de l'objet binaire selon le référentiel Pronom édité par The + * British National Archives. + * + * @return le nom du format de l'objet binaire + */ + public String getThumbnailFormatName() { + return thumbnailDataObject == null + ? null + : thumbnailDataObject.getFormatIdentification().getFormatName(); + } + + /** + * Spécifie le nom du format de l'objet binaire de type thumbnail (vignette). Il est fortement + * conseillé de nommer le format de l'objet binaire selon le référentiel Pronom édite par The + * British National Archives. + * + * @param formatName le nom du format de l'objet binaire + */ + public void setThumbnailFormatName(String formatName) { + provideThumbnailDataObject().getFormatIdentification().setFormatName(formatName); + } + + /** + * Indique le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type + * thumbnail (vignette). + * + * @return le type MIME + */ + public String getThumbnailMimeType() { + return thumbnailDataObject == null + ? null + : thumbnailDataObject.getFormatIdentification().getMimeType(); + } + + /** + * Spécifie le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type + * thumbnail (vignette). + * + * @param mimeType le type MIME + */ + public void setThumbnailMimeType(String mimeType) { + provideThumbnailDataObject().getFormatIdentification().setMimeType(mimeType); + } + + private TextContentDataObject provideTextContentDataObject() { + if (textContentDataObject == null) { + textContentDataObject = new TextContentDataObject(); + } + return textContentDataObject; + } + + /** + * Indique le fournisseur du path de l'objet binaire de type text content (contenu texte). + * + * @return le fournisseur du path de l'objet binaire + */ + @JsonIgnore + public Supplier getTextContentPathSupplier() { + return textContentDataObject == null ? null : textContentDataObject.getBinaryPathSupplier(); + } + + /** + * Spécifie le fournisseur du path de l'objet binaire de type text content (contenu texte). + * + * @param binaryPathSupplier le fournisseur du path de l'objet binaire + */ + public void setTextContentPathSupplier(Supplier binaryPathSupplier) { + provideTextContentDataObject().setBinaryPathSupplier(binaryPathSupplier); + } + + /** + * Indique le path de l'objet binaire de type text content (contenu texte). + * + * @return le path de l'objet binaire + */ + public Path getTextContentPath() { + return textContentDataObject == null ? null : textContentDataObject.getBinaryPath(); + } + + /** + * Spécifie le path de l'objet binaire de type text content (contenu texte). + * + * @param binaryPath le path de l'objet binaire + */ + public void setTextContentPath(Path binaryPath) { + provideTextContentDataObject().setBinaryPath(binaryPath); + } + + /** + * Indique la version de l'objet binaire de type text content (contenu texte). + * + * @return la version de l'objet binaire + */ + public String getTextContentVersion() { + return textContentDataObject == null ? null : textContentDataObject.getBinaryVersion(); + } + + /** + * Spécifie la version de l'objet binaire de type text content (contenu texte). + * + * @param binaryVersion la version de l'objet binaire + */ + public void setTextContentVersion(String binaryVersion) { + provideTextContentDataObject().setBinaryVersion(binaryVersion); + } + + /** + * Indique l'algorithme utilisé pour générer l'empreinte (hash) de l'objet binaire de type text + * content (contenu texte). + * + * @return l'algorithme utilisé + */ + public String getTextContentDigestAlgorithm() { + return textContentDataObject == null ? null : textContentDataObject.getDigestAlgorithm(); + } + + /** + * Indique les informations techniques de l'objet binaire de type text content (contenu texte). + * + * @return les informations techniques + */ + public FileInfo getTextContentFileInfo() { + return textContentDataObject == null ? null : textContentDataObject.getFileInfo(); + } + + /** + * Spécifie les informations techniques de l'objet binaire de type text content (contenu texte). + * + * @param fileInfo les informations techniques + */ + public void setTextContentFileInfo(FileInfo fileInfo) { + provideTextContentDataObject().setFileInfo(fileInfo); + } + + /** + * Indique l'identifiant du format de l'objet binaire de type text content (contenu texte). Il est + * fortement conseillé d'identifier le format de l'objet binaire selon le référentiel Pronom édité + * par The British National Archives. + * + * @return l 'identifiant du format de l'objet binaire + */ + public String getTextContentFormatId() { + return textContentDataObject == null + ? null + : textContentDataObject.getFormatIdentification().getFormatId(); + } + + /** + * Spécifie l'identifiant du format de l'objet binaire de type text content (contenu texte). Il + * est fortement conseillé d'identifier le format de l'objet binaire selon le référentiel Pronom + * édité par The British National Archives. + * + * @param formatId l'identifiant du format de l'objet binaire + */ + public void setTextContentFormatId(String formatId) { + provideTextContentDataObject().getFormatIdentification().setFormatId(formatId); + } + + /** + * Indique le nom du format de l'objet binaire de type text content (contenu texte). Il est + * fortement conseillé de nommer le format de l'objet binaire selon le référentiel Pronom édité + * par The British National Archives. + * + * @return le nom du format de l'objet binaire + */ + public String getTextContentFormatName() { + return textContentDataObject == null + ? null + : textContentDataObject.getFormatIdentification().getFormatName(); + } + + /** + * Spécifie le nom du format de l'objet binaire de type text content (contenu texte). Il est + * fortement conseillé de nommer le format de l'objet binaire selon le référentiel Pronom édite + * par The British National Archives. + * + * @param formatName le nom du format de l'objet binaire + */ + public void setTextContentFormatName(String formatName) { + provideTextContentDataObject().getFormatIdentification().setFormatName(formatName); + } + + /** + * Indique le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type text + * content (contenu texte). + * + * @return le type MIME + */ + public String getTextContentMimeType() { + return textContentDataObject == null + ? null + : textContentDataObject.getFormatIdentification().getMimeType(); + } + + /** + * Spécifie le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire de type text + * content (contenu texte). + * + * @param mimeType le type MIME + */ + public void setTextContentMimeType(String mimeType) { + provideTextContentDataObject().getFormatIdentification().setMimeType(mimeType); + } + + /** + * Indique la version de l'objet physique. + * + * @return la version de l'objet physique + */ + public String getPhysicalVersion() { + return physicalVersion; + } + + /** + * Spécifie la version de l'objet physique. + * + * @param physicalVersion la version de l'objet physique + */ + public void setPhysicalVersion(String physicalVersion) { + this.physicalVersion = physicalVersion; + } + + /** + * Indique le statut de la signature de l'objet binaire. + * + * @return le statut de la signature de l'objet binaire + */ + public String getSignatureStatus() { + return signatureStatus; + } + + /** + * Spécifie le statut de la signature de l'objet binaire. + * + * @param signatureStatus le statut de la signature de l'objet binaire + */ + public void setSignatureStatus(String signatureStatus) { + this.signatureStatus = signatureStatus; + } + + /** + * Indique le profile d’archivage applicable à l'unité d'archive. + * + * @return le profile d’archivage + */ + public String getArchiveUnitProfile() { + return archiveUnitProfile; + } + + /** + * Spécifie le profile d’archivage applicable à l'unité d'archive. + * + * @param achiveUnitProfile le profile d’archivage + */ + public void setArchiveUnitProfile(String achiveUnitProfile) { + this.archiveUnitProfile = achiveUnitProfile; + } + + /** + * Indique les règles de communicabilité (accessibilité). + * + * @return les règles de communicabilité + */ + public AccessRules getAccessRules() { + return accessRules; + } + + /** + * Spécifie les règles de communicabilité (accessibilité). + * + * @param accessRules les règles de communicabilité + */ + public void setAccessRules(AccessRules accessRules) { + this.accessRules = accessRules; + } + + /** + * Spécifie les règles de communicabilité (accessibilité). + * + * @param ruleName le nom de la règle + * @param startDate la date de début + */ + public void setAccessRules(String ruleName, LocalDate startDate) { + this.accessRules = new AccessRules(ruleName, startDate); + } + + /** + * Indique les règles de diffusion. + * + * @return les règles de diffusion + */ + public DisseminationRules getDisseminationRules() { + return disseminationRules; + } + + /** + * Spécifie les règles de diffusion. + * + * @param disseminationRules les règles de diffusion. + */ + public void setDisseminationRules(DisseminationRules disseminationRules) { + this.disseminationRules = disseminationRules; + } + + /** + * Spécifie les règles de diffusion. + * + * @param ruleName le nom de la règle + * @param startDate la date de début + */ + public void setDisseminationRule(String ruleName, LocalDate startDate) { + this.disseminationRules = new DisseminationRules(ruleName, startDate); + } + + /** + * Indique les règles de classification. + * + * @return les règles de classification + */ + public ClassificationRules getClassificationRules() { + return classificationRules; + } + + /** + * Spécifie les règles de classification. + * + * @param classificationRules les règles de classification + */ + public void setClassificationRules(ClassificationRules classificationRules) { + this.classificationRules = classificationRules; + } + + /** + * Spécifie les règles de classification. + * + * @param ruleName le nom de la règle + * @param startDate la date de début + */ + public void setClassificationRules(String ruleName, LocalDate startDate) { + this.classificationRules = new ClassificationRules(ruleName, startDate); + } + + /** + * Indique les règles de réutilisation. + * + * @return les règles de réutilisation + */ + public ReuseRules getReuseRules() { + return reuseRules; + } + + /** + * Spécifie les règles de réutilisation. + * + * @param reuseRules les règles de réutilisation + */ + public void setReuseRules(ReuseRules reuseRules) { + this.reuseRules = reuseRules; + } + + /** + * Spécifie les règles de réutilisation. + * + * @param ruleName le nom de la règle + * @param startDate la date de début + */ + public void setReuseRules(String ruleName, LocalDate startDate) { + this.reuseRules = new ReuseRules(ruleName, startDate); + } + + /** + * Indique les règles de durée d’utilité administrative. + * + * @return les règles de durée d’utilité administrative + */ + public AppraisalRules getAppraisalRules() { + return appraisalRules; + } + + /** + * Spécifie les règles de durée d’utilité administrative. + * + * @param appraisalRules les règles de durée d’utilité administrative + */ + public void setAppraisalRules(AppraisalRules appraisalRules) { + this.appraisalRules = appraisalRules; + } + + /** + * Spécifie les règles de durée d’utilité administrative. + * + * @param ruleName le nom de la règle + * @param startDate la date de début + */ + public void setAppraisalRules(String ruleName, LocalDate startDate) { + this.appraisalRules = new AppraisalRules(ruleName, startDate); + } + + /** + * Indique les règles de durée d'utilité courante. + * + * @return les règles de durée d'utilité courante + */ + public StorageRules getStorageRules() { + return storageRules; + } + + /** + * Spécifie les règles de durée d'utilité courante. + * + * @param storageRules les règles de durée d'utilité courante + */ + public void setStorageRules(StorageRules storageRules) { + this.storageRules = storageRules; + } + + /** + * Spécifie les règles de durée d'utilité courante. + * + * @param ruleName le nom de la règle + * @param startDate la date de début + */ + public void setStorageRules(String ruleName, LocalDate startDate) { + this.storageRules = new StorageRules(ruleName, startDate); + } + + /** + * Indique les règles de gel. + * + * @return les règles de gel + */ + public HoldRules getHoldRules() { + return holdRules; + } + + /** + * Spécifie les règles de gel. + * + * @param holdRules les règles de gel + */ + public void setHoldRules(HoldRules holdRules) { + this.holdRules = holdRules; + } + + /** + * Spécifie les règles de gel. + * + * @param ruleName le nom de la règle + * @param startDate la date de début + */ + public void setHoldRules( + String ruleName, + LocalDate startDate, + LocalDate holdEndDate, + String holdOwner, + String holdReason, + LocalDate holdReassessingDate, + Boolean preventRearrangement) { + this.holdRules = + new HoldRules( + ruleName, + startDate, + holdEndDate, + holdOwner, + holdReason, + holdReassessingDate, + preventRearrangement); + } + + /** + * Indique si une autorisation humaine est nécessaire pour vérifier ou valider les opérations de + * gestion des ArchiveUnit. + * + * @return si une autorisation est nécessaire + */ + public Boolean getNeedAuthorization() { + return needAuthorization; + } + + /** + * Spécifie si une autorisation humaine est nécessaire pour vérifier ou valider les opérations de + * gestion des ArchiveUnit. + * + * @param needAuthorization si une autorisation est nécessaire + */ + public void setNeedAuthorization(Boolean needAuthorization) { + this.needAuthorization = needAuthorization; + } + + /** + * Indique l'opération de mise à jour. + * + * @return l'opération de mise à jour + */ + public UpdateOperation getUpdateOperation() { + return updateOperation; + } + + /** + * Spécifie l'opération de mise à jour. + * + * @param updateOperation l'opération de mise à jour + */ + public void setUpdateOperation(UpdateOperation updateOperation) { + this.updateOperation = updateOperation; + } + + /** + * Ajoute un évènement à la liste des évènements de l'unité d'archive. + * + * @param event l'évènement à ajouter + */ + public void addLogEvent(Event event) { + Validate.notNull(event, SipUtils.NOT_NULL, "event"); + logEvents.add(event); + } + + /** + * Supprime un évènement de la liste des évènements de l'unité d'archive. + * + * @param event l'évènement à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeLogEvent(Event event) { + Validate.notNull(event, SipUtils.NOT_NULL, "event"); + return logEvents.remove(event); + } + + /** + * Fournit la liste des évènements de l'unité d'archive. Un évènement correspond à toute opération + * concernant l'unité d'archive : opération de versement, de mise à jour de métadonnées, de + * préservation, etc. + * + * @return la liste des évènements de l'unité d'archive + */ + public List getLogEvents() { + return new ArrayList<>(logEvents); + } + + /** + * Indique le niveau de description au sens de la norme ISAD (G). Indique si l’unité d'archive + * correspond à un fonds, à un sous-fonds, à une classe, à une série organique, à une sous-série + * organique, à un dossier, à un sous-dossier ou à une pièce. + * + * @return le niveau de description + */ + public String getDescriptionLevel() { + return descriptionLevel; + } + + /** + * Spécifie le niveau de description au sens de la norme ISAD (G). Indique si l’unité d'archive + * correspond à un fonds, à un sous-fonds, à une classe, à une série organique, à une sous-série + * organique, à un dossier, à un sous-dossier ou à une pièce. + * + * @param descriptionLevel le niveau de description + */ + public void setDescriptionLevel(String descriptionLevel) { + this.descriptionLevel = descriptionLevel; + } + + /** + * Fournit la liste des intitulés de l'unité d'archive. + * + * @return la liste des intitulés + */ + public List getTitles() { + return new ArrayList<>(titles); + } + + /** + * Ajoute un intitulé à l'unité d'archive. + * + * @param message l'intitulé à ajouter + */ + public void addTitle(String message) { + titles.add(new Text(message)); + } + + /** + * Ajoute un intitulé à l'unité d'archive. + * + * @param message l'intitulé à ajouter + * @param lang la langue à ajouter + */ + public void addTitle(String message, String lang) { + titles.add(new Text(message, lang)); + } + + /** + * Ajoute un intitulé à l'unité d'archive. + * + * @param title le texte de l'intitulé à ajouter + */ + public void addTitle(Text title) { + Validate.notNull(title, SipUtils.NOT_NULL, "title"); + titles.add(title); + } + + /** + * Supprime un intitulé de l'unité d'archive. + * + * @param title le texte de l'intitulé à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeTitle(Text title) { + Validate.notNull(title, SipUtils.NOT_NULL, "title"); + return titles.remove(title); + } + + /** + * Fournit la liste des descriptions de l'unité d'archive. + * + * @return la liste des descriptions + */ + public List getDescriptions() { + return new ArrayList<>(descriptions); + } + + /** + * Ajoute une description à l'unité d'archive. + * + * @param message la description à ajouter + */ + public void addDescription(String message) { + descriptions.add(new Text(message)); + } + + /** + * Ajoute une description à l'unité d'archive. + * + * @param message la description à ajouter + * @param lang la langue à ajouter + */ + public void addDescription(String message, String lang) { + descriptions.add(new Text(message, lang)); + } + + /** + * Ajoute une description à l'unité d'archive. + * + * @param description le texte de la description à ajouter + */ + public void addDescription(Text description) { + Validate.notNull(description, SipUtils.NOT_NULL, "description"); + descriptions.add(description); + } + + /** + * Indique l'identifiant de l'archive unit. Note. L'identifiant de l'archive unit est unique dans + * le document. + * + * @return l'identifiant de l'archive unit. + */ + public String getId() { + return id; + } + + /** + * Spécifie l'attribut ID identifiant l'archive unit. Il est de la responsabilité du développeur + * de s'assurer que l'attribut spécifié est unique dans le document. Pour éviter d'éventuels + * conflits avec les attributs générés automatiquement, il est conseillé de préfixer l'attribut + * une valeur différente de "ID" qui est celle utilisée par le générateur. + * + *

Note. Les attributs de type ID permettent d'identifier de manière unique un élément dans le + * document. La valeur d'un attribut de type ID doit donc être unique parmi toutes les valeurs de + * tous les attributs ID de tout le document. Dans le cas contraire le document XML n'est pas + * valide. Si l'ID d'un élément n'est pas défini, le générateur crée automatiquement en se basant + * sur une séquence un ID unique préfixé par "ID". + * + * @param id l'identifiant de l'archive unit + */ + public void setId(String id) { + this.id = id; + } + + /** + * Supprime une description de l'unité d'archive. + * + * @param description la description à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeDescription(Text description) { + Validate.notNull(description, SipUtils.NOT_NULL, "description"); + return descriptions.remove(description); + } + + /** + * Indique les positions de l’unité d'archive dans le plan de classement du service producteur. + * + * @return la position + */ + public List getFilePlanPositions() { + return new ArrayList<>(filePlanPositions); + } + + /** + * Ajoute la position de l’unité d'archive dans le plan de classement du service producteur. + * + * @param filePlanPosition la position à ajouter + */ + public void addFilePlanPosition(String filePlanPosition) { + Validate.notNull(filePlanPosition, SipUtils.NOT_NULL, "filePlanPosition"); + this.filePlanPositions.add(filePlanPosition); + } + + /** + * Supprime la position de l’unité d'archive. + * + * @param filePlanPosition la position à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeFilePlanPosition(String filePlanPosition) { + Validate.notNull(filePlanPosition, SipUtils.NOT_NULL, "filePlanPosition"); + return filePlanPositions.remove(filePlanPosition); + } + + /** + * Indique les identifiants attribués à l'archive. Il est attribué par le SAE et correspond à un + * identifiant interne. + * + * @return l 'identifiant + */ + public List getSystemIds() { + return new ArrayList<>(systemIds); + } + + /** + * Ajoute l'identifiant. + * + * @param systemId la position à ajouter + */ + public void addSystemId(String systemId) { + Validate.notNull(systemId, SipUtils.NOT_NULL, "systemId"); + this.systemIds.add(systemId); + } + + /** + * Supprime l'identifiant. + * + * @param systemId la position à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeSystemId(String systemId) { + Validate.notNull(systemId, SipUtils.NOT_NULL, "systemId"); + return systemIds.remove(systemId); + } + + /** + * Indique les identifiants attribués aux objets de données. Il est attribué par le SAE et + * correspond à un identifiant interne. + * + * @return l 'identifiant + */ + public List getDataObjectSystemIds() { + return dataObjectSystemIds; + } + + /** + * Ajoute l'identifiant. + * + * @param dataObjectSystemId la position à ajouter + */ + public void addDataObjectSystemId(String dataObjectSystemId) { + Validate.notNull(dataObjectSystemId, SipUtils.NOT_NULL, "dataObjectSystemId"); + this.dataObjectSystemIds.add(dataObjectSystemId); + } + + /** + * Supprime l'identifiant. + * + * @param dataObjectSystemId la position à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeDataObjectSystemId(String dataObjectSystemId) { + Validate.notNull(dataObjectSystemId, SipUtils.NOT_NULL, "dataObjectSystemId"); + return dataObjectSystemIds.remove(dataObjectSystemId); + } + + /** + * Indique les identifiants système attribué à l’ArchiveUnit par l’application du service + * producteur. + * + * @return l 'identifiant + */ + public List getOriginatingSystemIds() { + return new ArrayList<>(originatingSystemIds); + } + + /** + * Ajoute l'identifiant système attribué à l’ArchiveUnit par l’application du service producteur. + * + * @param originatingSystemId l'identifiant à ajouter + */ + public void addOriginatingSystemId(String originatingSystemId) { + Validate.notNull(originatingSystemId, SipUtils.NOT_NULL, "originatingSystemId"); + this.originatingSystemIds.add(originatingSystemId); + } + + /** + * Supprime l'identifiant système à la liste. + * + * @param originatingSystemId l'identifiant à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeOriginatingSystemId(String originatingSystemId) { + Validate.notNull(originatingSystemId, SipUtils.NOT_NULL, "originatingSystemId"); + return originatingSystemIds.remove(originatingSystemId); + } + + /** + * Indique les identifiants métier attribué à l'unité d'archive par le service d'archives. Peut + * être comparé à une cote. + * + * @return l 'identifiant + */ + public List getArchivalAgencyArchiveUnitIdentifiers() { + return new ArrayList<>(archivalAgencyArchiveUnitIdentifiers); + } + + /** + * Ajoute l'identifiant métier attribué à l’ArchiveUnit par l’application du service producteur. + * + * @param archivalAgencyArchiveUnitIdentifier l'identifiant à ajouter + */ + public void addArchivalAgencyArchiveUnitIdentifier(String archivalAgencyArchiveUnitIdentifier) { + Validate.notNull( + archivalAgencyArchiveUnitIdentifier, + SipUtils.NOT_NULL, + "archivalAgencyArchiveUnitIdentifier"); + this.archivalAgencyArchiveUnitIdentifiers.add(archivalAgencyArchiveUnitIdentifier); + } + + /** + * Supprime l'identifiant métier à la liste. + * + * @param archivalAgencyArchiveUnitIdentifier l'identifiant à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeArchivalAgencyArchiveUnitIdentifier( + String archivalAgencyArchiveUnitIdentifier) { + Validate.notNull( + archivalAgencyArchiveUnitIdentifier, + SipUtils.NOT_NULL, + "archivalAgencyArchiveUnitIdentifier"); + return archivalAgencyArchiveUnitIdentifiers.remove(archivalAgencyArchiveUnitIdentifier); + } + + /** + * Indique les identifiants métier attribués à l’ArchiveUnit par le service producteur. + * + * @return l 'identifiant + */ + public List getOriginatingAgencyArchiveUnitIdentifiers() { + return new ArrayList<>(originatingAgencyArchiveUnitIdentifiers); + } + + /** + * Ajoute l'identifiant métier attribué à l’ArchiveUnit par l’application du service producteur. + * + * @param originatingAgencyArchiveUnitIdentifier l'identifiant à ajouter + */ + public void addOriginatingAgencyArchiveUnitIdentifier( + String originatingAgencyArchiveUnitIdentifier) { + Validate.notNull( + originatingAgencyArchiveUnitIdentifier, + SipUtils.NOT_NULL, + "originatingAgencyArchiveUnitIdentifier"); + this.originatingAgencyArchiveUnitIdentifiers.add(originatingAgencyArchiveUnitIdentifier); + } + + /** + * Supprime l'identifiant métier à la liste des langues du contenu des objets binaires ou + * physiques. + * + * @param originatingAgencyArchiveUnitIdentifier l'identifiant à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeOriginatingAgencyArchiveUnitIdentifier( + String originatingAgencyArchiveUnitIdentifier) { + Validate.notNull( + originatingAgencyArchiveUnitIdentifier, + SipUtils.NOT_NULL, + "archivalAgencyArchiveUnitIdentifier"); + return originatingAgencyArchiveUnitIdentifiers.remove(originatingAgencyArchiveUnitIdentifier); + } + + /** + * Indique les identifiants attribués à l'ArchiveUnit par le service versant. + * + * @return l 'identifiant + */ + public List getTransferringAgencyArchiveUnitIdentifiers() { + return new ArrayList<>(transferringAgencyArchiveUnitIdentifiers); + } + + /** + * Ajoute l'identifiant attribué à l’ArchiveUnit par le service versant. + * + * @param transferringAgencyArchiveUnitIdentifier l'identifiant à ajouter + */ + public void addTransferringAgencyArchiveUnitIdentifier( + String transferringAgencyArchiveUnitIdentifier) { + Validate.notNull( + transferringAgencyArchiveUnitIdentifier, + SipUtils.NOT_NULL, + "transferringAgencyArchiveUnitIdentifier"); + this.transferringAgencyArchiveUnitIdentifiers.add(transferringAgencyArchiveUnitIdentifier); + } + + /** + * Supprime l'identifiant métier à la liste. + * + * @param transferringAgencyArchiveUnitIdentifier l'identifiant à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeTransferringAgencyArchiveUnitIdentifier( + String transferringAgencyArchiveUnitIdentifier) { + Validate.notNull( + transferringAgencyArchiveUnitIdentifier, + SipUtils.NOT_NULL, + "transferringAgencyArchiveUnitIdentifier"); + return transferringAgencyArchiveUnitIdentifiers.remove(transferringAgencyArchiveUnitIdentifier); + } + + /** + * Ajoute un changement à la liste des changements. La liste contient les changements successifs + * de propriété, de responsabilité et de conservation des unités d'archives avant leur entrée dans + * le lieu de conservation. On peut notamment y indiquer comment s'est effectué le passage de + * l'application d'origine au fichier archivable. Correspond à l'historique de la conservation en + * ISAD(G). + * + * @param custodialItem le changement à ajouter + */ + public void addCustodialItem(CustodialItem custodialItem) { + Validate.notNull(custodialItem, SipUtils.NOT_NULL, "custodialItem"); + custodialItems.add(custodialItem); + } + + /** + * Ajoute un changement à la liste des changements. La liste contient les changements successifs + * de propriété, de responsabilité et de conservation des unités d'archives avant leur entrée dans + * le lieu de conservation. On peut notamment y indiquer comment s'est effectué le passage de + * l'application d'origine au fichier archivable. Correspond à l'historique de la conservation en + * ISAD(G). + * + * @param value l'intitulé du changement à ajouter + * @param when la date du changement à ajouter + */ + public void addCustodialItem(String value, LocalDateTime when) { + custodialItems.add(new CustodialItem(value, when)); + } + + /** + * Supprime un changement à la liste des changements. La liste contient les changements successifs + * de propriété, de responsabilité et de conservation des unités d'archives avant leur entrée dans + * le lieu de conservation. On peut notamment y indiquer comment s'est effectué le passage de + * l'application d'origine au fichier archivable. Correspond à l'historique de la conservation en + * ISAD(G). + * + * @param custodialItem le changement à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeCustodialItem(CustodialItem custodialItem) { + Validate.notNull(custodialItem, SipUtils.NOT_NULL, "custodialItem"); + return custodialItems.remove(custodialItem); + } + + /** + * Fournit la liste des changements successifs de propriété, de responsabilité et de conservation + * des unités d'archives avant leur entrée dans le lieu de conservation. + * + * @return la liste des changements + */ + public List getCustodialItems() { + return new ArrayList<>(custodialItems); + } + + /** + * Indique le type d’information au sens de l’OAIS (information de représentation, information de + * pérennisation, etc.). + * + * @return le type + */ + public String getType() { + return type; + } + + /** + * Spécifie le type d’information au sens de l’OAIS (information de représentation, information de + * pérennisation, etc.). + * + * @param type le type + */ + public void setType(String type) { + this.type = type; + } + + /** + * Indique le type de document au sens diplomatique du terme (ex. compte rendu de réunion, note, + * correspondance, etc.). + * + * @return le type de document + */ + public String getDocumentType() { + return documentType; + } + + /** + * Spécifie le type de document au sens diplomatique du terme (ex. compte rendu de réunion, note, + * correspondance, etc.). + * + * @param documentType le type de document + */ + public void setDocumentType(String documentType) { + this.documentType = documentType; + } + + /** + * Ajoute la langue à la liste des langues du contenu des objets binaires ou physiques. + * + * @param language la langue à ajouter + */ + public void addLanguage(String language) { + Validate.notNull(language, SipUtils.NOT_NULL, "language"); + languages.add(language); + } + + /** + * Supprime la langue à la liste des langues du contenu des objets binaires ou physiques. + * + * @param language la langue à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeLanguage(String language) { + Validate.notNull(language, SipUtils.NOT_NULL, "language"); + return languages.remove(language); + } + + /** + * Fournit la liste des langues du contenu des objets binaires ou physiques. + * + * @return la liste des langues + */ + public List getLanguages() { + return new ArrayList<>(languages); + } + + /** + * Indique la langue utilisée pour les métadonnées de description. + * + * @return la langue + */ + public String getDescriptionLanguage() { + return descriptionLanguage; + } + + /** + * Spécifie la langue utilisée pour les métadonnées de description. + * + * @param descriptionLanguage la langue + */ + public void setDescriptionLanguage(String descriptionLanguage) { + this.descriptionLanguage = descriptionLanguage; + } + + /** + * Indique l'état de l'objet binaire ou physique (par rapport avec son cycle de vie). L'état + * permet par exemple d'indiquer si la signature du fichier a été vérifiée avant le transfert aux + * archives. + * + * @return la statut + */ + public String getStatus() { + return status; + } + + /** + * Spécifie l'état de l'objet binaire ou physique (par rapport avec son cycle de vie). L'état + * permet par exemple d'indiquer si la signature du fichier a été vérifiée avant le transfert aux + * archives. + * + * @param status la statut + */ + public void setStatus(String status) { + this.status = status; + } + + /** + * Indique la version du document. + * + * @return la version + */ + public String getVersion() { + return version; + } + + /** + * Spécifie la version du document. + * + * @param version la version + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * Indique le service producteur. Il s'agit d'une personne physique ou morale, publique ou privée, + * qui a produit, reçu et conservé des archives dans l'exercice de son activité. + * + * @return le service producteur + */ + public Agency getOriginatingAgency() { + return originatingAgency; + } + + /** + * Spécifie le service producteur. Il s'agit d'une personne physique ou morale, publique ou + * privée, qui a produit, reçu et conservé des archives dans l'exercice de son activité. + * + * @param originatingAgency le service producteur + */ + public void setOriginatingAgency(Agency originatingAgency) { + this.originatingAgency = originatingAgency; + } + + /** + * Indique le service versant responsable du transfert des données. + * + * @return le service versant + */ + public Agency getSubmissionAgency() { + return submissionAgency; + } + + /** + * Spécifie le service versant responsable du transfert des données. + * + * @param submissionAgency le service versant + */ + public void setSubmissionAgency(Agency submissionAgency) { + this.submissionAgency = submissionAgency; + } + + /** + * Ajoute un titulaire à la liste des titulaires des droits de propriété intellectuelle. + * + * @param authorizedAgent le titulaire à ajouter + */ + public void addAuthorizedAgent(Agent authorizedAgent) { + Validate.notNull(authorizedAgent, SipUtils.NOT_NULL, "authorizedAgent"); + authorizedAgents.add(authorizedAgent); + } + + /** + * Supprime un titulaire à la liste des titulaires des droits de propriété intellectuelle. + * + * @param authorizedAgent le titulaire à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeAuthorizedAgent(Agent authorizedAgent) { + Validate.notNull(authorizedAgent, SipUtils.NOT_NULL, "authorizedAgent"); + return authorizedAgents.remove(authorizedAgent); + } + + /** + * Fournit la liste des titulaires des droits de propriété intellectuelle. + * + * @return la liste des titulaires + */ + public List getAuthorizedAgents() { + return new ArrayList<>(authorizedAgents); + } + + /** + * Ajoute un rédacteur à la liste des rédacteurs de l’unité d'archive. + * + * @param writer le rédacteur à ajouter + */ + public void addWriter(Agent writer) { + Validate.notNull(writer, SipUtils.NOT_NULL, "writer"); + writers.add(writer); + } + + /** + * Supprime un rédacteur de la liste des rédacteurs de l’unité d'archive. + * + * @param writer le rédacteur à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeWriter(Agent writer) { + Validate.notNull(writer, SipUtils.NOT_NULL, "writer"); + return writers.remove(writer); + } + + /** + * Fournit la liste des rédacteurs de l’unité d'archive. + * + * @return la liste des rédacteurs + */ + public List getWriters() { + return new ArrayList<>(writers); + } + + /** + * Ajoute un destinataire à la liste des destinataires pour action. Utilisé pour indiquer le nom + * du destinataire par exemple dans un courrier électronique. + * + * @param addressee le destinataire à ajouter + */ + public void addAddressee(Agent addressee) { + Validate.notNull(addressee, SipUtils.NOT_NULL, "addressee"); + addressees.add(addressee); + } + + /** + * Supprime un destinataire de la liste des destinataires pour action. Utilisé pour indiquer le + * nom du destinataire par exemple dans un courrier électronique. + * + * @param addressee le destinataire à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeAddressee(Agent addressee) { + Validate.notNull(addressee, SipUtils.NOT_NULL, "addressee"); + return addressees.remove(addressee); + } + + /** + * Fournit la liste des destinataires pour action. Utilisé pour indiquer le nom du destinataire + * par exemple dans un courrier électronique. + * + * @return la liste des destinataires pour action + */ + public List getAddressees() { + return new ArrayList<>(addressees); + } + + /** + * Ajoute un destinataire à la liste des destinataires pour information. Utilisé pour indiquer le + * nom du destinataire en copie, pour information, par exemple dans un courrier électronique. + * + * @param recipient le destinataire à ajouter + */ + public void addRecipient(Agent recipient) { + Validate.notNull(recipient, SipUtils.NOT_NULL, "recipient"); + recipients.add(recipient); + } + + /** + * Supprime un destinataire de la liste des destinataires pour information. Utilisé pour indiquer + * le nom du destinataire en copie, pour information, par exemple dans un courrier électronique. + * + * @param recipient le destinataire à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeRecipient(Agent recipient) { + Validate.notNull(recipient, SipUtils.NOT_NULL, "recipient"); + return recipients.remove(recipient); + } + + /** + * Fournit la liste des destinataires pour information. Utilisé pour indiquer le nom du + * destinataire en copie, pour information, par exemple dans un courrier électronique. + * + * @return la liste des destinataires pour information + */ + public List getRecipients() { + return new ArrayList<>(recipients); + } + + /** + * Ajoute un émetteur à la liste des émetteurs du message. + * + * @param transmitter l'émetteur du message à ajouter + */ + public void addTransmitter(Agent transmitter) { + Validate.notNull(transmitter, SipUtils.NOT_NULL, "transmitter"); + transmitters.add(transmitter); + } + + /** + * Supprime un émetteur de la liste des émetteurs du message. + * + * @param transmitter l'émetteur du message à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeTransmitter(Agent transmitter) { + Validate.notNull(transmitter, SipUtils.NOT_NULL, "transmitter"); + return transmitters.remove(transmitter); + } + + /** + * Fournit la liste des émetteurs du message. + * + * @return la liste des émetteurs du message + */ + public List getTransmitters() { + return new ArrayList<>(transmitters); + } + + /** + * Ajoute un expéditeur à la liste des expéditeurs du message. + * + * @param sender l'expéditeur à ajouter + */ + public void addSender(Agent sender) { + Validate.notNull(sender, SipUtils.NOT_NULL, "sender"); + senders.add(sender); + } + + /** + * Supprime un expéditeur de la liste des expéditeurs du message. + * + * @param sender l'expéditeur à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeSender(Agent sender) { + Validate.notNull(sender, SipUtils.NOT_NULL, "sender"); + return senders.remove(sender); + } + + /** + * Fournit la liste des expéditeurs du message. + * + * @return la liste des expéditeurs du message + */ + public List getSenders() { + return new ArrayList<>(senders); + } + + /** + * Indique la référence à la source papier originale. + * + * @return la source + */ + public String getSource() { + return source; + } + + /** + * Spécifie la référence à la source papier originale. + * + * @param source la source + */ + public void setSource(String source) { + this.source = source; + } + + /** + * Indique la référence à un objet faisant ou ne faisant pas partie du présent paquet + * d'information. + * + * @return la référence + */ + public RelatedObjectRef getRelation() { + return relation; + } + + /** + * Spécifie la référence à un objet faisant ou ne faisant pas partie du présent paquet + * d'information. + * + * @param relation la référence + */ + public void setRelation(RelatedObjectRef relation) { + this.relation = relation; + } + + /** + * Ajoute une signature à la liste des informations relatives à la signature. + * + * @param signature la signature à ajouter + */ + public void addSignature(Signature signature) { + Validate.notNull(signature, SipUtils.NOT_NULL, "signature"); + signatures.add(signature); + } + + /** + * Supprime une signature à la liste des informations relatives à la signature. + * + * @param signature la signature à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeSignature(Signature signature) { + Validate.notNull(signature, SipUtils.NOT_NULL, "signature"); + return signatures.remove(signature); + } + + /** + * Fournit la liste des informations relatives à la signature. + * + * @return la liste des informations relatives à la signature + */ + public List getSignatures() { + return new ArrayList<>(signatures); + } + + /** + * Indique l'identifiant de la version du GPS. + * + * @return l 'identifiant + */ + public String getGpsVersionID() { + return gpsVersionID; + } + + /** + * Spécifie l'identifiant de la version du GPS. + * + * @param gpsVersionID l'identifiant + */ + public void setGpsVersionID(String gpsVersionID) { + this.gpsVersionID = gpsVersionID; + } + + /** + * Indique l'altitude basée sur la référence dans GPSAltitudeRef. L'altitude est exprimée en + * mètres. + * + * @return l 'altitude + */ + public String getGpsAltitude() { + return gpsAltitude; + } + + /** + * Spécifie l'altitude basée sur la référence dans GPSAltitudeRef. L'altitude est exprimée en + * mètres. + * + * @param gpsAltitude l'altitude + */ + public void setGpsAltitude(String gpsAltitude) { + this.gpsAltitude = gpsAltitude; + } + + /** + * Indique l'altitude utilisée comme altitude de référence. Si l'altitude est au-dessus du niveau + * de la mer, la valeur 0 est normalement donnée. Si l'altitude est au-dessous du niveau de la + * mer, la valeur 1 est donnée. + * + * @return l'altitude de référence + */ + public String getGpsAltitudeRef() { + return gpsAltitudeRef; + } + + /** + * Spécifie l'altitude utilisée comme altitude de référence. Si l'altitude est au-dessus du niveau + * de la mer, la valeur 0 est normalement donnée. Si l'altitude est au-dessous du niveau de la + * mer, la valeur 1 est donnée. + * + * @param gpsAltitudeRef l'altitude de référence + */ + public void setGpsAltitudeRef(String gpsAltitudeRef) { + this.gpsAltitudeRef = gpsAltitudeRef; + } + + /** + * Indique la latitude. La latitude qui peut être exprimée de deux manières différentes : degrés, + * décimaux ou degrés, minutes et secondes. Si la latitude est exprimée en degrés, décimaux, le + * format type est dd, dd. Par exemple : "45.3130339". Si la latitude est exprimée en degrés, + * minutes et secondes, le format type est dd, mm, ss. Par exemple : "45 18 46.922". + * + * @return la latitude + */ + public String getGpsLatitude() { + return gpsLatitude; + } + + /** + * Spécifie la latitude. La latitude qui peut être exprimée de deux manières différentes : degrés, + * décimaux ou degrés, minutes et secondes. Si la latitude est exprimée en degrés, décimaux, le + * format type est dd, dd. Par exemple : "45.3130339". Si la latitude est exprimée en degrés, + * minutes et secondes, le format type est dd, mm, ss. Par exemple : "45 18 46.922". + * + * @param gpsLatitude la latitude + */ + public void setGpsLatitude(String gpsLatitude) { + this.gpsLatitude = gpsLatitude; + } + + /** + * Indique la latitude. La valeur 'N' indique la latitude nord, et 'S' indique la latitude sud. + * + * @return la latitude de référence + */ + public String getGpsLatitudeRef() { + return gpsLatitudeRef; + } + + /** + * Spécifie la latitude. La valeur 'N' indique la latitude nord, et 'S' indique la latitude sud. + * + * @param gpsLatitudeRef la latitude de référence + */ + public void setGpsLatitudeRef(String gpsLatitudeRef) { + this.gpsLatitudeRef = gpsLatitudeRef; + } + + /** + * Indique la longitude. La longitude peut être exprimée de deux manières différentes : degrés, + * décimaux ou degrés, minutes et secondes. Si la longitude est exprimée en degrés, décimaux, le + * format type est dd, dd. Par exemple : "5.392285833333334". Si la longitude est exprimée en + * degrés, minutes et secondes, le format type est dd, mm, ss. Par exemple : "5 23 32.229". + * + * @return la longitude + */ + public String getGpsLongitude() { + return gpsLongitude; + } + + /** + * Spécifie la longitude. La longitude peut être exprimée de deux manières différentes : degrés, + * décimaux ou degrés, minutes et secondes. Si la longitude est exprimée en degrés, décimaux, le + * format type est dd, dd. Par exemple : "5.392285833333334". Si la longitude est exprimée en + * degrés, minutes et secondes, le format type est dd, mm, ss. Par exemple : "5 23 32.229". + * + * @param gpsLongitude la longitude + */ + public void setGpsLongitude(String gpsLongitude) { + this.gpsLongitude = gpsLongitude; + } + + /** + * Indique la longitude. La valeur 'E' indique la longitude EST, et 'W' indique la longitude + * OUEST. + * + * @return la longitude de référence + */ + public String getGpsLongitudeRef() { + return gpsLongitudeRef; + } + + /** + * Spécifie la longitude. La valeur 'E' indique la longitude EST, et 'W' indique la longitude + * OUEST. + * + * @param gpsLongitudeRef la longitude de référence + */ + public void setGpsLongitudeRef(String gpsLongitudeRef) { + this.gpsLongitudeRef = gpsLongitudeRef; + } + + /** + * Indique l'heure et la date de la position GPS. + * + * @return la date et l'heure + */ + public String getGpsDateStamp() { + return gpsDateStamp; + } + + /** + * Spécifie l'heure et la date de la position GPS. + * + * @param gpsDateStamp la date et l'heure + */ + public void setGpsDateStamp(String gpsDateStamp) { + this.gpsDateStamp = gpsDateStamp; + } + + /** + * Indique la date de création. + * + * @return la date de création + */ + public LocalDate getCreatedDate() { + return createdDate; + } + + /** + * Spécifie la date de création. + * + * @param createdDate la date de création + */ + public void setCreatedDate(LocalDate createdDate) { + this.createdDate = createdDate; + } + + /** + * Indique la date de la transaction. + * + * @return la date de la transaction + */ + public LocalDate getTransactedDate() { + return transactedDate; + } + + /** + * Spécifie la date de la transaction. + * + * @param transactedDate la date de la transaction + */ + public void setTransactedDate(LocalDate transactedDate) { + this.transactedDate = transactedDate; + } + + /** + * Indique la date de numérisation. + * + * @return la date de numérisation + */ + public LocalDate getAcquiredDate() { + return acquiredDate; + } + + /** + * Spécifie la date de numérisation. + * + * @param acquiredDate la date de numérisation + */ + public void setAcquiredDate(LocalDate acquiredDate) { + this.acquiredDate = acquiredDate; + } + + /** + * Indique la date d'envoi. + * + * @return la date d'envoi + */ + public LocalDate getSentDate() { + return sentDate; + } + + /** + * Spécifie la date d'envoi. + * + * @param sentDate la date d'envoi + */ + public void setSentDate(LocalDate sentDate) { + this.sentDate = sentDate; + } + + /** + * Indique la date de réception. + * + * @return la date de réception + */ + public LocalDate getReceivedDate() { + return receivedDate; + } + + /** + * Spécifie la date de réception. + * + * @param receivedDate la date de réception + */ + public void setReceivedDate(LocalDate receivedDate) { + this.receivedDate = receivedDate; + } + + /** + * Indique la date d'enregistrement. + * + * @return la date d'enregistrement + */ + public LocalDate getRegisteredDate() { + return registeredDate; + } + + /** + * Spécifie la date d'enregistrement. + * + * @param registeredDate la date d'enregistrement. + */ + public void setRegisteredDate(LocalDate registeredDate) { + this.registeredDate = registeredDate; + } + + /** + * Indique la date d'ouverture / date de début. + * + * @return la date de début + */ + public LocalDate getStartDate() { + return startDate; + } + + /** + * Spécifie la date d'ouverture / date de début. + * + * @param startDate la date de début + */ + public void setStartDate(LocalDate startDate) { + this.startDate = startDate; + } + + /** + * Indique la date de fermeture ou la date de fin. + * + * @return la date de fin + */ + public LocalDate getEndDate() { + return endDate; + } + + /** + * Spécifie la date de fermeture ou la date de fin. + * + * @param endDate la date de fin + */ + public void setEndDate(LocalDate endDate) { + this.endDate = endDate; + } + + /** + * Ajoute des mot-clés à la liste de mots-clés de description. + * + * @param values les mot-clés à ajouter + */ + public void addTags(String... values) { + for (String value : values) { + tags.add(new Tag(null, value)); + } + } + + /** + * Ajoute un mot-clé à la liste de mots-clés de description. + * + * @param tag le mot-clé à ajouter + */ + public void addTag(Tag tag) { + Validate.notNull(tag, SipUtils.NOT_NULL, "tag"); + tags.add(tag); + } + + /** + * Ajoute une valeur à la liste de mots-clés de description. + * + * @param value la valeur à ajouter + */ + public void addTag(String value) { + tags.add(new Tag(null, value)); + } + + /** + * Ajoute une clé et une valeur à la liste de mots-clés de description. + * + * @param key la clé du mot-clé + * @param value la valeur du mot-clé + */ + public void addTag(String key, String value) { + tags.add(new Tag(key, value)); + } + + /** + * Supprime un mot-clé de la liste de mots-clés de description. + * + * @param tag le mot-clé à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeTag(Tag tag) { + Validate.notNull(tag, SipUtils.NOT_NULL, "tag"); + return tags.remove(tag); + } + + /** + * Fournit la liste de mots-clés de description. + * + * @return la liste de mots-clés de description + */ + public List getTags() { + return new ArrayList<>(tags); + } + + /** + * Ajoute une unité d'archive à la liste d'autres unités d'archives contenues dans cette unité + * d'archive. + * + * @param archiveUnit l'unité d'archive + */ + @Override + public void addArchiveUnit(ArchiveUnit archiveUnit) { + Validate.notNull(archiveUnit, SipUtils.NOT_NULL, "archiveUnit"); + archiveUnits.add(archiveUnit); + } + + /** + * Supprime une unité d'archive de la liste d'autres unités d'archives contenues dans cette unité + * d'archive. + * + * @param archiveUnit l'unité d'archive à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + @Override + public boolean removeArchiveUnit(ArchiveUnit archiveUnit) { + Validate.notNull(archiveUnit, SipUtils.NOT_NULL, "archiveUnit"); + return archiveUnits.remove(archiveUnit); + } + + /** + * Fournit la liste d'autres unités d'archives contenues dans cette unité d'archive. + * + * @return la liste d'autres unités d'archives + */ + @Override + public List getArchiveUnits() { + return new ArrayList<>(archiveUnits); + } + + /** + * Ajoute une référence d'unité d'archive à la liste d'autres unités d'archives référencées par + * cette unité d'archive + * + * @param reference référence à l'unité d'archive + */ + public void addReference(ArchiveUnitRef reference) { + Validate.notNull(reference, SipUtils.NOT_NULL, "reference"); + references.add(reference); + } + + /** + * Supprime une référence d'unité d'archive de la liste d'autres références d'unités d'archives + * contenues dans cette unité d'archive. + * + * @param reference la référence d'unité d'archive à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeReference(ArchiveUnitRef reference) { + Validate.notNull(reference, SipUtils.NOT_NULL, "reference"); + return references.remove(reference); + } + + /** + * Fournit la liste d'autres références d'unités d'archives contenues dans cette unité d'archive. + * + * @return la liste d'autres références d'unités d'archives + */ + public List getReferences() { + return new ArrayList<>(references); + } + + /** + * Ajoute l'élément à la liste des éléments étendus qui n'appartiennent pas à l'ontolgie standard. + * + * @param element l'élément à ajouter + */ + public void addElement(String element) { + Validate.notNull(element, SipUtils.NOT_NULL, "element"); + elements.add(element); + } + + /** + * Supprime un élément de la liste des éléments étendus qui n'appartiennent pas à l'ontologie + * standard. + * + * @param element l'élément à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeElement(String element) { + Validate.notNull(element, SipUtils.NOT_NULL, "element"); + return elements.remove(element); + } + + /** + * Ajoute un élément à la liste des éléments étendus qui n'appartiennent pas à l'ontologie + * standard. + * + * @param element l'élément à ajouter + */ + public void addElement(Element element) { + Validate.notNull(element, SipUtils.NOT_NULL, "element"); + elements.add(element); + } + + /** + * Fournit le premier élément dont le "name" correspond à "elementName" dans la liste des éléments + * étendus. Note. La recherche s'effectue uniquement sur les objets de type Element (et pas de + * type String). + * + * @param elementName le nom de l'élément recherché + * @return l'élément trouvé sinon null + */ + public Element getFirstElement(String elementName) { + Validate.notNull(elementName, SipUtils.NOT_NULL, "elementName"); + + for (Object e : elements) { + if (e instanceof Element element) { + if (elementName.equals(element.getName())) { + return element; } - return null; - } - - /** - * Fournit la liste des éléments dont le "name" correspond à "elementName" dans la liste des éléments étendus. Note. - * La recherche s'effectue uniquement sur les objets de type Element (et pas de type String). - * - * @param elementName le nom des éléments recherchés - * @return la liste des éléments trouvés - */ - public List getElements(String elementName) { - Validate.notNull(elementName, SipUtils.NOT_NULL, "elementName"); - - List els = new ArrayList<>(); - for (Object e : elements) { - if (e instanceof Element element) { - if (elementName.equals(element.getName())) { - els.add(element); - } - } + } + } + return null; + } + + /** + * Fournit la liste des éléments dont le "name" correspond à "elementName" dans la liste des + * éléments étendus. Note. La recherche s'effectue uniquement sur les objets de type Element (et + * pas de type String). + * + * @param elementName le nom des éléments recherchés + * @return la liste des éléments trouvés + */ + public List getElements(String elementName) { + Validate.notNull(elementName, SipUtils.NOT_NULL, "elementName"); + + List els = new ArrayList<>(); + for (Object e : elements) { + if (e instanceof Element element) { + if (elementName.equals(element.getName())) { + els.add(element); } - return els; - } - - /** - * Supprime un élément de la liste des éléments étendus qui n'appartiennent pas à l'ontologie standard. - * - * @param element l'élément à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeElement(Element element) { - Validate.notNull(element, SipUtils.NOT_NULL, "element"); - return elements.remove(element); - } - - /** - * Fournit la liste des éléments étendus qui n'appartiennent pas à l'ontologie standard. - * - * @return la liste des éléments étendus - */ - public List getElements() { - return new ArrayList<>(elements); - } + } + } + return els; + } + + /** + * Supprime un élément de la liste des éléments étendus qui n'appartiennent pas à l'ontologie + * standard. + * + * @param element l'élément à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeElement(Element element) { + Validate.notNull(element, SipUtils.NOT_NULL, "element"); + return elements.remove(element); + } + + /** + * Fournit la liste des éléments étendus qui n'appartiennent pas à l'ontologie standard. + * + * @return la liste des éléments étendus + */ + public List getElements() { + return new ArrayList<>(elements); + } } diff --git a/src/main/java/fr/xelians/sipg/model/ArchiveUnitContainer.java b/src/main/java/fr/xelians/sipg/model/ArchiveUnitContainer.java index 6a0fc14..b28f753 100644 --- a/src/main/java/fr/xelians/sipg/model/ArchiveUnitContainer.java +++ b/src/main/java/fr/xelians/sipg/model/ArchiveUnitContainer.java @@ -27,27 +27,26 @@ */ public interface ArchiveUnitContainer { - /** - * Ajoute une unité d'archive à la liste des unités d'archives. - * - * @param archiveUnit l'unité d'archive à ajouter - */ - void addArchiveUnit(ArchiveUnit archiveUnit); + /** + * Ajoute une unité d'archive à la liste des unités d'archives. + * + * @param archiveUnit l'unité d'archive à ajouter + */ + void addArchiveUnit(ArchiveUnit archiveUnit); - /** - * Supprime une unité d'archive de la liste des unités d'archives. - * - * @param archiveUnit l'unité d'archive à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - boolean removeArchiveUnit(ArchiveUnit archiveUnit); - - /** - * Fournit la liste des unités d'archives. Pour éviter d'exposer les données internes, il est conseillé de réaliser - * une copie défensive de la liste. - * - * @return la liste des unités d'archives - */ - List getArchiveUnits(); + /** + * Supprime une unité d'archive de la liste des unités d'archives. + * + * @param archiveUnit l'unité d'archive à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + boolean removeArchiveUnit(ArchiveUnit archiveUnit); + /** + * Fournit la liste des unités d'archives. Pour éviter d'exposer les données internes, il est + * conseillé de réaliser une copie défensive de la liste. + * + * @return la liste des unités d'archives + */ + List getArchiveUnits(); } diff --git a/src/main/java/fr/xelians/sipg/model/ArchiveUnitRef.java b/src/main/java/fr/xelians/sipg/model/ArchiveUnitRef.java index 8eba9a7..e130175 100644 --- a/src/main/java/fr/xelians/sipg/model/ArchiveUnitRef.java +++ b/src/main/java/fr/xelians/sipg/model/ArchiveUnitRef.java @@ -24,22 +24,19 @@ /** * La classe ArchiveUnitRef représente une référence à une unité d'archive interne. * - *

- * Supporté en SEDA v2.1. - *

+ *

Supporté en SEDA v2.1. * * @author Emmanuel Deviller */ public class ArchiveUnitRef extends RelationRef { - /** - * Instancie la classe. - * - * @param reference l'unité d'archive à référencer - */ - @JsonCreator - public ArchiveUnitRef(@JsonProperty("reference") ArchiveUnit reference) { - super(reference); - } - + /** + * Instancie la classe. + * + * @param reference l'unité d'archive à référencer + */ + @JsonCreator + public ArchiveUnitRef(@JsonProperty("reference") ArchiveUnit reference) { + super(reference); + } } diff --git a/src/main/java/fr/xelians/sipg/model/BinaryDataObject.java b/src/main/java/fr/xelians/sipg/model/BinaryDataObject.java index 801592c..3999eb9 100644 --- a/src/main/java/fr/xelians/sipg/model/BinaryDataObject.java +++ b/src/main/java/fr/xelians/sipg/model/BinaryDataObject.java @@ -19,156 +19,145 @@ package fr.xelians.sipg.model; -import org.apache.commons.lang3.Validate; +import static fr.xelians.sipg.utils.SipUtils.NOT_NULL; import java.nio.file.Path; import java.util.function.Supplier; - -import static fr.xelians.sipg.utils.SipUtils.NOT_NULL; +import org.apache.commons.lang3.Validate; public abstract class BinaryDataObject { - public static final String BINARY_MASTER = "BinaryMaster"; - public static final String DISSEMINATION = "Dissemination"; - public static final String THUMBNAIL = "Thumbnail"; - public static final String TEXT_CONTENT = "TextContent"; - - // @JsonIgnore - protected String xmlId; - - /** - * Le path de l'objet binaire. - */ - protected Path binaryPath; - - protected Supplier binaryPathSupplier; - - /** - * La version de l'objet binaire. - */ - protected String binaryVersion; - - protected FormatIdentification formatIdentification = new FormatIdentification(); - - protected long size; - - /** - * L'algorithme utilisé pour générer l'empreinte (hash) de l'objet binaire. - */ - protected String digestAlgorithm = "SHA-512"; - - /** - * Les informations techniques de l'objet binaire. - */ - protected FileInfo fileInfo = new FileInfo(); - - - /** - * Instancie la classe. - * - * @param qualifier the qualifier - */ - protected BinaryDataObject(String qualifier) { - this.binaryVersion = qualifier; - } - - /** - * Indique le fournisseur du path de l'objet binaire. - * - * @return le fournisseur du path de l'objet binaire - */ - public Supplier getBinaryPathSupplier() { - return binaryPathSupplier; - } - - /** - * Spécifie le fournisseur du path de l'objet binaire. - * - * @param binaryPathSupplier le fournisseur du path de l'objet binaire - */ - public void setBinaryPathSupplier(Supplier binaryPathSupplier) { - this.binaryPathSupplier = binaryPathSupplier; - } - - /** - * Indique le path de l'objet binaire. - * - * @return le path de l'objet binaire - */ - public Path getBinaryPath() { - return binaryPath; - } - - /** - * Spécifie le path de l'objet binaire. - * - * @param binaryPath le path de l'objet binaire - */ - public void setBinaryPath(Path binaryPath) { - this.binaryPath = binaryPath; - } - - /** - * Indique la version de l'objet binaire. - * - * @return la version de l'objet binaire - */ - public String getBinaryVersion() { - return binaryVersion; - } - - /** - * Spécifie la version de l'objet binaire. - * - * @param objectVersion la version de l'objet binaire - */ - public abstract void setBinaryVersion(String objectVersion); - - /** - * Indique l'algorithme utilisé pour générer l'empreinte (hash) de l'objet binaire. - * - * @return l'algorithme utilisé - */ - public String getDigestAlgorithm() { - return digestAlgorithm; - } - - /** - * Indique les informations techniques de l'objet binaire. - * - * @return les informations techniques - */ - public FileInfo getFileInfo() { - return fileInfo; - } - - /** - * Spécifie les informations techniques de l'objet binaire. - * - * @param fileInfo les informations techniques - */ - public void setFileInfo(FileInfo fileInfo) { - Validate.notNull(fileInfo, NOT_NULL, "fileInfo"); - this.fileInfo = fileInfo; - } - - /** - * Indique les informations de format de l'objet binaire. - * - * @return les informations techniques - */ - public FormatIdentification getFormatIdentification() { - return formatIdentification; - } - - /** - * Spécifie les informations de format de l'objet binaire. - * - * @param formatIdentification les informations de format - */ - public void setFormatIdentification(FormatIdentification formatIdentification) { - Validate.notNull(formatIdentification, NOT_NULL, "formatIdentification"); - this.formatIdentification = formatIdentification; - } - + public static final String BINARY_MASTER = "BinaryMaster"; + public static final String DISSEMINATION = "Dissemination"; + public static final String THUMBNAIL = "Thumbnail"; + public static final String TEXT_CONTENT = "TextContent"; + + // @JsonIgnore + protected String xmlId; + + /** Le path de l'objet binaire. */ + protected Path binaryPath; + + protected Supplier binaryPathSupplier; + + /** La version de l'objet binaire. */ + protected String binaryVersion; + + protected FormatIdentification formatIdentification = new FormatIdentification(); + + protected long size; + + /** L'algorithme utilisé pour générer l'empreinte (hash) de l'objet binaire. */ + protected final String digestAlgorithm = "SHA-512"; + + /** Les informations techniques de l'objet binaire. */ + protected FileInfo fileInfo = new FileInfo(); + + /** + * Instancie la classe. + * + * @param qualifier the qualifier + */ + protected BinaryDataObject(String qualifier) { + this.binaryVersion = qualifier; + } + + /** + * Indique le fournisseur du path de l'objet binaire. + * + * @return le fournisseur du path de l'objet binaire + */ + public Supplier getBinaryPathSupplier() { + return binaryPathSupplier; + } + + /** + * Spécifie le fournisseur du path de l'objet binaire. + * + * @param binaryPathSupplier le fournisseur du path de l'objet binaire + */ + public void setBinaryPathSupplier(Supplier binaryPathSupplier) { + this.binaryPathSupplier = binaryPathSupplier; + } + + /** + * Indique le path de l'objet binaire. + * + * @return le path de l'objet binaire + */ + public Path getBinaryPath() { + return binaryPath; + } + + /** + * Spécifie le path de l'objet binaire. + * + * @param binaryPath le path de l'objet binaire + */ + public void setBinaryPath(Path binaryPath) { + this.binaryPath = binaryPath; + } + + /** + * Indique la version de l'objet binaire. + * + * @return la version de l'objet binaire + */ + public String getBinaryVersion() { + return binaryVersion; + } + + /** + * Spécifie la version de l'objet binaire. + * + * @param objectVersion la version de l'objet binaire + */ + public abstract void setBinaryVersion(String objectVersion); + + /** + * Indique l'algorithme utilisé pour générer l'empreinte (hash) de l'objet binaire. + * + * @return l'algorithme utilisé + */ + public String getDigestAlgorithm() { + return digestAlgorithm; + } + + /** + * Indique les informations techniques de l'objet binaire. + * + * @return les informations techniques + */ + public FileInfo getFileInfo() { + return fileInfo; + } + + /** + * Spécifie les informations techniques de l'objet binaire. + * + * @param fileInfo les informations techniques + */ + public void setFileInfo(FileInfo fileInfo) { + Validate.notNull(fileInfo, NOT_NULL, "fileInfo"); + this.fileInfo = fileInfo; + } + + /** + * Indique les informations de format de l'objet binaire. + * + * @return les informations techniques + */ + public FormatIdentification getFormatIdentification() { + return formatIdentification; + } + + /** + * Spécifie les informations de format de l'objet binaire. + * + * @param formatIdentification les informations de format + */ + public void setFormatIdentification(FormatIdentification formatIdentification) { + Validate.notNull(formatIdentification, NOT_NULL, "formatIdentification"); + this.formatIdentification = formatIdentification; + } } diff --git a/src/main/java/fr/xelians/sipg/model/BinaryMasterDataObject.java b/src/main/java/fr/xelians/sipg/model/BinaryMasterDataObject.java index adb07d7..37cac06 100644 --- a/src/main/java/fr/xelians/sipg/model/BinaryMasterDataObject.java +++ b/src/main/java/fr/xelians/sipg/model/BinaryMasterDataObject.java @@ -23,15 +23,17 @@ public class BinaryMasterDataObject extends BinaryDataObject { - public BinaryMasterDataObject() { - super(BINARY_MASTER); - } + public BinaryMasterDataObject() { + super(BINARY_MASTER); + } - @Override - public void setBinaryVersion(String objectVersion) { - if (objectVersion == null || !objectVersion.startsWith(BINARY_MASTER)) { - throw new SipException(String.format("The qualifier of type %s cannot be modified to %s", binaryVersion, objectVersion)); - } - this.binaryVersion = objectVersion; + @Override + public void setBinaryVersion(String objectVersion) { + if (objectVersion == null || !objectVersion.startsWith(BINARY_MASTER)) { + throw new SipException( + String.format( + "The qualifier of type %s cannot be modified to %s", binaryVersion, objectVersion)); } + this.binaryVersion = objectVersion; + } } diff --git a/src/main/java/fr/xelians/sipg/model/ClassificationRules.java b/src/main/java/fr/xelians/sipg/model/ClassificationRules.java index 8069a97..4b84927 100644 --- a/src/main/java/fr/xelians/sipg/model/ClassificationRules.java +++ b/src/main/java/fr/xelians/sipg/model/ClassificationRules.java @@ -21,158 +21,144 @@ import java.time.LocalDate; /** - *

* La classe ClassificationRules représente les règles de classification des archives. - *

* - *

- * En SEDA 2.1, chaque règle a une startDate et un Identifiant de règle de référence pour la durée. Si aucune règle - * n'est spécifiée et que la date actuelle est dans la StarDate, la réponse de restriction est "Aucune restriction". Si - * la date est vide, la réponse de restriction est "Restreint" car il n'y a aucun moyen de calculer la date de fin. Si - * une règle et une date sont précisées, alors la règle est valable (restriction appliquée). - *

+ *

En SEDA 2.1, chaque règle a une startDate et un Identifiant de règle de référence pour la + * durée. Si aucune règle n'est spécifiée et que la date actuelle est dans la StarDate, la réponse + * de restriction est "Aucune restriction". Si la date est vide, la réponse de restriction est + * "Restreint" car il n'y a aucun moyen de calculer la date de fin. Si une règle et une date sont + * précisées, alors la règle est valable (restriction appliquée). * - *

- * Supporté en SEDA v2.1. - *

+ *

Supporté en SEDA v2.1. * * @author Emmanuel Deviller */ public class ClassificationRules extends AbstractSimpleRules { - /** - * L'audience qui permet de gérer les questions de "diffusion restreinte", de "spécial France" et de "Confidentiel - * Industrie". - */ - protected String classificationAudience; - - /** - * La référence au niveau de classification. - */ - protected String classificationLevel; - - /** - * Le propriétaire de la classification (service émetteur au sens de l’IGI 1300). - */ - protected String classificationOwner; - - /** - * La date de réévaluation de la classification. - */ - protected LocalDate classificationReassessingDate; - - /** - * Valeur indiquant si une autorisation humaine est nécessaire pour réévaluer la classification. - */ - protected Boolean needReassessingAuthorization; - - /** - * Instancie la classe. - */ - public ClassificationRules() { - super(); - } - - /** - * Instancie la classe avec une règle spécifiée par les paramètres. - * - * @param name la référence de la règle classification - * @param startDate date de départ de calcul de la règle de classification - */ - public ClassificationRules(String name, LocalDate startDate) { - super(name, startDate); - } - - /** - * Indique l'audience qui permet de gérer les questions de "diffusion restreinte", de "spécial France" et de - * "Confidentiel Industrie". - * - * @return l'audience - */ - public String getClassificationAudience() { - return classificationAudience; - } - - /** - * Spécifie l'audience qui permet de gérer les questions de "diffusion restreinte", de "spécial France" et de - * "Confidentiel Industrie". - * - * @param classificationAudience l'audience - */ - public void setClassificationAudience(String classificationAudience) { - this.classificationAudience = classificationAudience; - } - - /** - * Indique la référence au niveau de classification. - * - * @return classificationLevel le niveau de classification - */ - public String getClassificationLevel() { - return classificationLevel; - } - - /** - * Spécifie la référence au niveau de classification. - * - * @param classificationLevel le niveau de classification - */ - public void setClassificationLevel(String classificationLevel) { - this.classificationLevel = classificationLevel; - } - - /** - * Indique le propriétaire de la classification. Service émetteur au sens de l’IGI 1300. - * - * @return le propriétaire de la classification - */ - public String getClassificationOwner() { - return classificationOwner; - } - - /** - * Spécifie le propriétaire de la classification. Service émetteur au sens de l’IGI 1300. - * - * @param classificationOwner le propriétaire de la classification - */ - public void setClassificationOwner(String classificationOwner) { - this.classificationOwner = classificationOwner; - } - - /** - * Indique la date de réévaluation de la classification. - * - * @return la date de réévaluation de la classification - */ - public LocalDate getClassificationReassessingDate() { - return classificationReassessingDate; - } - - /** - * Spécifie la date de réévaluation de la classification. - * - * @param classificationReassessingDate la date de réévaluation de la classification - */ - public void setClassificationReassessingDate(LocalDate classificationReassessingDate) { - this.classificationReassessingDate = classificationReassessingDate; - } - - /** - * Indique si une autorisation humaine est nécessaire pour réévaluer la classification. - * - * @return l'autorisation de réévaluation - */ - public Boolean getNeedReassessingAuthorization() { - return needReassessingAuthorization; - } - - /** - * Spécifie si une autorisation humaine est nécessaire pour réévaluer la classification. - * - * @param needReassessingAuthorization l'autorisation de réévaluation - */ - public void setNeedReassessingAuthorization(Boolean needReassessingAuthorization) { - this.needReassessingAuthorization = needReassessingAuthorization; - } - + /** + * L'audience qui permet de gérer les questions de "diffusion restreinte", de "spécial France" et + * de "Confidentiel Industrie". + */ + protected String classificationAudience; + + /** La référence au niveau de classification. */ + protected String classificationLevel; + + /** Le propriétaire de la classification (service émetteur au sens de l’IGI 1300). */ + protected String classificationOwner; + + /** La date de réévaluation de la classification. */ + protected LocalDate classificationReassessingDate; + + /** + * Valeur indiquant si une autorisation humaine est nécessaire pour réévaluer la classification. + */ + protected Boolean needReassessingAuthorization; + + /** Instancie la classe. */ + public ClassificationRules() { + super(); + } + + /** + * Instancie la classe avec une règle spécifiée par les paramètres. + * + * @param name la référence de la règle classification + * @param startDate date de départ de calcul de la règle de classification + */ + public ClassificationRules(String name, LocalDate startDate) { + super(name, startDate); + } + + /** + * Indique l'audience qui permet de gérer les questions de "diffusion restreinte", de "spécial + * France" et de "Confidentiel Industrie". + * + * @return l'audience + */ + public String getClassificationAudience() { + return classificationAudience; + } + + /** + * Spécifie l'audience qui permet de gérer les questions de "diffusion restreinte", de "spécial + * France" et de "Confidentiel Industrie". + * + * @param classificationAudience l'audience + */ + public void setClassificationAudience(String classificationAudience) { + this.classificationAudience = classificationAudience; + } + + /** + * Indique la référence au niveau de classification. + * + * @return classificationLevel le niveau de classification + */ + public String getClassificationLevel() { + return classificationLevel; + } + + /** + * Spécifie la référence au niveau de classification. + * + * @param classificationLevel le niveau de classification + */ + public void setClassificationLevel(String classificationLevel) { + this.classificationLevel = classificationLevel; + } + + /** + * Indique le propriétaire de la classification. Service émetteur au sens de l’IGI 1300. + * + * @return le propriétaire de la classification + */ + public String getClassificationOwner() { + return classificationOwner; + } + + /** + * Spécifie le propriétaire de la classification. Service émetteur au sens de l’IGI 1300. + * + * @param classificationOwner le propriétaire de la classification + */ + public void setClassificationOwner(String classificationOwner) { + this.classificationOwner = classificationOwner; + } + + /** + * Indique la date de réévaluation de la classification. + * + * @return la date de réévaluation de la classification + */ + public LocalDate getClassificationReassessingDate() { + return classificationReassessingDate; + } + + /** + * Spécifie la date de réévaluation de la classification. + * + * @param classificationReassessingDate la date de réévaluation de la classification + */ + public void setClassificationReassessingDate(LocalDate classificationReassessingDate) { + this.classificationReassessingDate = classificationReassessingDate; + } + + /** + * Indique si une autorisation humaine est nécessaire pour réévaluer la classification. + * + * @return l'autorisation de réévaluation + */ + public Boolean getNeedReassessingAuthorization() { + return needReassessingAuthorization; + } + + /** + * Spécifie si une autorisation humaine est nécessaire pour réévaluer la classification. + * + * @param needReassessingAuthorization l'autorisation de réévaluation + */ + public void setNeedReassessingAuthorization(Boolean needReassessingAuthorization) { + this.needReassessingAuthorization = needReassessingAuthorization; + } } diff --git a/src/main/java/fr/xelians/sipg/model/CodeListVersions.java b/src/main/java/fr/xelians/sipg/model/CodeListVersions.java index d7f5ce1..e72bd34 100644 --- a/src/main/java/fr/xelians/sipg/model/CodeListVersions.java +++ b/src/main/java/fr/xelians/sipg/model/CodeListVersions.java @@ -23,588 +23,590 @@ /** * La classe CodeListVersions représente les versions des listes de codes utilisées dans l'archive. * - *

- * Supporté en SEDA v2.1 et en FNTC v4. - *

+ *

Supporté en SEDA v2.1 et en FNTC v4. * * @author Emmanuel Deviller */ public class CodeListVersions { - /** - * L'identifiant des versions des listes de codes. - */ - protected String id; - - /** - * La version de la liste de codes d'autorisation. - */ - protected String authorizationReasonCodeListVersion; - - /** - * La version de la liste des codes des encodages de fichier - */ - protected String fileEncodingCodeListVersion; - - /** - * La version de la liste de code d'identification du format. - */ - protected String fileFormatCodeListVersion; - - /** - * La version de la liste de l'algorithme de hachage utilisé dans le message. - */ - protected String messageDigestAlgorithmCodeListVersion; - - /** - * La version de liste des relations. - */ - protected String relationshipCodeListVersion; - - /** - * La version de la liste des codes de réponses à utiliser. - */ - protected String replyCodeListVersion; - - /** - * La version de la liste des statuts des signatures. - */ - protected String signatureStatusCodeListVersion; - - /** - * La version de la liste de code du type Mime. - */ - protected String mimeTypeCodeListVersion; - - /** - * La version de la liste de code d'encodage du fichier. - */ - protected String encodingCodeListVersion; - - /** - * La version de la liste de code de l'algorithme de compression. - */ - protected String compressionAlgorithmCodeListVersion; - - /** - * La version de la liste de codes correspondant aux diverses versions d'un objet-données au sein d’un groupe - * d'objets-données (ex. original papier, conservation, diffusion, vignette, txt). - */ - protected String dataObjectVersionCodeListVersion; - - /** - * La version de la liste des codes pour les règles de durée d'utilité courante. - */ - protected String storageRuleCodeListVersion; - - /** - * La version de la liste des codes pour les règles de durée d'utilité administrative.. - */ - protected String appraisalRuleCodeListVersion; - - /** - * La version de la liste des codes pour les règles de communicabilité. - */ - protected String accessRuleCodeListVersion; - - /** - * La version de la liste des codes pour les règles de diffusion. - */ - protected String disseminationRuleCodeListVersion; - - /** - * La version de liste des codes pour les règles de réutilisation. - */ - protected String reuseRuleCodeListVersion; - - /** - * La version de la liste des codes pour les règles de classification. - */ - protected String classificationRuleCodeListVersion; - - /** - * La version de la liste de codes des modalités d'entrée. - */ - protected String acquisitionInformationCodeListVersion; - - /** - * Instancie l'objet. - */ - public CodeListVersions() { - // Nothing to do here - } - - /** - * Indique l'identifiant des versions des listes de codes. - * - * @return l 'identifiant - */ - public String getId() { - return id; - } - - /** - * Spécifie l'identifiant des versions des listes de codes. - * - * @param id l'identifiant - */ - public void setId(String id) { - this.id = id; - } - - /** - * Indique la version de la liste de codes d'autorisation. - * - * @return la version de la liste de codes d'autorisation - */ - public String getAuthorizationReasonCodeListVersion() { - return authorizationReasonCodeListVersion; - } - - /** - * Spécifie la version de la liste de codes d'autorisation. - * - * @param authorizationReasonCodeListVersion la version de la liste de codes d'autorisation - */ - public void setAuthorizationReasonCodeListVersion(String authorizationReasonCodeListVersion) { - this.authorizationReasonCodeListVersion = authorizationReasonCodeListVersion; - } - - /** - * Indique la version de la liste des codes des encodages de fichier. - * - * @return la version de la liste des codes des encodages de fichier. - */ - public String getFileEncodingCodeListVersion() { - return fileEncodingCodeListVersion; - } - - /** - * Spécifie la version de la liste des codes des encodages de fichier. - * - * @param fileEncodingCodeListVersion la version de la liste des codes des encodages de fichier - */ - public void setFileEncodingCodeListVersion(String fileEncodingCodeListVersion) { - this.fileEncodingCodeListVersion = fileEncodingCodeListVersion; - } - - /** - * Indique La version de la liste de code d'identification du format. - * - * @return La version de la liste de code d'identification du format - */ - public String getFileFormatCodeListVersion() { - return fileFormatCodeListVersion; - } - - /** - * Spécifie la version de la liste de code d'identification du format. - * - * @param fileFormatCodeListVersion la version de la liste de code d'identification du format - */ - public void setFileFormatCodeListVersion(String fileFormatCodeListVersion) { - this.fileFormatCodeListVersion = fileFormatCodeListVersion; - } - - /** - * Indique la version de la liste de l'algorithme de hachage utilisé dans le message. - * - * @return la version de la liste de l'algorithme de hachage utilisé dans le message - */ - public String getMessageDigestAlgorithmCodeListVersion() { - return messageDigestAlgorithmCodeListVersion; - } - - /** - * Spécifie la version de la liste de l'algorithme de hachage utilisé dans le message. - * - * @param messageDigestAlgorithmCodeListVersion la version de la liste de l'algorithme de hachage utilisé dans le - * message - */ - public void setMessageDigestAlgorithmCodeListVersion(String messageDigestAlgorithmCodeListVersion) { - this.messageDigestAlgorithmCodeListVersion = messageDigestAlgorithmCodeListVersion; - } - - /** - * Indique la version de liste des relations. - * - * @return la version de liste des relations - */ - public String getRelationshipCodeListVersion() { - return relationshipCodeListVersion; - } - - /** - * Spécifie la version de liste des relations. - * - * @param relationshipCodeListVersion la version de liste des relations - */ - public void setRelationshipCodeListVersion(String relationshipCodeListVersion) { - this.relationshipCodeListVersion = relationshipCodeListVersion; - } - - /** - * Indique la version de la liste des codes de réponses à utiliser. - * - * @return la version de la liste des codes de réponses à utiliser - */ - public String getReplyCodeListVersion() { - return replyCodeListVersion; - } - - /** - * Spécifie la version de la liste des codes de réponses à utiliser. - * - * @param replyCodeListVersion la version de la liste des codes de réponses à utiliser - */ - public void setReplyCodeListVersion(String replyCodeListVersion) { - this.replyCodeListVersion = replyCodeListVersion; - } - - /** - * Indique la version de la liste des statuts des signatures. - * - * @return la version de la liste des statuts des signatures - */ - public String getSignatureStatusCodeListVersion() { - return signatureStatusCodeListVersion; - } - - /** - * Spécifie la version de la liste des statuts des signatures. - * - * @param signatureStatusCodeListVersion la version de la liste des statuts des signatures - */ - public void setSignatureStatusCodeListVersion(String signatureStatusCodeListVersion) { - this.signatureStatusCodeListVersion = signatureStatusCodeListVersion; - } - - /** - * Indique la version de la liste de code du type Mime. - * - * @return la version de la liste de code du type Mime - */ - public String getMimeTypeCodeListVersion() { - return mimeTypeCodeListVersion; - } - - /** - * Spécifie la version de la liste de code du type Mime. - * - * @param mimeTypeCodeListVersion la version de la liste de code du type Mime - */ - public void setMimeTypeCodeListVersion(String mimeTypeCodeListVersion) { - this.mimeTypeCodeListVersion = mimeTypeCodeListVersion; - } - - /** - * Indique la version de la liste de code d'encodage du fichier. - * - * @return la version de la liste de code d'encodage du fichier - */ - public String getEncodingCodeListVersion() { - return encodingCodeListVersion; - } - - /** - * Spécifie la version de la liste de code d'encodage du fichier. - * - * @param encodingCodeListVersion la version de la liste de code d'encodage du fichier - */ - public void setEncodingCodeListVersion(String encodingCodeListVersion) { - this.encodingCodeListVersion = encodingCodeListVersion; - } - - /** - * Indique la version de la liste de code de l'algorithme de compression. - * - * @return la version de la liste de code de l'algorithme de compression - */ - public String getCompressionAlgorithmCodeListVersion() { - return compressionAlgorithmCodeListVersion; - } - - /** - * Spécifie la version de la liste de code de l'algorithme de compression. - * - * @param compressionAlgorithmCodeListVersion la version de la liste de code de l'algorithme de compression - */ - public void setCompressionAlgorithmCodeListVersion(String compressionAlgorithmCodeListVersion) { - this.compressionAlgorithmCodeListVersion = compressionAlgorithmCodeListVersion; - } - - /** - * Indique la version de la liste de codes correspondant aux versions d'un objet-données au sein d’un groupe - * d'objets-données (ex. original papier, conservation, diffusion, vignette, txt). - * - * @return la liste de codes correspondant aux versions - */ - public String getDataObjectVersionCodeListVersion() { - return dataObjectVersionCodeListVersion; - } - - /** - * Spécifie la version de la liste de codes correspondant aux versions d'un objet-données au sein d’un groupe - * d'objets-données (ex. original papier, conservation, diffusion, vignette, txt). - * - * @param dataObjectVersionCodeListVersion la liste de codes correspondant aux versions - */ - public void setDataObjectVersionCodeListVersion(String dataObjectVersionCodeListVersion) { - this.dataObjectVersionCodeListVersion = dataObjectVersionCodeListVersion; - } - - /** - * Indique la version de la liste des codes pour les règles de durée d'utilité courante. - * - * @return la version de la liste des codes pour les règles de durée d'utilité courante - */ - public String getStorageRuleCodeListVersion() { - return storageRuleCodeListVersion; - } - - /** - * Spécifie la version de la liste des codes pour les règles de durée d'utilité courante. - * - * @param storageRuleCodeListVersion la version de la liste des codes pour les règles de durée d'utilité courante - */ - public void setStorageRuleCodeListVersion(String storageRuleCodeListVersion) { - this.storageRuleCodeListVersion = storageRuleCodeListVersion; - } - - /** - * Indique la version de la liste des codes pour les règles de durée d'utilité administrative. - * - * @return la version de la liste des codes pour les règles de durée d'utilité administrative - */ - public String getAppraisalRuleCodeListVersion() { - return appraisalRuleCodeListVersion; - } - - /** - * Spécifie la version de la liste des codes pour les règles de durée d'utilité administrative. - * - * @param appraisalRuleCodeListVersion la version de la liste des codes pour les règles de durée d'utilité - * administrative - */ - public void setAppraisalRuleCodeListVersion(String appraisalRuleCodeListVersion) { - this.appraisalRuleCodeListVersion = appraisalRuleCodeListVersion; - } - - /** - * Indique la version de la liste des codes pour les règles de communicabilité. - * - * @return la version de la liste des codes pour les règles de communicabilité - */ - public String getAccessRuleCodeListVersion() { - return accessRuleCodeListVersion; - } - - /** - * Spécifie la version de la liste des codes pour les règles de communicabilité. - * - * @param accessRuleCodeListVersion la version de la liste des codes pour les règles de communicabilité - */ - public void setAccessRuleCodeListVersion(String accessRuleCodeListVersion) { - this.accessRuleCodeListVersion = accessRuleCodeListVersion; - } - - /** - * Indique la version de la liste des codes pour les règles de diffusion. - * - * @return la version de la liste des codes pour les règles de diffusion. - */ - public String getDisseminationRuleCodeListVersion() { - return disseminationRuleCodeListVersion; - } - - /** - * Spécifie la version de la liste des codes pour les règles de diffusion. - * - * @param disseminationRuleCodeListVersion la version de la liste des codes pour les règles de diffusion - */ - public void setDisseminationRuleCodeListVersion(String disseminationRuleCodeListVersion) { - this.disseminationRuleCodeListVersion = disseminationRuleCodeListVersion; - } - - /** - * Indique la version de liste des codes pour les règles de réutilisation. - * - * @return la version de liste des codes pour les règles de réutilisation - */ - public String getReuseRuleCodeListVersion() { - return reuseRuleCodeListVersion; - } - - /** - * Spécifie la version de liste des codes pour les règles de réutilisation. - * - * @param reuseRuleCodeListVersion la version de liste des codes pour les règles de réutilisation - */ - public void setReuseRuleCodeListVersion(String reuseRuleCodeListVersion) { - this.reuseRuleCodeListVersion = reuseRuleCodeListVersion; - } - - /** - * Indique la version de la liste des codes pour les règles de classification. - * - * @return la version de la liste des codes pour les règles de classification - */ - public String getClassificationRuleCodeListVersion() { - return classificationRuleCodeListVersion; - } - - /** - * Spécifie la version de la liste des codes pour les règles de classification. - * - * @param classificationRuleCodeListVersion la version de la liste des codes pour les règles de classification - */ - public void setClassificationRuleCodeListVersion(String classificationRuleCodeListVersion) { - this.classificationRuleCodeListVersion = classificationRuleCodeListVersion; - } - - /** - * Indique la version de la liste de codes des modalités d'entrée. - * - * @return la version de la liste de codes des modalités d'entrée - */ - public String getAcquisitionInformationCodeListVersion() { - return acquisitionInformationCodeListVersion; - } - - /** - * Spécifie la version de la liste de codes des modalités d'entrée. - * - * @param acquisitionInformationCodeListVersion la version de la liste de codes des modalités d'entrée - */ - public void setAcquisitionInformationCodeListVersion(String acquisitionInformationCodeListVersion) { - this.acquisitionInformationCodeListVersion = acquisitionInformationCodeListVersion; - } - - /** - * Indique la valeur du hash code de l'objet. - * - * @return le hash code de l'objet - */ - @Override - public int hashCode() { - int hash = 7; - hash = 43 * hash + Objects.hashCode(this.id); - hash = 43 * hash + Objects.hashCode(this.authorizationReasonCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.fileEncodingCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.fileFormatCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.messageDigestAlgorithmCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.relationshipCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.replyCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.signatureStatusCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.mimeTypeCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.encodingCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.compressionAlgorithmCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.dataObjectVersionCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.storageRuleCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.appraisalRuleCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.accessRuleCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.disseminationRuleCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.reuseRuleCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.classificationRuleCodeListVersion); - hash = 43 * hash + Objects.hashCode(this.acquisitionInformationCodeListVersion); - return hash; - } - - /** - * Indique si un autre objet est égal à celui-ci. - * - * @param obj l'objet à vérifier - * @return true si l'objet est identique, false sinon - */ - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (getClass() != obj.getClass()) { - return false; - } - final CodeListVersions other = (CodeListVersions) obj; - if (!Objects.equals(this.id, other.id)) { - return false; - } - if (!Objects.equals(this.authorizationReasonCodeListVersion, other.authorizationReasonCodeListVersion)) { - return false; - } - if (!Objects.equals(this.fileEncodingCodeListVersion, other.fileEncodingCodeListVersion)) { - return false; - } - if (!Objects.equals(this.fileFormatCodeListVersion, other.fileFormatCodeListVersion)) { - return false; - } - if (!Objects.equals(this.messageDigestAlgorithmCodeListVersion, other.messageDigestAlgorithmCodeListVersion)) { - return false; - } - if (!Objects.equals(this.relationshipCodeListVersion, other.relationshipCodeListVersion)) { - return false; - } - if (!Objects.equals(this.replyCodeListVersion, other.replyCodeListVersion)) { - return false; - } - if (!Objects.equals(this.signatureStatusCodeListVersion, other.signatureStatusCodeListVersion)) { - return false; - } - if (!Objects.equals(this.mimeTypeCodeListVersion, other.mimeTypeCodeListVersion)) { - return false; - } - if (!Objects.equals(this.encodingCodeListVersion, other.encodingCodeListVersion)) { - return false; - } - if (!Objects.equals(this.compressionAlgorithmCodeListVersion, other.compressionAlgorithmCodeListVersion)) { - return false; - } - if (!Objects.equals(this.dataObjectVersionCodeListVersion, other.dataObjectVersionCodeListVersion)) { - return false; - } - if (!Objects.equals(this.storageRuleCodeListVersion, other.storageRuleCodeListVersion)) { - return false; - } - if (!Objects.equals(this.appraisalRuleCodeListVersion, other.appraisalRuleCodeListVersion)) { - return false; - } - if (!Objects.equals(this.accessRuleCodeListVersion, other.accessRuleCodeListVersion)) { - return false; - } - if (!Objects.equals(this.disseminationRuleCodeListVersion, other.disseminationRuleCodeListVersion)) { - return false; - } - if (!Objects.equals(this.reuseRuleCodeListVersion, other.reuseRuleCodeListVersion)) { - return false; - } - if (!Objects.equals(this.classificationRuleCodeListVersion, other.classificationRuleCodeListVersion)) { - return false; - } - return Objects.equals(this.acquisitionInformationCodeListVersion, other.acquisitionInformationCodeListVersion); - } - - /** - * Indique la représentation en tant que String de l'objet. - * - * @return la représentation en tant que String - */ - @Override - public String toString() { - return "CodeListVersions{" + "id=" + id + ", authorizationReasonCodeListVersion=" - + authorizationReasonCodeListVersion + ", fileEncodingCodeListVersion=" + fileEncodingCodeListVersion - + ", fileFormatCodeListVersion=" + fileFormatCodeListVersion + ", messageDigestAlgorithmCodeListVersion=" - + messageDigestAlgorithmCodeListVersion + ", relationshipCodeListVersion=" + relationshipCodeListVersion - + ", replyCodeListVersion=" + replyCodeListVersion + ", signatureStatusCodeListVersion=" - + signatureStatusCodeListVersion + ", mimeTypeCodeListVersion=" + mimeTypeCodeListVersion - + ", encodingCodeListVersion=" + encodingCodeListVersion + ", compressionAlgorithmCodeListVersion=" - + compressionAlgorithmCodeListVersion + ", dataObjectVersionCodeListVersion=" + dataObjectVersionCodeListVersion - + ", storageRuleCodeListVersion=" + storageRuleCodeListVersion + ", appraisalRuleCodeListVersion=" - + appraisalRuleCodeListVersion + ", accessRuleCodeListVersion=" + accessRuleCodeListVersion - + ", disseminationRuleCodeListVersion=" + disseminationRuleCodeListVersion + ", reuseRuleCodeListVersion=" - + reuseRuleCodeListVersion + ", classificationRuleCodeListVersion=" + classificationRuleCodeListVersion - + ", acquisitionInformationCodeListVersion=" + acquisitionInformationCodeListVersion + '}'; - } - + /** L'identifiant des versions des listes de codes. */ + protected String id; + + /** La version de la liste de codes d'autorisation. */ + protected String authorizationReasonCodeListVersion; + + /** La version de la liste des codes des encodages de fichier */ + protected String fileEncodingCodeListVersion; + + /** La version de la liste de code d'identification du format. */ + protected String fileFormatCodeListVersion; + + /** La version de la liste de l'algorithme de hachage utilisé dans le message. */ + protected String messageDigestAlgorithmCodeListVersion; + + /** La version de liste des relations. */ + protected String relationshipCodeListVersion; + + /** La version de la liste des codes de réponses à utiliser. */ + protected String replyCodeListVersion; + + /** La version de la liste des statuts des signatures. */ + protected String signatureStatusCodeListVersion; + + /** La version de la liste de code du type Mime. */ + protected String mimeTypeCodeListVersion; + + /** La version de la liste de code d'encodage du fichier. */ + protected String encodingCodeListVersion; + + /** La version de la liste de code de l'algorithme de compression. */ + protected String compressionAlgorithmCodeListVersion; + + /** + * La version de la liste de codes correspondant aux diverses versions d'un objet-données au sein + * d’un groupe d'objets-données (ex. original papier, conservation, diffusion, vignette, txt). + */ + protected String dataObjectVersionCodeListVersion; + + /** La version de la liste des codes pour les règles de durée d'utilité courante. */ + protected String storageRuleCodeListVersion; + + /** La version de la liste des codes pour les règles de durée d'utilité administrative. */ + protected String appraisalRuleCodeListVersion; + + /** La version de la liste des codes pour les règles de communicabilité. */ + protected String accessRuleCodeListVersion; + + /** La version de la liste des codes pour les règles de diffusion. */ + protected String disseminationRuleCodeListVersion; + + /** La version de liste des codes pour les règles de réutilisation. */ + protected String reuseRuleCodeListVersion; + + /** La version de la liste des codes pour les règles de classification. */ + protected String classificationRuleCodeListVersion; + + /** La version de la liste de codes des modalités d'entrée. */ + protected String acquisitionInformationCodeListVersion; + + /** Instancie l'objet. */ + public CodeListVersions() { + // Nothing to do here + } + + /** + * Indique l'identifiant des versions des listes de codes. + * + * @return l 'identifiant + */ + public String getId() { + return id; + } + + /** + * Spécifie l'identifiant des versions des listes de codes. + * + * @param id l'identifiant + */ + public void setId(String id) { + this.id = id; + } + + /** + * Indique la version de la liste de codes d'autorisation. + * + * @return la version de la liste de codes d'autorisation + */ + public String getAuthorizationReasonCodeListVersion() { + return authorizationReasonCodeListVersion; + } + + /** + * Spécifie la version de la liste de codes d'autorisation. + * + * @param authorizationReasonCodeListVersion la version de la liste de codes d'autorisation + */ + public void setAuthorizationReasonCodeListVersion(String authorizationReasonCodeListVersion) { + this.authorizationReasonCodeListVersion = authorizationReasonCodeListVersion; + } + + /** + * Indique la version de la liste des codes des encodages de fichier. + * + * @return la version de la liste des codes des encodages de fichier. + */ + public String getFileEncodingCodeListVersion() { + return fileEncodingCodeListVersion; + } + + /** + * Spécifie la version de la liste des codes des encodages de fichier. + * + * @param fileEncodingCodeListVersion la version de la liste des codes des encodages de fichier + */ + public void setFileEncodingCodeListVersion(String fileEncodingCodeListVersion) { + this.fileEncodingCodeListVersion = fileEncodingCodeListVersion; + } + + /** + * Indique La version de la liste de code d'identification du format. + * + * @return La version de la liste de code d'identification du format + */ + public String getFileFormatCodeListVersion() { + return fileFormatCodeListVersion; + } + + /** + * Spécifie la version de la liste de code d'identification du format. + * + * @param fileFormatCodeListVersion la version de la liste de code d'identification du format + */ + public void setFileFormatCodeListVersion(String fileFormatCodeListVersion) { + this.fileFormatCodeListVersion = fileFormatCodeListVersion; + } + + /** + * Indique la version de la liste de l'algorithme de hachage utilisé dans le message. + * + * @return la version de la liste de l'algorithme de hachage utilisé dans le message + */ + public String getMessageDigestAlgorithmCodeListVersion() { + return messageDigestAlgorithmCodeListVersion; + } + + /** + * Spécifie la version de la liste de l'algorithme de hachage utilisé dans le message. + * + * @param messageDigestAlgorithmCodeListVersion la version de la liste de l'algorithme de hachage + * utilisé dans le message + */ + public void setMessageDigestAlgorithmCodeListVersion( + String messageDigestAlgorithmCodeListVersion) { + this.messageDigestAlgorithmCodeListVersion = messageDigestAlgorithmCodeListVersion; + } + + /** + * Indique la version de liste des relations. + * + * @return la version de liste des relations + */ + public String getRelationshipCodeListVersion() { + return relationshipCodeListVersion; + } + + /** + * Spécifie la version de liste des relations. + * + * @param relationshipCodeListVersion la version de liste des relations + */ + public void setRelationshipCodeListVersion(String relationshipCodeListVersion) { + this.relationshipCodeListVersion = relationshipCodeListVersion; + } + + /** + * Indique la version de la liste des codes de réponses à utiliser. + * + * @return la version de la liste des codes de réponses à utiliser + */ + public String getReplyCodeListVersion() { + return replyCodeListVersion; + } + + /** + * Spécifie la version de la liste des codes de réponses à utiliser. + * + * @param replyCodeListVersion la version de la liste des codes de réponses à utiliser + */ + public void setReplyCodeListVersion(String replyCodeListVersion) { + this.replyCodeListVersion = replyCodeListVersion; + } + + /** + * Indique la version de la liste des statuts des signatures. + * + * @return la version de la liste des statuts des signatures + */ + public String getSignatureStatusCodeListVersion() { + return signatureStatusCodeListVersion; + } + + /** + * Spécifie la version de la liste des statuts des signatures. + * + * @param signatureStatusCodeListVersion la version de la liste des statuts des signatures + */ + public void setSignatureStatusCodeListVersion(String signatureStatusCodeListVersion) { + this.signatureStatusCodeListVersion = signatureStatusCodeListVersion; + } + + /** + * Indique la version de la liste de code du type Mime. + * + * @return la version de la liste de code du type Mime + */ + public String getMimeTypeCodeListVersion() { + return mimeTypeCodeListVersion; + } + + /** + * Spécifie la version de la liste de code du type Mime. + * + * @param mimeTypeCodeListVersion la version de la liste de code du type Mime + */ + public void setMimeTypeCodeListVersion(String mimeTypeCodeListVersion) { + this.mimeTypeCodeListVersion = mimeTypeCodeListVersion; + } + + /** + * Indique la version de la liste de code d'encodage du fichier. + * + * @return la version de la liste de code d'encodage du fichier + */ + public String getEncodingCodeListVersion() { + return encodingCodeListVersion; + } + + /** + * Spécifie la version de la liste de code d'encodage du fichier. + * + * @param encodingCodeListVersion la version de la liste de code d'encodage du fichier + */ + public void setEncodingCodeListVersion(String encodingCodeListVersion) { + this.encodingCodeListVersion = encodingCodeListVersion; + } + + /** + * Indique la version de la liste de code de l'algorithme de compression. + * + * @return la version de la liste de code de l'algorithme de compression + */ + public String getCompressionAlgorithmCodeListVersion() { + return compressionAlgorithmCodeListVersion; + } + + /** + * Spécifie la version de la liste de code de l'algorithme de compression. + * + * @param compressionAlgorithmCodeListVersion la version de la liste de code de l'algorithme de + * compression + */ + public void setCompressionAlgorithmCodeListVersion(String compressionAlgorithmCodeListVersion) { + this.compressionAlgorithmCodeListVersion = compressionAlgorithmCodeListVersion; + } + + /** + * Indique la version de la liste de codes correspondant aux versions d'un objet-données au sein + * d’un groupe d'objets-données (ex. original papier, conservation, diffusion, vignette, txt). + * + * @return la liste de codes correspondant aux versions + */ + public String getDataObjectVersionCodeListVersion() { + return dataObjectVersionCodeListVersion; + } + + /** + * Spécifie la version de la liste de codes correspondant aux versions d'un objet-données au sein + * d’un groupe d'objets-données (ex. original papier, conservation, diffusion, vignette, txt). + * + * @param dataObjectVersionCodeListVersion la liste de codes correspondant aux versions + */ + public void setDataObjectVersionCodeListVersion(String dataObjectVersionCodeListVersion) { + this.dataObjectVersionCodeListVersion = dataObjectVersionCodeListVersion; + } + + /** + * Indique la version de la liste des codes pour les règles de durée d'utilité courante. + * + * @return la version de la liste des codes pour les règles de durée d'utilité courante + */ + public String getStorageRuleCodeListVersion() { + return storageRuleCodeListVersion; + } + + /** + * Spécifie la version de la liste des codes pour les règles de durée d'utilité courante. + * + * @param storageRuleCodeListVersion la version de la liste des codes pour les règles de durée + * d'utilité courante + */ + public void setStorageRuleCodeListVersion(String storageRuleCodeListVersion) { + this.storageRuleCodeListVersion = storageRuleCodeListVersion; + } + + /** + * Indique la version de la liste des codes pour les règles de durée d'utilité administrative. + * + * @return la version de la liste des codes pour les règles de durée d'utilité administrative + */ + public String getAppraisalRuleCodeListVersion() { + return appraisalRuleCodeListVersion; + } + + /** + * Spécifie la version de la liste des codes pour les règles de durée d'utilité administrative. + * + * @param appraisalRuleCodeListVersion la version de la liste des codes pour les règles de durée + * d'utilité administrative + */ + public void setAppraisalRuleCodeListVersion(String appraisalRuleCodeListVersion) { + this.appraisalRuleCodeListVersion = appraisalRuleCodeListVersion; + } + + /** + * Indique la version de la liste des codes pour les règles de communicabilité. + * + * @return la version de la liste des codes pour les règles de communicabilité + */ + public String getAccessRuleCodeListVersion() { + return accessRuleCodeListVersion; + } + + /** + * Spécifie la version de la liste des codes pour les règles de communicabilité. + * + * @param accessRuleCodeListVersion la version de la liste des codes pour les règles de + * communicabilité + */ + public void setAccessRuleCodeListVersion(String accessRuleCodeListVersion) { + this.accessRuleCodeListVersion = accessRuleCodeListVersion; + } + + /** + * Indique la version de la liste des codes pour les règles de diffusion. + * + * @return la version de la liste des codes pour les règles de diffusion. + */ + public String getDisseminationRuleCodeListVersion() { + return disseminationRuleCodeListVersion; + } + + /** + * Spécifie la version de la liste des codes pour les règles de diffusion. + * + * @param disseminationRuleCodeListVersion la version de la liste des codes pour les règles de + * diffusion + */ + public void setDisseminationRuleCodeListVersion(String disseminationRuleCodeListVersion) { + this.disseminationRuleCodeListVersion = disseminationRuleCodeListVersion; + } + + /** + * Indique la version de liste des codes pour les règles de réutilisation. + * + * @return la version de liste des codes pour les règles de réutilisation + */ + public String getReuseRuleCodeListVersion() { + return reuseRuleCodeListVersion; + } + + /** + * Spécifie la version de liste des codes pour les règles de réutilisation. + * + * @param reuseRuleCodeListVersion la version de liste des codes pour les règles de réutilisation + */ + public void setReuseRuleCodeListVersion(String reuseRuleCodeListVersion) { + this.reuseRuleCodeListVersion = reuseRuleCodeListVersion; + } + + /** + * Indique la version de la liste des codes pour les règles de classification. + * + * @return la version de la liste des codes pour les règles de classification + */ + public String getClassificationRuleCodeListVersion() { + return classificationRuleCodeListVersion; + } + + /** + * Spécifie la version de la liste des codes pour les règles de classification. + * + * @param classificationRuleCodeListVersion la version de la liste des codes pour les règles de + * classification + */ + public void setClassificationRuleCodeListVersion(String classificationRuleCodeListVersion) { + this.classificationRuleCodeListVersion = classificationRuleCodeListVersion; + } + + /** + * Indique la version de la liste de codes des modalités d'entrée. + * + * @return la version de la liste de codes des modalités d'entrée + */ + public String getAcquisitionInformationCodeListVersion() { + return acquisitionInformationCodeListVersion; + } + + /** + * Spécifie la version de la liste de codes des modalités d'entrée. + * + * @param acquisitionInformationCodeListVersion la version de la liste de codes des modalités + * d'entrée + */ + public void setAcquisitionInformationCodeListVersion( + String acquisitionInformationCodeListVersion) { + this.acquisitionInformationCodeListVersion = acquisitionInformationCodeListVersion; + } + + /** + * Indique la valeur du hash code de l'objet. + * + * @return le hash code de l'objet + */ + @Override + public int hashCode() { + int hash = 7; + hash = 43 * hash + Objects.hashCode(this.id); + hash = 43 * hash + Objects.hashCode(this.authorizationReasonCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.fileEncodingCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.fileFormatCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.messageDigestAlgorithmCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.relationshipCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.replyCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.signatureStatusCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.mimeTypeCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.encodingCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.compressionAlgorithmCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.dataObjectVersionCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.storageRuleCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.appraisalRuleCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.accessRuleCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.disseminationRuleCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.reuseRuleCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.classificationRuleCodeListVersion); + hash = 43 * hash + Objects.hashCode(this.acquisitionInformationCodeListVersion); + return hash; + } + + /** + * Indique si un autre objet est égal à celui-ci. + * + * @param obj l'objet à vérifier + * @return true si l'objet est identique, false sinon + */ + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (getClass() != obj.getClass()) { + return false; + } + final CodeListVersions other = (CodeListVersions) obj; + if (!Objects.equals(this.id, other.id)) { + return false; + } + if (!Objects.equals( + this.authorizationReasonCodeListVersion, other.authorizationReasonCodeListVersion)) { + return false; + } + if (!Objects.equals(this.fileEncodingCodeListVersion, other.fileEncodingCodeListVersion)) { + return false; + } + if (!Objects.equals(this.fileFormatCodeListVersion, other.fileFormatCodeListVersion)) { + return false; + } + if (!Objects.equals( + this.messageDigestAlgorithmCodeListVersion, other.messageDigestAlgorithmCodeListVersion)) { + return false; + } + if (!Objects.equals(this.relationshipCodeListVersion, other.relationshipCodeListVersion)) { + return false; + } + if (!Objects.equals(this.replyCodeListVersion, other.replyCodeListVersion)) { + return false; + } + if (!Objects.equals( + this.signatureStatusCodeListVersion, other.signatureStatusCodeListVersion)) { + return false; + } + if (!Objects.equals(this.mimeTypeCodeListVersion, other.mimeTypeCodeListVersion)) { + return false; + } + if (!Objects.equals(this.encodingCodeListVersion, other.encodingCodeListVersion)) { + return false; + } + if (!Objects.equals( + this.compressionAlgorithmCodeListVersion, other.compressionAlgorithmCodeListVersion)) { + return false; + } + if (!Objects.equals( + this.dataObjectVersionCodeListVersion, other.dataObjectVersionCodeListVersion)) { + return false; + } + if (!Objects.equals(this.storageRuleCodeListVersion, other.storageRuleCodeListVersion)) { + return false; + } + if (!Objects.equals(this.appraisalRuleCodeListVersion, other.appraisalRuleCodeListVersion)) { + return false; + } + if (!Objects.equals(this.accessRuleCodeListVersion, other.accessRuleCodeListVersion)) { + return false; + } + if (!Objects.equals( + this.disseminationRuleCodeListVersion, other.disseminationRuleCodeListVersion)) { + return false; + } + if (!Objects.equals(this.reuseRuleCodeListVersion, other.reuseRuleCodeListVersion)) { + return false; + } + if (!Objects.equals( + this.classificationRuleCodeListVersion, other.classificationRuleCodeListVersion)) { + return false; + } + return Objects.equals( + this.acquisitionInformationCodeListVersion, other.acquisitionInformationCodeListVersion); + } + + /** + * Indique la représentation en tant que String de l'objet. + * + * @return la représentation en tant que String + */ + @Override + public String toString() { + return "CodeListVersions{" + + "id=" + + id + + ", authorizationReasonCodeListVersion=" + + authorizationReasonCodeListVersion + + ", fileEncodingCodeListVersion=" + + fileEncodingCodeListVersion + + ", fileFormatCodeListVersion=" + + fileFormatCodeListVersion + + ", messageDigestAlgorithmCodeListVersion=" + + messageDigestAlgorithmCodeListVersion + + ", relationshipCodeListVersion=" + + relationshipCodeListVersion + + ", replyCodeListVersion=" + + replyCodeListVersion + + ", signatureStatusCodeListVersion=" + + signatureStatusCodeListVersion + + ", mimeTypeCodeListVersion=" + + mimeTypeCodeListVersion + + ", encodingCodeListVersion=" + + encodingCodeListVersion + + ", compressionAlgorithmCodeListVersion=" + + compressionAlgorithmCodeListVersion + + ", dataObjectVersionCodeListVersion=" + + dataObjectVersionCodeListVersion + + ", storageRuleCodeListVersion=" + + storageRuleCodeListVersion + + ", appraisalRuleCodeListVersion=" + + appraisalRuleCodeListVersion + + ", accessRuleCodeListVersion=" + + accessRuleCodeListVersion + + ", disseminationRuleCodeListVersion=" + + disseminationRuleCodeListVersion + + ", reuseRuleCodeListVersion=" + + reuseRuleCodeListVersion + + ", classificationRuleCodeListVersion=" + + classificationRuleCodeListVersion + + ", acquisitionInformationCodeListVersion=" + + acquisitionInformationCodeListVersion + + '}'; + } } diff --git a/src/main/java/fr/xelians/sipg/model/CustodialItem.java b/src/main/java/fr/xelians/sipg/model/CustodialItem.java index fb70df7..3655ed3 100644 --- a/src/main/java/fr/xelians/sipg/model/CustodialItem.java +++ b/src/main/java/fr/xelians/sipg/model/CustodialItem.java @@ -21,116 +21,111 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import fr.xelians.sipg.utils.SipUtils; -import org.apache.commons.lang3.Validate; - import java.time.LocalDateTime; import java.util.Objects; +import org.apache.commons.lang3.Validate; /** - * La classe CustodialItem représente la description d'une période ou d'un événement précis dans l'historique. + * La classe CustodialItem représente la description d'une période ou d'un événement précis dans + * l'historique. * - *

- * Supporté en SEDA v2.1 et FNTC v4 (étendu). - *

+ *

Supporté en SEDA v2.1 et FNTC v4 (étendu). * * @author Emmanuel Deviller */ public class CustodialItem { - /** - * L'évènement. - */ - protected final String value; + /** L'évènement. */ + protected final String value; - /** - * La date de l'évènement. - */ - protected final LocalDateTime when; + /** La date de l'évènement. */ + protected final LocalDateTime when; - /** - * Instancie la classe avec l'évènement spécifié. - * - * @param value l'évènement - */ - public CustodialItem(String value) { - this(value, null); - } + /** + * Instancie la classe avec l'évènement spécifié. + * + * @param value l'évènement + */ + public CustodialItem(String value) { + this(value, null); + } - /** - * Instancie la classe avec l'évènement et la date de l'évènement. - * - * @param value l'évènement - * @param when la date - */ - @JsonCreator - public CustodialItem(@JsonProperty("value") String value, @JsonProperty("when") LocalDateTime when) { - Validate.notNull(value, SipUtils.NOT_NULL, "value"); - this.value = value; - this.when = when; - } + /** + * Instancie la classe avec l'évènement et la date de l'évènement. + * + * @param value l'évènement + * @param when la date + */ + @JsonCreator + public CustodialItem( + @JsonProperty("value") String value, @JsonProperty("when") LocalDateTime when) { + Validate.notNull(value, SipUtils.NOT_NULL, "value"); + this.value = value; + this.when = when; + } - /** - * Indique l'évènement. - * - * @return l'évènement - */ - public String getValue() { - return value; - } + /** + * Indique l'évènement. + * + * @return l'évènement + */ + public String getValue() { + return value; + } - /** - * Indique la date de l'évènement. - * - * @return la date - */ - public LocalDateTime getWhen() { - return when; - } + /** + * Indique la date de l'évènement. + * + * @return la date + */ + public LocalDateTime getWhen() { + return when; + } - /** - * Indique la valeur du hash code de l'objet. - * - * @return le hash code de l'objet - */ - @Override - public int hashCode() { - int hash = 7; - hash = 79 * hash + Objects.hashCode(this.value); - hash = 79 * hash + Objects.hashCode(this.when); - return hash; - } + /** + * Indique la valeur du hash code de l'objet. + * + * @return le hash code de l'objet + */ + @Override + public int hashCode() { + int hash = 7; + hash = 79 * hash + Objects.hashCode(this.value); + hash = 79 * hash + Objects.hashCode(this.when); + return hash; + } - /** - * Indique si un autre objet est égal à celui-ci. - * - * @param obj l'objet à vérifier - * @return true si l'objet est identique, false sinon - */ - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (getClass() != obj.getClass()) { - return false; - } - final CustodialItem other = (CustodialItem) obj; - if (!Objects.equals(this.value, other.value)) { - return false; - } - return Objects.equals(this.when, other.when); + /** + * Indique si un autre objet est égal à celui-ci. + * + * @param obj l'objet à vérifier + * @return true si l'objet est identique, false sinon + */ + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; } - - /** - * Indique la représentation en tant que String de l'objet. - * - * @return la représentation en tant que String - */ - @Override - public String toString() { - return "CustodialItem{" + "value=" + value + ", when=" + when + '}'; + if (obj == null) { + return false; } + if (getClass() != obj.getClass()) { + return false; + } + final CustodialItem other = (CustodialItem) obj; + if (!Objects.equals(this.value, other.value)) { + return false; + } + return Objects.equals(this.when, other.when); + } + + /** + * Indique la représentation en tant que String de l'objet. + * + * @return la représentation en tant que String + */ + @Override + public String toString() { + return "CustodialItem{" + "value=" + value + ", when=" + when + '}'; + } } diff --git a/src/main/java/fr/xelians/sipg/model/DataObjectRef.java b/src/main/java/fr/xelians/sipg/model/DataObjectRef.java index 767705d..e31b732 100644 --- a/src/main/java/fr/xelians/sipg/model/DataObjectRef.java +++ b/src/main/java/fr/xelians/sipg/model/DataObjectRef.java @@ -22,25 +22,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * La classe DataObjectRef représente une référence à un objet-données ou à un groupe d'objets-données interne(s). + * La classe DataObjectRef représente une référence à un objet-données ou à un groupe + * d'objets-données interne(s). * - *

- * Supporté en SEDA v2.1. - *

+ *

Supporté en SEDA v2.1. * * @author Emmanuel Deviller * @see RelationRef */ public class DataObjectRef extends RelationRef { - /** - * Instancie la classe avec l'argument spécifié. - * - * @param reference l'unité d'archive interne contenant l'objet référencée - */ - @JsonCreator - public DataObjectRef(@JsonProperty("reference") ArchiveUnit reference) { - super(reference); - } - + /** + * Instancie la classe avec l'argument spécifié. + * + * @param reference l'unité d'archive interne contenant l'objet référencée + */ + @JsonCreator + public DataObjectRef(@JsonProperty("reference") ArchiveUnit reference) { + super(reference); + } } diff --git a/src/main/java/fr/xelians/sipg/model/DisseminationDataObject.java b/src/main/java/fr/xelians/sipg/model/DisseminationDataObject.java index 1e9e607..96bc943 100644 --- a/src/main/java/fr/xelians/sipg/model/DisseminationDataObject.java +++ b/src/main/java/fr/xelians/sipg/model/DisseminationDataObject.java @@ -22,16 +22,17 @@ import fr.xelians.sipg.utils.SipException; public class DisseminationDataObject extends BinaryDataObject { - public DisseminationDataObject() { - super(DISSEMINATION); - } + public DisseminationDataObject() { + super(DISSEMINATION); + } - @Override - public void setBinaryVersion(String objectVersion) { - if (objectVersion == null || !objectVersion.startsWith(DISSEMINATION)) { - throw new SipException(String.format("The qualifier of type %s cannot be modified to %s", binaryVersion, objectVersion)); - } - this.binaryVersion = objectVersion; + @Override + public void setBinaryVersion(String objectVersion) { + if (objectVersion == null || !objectVersion.startsWith(DISSEMINATION)) { + throw new SipException( + String.format( + "The qualifier of type %s cannot be modified to %s", binaryVersion, objectVersion)); } - + this.binaryVersion = objectVersion; + } } diff --git a/src/main/java/fr/xelians/sipg/model/DisseminationRules.java b/src/main/java/fr/xelians/sipg/model/DisseminationRules.java index 351e3dd..c6a8c71 100644 --- a/src/main/java/fr/xelians/sipg/model/DisseminationRules.java +++ b/src/main/java/fr/xelians/sipg/model/DisseminationRules.java @@ -21,34 +21,26 @@ import java.time.LocalDate; /** - *

* La classe DisseminationRules représente les règles de diffusion des archives. - *

* - *

- * Supporté en SEDA v2.1. - *

+ *

Supporté en SEDA v2.1. * * @author Emmanuel Deviller */ public class DisseminationRules extends AbstractSimpleRules { + /** Instancie la classe. */ + public DisseminationRules() { + super(); + } - /** - * Instancie la classe. - */ - public DisseminationRules() { - super(); - } - - /** - * Instancie la classe avec la règle spécifiée par les paramètres. - * - * @param name la référence de la règle de diffusion - * @param startDate date de départ de calcul de la règle de diffusion - */ - public DisseminationRules(String name, LocalDate startDate) { - super(name, startDate); - } - + /** + * Instancie la classe avec la règle spécifiée par les paramètres. + * + * @param name la référence de la règle de diffusion + * @param startDate date de départ de calcul de la règle de diffusion + */ + public DisseminationRules(String name, LocalDate startDate) { + super(name, startDate); + } } diff --git a/src/main/java/fr/xelians/sipg/model/Element.java b/src/main/java/fr/xelians/sipg/model/Element.java index 8a1e8af..3469d41 100644 --- a/src/main/java/fr/xelians/sipg/model/Element.java +++ b/src/main/java/fr/xelians/sipg/model/Element.java @@ -21,251 +21,245 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import fr.xelians.sipg.utils.SipUtils; -import org.apache.commons.lang3.Validate; - import java.util.*; +import org.apache.commons.lang3.Validate; /** - * La classe Element représente un élément utilisé dans le cadre d'une extension de l'ontologie définie généralement par - * le schéma XSD du standard d'échange. Il est composé d'un nom, d'une valeur et d'un ensemble d'attributs. Un élément - * peut également contenir une liste d'éléments enfants. + * La classe Element représente un élément utilisé dans le cadre d'une extension de l'ontologie + * définie généralement par le schéma XSD du standard d'échange. Il est composé d'un nom, d'une + * valeur et d'un ensemble d'attributs. Un élément peut également contenir une liste d'éléments + * enfants. * - *

- * Supporté en SEDA v2.1 et FNTC v4. - *

+ *

Supporté en SEDA v2.1 et FNTC v4. * * @author Emmanuel Deviller */ public class Element { - /** - * Les attributs de l'élément. - */ - protected final Map attributes; - /** - * La liste des éléments enfants. - */ - protected final List elements = new ArrayList<>(); - /** - * Le nom de l'élément. - */ - protected String name; - /** - * La valeur de l'élément. - */ - protected String value; + /** Les attributs de l'élément. */ + protected final Map attributes; - /** - * Instancie la classe avec le nom du tag. - * - * @param name la nome - */ - public Element(String name) { - Validate.notNull(name, SipUtils.NOT_NULL, "name"); + /** La liste des éléments enfants. */ + protected final List elements = new ArrayList<>(); - this.name = name; - this.attributes = new HashMap<>(); - } + /** Le nom de l'élément. */ + protected String name; - /** - * Instancie la classe avec le nom et la valeur du tag. - * - * @param name le nom - * @param value la valeur - */ - public Element(String name, String value) { - Validate.notNull(name, SipUtils.NOT_NULL, "name"); + /** La valeur de l'élément. */ + protected String value; - this.name = name; - this.value = value; - this.attributes = new HashMap<>(); - } + /** + * Instancie la classe avec le nom du tag. + * + * @param name la nome + */ + public Element(String name) { + Validate.notNull(name, SipUtils.NOT_NULL, "name"); - /** - * Instancie la classe avec le nom, la valeur et un ensemble d'attributs.. - * - * @param name le nom - * @param value la valeur - * @param attributes l'ensemble d'attributs - */ - @JsonCreator - public Element(@JsonProperty("name") String name, - @JsonProperty("value") String value, - @JsonProperty("attributes") Map attributes) { + this.name = name; + this.attributes = new HashMap<>(); + } - Validate.notNull(name, SipUtils.NOT_NULL, "name"); + /** + * Instancie la classe avec le nom et la valeur du tag. + * + * @param name le nom + * @param value la valeur + */ + public Element(String name, String value) { + Validate.notNull(name, SipUtils.NOT_NULL, "name"); - this.name = name; - this.value = value; - this.attributes = attributes == null ? new HashMap<>() : new HashMap<>(attributes); - } + this.name = name; + this.value = value; + this.attributes = new HashMap<>(); + } - /** - * Indique le nom de l'élément. - * - * @return le nom - */ - public String getName() { - return name; - } + /** + * Instancie la classe avec le nom, la valeur et un ensemble d'attributs. + * + * @param name le nom + * @param value la valeur + * @param attributes l'ensemble d'attributs + */ + @JsonCreator + public Element( + @JsonProperty("name") String name, + @JsonProperty("value") String value, + @JsonProperty("attributes") Map attributes) { - /** - * Spécifie le nom de l'élément. - * - * @param name le nom - */ - public void setName(String name) { - this.name = name; - } + Validate.notNull(name, SipUtils.NOT_NULL, "name"); - /** - * Indique la valeur de l'élément. - * - * @return la valeur - */ - public String getValue() { - return value; - } + this.name = name; + this.value = value; + this.attributes = attributes == null ? new HashMap<>() : new HashMap<>(attributes); + } - /** - * Spécifie la valeur de l'élément. - * - * @param value la valeur - */ - public void setValue(String value) { - this.value = value; - } + /** + * Indique le nom de l'élément. + * + * @return le nom + */ + public String getName() { + return name; + } - /** - * Ajoute un attribut à l'élément. - * - * @param key la clé de l'attribut - * @param value la valeur de l'attribut - */ - public void addAttribute(String key, String value) { - attributes.put(key, value); - } + /** + * Spécifie le nom de l'élément. + * + * @param name le nom + */ + public void setName(String name) { + this.name = name; + } - /** - * Recherche un attribut dans l'ensemble des attributs de l'élément. - * - * @param key la clé de l'élément recherché - * @return l'attribut recherché - */ - public String getAttribute(String key) { - return attributes.get(key); - } + /** + * Indique la valeur de l'élément. + * + * @return la valeur + */ + public String getValue() { + return value; + } - /** - * Supprime un attribut dans l'ensemble des attributs de l'élément. - * - * @param key la clé de l'élément à supprimer - * @return la valeur précédemment associée à la clé ou nulle si la clé n'était associée à aucun attribut - */ - public String removeAttribute(String key) { - return attributes.remove(key); - } + /** + * Spécifie la valeur de l'élément. + * + * @param value la valeur + */ + public void setValue(String value) { + this.value = value; + } - /** - * Fournit une copie de l'ensemble des attributs de l'élément. - * - * @return l'ensemble des attributs - */ - public Map getAttributes() { - return new HashMap<>(attributes); - } + /** + * Ajoute un attribut à l'élément. + * + * @param key la clé de l'attribut + * @param value la valeur de l'attribut + */ + public void addAttribute(String key, String value) { + attributes.put(key, value); + } - /** - * Ajoute un élément à la liste des éléments. - * - * @param element l'élément à ajouter - */ - public void addElement(Element element) { - elements.add(element); - } + /** + * Recherche un attribut dans l'ensemble des attributs de l'élément. + * + * @param key la clé de l'élément recherché + * @return l'attribut recherché + */ + public String getAttribute(String key) { + return attributes.get(key); + } - /** - * Ajoute un élément à la liste des éléments. - * - * @param name le nom de l'élément à ajouter - * @param value la valeur de l'élément à ajouter - */ - public void addElement(String name, String value) { - elements.add(new Element(name, value)); - } + /** + * Supprime un attribut dans l'ensemble des attributs de l'élément. + * + * @param key la clé de l'élément à supprimer + * @return la valeur précédemment associée à la clé ou nulle si la clé n'était associée à aucun + * attribut + */ + public String removeAttribute(String key) { + return attributes.remove(key); + } - /** - * Supprime un élément à la liste des éléments. - * - * @param element l'élément à supprimer - * @return true si l'élément a été supprimé avec succès, false sinon. - */ - public boolean removeElement(Element element) { - return elements.remove(element); - } + /** + * Fournit une copie de l'ensemble des attributs de l'élément. + * + * @return l'ensemble des attributs + */ + public Map getAttributes() { + return new HashMap<>(attributes); + } - /** - * Fournit une copie de la liste des éléments enfants. - * - * @return la liste des éléments - */ - public List getElements() { - return new ArrayList<>(elements); - } + /** + * Ajoute un élément à la liste des éléments. + * + * @param element l'élément à ajouter + */ + public void addElement(Element element) { + elements.add(element); + } - /** - * Indique la valeur du hash code de l'objet. - * - * @return le hash code de l'objet - */ - @Override - public int hashCode() { - int hash = 3; - hash = 73 * hash + Objects.hashCode(this.name); - hash = 73 * hash + Objects.hashCode(this.value); - hash = 73 * hash + Objects.hashCode(this.attributes); - hash = 73 * hash + Objects.hashCode(this.elements); - return hash; - } + /** + * Ajoute un élément à la liste des éléments. + * + * @param name le nom de l'élément à ajouter + * @param value la valeur de l'élément à ajouter + */ + public void addElement(String name, String value) { + elements.add(new Element(name, value)); + } - /** - * Indique si un autre objet est égal à celui-ci. - * - * @param obj l'objet à vérifier - * @return true si l'objet est identique, false sinon - */ - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (getClass() != obj.getClass()) { - return false; - } - final Element other = (Element) obj; - if (!Objects.equals(this.name, other.name)) { - return false; - } - if (!Objects.equals(this.value, other.value)) { - return false; - } - if (!Objects.equals(this.attributes, other.attributes)) { - return false; - } - return Objects.equals(this.elements, other.elements); - } + /** + * Supprime un élément à la liste des éléments. + * + * @param element l'élément à supprimer + * @return true si l'élément a été supprimé avec succès, false sinon. + */ + public boolean removeElement(Element element) { + return elements.remove(element); + } + + /** + * Fournit une copie de la liste des éléments enfants. + * + * @return la liste des éléments + */ + public List getElements() { + return new ArrayList<>(elements); + } - /** - * Indique la représentation en tant que String de l'objet. - * - * @return la représentation en tant que String - */ - @Override - public String toString() { - return "Element{" + "name=" + name + ", value=" + value + '}'; + /** + * Indique la valeur du hash code de l'objet. + * + * @return le hash code de l'objet + */ + @Override + public int hashCode() { + int hash = 3; + hash = 73 * hash + Objects.hashCode(this.name); + hash = 73 * hash + Objects.hashCode(this.value); + hash = 73 * hash + Objects.hashCode(this.attributes); + hash = 73 * hash + Objects.hashCode(this.elements); + return hash; + } + + /** + * Indique si un autre objet est égal à celui-ci. + * + * @param obj l'objet à vérifier + * @return true si l'objet est identique, false sinon + */ + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (obj == null) { + return false; + } + if (getClass() != obj.getClass()) { + return false; + } + final Element other = (Element) obj; + if (!Objects.equals(this.name, other.name)) { + return false; + } + if (!Objects.equals(this.value, other.value)) { + return false; + } + if (!Objects.equals(this.attributes, other.attributes)) { + return false; } + return Objects.equals(this.elements, other.elements); + } + /** + * Indique la représentation en tant que String de l'objet. + * + * @return la représentation en tant que String + */ + @Override + public String toString() { + return "Element{" + "name=" + name + ", value=" + value + '}'; + } } diff --git a/src/main/java/fr/xelians/sipg/model/Event.java b/src/main/java/fr/xelians/sipg/model/Event.java index f8e949f..e8d887d 100644 --- a/src/main/java/fr/xelians/sipg/model/Event.java +++ b/src/main/java/fr/xelians/sipg/model/Event.java @@ -19,334 +19,335 @@ package fr.xelians.sipg.model; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; - import java.time.LocalDateTime; import java.util.Objects; /** - * La classe Event représente un évènement, généralement issu d'un journal des opérations ou d'un journal du cycle de - * vie, et qui est associé à une unité d'archive. + * La classe Event représente un évènement, généralement issu d'un journal des opérations ou d'un + * journal du cycle de vie, et qui est associé à une unité d'archive. * - *

- * Supporté en SEDA v2.1 et FNTC v4. - *

+ *

Supporté en SEDA v2.1 et FNTC v4. * * @author Emmanuel Deviller */ @JsonDeserialize(builder = EventBuilder.class) public class Event { - /** - * L'identifiant de l'événement. - */ - protected String identifier; - - /** - * Le code du type d'événement. - */ - protected String typeCode; - - /** - * Le type d'événement. - */ - protected String type; - - /** - * La date et heure de l'événement. - */ - protected LocalDateTime dateTime; - - /** - * Le détail sur l'événement. - */ - protected String detail; - - /** - * Le résultat du traitement. - */ - protected String outcome; - - /** - * Le détail du résultat du traitement. - */ - protected String outcomeDetail; - - /** - * Le message détaillé sur le résultat du traitement. - */ - protected String outcomeDetailMessage; - - /** - * Le message technique détaillant l'erreur. - */ - protected String detailData; - - /** - * Instancie la classe. - * - * @param identifier l'identifiant - * @param typeCode le code du type - * @param type le type - * @param dateTime la date et l'heure - * @param detail le détail - * @param outcome Le résultat du traitement - * @param outcomeDetail Le détail du résultat du traitement - * @param outcomeDetailMessage Le message détaillé sur le résultat du traitement - * @param detailData Le message technique détaillant l'erreur - */ - public Event(String identifier, String typeCode, String type, LocalDateTime dateTime, - String detail, String outcome, String outcomeDetail, - String outcomeDetailMessage, String detailData) { - - this.identifier = identifier; - this.typeCode = typeCode; - this.type = type; - this.dateTime = dateTime; - this.detail = detail; - this.outcome = outcome; - this.outcomeDetail = outcomeDetail; - this.outcomeDetailMessage = outcomeDetailMessage; - this.detailData = detailData; - } - - /** - * Indique l'identifiant de l'événement. - * - * @return l 'identifiant. - */ - public String getIdentifier() { - return identifier; - } - - /** - * Spécifie l'identifiant de l'événement. - * - * @param identifier l'identifiant - */ - public void setIdentifier(String identifier) { - this.identifier = identifier; - } - - /** - * Indique le code du type de l'événement. - * - * @return le code du type - */ - public String getTypeCode() { - return typeCode; - } - - /** - * Spécifie le code du type de l'événement. - * - * @param typeCode le code du type - */ - public void setTypeCode(String typeCode) { - this.typeCode = typeCode; - } - - /** - * Indique le type de l'événement. - * - * @return le type - */ - public String getType() { - return type; - } - - /** - * Spécifie le type de l'événement. - * - * @param type le type - */ - public void setType(String type) { - this.type = type; - } - - /** - * Indique la date et l'heure de l'événement. - * - * @return la date et l'heure - */ - public LocalDateTime getDateTime() { - return dateTime; - } - - /** - * Spécifie la date et l'heure. - * - * @param dateTime la date et l'heure - */ - public void setDateTime(LocalDateTime dateTime) { - this.dateTime = dateTime; + /** L'identifiant de l'événement. */ + protected String identifier; + + /** Le code du type d'événement. */ + protected String typeCode; + + /** Le type d'événement. */ + protected String type; + + /** La date et heure de l'événement. */ + protected LocalDateTime dateTime; + + /** Le détail sur l'événement. */ + protected String detail; + + /** Le résultat du traitement. */ + protected String outcome; + + /** Le détail du résultat du traitement. */ + protected String outcomeDetail; + + /** Le message détaillé sur le résultat du traitement. */ + protected String outcomeDetailMessage; + + /** Le message technique détaillant l'erreur. */ + protected String detailData; + + /** + * Instancie la classe. + * + * @param identifier l'identifiant + * @param typeCode le code du type + * @param type le type + * @param dateTime la date et l'heure + * @param detail le détail + * @param outcome Le résultat du traitement + * @param outcomeDetail Le détail du résultat du traitement + * @param outcomeDetailMessage Le message détaillé sur le résultat du traitement + * @param detailData Le message technique détaillant l'erreur + */ + public Event( + String identifier, + String typeCode, + String type, + LocalDateTime dateTime, + String detail, + String outcome, + String outcomeDetail, + String outcomeDetailMessage, + String detailData) { + + this.identifier = identifier; + this.typeCode = typeCode; + this.type = type; + this.dateTime = dateTime; + this.detail = detail; + this.outcome = outcome; + this.outcomeDetail = outcomeDetail; + this.outcomeDetailMessage = outcomeDetailMessage; + this.detailData = detailData; + } + + /** + * Indique l'identifiant de l'événement. + * + * @return l 'identifiant. + */ + public String getIdentifier() { + return identifier; + } + + /** + * Spécifie l'identifiant de l'événement. + * + * @param identifier l'identifiant + */ + public void setIdentifier(String identifier) { + this.identifier = identifier; + } + + /** + * Indique le code du type de l'événement. + * + * @return le code du type + */ + public String getTypeCode() { + return typeCode; + } + + /** + * Spécifie le code du type de l'événement. + * + * @param typeCode le code du type + */ + public void setTypeCode(String typeCode) { + this.typeCode = typeCode; + } + + /** + * Indique le type de l'événement. + * + * @return le type + */ + public String getType() { + return type; + } + + /** + * Spécifie le type de l'événement. + * + * @param type le type + */ + public void setType(String type) { + this.type = type; + } + + /** + * Indique la date et l'heure de l'événement. + * + * @return la date et l'heure + */ + public LocalDateTime getDateTime() { + return dateTime; + } + + /** + * Spécifie la date et l'heure. + * + * @param dateTime la date et l'heure + */ + public void setDateTime(LocalDateTime dateTime) { + this.dateTime = dateTime; + } + + /** + * Indique le détail de l'événement. + * + * @return le détail + */ + public String getDetail() { + return detail; + } + + /** + * Spécifie le détail de l'événement. + * + * @param detail le détail + */ + public void setDetail(String detail) { + this.detail = detail; + } + + /** + * Indique le résultat de l'événement. + * + * @return le résultat + */ + public String getOutcome() { + return outcome; + } + + /** + * Spécifie le résultat de l'événement. + * + * @param outcome le résultat + */ + public void setOutcome(String outcome) { + this.outcome = outcome; + } + + /** + * Indique le détail du résultat de l'événement. + * + * @return le détail du résultat + */ + public String getOutcomeDetail() { + return outcomeDetail; + } + + /** + * Spécifie le détail du résultat de l'événement. + * + * @param outcomeDetail le détail du résultat + */ + public void setOutcomeDetail(String outcomeDetail) { + this.outcomeDetail = outcomeDetail; + } + + /** + * Indique le message détail du résultat de l'événement. + * + * @return le message détail du résultat + */ + public String getOutcomeDetailMessage() { + return outcomeDetailMessage; + } + + /** + * Spécifie le message détail du résultat de l'événement. + * + * @param outcomeDetailMessage le message détail du résultat + */ + public void setOutcomeDetailMessage(String outcomeDetailMessage) { + this.outcomeDetailMessage = outcomeDetailMessage; + } + + /** + * Indique le message technique détaillant l'erreur de l'événement. + * + * @return le message technique de l'erreur + */ + public String getDetailData() { + return detailData; + } + + /** + * Spécifie le message technique détaillant l'erreur de l'événement. + * + * @param detailData le message technique de l'erreur + */ + public void setDetailData(String detailData) { + this.detailData = detailData; + } + + /** + * Fournit une copie de la liste des éléments enfants. + * + * @return la liste des éléments + */ + @Override + public int hashCode() { + int hash = 7; + hash = 11 * hash + Objects.hashCode(this.identifier); + hash = 11 * hash + Objects.hashCode(this.typeCode); + hash = 11 * hash + Objects.hashCode(this.type); + hash = 11 * hash + Objects.hashCode(this.dateTime); + hash = 11 * hash + Objects.hashCode(this.detail); + hash = 11 * hash + Objects.hashCode(this.outcome); + hash = 11 * hash + Objects.hashCode(this.outcomeDetail); + hash = 11 * hash + Objects.hashCode(this.outcomeDetailMessage); + hash = 11 * hash + Objects.hashCode(this.detailData); + return hash; + } + + /** + * Indique si un autre objet est égal à celui-ci. + * + * @param obj l'objet à vérifier + * @return true si l'objet est identique, false sinon + */ + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; } - - /** - * Indique le détail de l'événement. - * - * @return le détail - */ - public String getDetail() { - return detail; + if (obj == null) { + return false; } - - /** - * Spécifie le détail de l'événement. - * - * @param detail le détail - */ - public void setDetail(String detail) { - this.detail = detail; + if (getClass() != obj.getClass()) { + return false; } - - /** - * Indique le résultat de l'événement. - * - * @return le résultat - */ - public String getOutcome() { - return outcome; + final Event other = (Event) obj; + if (!Objects.equals(this.identifier, other.identifier)) { + return false; } - - /** - * Spécifie le résultat de l'événement. - * - * @param outcome le résultat - */ - public void setOutcome(String outcome) { - this.outcome = outcome; + if (!Objects.equals(this.typeCode, other.typeCode)) { + return false; } - - /** - * Indique le détail du résultat de l'événement. - * - * @return le détail du résultat - */ - public String getOutcomeDetail() { - return outcomeDetail; + if (!Objects.equals(this.type, other.type)) { + return false; } - - /** - * Spécifie le détail du résultat de l'événement. - * - * @param outcomeDetail le détail du résultat - */ - public void setOutcomeDetail(String outcomeDetail) { - this.outcomeDetail = outcomeDetail; + if (!Objects.equals(this.detail, other.detail)) { + return false; } - - /** - * Indique le message détail du résultat de l'événement. - * - * @return le message détail du résultat - */ - public String getOutcomeDetailMessage() { - return outcomeDetailMessage; + if (!Objects.equals(this.outcome, other.outcome)) { + return false; } - - /** - * Spécifie le message détail du résultat de l'événement. - * - * @param outcomeDetailMessage le message détail du résultat - */ - public void setOutcomeDetailMessage(String outcomeDetailMessage) { - this.outcomeDetailMessage = outcomeDetailMessage; + if (!Objects.equals(this.outcomeDetail, other.outcomeDetail)) { + return false; } - - /** - * Indique le message technique détaillant l'erreur de l'événement. - * - * @return le message technique de l'erreur - */ - public String getDetailData() { - return detailData; + if (!Objects.equals(this.outcomeDetailMessage, other.outcomeDetailMessage)) { + return false; } - - /** - * Spécifie le message technique détaillant l'erreur de l'événement. - * - * @param detailData le message technique de l'erreur - */ - public void setDetailData(String detailData) { - this.detailData = detailData; - } - - /** - * Fournit une copie de la liste des éléments enfants. - * - * @return la liste des éléments - */ - @Override - public int hashCode() { - int hash = 7; - hash = 11 * hash + Objects.hashCode(this.identifier); - hash = 11 * hash + Objects.hashCode(this.typeCode); - hash = 11 * hash + Objects.hashCode(this.type); - hash = 11 * hash + Objects.hashCode(this.dateTime); - hash = 11 * hash + Objects.hashCode(this.detail); - hash = 11 * hash + Objects.hashCode(this.outcome); - hash = 11 * hash + Objects.hashCode(this.outcomeDetail); - hash = 11 * hash + Objects.hashCode(this.outcomeDetailMessage); - hash = 11 * hash + Objects.hashCode(this.detailData); - return hash; - } - - /** - * Indique si un autre objet est égal à celui-ci. - * - * @param obj l'objet à vérifier - * @return true si l'objet est identique, false sinon - */ - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (getClass() != obj.getClass()) { - return false; - } - final Event other = (Event) obj; - if (!Objects.equals(this.identifier, other.identifier)) { - return false; - } - if (!Objects.equals(this.typeCode, other.typeCode)) { - return false; - } - if (!Objects.equals(this.type, other.type)) { - return false; - } - if (!Objects.equals(this.detail, other.detail)) { - return false; - } - if (!Objects.equals(this.outcome, other.outcome)) { - return false; - } - if (!Objects.equals(this.outcomeDetail, other.outcomeDetail)) { - return false; - } - if (!Objects.equals(this.outcomeDetailMessage, other.outcomeDetailMessage)) { - return false; - } - if (!Objects.equals(this.detailData, other.detailData)) { - return false; - } - return Objects.equals(this.dateTime, other.dateTime); - } - - /** - * Indique la représentation en tant que String de l'objet. - * - * @return la représentation en tant que String - */ - @Override - public String toString() { - return "Event{" + "identifier=" + identifier + ", typeCode=" + typeCode + ", type=" + type + ", dateTime=" - + dateTime - + ", detail=" + detail + ", outcome=" + outcome + ", outcomeDetail=" + outcomeDetail + ", outcomeDetailMessage=" - + outcomeDetailMessage + ", detailData=" + detailData + '}'; + if (!Objects.equals(this.detailData, other.detailData)) { + return false; } - + return Objects.equals(this.dateTime, other.dateTime); + } + + /** + * Indique la représentation en tant que String de l'objet. + * + * @return la représentation en tant que String + */ + @Override + public String toString() { + return "Event{" + + "identifier=" + + identifier + + ", typeCode=" + + typeCode + + ", type=" + + type + + ", dateTime=" + + dateTime + + ", detail=" + + detail + + ", outcome=" + + outcome + + ", outcomeDetail=" + + outcomeDetail + + ", outcomeDetailMessage=" + + outcomeDetailMessage + + ", detailData=" + + detailData + + '}'; + } } diff --git a/src/main/java/fr/xelians/sipg/model/EventBuilder.java b/src/main/java/fr/xelians/sipg/model/EventBuilder.java index c312cb1..fe5409a 100644 --- a/src/main/java/fr/xelians/sipg/model/EventBuilder.java +++ b/src/main/java/fr/xelians/sipg/model/EventBuilder.java @@ -21,143 +21,149 @@ import java.time.LocalDateTime; /** - * La classe EventBuilder facilite la création d'un objet Event en suivant le principe de conception du pattern - * builder. + * La classe EventBuilder facilite la création d'un objet Event en suivant le principe de conception + * du pattern builder. * * @author Emmanuel Deviller * @see Event */ public class EventBuilder { - private String identifier; - private String typeCode; - private String type; - private LocalDateTime dateTime; - private String detail; - private String outcome; - private String outcomeDetail; - private String outcomeDetailMessage; - private String detailData; - - private EventBuilder() { - } - - /** - * Instancie le builder. - * - * @return le builder - */ - public static EventBuilder builder() { - return new EventBuilder(); - } - - /** - * Spécifie l'identifiant de l'événement. - * - * @param identifier l'identifiant - * @return le builder - */ - public EventBuilder withIdentifier(String identifier) { - this.identifier = identifier; - return this; - } - - /** - * Spécifie le code du type de l'événement. - * - * @param typeCode le code du type - * @return le builder - */ - public EventBuilder withTypeCode(String typeCode) { - this.typeCode = typeCode; - return this; - } - - /** - * Spécifie le type de l'événement. - * - * @param type le type - * @return le builder - */ - public EventBuilder withType(String type) { - this.type = type; - return this; - } - - /** - * Spécifie la date et l'heure. - * - * @param dateTime la date et l'heure - * @return le builder - */ - public EventBuilder withDateTime(LocalDateTime dateTime) { - this.dateTime = dateTime; - return this; - } - - /** - * Spécifie le détail de l'événement. - * - * @param detail le détail - * @return le builder - */ - public EventBuilder withDetail(String detail) { - this.detail = detail; - return this; - } - - /** - * Spécifie le résultat de l'événement. - * - * @param outcome le résultat - * @return le builder - */ - public EventBuilder withOutcome(String outcome) { - this.outcome = outcome; - return this; - } - - /** - * Spécifie le détail du résultat de l'événement. - * - * @param outcomeDetail le détail du résultat - * @return le builder - */ - public EventBuilder withOutcomeDetail(String outcomeDetail) { - this.outcomeDetail = outcomeDetail; - return this; - } - - /** - * Spécifie le message détail du résultat de l'événement. - * - * @param outcomeDetailMessage le message détail du résultat - * @return le builder - */ - public EventBuilder withOutcomeDetailMessage(String outcomeDetailMessage) { - this.outcomeDetailMessage = outcomeDetailMessage; - return this; - } - - /** - * Spécifie le message technique détaillant l'erreur de l'événement. - * - * @param detailData le message technique de l'erreur - * @return le builder - */ - public EventBuilder withDetailData(String detailData) { - this.detailData = detailData; - return this; - } - - /** - * Instancie la classe Event selon les paramètres précédemment spécifiés dans le builder. - * - * @return l'évènement - */ - public Event build() { - return new Event(identifier, typeCode, type, dateTime, detail, outcome, outcomeDetail, outcomeDetailMessage, - detailData); - } - + private String identifier; + private String typeCode; + private String type; + private LocalDateTime dateTime; + private String detail; + private String outcome; + private String outcomeDetail; + private String outcomeDetailMessage; + private String detailData; + + private EventBuilder() {} + + /** + * Instancie le builder. + * + * @return le builder + */ + public static EventBuilder builder() { + return new EventBuilder(); + } + + /** + * Spécifie l'identifiant de l'événement. + * + * @param identifier l'identifiant + * @return le builder + */ + public EventBuilder withIdentifier(String identifier) { + this.identifier = identifier; + return this; + } + + /** + * Spécifie le code du type de l'événement. + * + * @param typeCode le code du type + * @return le builder + */ + public EventBuilder withTypeCode(String typeCode) { + this.typeCode = typeCode; + return this; + } + + /** + * Spécifie le type de l'événement. + * + * @param type le type + * @return le builder + */ + public EventBuilder withType(String type) { + this.type = type; + return this; + } + + /** + * Spécifie la date et l'heure. + * + * @param dateTime la date et l'heure + * @return le builder + */ + public EventBuilder withDateTime(LocalDateTime dateTime) { + this.dateTime = dateTime; + return this; + } + + /** + * Spécifie le détail de l'événement. + * + * @param detail le détail + * @return le builder + */ + public EventBuilder withDetail(String detail) { + this.detail = detail; + return this; + } + + /** + * Spécifie le résultat de l'événement. + * + * @param outcome le résultat + * @return le builder + */ + public EventBuilder withOutcome(String outcome) { + this.outcome = outcome; + return this; + } + + /** + * Spécifie le détail du résultat de l'événement. + * + * @param outcomeDetail le détail du résultat + * @return le builder + */ + public EventBuilder withOutcomeDetail(String outcomeDetail) { + this.outcomeDetail = outcomeDetail; + return this; + } + + /** + * Spécifie le message détail du résultat de l'événement. + * + * @param outcomeDetailMessage le message détail du résultat + * @return le builder + */ + public EventBuilder withOutcomeDetailMessage(String outcomeDetailMessage) { + this.outcomeDetailMessage = outcomeDetailMessage; + return this; + } + + /** + * Spécifie le message technique détaillant l'erreur de l'événement. + * + * @param detailData le message technique de l'erreur + * @return le builder + */ + public EventBuilder withDetailData(String detailData) { + this.detailData = detailData; + return this; + } + + /** + * Instancie la classe Event selon les paramètres précédemment spécifiés dans le builder. + * + * @return l'évènement + */ + public Event build() { + return new Event( + identifier, + typeCode, + type, + dateTime, + detail, + outcome, + outcomeDetail, + outcomeDetailMessage, + detailData); + } } diff --git a/src/main/java/fr/xelians/sipg/model/ExternalReference.java b/src/main/java/fr/xelians/sipg/model/ExternalReference.java index a30564e..c9f09b6 100644 --- a/src/main/java/fr/xelians/sipg/model/ExternalReference.java +++ b/src/main/java/fr/xelians/sipg/model/ExternalReference.java @@ -24,23 +24,20 @@ /** * La classe ExternalReference représente une référence à une entité externe. * - *

- * Supporté en SEDA v2.1. - *

+ *

Supporté en SEDA v2.1. * * @author Emmanuel Deviller * @see RelationRef */ public class ExternalReference extends RelationRef { - /** - * Instancie la classe avec l'argument spécifié. - * - * @param reference l'entité externe référencée - */ - @JsonCreator - public ExternalReference(@JsonProperty("reference") String reference) { - super(reference); - } - + /** + * Instancie la classe avec l'argument spécifié. + * + * @param reference l'entité externe référencée + */ + @JsonCreator + public ExternalReference(@JsonProperty("reference") String reference) { + super(reference); + } } diff --git a/src/main/java/fr/xelians/sipg/model/FileInfo.java b/src/main/java/fr/xelians/sipg/model/FileInfo.java index d5e1002..375d300 100644 --- a/src/main/java/fr/xelians/sipg/model/FileInfo.java +++ b/src/main/java/fr/xelians/sipg/model/FileInfo.java @@ -19,210 +19,195 @@ package fr.xelians.sipg.model; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; - import java.time.LocalDateTime; /** - * La classe FileInfo représente les propriétés techniques génériques du fichier de l'objet binaire (nom d’origine, - * logiciel de création, système d’exploitation de création). + * La classe FileInfo représente les propriétés techniques génériques du fichier de l'objet binaire + * (nom d’origine, logiciel de création, système d’exploitation de création). * - *

- * Supporté en SEDA v2.1 - *

+ *

Supporté en SEDA v2.1 * * @author Emmanuel Deviller */ @JsonDeserialize(builder = FileInfoBuilder.class) public class FileInfo { - /** - * Le nom du fichier d'origine. - */ - protected String filename; - - /** - * Le nom de l'application utilisée pour créer le fichier. - */ - protected String creatingApplicationName; - - /** - * La version de l'application utilisée pour créer le fichier. - */ - protected String creatingApplicationVersion; - - /** - * La date de création du fichier. - */ - protected LocalDateTime dateCreatedByApplication; - - /** - * Le système d’exploitation utilisé pour créer le fichier. - */ - protected String creatingOs; - - /** - * La version du système d'exploitation utilisé pour créer le fichier. - */ - protected String creatingOsVersion; - - /** - * La date de la dernière modification du fichier. - */ - protected LocalDateTime lastModified; - - /** - * Instancie la classe. - */ - public FileInfo() { - } - - /** - * Instancie la classe. - * - * @param filename le nom du fichier d'origine - * @param creatingApplicationName le nom de l'application utilisée pour créer le fichier - * @param creatingApplicationVersion la version de l'application utilisée pour créer le fichier - * @param dateCreatedByApplication la date de création du fichier - * @param creatingOs le système d’exploitation utilisé pour créer le fichier - * @param creatingOsVersion la version du système d'exploitation utilisé pour créer le fichier - * @param lastModified la date de la dernière modification du fichier - */ - public FileInfo(String filename, String creatingApplicationName, String creatingApplicationVersion, - LocalDateTime dateCreatedByApplication, String creatingOs, String creatingOsVersion, LocalDateTime lastModified) { - - this.filename = filename; - this.creatingApplicationName = creatingApplicationName; - this.creatingApplicationVersion = creatingApplicationVersion; - this.dateCreatedByApplication = dateCreatedByApplication; - this.creatingOs = creatingOs; - this.creatingOsVersion = creatingOsVersion; - this.lastModified = lastModified; - } - - /** - * Indique le nom du fichier d'origine. - * - * @return le nom du fichier d'origine - */ - public String getFilename() { - return filename; - } - - /** - * Spécifie le nom du fichier d'origine. - * - * @param filename le nom du fichier d'origine - */ - public void setFilename(String filename) { - this.filename = filename; - } - - /** - * Indique le nom de l'application utilisée pour créer le fichier. - * - * @return le nom de l'application utilisée pour créer le fichier - */ - public String getCreatingApplicationName() { - return creatingApplicationName; - } - - /** - * Spécifie le nom de l'application utilisée pour créer le fichier. - * - * @param creatingApplicationName le nom de l'application utilisée pour créer le fichier - */ - public void setCreatingApplicationName(String creatingApplicationName) { - this.creatingApplicationName = creatingApplicationName; - } - - /** - * Indique la version de l'application utilisée pour créer le fichier. - * - * @return la version de l'application utilisée pour créer le fichier - */ - public String getCreatingApplicationVersion() { - return creatingApplicationVersion; - } - - /** - * Spécifie la version de l'application utilisée pour créer le fichier. - * - * @param creatingApplicationVersion la version de l'application utilisée pour créer le fichier - */ - public void setCreatingApplicationVersion(String creatingApplicationVersion) { - this.creatingApplicationVersion = creatingApplicationVersion; - } - - /** - * Indique la date de création du fichier. - * - * @return la date de création du fichier - */ - public LocalDateTime getDateCreatedByApplication() { - return dateCreatedByApplication; - } - - /** - * Spécifie la date de création du fichier. - * - * @param dateCreatedByApplication la date de création du fichier - */ - public void setDateCreatedByApplication(LocalDateTime dateCreatedByApplication) { - this.dateCreatedByApplication = dateCreatedByApplication; - } - - /** - * Indique le système d’exploitation utilisé pour créer le fichier. - * - * @return le système d’exploitation utilisé pour créer le fichier - */ - public String getCreatingOs() { - return creatingOs; - } - - /** - * Spécifie le système d’exploitation utilisé pour créer le fichier. - * - * @param creatingOs le système d’exploitation utilisé pour créer le fichier - */ - public void setCreatingOs(String creatingOs) { - this.creatingOs = creatingOs; - } - - /** - * Indique la version du système d'exploitation utilisé pour créer le fichier. - * - * @return la version du système d'exploitation utilisé pour créer le fichier - */ - public String getCreatingOsVersion() { - return creatingOsVersion; - } - - /** - * Spécifie la version du système d'exploitation utilisé pour créer le fichier. - * - * @param creatingOsVersion la version du système d'exploitation utilisé pour créer le fichier - */ - public void setCreatingOsVersion(String creatingOsVersion) { - this.creatingOsVersion = creatingOsVersion; - } - - /** - * Indique la date de la dernière modification du fichier. - * - * @return la date de la dernière modification du fichier - */ - public LocalDateTime getLastModified() { - return lastModified; - } - - /** - * Spécifie la date de la dernière modification du fichier. - * - * @param lastModified la date de la dernière modification du fichier - */ - public void setLastModified(LocalDateTime lastModified) { - this.lastModified = lastModified; - } - + /** Le nom du fichier d'origine. */ + protected String filename; + + /** Le nom de l'application utilisée pour créer le fichier. */ + protected String creatingApplicationName; + + /** La version de l'application utilisée pour créer le fichier. */ + protected String creatingApplicationVersion; + + /** La date de création du fichier. */ + protected LocalDateTime dateCreatedByApplication; + + /** Le système d’exploitation utilisé pour créer le fichier. */ + protected String creatingOs; + + /** La version du système d'exploitation utilisé pour créer le fichier. */ + protected String creatingOsVersion; + + /** La date de la dernière modification du fichier. */ + protected LocalDateTime lastModified; + + /** Instancie la classe. */ + public FileInfo() {} + + /** + * Instancie la classe. + * + * @param filename le nom du fichier d'origine + * @param creatingApplicationName le nom de l'application utilisée pour créer le fichier + * @param creatingApplicationVersion la version de l'application utilisée pour créer le fichier + * @param dateCreatedByApplication la date de création du fichier + * @param creatingOs le système d’exploitation utilisé pour créer le fichier + * @param creatingOsVersion la version du système d'exploitation utilisé pour créer le fichier + * @param lastModified la date de la dernière modification du fichier + */ + public FileInfo( + String filename, + String creatingApplicationName, + String creatingApplicationVersion, + LocalDateTime dateCreatedByApplication, + String creatingOs, + String creatingOsVersion, + LocalDateTime lastModified) { + + this.filename = filename; + this.creatingApplicationName = creatingApplicationName; + this.creatingApplicationVersion = creatingApplicationVersion; + this.dateCreatedByApplication = dateCreatedByApplication; + this.creatingOs = creatingOs; + this.creatingOsVersion = creatingOsVersion; + this.lastModified = lastModified; + } + + /** + * Indique le nom du fichier d'origine. + * + * @return le nom du fichier d'origine + */ + public String getFilename() { + return filename; + } + + /** + * Spécifie le nom du fichier d'origine. + * + * @param filename le nom du fichier d'origine + */ + public void setFilename(String filename) { + this.filename = filename; + } + + /** + * Indique le nom de l'application utilisée pour créer le fichier. + * + * @return le nom de l'application utilisée pour créer le fichier + */ + public String getCreatingApplicationName() { + return creatingApplicationName; + } + + /** + * Spécifie le nom de l'application utilisée pour créer le fichier. + * + * @param creatingApplicationName le nom de l'application utilisée pour créer le fichier + */ + public void setCreatingApplicationName(String creatingApplicationName) { + this.creatingApplicationName = creatingApplicationName; + } + + /** + * Indique la version de l'application utilisée pour créer le fichier. + * + * @return la version de l'application utilisée pour créer le fichier + */ + public String getCreatingApplicationVersion() { + return creatingApplicationVersion; + } + + /** + * Spécifie la version de l'application utilisée pour créer le fichier. + * + * @param creatingApplicationVersion la version de l'application utilisée pour créer le fichier + */ + public void setCreatingApplicationVersion(String creatingApplicationVersion) { + this.creatingApplicationVersion = creatingApplicationVersion; + } + + /** + * Indique la date de création du fichier. + * + * @return la date de création du fichier + */ + public LocalDateTime getDateCreatedByApplication() { + return dateCreatedByApplication; + } + + /** + * Spécifie la date de création du fichier. + * + * @param dateCreatedByApplication la date de création du fichier + */ + public void setDateCreatedByApplication(LocalDateTime dateCreatedByApplication) { + this.dateCreatedByApplication = dateCreatedByApplication; + } + + /** + * Indique le système d’exploitation utilisé pour créer le fichier. + * + * @return le système d’exploitation utilisé pour créer le fichier + */ + public String getCreatingOs() { + return creatingOs; + } + + /** + * Spécifie le système d’exploitation utilisé pour créer le fichier. + * + * @param creatingOs le système d’exploitation utilisé pour créer le fichier + */ + public void setCreatingOs(String creatingOs) { + this.creatingOs = creatingOs; + } + + /** + * Indique la version du système d'exploitation utilisé pour créer le fichier. + * + * @return la version du système d'exploitation utilisé pour créer le fichier + */ + public String getCreatingOsVersion() { + return creatingOsVersion; + } + + /** + * Spécifie la version du système d'exploitation utilisé pour créer le fichier. + * + * @param creatingOsVersion la version du système d'exploitation utilisé pour créer le fichier + */ + public void setCreatingOsVersion(String creatingOsVersion) { + this.creatingOsVersion = creatingOsVersion; + } + + /** + * Indique la date de la dernière modification du fichier. + * + * @return la date de la dernière modification du fichier + */ + public LocalDateTime getLastModified() { + return lastModified; + } + + /** + * Spécifie la date de la dernière modification du fichier. + * + * @param lastModified la date de la dernière modification du fichier + */ + public void setLastModified(LocalDateTime lastModified) { + this.lastModified = lastModified; + } } diff --git a/src/main/java/fr/xelians/sipg/model/FileInfoBuilder.java b/src/main/java/fr/xelians/sipg/model/FileInfoBuilder.java index ed15b0a..b5a4614 100644 --- a/src/main/java/fr/xelians/sipg/model/FileInfoBuilder.java +++ b/src/main/java/fr/xelians/sipg/model/FileInfoBuilder.java @@ -21,119 +21,123 @@ import java.time.LocalDateTime; /** - * La classe FileInfoBuilder facilite la création d'un objet FileInfo en suivant le principe de conception du pattern - * builder. + * La classe FileInfoBuilder facilite la création d'un objet FileInfo en suivant le principe de + * conception du pattern builder. * * @author Emmanuel Deviller * @see FileInfo */ public class FileInfoBuilder { - private String filename; - private String creatingApplicationName; - private String creatingApplicationVersion; - private LocalDateTime dateCreatedByApplication; - private String creatingOs; - private String creatingOsVersion; - private LocalDateTime lastModified; + private String filename; + private String creatingApplicationName; + private String creatingApplicationVersion; + private LocalDateTime dateCreatedByApplication; + private String creatingOs; + private String creatingOsVersion; + private LocalDateTime lastModified; - private FileInfoBuilder() { - } + private FileInfoBuilder() {} - /** - * Instancie le builder. - * - * @return le builder - */ - public static FileInfoBuilder builder() { - return new FileInfoBuilder(); - } + /** + * Instancie le builder. + * + * @return le builder + */ + public static FileInfoBuilder builder() { + return new FileInfoBuilder(); + } - /** - * Spécifie le nom du fichier d'origine. - * - * @param filename le nom du fichier d'origine - * @return le builder - */ - public FileInfoBuilder withFilename(String filename) { - this.filename = filename; - return this; - } + /** + * Spécifie le nom du fichier d'origine. + * + * @param filename le nom du fichier d'origine + * @return le builder + */ + public FileInfoBuilder withFilename(String filename) { + this.filename = filename; + return this; + } - /** - * Spécifie le nom de l'application utilisée pour créer le fichier. - * - * @param creatingApplicationName le nom de l'application utilisée pour créer le fichier - * @return le builder - */ - public FileInfoBuilder withCreatingApplicationName(String creatingApplicationName) { - this.creatingApplicationName = creatingApplicationName; - return this; - } + /** + * Spécifie le nom de l'application utilisée pour créer le fichier. + * + * @param creatingApplicationName le nom de l'application utilisée pour créer le fichier + * @return le builder + */ + public FileInfoBuilder withCreatingApplicationName(String creatingApplicationName) { + this.creatingApplicationName = creatingApplicationName; + return this; + } - /** - * Spécifie la version de l'application utilisée pour créer le fichier. - * - * @param creatingApplicationVersion la version de l'application utilisée pour créer le fichier - * @return le builder - */ - public FileInfoBuilder withCreatingApplicationVersion(String creatingApplicationVersion) { - this.creatingApplicationVersion = creatingApplicationVersion; - return this; - } + /** + * Spécifie la version de l'application utilisée pour créer le fichier. + * + * @param creatingApplicationVersion la version de l'application utilisée pour créer le fichier + * @return le builder + */ + public FileInfoBuilder withCreatingApplicationVersion(String creatingApplicationVersion) { + this.creatingApplicationVersion = creatingApplicationVersion; + return this; + } - /** - * Spécifie la date de création du fichier. - * - * @param dateCreatedByApplication la date de création du fichier - * @return le builder - */ - public FileInfoBuilder withDateCreatedByApplication(LocalDateTime dateCreatedByApplication) { - this.dateCreatedByApplication = dateCreatedByApplication; - return this; - } + /** + * Spécifie la date de création du fichier. + * + * @param dateCreatedByApplication la date de création du fichier + * @return le builder + */ + public FileInfoBuilder withDateCreatedByApplication(LocalDateTime dateCreatedByApplication) { + this.dateCreatedByApplication = dateCreatedByApplication; + return this; + } - /** - * Spécifie le système d’exploitation utilisé pour créer le fichier. - * - * @param creatingOs le système d’exploitation utilisé pour créer le fichier - * @return le builder - */ - public FileInfoBuilder withCreatingOs(String creatingOs) { - this.creatingOs = creatingOs; - return this; - } + /** + * Spécifie le système d’exploitation utilisé pour créer le fichier. + * + * @param creatingOs le système d’exploitation utilisé pour créer le fichier + * @return le builder + */ + public FileInfoBuilder withCreatingOs(String creatingOs) { + this.creatingOs = creatingOs; + return this; + } - /** - * Spécifie la version du système d'exploitation utilisé pour créer le fichier. - * - * @param creatingOsVersion la version du système d'exploitation utilisé pour créer le fichier - * @return le builder - */ - public FileInfoBuilder withCreatingOsVersion(String creatingOsVersion) { - this.creatingOsVersion = creatingOsVersion; - return this; - } + /** + * Spécifie la version du système d'exploitation utilisé pour créer le fichier. + * + * @param creatingOsVersion la version du système d'exploitation utilisé pour créer le fichier + * @return le builder + */ + public FileInfoBuilder withCreatingOsVersion(String creatingOsVersion) { + this.creatingOsVersion = creatingOsVersion; + return this; + } - /** - * Spécifie la date de la dernière modification du fichier. - * - * @param lastModified la date de la dernière modification du fichier - * @return le builder - */ - public FileInfoBuilder withLastModified(LocalDateTime lastModified) { - this.lastModified = lastModified; - return this; - } - - /** - * Instancie la classe FileInfo selon les paramètres précédemment spécifiés dans le builder. - * - * @return le fileinfo - */ - public FileInfo build() { - return new FileInfo(filename, creatingApplicationName, creatingApplicationVersion, dateCreatedByApplication, - creatingOs, creatingOsVersion, lastModified); - } + /** + * Spécifie la date de la dernière modification du fichier. + * + * @param lastModified la date de la dernière modification du fichier + * @return le builder + */ + public FileInfoBuilder withLastModified(LocalDateTime lastModified) { + this.lastModified = lastModified; + return this; + } + /** + * Instancie la classe FileInfo selon les paramètres précédemment spécifiés dans le builder. + * + * @return le fileinfo + */ + public FileInfo build() { + return new FileInfo( + filename, + creatingApplicationName, + creatingApplicationVersion, + dateCreatedByApplication, + creatingOs, + creatingOsVersion, + lastModified); + } } diff --git a/src/main/java/fr/xelians/sipg/model/FormatIdentification.java b/src/main/java/fr/xelians/sipg/model/FormatIdentification.java index 6a10bf5..dd39103 100644 --- a/src/main/java/fr/xelians/sipg/model/FormatIdentification.java +++ b/src/main/java/fr/xelians/sipg/model/FormatIdentification.java @@ -21,98 +21,92 @@ public class FormatIdentification { - /** - * L'identifiant du format de l'objet binaire. Il est fortement conseillé d'identifier le format de l'objet binaire - * selon le référentiel Pronom distribué par The British National Archives. - */ - protected String formatId; + /** + * L'identifiant du format de l'objet binaire. Il est fortement conseillé d'identifier le format + * de l'objet binaire selon le référentiel Pronom distribué par The British National Archives. + */ + protected String formatId; - /** - * Le nom du format de l'objet binaire. Il est fortement conseillé de nommer le format de l'objet binaire selon le - * référentiel Pronom distribué par The British National Archives. - */ - protected String formatName; + /** + * Le nom du format de l'objet binaire. Il est fortement conseillé de nommer le format de l'objet + * binaire selon le référentiel Pronom distribué par The British National Archives. + */ + protected String formatName; - /** - * Le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire. - */ - protected String mimeType; + /** Le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire. */ + protected String mimeType; - /** - * Instancie la classe. - */ - public FormatIdentification() { - } + /** Instancie la classe. */ + public FormatIdentification() {} - /** - * Instancie la classe. - * - * @param formatId L'id du format - * @param formatName Le nom du format - * @param mimeType Le type mime - */ - public FormatIdentification(String formatId, String formatName, String mimeType) { - this.formatId = formatId; - this.formatName = formatName; - this.mimeType = mimeType; - } + /** + * Instancie la classe. + * + * @param formatId L'id du format + * @param formatName Le nom du format + * @param mimeType Le type mime + */ + public FormatIdentification(String formatId, String formatName, String mimeType) { + this.formatId = formatId; + this.formatName = formatName; + this.mimeType = mimeType; + } - /** - * Indique le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire. - * - * @return le type MIME - */ - public String getMimeType() { - return mimeType; - } + /** + * Indique le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire. + * + * @return le type MIME + */ + public String getMimeType() { + return mimeType; + } - /** - * Spécifie le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire. - * - * @param mimeType le type MIME - */ - public void setMimeType(String mimeType) { - this.mimeType = mimeType; - } + /** + * Spécifie le type MIME (Multipurpose Internet Mail Extensions) de l'objet binaire. + * + * @param mimeType le type MIME + */ + public void setMimeType(String mimeType) { + this.mimeType = mimeType; + } - /** - * Indique l'identifiant du format de l'objet binaire. Il est fortement conseillé d'identifier le format de l'objet - * binaire selon le référentiel Pronom édité par The British National Archives. - * - * @return l 'identifiant du format de l'objet binaire - */ - public String getFormatId() { - return formatId; - } + /** + * Indique l'identifiant du format de l'objet binaire. Il est fortement conseillé d'identifier le + * format de l'objet binaire selon le référentiel Pronom édité par The British National Archives. + * + * @return l 'identifiant du format de l'objet binaire + */ + public String getFormatId() { + return formatId; + } - /** - * Spécifie l'identifiant du format de l'objet binaire. Il est fortement conseillé d'identifier le format de l'objet - * binaire selon le référentiel Pronom édité par The British National Archives. - * - * @param formatId l'identifiant du format de l'objet binaire - */ - public void setFormatId(String formatId) { - this.formatId = formatId; - } + /** + * Spécifie l'identifiant du format de l'objet binaire. Il est fortement conseillé d'identifier le + * format de l'objet binaire selon le référentiel Pronom édité par The British National Archives. + * + * @param formatId l'identifiant du format de l'objet binaire + */ + public void setFormatId(String formatId) { + this.formatId = formatId; + } - /** - * Indique le nom du format de l'objet binaire. Il est fortement conseillé de nommer le format de l'objet binaire - * selon le référentiel Pronom édité par The British National Archives. - * - * @return le nom du format de l'objet binaire - */ - public String getFormatName() { - return formatName; - } - - /** - * Spécifie le nom du format de l'objet binaire. Il est fortement conseillé de nommer le format de l'objet binaire - * selon le référentiel Pronom édite par The British National Archives. - * - * @param formatName le nom du format de l'objet binaire - */ - public void setFormatName(String formatName) { - this.formatName = formatName; - } + /** + * Indique le nom du format de l'objet binaire. Il est fortement conseillé de nommer le format de + * l'objet binaire selon le référentiel Pronom édité par The British National Archives. + * + * @return le nom du format de l'objet binaire + */ + public String getFormatName() { + return formatName; + } + /** + * Spécifie le nom du format de l'objet binaire. Il est fortement conseillé de nommer le format de + * l'objet binaire selon le référentiel Pronom édite par The British National Archives. + * + * @param formatName le nom du format de l'objet binaire + */ + public void setFormatName(String formatName) { + this.formatName = formatName; + } } diff --git a/src/main/java/fr/xelians/sipg/model/HoldRule.java b/src/main/java/fr/xelians/sipg/model/HoldRule.java index 9235b22..b897220 100644 --- a/src/main/java/fr/xelians/sipg/model/HoldRule.java +++ b/src/main/java/fr/xelians/sipg/model/HoldRule.java @@ -21,69 +21,80 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; - import java.time.LocalDate; import java.util.Objects; public class HoldRule extends Rule { - protected LocalDate holdEndDate; - - protected String holdOwner; - - protected String holdReason; - - protected LocalDate holdReassessingDate; - - protected Boolean preventRearrangement; - - @JsonCreator - public HoldRule(@JsonProperty("name") String name, @JsonProperty("startDate") LocalDate startDate, - @JsonProperty("holdEndDate") LocalDate holdEndDate, - @JsonProperty("holdOwner") String holdOwner, - @JsonProperty("holdReason") String holdReason, - @JsonProperty("holdReassessingDate") LocalDate holdReassessingDate, - @JsonProperty("preventRearrangement") Boolean preventRearrangement) { - - super(name, startDate); - this.holdOwner = holdOwner; - this.holdReason = holdReason; - this.holdEndDate = holdEndDate; - this.holdReassessingDate = holdReassessingDate; - this.preventRearrangement = preventRearrangement; - } - - public LocalDate getHoldEndDate() { - return holdEndDate; - } - - public String getHoldOwner() { - return holdOwner; - } - - public String getHoldReason() { - return holdReason; - } - - public LocalDate getHoldReassessingDate() { - return holdReassessingDate; - } - - public Boolean getPreventRearrangement() { - return preventRearrangement; - } - - @Override - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - HoldRule holdRule = (HoldRule) o; - return Objects.equals(getHoldEndDate(), holdRule.getHoldEndDate()) && Objects.equals(getHoldOwner(), holdRule.getHoldOwner()) && Objects.equals(getHoldReason(), holdRule.getHoldReason()) && Objects.equals(getHoldReassessingDate(), holdRule.getHoldReassessingDate()) && Objects.equals(getPreventRearrangement(), holdRule.getPreventRearrangement()); - } - - @Override - public int hashCode() { - return Objects.hash(super.hashCode(), getHoldEndDate(), getHoldOwner(), getHoldReason(), getHoldReassessingDate(), getPreventRearrangement()); - } + protected final LocalDate holdEndDate; + + protected final String holdOwner; + + protected final String holdReason; + + protected final LocalDate holdReassessingDate; + + protected final Boolean preventRearrangement; + + @JsonCreator + public HoldRule( + @JsonProperty("name") String name, + @JsonProperty("startDate") LocalDate startDate, + @JsonProperty("holdEndDate") LocalDate holdEndDate, + @JsonProperty("holdOwner") String holdOwner, + @JsonProperty("holdReason") String holdReason, + @JsonProperty("holdReassessingDate") LocalDate holdReassessingDate, + @JsonProperty("preventRearrangement") Boolean preventRearrangement) { + + super(name, startDate); + this.holdOwner = holdOwner; + this.holdReason = holdReason; + this.holdEndDate = holdEndDate; + this.holdReassessingDate = holdReassessingDate; + this.preventRearrangement = preventRearrangement; + } + + public LocalDate getHoldEndDate() { + return holdEndDate; + } + + public String getHoldOwner() { + return holdOwner; + } + + public String getHoldReason() { + return holdReason; + } + + public LocalDate getHoldReassessingDate() { + return holdReassessingDate; + } + + public Boolean getPreventRearrangement() { + return preventRearrangement; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + if (!super.equals(o)) return false; + HoldRule holdRule = (HoldRule) o; + return Objects.equals(getHoldEndDate(), holdRule.getHoldEndDate()) + && Objects.equals(getHoldOwner(), holdRule.getHoldOwner()) + && Objects.equals(getHoldReason(), holdRule.getHoldReason()) + && Objects.equals(getHoldReassessingDate(), holdRule.getHoldReassessingDate()) + && Objects.equals(getPreventRearrangement(), holdRule.getPreventRearrangement()); + } + + @Override + public int hashCode() { + return Objects.hash( + super.hashCode(), + getHoldEndDate(), + getHoldOwner(), + getHoldReason(), + getHoldReassessingDate(), + getPreventRearrangement()); + } } diff --git a/src/main/java/fr/xelians/sipg/model/HoldRules.java b/src/main/java/fr/xelians/sipg/model/HoldRules.java index fb7c665..727d810 100644 --- a/src/main/java/fr/xelians/sipg/model/HoldRules.java +++ b/src/main/java/fr/xelians/sipg/model/HoldRules.java @@ -20,116 +20,132 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import fr.xelians.sipg.utils.SipUtils; -import org.apache.commons.lang3.Validate; - import java.time.LocalDate; import java.util.ArrayList; import java.util.List; +import org.apache.commons.lang3.Validate; /** - *

* La classe HoldRules représente les règles de gel des archives. - *

* - *

- * En SEDA 2.1, chaque règle a une startDate et un Identifiant de règle de référence pour la durée. Si aucune règle - * n'est spécifiée et que la date actuelle est dans la StarDate, la réponse de restriction est "Aucune restriction". Si - * la date est vide, la réponse de restriction est "Restreint" car il n'y a aucun moyen de calculer la date de fin. Si - * une règle et une date sont précisées, alors la règle est valable (restriction appliquée). - *

+ *

En SEDA 2.1, chaque règle a une startDate et un Identifiant de règle de référence pour la + * durée. Si aucune règle n'est spécifiée et que la date actuelle est dans la StarDate, la réponse + * de restriction est "Aucune restriction". Si la date est vide, la réponse de restriction est + * "Restreint" car il n'y a aucun moyen de calculer la date de fin. Si une règle et une date sont + * précisées, alors la règle est valable (restriction appliquée). * - *

- * Supporté en SEDA v2.2. - *

+ *

Supporté en SEDA v2.2. * * @author Emmanuel Deviller */ public class HoldRules extends AbstractRules { + /** La liste des règles. */ + protected final List rules = new ArrayList<>(); - /** - * La liste des règles. - */ - protected final List rules = new ArrayList<>(); - - /** - * Instancie la classe. - */ - public HoldRules() { - super(); - } - - /** - * Instancie la classe avec la règle spécifiée par les paramètres. - * - * @param name la référence de la règle de diffusion - * @param startDate date de départ de calcul de la règle de diffusion - */ - public HoldRules(String name, LocalDate startDate, LocalDate holdEndDate, String holdOwner, String holdReason, LocalDate holdReassessingDate, Boolean preventRearrangement) { - super(); - addRule(name, startDate, holdEndDate, holdOwner, holdReason, holdReassessingDate, preventRearrangement); - } - + /** Instancie la classe. */ + public HoldRules() { + super(); + } - /** - * Ajoute une règle de communicabilité. - * - * @param name la référence de la règle communicabilité à ajouter - * @param startDate date de départ de calcul de la règle de communicabilité - */ - public void addRule(String name, LocalDate startDate, LocalDate holdEndDate, String holdOwner, String holdReason, LocalDate holdReassessingDate, Boolean preventRearrangement) { - HoldRule rule = new HoldRule(name, startDate, holdEndDate, holdOwner, holdReason, holdReassessingDate, preventRearrangement); - rules.add(rule); - } + /** + * Instancie la classe avec la règle spécifiée par les paramètres. + * + * @param name la référence de la règle de diffusion + * @param startDate date de départ de calcul de la règle de diffusion + */ + public HoldRules( + String name, + LocalDate startDate, + LocalDate holdEndDate, + String holdOwner, + String holdReason, + LocalDate holdReassessingDate, + Boolean preventRearrangement) { + super(); + addRule( + name, + startDate, + holdEndDate, + holdOwner, + holdReason, + holdReassessingDate, + preventRearrangement); + } - /** - * Ajoute une règle de communicabilité. - * - * @param rule règle de communicabilité - */ - public void addRule(HoldRule rule) { - Validate.notNull(rule, SipUtils.NOT_NULL, "rule"); - rules.add(rule); - } + /** + * Ajoute une règle de communicabilité. + * + * @param name la référence de la règle communicabilité à ajouter + * @param startDate date de départ de calcul de la règle de communicabilité + */ + public void addRule( + String name, + LocalDate startDate, + LocalDate holdEndDate, + String holdOwner, + String holdReason, + LocalDate holdReassessingDate, + Boolean preventRearrangement) { + HoldRule rule = + new HoldRule( + name, + startDate, + holdEndDate, + holdOwner, + holdReason, + holdReassessingDate, + preventRearrangement); + rules.add(rule); + } - /** - * Supprime une règle de communicabilité. - * - * @param rule la règle de communicabilité à supprimer - * @return true si la suppression de la règle a réalisé avec succès, false sinon - */ - public boolean removeRule(HoldRule rule) { - Validate.notNull(rule, SipUtils.NOT_NULL, "rule"); - return rules.remove(rule); - } + /** + * Ajoute une règle de communicabilité. + * + * @param rule règle de communicabilité + */ + public void addRule(HoldRule rule) { + Validate.notNull(rule, SipUtils.NOT_NULL, "rule"); + rules.add(rule); + } - /** - * Fournit la liste des règles de gel. - * - * @return la liste des règles de gel - */ - public List getRules() { - return new ArrayList<>(rules); - } + /** + * Supprime une règle de communicabilité. + * + * @param rule la règle de communicabilité à supprimer + * @return true si la suppression de la règle a réalisé avec succès, false sinon + */ + public boolean removeRule(HoldRule rule) { + Validate.notNull(rule, SipUtils.NOT_NULL, "rule"); + return rules.remove(rule); + } - /** - * Indique la date de départ de calcul de la première règle de communicabilité. - * - * @return la date - */ - @JsonIgnore - public String getRuleName() { - return rules.isEmpty() ? null : rules.get(0).getName(); - } + /** + * Fournit la liste des règles de gel. + * + * @return la liste des règles de gel + */ + public List getRules() { + return new ArrayList<>(rules); + } - /** - * Indique la date de départ de calcul de la première règle de communicabilité. - * - * @return la date - */ - @JsonIgnore - public LocalDate getStartDate() { - return rules.isEmpty() ? null : rules.get(0).getStartDate(); - } + /** + * Indique la date de départ de calcul de la première règle de communicabilité. + * + * @return la date + */ + @JsonIgnore + public String getRuleName() { + return rules.isEmpty() ? null : rules.get(0).getName(); + } + /** + * Indique la date de départ de calcul de la première règle de communicabilité. + * + * @return la date + */ + @JsonIgnore + public LocalDate getStartDate() { + return rules.isEmpty() ? null : rules.get(0).getStartDate(); + } } diff --git a/src/main/java/fr/xelians/sipg/model/Message.java b/src/main/java/fr/xelians/sipg/model/Message.java index 07466ca..41b04a1 100644 --- a/src/main/java/fr/xelians/sipg/model/Message.java +++ b/src/main/java/fr/xelians/sipg/model/Message.java @@ -25,143 +25,135 @@ /** * La classe abstraite Message représente le message dans le protocole d'échange FNTC et SEDA. * - *

- * Supporté en SEDA v2.1 et FNTC v4. - *

+ *

Supporté en SEDA v2.1 et FNTC v4. * * @author Emmanuel Deviller * @see ArchiveTransfer */ public abstract class Message { - /** - * La liste des éléments signatures du message. - */ - protected final List signatureElements = new ArrayList<>(); - /** - * La date du message. - */ - protected LocalDateTime date; - /** - * L'identifiant du message. - */ - protected String messageIdentifier; - /** - * Le commentaire sur le message. - */ - protected String comment; - /** - * La signature du message. - */ - protected String signature; - - /** - * Indique la date du message. - * - * @return la date du message - */ - public LocalDateTime getDate() { - return date; - } - - /** - * Spécifie la date du message. - * - * @param date la date du message - */ - public void setDate(LocalDateTime date) { - this.date = date; - } - - /** - * Indique l'identifiant du message. - * - * @return l'identifiant du message - */ - public String getMessageIdentifier() { - return messageIdentifier; - } - - /** - * Spécifie l'identifiant du message. - * - * @param messageIdentifier l'identifiant du message - */ - public void setMessageIdentifier(String messageIdentifier) { - this.messageIdentifier = messageIdentifier; - } - - /** - * Indique le commentaire sur le message. - * - * @return le commentaire - */ - public String getComment() { - return comment; - } - - /** - * Spécifie le commentaire sur le message. - * - * @param comment le commentaire - */ - public void setComment(String comment) { - this.comment = comment; - } - - /** - * Indique la signature du message. - * - * @return la signature du message - */ - public String getSignature() { - return signature; - } - - /** - * Spécifie la signature du message. - * - * @param signature la signature du message - */ - public void setSignature(String signature) { - this.signature = signature; - } - - /** - * Ajoute une signature à la liste des signatures du message. - * - * @param name le nom de la signature - * @param value la valeur de la signature - */ - public void addSignatureElement(String name, String value) { - signatureElements.add(new Element(name, value)); - } - - /** - * Ajoute une signature à la liste des signatures du message. - * - * @param element l'élément signature - */ - public void addSignatureElement(Element element) { - signatureElements.add(element); - } - - /** - * Supprime une signature de la liste des signatures du message. - * - * @param element l'élément signature - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeSignatureElement(Element element) { - return signatureElements.remove(element); - } - - /** - * Fournit la liste des signatures du message. - * - * @return la liste des éléments signatures - */ - public List getSignatureElements() { - return new ArrayList<>(signatureElements); - } + /** La liste des éléments signatures du message. */ + protected final List signatureElements = new ArrayList<>(); + + /** La date du message. */ + protected LocalDateTime date; + + /** L'identifiant du message. */ + protected String messageIdentifier; + + /** Le commentaire sur le message. */ + protected String comment; + + /** La signature du message. */ + protected String signature; + + /** + * Indique la date du message. + * + * @return la date du message + */ + public LocalDateTime getDate() { + return date; + } + + /** + * Spécifie la date du message. + * + * @param date la date du message + */ + public void setDate(LocalDateTime date) { + this.date = date; + } + + /** + * Indique l'identifiant du message. + * + * @return l'identifiant du message + */ + public String getMessageIdentifier() { + return messageIdentifier; + } + + /** + * Spécifie l'identifiant du message. + * + * @param messageIdentifier l'identifiant du message + */ + public void setMessageIdentifier(String messageIdentifier) { + this.messageIdentifier = messageIdentifier; + } + + /** + * Indique le commentaire sur le message. + * + * @return le commentaire + */ + public String getComment() { + return comment; + } + + /** + * Spécifie le commentaire sur le message. + * + * @param comment le commentaire + */ + public void setComment(String comment) { + this.comment = comment; + } + + /** + * Indique la signature du message. + * + * @return la signature du message + */ + public String getSignature() { + return signature; + } + + /** + * Spécifie la signature du message. + * + * @param signature la signature du message + */ + public void setSignature(String signature) { + this.signature = signature; + } + + /** + * Ajoute une signature à la liste des signatures du message. + * + * @param name le nom de la signature + * @param value la valeur de la signature + */ + public void addSignatureElement(String name, String value) { + signatureElements.add(new Element(name, value)); + } + + /** + * Ajoute une signature à la liste des signatures du message. + * + * @param element l'élément signature + */ + public void addSignatureElement(Element element) { + signatureElements.add(element); + } + + /** + * Supprime une signature de la liste des signatures du message. + * + * @param element l'élément signature + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeSignatureElement(Element element) { + return signatureElements.remove(element); + } + + /** + * Fournit la liste des signatures du message. + * + * @return la liste des éléments signatures + */ + public List getSignatureElements() { + return new ArrayList<>(signatureElements); + } } diff --git a/src/main/java/fr/xelians/sipg/model/Place.java b/src/main/java/fr/xelians/sipg/model/Place.java index 90e5f07..b4cdfba 100644 --- a/src/main/java/fr/xelians/sipg/model/Place.java +++ b/src/main/java/fr/xelians/sipg/model/Place.java @@ -20,240 +20,237 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; - import java.util.Objects; -/** - * La classe Place représente un lieu ou un emplacement. - */ +/** La classe Place représente un lieu ou un emplacement. */ public class Place { - /** - * Le nom géographique. - */ - protected String geogName; + /** Le nom géographique. */ + protected String geogName; - /** - * L'adresse. - */ - protected String address; + /** L'adresse. */ + protected String address; - /** - * Le code postal. - */ - protected String postalCode; + /** Le code postal. */ + protected String postalCode; - /** - * La ville. - */ - protected String city; + /** La ville. */ + protected String city; - /** - * La région. - */ - protected String region; + /** La région. */ + protected String region; - /** - * Le pays. - */ - protected String country; + /** Le pays. */ + protected String country; - /** - * Instantiates a new Place. - * - * @param geogName the geogName - * @param address the address - * @param postalCode the postal code - * @param city the city - * @param region the region - * @param country the country - */ - @JsonCreator - public Place(@JsonProperty("geogName") String geogName, - @JsonProperty("address") String address, - @JsonProperty("postalCode") String postalCode, - @JsonProperty("city") String city, - @JsonProperty("region") String region, - @JsonProperty("country") String country) { + /** + * Instantiates a new Place. + * + * @param geogName the geogName + * @param address the address + * @param postalCode the postal code + * @param city the city + * @param region the region + * @param country the country + */ + @JsonCreator + public Place( + @JsonProperty("geogName") String geogName, + @JsonProperty("address") String address, + @JsonProperty("postalCode") String postalCode, + @JsonProperty("city") String city, + @JsonProperty("region") String region, + @JsonProperty("country") String country) { - this.geogName = geogName; - this.address = address; - this.postalCode = postalCode; - this.city = city; - this.region = region; - this.country = country; - } + this.geogName = geogName; + this.address = address; + this.postalCode = postalCode; + this.city = city; + this.region = region; + this.country = country; + } - /** - * Indique le nom géographique. - * - * @return le nom géographique. - */ - public String getGeogName() { - return geogName; - } + /** + * Indique le nom géographique. + * + * @return le nom géographique. + */ + public String getGeogName() { + return geogName; + } - /** - * Spécifie le nom géographique. - * - * @param value le nom géographique. - */ - public void setGeogName(String value) { - this.geogName = value; - } + /** + * Spécifie le nom géographique. + * + * @param value le nom géographique. + */ + public void setGeogName(String value) { + this.geogName = value; + } - /** - * Indique l'adresse. - * - * @return l'adresse - */ - public String getAddress() { - return address; - } + /** + * Indique l'adresse. + * + * @return l'adresse + */ + public String getAddress() { + return address; + } - /** - * Spécifie l'adresse. - * - * @param value l'adresse - */ - public void setAddress(String value) { - this.address = value; - } + /** + * Spécifie l'adresse. + * + * @param value l'adresse + */ + public void setAddress(String value) { + this.address = value; + } - /** - * Indique le code postal. - * - * @return le code postal - */ - public String getPostalCode() { - return postalCode; - } + /** + * Indique le code postal. + * + * @return le code postal + */ + public String getPostalCode() { + return postalCode; + } - /** - * Spécifie le code postal. - * - * @param value le code postal - */ - public void setPostalCode(String value) { - this.postalCode = value; - } + /** + * Spécifie le code postal. + * + * @param value le code postal + */ + public void setPostalCode(String value) { + this.postalCode = value; + } - /** - * Indique la ville. - * - * @return la ville - */ - public String getCity() { - return city; - } + /** + * Indique la ville. + * + * @return la ville + */ + public String getCity() { + return city; + } - /** - * Spécifie la ville. - * - * @param value la ville - */ - public void setCity(String value) { - this.city = value; - } + /** + * Spécifie la ville. + * + * @param value la ville + */ + public void setCity(String value) { + this.city = value; + } - /** - * Indique la région. - * - * @return la région - */ - public String getRegion() { - return region; - } + /** + * Indique la région. + * + * @return la région + */ + public String getRegion() { + return region; + } - /** - * Spécifie la région. - * - * @param value la région - */ - public void setRegion(String value) { - this.region = value; - } + /** + * Spécifie la région. + * + * @param value la région + */ + public void setRegion(String value) { + this.region = value; + } - /** - * Indique le pays. - * - * @return le pays - */ - public String getCountry() { - return country; - } + /** + * Indique le pays. + * + * @return le pays + */ + public String getCountry() { + return country; + } - /** - * Spécifie le pays. - * - * @param value le pays - */ - public void setCountry(String value) { - this.country = value; - } + /** + * Spécifie le pays. + * + * @param value le pays + */ + public void setCountry(String value) { + this.country = value; + } - /** - * Indique la valeur du hash code de l'objet. - * - * @return le hash code de l'objet - */ - @Override - public int hashCode() { - int hash = 5; - hash = 29 * hash + Objects.hashCode(this.geogName); - hash = 29 * hash + Objects.hashCode(this.address); - hash = 29 * hash + Objects.hashCode(this.postalCode); - hash = 29 * hash + Objects.hashCode(this.city); - hash = 29 * hash + Objects.hashCode(this.region); - hash = 29 * hash + Objects.hashCode(this.country); - return hash; - } + /** + * Indique la valeur du hash code de l'objet. + * + * @return le hash code de l'objet + */ + @Override + public int hashCode() { + int hash = 5; + hash = 29 * hash + Objects.hashCode(this.geogName); + hash = 29 * hash + Objects.hashCode(this.address); + hash = 29 * hash + Objects.hashCode(this.postalCode); + hash = 29 * hash + Objects.hashCode(this.city); + hash = 29 * hash + Objects.hashCode(this.region); + hash = 29 * hash + Objects.hashCode(this.country); + return hash; + } - /** - * Indique si un autre objet est égal à celui-ci. - * - * @param obj l'objet à vérifier - * @return true si l'objet est identique, false sinon - */ - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (getClass() != obj.getClass()) { - return false; - } - final Place other = (Place) obj; - if (!Objects.equals(this.geogName, other.geogName)) { - return false; - } - if (!Objects.equals(this.address, other.address)) { - return false; - } - if (!Objects.equals(this.postalCode, other.postalCode)) { - return false; - } - if (!Objects.equals(this.city, other.city)) { - return false; - } - if (!Objects.equals(this.region, other.region)) { - return false; - } - return Objects.equals(this.country, other.country); + /** + * Indique si un autre objet est égal à celui-ci. + * + * @param obj l'objet à vérifier + * @return true si l'objet est identique, false sinon + */ + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; } - - /** - * Indique la représentation en tant que String de l'objet. - * - * @return la représentation en tant que String - */ - @Override - public String toString() { - return "Place{" + "geogName=" + geogName + ", address=" + address + ", postalCode=" + postalCode + ", city=" + city - + ", region=" + region + ", country=" + country + '}'; + if (obj == null) { + return false; + } + if (getClass() != obj.getClass()) { + return false; + } + final Place other = (Place) obj; + if (!Objects.equals(this.geogName, other.geogName)) { + return false; + } + if (!Objects.equals(this.address, other.address)) { + return false; + } + if (!Objects.equals(this.postalCode, other.postalCode)) { + return false; + } + if (!Objects.equals(this.city, other.city)) { + return false; + } + if (!Objects.equals(this.region, other.region)) { + return false; } + return Objects.equals(this.country, other.country); + } + /** + * Indique la représentation en tant que String de l'objet. + * + * @return la représentation en tant que String + */ + @Override + public String toString() { + return "Place{" + + "geogName=" + + geogName + + ", address=" + + address + + ", postalCode=" + + postalCode + + ", city=" + + city + + ", region=" + + region + + ", country=" + + country + + '}'; + } } diff --git a/src/main/java/fr/xelians/sipg/model/PlaceBuilder.java b/src/main/java/fr/xelians/sipg/model/PlaceBuilder.java index aa0886f..d573690 100644 --- a/src/main/java/fr/xelians/sipg/model/PlaceBuilder.java +++ b/src/main/java/fr/xelians/sipg/model/PlaceBuilder.java @@ -19,106 +19,104 @@ package fr.xelians.sipg.model; /** - * La classe AgentBuilder facilite la création d'un objet Place en suivant le principe de conception du pattern - * builder. + * La classe AgentBuilder facilite la création d'un objet Place en suivant le principe de conception + * du pattern builder. * * @author Emmanuel Deviller * @see Place */ public class PlaceBuilder { - private String geogName; - private String address; - private String postalCode; - private String city; - private String region; - private String country; + private String geogName; + private String address; + private String postalCode; + private String city; + private String region; + private String country; - private PlaceBuilder() { - } + private PlaceBuilder() {} - /** - * Instancie le builder. - * - * @return le builder - */ - public static PlaceBuilder builder() { - return new PlaceBuilder(); - } + /** + * Instancie le builder. + * + * @return le builder + */ + public static PlaceBuilder builder() { + return new PlaceBuilder(); + } - /** - * Spécifie le nom géographique. - * - * @param geogName le nom géographique. - * @return le builder - */ - public PlaceBuilder withGeogName(String geogName) { - this.geogName = geogName; - return this; - } + /** + * Spécifie le nom géographique. + * + * @param geogName le nom géographique. + * @return le builder + */ + public PlaceBuilder withGeogName(String geogName) { + this.geogName = geogName; + return this; + } - /** - * Spécifie l'adresse. - * - * @param address l'adresse - * @return le builder - */ - public PlaceBuilder withAddress(String address) { - this.address = address; - return this; - } + /** + * Spécifie l'adresse. + * + * @param address l'adresse + * @return le builder + */ + public PlaceBuilder withAddress(String address) { + this.address = address; + return this; + } - /** - * Spécifie le code postal. - * - * @param postalCode le code postal - * @return le builder - */ - public PlaceBuilder withPostalCode(String postalCode) { - this.postalCode = postalCode; - return this; - } + /** + * Spécifie le code postal. + * + * @param postalCode le code postal + * @return le builder + */ + public PlaceBuilder withPostalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } - /** - * Spécifie la ville. - * - * @param city la ville - * @return le builder - */ - public PlaceBuilder withCity(String city) { - this.city = city; - return this; - } + /** + * Spécifie la ville. + * + * @param city la ville + * @return le builder + */ + public PlaceBuilder withCity(String city) { + this.city = city; + return this; + } - /** - * Spécifie la région. - * - * @param region la région - * @return le builder - */ - public PlaceBuilder withRegion(String region) { - this.region = region; - return this; - } + /** + * Spécifie la région. + * + * @param region la région + * @return le builder + */ + public PlaceBuilder withRegion(String region) { + this.region = region; + return this; + } - /** - * Spécifie le pays. - * - * @param country le pays - * @return le builder - */ - public PlaceBuilder withCountry(String country) { - this.country = country; - return this; - } - - /** - * Instancie la classe Place selon les paramètres précédemment spécifiés dans le builder. - * - * @return la place - */ - public Place build() { - return new Place(geogName, address, postalCode, city, region, country); - } + /** + * Spécifie le pays. + * + * @param country le pays + * @return le builder + */ + public PlaceBuilder withCountry(String country) { + this.country = country; + return this; + } + /** + * Instancie la classe Place selon les paramètres précédemment spécifiés dans le builder. + * + * @return la place + */ + public Place build() { + return new Place(geogName, address, postalCode, city, region, country); + } } diff --git a/src/main/java/fr/xelians/sipg/model/RelatedObjectRef.java b/src/main/java/fr/xelians/sipg/model/RelatedObjectRef.java index f5f805c..44fc03e 100644 --- a/src/main/java/fr/xelians/sipg/model/RelatedObjectRef.java +++ b/src/main/java/fr/xelians/sipg/model/RelatedObjectRef.java @@ -19,217 +19,215 @@ package fr.xelians.sipg.model; import fr.xelians.sipg.utils.SipUtils; -import org.apache.commons.lang3.Validate; - import java.util.ArrayList; import java.util.List; +import org.apache.commons.lang3.Validate; /** - * La classe RelatedObjectRef représente la référence à un ensemble d'objets faisant ou ne faisant pas partie du présent - * paquet d'information. + * La classe RelatedObjectRef représente la référence à un ensemble d'objets faisant ou ne faisant + * pas partie du présent paquet d'information. * - *

- * Supporté en SEDA v2.1. - *

+ *

Supporté en SEDA v2.1. * * @author Emmanuel Deviller * @see RelationRef */ public class RelatedObjectRef { - /** - * La liste des références de type "Est une version de". Cette relation permet d'indiquer les modifications dans le - * contenu présent paquet d'information (édition, adaptation, traduction). - */ - protected final List> isVersionOfs = new ArrayList<>(); - - /** - * La liste des références de type "Remplace". Cette relation permet d'indiquer les objets remplacés par le niveau - * courant de description. - */ - protected final List> replaces = new ArrayList<>(); - - /** - * La liste des références de type "Requiert". Cette relation permet d'indiquer les objets nécessaires à la - * compréhension du niveau courant de description. - */ - protected final List> requires = new ArrayList<>(); - - /** - * La liste des références de type "Est une partie de". Cette relation permet d'indiquer qu'un objet est une partie - * d'un autre. - */ - protected final List> isPartOfs = new ArrayList<>(); - - /** - * La liste des références de type "Référence". Cette relation permet d'indiquer qu'un objet en référence un autre. - */ - protected final List> references = new ArrayList<>(); - - /** - * Instancie la classe. - */ - public RelatedObjectRef() { - // Do nothing here - } - - /** - * Ajoute une référence à la liste des références de type "Est une version de". Cette relation permet d'indiquer les - * modifications dans le contenu présent paquet d'information (édition, adaptation, traduction). - * - * @param isVersionOf la référence à ajouter - */ - public void addVersionOf(RelationRef isVersionOf) { - Validate.notNull(isVersionOf, SipUtils.NOT_NULL, "isVersionOf"); - isVersionOfs.add(isVersionOf); - } - - /** - * Supprime une référence de la liste des références de type "Est une version de".. - * - * @param isVersionOf la référence à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeVersionOf(RelationRef isVersionOf) { - Validate.notNull(isVersionOf, SipUtils.NOT_NULL, "isVersionOf"); - return isVersionOfs.remove(isVersionOf); - } - - /** - * Fournit la liste des références de type "Est une version de". Cette relation permet d'indiquer les modifications - * dans le contenu présent paquet d'information (édition, adaptation, traduction). - * - * @return la liste des références de type "Est une version de" - */ - public List getVersionOfs() { - return new ArrayList<>(isVersionOfs); - } - - /** - * Ajoute une référence à la liste des références de type "Remplace". Cette relation permet d'indiquer les objets - * remplacés par le niveau courant de description. - * - * @param replace la référence à ajouter - */ - public void addReplace(RelationRef replace) { - Validate.notNull(replace, SipUtils.NOT_NULL, "replace"); - replaces.add(replace); - } - - /** - * Supprime une référence de la liste des références de type "Remplace". - * - * @param replace la référence à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeReplace(RelationRef replace) { - Validate.notNull(replace, SipUtils.NOT_NULL, "replace"); - return replaces.remove(replace); - } - - /** - * Fournit la liste des références de type "Remplace". Cette relation permet d'indiquer les objets remplacés par le - * niveau courant de description. - * - * @return la liste des références de type "Remplace" - */ - public List getReplaces() { - return new ArrayList<>(replaces); - } - - /** - * Ajoute une référence à la liste des références de type "Requiert". Cette relation permet d'indiquer les objets - * nécessaires à la compréhension du niveau courant de description. - * - * @param require la référence à ajouter - */ - public void addRequire(RelationRef require) { - Validate.notNull(require, SipUtils.NOT_NULL, "require"); - requires.add(require); - } - - /** - * Supprime une référence de la liste des références de type "Requiert". - * - * @param require la référence à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeRequire(RelationRef require) { - Validate.notNull(require, SipUtils.NOT_NULL, "require"); - return requires.remove(require); - } - - /** - * Fournit la liste des références de type "Requiert". Cette relation permet d'indiquer les objets nécessaires à la - * compréhension du niveau courant de description. - * - * @return la liste des références de type "Requiert" - */ - public List getRequires() { - return new ArrayList<>(requires); - } - - /** - * Ajoute une référence à la liste des références de type "Est une partie de". Cette relation permet d'indiquer qu'un - * objet est une partie d'un autre. - * - * @param isPartOf la référence à ajouter - */ - public void addPartOf(RelationRef isPartOf) { - Validate.notNull(isPartOf, SipUtils.NOT_NULL, "isPartOf"); - isPartOfs.add(isPartOf); - } - - /** - * Supprime une référence de la liste des références de type "Est une partie de". - * - * @param isPartOf la référence à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removePartOf(RelationRef isPartOf) { - Validate.notNull(isPartOf, SipUtils.NOT_NULL, "isPartOf"); - return isPartOfs.remove(isPartOf); - } - - /** - * Fournit la liste des références de type "Est une partie de". Cette relation permet d'indiquer qu'un objet est une - * partie d'un autre. - * - * @return la liste des références de type "Est une partie de" - */ - public List getPartOfs() { - return new ArrayList<>(isPartOfs); - } - - /** - * Ajoute une référence à la liste des références de type "Référence". Cette relation permet d'indiquer qu'un objet en - * référence un autre. - * - * @param reference la référence à ajouter - */ - public void addReference(RelationRef reference) { - Validate.notNull(reference, SipUtils.NOT_NULL, "reference"); - references.add(reference); - } - - /** - * Supprime une référence de la liste des références de type "Référence". - * - * @param reference la référence à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeReference(RelationRef reference) { - Validate.notNull(reference, SipUtils.NOT_NULL, "reference"); - return references.remove(reference); - } - - /** - * Fournit la liste des références de type "Référence". Cette relation permet d'indiquer qu'un objet en référence un - * autre. - * - * @return la liste des références de type "Référence" - */ - public List getReferences() { - return new ArrayList<>(references); - } + /** + * La liste des références de type "Est une version de". Cette relation permet d'indiquer les + * modifications dans le contenu présent paquet d'information (édition, adaptation, traduction). + */ + protected final List> isVersionOfs = new ArrayList<>(); + + /** + * La liste des références de type "Remplace". Cette relation permet d'indiquer les objets + * remplacés par le niveau courant de description. + */ + protected final List> replaces = new ArrayList<>(); + + /** + * La liste des références de type "Requiert". Cette relation permet d'indiquer les objets + * nécessaires à la compréhension du niveau courant de description. + */ + protected final List> requires = new ArrayList<>(); + + /** + * La liste des références de type "Est une partie de". Cette relation permet d'indiquer qu'un + * objet est une partie d'un autre. + */ + protected final List> isPartOfs = new ArrayList<>(); + + /** + * La liste des références de type "Référence". Cette relation permet d'indiquer qu'un objet en + * référence un autre. + */ + protected final List> references = new ArrayList<>(); + + /** Instancie la classe. */ + public RelatedObjectRef() { + // Do nothing here + } + + /** + * Ajoute une référence à la liste des références de type "Est une version de". Cette relation + * permet d'indiquer les modifications dans le contenu présent paquet d'information (édition, + * adaptation, traduction). + * + * @param isVersionOf la référence à ajouter + */ + public void addVersionOf(RelationRef isVersionOf) { + Validate.notNull(isVersionOf, SipUtils.NOT_NULL, "isVersionOf"); + isVersionOfs.add(isVersionOf); + } + + /** + * Supprime une référence de la liste des références de type "Est une version de". + * + * @param isVersionOf la référence à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeVersionOf(RelationRef isVersionOf) { + Validate.notNull(isVersionOf, SipUtils.NOT_NULL, "isVersionOf"); + return isVersionOfs.remove(isVersionOf); + } + + /** + * Fournit la liste des références de type "Est une version de". Cette relation permet d'indiquer + * les modifications dans le contenu présent paquet d'information (édition, adaptation, + * traduction). + * + * @return la liste des références de type "Est une version de" + */ + public List getVersionOfs() { + return new ArrayList<>(isVersionOfs); + } + + /** + * Ajoute une référence à la liste des références de type "Remplace". Cette relation permet + * d'indiquer les objets remplacés par le niveau courant de description. + * + * @param replace la référence à ajouter + */ + public void addReplace(RelationRef replace) { + Validate.notNull(replace, SipUtils.NOT_NULL, "replace"); + replaces.add(replace); + } + + /** + * Supprime une référence de la liste des références de type "Remplace". + * + * @param replace la référence à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeReplace(RelationRef replace) { + Validate.notNull(replace, SipUtils.NOT_NULL, "replace"); + return replaces.remove(replace); + } + + /** + * Fournit la liste des références de type "Remplace". Cette relation permet d'indiquer les objets + * remplacés par le niveau courant de description. + * + * @return la liste des références de type "Remplace" + */ + public List getReplaces() { + return new ArrayList<>(replaces); + } + + /** + * Ajoute une référence à la liste des références de type "Requiert". Cette relation permet + * d'indiquer les objets nécessaires à la compréhension du niveau courant de description. + * + * @param require la référence à ajouter + */ + public void addRequire(RelationRef require) { + Validate.notNull(require, SipUtils.NOT_NULL, "require"); + requires.add(require); + } + + /** + * Supprime une référence de la liste des références de type "Requiert". + * + * @param require la référence à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeRequire(RelationRef require) { + Validate.notNull(require, SipUtils.NOT_NULL, "require"); + return requires.remove(require); + } + + /** + * Fournit la liste des références de type "Requiert". Cette relation permet d'indiquer les objets + * nécessaires à la compréhension du niveau courant de description. + * + * @return la liste des références de type "Requiert" + */ + public List getRequires() { + return new ArrayList<>(requires); + } + + /** + * Ajoute une référence à la liste des références de type "Est une partie de". Cette relation + * permet d'indiquer qu'un objet est une partie d'un autre. + * + * @param isPartOf la référence à ajouter + */ + public void addPartOf(RelationRef isPartOf) { + Validate.notNull(isPartOf, SipUtils.NOT_NULL, "isPartOf"); + isPartOfs.add(isPartOf); + } + + /** + * Supprime une référence de la liste des références de type "Est une partie de". + * + * @param isPartOf la référence à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removePartOf(RelationRef isPartOf) { + Validate.notNull(isPartOf, SipUtils.NOT_NULL, "isPartOf"); + return isPartOfs.remove(isPartOf); + } + + /** + * Fournit la liste des références de type "Est une partie de". Cette relation permet d'indiquer + * qu'un objet est une partie d'un autre. + * + * @return la liste des références de type "Est une partie de" + */ + public List getPartOfs() { + return new ArrayList<>(isPartOfs); + } + + /** + * Ajoute une référence à la liste des références de type "Référence". Cette relation permet + * d'indiquer qu'un objet en référence un autre. + * + * @param reference la référence à ajouter + */ + public void addReference(RelationRef reference) { + Validate.notNull(reference, SipUtils.NOT_NULL, "reference"); + references.add(reference); + } + + /** + * Supprime une référence de la liste des références de type "Référence". + * + * @param reference la référence à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeReference(RelationRef reference) { + Validate.notNull(reference, SipUtils.NOT_NULL, "reference"); + return references.remove(reference); + } + + /** + * Fournit la liste des références de type "Référence". Cette relation permet d'indiquer qu'un + * objet en référence un autre. + * + * @return la liste des références de type "Référence" + */ + public List getReferences() { + return new ArrayList<>(references); + } } diff --git a/src/main/java/fr/xelians/sipg/model/RelationRef.java b/src/main/java/fr/xelians/sipg/model/RelationRef.java index 438ef9f..47d6c65 100644 --- a/src/main/java/fr/xelians/sipg/model/RelationRef.java +++ b/src/main/java/fr/xelians/sipg/model/RelationRef.java @@ -22,36 +22,33 @@ import org.apache.commons.lang3.Validate; /** - * La classe abstraite RelationRef représente une relation de référence à une entité faisant ou ne faisant pas partie du - * présent paquet d'information. + * La classe abstraite RelationRef représente une relation de référence à une entité faisant ou ne + * faisant pas partie du présent paquet d'information. * * @param le type de la référence * @author Emmanuel Deviller */ public abstract class RelationRef { - /** - * The Reference. - */ - protected final T reference; + /** The Reference. */ + protected final T reference; - /** - * Instancie la relation de référence - * - * @param reference la référence - */ - protected RelationRef(T reference) { - Validate.notNull(reference, SipUtils.NOT_NULL, "reference"); - this.reference = reference; - } - - /** - * Indique la référence de la relation - * - * @return la référence - */ - public T getReference() { - return reference; - } + /** + * Instancie la relation de référence + * + * @param reference la référence + */ + protected RelationRef(T reference) { + Validate.notNull(reference, SipUtils.NOT_NULL, "reference"); + this.reference = reference; + } + /** + * Indique la référence de la relation + * + * @return la référence + */ + public T getReference() { + return reference; + } } diff --git a/src/main/java/fr/xelians/sipg/model/RepositoryArchiveUnitPID.java b/src/main/java/fr/xelians/sipg/model/RepositoryArchiveUnitPID.java index 4444d5b..1b0b299 100644 --- a/src/main/java/fr/xelians/sipg/model/RepositoryArchiveUnitPID.java +++ b/src/main/java/fr/xelians/sipg/model/RepositoryArchiveUnitPID.java @@ -22,26 +22,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * La classe RepositoryArchiveUnitPID représente une référence à une unité d'archive déjà conservée dans un système - * d'archivage. + * La classe RepositoryArchiveUnitPID représente une référence à une unité d'archive déjà conservée + * dans un système d'archivage. * - *

- * Supporté en SEDA v2.1. - *

+ *

Supporté en SEDA v2.1. * * @author Emmanuel Deviller * @see RelationRef */ public class RepositoryArchiveUnitPID extends RelationRef { - /** - * Instancie la classe. - * - * @param reference l'unité d'archive référencée - */ - @JsonCreator - public RepositoryArchiveUnitPID(@JsonProperty("reference") String reference) { - super(reference); - } - + /** + * Instancie la classe. + * + * @param reference l'unité d'archive référencée + */ + @JsonCreator + public RepositoryArchiveUnitPID(@JsonProperty("reference") String reference) { + super(reference); + } } diff --git a/src/main/java/fr/xelians/sipg/model/RepositoryObjectPID.java b/src/main/java/fr/xelians/sipg/model/RepositoryObjectPID.java index e3a41ca..86cbb86 100644 --- a/src/main/java/fr/xelians/sipg/model/RepositoryObjectPID.java +++ b/src/main/java/fr/xelians/sipg/model/RepositoryObjectPID.java @@ -19,25 +19,22 @@ package fr.xelians.sipg.model; /** - * La classe RepositoryObjectPID représente une référence à un objet-données ou à un groupe d'objets-données déjà - * conservé(s) dans un système d'archivage. + * La classe RepositoryObjectPID représente une référence à un objet-données ou à un groupe + * d'objets-données déjà conservé(s) dans un système d'archivage. * - *

- * Supporté en SEDA v2.1. - *

+ *

Supporté en SEDA v2.1. * * @author Emmanuel Deviller * @see RelationRef */ public class RepositoryObjectPID extends RelationRef { - /** - * Instancie la classe avec l'argument spécifié. - * - * @param value l'objet-données référencé - */ - public RepositoryObjectPID(String value) { - super(value); - } - + /** + * Instancie la classe avec l'argument spécifié. + * + * @param value l'objet-données référencé + */ + public RepositoryObjectPID(String value) { + super(value); + } } diff --git a/src/main/java/fr/xelians/sipg/model/ReuseRules.java b/src/main/java/fr/xelians/sipg/model/ReuseRules.java index b212f33..e31ee50 100644 --- a/src/main/java/fr/xelians/sipg/model/ReuseRules.java +++ b/src/main/java/fr/xelians/sipg/model/ReuseRules.java @@ -21,32 +21,26 @@ import java.time.LocalDate; /** - *

* La classe ReuseRules représente les règles de réutilisation des archives. - *

* - *

- * Supporté en SEDA v2.1. - *

+ *

Supporté en SEDA v2.1. * * @author Emmanuel Deviller */ public class ReuseRules extends AbstractSimpleRules { - /** - * Instancie la classe. - */ - public ReuseRules() { - super(); - } + /** Instancie la classe. */ + public ReuseRules() { + super(); + } - /** - * Instancie la classe avec une règle spécifiée par les paramètres. - * - * @param name la référence de la règle réutilisation - * @param startDate date de départ de calcul de la règle de réutilisation - */ - public ReuseRules(String name, LocalDate startDate) { - super(name, startDate); - } + /** + * Instancie la classe avec une règle spécifiée par les paramètres. + * + * @param name la référence de la règle réutilisation + * @param startDate date de départ de calcul de la règle de réutilisation + */ + public ReuseRules(String name, LocalDate startDate) { + super(name, startDate); + } } diff --git a/src/main/java/fr/xelians/sipg/model/Rule.java b/src/main/java/fr/xelians/sipg/model/Rule.java index 33b779b..574d9bb 100644 --- a/src/main/java/fr/xelians/sipg/model/Rule.java +++ b/src/main/java/fr/xelians/sipg/model/Rule.java @@ -21,99 +21,91 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import fr.xelians.sipg.utils.SipUtils; -import org.apache.commons.lang3.Validate; - import java.time.LocalDate; import java.util.Objects; +import org.apache.commons.lang3.Validate; /** * La classe Rule représente une règle de cycle de vie. * - *

- * Supporté en SEDA v2.1 et FNTC v4. - *

+ *

Supporté en SEDA v2.1 et FNTC v4. * * @author Emmanuel Deviller */ public class Rule { - /** - * Le nom de la règle. - */ - protected final String name; + /** Le nom de la règle. */ + protected final String name; - /** - * La date de départ du calcul de la règle. - */ - protected final LocalDate startDate; + /** La date de départ du calcul de la règle. */ + protected final LocalDate startDate; - /** - * Instancie la classe avec les arguments spécifiés. - * - * @param name le nom - * @param startDate la date de départ du calcul - */ - @JsonCreator - public Rule(@JsonProperty("name") String name, @JsonProperty("startDate") LocalDate startDate) { - Validate.notNull(name, SipUtils.NOT_NULL, "name"); - this.name = name; - this.startDate = startDate; - } + /** + * Instancie la classe avec les arguments spécifiés. + * + * @param name le nom + * @param startDate la date de départ du calcul + */ + @JsonCreator + public Rule(@JsonProperty("name") String name, @JsonProperty("startDate") LocalDate startDate) { + Validate.notNull(name, SipUtils.NOT_NULL, "name"); + this.name = name; + this.startDate = startDate; + } - /** - * Indique le nom de la règle - * - * @return le nom de la règle - */ - public String getName() { - return name; - } + /** + * Indique le nom de la règle + * + * @return le nom de la règle + */ + public String getName() { + return name; + } - /** - * Indique la date de départ du calcul de la règle. - * - * @return la date de départ du calcul - */ - public LocalDate getStartDate() { - return startDate; - } + /** + * Indique la date de départ du calcul de la règle. + * + * @return la date de départ du calcul + */ + public LocalDate getStartDate() { + return startDate; + } - /** - * Indique si un autre objet est égal à celui-ci. - * - * @param obj l'objet à vérifier - * @return true si l'objet est identique, false sinon - */ - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null || getClass() != obj.getClass()) { - return false; - } - Rule rule = (Rule) obj; - return name.equals(rule.name) - && Objects.equals(startDate, rule.startDate); + /** + * Indique si un autre objet est égal à celui-ci. + * + * @param obj l'objet à vérifier + * @return true si l'objet est identique, false sinon + */ + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; } - - /** - * Indique la valeur du hash code de l'objet. - * - * @return le hash code de l'objet - */ - @Override - public int hashCode() { - return Objects.hash(name, startDate); + if (obj == null || getClass() != obj.getClass()) { + return false; } + Rule rule = (Rule) obj; + return name.equals(rule.name) && Objects.equals(startDate, rule.startDate); + } - /** - * Indique la représentation en tant que String de l'objet. - * - * @return la représentation en tant que String - */ - @Override - public String toString() { - return "Rule{" + "name=" + name + ", startDate=" + startDate + '}'; - } + /** + * Indique la valeur du hash code de l'objet. + * + * @return le hash code de l'objet + */ + @Override + public int hashCode() { + return Objects.hash(name, startDate); + } + + /** + * Indique la représentation en tant que String de l'objet. + * + * @return la représentation en tant que String + */ + @Override + public String toString() { + return "Rule{" + "name=" + name + ", startDate=" + startDate + '}'; + } } diff --git a/src/main/java/fr/xelians/sipg/model/Signature.java b/src/main/java/fr/xelians/sipg/model/Signature.java index 84194fa..f11c27f 100644 --- a/src/main/java/fr/xelians/sipg/model/Signature.java +++ b/src/main/java/fr/xelians/sipg/model/Signature.java @@ -19,17 +19,14 @@ package fr.xelians.sipg.model; import fr.xelians.sipg.utils.SipUtils; -import org.apache.commons.lang3.Validate; - import java.util.ArrayList; import java.util.List; +import org.apache.commons.lang3.Validate; /** * La classe Signature contient les informations relatives à une signature. * - *

- * Supporté en SEDA v2.1 - *

+ *

Supporté en SEDA v2.1 * * @author Emmanuel Deviller * @see Signer @@ -37,115 +34,104 @@ */ public class Signature { - /** - * La liste des signataires. - */ - protected final List signers = new ArrayList<>(); - - /** - * La validateur de la signature. - */ - protected Validator validator; - - /** - * L'algorithme utilisé par la signature. - */ - protected String digestAlgorithm = "SHA-512"; - - /** - * La condensat de la signature. - */ - protected String digestValue; - - /** - * Instancie la classe. - */ - public Signature() { - // Do nothing here - } - - /** - * Ajoute un signataire à la liste des signataires. - * - * @param signer le signataire à ajouter - */ - public void addSigner(Signer signer) { - Validate.notNull(signer, SipUtils.NOT_NULL, "signer"); - signers.add(signer); - } - - /** - * Supprime un signataire de la liste des signataires. - * - * @param signer le signataire à supprimer - * @return true si la suppression a été réalisée avec succès, sinon false - */ - public boolean removeSigner(Signer signer) { - Validate.notNull(signer, SipUtils.NOT_NULL, "signer"); - return signers.remove(signer); - } - - /** - * Fournit les signataires de la signature. - * - * @return la liste des signataires - */ - public List getSigners() { - return new ArrayList<>(signers); - } - - /** - * Indique le validateur. - * - * @return le validateur - */ - public Validator getValidator() { - return validator; - } - - /** - * Spécifie le validateur. - * - * @param validator le validateur - */ - public void setValidator(Validator validator) { - this.validator = validator; - } - - /** - * Indique l'algorithme utilisé par la signature. - * - * @return l 'algorithm - */ - public String getDigestAlgorithm() { - return digestAlgorithm; - } - - /** - * Indique l'algorithme utilisé par la signature. - * - * @param digestAlgorithm l'algorithme - */ - public void setDigestAlgorithm(String digestAlgorithm) { - this.digestAlgorithm = digestAlgorithm; - } - - /** - * Indique le condensat de la signature. - * - * @return le condensat - */ - public String getDigestValue() { - return digestValue; - } - - /** - * Spécifie le condensat de la signature. - * - * @param digestValue le condensat - */ - public void setDigestValue(String digestValue) { - this.digestValue = digestValue; - } - + /** La liste des signataires. */ + protected final List signers = new ArrayList<>(); + + /** La validateur de la signature. */ + protected Validator validator; + + /** L'algorithme utilisé par la signature. */ + protected String digestAlgorithm = "SHA-512"; + + /** La condensat de la signature. */ + protected String digestValue; + + /** Instancie la classe. */ + public Signature() { + // Do nothing here + } + + /** + * Ajoute un signataire à la liste des signataires. + * + * @param signer le signataire à ajouter + */ + public void addSigner(Signer signer) { + Validate.notNull(signer, SipUtils.NOT_NULL, "signer"); + signers.add(signer); + } + + /** + * Supprime un signataire de la liste des signataires. + * + * @param signer le signataire à supprimer + * @return true si la suppression a été réalisée avec succès, sinon false + */ + public boolean removeSigner(Signer signer) { + Validate.notNull(signer, SipUtils.NOT_NULL, "signer"); + return signers.remove(signer); + } + + /** + * Fournit les signataires de la signature. + * + * @return la liste des signataires + */ + public List getSigners() { + return new ArrayList<>(signers); + } + + /** + * Indique le validateur. + * + * @return le validateur + */ + public Validator getValidator() { + return validator; + } + + /** + * Spécifie le validateur. + * + * @param validator le validateur + */ + public void setValidator(Validator validator) { + this.validator = validator; + } + + /** + * Indique l'algorithme utilisé par la signature. + * + * @return l 'algorithm + */ + public String getDigestAlgorithm() { + return digestAlgorithm; + } + + /** + * Indique l'algorithme utilisé par la signature. + * + * @param digestAlgorithm l'algorithme + */ + public void setDigestAlgorithm(String digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + } + + /** + * Indique le condensat de la signature. + * + * @return le condensat + */ + public String getDigestValue() { + return digestValue; + } + + /** + * Spécifie le condensat de la signature. + * + * @param digestValue le condensat + */ + public void setDigestValue(String digestValue) { + this.digestValue = digestValue; + } } diff --git a/src/main/java/fr/xelians/sipg/model/Signer.java b/src/main/java/fr/xelians/sipg/model/Signer.java index e6b8c6a..d8b2c0e 100644 --- a/src/main/java/fr/xelians/sipg/model/Signer.java +++ b/src/main/java/fr/xelians/sipg/model/Signer.java @@ -19,7 +19,6 @@ package fr.xelians.sipg.model; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; - import java.time.LocalDate; import java.time.LocalDateTime; import java.util.Objects; @@ -27,9 +26,7 @@ /** * La classe Signer représente le signataire de la transaction ou de l'objet. * - *

- * Supporté en SEDA v2.1 - *

+ *

Supporté en SEDA v2.1 * * @author Emmanuel Deviller * @see Agent @@ -37,97 +34,112 @@ @JsonDeserialize(builder = SignerBuilder.class) public class Signer extends Agent { - /** - * Date et heure de signature. - */ - protected LocalDateTime signingTime; + /** Date et heure de signature. */ + protected LocalDateTime signingTime; - /** - * Instancie la classe. - */ - public Signer() { - super(); - } + /** Instancie la classe. */ + public Signer() { + super(); + } - /** - * Instancie la classe avec l'identifiant de l'agent. - * - * @param signingTime la date et heure de signature - */ - public Signer(LocalDateTime signingTime) { - super(); - this.signingTime = signingTime; - } + /** + * Instancie la classe avec l'identifiant de l'agent. + * + * @param signingTime la date et heure de signature + */ + public Signer(LocalDateTime signingTime) { + super(); + this.signingTime = signingTime; + } - /** - * Instancie la classe avec l'identifiant de l'agent. - * - * @param identifier l'identifiant - * @param signingTime la date et heure de signature - */ - public Signer(String identifier, LocalDateTime signingTime) { - super(identifier); - this.signingTime = signingTime; - } + /** + * Instancie la classe avec l'identifiant de l'agent. + * + * @param identifier l'identifiant + * @param signingTime la date et heure de signature + */ + public Signer(String identifier, LocalDateTime signingTime) { + super(identifier); + this.signingTime = signingTime; + } - /** - * Instancie la classe selon les paramètres indiqués. - * - * @param firstName le prénom - * @param birthName le nom de naissance - * @param fullName le nom complet - * @param givenName le nom d'usage - * @param gender le sexe - * @param birthDate la date de naissance - * @param birthPlace le lieu de naissance - * @param deathDate la date de décès - * @param deathPlace le lieu de décès - * @param corpName l'entité - * @param signingTime la date et heure de signature - */ - public Signer(String firstName, String birthName, String fullName, String givenName, String gender, - LocalDate birthDate, Place birthPlace, LocalDate deathDate, Place deathPlace, String corpName, - LocalDateTime signingTime) { + /** + * Instancie la classe selon les paramètres indiqués. + * + * @param firstName le prénom + * @param birthName le nom de naissance + * @param fullName le nom complet + * @param givenName le nom d'usage + * @param gender le sexe + * @param birthDate la date de naissance + * @param birthPlace le lieu de naissance + * @param deathDate la date de décès + * @param deathPlace le lieu de décès + * @param corpName l'entité + * @param signingTime la date et heure de signature + */ + public Signer( + String firstName, + String birthName, + String fullName, + String givenName, + String gender, + LocalDate birthDate, + Place birthPlace, + LocalDate deathDate, + Place deathPlace, + String corpName, + LocalDateTime signingTime) { - super(firstName, birthName, fullName, givenName, gender, birthDate, birthPlace, deathDate, deathPlace, corpName); - this.signingTime = signingTime; - } + super( + firstName, + birthName, + fullName, + givenName, + gender, + birthDate, + birthPlace, + deathDate, + deathPlace, + corpName); + this.signingTime = signingTime; + } - /** - * Indique la date et l'heure de la signature. - * - * @return la date et heure de validation - */ - public LocalDateTime getSigningTime() { - return signingTime; - } + /** + * Indique la date et l'heure de la signature. + * + * @return la date et heure de validation + */ + public LocalDateTime getSigningTime() { + return signingTime; + } - /** - * Spécifie la date et l'heure de la signature. - * - * @param signingTime la date et heure de validation - */ - public void setSigningTime(LocalDateTime signingTime) { - this.signingTime = signingTime; - } + /** + * Spécifie la date et l'heure de la signature. + * + * @param signingTime la date et heure de validation + */ + public void setSigningTime(LocalDateTime signingTime) { + this.signingTime = signingTime; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - if (!super.equals(o)) { - return false; - } - Signer signer = (Signer) o; - return Objects.equals(signingTime, signer.signingTime); + @Override + public boolean equals(Object o) { + if (this == o) { + return true; } - - @Override - public int hashCode() { - return Objects.hash(super.hashCode(), signingTime); + if (o == null || getClass() != o.getClass()) { + return false; } + if (!super.equals(o)) { + return false; + } + Signer signer = (Signer) o; + return Objects.equals(signingTime, signer.signingTime); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), signingTime); + } } diff --git a/src/main/java/fr/xelians/sipg/model/SignerBuilder.java b/src/main/java/fr/xelians/sipg/model/SignerBuilder.java index 0a8f31b..56f1f77 100644 --- a/src/main/java/fr/xelians/sipg/model/SignerBuilder.java +++ b/src/main/java/fr/xelians/sipg/model/SignerBuilder.java @@ -24,336 +24,346 @@ import java.util.List; /** - * La classe SignerBuilder facilite la création d'un objet Signer en suivant le principe de conception du pattern - * builder. + * La classe SignerBuilder facilite la création d'un objet Signer en suivant le principe de + * conception du pattern builder. * * @author Emmanuel Deviller * @see Signer */ public class SignerBuilder { - private String firstName; - private String birthName; - private String fullName; - private String givenName; - private String gender; - private LocalDate birthDate; - private Place birthPlace; - private LocalDate deathDate; - private Place deathPlace; - private String corpName; - private LocalDateTime signingTime; - - private List nationality = new ArrayList<>(); - private List identifier = new ArrayList<>(); - private List function = new ArrayList<>(); - private List activity = new ArrayList<>(); - private List position = new ArrayList<>(); - private List role = new ArrayList<>(); - private List mandate = new ArrayList<>(); - - private SignerBuilder() { - } - - /** - * Instancie le builder. - * - * @return le builder - */ - public static SignerBuilder builder() { - return new SignerBuilder(); - } - - /** - * Spécifie le prénom de la personne. - * - * @param firstName le prénom - * @return le builder - */ - public SignerBuilder withFirstName(String firstName) { - this.firstName = firstName; - return this; - } - - /** - * Spécifie le nom de naissance de la personne. - * - * @param birthName le nom de naissance - * @return le builder - */ - public SignerBuilder withBirthName(String birthName) { - this.birthName = birthName; - return this; - } - - /** - * Spécifie le nom de complet de la personne. - * - * @param fullName le nom complet - * @return le builder - */ - public SignerBuilder withFullName(String fullName) { - this.fullName = fullName; - return this; - } - - /** - * Spécifie le nom d'usage de la personne. - * - * @param givenName le nom d'usage - * @return le builder - */ - public SignerBuilder withGivenName(String givenName) { - this.givenName = givenName; - return this; - } - - /** - * Spécifie le sexe de la personne. - * - * @param gender le sexe - * @return le builder - */ - public SignerBuilder withGender(String gender) { - this.gender = gender; - return this; - } - - /** - * Spécifie la date de naissance de la personne. - * - * @param birthDate la date de naissance - * @return le builder - */ - public SignerBuilder withBirthDate(LocalDate birthDate) { - this.birthDate = birthDate; - return this; - } - - /** - * Spécifie le lieu de naissance de la personne. - * - * @param birthPlace le lieu de naissance - * @return le builder - */ - public SignerBuilder withBirthPlace(Place birthPlace) { - this.birthPlace = birthPlace; - return this; - } - - /** - * Spécifie la date de décès de la personne. - * - * @param deathDate la date de décès - * @return le builder - */ - public SignerBuilder withDeathDate(LocalDate deathDate) { - this.deathDate = deathDate; - return this; - } - - /** - * Spécifie le lieu de décès de la personne. - * - * @param deathPlace le lieu de décès - * @return le builder - */ - public SignerBuilder withDeathPlace(Place deathPlace) { - this.deathPlace = deathPlace; - return this; - } - - /** - * Spécifie l'entité d'appartenance de la personne. - * - * @param corpName l'entité - * @return le builder - */ - public SignerBuilder withCorpName(String corpName) { - this.corpName = corpName; - return this; - } - - /** - * Spécifie la date et l'heure de la signature. - * - * @param signingTime la date et l'heure - * @return le builder - */ - public SignerBuilder withSigningTime(LocalDateTime signingTime) { - this.signingTime = signingTime; - return this; - } - - /** - * Spécifie la liste des nationalités de la personne. - * - * @param list la liste des nationalités - * @return le builder - */ - public SignerBuilder withNationality(List list) { - nationality = list; - return this; - } - - /** - * Spécifie la liste des identifiants de la personne. - * - * @param list la liste des identifiants - * @return le builder - */ - public SignerBuilder withIdentifier(List list) { - identifier = list; - return this; - } - - /** - * Spécifie la liste des fonctions de la personne. - * - * @param list la liste des fonctions - * @return le builder - */ - public SignerBuilder withFunction(List list) { - function = list; - return this; - } - - /** - * Spécifie la liste des activités de la personne. - * - * @param list la liste des activités - * @return le builder - */ - public SignerBuilder withActivity(List list) { - activity = list; - return this; - } - - /** - * Spécifie la liste des positions de la personne. - * - * @param list la liste des positions - * @return le builder - */ - public SignerBuilder withPosition(List list) { - position = list; - return this; - } - - /** - * Spécifie la liste des rôles de la personne. - * - * @param list la liste des rôles - * @return le builder - */ - public SignerBuilder withRole(List list) { - role = list; - return this; - } - - /** - * Spécifie la liste des propriétés intellectuelles ou artistiques de la personne. - * - * @param list la liste des propriétés intellectuelles ou artistiques - * @return le builder - */ - public SignerBuilder withMandate(List list) { - mandate = list; - return this; - } - - /** - * Ajoute une nationalité à la personne. - * - * @param value la nationalité à ajouter - * @return le builder - */ - public SignerBuilder addNationality(String value) { - nationality.add(value); - return this; - } - - /** - * Ajoute un identifiant à la personne. - * - * @param value l'identifiant à ajouter - * @return le builder - */ - public SignerBuilder addIdentifier(String value) { - identifier.add(value); - return this; - } - - /** - * Ajoute une fonction à la personne. - * - * @param value la fonction à ajouter - * @return le builder - */ - public SignerBuilder addFunction(String value) { - function.add(value); - return this; - } - - /** - * Ajoute une activité à la personne. - * - * @param value l'activité à ajouter - * @return le builder - */ - public SignerBuilder addActivity(String value) { - activity.add(value); - return this; - } - - /** - * Ajoute une position à la personne. - * - * @param value la position à ajouter - * @return le builder - */ - public SignerBuilder addPosition(String value) { - position.add(value); - return this; - } - - /** - * Ajoute un rôle à la personne. - * - * @param value le rôle à ajouter - * @return le builder - */ - public SignerBuilder addRole(String value) { - role.add(value); - return this; - } - - /** - * Ajoute une propriété intellectuelle ou artistique à la personne. - * - * @param value la propriété à ajouter - * @return le builder - */ - public SignerBuilder addMandate(String value) { - mandate.add(value); - return this; - } - - /** - * Instancie la classe Signer selon les paramètres précédemment spécifiés dans le builder. - * - * @return le signataire - */ - public Signer build() { - Signer signer = new Signer(firstName, birthName, fullName, givenName, gender, birthDate, birthPlace, deathDate, - deathPlace, corpName, signingTime); - nationality.forEach(signer::addNationality); - identifier.forEach(signer::addIdentifier); - function.forEach(signer::addFunction); - activity.forEach(signer::addActivity); - position.forEach(signer::addPosition); - role.forEach(signer::addRole); - mandate.forEach(signer::addMandate); - return signer; - } + private String firstName; + private String birthName; + private String fullName; + private String givenName; + private String gender; + private LocalDate birthDate; + private Place birthPlace; + private LocalDate deathDate; + private Place deathPlace; + private String corpName; + private LocalDateTime signingTime; + + private List nationality = new ArrayList<>(); + private List identifier = new ArrayList<>(); + private List function = new ArrayList<>(); + private List activity = new ArrayList<>(); + private List position = new ArrayList<>(); + private List role = new ArrayList<>(); + private List mandate = new ArrayList<>(); + + private SignerBuilder() {} + + /** + * Instancie le builder. + * + * @return le builder + */ + public static SignerBuilder builder() { + return new SignerBuilder(); + } + + /** + * Spécifie le prénom de la personne. + * + * @param firstName le prénom + * @return le builder + */ + public SignerBuilder withFirstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * Spécifie le nom de naissance de la personne. + * + * @param birthName le nom de naissance + * @return le builder + */ + public SignerBuilder withBirthName(String birthName) { + this.birthName = birthName; + return this; + } + + /** + * Spécifie le nom de complet de la personne. + * + * @param fullName le nom complet + * @return le builder + */ + public SignerBuilder withFullName(String fullName) { + this.fullName = fullName; + return this; + } + + /** + * Spécifie le nom d'usage de la personne. + * + * @param givenName le nom d'usage + * @return le builder + */ + public SignerBuilder withGivenName(String givenName) { + this.givenName = givenName; + return this; + } + + /** + * Spécifie le sexe de la personne. + * + * @param gender le sexe + * @return le builder + */ + public SignerBuilder withGender(String gender) { + this.gender = gender; + return this; + } + + /** + * Spécifie la date de naissance de la personne. + * + * @param birthDate la date de naissance + * @return le builder + */ + public SignerBuilder withBirthDate(LocalDate birthDate) { + this.birthDate = birthDate; + return this; + } + + /** + * Spécifie le lieu de naissance de la personne. + * + * @param birthPlace le lieu de naissance + * @return le builder + */ + public SignerBuilder withBirthPlace(Place birthPlace) { + this.birthPlace = birthPlace; + return this; + } + + /** + * Spécifie la date de décès de la personne. + * + * @param deathDate la date de décès + * @return le builder + */ + public SignerBuilder withDeathDate(LocalDate deathDate) { + this.deathDate = deathDate; + return this; + } + + /** + * Spécifie le lieu de décès de la personne. + * + * @param deathPlace le lieu de décès + * @return le builder + */ + public SignerBuilder withDeathPlace(Place deathPlace) { + this.deathPlace = deathPlace; + return this; + } + + /** + * Spécifie l'entité d'appartenance de la personne. + * + * @param corpName l'entité + * @return le builder + */ + public SignerBuilder withCorpName(String corpName) { + this.corpName = corpName; + return this; + } + + /** + * Spécifie la date et l'heure de la signature. + * + * @param signingTime la date et l'heure + * @return le builder + */ + public SignerBuilder withSigningTime(LocalDateTime signingTime) { + this.signingTime = signingTime; + return this; + } + + /** + * Spécifie la liste des nationalités de la personne. + * + * @param list la liste des nationalités + * @return le builder + */ + public SignerBuilder withNationality(List list) { + nationality = list; + return this; + } + + /** + * Spécifie la liste des identifiants de la personne. + * + * @param list la liste des identifiants + * @return le builder + */ + public SignerBuilder withIdentifier(List list) { + identifier = list; + return this; + } + + /** + * Spécifie la liste des fonctions de la personne. + * + * @param list la liste des fonctions + * @return le builder + */ + public SignerBuilder withFunction(List list) { + function = list; + return this; + } + + /** + * Spécifie la liste des activités de la personne. + * + * @param list la liste des activités + * @return le builder + */ + public SignerBuilder withActivity(List list) { + activity = list; + return this; + } + + /** + * Spécifie la liste des positions de la personne. + * + * @param list la liste des positions + * @return le builder + */ + public SignerBuilder withPosition(List list) { + position = list; + return this; + } + + /** + * Spécifie la liste des rôles de la personne. + * + * @param list la liste des rôles + * @return le builder + */ + public SignerBuilder withRole(List list) { + role = list; + return this; + } + + /** + * Spécifie la liste des propriétés intellectuelles ou artistiques de la personne. + * + * @param list la liste des propriétés intellectuelles ou artistiques + * @return le builder + */ + public SignerBuilder withMandate(List list) { + mandate = list; + return this; + } + + /** + * Ajoute une nationalité à la personne. + * + * @param value la nationalité à ajouter + * @return le builder + */ + public SignerBuilder addNationality(String value) { + nationality.add(value); + return this; + } + + /** + * Ajoute un identifiant à la personne. + * + * @param value l'identifiant à ajouter + * @return le builder + */ + public SignerBuilder addIdentifier(String value) { + identifier.add(value); + return this; + } + + /** + * Ajoute une fonction à la personne. + * + * @param value la fonction à ajouter + * @return le builder + */ + public SignerBuilder addFunction(String value) { + function.add(value); + return this; + } + + /** + * Ajoute une activité à la personne. + * + * @param value l'activité à ajouter + * @return le builder + */ + public SignerBuilder addActivity(String value) { + activity.add(value); + return this; + } + + /** + * Ajoute une position à la personne. + * + * @param value la position à ajouter + * @return le builder + */ + public SignerBuilder addPosition(String value) { + position.add(value); + return this; + } + + /** + * Ajoute un rôle à la personne. + * + * @param value le rôle à ajouter + * @return le builder + */ + public SignerBuilder addRole(String value) { + role.add(value); + return this; + } + + /** + * Ajoute une propriété intellectuelle ou artistique à la personne. + * + * @param value la propriété à ajouter + * @return le builder + */ + public SignerBuilder addMandate(String value) { + mandate.add(value); + return this; + } + + /** + * Instancie la classe Signer selon les paramètres précédemment spécifiés dans le builder. + * + * @return le signataire + */ + public Signer build() { + Signer signer = + new Signer( + firstName, + birthName, + fullName, + givenName, + gender, + birthDate, + birthPlace, + deathDate, + deathPlace, + corpName, + signingTime); + nationality.forEach(signer::addNationality); + identifier.forEach(signer::addIdentifier); + function.forEach(signer::addFunction); + activity.forEach(signer::addActivity); + position.forEach(signer::addPosition); + role.forEach(signer::addRole); + mandate.forEach(signer::addMandate); + return signer; + } } diff --git a/src/main/java/fr/xelians/sipg/model/StorageRules.java b/src/main/java/fr/xelians/sipg/model/StorageRules.java index c71c6ca..77dbfe2 100644 --- a/src/main/java/fr/xelians/sipg/model/StorageRules.java +++ b/src/main/java/fr/xelians/sipg/model/StorageRules.java @@ -21,60 +21,53 @@ import java.time.LocalDate; /** - *

- * La classe ReuseRules représente les règles d’utilité courante des archives. Chaque règle a une startDate et un - * identifiant de règle de référence pour la durée. Si aucune règle n'est spécifiée et que la date actuelle est dans la - * StarDate, la réponse de restriction est "Aucune restriction". Si la date est vide, la réponse de restriction est - * "Restreint" car il n'y a aucun moyen de calculer la date de fin. Si une règle et une date sont précisées, alors la - * règle est valable (restriction appliquée).

+ * La classe ReuseRules représente les règles d’utilité courante des archives. Chaque règle a une + * startDate et un identifiant de règle de référence pour la durée. Si aucune règle n'est spécifiée + * et que la date actuelle est dans la StarDate, la réponse de restriction est "Aucune restriction". + * Si la date est vide, la réponse de restriction est "Restreint" car il n'y a aucun moyen de + * calculer la date de fin. Si une règle et une date sont précisées, alors la règle est valable + * (restriction appliquée). * - *

- * Supporté en SEDA v2.1. - *

+ *

Supporté en SEDA v2.1. * * @author Emmanuel Deviller */ public class StorageRules extends AbstractSimpleRules { - /** - * L'action à réaliser à l'échéance de la durée d’utilité courante. - */ - protected String finalAction; + /** L'action à réaliser à l'échéance de la durée d’utilité courante. */ + protected String finalAction; - /** - * Instancie la classe. - */ - public StorageRules() { - super(); - } + /** Instancie la classe. */ + public StorageRules() { + super(); + } - /** - * Instancie la classe avec une règle spécifiée par les paramètres. - * - * @param name la référence de la règle d’utilité courante - * @param startDate date de départ de calcul de la règle d’utilité courante - */ - public StorageRules(String name, LocalDate startDate) { - super(); - addRule(name, startDate); - } + /** + * Instancie la classe avec une règle spécifiée par les paramètres. + * + * @param name la référence de la règle d’utilité courante + * @param startDate date de départ de calcul de la règle d’utilité courante + */ + public StorageRules(String name, LocalDate startDate) { + super(); + addRule(name, startDate); + } - /** - * Indique l'action à réaliser à l'échéance de la durée d’utilité courante. - * - * @return l'action à réaliser à l'échéance de la durée d’utilité courante - */ - public String getFinalAction() { - return finalAction; - } - - /** - * Spécifie l'action à réaliser à l'échéance de la durée d’utilité courante. - * - * @param finalAction l'action à réaliser à l'échéance de la durée d’utilité courante - */ - public void setFinalAction(String finalAction) { - this.finalAction = finalAction; - } + /** + * Indique l'action à réaliser à l'échéance de la durée d’utilité courante. + * + * @return l'action à réaliser à l'échéance de la durée d’utilité courante + */ + public String getFinalAction() { + return finalAction; + } + /** + * Spécifie l'action à réaliser à l'échéance de la durée d’utilité courante. + * + * @param finalAction l'action à réaliser à l'échéance de la durée d’utilité courante + */ + public void setFinalAction(String finalAction) { + this.finalAction = finalAction; + } } diff --git a/src/main/java/fr/xelians/sipg/model/Tag.java b/src/main/java/fr/xelians/sipg/model/Tag.java index f002b9c..7715188 100644 --- a/src/main/java/fr/xelians/sipg/model/Tag.java +++ b/src/main/java/fr/xelians/sipg/model/Tag.java @@ -18,103 +18,16 @@ */ package fr.xelians.sipg.model; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; -import fr.xelians.sipg.utils.SipUtils; -import org.apache.commons.lang3.Validate; - -import java.util.Objects; +import com.sun.istack.NotNull; /** * La classe Tag représente un mot-clé. * - *

- * Supporté en SEDA v2.1 et FNTC v4. - *

+ *

Supporté en SEDA v2.1 et FNTC v4. * * @author Emmanuel Deviller + * @param key La clé du mot-clé. + * @param value La valeur du mot-clé. */ -public class Tag { - - /** - * La clé du mot-clé. - */ - protected final String key; - - /** - * La valeur du mot-clé. - */ - protected final String value; - - /** - * Instancie la classe. - * - * @param key le clé du mot-clé - * @param value la valeur du mot-clé - */ - @JsonCreator - public Tag(@JsonProperty("key") String key, @JsonProperty("value") String value) { - Validate.notNull(value, SipUtils.NOT_NULL, "value"); - - this.key = key; - this.value = value; - } - - /** - * Indique la clé du mot-clé. - * - * @return la clé - */ - public String getKey() { - return key; - } - - /** - * Indique la valeur du mot-clé. - * - * @return la valeur - */ - public String getValue() { - return value; - } - - /** - * Indique si un autre objet est égal à celui-ci. - * - * @param o l'objet à vérifier - * @return true si l'objet est identique, false sinon - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Tag stringTag = (Tag) o; - return Objects.equals(key, stringTag.key) - && Objects.equals(value, stringTag.value); - } - - /** - * Indique la valeur du hash code de l'objet. - * - * @return le hash code de l'objet - */ - @Override - public int hashCode() { - return Objects.hash(key, value); - } - - /** - * Indique la représentation en tant que String de l'objet. - * - * @return la représentation en tant que String - */ - @Override - public String toString() { - return "Tag{" + "key=" + key + ", value=" + value + '}'; - } - -} +public record Tag(@JsonProperty("key") String key, @NotNull @JsonProperty("value") String value) {} diff --git a/src/main/java/fr/xelians/sipg/model/Text.java b/src/main/java/fr/xelians/sipg/model/Text.java index 73a43a6..f91664f 100644 --- a/src/main/java/fr/xelians/sipg/model/Text.java +++ b/src/main/java/fr/xelians/sipg/model/Text.java @@ -20,114 +20,106 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; - import java.util.Objects; /** * La classe Text représente un message localisable. * - *

- * Supporté en SEDA v2.1 et FNTC v4. - *

+ *

Supporté en SEDA v2.1 et FNTC v4. * * @author Emmanuel Deviller */ public class Text { - /** - * Le message - */ - protected final String message; + /** Le message */ + protected final String message; - /** - * La langue du message - */ - protected final String lang; + /** La langue du message */ + protected final String lang; - /** - * Instancie la classe. - * - * @param message le message - */ - public Text(String message) { - this(message, null); - } + /** + * Instancie la classe. + * + * @param message le message + */ + public Text(String message) { + this(message, null); + } - /** - * Instancie la classe. - * - * @param message le message - * @param lang la langue - */ - @JsonCreator - public Text(@JsonProperty("message") String message, @JsonProperty("lang") String lang) { - this.message = message; - this.lang = lang; - } + /** + * Instancie la classe. + * + * @param message le message + * @param lang la langue + */ + @JsonCreator + public Text(@JsonProperty("message") String message, @JsonProperty("lang") String lang) { + this.message = message; + this.lang = lang; + } - /** - * Indique le message. - * - * @return le message - */ - public String getMessage() { - return message; - } + /** + * Indique le message. + * + * @return le message + */ + public String getMessage() { + return message; + } - /** - * Indique la langue du message. - * - * @return la langue - */ - public String getLang() { - return lang; - } + /** + * Indique la langue du message. + * + * @return la langue + */ + public String getLang() { + return lang; + } - /** - * Indique la valeur du hash code de l'objet. - * - * @return le hash code de l'objet - */ - @Override - public int hashCode() { - int hash = 3; - hash = 67 * hash + Objects.hashCode(this.message); - hash = 67 * hash + Objects.hashCode(this.lang); - return hash; - } + /** + * Indique la valeur du hash code de l'objet. + * + * @return le hash code de l'objet + */ + @Override + public int hashCode() { + int hash = 3; + hash = 67 * hash + Objects.hashCode(this.message); + hash = 67 * hash + Objects.hashCode(this.lang); + return hash; + } - /** - * Indique si un autre objet est égal à celui-ci. - * - * @param obj l'objet à vérifier - * @return true si l'objet est identique, false sinon - */ - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (getClass() != obj.getClass()) { - return false; - } - final Text other = (Text) obj; - if (!Objects.equals(this.message, other.message)) { - return false; - } - return Objects.equals(this.lang, other.lang); + /** + * Indique si un autre objet est égal à celui-ci. + * + * @param obj l'objet à vérifier + * @return true si l'objet est identique, false sinon + */ + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; } - - /** - * Indique la représentation en tant que String de l'objet. - * - * @return la représentation en tant que String - */ - @Override - public String toString() { - return "Text{" + "message=" + message + ", lang=" + lang + '}'; + if (obj == null) { + return false; + } + if (getClass() != obj.getClass()) { + return false; + } + final Text other = (Text) obj; + if (!Objects.equals(this.message, other.message)) { + return false; } + return Objects.equals(this.lang, other.lang); + } + /** + * Indique la représentation en tant que String de l'objet. + * + * @return la représentation en tant que String + */ + @Override + public String toString() { + return "Text{" + "message=" + message + ", lang=" + lang + '}'; + } } diff --git a/src/main/java/fr/xelians/sipg/model/TextContentDataObject.java b/src/main/java/fr/xelians/sipg/model/TextContentDataObject.java index 33f5c95..cd307aa 100644 --- a/src/main/java/fr/xelians/sipg/model/TextContentDataObject.java +++ b/src/main/java/fr/xelians/sipg/model/TextContentDataObject.java @@ -22,15 +22,17 @@ import fr.xelians.sipg.utils.SipException; public class TextContentDataObject extends BinaryDataObject { - public TextContentDataObject() { - super(TEXT_CONTENT); - } + public TextContentDataObject() { + super(TEXT_CONTENT); + } - @Override - public void setBinaryVersion(String objectVersion) { - if (objectVersion == null || !objectVersion.startsWith(TEXT_CONTENT)) { - throw new SipException(String.format("The qualifier of type %s cannot be modified to %s", binaryVersion, objectVersion)); - } - this.binaryVersion = objectVersion; + @Override + public void setBinaryVersion(String objectVersion) { + if (objectVersion == null || !objectVersion.startsWith(TEXT_CONTENT)) { + throw new SipException( + String.format( + "The qualifier of type %s cannot be modified to %s", binaryVersion, objectVersion)); } + this.binaryVersion = objectVersion; + } } diff --git a/src/main/java/fr/xelians/sipg/model/ThumbnailDataObject.java b/src/main/java/fr/xelians/sipg/model/ThumbnailDataObject.java index 9325bd5..cdf5191 100644 --- a/src/main/java/fr/xelians/sipg/model/ThumbnailDataObject.java +++ b/src/main/java/fr/xelians/sipg/model/ThumbnailDataObject.java @@ -22,15 +22,17 @@ import fr.xelians.sipg.utils.SipException; public class ThumbnailDataObject extends BinaryDataObject { - public ThumbnailDataObject() { - super(THUMBNAIL); - } + public ThumbnailDataObject() { + super(THUMBNAIL); + } - @Override - public void setBinaryVersion(String objectVersion) { - if (objectVersion == null || !objectVersion.startsWith(THUMBNAIL)) { - throw new SipException(String.format("The qualifier of type %s cannot be modified to %s", binaryVersion, objectVersion)); - } - this.binaryVersion = objectVersion; + @Override + public void setBinaryVersion(String objectVersion) { + if (objectVersion == null || !objectVersion.startsWith(THUMBNAIL)) { + throw new SipException( + String.format( + "The qualifier of type %s cannot be modified to %s", binaryVersion, objectVersion)); } + this.binaryVersion = objectVersion; + } } diff --git a/src/main/java/fr/xelians/sipg/model/UpdateOperation.java b/src/main/java/fr/xelians/sipg/model/UpdateOperation.java index 3e8b00f..a77021a 100644 --- a/src/main/java/fr/xelians/sipg/model/UpdateOperation.java +++ b/src/main/java/fr/xelians/sipg/model/UpdateOperation.java @@ -22,67 +22,66 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * La classe UpdateOperation représente une opération de mise à jour d'une unité d'archive. (Not implemented yet) + * La classe UpdateOperation représente une opération de mise à jour d'une unité d'archive. (Not + * implemented yet) * - *

- * Supporté en SEDA v2.1. - *

+ *

Supporté en SEDA v2.1. * * @author Emmanuel Deviller */ public class UpdateOperation { - private String systemId; - private String metadataName; - private String metadataValue; + private String systemId; + private String metadataName; + private String metadataValue; - /** - * Instantiates a new Update operation. - * - * @param systemId the system id - */ - public UpdateOperation(String systemId) { - this.systemId = systemId; - } + /** + * Instantiates a new Update operation. + * + * @param systemId the system id + */ + public UpdateOperation(String systemId) { + this.systemId = systemId; + } - /** - * Instantiates a new Update operation. - * - * @param metadataName the metadata name - * @param metadataValue the metadata value - */ - @JsonCreator - public UpdateOperation(@JsonProperty("metadataName") String metadataName, - @JsonProperty("metadataValue") String metadataValue) { - this.metadataName = metadataName; - this.metadataValue = metadataValue; - } + /** + * Instantiates a new Update operation. + * + * @param metadataName the metadata name + * @param metadataValue the metadata value + */ + @JsonCreator + public UpdateOperation( + @JsonProperty("metadataName") String metadataName, + @JsonProperty("metadataValue") String metadataValue) { + this.metadataName = metadataName; + this.metadataValue = metadataValue; + } - /** - * Gets system id. - * - * @return the system id - */ - public String getSystemId() { - return systemId; - } + /** + * Gets system id. + * + * @return the system id + */ + public String getSystemId() { + return systemId; + } - /** - * Gets metadata name. - * - * @return the metadata name - */ - public String getMetadataName() { - return metadataName; - } - - /** - * Gets metadata value. - * - * @return the metadata value - */ - public String getMetadataValue() { - return metadataValue; - } + /** + * Gets metadata name. + * + * @return the metadata name + */ + public String getMetadataName() { + return metadataName; + } + /** + * Gets metadata value. + * + * @return the metadata value + */ + public String getMetadataValue() { + return metadataValue; + } } diff --git a/src/main/java/fr/xelians/sipg/model/Validator.java b/src/main/java/fr/xelians/sipg/model/Validator.java index 0ae9dff..c02b54a 100644 --- a/src/main/java/fr/xelians/sipg/model/Validator.java +++ b/src/main/java/fr/xelians/sipg/model/Validator.java @@ -19,7 +19,6 @@ package fr.xelians.sipg.model; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; - import java.time.LocalDate; import java.time.LocalDateTime; import java.util.Objects; @@ -27,9 +26,7 @@ /** * La classe Validator représente le validateur de la signature. * - *

- * Supporté en SEDA v2.1 - *

+ *

Supporté en SEDA v2.1 * * @author Emmanuel Deviller * @see Agent @@ -37,97 +34,112 @@ @JsonDeserialize(builder = ValidatorBuilder.class) public class Validator extends Agent { - /** - * Date et heure de validation de la signature. - */ - protected LocalDateTime validationTime; + /** Date et heure de validation de la signature. */ + protected LocalDateTime validationTime; - /** - * Instancie la classe. - */ - public Validator() { - super(); - } + /** Instancie la classe. */ + public Validator() { + super(); + } - /** - * Instancie la classe avec l'identifiant de l'agent. - * - * @param validationTime la date et heure de validation - */ - public Validator(LocalDateTime validationTime) { - super(); - this.validationTime = validationTime; - } + /** + * Instancie la classe avec l'identifiant de l'agent. + * + * @param validationTime la date et heure de validation + */ + public Validator(LocalDateTime validationTime) { + super(); + this.validationTime = validationTime; + } - /** - * Instancie la classe avec l'identifiant de l'agent. - * - * @param identifier l'identifiant - * @param validationTime la date et heure de validation - */ - public Validator(String identifier, LocalDateTime validationTime) { - super(identifier); - this.validationTime = validationTime; - } + /** + * Instancie la classe avec l'identifiant de l'agent. + * + * @param identifier l'identifiant + * @param validationTime la date et heure de validation + */ + public Validator(String identifier, LocalDateTime validationTime) { + super(identifier); + this.validationTime = validationTime; + } - /** - * Instancie la classe selon les paramètres indiqués. - * - * @param firstName le prénom - * @param birthName le nom de naissance - * @param fullName le nom complet - * @param givenName le nom d'usage - * @param gender le sexe - * @param birthDate la date de naissance - * @param birthPlace le lieu de naissance - * @param deathDate la date de décès - * @param deathPlace le lieu de décès - * @param corpName l'entité - * @param validationTime la date et heure de validation - */ - public Validator(String firstName, String birthName, String fullName, String givenName, String gender, - LocalDate birthDate, Place birthPlace, LocalDate deathDate, Place deathPlace, String corpName, - LocalDateTime validationTime) { + /** + * Instancie la classe selon les paramètres indiqués. + * + * @param firstName le prénom + * @param birthName le nom de naissance + * @param fullName le nom complet + * @param givenName le nom d'usage + * @param gender le sexe + * @param birthDate la date de naissance + * @param birthPlace le lieu de naissance + * @param deathDate la date de décès + * @param deathPlace le lieu de décès + * @param corpName l'entité + * @param validationTime la date et heure de validation + */ + public Validator( + String firstName, + String birthName, + String fullName, + String givenName, + String gender, + LocalDate birthDate, + Place birthPlace, + LocalDate deathDate, + Place deathPlace, + String corpName, + LocalDateTime validationTime) { - super(firstName, birthName, fullName, givenName, gender, birthDate, birthPlace, deathDate, deathPlace, corpName); - this.validationTime = validationTime; - } + super( + firstName, + birthName, + fullName, + givenName, + gender, + birthDate, + birthPlace, + deathDate, + deathPlace, + corpName); + this.validationTime = validationTime; + } - /** - * Indique la date et l'heure de validation de la signature. - * - * @return la date et heure de validation - */ - public LocalDateTime getValidationTime() { - return validationTime; - } + /** + * Indique la date et l'heure de validation de la signature. + * + * @return la date et heure de validation + */ + public LocalDateTime getValidationTime() { + return validationTime; + } - /** - * Spécifie la date et l'heure de validation de la signature. - * - * @param validationTime la date et heure de validation - */ - public void setValidationTime(LocalDateTime validationTime) { - this.validationTime = validationTime; - } + /** + * Spécifie la date et l'heure de validation de la signature. + * + * @param validationTime la date et heure de validation + */ + public void setValidationTime(LocalDateTime validationTime) { + this.validationTime = validationTime; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - if (!super.equals(o)) { - return false; - } - Validator validator = (Validator) o; - return Objects.equals(validationTime, validator.validationTime); + @Override + public boolean equals(Object o) { + if (this == o) { + return true; } - - @Override - public int hashCode() { - return Objects.hash(super.hashCode(), validationTime); + if (o == null || getClass() != o.getClass()) { + return false; } + if (!super.equals(o)) { + return false; + } + Validator validator = (Validator) o; + return Objects.equals(validationTime, validator.validationTime); + } + + @Override + public int hashCode() { + return Objects.hash(super.hashCode(), validationTime); + } } diff --git a/src/main/java/fr/xelians/sipg/model/ValidatorBuilder.java b/src/main/java/fr/xelians/sipg/model/ValidatorBuilder.java index ac9a4b5..64a6f23 100644 --- a/src/main/java/fr/xelians/sipg/model/ValidatorBuilder.java +++ b/src/main/java/fr/xelians/sipg/model/ValidatorBuilder.java @@ -24,337 +24,347 @@ import java.util.List; /** - * La classe ValidatorBuilder facilite la création d'un objet Validator en suivant le principe de conception du pattern - * builder. + * La classe ValidatorBuilder facilite la création d'un objet Validator en suivant le principe de + * conception du pattern builder. * * @author Emmanuel Deviller * @see Validator */ public class ValidatorBuilder { - private String firstName; - private String birthName; - private String fullName; - private String givenName; - private String gender; - private LocalDate birthDate; - private Place birthPlace; - private LocalDate deathDate; - private Place deathPlace; - private String corpName; - private LocalDateTime validationTime; - - private List nationality = new ArrayList<>(); - private List identifier = new ArrayList<>(); - private List function = new ArrayList<>(); - private List activity = new ArrayList<>(); - private List position = new ArrayList<>(); - private List role = new ArrayList<>(); - private List mandate = new ArrayList<>(); - - private ValidatorBuilder() { - } - - /** - * Instancie le builder. - * - * @return le builder - */ - public static ValidatorBuilder builder() { - return new ValidatorBuilder(); - } - - /** - * Spécifie le prénom de la personne. - * - * @param firstName le prénom - * @return le builder - */ - public ValidatorBuilder withFirstName(String firstName) { - this.firstName = firstName; - return this; - } - - /** - * Spécifie le nom de naissance de la personne. - * - * @param birthName le nom de naissance - * @return le builder - */ - public ValidatorBuilder withBirthName(String birthName) { - this.birthName = birthName; - return this; - } - - /** - * Spécifie le nom de complet de la personne. - * - * @param fullName le nom complet - * @return le builder - */ - public ValidatorBuilder withFullName(String fullName) { - this.fullName = fullName; - return this; - } - - /** - * Spécifie le nom d'usage de la personne. - * - * @param givenName le nom d'usage - * @return le builder - */ - public ValidatorBuilder withGivenName(String givenName) { - this.givenName = givenName; - return this; - } - - /** - * Spécifie le sexe de la personne. - * - * @param gender le sexe - * @return le builder - */ - public ValidatorBuilder withGender(String gender) { - this.gender = gender; - return this; - } - - /** - * Spécifie la date de naissance de la personne. - * - * @param birthDate la date de naissance - * @return le builder - */ - public ValidatorBuilder withBirthDate(LocalDate birthDate) { - this.birthDate = birthDate; - return this; - } - - /** - * Spécifie le lieu de naissance de la personne. - * - * @param birthPlace le lieu de naissance - * @return le builder - */ - public ValidatorBuilder withBirthPlace(Place birthPlace) { - this.birthPlace = birthPlace; - return this; - } - - /** - * Spécifie la date de décès de la personne. - * - * @param deathDate la date de décès - * @return le builder - */ - public ValidatorBuilder withDeathDate(LocalDate deathDate) { - this.deathDate = deathDate; - return this; - } - - /** - * Spécifie le lieu de décès de la personne. - * - * @param deathPlace le lieu de décès - * @return le builder - */ - public ValidatorBuilder withDeathPlace(Place deathPlace) { - this.deathPlace = deathPlace; - return this; - } - - /** - * Spécifie l'entité d'appartenance de la personne. - * - * @param corpName l'entité - * @return le builder - */ - public ValidatorBuilder withCorpName(String corpName) { - this.corpName = corpName; - return this; - } - - /** - * Spécifie la date et l'heure de la validation. - * - * @param validationTime la date et l'heure - * @return le builder - */ - public ValidatorBuilder withValidationTime(LocalDateTime validationTime) { - this.validationTime = validationTime; - return this; - } - - /** - * Spécifie la liste des nationalités de la personne. - * - * @param list la liste des nationalités - * @return le builder - */ - public ValidatorBuilder withNationality(List list) { - nationality = list; - return this; - } - - /** - * Spécifie la liste des identifiants de la personne. - * - * @param list la liste des identifiants - * @return le builder - */ - public ValidatorBuilder withIdentifier(List list) { - identifier = list; - return this; - } - - /** - * Spécifie la liste des fonctions de la personne. - * - * @param list la liste des fonctions - * @return le builder - */ - public ValidatorBuilder withFunction(List list) { - function = list; - return this; - } - - /** - * Spécifie la liste des activités de la personne. - * - * @param list la liste des activités - * @return le builder - */ - public ValidatorBuilder withActivity(List list) { - activity = list; - return this; - } - - /** - * Spécifie la liste des positions de la personne. - * - * @param list la liste des positions - * @return le builder - */ - public ValidatorBuilder withPosition(List list) { - position = list; - return this; - } - - /** - * Spécifie la liste des rôles de la personne. - * - * @param list la liste des rôles - * @return le builder - */ - public ValidatorBuilder withRole(List list) { - role = list; - return this; - } - - /** - * Spécifie la liste des propriétés intellectuelles ou artistiques de la personne. - * - * @param list la liste des propriétés intellectuelles ou artistiques - * @return le builder - */ - public ValidatorBuilder withMandate(List list) { - mandate = list; - return this; - } - - /** - * Ajoute une nationalité à la personne. - * - * @param value la nationalité à ajouter - * @return le builder - */ - public ValidatorBuilder addNationality(String value) { - nationality.add(value); - return this; - } - - /** - * Ajoute un identifiant à la personne. - * - * @param value l'identifiant à ajouter - * @return le builder - */ - public ValidatorBuilder addIdentifier(String value) { - identifier.add(value); - return this; - } - - /** - * Ajoute une fonction à la personne. - * - * @param value la fonction à ajouter - * @return le builder - */ - public ValidatorBuilder addFunction(String value) { - function.add(value); - return this; - } - - /** - * Ajoute une activité à la personne. - * - * @param value l'activité à ajouter - * @return le builder - */ - public ValidatorBuilder addActivity(String value) { - activity.add(value); - return this; - } - - /** - * Ajoute une position à la personne. - * - * @param value la position à ajouter - * @return le builder - */ - public ValidatorBuilder addPosition(String value) { - position.add(value); - return this; - } - - /** - * Ajoute un rôle à la personne. - * - * @param value le rôle à ajouter - * @return le builder - */ - public ValidatorBuilder addRole(String value) { - role.add(value); - return this; - } - - /** - * Ajoute une propriété intellectuelle ou artistique à la personne. - * - * @param value la propriété à ajouter - * @return le builder - */ - public ValidatorBuilder addMandate(String value) { - mandate.add(value); - return this; - } - - /** - * Instancie la classe Validator selon les paramètres précédemment spécifiés dans le builder. - * - * @return le validateur - */ - public Validator build() { - Validator validator = new Validator(firstName, birthName, fullName, givenName, gender, birthDate, birthPlace, - deathDate, deathPlace, corpName, validationTime); - - nationality.forEach(validator::addNationality); - identifier.forEach(validator::addIdentifier); - function.forEach(validator::addFunction); - activity.forEach(validator::addActivity); - position.forEach(validator::addPosition); - role.forEach(validator::addRole); - mandate.forEach(validator::addMandate); - return validator; - } + private String firstName; + private String birthName; + private String fullName; + private String givenName; + private String gender; + private LocalDate birthDate; + private Place birthPlace; + private LocalDate deathDate; + private Place deathPlace; + private String corpName; + private LocalDateTime validationTime; + + private List nationality = new ArrayList<>(); + private List identifier = new ArrayList<>(); + private List function = new ArrayList<>(); + private List activity = new ArrayList<>(); + private List position = new ArrayList<>(); + private List role = new ArrayList<>(); + private List mandate = new ArrayList<>(); + + private ValidatorBuilder() {} + + /** + * Instancie le builder. + * + * @return le builder + */ + public static ValidatorBuilder builder() { + return new ValidatorBuilder(); + } + + /** + * Spécifie le prénom de la personne. + * + * @param firstName le prénom + * @return le builder + */ + public ValidatorBuilder withFirstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * Spécifie le nom de naissance de la personne. + * + * @param birthName le nom de naissance + * @return le builder + */ + public ValidatorBuilder withBirthName(String birthName) { + this.birthName = birthName; + return this; + } + + /** + * Spécifie le nom de complet de la personne. + * + * @param fullName le nom complet + * @return le builder + */ + public ValidatorBuilder withFullName(String fullName) { + this.fullName = fullName; + return this; + } + + /** + * Spécifie le nom d'usage de la personne. + * + * @param givenName le nom d'usage + * @return le builder + */ + public ValidatorBuilder withGivenName(String givenName) { + this.givenName = givenName; + return this; + } + + /** + * Spécifie le sexe de la personne. + * + * @param gender le sexe + * @return le builder + */ + public ValidatorBuilder withGender(String gender) { + this.gender = gender; + return this; + } + + /** + * Spécifie la date de naissance de la personne. + * + * @param birthDate la date de naissance + * @return le builder + */ + public ValidatorBuilder withBirthDate(LocalDate birthDate) { + this.birthDate = birthDate; + return this; + } + + /** + * Spécifie le lieu de naissance de la personne. + * + * @param birthPlace le lieu de naissance + * @return le builder + */ + public ValidatorBuilder withBirthPlace(Place birthPlace) { + this.birthPlace = birthPlace; + return this; + } + + /** + * Spécifie la date de décès de la personne. + * + * @param deathDate la date de décès + * @return le builder + */ + public ValidatorBuilder withDeathDate(LocalDate deathDate) { + this.deathDate = deathDate; + return this; + } + + /** + * Spécifie le lieu de décès de la personne. + * + * @param deathPlace le lieu de décès + * @return le builder + */ + public ValidatorBuilder withDeathPlace(Place deathPlace) { + this.deathPlace = deathPlace; + return this; + } + + /** + * Spécifie l'entité d'appartenance de la personne. + * + * @param corpName l'entité + * @return le builder + */ + public ValidatorBuilder withCorpName(String corpName) { + this.corpName = corpName; + return this; + } + + /** + * Spécifie la date et l'heure de la validation. + * + * @param validationTime la date et l'heure + * @return le builder + */ + public ValidatorBuilder withValidationTime(LocalDateTime validationTime) { + this.validationTime = validationTime; + return this; + } + + /** + * Spécifie la liste des nationalités de la personne. + * + * @param list la liste des nationalités + * @return le builder + */ + public ValidatorBuilder withNationality(List list) { + nationality = list; + return this; + } + + /** + * Spécifie la liste des identifiants de la personne. + * + * @param list la liste des identifiants + * @return le builder + */ + public ValidatorBuilder withIdentifier(List list) { + identifier = list; + return this; + } + + /** + * Spécifie la liste des fonctions de la personne. + * + * @param list la liste des fonctions + * @return le builder + */ + public ValidatorBuilder withFunction(List list) { + function = list; + return this; + } + + /** + * Spécifie la liste des activités de la personne. + * + * @param list la liste des activités + * @return le builder + */ + public ValidatorBuilder withActivity(List list) { + activity = list; + return this; + } + + /** + * Spécifie la liste des positions de la personne. + * + * @param list la liste des positions + * @return le builder + */ + public ValidatorBuilder withPosition(List list) { + position = list; + return this; + } + + /** + * Spécifie la liste des rôles de la personne. + * + * @param list la liste des rôles + * @return le builder + */ + public ValidatorBuilder withRole(List list) { + role = list; + return this; + } + + /** + * Spécifie la liste des propriétés intellectuelles ou artistiques de la personne. + * + * @param list la liste des propriétés intellectuelles ou artistiques + * @return le builder + */ + public ValidatorBuilder withMandate(List list) { + mandate = list; + return this; + } + + /** + * Ajoute une nationalité à la personne. + * + * @param value la nationalité à ajouter + * @return le builder + */ + public ValidatorBuilder addNationality(String value) { + nationality.add(value); + return this; + } + + /** + * Ajoute un identifiant à la personne. + * + * @param value l'identifiant à ajouter + * @return le builder + */ + public ValidatorBuilder addIdentifier(String value) { + identifier.add(value); + return this; + } + + /** + * Ajoute une fonction à la personne. + * + * @param value la fonction à ajouter + * @return le builder + */ + public ValidatorBuilder addFunction(String value) { + function.add(value); + return this; + } + + /** + * Ajoute une activité à la personne. + * + * @param value l'activité à ajouter + * @return le builder + */ + public ValidatorBuilder addActivity(String value) { + activity.add(value); + return this; + } + + /** + * Ajoute une position à la personne. + * + * @param value la position à ajouter + * @return le builder + */ + public ValidatorBuilder addPosition(String value) { + position.add(value); + return this; + } + + /** + * Ajoute un rôle à la personne. + * + * @param value le rôle à ajouter + * @return le builder + */ + public ValidatorBuilder addRole(String value) { + role.add(value); + return this; + } + + /** + * Ajoute une propriété intellectuelle ou artistique à la personne. + * + * @param value la propriété à ajouter + * @return le builder + */ + public ValidatorBuilder addMandate(String value) { + mandate.add(value); + return this; + } + + /** + * Instancie la classe Validator selon les paramètres précédemment spécifiés dans le builder. + * + * @return le validateur + */ + public Validator build() { + Validator validator = + new Validator( + firstName, + birthName, + fullName, + givenName, + gender, + birthDate, + birthPlace, + deathDate, + deathPlace, + corpName, + validationTime); + + nationality.forEach(validator::addNationality); + identifier.forEach(validator::addIdentifier); + function.forEach(validator::addFunction); + activity.forEach(validator::addActivity); + position.forEach(validator::addPosition); + role.forEach(validator::addRole); + mandate.forEach(validator::addMandate); + return validator; + } } diff --git a/src/main/java/fr/xelians/sipg/model/package-info.java b/src/main/java/fr/xelians/sipg/model/package-info.java index f8e884b..5a83033 100644 --- a/src/main/java/fr/xelians/sipg/model/package-info.java +++ b/src/main/java/fr/xelians/sipg/model/package-info.java @@ -1,8 +1,8 @@ /** * Les classes servant à modéliser une archive. - *

- * Ces classes contiennent des annotations Jackson. + * + *

Ces classes contiennent des annotations Jackson. * * @author Emmanuel Deviller */ -package fr.xelians.sipg.model; \ No newline at end of file +package fr.xelians.sipg.model; diff --git a/src/main/java/fr/xelians/sipg/service/common/LSInputImpl.java b/src/main/java/fr/xelians/sipg/service/common/LSInputImpl.java index 4cd08e0..1b1f468 100644 --- a/src/main/java/fr/xelians/sipg/service/common/LSInputImpl.java +++ b/src/main/java/fr/xelians/sipg/service/common/LSInputImpl.java @@ -20,15 +20,14 @@ import fr.xelians.sipg.service.fntcv4.Fntcv4Resolver; import fr.xelians.sipg.service.sedav2.Sedav2Resolver; -import org.w3c.dom.ls.LSInput; - import java.io.InputStream; import java.io.Reader; +import org.w3c.dom.ls.LSInput; /** - * La classe LSInputImpl définit une implémentation de l'interface LSInput. Elle est utilisée dans les classes de type - * Resolver pour résoudre les accès aux schémas inclus dans les XSD. Note. Il est fortement déconseillé d'utiliser cette - * classe en dehors de la librairie. + * La classe LSInputImpl définit une implémentation de l'interface LSInput. Elle est utilisée dans + * les classes de type Resolver pour résoudre les accès aux schémas inclus dans les XSD. Note. Il + * est fortement déconseillé d'utiliser cette classe en dehors de la librairie. * * @author Emmanuel Deviller * @see Fntcv4Resolver @@ -36,143 +35,123 @@ */ public class LSInputImpl implements LSInput { - /** - * L'identifiant public du schéma. - */ - protected String publicId; - - /** - * L'identifiant système du schéma. - */ - protected String systemId; - - /** - * L'identifiant de base du système du schéma. - */ - protected String baseSystemId; - - /** - * Le flux d'entrée binaire. - */ - protected InputStream byteStream; - - /** - * Le flux d'entrée des caractères. - */ - protected Reader charStream; - - /** - * Les données sous forme de chaîne de caractères. - */ - protected String data; - - /** - * L'encodage. - */ - protected String encoding; - - /** - * Le texte certifié. - */ - protected boolean certifiedText; - - /** - * Instantiates a new Ls input. - */ - public LSInputImpl() { - } - - /** - * Instancie la classe. - * - * @param publicId l'identifiant public du schéma - * @param systemId l'identifiant système du schéma - * @param byteStream le flux d'entrée binaire - */ - public LSInputImpl(String publicId, String systemId, InputStream byteStream) { - this.publicId = publicId; - this.systemId = systemId; - this.byteStream = byteStream; - } - - @Override - public InputStream getByteStream() { - return byteStream; - } - - @Override - public void setByteStream(InputStream byteStream) { - this.byteStream = byteStream; - } - - @Override - public Reader getCharacterStream() { - return charStream; - } - - @Override - public void setCharacterStream(Reader characterStream) { - charStream = characterStream; - } - - @Override - public String getStringData() { - return data; - } - - @Override - public void setStringData(String stringData) { - data = stringData; - } - - @Override - public String getEncoding() { - return encoding; - } - - @Override - public void setEncoding(String encoding) { - this.encoding = encoding; - } - - @Override - public String getPublicId() { - return publicId; - } - - @Override - public void setPublicId(String publicId) { - this.publicId = publicId; - } - - @Override - public String getSystemId() { - return systemId; - } - - @Override - public void setSystemId(String systemId) { - this.systemId = systemId; - } - - @Override - public String getBaseURI() { - return baseSystemId; - } - - @Override - public void setBaseURI(String baseURI) { - baseSystemId = baseURI; - } - - @Override - public boolean getCertifiedText() { - return certifiedText; - } - - @Override - public void setCertifiedText(boolean certifiedText) { - this.certifiedText = certifiedText; - } - + /** L'identifiant public du schéma. */ + protected String publicId; + + /** L'identifiant système du schéma. */ + protected String systemId; + + /** L'identifiant de base du système du schéma. */ + protected String baseSystemId; + + /** Le flux d'entrée binaire. */ + protected InputStream byteStream; + + /** Le flux d'entrée des caractères. */ + protected Reader charStream; + + /** Les données sous forme de chaîne de caractères. */ + protected String data; + + /** L'encodage. */ + protected String encoding; + + /** Le texte certifié. */ + protected boolean certifiedText; + + /** Instantiates a new Ls input. */ + public LSInputImpl() {} + + /** + * Instancie la classe. + * + * @param publicId l'identifiant public du schéma + * @param systemId l'identifiant système du schéma + * @param byteStream le flux d'entrée binaire + */ + public LSInputImpl(String publicId, String systemId, InputStream byteStream) { + this.publicId = publicId; + this.systemId = systemId; + this.byteStream = byteStream; + } + + @Override + public InputStream getByteStream() { + return byteStream; + } + + @Override + public void setByteStream(InputStream byteStream) { + this.byteStream = byteStream; + } + + @Override + public Reader getCharacterStream() { + return charStream; + } + + @Override + public void setCharacterStream(Reader characterStream) { + charStream = characterStream; + } + + @Override + public String getStringData() { + return data; + } + + @Override + public void setStringData(String stringData) { + data = stringData; + } + + @Override + public String getEncoding() { + return encoding; + } + + @Override + public void setEncoding(String encoding) { + this.encoding = encoding; + } + + @Override + public String getPublicId() { + return publicId; + } + + @Override + public void setPublicId(String publicId) { + this.publicId = publicId; + } + + @Override + public String getSystemId() { + return systemId; + } + + @Override + public void setSystemId(String systemId) { + this.systemId = systemId; + } + + @Override + public String getBaseURI() { + return baseSystemId; + } + + @Override + public void setBaseURI(String baseURI) { + baseSystemId = baseURI; + } + + @Override + public boolean getCertifiedText() { + return certifiedText; + } + + @Override + public void setCertifiedText(boolean certifiedText) { + this.certifiedText = certifiedText; + } } diff --git a/src/main/java/fr/xelians/sipg/service/common/ProgressEvent.java b/src/main/java/fr/xelians/sipg/service/common/ProgressEvent.java index 3c8d438..d34bf84 100644 --- a/src/main/java/fr/xelians/sipg/service/common/ProgressEvent.java +++ b/src/main/java/fr/xelians/sipg/service/common/ProgressEvent.java @@ -21,70 +21,11 @@ /** * La classe ProgressEvent représente un évènement associé à la progression d'un processus. * + * @param id l'identifiant de l'événement + * @param status le statut de l'événement + * @param step l'étape de l'événement + * @param message le message de l'événement * @param le type de l'étape de l'événement * @author Emmanuel Deviller */ -public class ProgressEvent { - - private final String id; - private final ProgressState status; - private final T step; - private final String message; - - /** - * Instancie la classe. - * - * @param id l'identifiant de l'événement - * @param status le statut de l'événement - * @param step l'étape de l'événement - * @param message le message de l'événement - */ - public ProgressEvent(String id, ProgressState status, T step, String message) { - this.id = id; - this.status = status; - this.step = step; - this.message = message; - } - - /** - * Indique l'identifiant de l'événement. - * - * @return l'identifiant de l'événement - */ - public String getId() { - return id; - } - - /** - * Indique le statut de l'événement. - * - * @return le statut - */ - public ProgressState getStatus() { - return status; - } - - /** - * Indique l'étape de l'événement. - * - * @return l'étape - */ - public T getStep() { - return step; - } - - /** - * Indique le message de l'événement. - * - * @return le message - */ - public String getMessage() { - return message; - } - - @Override - public String toString() { - return "ProgressEvent{" + "id=" + id + ", status=" + status + ", step=" + step + ", message=" + message + '}'; - } - -} +public record ProgressEvent(String id, ProgressState status, T step, String message) {} diff --git a/src/main/java/fr/xelians/sipg/service/common/ProgressListener.java b/src/main/java/fr/xelians/sipg/service/common/ProgressListener.java index d72da88..bc4bac9 100644 --- a/src/main/java/fr/xelians/sipg/service/common/ProgressListener.java +++ b/src/main/java/fr/xelians/sipg/service/common/ProgressListener.java @@ -19,18 +19,18 @@ package fr.xelians.sipg.service.common; /** - * L'interface ProgressListener représente le contrat nécessaire au suivi de la progression d'un processus. + * L'interface ProgressListener représente le contrat nécessaire au suivi de la progression d'un + * processus. * * @param le type de l'étape de l'événement * @author Emmanuel Deviller */ public interface ProgressListener { - /** - * Permet de suivre la progression d'un processus. - * - * @param progressEvent l'événement émis par le processus en progression - */ - void progressChanged(ProgressEvent progressEvent); - + /** + * Permet de suivre la progression d'un processus. + * + * @param progressEvent l'événement émis par le processus en progression + */ + void progressChanged(ProgressEvent progressEvent); } diff --git a/src/main/java/fr/xelians/sipg/service/common/ProgressState.java b/src/main/java/fr/xelians/sipg/service/common/ProgressState.java index da7f24b..35a524d 100644 --- a/src/main/java/fr/xelians/sipg/service/common/ProgressState.java +++ b/src/main/java/fr/xelians/sipg/service/common/ProgressState.java @@ -24,12 +24,8 @@ * @author Emmanuel Deviller */ public enum ProgressState { - /** - * Success progress state. - */ - SUCCESS, - /** - * Fail progress state. - */ - FAIL, + /** Success progress state. */ + SUCCESS, + /** Fail progress state. */ + FAIL, } diff --git a/src/main/java/fr/xelians/sipg/service/common/package-info.java b/src/main/java/fr/xelians/sipg/service/common/package-info.java index 37ca8ca..b4a16ba 100644 --- a/src/main/java/fr/xelians/sipg/service/common/package-info.java +++ b/src/main/java/fr/xelians/sipg/service/common/package-info.java @@ -1,8 +1,8 @@ /** * Les classes communes aux services. - *

- * Il est fortement déconseillé d'utiliser directement ces classes en dehors de la librairie. + * + *

Il est fortement déconseillé d'utiliser directement ces classes en dehors de la librairie. * * @author Emmanuel Deviller */ -package fr.xelians.sipg.service.common; \ No newline at end of file +package fr.xelians.sipg.service.common; diff --git a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4BinaryObject.java b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4BinaryObject.java index 1dfb9e6..6515fef 100644 --- a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4BinaryObject.java +++ b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4BinaryObject.java @@ -21,150 +21,159 @@ import java.util.Objects; /** - * La classe Fntcv4BinaryObject représente un objet binaire (ie. un fichier PDF, JPEG, MPEG, etc.) . + * La classe Fntcv4BinaryObject représente un objet binaire (ie. un fichier PDF, JPEG, MPEG, etc.). * * @author Emmanuel Deviller */ class Fntcv4BinaryObject { - private String uri; - private long size; - private String digest; - private String algorithm; - private String format; - - /** - * Gets uri. - * - * @return the uri - */ - public String getUri() { - return uri; + private String uri; + private long size; + private String digest; + private String algorithm; + private String format; + + /** + * Gets uri. + * + * @return the uri + */ + public String getUri() { + return uri; + } + + /** + * Sets uri. + * + * @param uri the uri + */ + public void setUri(String uri) { + this.uri = uri; + } + + /** + * Gets size. + * + * @return the size + */ + public long getSize() { + return size; + } + + /** + * Sets size. + * + * @param size the size + */ + public void setSize(long size) { + this.size = size; + } + + /** + * Gets digest. + * + * @return the digest + */ + public String getDigest() { + return digest; + } + + /** + * Sets digest. + * + * @param digest the digest + */ + public void setDigest(String digest) { + this.digest = digest; + } + + /** + * Gets algorithm. + * + * @return the algorithm + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Sets algorithm. + * + * @param algorithm the algorithm + */ + public void setAlgorithm(String algorithm) { + this.algorithm = algorithm; + } + + /** + * Gets format. + * + * @return the format + */ + public String getFormat() { + return format; + } + + /** + * Sets format. + * + * @param format the format + */ + public void setFormat(String format) { + this.format = format; + } + + @Override + public int hashCode() { + int hash = 3; + hash = 41 * hash + Objects.hashCode(this.uri); + hash = 41 * hash + Long.hashCode(this.size); + hash = 41 * hash + Objects.hashCode(this.digest); + hash = 41 * hash + Objects.hashCode(this.algorithm); + hash = 41 * hash + Objects.hashCode(this.format); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; } - - /** - * Sets uri. - * - * @param uri the uri - */ - public void setUri(String uri) { - this.uri = uri; - } - - /** - * Gets size. - * - * @return the size - */ - public long getSize() { - return size; - } - - /** - * Sets size. - * - * @param size the size - */ - public void setSize(long size) { - this.size = size; + if (obj == null) { + return false; } - - /** - * Gets digest. - * - * @return the digest - */ - public String getDigest() { - return digest; + if (getClass() != obj.getClass()) { + return false; } - - /** - * Sets digest. - * - * @param digest the digest - */ - public void setDigest(String digest) { - this.digest = digest; + final Fntcv4BinaryObject other = (Fntcv4BinaryObject) obj; + if (this.size != other.size) { + return false; } - - /** - * Gets algorithm. - * - * @return the algorithm - */ - public String getAlgorithm() { - return algorithm; + if (!Objects.equals(this.uri, other.uri)) { + return false; } - - /** - * Sets algorithm. - * - * @param algorithm the algorithm - */ - public void setAlgorithm(String algorithm) { - this.algorithm = algorithm; + if (!Objects.equals(this.digest, other.digest)) { + return false; } - - /** - * Gets format. - * - * @return the format - */ - public String getFormat() { - return format; + if (!Objects.equals(this.algorithm, other.algorithm)) { + return false; } - - /** - * Sets format. - * - * @param format the format - */ - public void setFormat(String format) { - this.format = format; - } - - @Override - public int hashCode() { - int hash = 3; - hash = 41 * hash + Objects.hashCode(this.uri); - hash = 41 * hash + (int) (this.size ^ (this.size >>> 32)); - hash = 41 * hash + Objects.hashCode(this.digest); - hash = 41 * hash + Objects.hashCode(this.algorithm); - hash = 41 * hash + Objects.hashCode(this.format); - return hash; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (getClass() != obj.getClass()) { - return false; - } - final Fntcv4BinaryObject other = (Fntcv4BinaryObject) obj; - if (this.size != other.size) { - return false; - } - if (!Objects.equals(this.uri, other.uri)) { - return false; - } - if (!Objects.equals(this.digest, other.digest)) { - return false; - } - if (!Objects.equals(this.algorithm, other.algorithm)) { - return false; - } - return Objects.equals(this.format, other.format); - } - - @Override - public String toString() { - return "BinaryData{" + "uri=" + uri + ", size=" + size + ", digest=" + digest + ", algorithm=" + algorithm - + ", format=" + format + '}'; - } - + return Objects.equals(this.format, other.format); + } + + @Override + public String toString() { + return "BinaryData{" + + "uri=" + + uri + + ", size=" + + size + + ", digest=" + + digest + + ", algorithm=" + + algorithm + + ", format=" + + format + + '}'; + } } diff --git a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Config.java b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Config.java index 7fea755..fcdde90 100644 --- a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Config.java +++ b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Config.java @@ -19,148 +19,153 @@ package fr.xelians.sipg.service.fntcv4; /** - * La classe Fntcv4Config représente la configuration utilisée lors de la sérialisation d'une archive au format FNTC v4. - * Les valeurs par défaut sont définies dans la classe Fntcv4ConfigBuilder. + * La classe Fntcv4Config représente la configuration utilisée lors de la sérialisation d'une + * archive au format FNTC v4. Les valeurs par défaut sont définies dans la classe + * Fntcv4ConfigBuilder. * * @author Emmanuel Deviller * @see Fntcv4ConfigBuilder */ -public class Fntcv4Config { +public record Fntcv4Config( + boolean validate, + boolean format, + int indent, + int thread, + boolean strict, + boolean checkBinary, + boolean checkSize, + boolean checkDigest, + boolean useMemory) { - /** - * The constant DEFAULT. - */ - public static final Fntcv4Config DEFAULT = Fntcv4ConfigBuilder.builder().build(); + /** The constant DEFAULT. */ + public static final Fntcv4Config DEFAULT = Fntcv4ConfigBuilder.builder().build(); - private final boolean validate; - private final boolean format; - private final int indent; - private final int thread; - private final boolean strict; - private final boolean checkBinary; - private final boolean checkSize; - private final boolean checkDigest; - private final boolean useMemory; + /** + * Instancie la classe. + * + * @param validate spécifie si une validation doit être réalisée lors de la conversion + * @param format spécifie si le fichier de description doit être formaté (pretty-print) + * @param indent spécifie la valeur de l'indentation lors du formatage + * @param thread spécifie le nombre de threads à utiliser lors de la conversion + * @param strict spécifie si la conversion doit être stricte + * @param checkBinary spécifie si la validation vérifie les objets binaires + * @param checkSize spécifie si la validation la taille des objets binaires + * @param checkDigest spécifie si la validation vérifie l'empreinte des objets binaires + * @param useMemory spécifie si la génération du sip utilise la mémoire ou le disque + */ + public Fntcv4Config {} - /** - * Instancie la classe. - * - * @param validate spécifie si une validation doit être réalisée lors de la conversion - * @param format spécifie si le fichier de description doit être formaté (pretty-print) - * @param indent spécifie la valeur de l'indentation lors du formatage - * @param thread spécifie le nombre de threads à utiliser lors de la conversion - * @param strict spécifie si la conversion doit être stricte - * @param checkBinary spécifie si la validation vérifie les objets binaires - * @param checkSize spécifie si la validation la taille des objets binaires - * @param checkDigest spécifie si la validation vérifie l'empreinte des objets binaires - * @param useMemory spécifie si la génération du sip utilise la mémoire ou le disque - */ - public Fntcv4Config(boolean validate, boolean format, int indent, int thread, boolean strict, boolean checkBinary, - boolean checkSize, boolean checkDigest, boolean useMemory) { - this.validate = validate; - this.format = format; - this.indent = indent; - this.thread = thread; - this.strict = strict; - this.checkBinary = checkBinary; - this.checkSize = checkSize; - this.checkDigest = checkDigest; - this.useMemory = useMemory; - } + /** + * Indique si une validation doit être réalisée lors de la conversion. + * + * @return si une validation doit être réalisée + */ + @Override + public boolean validate() { + return validate; + } - /** - * Indique si une validation doit être réalisée lors de la conversion. - * - * @return si une validation doit être réalisée - */ - public boolean isValidate() { - return validate; - } + /** + * Indique si le fichier de description doit être formaté (pretty-print) lors de la conversion. + * + * @return si le fichier de description doit être formaté + */ + @Override + public boolean format() { + return format; + } - /** - * Indique si le fichier de description doit être formaté (pretty-print) lors de la conversion. - * - * @return si le fichier de description doit être formaté - */ - public boolean isFormat() { - return format; - } + /** + * Indique la valeur de l'indentation lors du formatage. + * + * @return la valeur de l'indentation lors du formatage + */ + @Override + public int indent() { + return indent; + } - /** - * Indique la valeur de l'indentation lors du formatage. - * - * @return la valeur de l'indentation lors du formatage - */ - public int getIndent() { - return indent; - } + /** + * Indique le nombre de threads à utiliser lors de la conversion. + * + * @return le nombre de threads + */ + @Override + public int thread() { + return thread; + } - /** - * Indique le nombre de threads à utiliser lors de la conversion. - * - * @return le nombre de threads - */ - public int getThread() { - return thread; - } + /** + * Indique si la conversion doit être stricte. + * + * @return si la conversion doit être stricte + */ + @Override + public boolean strict() { + return strict; + } - /** - * Indique si la conversion doit être stricte. - * - * @return si la conversion doit être stricte - */ - public boolean isStrict() { - return strict; - } + /** + * Indique si la validation vérifie les objets binaires. + * + * @return si la validation vérifie les objets binaires + */ + @Override + public boolean checkBinary() { + return checkBinary; + } - /** - * Indique si la validation vérifie les objets binaires. - * - * @return si la validation vérifie les objets binaires - */ - public boolean checkBinary() { - return checkBinary; - } + /** + * Indique si la validation vérifie la taille des objets binaires. + * + * @return si la validation vérifie la taille des objets binaires + */ + @Override + public boolean checkSize() { + return checkSize; + } - /** - * Indique si la validation vérifie la taille des objets binaires. - * - * @return si la validation vérifie la taille des objets binaires - */ - public boolean checkSize() { - return checkSize; - } + /** + * Indique si la validation vérifie l'empreinte des objets binaires. + * + * @return si la validation vérifie l'empreinte des objets binaires + */ + @Override + public boolean checkDigest() { + return checkDigest; + } - /** - * Indique si la validation vérifie l'empreinte des objets binaires. - * - * @return si la validation vérifie l'empreinte des objets binaires - */ - public boolean checkDigest() { - return checkDigest; - } + /** + * Indique si la génération du sip utilise la mémoire ou le disque + * + * @return si la génération du sip utilise la mémoire ou le disque + */ + @Override + public boolean useMemory() { + return useMemory; + } - /** - * Indique si la génération du sip utilise la mémoire ou le disque - * - * @return si la génération du sip utilise la mémoire ou le disque - */ - public boolean useMemory() { - return useMemory; - } - - @Override - public String toString() { - return "Fntcv4Config{" + - "validate=" + validate + - ", format=" + format + - ", indent=" + indent + - ", thread=" + thread + - ", strict=" + strict + - ", checkBinary=" + checkBinary + - ", checkSize=" + checkSize + - ", checkDigest=" + checkDigest + - ", useMemory=" + useMemory + - '}'; - } + @Override + public String toString() { + return "Fntcv4Config{" + + "validate=" + + validate + + ", format=" + + format + + ", indent=" + + indent + + ", thread=" + + thread + + ", strict=" + + strict + + ", checkBinary=" + + checkBinary + + ", checkSize=" + + checkSize + + ", checkDigest=" + + checkDigest + + ", useMemory=" + + useMemory + + '}'; + } } diff --git a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4ConfigBuilder.java b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4ConfigBuilder.java index cce0b36..8e437fc 100644 --- a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4ConfigBuilder.java +++ b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4ConfigBuilder.java @@ -18,147 +18,146 @@ */ package fr.xelians.sipg.service.fntcv4; -import fr.xelians.sipg.service.sedav2.Sedav2ConfigBuilder; - /** - * La classe Fntcv4ConfigBuilder facilite la création d'un objet Fntcv4Config en suivant le principe de conception du - * pattern builder. + * La classe Fntcv4ConfigBuilder facilite la création d'un objet Fntcv4Config en suivant le principe + * de conception du pattern builder. * * @author Emmanuel Deviller * @see Fntcv4Config */ public class Fntcv4ConfigBuilder { - private boolean validate = true; - private boolean format = false; - private int indent = 3; - private int thread = 0; - private boolean strict = true; - private boolean checkBinary = true; - private boolean checkSize = true; - private boolean checkDigest = true; - private boolean useMemory = false; + private boolean validate = true; + private boolean format = false; + private int indent = 3; + private int thread = 0; + private boolean strict = true; + private boolean checkBinary = true; + private boolean checkSize = true; + private boolean checkDigest = true; + private boolean useMemory = false; - private Fntcv4ConfigBuilder() { - } + private Fntcv4ConfigBuilder() {} - /** - * Instancie le builder. - * - * @return le builder - */ - public static Fntcv4ConfigBuilder builder() { - return new Fntcv4ConfigBuilder(); - } + /** + * Instancie le builder. + * + * @return le builder + */ + public static Fntcv4ConfigBuilder builder() { + return new Fntcv4ConfigBuilder(); + } - /** - * Spécifie si une validation doit être réalisée lors de la conversion. True par défaut. - * - * @param validate si une validation doit être réalisée - * @return le builder - */ - public Fntcv4ConfigBuilder validate(boolean validate) { - this.validate = validate; - return this; - } + /** + * Spécifie si une validation doit être réalisée lors de la conversion. True par défaut. + * + * @param validate si une validation doit être réalisée + * @return le builder + */ + public Fntcv4ConfigBuilder validate(boolean validate) { + this.validate = validate; + return this; + } - /** - * Spécifie si le fichier de description doit être formaté (pretty-print). False par défaut. - * - * @param format si le fichier de description doit être formaté - * @return le builder - */ - public Fntcv4ConfigBuilder format(boolean format) { - this.format = format; - return this; - } + /** + * Spécifie si le fichier de description doit être formaté (pretty-print). False par défaut. + * + * @param format si le fichier de description doit être formaté + * @return le builder + */ + public Fntcv4ConfigBuilder format(boolean format) { + this.format = format; + return this; + } - /** - * Spécifie la valeur de l'indentation lors du formatage. 3 par défaut. - * - * @param indent la valeur de l'indentation - * @return le builder - */ - public Fntcv4ConfigBuilder indent(int indent) { - this.indent = indent; - return this; - } + /** + * Spécifie la valeur de l'indentation lors du formatage. Par défaut 3. + * + * @param indent la valeur de l'indentation + * @return le builder + */ + public Fntcv4ConfigBuilder indent(int indent) { + this.indent = indent; + return this; + } - /** - * Spécifie le nombre de threads à utiliser lors de la conversion. Le nombre de cœurs du CPU par défaut. - * - * @param thread le nombre de threads - * @return le builder - */ - public Fntcv4ConfigBuilder thread(int thread) { - this.thread = thread; - return this; - } + /** + * Spécifie le nombre de threads à utiliser lors de la conversion. Le nombre de cœurs du CPU par + * défaut. + * + * @param thread le nombre de threads + * @return le builder + */ + public Fntcv4ConfigBuilder thread(int thread) { + this.thread = thread; + return this; + } - /** - * Spécifie si la conversion doit être stricte. False par défaut. - * - * @param strict si la conversion doit être stricte - * @return le builder - */ - public Fntcv4ConfigBuilder strict(boolean strict) { - this.strict = strict; - return this; - } + /** + * Spécifie si la conversion doit être stricte. False par défaut. + * + * @param strict si la conversion doit être stricte + * @return le builder + */ + public Fntcv4ConfigBuilder strict(boolean strict) { + this.strict = strict; + return this; + } - /** - * Spécifie si la validation doit vérifier les objets binaires. - * - * @param checkBinary si la validation doit vérifier les objets binaires - * @return le builder - */ - public Fntcv4ConfigBuilder checkBinary(boolean checkBinary) { - this.checkBinary = checkBinary; - return this; - } + /** + * Spécifie si la validation doit vérifier les objets binaires. + * + * @param checkBinary si la validation doit vérifier les objets binaires + * @return le builder + */ + public Fntcv4ConfigBuilder checkBinary(boolean checkBinary) { + this.checkBinary = checkBinary; + return this; + } - /** - * Spécifie si la validation doit vérifier la taille des objets binaires. - * - * @param checkSize si la validation doit vérifier la taille des objets binaires - * @return le builder - */ - public Fntcv4ConfigBuilder checkSize(boolean checkSize) { - this.checkSize = checkSize; - return this; - } + /** + * Spécifie si la validation doit vérifier la taille des objets binaires. + * + * @param checkSize si la validation doit vérifier la taille des objets binaires + * @return le builder + */ + public Fntcv4ConfigBuilder checkSize(boolean checkSize) { + this.checkSize = checkSize; + return this; + } - /** - * Spécifie si la validation doit vérifier l'empreinte des objets binaires. - * - * @param checkDigest si la validation doit vérifier l'empreinte des objets binaires - * @return le builder - */ - public Fntcv4ConfigBuilder checkDigest(boolean checkDigest) { - this.checkDigest = checkDigest; - return this; - } + /** + * Spécifie si la validation doit vérifier l'empreinte des objets binaires. + * + * @param checkDigest si la validation doit vérifier l'empreinte des objets binaires + * @return le builder + */ + public Fntcv4ConfigBuilder checkDigest(boolean checkDigest) { + this.checkDigest = checkDigest; + return this; + } - /** - * Spécifie si la génération du sip utilise la mémoire ou le disque. La génération en mémoire - * peut s'avérer légèrement plus rapide, mais peut entrainer un dépassement de la mémoire - * de la machine virtuelle. Il est fortement conseiller de s'assurer de connaitre la capacité - * mémoire de la machine virtuelle et des sip à générer avant d'utiliser cette option. - * - * @param useMemory si la genération du sip doit se faire en mémoire - * @return le builder - */ - public Fntcv4ConfigBuilder useMemory(boolean useMemory) { - this.useMemory = useMemory; - return this; - } + /** + * Spécifie si la génération du sip utilise la mémoire ou le disque. La génération en mémoire peut + * s'avérer légèrement plus rapide, mais peut entrainer un dépassement de la mémoire de la machine + * virtuelle. Il est fortement conseiller de s'assurer de connaitre la capacité mémoire de la + * machine virtuelle et des sip à générer avant d'utiliser cette option. + * + * @param useMemory si la genération du sip doit se faire en mémoire + * @return le builder + */ + public Fntcv4ConfigBuilder useMemory(boolean useMemory) { + this.useMemory = useMemory; + return this; + } - /** - * Instancie la classe Fntcv4Config selon les paramètres précédemment spécifiés dans le builder. - * - * @return la configuration FNTC v4 - */ - public Fntcv4Config build() { - return new Fntcv4Config(validate, format, indent, thread, strict, checkBinary, checkSize, checkDigest, useMemory); - } + /** + * Instancie la classe Fntcv4Config selon les paramètres précédemment spécifiés dans le builder. + * + * @return la configuration FNTC v4 + */ + public Fntcv4Config build() { + return new Fntcv4Config( + validate, format, indent, thread, strict, checkBinary, checkSize, checkDigest, useMemory); + } } diff --git a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Converter.java b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Converter.java index 71af37e..a5d0e31 100644 --- a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Converter.java +++ b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Converter.java @@ -18,20 +18,38 @@ */ package fr.xelians.sipg.service.fntcv4; +import static fr.xelians.sipg.utils.SipUtils.ifNotNull; + import fr.xelians.sipg.model.*; import fr.xelians.sipg.utils.DroidUtils; import fr.xelians.sipg.utils.SipException; import fr.xelians.sipg.utils.SipUtils; +import java.io.IOException; +import java.io.OutputStream; +import java.io.StringReader; +import java.math.BigDecimal; +import java.nio.file.FileAlreadyExistsException; +import java.nio.file.FileSystem; +import java.nio.file.Files; +import java.nio.file.Path; +import java.time.LocalDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.*; +import java.util.concurrent.atomic.AtomicInteger; +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.parsers.ParserConfigurationException; import org.afnor.medona.v1.*; import org.apache.commons.codec.binary.Hex; import org.apache.commons.io.FilenameUtils; import org.apache.commons.lang3.RandomStringUtils; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.Validate; +import org.fntc.ta.v4.*; import org.fntc.ta.v4.AccessRuleType; import org.fntc.ta.v4.AppraisalRuleType; import org.fntc.ta.v4.TextType; -import org.fntc.ta.v4.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.w3c.dom.Document; @@ -40,29 +58,11 @@ import org.xml.sax.SAXException; import uk.gov.nationalarchives.droid.core.interfaces.IdentificationResult; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.parsers.ParserConfigurationException; -import java.io.IOException; -import java.io.OutputStream; -import java.io.StringReader; -import java.math.BigDecimal; -import java.nio.file.FileAlreadyExistsException; -import java.nio.file.FileSystem; -import java.nio.file.Files; -import java.nio.file.Path; -import java.time.LocalDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.concurrent.*; -import java.util.concurrent.atomic.AtomicInteger; - -import static fr.xelians.sipg.utils.SipUtils.ifNotNull; - /** - * La classe Fntcv4Converter contient les informations et fonctions nécessaires à la conversion d'une archive au format - * FNTC v4. Cette classe ne peut être instanciée qu'à travers les méthodes statiques convert(...). Note. la classe - * n'est pas thread-safe et un nouvel objet est systématiquement créé à chaque conversion. + * La classe Fntcv4Converter contient les informations et fonctions nécessaires à la conversion + * d'une archive au format FNTC v4. Cette classe ne peut être instanciée qu'à travers les méthodes + * statiques convert(...). Note. La classe n'est pas thread-safe et un nouvel objet est + * systématiquement créé à chaque conversion. * * @author Emmanuel Deviller * @see ArchiveTransfer @@ -70,664 +70,738 @@ */ class Fntcv4Converter { - private static final Logger LOGGER = LoggerFactory.getLogger(Fntcv4Converter.class); + private static final Logger LOGGER = LoggerFactory.getLogger(Fntcv4Converter.class); - private static final String EXT_NS = "ext"; + private static final String EXT_NS = "ext"; - private final List> tasks = new ArrayList<>(); - private final AtomicInteger idCounter = new AtomicInteger(); + private final List> tasks = new ArrayList<>(); + private final AtomicInteger idCounter = new AtomicInteger(); - private final org.fntc.ta.v4.ObjectFactory fntcv4Factory = new org.fntc.ta.v4.ObjectFactory(); - private final org.afnor.medona.v1.ObjectFactory medonaFactory = new org.afnor.medona.v1.ObjectFactory(); - private final DocumentBuilder documentBuilder; + private final org.fntc.ta.v4.ObjectFactory fntcv4Factory = new org.fntc.ta.v4.ObjectFactory(); + private final org.afnor.medona.v1.ObjectFactory medonaFactory = + new org.afnor.medona.v1.ObjectFactory(); + private final DocumentBuilder documentBuilder; - private final ExecutorService executor; - private final FileSystem zipArchive; - private final boolean isStrict; + private final ExecutorService executor; + private final FileSystem zipArchive; + private final boolean isStrict; - private Fntcv4Converter(FileSystem zipArchive, Fntcv4Config config) { - this.zipArchive = zipArchive; - this.executor = Executors.newFixedThreadPool(SipUtils.getPoolSize(config.getThread())); - this.isStrict = config.isStrict(); + private Fntcv4Converter(FileSystem zipArchive, Fntcv4Config config) { + this.zipArchive = zipArchive; + this.executor = Executors.newFixedThreadPool(SipUtils.getPoolSize(config.thread())); + this.isStrict = config.strict(); - try { - this.documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); - } catch (ParserConfigurationException ex) { - LOGGER.warn("Unable to create DOM document builder"); - throw new SipException(ex); - } + try { + this.documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); + } catch (ParserConfigurationException ex) { + LOGGER.warn("Unable to create DOM document builder"); + throw new SipException(ex); } - - /** - * Convertit une archive en archive FNTC v4. Cette fonction permet de s'assurer que la structure de l'archive est - * valide. - * - * @param archiveTransfer l'archive à convertir - * @return l 'archive au format FNTC v4 - * @throws ExecutionException the execution exception - * @throws InterruptedException the interrupted exception - */ - static ArchiveTransferType convert(ArchiveTransfer archiveTransfer) throws ExecutionException, InterruptedException { - return convert(archiveTransfer, null, Fntcv4Config.DEFAULT); + } + + /** + * Convertit une archive en archive FNTC v4. Cette fonction permet de s'assurer que la structure + * de l'archive est valide. + * + * @param archiveTransfer l'archive à convertir + * @return l 'archive au format FNTC v4 + * @throws ExecutionException the execution exception + * @throws InterruptedException the interrupted exception + */ + static ArchiveTransferType convert(ArchiveTransfer archiveTransfer) + throws ExecutionException, InterruptedException { + return convert(archiveTransfer, null, Fntcv4Config.DEFAULT); + } + + /** + * Convertit une archive en archive FNTC v4. Cette fonction permet de s'assurer que la structure + * de l'archive est valide. + * + * @param archiveTransfer l'archive à convertir + * @param config la configuration utilisée lors de la conversion + * @return l 'archive au format FNTC v4 + * @throws ExecutionException the execution exception + * @throws InterruptedException the interrupted exception + */ + static ArchiveTransferType convert(ArchiveTransfer archiveTransfer, Fntcv4Config config) + throws ExecutionException, InterruptedException { + return convert(archiveTransfer, null, config); + } + + /** + * Convertit une archive en archive FNTC v4. L'archive convertie est créée dans le paquet zip + * spécifié par le paramètre zipArchive. + * + * @param archiveTransfer l'archive à convertir + * @param zipArchive le paquet zip de destination + * @return l 'archive au format FNTC v4 + * @throws ExecutionException the execution exception + * @throws InterruptedException the interrupted exception + */ + static ArchiveTransferType convert(ArchiveTransfer archiveTransfer, FileSystem zipArchive) + throws ExecutionException, InterruptedException { + return convert(archiveTransfer, zipArchive, Fntcv4Config.DEFAULT); + } + + /** + * Convertit une archive en archive FNTC v4. L'archive convertie est créée dans le paquet zip + * spécifié par le paramètre zipArchive. + * + * @param archiveTransfer l'archive à convertir + * @param zipArchive le paquet zip de destination + * @param config la configuration utilisée lors de la conversion + * @return l 'archive au format FNTC v4 + * @throws ExecutionException the execution exception + * @throws InterruptedException the interrupted exception + */ + static ArchiveTransferType convert( + ArchiveTransfer archiveTransfer, FileSystem zipArchive, Fntcv4Config config) + throws ExecutionException, InterruptedException { + Validate.notNull(archiveTransfer, SipUtils.NOT_NULL, "archiveTransfer"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + Fntcv4Converter converter = new Fntcv4Converter(zipArchive, config); + ArchiveTransferType att = converter.toArchiveTransferType(archiveTransfer); + + // Execute tasks and wait for all to complete + List> futures = converter.executor.invokeAll(converter.tasks); + + // Throw an exception if one task has failed (that's a bit... but well it's in the offcial doc) + for (Future future : futures) { + future.get(); } - /** - * Convertit une archive en archive FNTC v4. Cette fonction permet de s'assurer que la structure de l'archive est - * valide. - * - * @param archiveTransfer l'archive à convertir - * @param config la configuration utilisée lors de la conversion - * @return l 'archive au format FNTC v4 - * @throws ExecutionException the execution exception - * @throws InterruptedException the interrupted exception - */ - static ArchiveTransferType convert(ArchiveTransfer archiveTransfer, Fntcv4Config config) throws ExecutionException, InterruptedException { - return convert(archiveTransfer, null, config); - } + return att; + } - /** - * Convertit une archive en archive FNTC v4. L'archive convertie est créée dans le paquet zip spécifié par le - * paramètre zipArchive. - * - * @param archiveTransfer l'archive à convertir - * @param zipArchive le paquet zip de destination - * @return l 'archive au format FNTC v4 - * @throws ExecutionException the execution exception - * @throws InterruptedException the interrupted exception - */ - static ArchiveTransferType convert(ArchiveTransfer archiveTransfer, FileSystem zipArchive) throws ExecutionException, InterruptedException { - return convert(archiveTransfer, zipArchive, Fntcv4Config.DEFAULT); - } + private ArchiveTransferType toArchiveTransferType(ArchiveTransfer transfer) { + ArchiveTransferType att = medonaFactory.createArchiveTransferType(); - /** - * Convertit une archive en archive FNTC v4. L'archive convertie est créée dans le paquet zip spécifié par le - * paramètre zipArchive. - * - * @param archiveTransfer l'archive à convertir - * @param zipArchive le paquet zip de destination - * @param config la configuration utilisée lors de la conversion - * @return l 'archive au format FNTC v4 - * @throws ExecutionException the execution exception - * @throws InterruptedException the interrupted exception - */ - static ArchiveTransferType convert(ArchiveTransfer archiveTransfer, FileSystem zipArchive, Fntcv4Config config) throws ExecutionException, InterruptedException { - Validate.notNull(archiveTransfer, SipUtils.NOT_NULL, "archiveTransfer"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); + String mi = + SipUtils.getIfBlank( + transfer.getMessageIdentifier(), RandomStringUtils.randomAlphabetic(32).toLowerCase()); + att.setMessageIdentifier(toIdentifierType(mi)); - Fntcv4Converter converter = new Fntcv4Converter(zipArchive, config); - ArchiveTransferType att = converter.toArchiveTransferType(archiveTransfer); + LocalDateTime gcd = SipUtils.getIfNull(transfer.getDate(), LocalDateTime.now()); + att.setDate(SipUtils.toXmlDateTime(gcd)); - // Execute tasks and wait for all to complete - List> futures = converter.executor.invokeAll(converter.tasks); + CodeListVersions clv = + SipUtils.getIfNull(transfer.getCodeListVersions(), new CodeListVersions()); + att.setCodeListVersions(toCodeListVersionsType(clv)); - // Throw an exception if one task has failed (that's a bit... but well it's in the offcial doc) - for (Future future : futures) { - future.get(); - } + ifNotNull(transfer.getComment(), e -> att.getComment().add(toMedonaTextType(e))); + ifNotNull(transfer.getSignature(), e -> att.setSignature(toSignatureType(e))); + ifNotNull(transfer.getArchivalAgreement(), e -> att.setArchivalAgreement(toIdentifierType(e))); + ifNotNull(transfer.getArchivalAgency(), e -> att.setArchivalAgency(toOrganizationType(e))); + ifNotNull( + transfer.getTransferringAgency(), e -> att.setTransferringAgency(toOrganizationType(e))); - return att; - } + DataObjectPackageType dopt = medonaFactory.createDataObjectPackageType(); - private ArchiveTransferType toArchiveTransferType(ArchiveTransfer transfer) { - ArchiveTransferType att = medonaFactory.createArchiveTransferType(); + DescriptiveMetadataType dmt = medonaFactory.createDescriptiveMetadataType(); + dmt.setAny( + fntcv4Factory.createArchiveUnits(toArchiveUnitsType(transfer.getArchiveUnits(), dopt))); + dopt.setDescriptiveMetadata(dmt); - String mi = SipUtils.getIfBlank(transfer.getMessageIdentifier(), RandomStringUtils.randomAlphabetic(32).toLowerCase()); - att.setMessageIdentifier(toIdentifierType(mi)); + ManagementMetadataType mmt = medonaFactory.createManagementMetadataType(); + ifNotNull(transfer.getArchivalProfile(), e -> mmt.setArchivalProfile(toIdentifierType(e))); + ifNotNull(transfer.getServiceLevel(), e -> mmt.setServiceLevel(toIdentifierType(e))); + dopt.setManagementMetadata(mmt); - LocalDateTime gcd = SipUtils.getIfNull(transfer.getDate(), LocalDateTime.now()); - att.setDate(SipUtils.toXmlDateTime(gcd)); + att.setDataObjectPackage(dopt); + return att; + } - CodeListVersions clv = SipUtils.getIfNull(transfer.getCodeListVersions(), new CodeListVersions()); - att.setCodeListVersions(toCodeListVersionsType(clv)); + private ArchiveUnitsType toArchiveUnitsType( + ArrayList units, DataObjectPackageType dopt) { + ArchiveUnitsType auts = fntcv4Factory.createArchiveUnitsType(); + units.forEach(unit -> auts.getArchiveUnit().add(toArchiveUnitType(unit, dopt))); + return auts; + } - ifNotNull(transfer.getComment(), e -> att.getComment().add(toMedonaTextType(e))); - ifNotNull(transfer.getSignature(), e -> att.setSignature(toSignatureType(e))); - ifNotNull(transfer.getArchivalAgreement(), e -> att.setArchivalAgreement(toIdentifierType(e))); - ifNotNull(transfer.getArchivalAgency(), e -> att.setArchivalAgency(toOrganizationType(e))); - ifNotNull(transfer.getTransferringAgency(), e -> att.setTransferringAgency(toOrganizationType(e))); + private MeasureType toMeasureType(double measure) { + MeasureType mt = medonaFactory.createMeasureType(); + mt.setValue(BigDecimal.valueOf(measure)); + return mt; + } - DataObjectPackageType dopt = medonaFactory.createDataObjectPackageType(); + private ArchiveUnitType toArchiveUnitType(ArchiveUnit unit, DataObjectPackageType dopt) { - DescriptiveMetadataType dmt = medonaFactory.createDescriptiveMetadataType(); - dmt.setAny(fntcv4Factory.createArchiveUnits(toArchiveUnitsType(transfer.getArchiveUnits(), dopt))); - dopt.setDescriptiveMetadata(dmt); + ArchiveUnitType aut = fntcv4Factory.createArchiveUnitType(); + aut.setId(incAndGetCounter()); - ManagementMetadataType mmt = medonaFactory.createManagementMetadataType(); - ifNotNull(transfer.getArchivalProfile(), e -> mmt.setArchivalProfile(toIdentifierType(e))); - ifNotNull(transfer.getServiceLevel(), e -> mmt.setServiceLevel(toIdentifierType(e))); - dopt.setManagementMetadata(mmt); + // Process Physical + String physicalId = unit.getPhysicalId(); + if (physicalId != null) { - att.setDataObjectPackage(dopt); - return att; - } + PhysicalDataObjectType pdot = medonaFactory.createPhysicalDataObjectType(); + pdot.setId(incAndGetCounter()); + pdot.setSize(toMeasureType(unit.getMeasure())); - private ArchiveUnitsType toArchiveUnitsType(ArrayList units, DataObjectPackageType dopt) { - ArchiveUnitsType auts = fntcv4Factory.createArchiveUnitsType(); - units.forEach(unit -> auts.getArchiveUnit().add(toArchiveUnitType(unit, dopt))); - return auts; - } + ArchiveUnitType.DataObjectReference dor = + fntcv4Factory.createArchiveUnitTypeDataObjectReference(); + dor.getDataObjectReferenceId() + .add(fntcv4Factory.createArchiveUnitTypeDataObjectReferenceDataObjectReferenceId(pdot)); + aut.setDataObjectReference(dor); - private MeasureType toMeasureType(double measure) { - MeasureType mt = medonaFactory.createMeasureType(); - mt.setValue(BigDecimal.valueOf(measure)); - return mt; + dopt.getBinaryDataObjectOrPhysicalDataObject().add(pdot); } - private ArchiveUnitType toArchiveUnitType(ArchiveUnit unit, DataObjectPackageType dopt) { - - ArchiveUnitType aut = fntcv4Factory.createArchiveUnitType(); - aut.setId(incAndGetCounter()); - - // Process Physical - String physicalId = unit.getPhysicalId(); - if (physicalId != null) { + // Process Binary + Path binaryPath = unit.getBinaryPath(); + if (binaryPath != null) { - PhysicalDataObjectType pdot = medonaFactory.createPhysicalDataObjectType(); - pdot.setId(incAndGetCounter()); - pdot.setSize(toMeasureType(unit.getMeasure())); + BinaryObjectType bot = medonaFactory.createBinaryObjectType(); + if (unit.getFileInfo() != null && StringUtils.isNotBlank(unit.getFileInfo().getFilename())) { + bot.setFilename(unit.getFileInfo().getFilename()); + } else { + bot.setFilename(binaryPath.getFileName().toString()); + } - ArchiveUnitType.DataObjectReference dor = fntcv4Factory.createArchiveUnitTypeDataObjectReference(); - dor.getDataObjectReferenceId().add(fntcv4Factory.createArchiveUnitTypeDataObjectReferenceDataObjectReferenceId(pdot)); - aut.setDataObjectReference(dor); + MessageDigestBinaryObjectType mdbot = medonaFactory.createMessageDigestBinaryObjectType(); + mdbot.setAlgorithm(unit.getDigestAlgorithm()); - dopt.getBinaryDataObjectOrPhysicalDataObject().add(pdot); - } - - // Process Binary - Path binaryPath = unit.getBinaryPath(); - if (binaryPath != null) { - - BinaryObjectType bot = medonaFactory.createBinaryObjectType(); - if (unit.getFileInfo() != null && StringUtils.isNotBlank(unit.getFileInfo().getFilename())) { - bot.setFilename(unit.getFileInfo().getFilename()); - } else { - bot.setFilename(binaryPath.getFileName().toString()); - } - - MessageDigestBinaryObjectType mdbot = medonaFactory.createMessageDigestBinaryObjectType(); - mdbot.setAlgorithm(unit.getDigestAlgorithm()); - - BinaryDataObjectType bdot = medonaFactory.createBinaryDataObjectType(); - bdot.setId(incAndGetCounter()); - bdot.setAttachment(bot); - - if (StringUtils.isNotBlank(unit.getFormatId())) { - bdot.setFormat(unit.getFormatId()); - } - - String theSig = StringUtils.isBlank(unit.getSignatureStatus()) ? "nil" : unit.getSignatureStatus(); - bdot.setSignatureStatus(theSig); - - bdot.setMessageDigest(mdbot); - - ArchiveUnitType.DataObjectReference dor = aut.getDataObjectReference(); - if (dor == null) { - dor = fntcv4Factory.createArchiveUnitTypeDataObjectReference(); - } - dor.getDataObjectReferenceId().add(fntcv4Factory.createArchiveUnitTypeDataObjectReferenceDataObjectReferenceId(bdot)); - aut.setDataObjectReference(dor); - - dopt.getBinaryDataObjectOrPhysicalDataObject().add(bdot); - - tasks.add(new ZipTask(binaryPath, bdot)); - } - - // Process Management - ManagementType mt = fntcv4Factory.createManagementType(); - - if (unit.getAccessRules() != null) { - mt.setAccessRule(toAccessRuleType(unit.getAccessRules())); - } - - if (unit.getAppraisalRules() != null) { - mt.setAppraisalRule(toAppraisalRuleType(unit.getAppraisalRules())); - } - - if (isStrict) { - if (unit.getStorageRules() != null) { - throw new SipException("FNTC V4 does not support StorageRules"); - } - if (unit.getDisseminationRules() != null) { - throw new SipException("FNTC V4 does not support DisseminationRules"); - } - if (unit.getReuseRules() != null) { - throw new SipException("FNTC V4 does not support ReuseRules"); - } - if (unit.getClassificationRules() != null) { - throw new SipException("FNTC V4 does not support ClassificationRules"); - } - } - - if (!unit.getLogEvents().isEmpty()) { - LogBookType lbt = fntcv4Factory.createLogBookType(); - unit.getLogEvents().forEach(event -> lbt.getEvent().add(toEventType(event))); - mt.setLogBook(lbt); - } - - if (mt.getAccessRule() != null || mt.getAppraisalRule() != null || mt.getLogBook() != null) { - aut.setManagement(mt); - } - - // Content - DescriptiveMetadataContentType dmct = fntcv4Factory.createDescriptiveMetadataContentType(); - ExtendedType emt = fntcv4Factory.createExtendedType(); - - // ArchiveUnitProfile - ifNotNull(unit.getArchiveUnitProfile(), e -> emt.getAny().add(toNode(new Element("ArchiveUnitProfile", e)))); - - // LevelGroup - ifNotNull(unit.getDescriptionLevel(), e -> dmct.setDescriptionLevel(toTextType(e))); - - // Title Group - unit.getTitles().forEach(t -> dmct.getTitle().add(toTextType(t))); - - // Content IdentifierGroup - ifNotNull(unit.getPhysicalId(), e -> dmct.getPhysicalId().add(toTextType(e))); - - unit.getFilePlanPositions().forEach(e -> dmct.getFilePlanPosition().add(toTextType(e))); - unit.getSystemIds().forEach(e -> dmct.getSystemId().add(toTextType(e))); - unit.getDataObjectSystemIds().forEach(e -> dmct.getDataObjectSystemId().add(toTextType(e))); - unit.getOriginatingSystemIds().forEach(e -> dmct.getOriginatingSystemId().add(toTextType(e))); - unit.getOriginatingAgencyArchiveUnitIdentifiers().forEach(e -> dmct.getOriginatingAgencyArchiveUnitIdentifier().add(toTextType(e))); - unit.getArchivalAgencyArchiveUnitIdentifiers().forEach(e -> dmct.getArchivalAgencyArchiveUnitIdentifier().add(toTextType(e))); - unit.getTransferringAgencyArchiveUnitIdentifiers().forEach(e -> dmct.getTransferringAgencyArchiveUnitIdentifier().add(toTextType(e))); - - // Description Group - unit.getDescriptions().forEach(d -> dmct.getDescription().add(toTextType(d))); - - // CustodialHistory Group - if (!unit.getCustodialItems().isEmpty()) { - emt.getAny().add(toNode(toCustodialItemElement(unit))); - } + BinaryDataObjectType bdot = medonaFactory.createBinaryDataObjectType(); + bdot.setId(incAndGetCounter()); + bdot.setAttachment(bot); - // Type Group - ifNotNull(unit.getType(), e -> emt.getAny().add(toNode(new Element("Type", e)))); - ifNotNull(unit.getDocumentType(), e -> dmct.setDocumentType(toTextType(e))); - - // Language Group - unit.getLanguages().forEach(e -> emt.getAny().add(toNode(new Element("Language", e)))); - ifNotNull(unit.getDescriptionLanguage(), e -> emt.getAny().add(toNode(new Element("DescriptionLanguage", e)))); - - // Status Group - ifNotNull(unit.getStatus(), e -> dmct.setStatus(toTextType(e))); - - // Version Group - ifNotNull(unit.getVersion(), e -> emt.getAny().add(toNode(new Element("Version", e)))); - - // Keyword Group - unit.getTags().forEach(tag -> dmct.getTag().add(toTagType(tag))); - - // Coverage Group - // Originating & Submission Agency Group - ifNotNull(unit.getOriginatingAgency(), e -> emt.getAny().add(toNode(toOrganizationElement(e, "OriginatingAgency")))); - ifNotNull(unit.getSubmissionAgency(), e -> emt.getAny().add(toNode(toOrganizationElement(e, "SubmissionAgency")))); - - // Authorized Agent & writing Group - unit.getAuthorizedAgents().forEach(agent -> emt.getAny().add(toNode(toAgentElement(agent, "AuthorizedAgent")))); - unit.getWriters().forEach(writer -> emt.getAny().add(toNode(toAgentElement(writer, "Writer")))); - - // Audience Group - unit.getAddressees().forEach(addressee -> emt.getAny().add(toNode(toAgentElement(addressee, "Addressee")))); - unit.getRecipients().forEach(recipient -> emt.getAny().add(toNode(toAgentElement(recipient, "Recipient")))); - unit.getTransmitters().forEach(transmitter -> emt.getAny().add(toNode(toAgentElement(transmitter, "Transmitter")))); - unit.getSenders().forEach(sender -> emt.getAny().add(toNode(toAgentElement(sender, "Sender")))); - - // Source Group - ifNotNull(unit.getSource(), e -> emt.getAny().add(toNode(new Element("Source", e)))); - - // TODO Relation Group - // TODO Signature Group - // GPS Group - if (unit.getGpsVersionID() != null || unit.getGpsDateStamp() != null || unit.getGpsAltitude() != null || unit.getGpsAltitudeRef() != null || unit.getGpsLatitude() != null || unit.getGpsLatitudeRef() != null || unit.getGpsLongitude() != null || unit.getGpsLongitudeRef() != null) { - - final Element gps = new Element("Gps"); - ifNotNull(unit.getGpsVersionID(), s -> gps.addElement("GpsVersionID", s)); - ifNotNull(unit.getGpsAltitude(), s -> gps.addElement("GpsAltitude", s)); - ifNotNull(unit.getGpsAltitudeRef(), s -> gps.addElement("GpsAltitudeRef", s)); - ifNotNull(unit.getGpsDateStamp(), s -> gps.addElement("GpsDateStamp", s)); - ifNotNull(unit.getGpsLatitude(), s -> gps.addElement("GpsLatitude", s)); - ifNotNull(unit.getGpsLatitudeRef(), s -> gps.addElement("GpsLatitudeRef", s)); - ifNotNull(unit.getGpsLongitude(), s -> gps.addElement("GpsLongitude", s)); - ifNotNull(unit.getGpsLongitudeRef(), s -> gps.addElement("GpsLongitudeRef", s)); - emt.getAny().add(toNode(gps)); - } + if (StringUtils.isNotBlank(unit.getFormatId())) { + bdot.setFormat(unit.getFormatId()); + } - // DateGroup - ifNotNull(unit.getCreatedDate(), d -> dmct.setCreatedDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getTransactedDate(), d -> dmct.setTransactedDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getAcquiredDate(), d -> dmct.setAcquiredDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getSentDate(), d -> dmct.setSentDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getReceivedDate(), d -> dmct.setReceivedDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getRegisteredDate(), d -> dmct.setRegisteredDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getStartDate(), d -> dmct.setStartDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getEndDate(), d -> dmct.setEndDate(SipUtils.toXmlDate(d).toString())); - - // Extended Metadata - for (Object e : unit.getElements()) { - if (e instanceof String) { - emt.getAny().add(toNode((String) e)); - } else if (e instanceof Element) { - emt.getAny().add(toNode((Element) e)); - } - } + String theSig = + StringUtils.isBlank(unit.getSignatureStatus()) ? "nil" : unit.getSignatureStatus(); + bdot.setSignatureStatus(theSig); - if (!emt.getAny().isEmpty()) { - dmct.setExtended(emt); - } + bdot.setMessageDigest(mdbot); - aut.setContent(dmct); + ArchiveUnitType.DataObjectReference dor = aut.getDataObjectReference(); + if (dor == null) { + dor = fntcv4Factory.createArchiveUnitTypeDataObjectReference(); + } + dor.getDataObjectReferenceId() + .add(fntcv4Factory.createArchiveUnitTypeDataObjectReferenceDataObjectReferenceId(bdot)); + aut.setDataObjectReference(dor); - unit.getArchiveUnits().forEach(u -> aut.getArchiveUnit().add(toArchiveUnitType(u, dopt))); + dopt.getBinaryDataObjectOrPhysicalDataObject().add(bdot); - return aut; + tasks.add(new ZipTask(binaryPath, bdot)); } - private Element toAgentElement(Agent agent, String name) { - Element ae = new Element(name); - SipUtils.ifNotBlank(agent.getFirstName(), e -> ae.addElement("FirstName", e)); - SipUtils.ifNotBlank(agent.getBirthName(), e -> ae.addElement("BirthName", e)); - SipUtils.ifNotBlank(agent.getFullName(), e -> ae.addElement("FullName", e)); - SipUtils.ifNotBlank(agent.getGivenName(), e -> ae.addElement("GivenName", e)); - SipUtils.ifNotBlank(agent.getGender(), e -> ae.addElement("Gender", e)); - SipUtils.ifNotBlank(agent.getCorpName(), e -> ae.addElement("CorpName", e)); - - ifNotNull(agent.getBirthDate(), e -> ae.addElement("BirthDate", SipUtils.toXmlDate(e).toString())); - ifNotNull(agent.getDeathDate(), e -> ae.addElement("DeathDate", SipUtils.toXmlDate(e).toString())); - - ifNotNull(agent.getBirthPlace(), e -> ae.addElement(toPlaceElement(e, "BirthPlace"))); - ifNotNull(agent.getDeathPlace(), e -> ae.addElement(toPlaceElement(e, "DeathPlace"))); - - agent.getNationalities().forEach(e -> ae.addElement("Nationality", e)); - agent.getIdentifiers().forEach(e -> ae.addElement("Identifier", e)); - agent.getFunctions().forEach(e -> ae.addElement("Function", e)); - agent.getActivities().forEach(e -> ae.addElement("Activity", e)); - agent.getPositions().forEach(e -> ae.addElement("Position", e)); - agent.getRoles().forEach(e -> ae.addElement("Role", e)); - agent.getMandates().forEach(e -> ae.addElement("Mandate", e)); - return ae; - } + // Process Management + ManagementType mt = fntcv4Factory.createManagementType(); - private Element toPlaceElement(Place place, String name) { - Element pe = new Element(name); - SipUtils.ifNotBlank(place.getAddress(), e -> pe.addElement("Address", e)); - SipUtils.ifNotBlank(place.getCity(), e -> pe.addElement("City", e)); - SipUtils.ifNotBlank(place.getCountry(), e -> pe.addElement("Country", e)); - SipUtils.ifNotBlank(place.getGeogName(), e -> pe.addElement("GeogName", e)); - SipUtils.ifNotBlank(place.getPostalCode(), e -> pe.addElement("PostalCode", e)); - SipUtils.ifNotBlank(place.getRegion(), e -> pe.addElement("Region", e)); - return pe; + if (unit.getAccessRules() != null) { + mt.setAccessRule(toAccessRuleType(unit.getAccessRules())); } - private Node toNode(String fragment) { - return toNode(fragment, documentBuilder); + if (unit.getAppraisalRules() != null) { + mt.setAppraisalRule(toAppraisalRuleType(unit.getAppraisalRules())); } - private Node toNode(String fragment, DocumentBuilder docBuilder) { - try { - Document doc = docBuilder.newDocument(); - org.w3c.dom.Element node = docBuilder.parse(new InputSource(new StringReader(fragment))).getDocumentElement(); - node.setAttribute("xmlns", EXT_NS); - return doc.importNode(node, true); - - } catch (SAXException | IOException ex) { - LOGGER.warn("Unable to create Node from document builder"); - throw new SipException(ex); - } + if (isStrict) { + if (unit.getStorageRules() != null) { + throw new SipException("FNTC V4 does not support StorageRules"); + } + if (unit.getDisseminationRules() != null) { + throw new SipException("FNTC V4 does not support DisseminationRules"); + } + if (unit.getReuseRules() != null) { + throw new SipException("FNTC V4 does not support ReuseRules"); + } + if (unit.getClassificationRules() != null) { + throw new SipException("FNTC V4 does not support ClassificationRules"); + } } - private Node toNode(Element element) { - return toNode(element, documentBuilder.newDocument()); + if (!unit.getLogEvents().isEmpty()) { + LogBookType lbt = fntcv4Factory.createLogBookType(); + unit.getLogEvents().forEach(event -> lbt.getEvent().add(toEventType(event))); + mt.setLogBook(lbt); } - private Node toNode(Element element, Document doc) { - org.w3c.dom.Element node = doc.createElementNS(EXT_NS, element.getName()); - node.setTextContent(element.getValue()); - element.getAttributes().forEach(node::setAttribute); - element.getElements().forEach(e -> node.appendChild(toNode(e, doc))); - return node; + if (mt.getAccessRule() != null || mt.getAppraisalRule() != null || mt.getLogBook() != null) { + aut.setManagement(mt); } - private AccessRuleType toAccessRuleType(AccessRules accessRule) { - AccessRuleType art = fntcv4Factory.createAccessRuleType(); - SipUtils.ifNotBlank(accessRule.getRuleName(), art::setRule); - ifNotNull(accessRule.getStartDate(), e -> art.setStartDate(SipUtils.toXmlDate(e))); - return art; + // Content + DescriptiveMetadataContentType dmct = fntcv4Factory.createDescriptiveMetadataContentType(); + ExtendedType emt = fntcv4Factory.createExtendedType(); + + // ArchiveUnitProfile + ifNotNull( + unit.getArchiveUnitProfile(), + e -> emt.getAny().add(toNode(new Element("ArchiveUnitProfile", e)))); + + // LevelGroup + ifNotNull(unit.getDescriptionLevel(), e -> dmct.setDescriptionLevel(toTextType(e))); + + // Title Group + unit.getTitles().forEach(t -> dmct.getTitle().add(toTextType(t))); + + // Content IdentifierGroup + ifNotNull(unit.getPhysicalId(), e -> dmct.getPhysicalId().add(toTextType(e))); + + unit.getFilePlanPositions().forEach(e -> dmct.getFilePlanPosition().add(toTextType(e))); + unit.getSystemIds().forEach(e -> dmct.getSystemId().add(toTextType(e))); + unit.getDataObjectSystemIds().forEach(e -> dmct.getDataObjectSystemId().add(toTextType(e))); + unit.getOriginatingSystemIds().forEach(e -> dmct.getOriginatingSystemId().add(toTextType(e))); + unit.getOriginatingAgencyArchiveUnitIdentifiers() + .forEach(e -> dmct.getOriginatingAgencyArchiveUnitIdentifier().add(toTextType(e))); + unit.getArchivalAgencyArchiveUnitIdentifiers() + .forEach(e -> dmct.getArchivalAgencyArchiveUnitIdentifier().add(toTextType(e))); + unit.getTransferringAgencyArchiveUnitIdentifiers() + .forEach(e -> dmct.getTransferringAgencyArchiveUnitIdentifier().add(toTextType(e))); + + // Description Group + unit.getDescriptions().forEach(d -> dmct.getDescription().add(toTextType(d))); + + // CustodialHistory Group + if (!unit.getCustodialItems().isEmpty()) { + emt.getAny().add(toNode(toCustodialItemElement(unit))); } - private AppraisalRuleType toAppraisalRuleType(AppraisalRules appraisalRule) { - AppraisalRuleType art = fntcv4Factory.createAppraisalRuleType(); - SipUtils.ifNotBlank(appraisalRule.getRuleName(), art::setAppraisalCode); - SipUtils.ifNotBlank(appraisalRule.getDuration(), e -> art.setDuration(SipUtils.toDuration(e))); - ifNotNull(appraisalRule.getStartDate(), e -> art.setStartDate(SipUtils.toXmlDate(e))); - return art; + // Type Group + ifNotNull(unit.getType(), e -> emt.getAny().add(toNode(new Element("Type", e)))); + ifNotNull(unit.getDocumentType(), e -> dmct.setDocumentType(toTextType(e))); + + // Language Group + unit.getLanguages().forEach(e -> emt.getAny().add(toNode(new Element("Language", e)))); + ifNotNull( + unit.getDescriptionLanguage(), + e -> emt.getAny().add(toNode(new Element("DescriptionLanguage", e)))); + + // Status Group + ifNotNull(unit.getStatus(), e -> dmct.setStatus(toTextType(e))); + + // Version Group + ifNotNull(unit.getVersion(), e -> emt.getAny().add(toNode(new Element("Version", e)))); + + // Keyword Group + unit.getTags().forEach(tag -> dmct.getTag().add(toTagType(tag))); + + // Coverage Group + // Originating & Submission Agency Group + ifNotNull( + unit.getOriginatingAgency(), + e -> emt.getAny().add(toNode(toOrganizationElement(e, "OriginatingAgency")))); + ifNotNull( + unit.getSubmissionAgency(), + e -> emt.getAny().add(toNode(toOrganizationElement(e, "SubmissionAgency")))); + + // Authorized Agent & writing Group + unit.getAuthorizedAgents() + .forEach(agent -> emt.getAny().add(toNode(toAgentElement(agent, "AuthorizedAgent")))); + unit.getWriters().forEach(writer -> emt.getAny().add(toNode(toAgentElement(writer, "Writer")))); + + // Audience Group + unit.getAddressees() + .forEach(addressee -> emt.getAny().add(toNode(toAgentElement(addressee, "Addressee")))); + unit.getRecipients() + .forEach(recipient -> emt.getAny().add(toNode(toAgentElement(recipient, "Recipient")))); + unit.getTransmitters() + .forEach( + transmitter -> emt.getAny().add(toNode(toAgentElement(transmitter, "Transmitter")))); + unit.getSenders().forEach(sender -> emt.getAny().add(toNode(toAgentElement(sender, "Sender")))); + + // Source Group + ifNotNull(unit.getSource(), e -> emt.getAny().add(toNode(new Element("Source", e)))); + + // TODO Relation Group + // TODO Signature Group + // GPS Group + if (unit.getGpsVersionID() != null + || unit.getGpsDateStamp() != null + || unit.getGpsAltitude() != null + || unit.getGpsAltitudeRef() != null + || unit.getGpsLatitude() != null + || unit.getGpsLatitudeRef() != null + || unit.getGpsLongitude() != null + || unit.getGpsLongitudeRef() != null) { + + final Element gps = new Element("Gps"); + ifNotNull(unit.getGpsVersionID(), s -> gps.addElement("GpsVersionID", s)); + ifNotNull(unit.getGpsAltitude(), s -> gps.addElement("GpsAltitude", s)); + ifNotNull(unit.getGpsAltitudeRef(), s -> gps.addElement("GpsAltitudeRef", s)); + ifNotNull(unit.getGpsDateStamp(), s -> gps.addElement("GpsDateStamp", s)); + ifNotNull(unit.getGpsLatitude(), s -> gps.addElement("GpsLatitude", s)); + ifNotNull(unit.getGpsLatitudeRef(), s -> gps.addElement("GpsLatitudeRef", s)); + ifNotNull(unit.getGpsLongitude(), s -> gps.addElement("GpsLongitude", s)); + ifNotNull(unit.getGpsLongitudeRef(), s -> gps.addElement("GpsLongitudeRef", s)); + emt.getAny().add(toNode(gps)); } - private EventType toEventType(Event event) { - EventType et = fntcv4Factory.createEventType(); - ifNotNull(event.getIdentifier(), e -> et.setEventIdentifier(toTextType(e))); - ifNotNull(event.getDateTime(), e -> et.setEventDateTime(SipUtils.toXmlDateTime(e))); - ifNotNull(event.getDetail(), e -> et.setEventDetail(toTextType(e))); - ifNotNull(event.getDetailData(), e -> et.setEventDetailData(toTextType(e))); - ifNotNull(event.getOutcome(), e -> et.setOutcome(toTextType(e))); - ifNotNull(event.getOutcomeDetail(), e -> et.setOutcomeDetail(toTextType(e))); - ifNotNull(event.getOutcomeDetailMessage(), e -> et.setOutcomeDetailMessage(toTextType(e))); - ifNotNull(event.getType(), e -> et.setEventType(toTextType(e))); - ifNotNull(event.getTypeCode(), e -> et.setEventTypeCode(toTextType(e))); - return et; + // DateGroup + ifNotNull(unit.getCreatedDate(), d -> dmct.setCreatedDate(SipUtils.toXmlDate(d).toString())); + ifNotNull( + unit.getTransactedDate(), d -> dmct.setTransactedDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getAcquiredDate(), d -> dmct.setAcquiredDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getSentDate(), d -> dmct.setSentDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getReceivedDate(), d -> dmct.setReceivedDate(SipUtils.toXmlDate(d).toString())); + ifNotNull( + unit.getRegisteredDate(), d -> dmct.setRegisteredDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getStartDate(), d -> dmct.setStartDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getEndDate(), d -> dmct.setEndDate(SipUtils.toXmlDate(d).toString())); + + // Extended Metadata + for (Object e : unit.getElements()) { + if (e instanceof String) { + emt.getAny().add(toNode((String) e)); + } else if (e instanceof Element) { + emt.getAny().add(toNode((Element) e)); + } } - private CodeListVersionsType toCodeListVersionsType(CodeListVersions code) { - CodeListVersionsType clvt = medonaFactory.createCodeListVersionsType(); - clvt.setId(code.getId()); - - if (isStrict) { - if (code.getSignatureStatusCodeListVersion() != null) { - throw new SipException("FNTC V4 does not support SignatureStatusCodeListVersion"); - } - if (code.getMimeTypeCodeListVersion() != null) { - throw new SipException("FNTC V4 does not support MimeTypeCodeListVersion"); - } - if (code.getEncodingCodeListVersion() != null) { - throw new SipException("FNTC V4 does not support EncodingCodeListVersion"); - } - if (code.getCompressionAlgorithmCodeListVersion() != null) { - throw new SipException("FNTC V4 does not support CompressionAlgorithmCodeListVersion"); - } - if (code.getDataObjectVersionCodeListVersion() != null) { - throw new SipException("FNTC V4 does not support DataObjectVersionCodeListVersion"); - } - if (code.getStorageRuleCodeListVersion() != null) { - throw new SipException("FNTC V4 does not support StorageRuleCodeListVersion"); - } - if (code.getAppraisalRuleCodeListVersion() != null) { - throw new SipException("FNTC V4 does not support AppraisalRuleCodeListVersion"); - } - if (code.getAccessRuleCodeListVersion() != null) { - throw new SipException("FNTC V4 does not support AccessRuleCodeListVersion"); - } - if (code.getReuseRuleCodeListVersion() != null) { - throw new SipException("FNTC V4 does not support ReuseRuleCodeListVersion"); - } - if (code.getClassificationRuleCodeListVersion() != null) { - throw new SipException("FNTC V4 does not support ClassificationRuleCodeListVersion"); - } - if (code.getAcquisitionInformationCodeListVersion() != null) { - throw new SipException("FNTC V4 does not support AcquisitionInformationCodeListVersion"); - } - } - - SipUtils.ifNotBlank(code.getAuthorizationReasonCodeListVersion(), e -> clvt.setAuthorizationReasonCodeListVersion(toCodeType(e))); - SipUtils.ifNotBlank(code.getFileEncodingCodeListVersion(), e -> clvt.setFileEncodingCodeListVersion(toCodeType(e))); - SipUtils.ifNotBlank(code.getFileFormatCodeListVersion(), e -> clvt.setFileFormatCodeListVersion(toCodeType(e))); - SipUtils.ifNotBlank(code.getMessageDigestAlgorithmCodeListVersion(), e -> clvt.setMessageDigestAlgorithmCodeListVersion(toCodeType(e))); - SipUtils.ifNotBlank(code.getRelationshipCodeListVersion(), e -> clvt.setRelationshipCodeListVersion(toCodeType(e))); - SipUtils.ifNotBlank(code.getReplyCodeListVersion(), e -> clvt.setReplyCodeListVersion(toCodeType(e))); - SipUtils.ifNotBlank(code.getSignatureStatusCodeListVersion(), e -> clvt.setSignatureStatusCodeListVersion(toCodeType(e))); - return clvt; + if (!emt.getAny().isEmpty()) { + dmct.setExtended(emt); } - private CodeType toCodeType(String codeType) { - CodeType ct = medonaFactory.createCodeType(); - ct.setValue(codeType); - return ct; + aut.setContent(dmct); + + unit.getArchiveUnits().forEach(u -> aut.getArchiveUnit().add(toArchiveUnitType(u, dopt))); + + return aut; + } + + private Element toAgentElement(Agent agent, String name) { + Element ae = new Element(name); + SipUtils.ifNotBlank(agent.getFirstName(), e -> ae.addElement("FirstName", e)); + SipUtils.ifNotBlank(agent.getBirthName(), e -> ae.addElement("BirthName", e)); + SipUtils.ifNotBlank(agent.getFullName(), e -> ae.addElement("FullName", e)); + SipUtils.ifNotBlank(agent.getGivenName(), e -> ae.addElement("GivenName", e)); + SipUtils.ifNotBlank(agent.getGender(), e -> ae.addElement("Gender", e)); + SipUtils.ifNotBlank(agent.getCorpName(), e -> ae.addElement("CorpName", e)); + + ifNotNull( + agent.getBirthDate(), e -> ae.addElement("BirthDate", SipUtils.toXmlDate(e).toString())); + ifNotNull( + agent.getDeathDate(), e -> ae.addElement("DeathDate", SipUtils.toXmlDate(e).toString())); + + ifNotNull(agent.getBirthPlace(), e -> ae.addElement(toPlaceElement(e, "BirthPlace"))); + ifNotNull(agent.getDeathPlace(), e -> ae.addElement(toPlaceElement(e, "DeathPlace"))); + + agent.getNationalities().forEach(e -> ae.addElement("Nationality", e)); + agent.getIdentifiers().forEach(e -> ae.addElement("Identifier", e)); + agent.getFunctions().forEach(e -> ae.addElement("Function", e)); + agent.getActivities().forEach(e -> ae.addElement("Activity", e)); + agent.getPositions().forEach(e -> ae.addElement("Position", e)); + agent.getRoles().forEach(e -> ae.addElement("Role", e)); + agent.getMandates().forEach(e -> ae.addElement("Mandate", e)); + return ae; + } + + private Element toPlaceElement(Place place, String name) { + Element pe = new Element(name); + SipUtils.ifNotBlank(place.getAddress(), e -> pe.addElement("Address", e)); + SipUtils.ifNotBlank(place.getCity(), e -> pe.addElement("City", e)); + SipUtils.ifNotBlank(place.getCountry(), e -> pe.addElement("Country", e)); + SipUtils.ifNotBlank(place.getGeogName(), e -> pe.addElement("GeogName", e)); + SipUtils.ifNotBlank(place.getPostalCode(), e -> pe.addElement("PostalCode", e)); + SipUtils.ifNotBlank(place.getRegion(), e -> pe.addElement("Region", e)); + return pe; + } + + private Node toNode(String fragment) { + return toNode(fragment, documentBuilder); + } + + private Node toNode(String fragment, DocumentBuilder docBuilder) { + try { + Document doc = docBuilder.newDocument(); + org.w3c.dom.Element node = + docBuilder.parse(new InputSource(new StringReader(fragment))).getDocumentElement(); + node.setAttribute("xmlns", EXT_NS); + return doc.importNode(node, true); + + } catch (SAXException | IOException ex) { + LOGGER.warn("Unable to create Node from document builder"); + throw new SipException(ex); } - - private Element toCustodialItemElement(ArchiveUnit unit) { - Element cht = new Element("CustodialHistory"); - unit.getCustodialItems().forEach(e -> { - Element chit = new Element("CustodialHistoryItem", e.getValue()); - chit.addAttribute("when", SipUtils.toXmlDateTime(e.getWhen()).toString()); - cht.addElement(chit); - }); - return cht; + } + + private Node toNode(Element element) { + return toNode(element, documentBuilder.newDocument()); + } + + private Node toNode(Element element, Document doc) { + org.w3c.dom.Element node = doc.createElementNS(EXT_NS, element.getName()); + node.setTextContent(element.getValue()); + element.getAttributes().forEach(node::setAttribute); + element.getElements().forEach(e -> node.appendChild(toNode(e, doc))); + return node; + } + + private AccessRuleType toAccessRuleType(AccessRules accessRule) { + AccessRuleType art = fntcv4Factory.createAccessRuleType(); + SipUtils.ifNotBlank(accessRule.getRuleName(), art::setRule); + ifNotNull(accessRule.getStartDate(), e -> art.setStartDate(SipUtils.toXmlDate(e))); + return art; + } + + private AppraisalRuleType toAppraisalRuleType(AppraisalRules appraisalRule) { + AppraisalRuleType art = fntcv4Factory.createAppraisalRuleType(); + SipUtils.ifNotBlank(appraisalRule.getRuleName(), art::setAppraisalCode); + SipUtils.ifNotBlank(appraisalRule.getDuration(), e -> art.setDuration(SipUtils.toDuration(e))); + ifNotNull(appraisalRule.getStartDate(), e -> art.setStartDate(SipUtils.toXmlDate(e))); + return art; + } + + private EventType toEventType(Event event) { + EventType et = fntcv4Factory.createEventType(); + ifNotNull(event.getIdentifier(), e -> et.setEventIdentifier(toTextType(e))); + ifNotNull(event.getDateTime(), e -> et.setEventDateTime(SipUtils.toXmlDateTime(e))); + ifNotNull(event.getDetail(), e -> et.setEventDetail(toTextType(e))); + ifNotNull(event.getDetailData(), e -> et.setEventDetailData(toTextType(e))); + ifNotNull(event.getOutcome(), e -> et.setOutcome(toTextType(e))); + ifNotNull(event.getOutcomeDetail(), e -> et.setOutcomeDetail(toTextType(e))); + ifNotNull(event.getOutcomeDetailMessage(), e -> et.setOutcomeDetailMessage(toTextType(e))); + ifNotNull(event.getType(), e -> et.setEventType(toTextType(e))); + ifNotNull(event.getTypeCode(), e -> et.setEventTypeCode(toTextType(e))); + return et; + } + + private CodeListVersionsType toCodeListVersionsType(CodeListVersions code) { + CodeListVersionsType clvt = medonaFactory.createCodeListVersionsType(); + clvt.setId(code.getId()); + + if (isStrict) { + if (code.getSignatureStatusCodeListVersion() != null) { + throw new SipException("FNTC V4 does not support SignatureStatusCodeListVersion"); + } + if (code.getMimeTypeCodeListVersion() != null) { + throw new SipException("FNTC V4 does not support MimeTypeCodeListVersion"); + } + if (code.getEncodingCodeListVersion() != null) { + throw new SipException("FNTC V4 does not support EncodingCodeListVersion"); + } + if (code.getCompressionAlgorithmCodeListVersion() != null) { + throw new SipException("FNTC V4 does not support CompressionAlgorithmCodeListVersion"); + } + if (code.getDataObjectVersionCodeListVersion() != null) { + throw new SipException("FNTC V4 does not support DataObjectVersionCodeListVersion"); + } + if (code.getStorageRuleCodeListVersion() != null) { + throw new SipException("FNTC V4 does not support StorageRuleCodeListVersion"); + } + if (code.getAppraisalRuleCodeListVersion() != null) { + throw new SipException("FNTC V4 does not support AppraisalRuleCodeListVersion"); + } + if (code.getAccessRuleCodeListVersion() != null) { + throw new SipException("FNTC V4 does not support AccessRuleCodeListVersion"); + } + if (code.getReuseRuleCodeListVersion() != null) { + throw new SipException("FNTC V4 does not support ReuseRuleCodeListVersion"); + } + if (code.getClassificationRuleCodeListVersion() != null) { + throw new SipException("FNTC V4 does not support ClassificationRuleCodeListVersion"); + } + if (code.getAcquisitionInformationCodeListVersion() != null) { + throw new SipException("FNTC V4 does not support AcquisitionInformationCodeListVersion"); + } } - private Element toOrganizationElement(Agency agency, String name) { - Element ae = new Element(name); - SipUtils.ifNotBlank(agency.getIdentifier(), e -> ae.addElement("Identifier", e)); - - if (StringUtils.isNotBlank(agency.getName()) || !agency.getElements().isEmpty()) { - Element odm = new Element("OrganizationDescriptiveMetadata"); - SipUtils.ifNotBlank(agency.getName(), e -> odm.addElement("Name", e)); - agency.getElements().forEach(odm::addElement); - ae.addElement(odm); - } - return ae; + SipUtils.ifNotBlank( + code.getAuthorizationReasonCodeListVersion(), + e -> clvt.setAuthorizationReasonCodeListVersion(toCodeType(e))); + SipUtils.ifNotBlank( + code.getFileEncodingCodeListVersion(), + e -> clvt.setFileEncodingCodeListVersion(toCodeType(e))); + SipUtils.ifNotBlank( + code.getFileFormatCodeListVersion(), e -> clvt.setFileFormatCodeListVersion(toCodeType(e))); + SipUtils.ifNotBlank( + code.getMessageDigestAlgorithmCodeListVersion(), + e -> clvt.setMessageDigestAlgorithmCodeListVersion(toCodeType(e))); + SipUtils.ifNotBlank( + code.getRelationshipCodeListVersion(), + e -> clvt.setRelationshipCodeListVersion(toCodeType(e))); + SipUtils.ifNotBlank( + code.getReplyCodeListVersion(), e -> clvt.setReplyCodeListVersion(toCodeType(e))); + SipUtils.ifNotBlank( + code.getSignatureStatusCodeListVersion(), + e -> clvt.setSignatureStatusCodeListVersion(toCodeType(e))); + return clvt; + } + + private CodeType toCodeType(String codeType) { + CodeType ct = medonaFactory.createCodeType(); + ct.setValue(codeType); + return ct; + } + + private Element toCustodialItemElement(ArchiveUnit unit) { + Element cht = new Element("CustodialHistory"); + unit.getCustodialItems() + .forEach( + e -> { + Element chit = new Element("CustodialHistoryItem", e.getValue()); + chit.addAttribute("when", SipUtils.toXmlDateTime(e.getWhen()).toString()); + cht.addElement(chit); + }); + return cht; + } + + private Element toOrganizationElement(Agency agency, String name) { + Element ae = new Element(name); + SipUtils.ifNotBlank(agency.getIdentifier(), e -> ae.addElement("Identifier", e)); + + if (StringUtils.isNotBlank(agency.getName()) || !agency.getElements().isEmpty()) { + Element odm = new Element("OrganizationDescriptiveMetadata"); + SipUtils.ifNotBlank(agency.getName(), e -> odm.addElement("Name", e)); + agency.getElements().forEach(odm::addElement); + ae.addElement(odm); } - - private OrganizationType toOrganizationType(Agency agency) { - OrganizationType ot = medonaFactory.createOrganizationType(); - ot.setIdentifier(toIdentifierType(agency.getIdentifier())); - if (StringUtils.isNotBlank(agency.getName())) { - OrganizationDescriptiveMetadataType odmt = medonaFactory.createOrganizationDescriptiveMetadataType(); - odmt.setAny(fntcv4Factory.createName(toTextType(agency.getName()))); - ot.setOrganizationDescriptiveMetadata(odmt); - } - if (isStrict && !agency.getElements().isEmpty()) { - throw new SipException("FNTC V4 does not support multiple elements in OrganizationDescriptiveMetadata"); - } - return ot; + return ae; + } + + private OrganizationType toOrganizationType(Agency agency) { + OrganizationType ot = medonaFactory.createOrganizationType(); + ot.setIdentifier(toIdentifierType(agency.getIdentifier())); + if (StringUtils.isNotBlank(agency.getName())) { + OrganizationDescriptiveMetadataType odmt = + medonaFactory.createOrganizationDescriptiveMetadataType(); + odmt.setAny(fntcv4Factory.createName(toTextType(agency.getName()))); + ot.setOrganizationDescriptiveMetadata(odmt); } - - private IdentifierType toIdentifierType(String identifier) { - IdentifierType it = medonaFactory.createIdentifierType(); - it.setValue(identifier); - return it; + if (isStrict && !agency.getElements().isEmpty()) { + throw new SipException( + "FNTC V4 does not support multiple elements in OrganizationDescriptiveMetadata"); } - - private SignatureType toSignatureType(String signature) { - SignatureType st = medonaFactory.createSignatureType(); - st.setAny(fntcv4Factory.createFormat(toTextType(signature))); - return st; + return ot; + } + + private IdentifierType toIdentifierType(String identifier) { + IdentifierType it = medonaFactory.createIdentifierType(); + it.setValue(identifier); + return it; + } + + private SignatureType toSignatureType(String signature) { + SignatureType st = medonaFactory.createSignatureType(); + st.setAny(fntcv4Factory.createFormat(toTextType(signature))); + return st; + } + + private org.afnor.medona.v1.TextType toMedonaTextType(String text) { + org.afnor.medona.v1.TextType tt = medonaFactory.createTextType(); + tt.setValue(text); + return tt; + } + + private TextType toTextType(String text) { + TextType tt = fntcv4Factory.createTextType(); + tt.setValue(text); + return tt; + } + + private TextType toTextType(Text text) { + TextType tt = fntcv4Factory.createTextType(); + tt.setValue(text.getMessage()); + tt.setLang(text.getLang()); + return tt; + } + + private TagType toTagType(Tag tag) { + TagType tt = fntcv4Factory.createTagType(); + if (StringUtils.isNotBlank(tag.key())) { + tt.setKey(tag.key()); } - private org.afnor.medona.v1.TextType toMedonaTextType(String text) { - org.afnor.medona.v1.TextType tt = medonaFactory.createTextType(); - tt.setValue(text); - return tt; - } + tt.setValue(tag.value()); + return tt; + } - private TextType toTextType(String text) { - TextType tt = fntcv4Factory.createTextType(); - tt.setValue(text); - return tt; - } + private String incAndGetCounter() { + return "ID" + idCounter.incrementAndGet(); + } - private TextType toTextType(Text text) { - TextType tt = fntcv4Factory.createTextType(); - tt.setValue(text.getMessage()); - tt.setLang(text.getLang()); - return tt; - } + private class ZipTask implements Callable { - private TagType toTagType(Tag tag) { - TagType tt = fntcv4Factory.createTagType(); - if (StringUtils.isNotBlank(tag.getKey())) { - tt.setKey(tag.getKey()); - } + private final Path binaryPath; + private final BinaryDataObjectType bdot; - tt.setValue(tag.getValue()); - return tt; + /** + * Instantiates a new Zip task. + * + * @param binaryPath the binary path + * @param bdot the bdot + */ + public ZipTask(Path binaryPath, BinaryDataObjectType bdot) { + this.binaryPath = binaryPath; + this.bdot = bdot; } - private String incAndGetCounter() { - return "ID" + idCounter.incrementAndGet(); - } + private Path zip(Path binaryPath, String entryName) throws IOException { - private class ZipTask implements Callable { + Path docEntry = zipArchive.getPath("Content"); + if (Files.notExists(docEntry)) { + try { + Files.createDirectories(docEntry); + } catch (FileAlreadyExistsException ex) { + LOGGER.warn("zip: ", ex); + } + } + + Path zipEntry = docEntry.resolve(entryName); + if (Files.notExists(zipEntry)) { + try (OutputStream out = Files.newOutputStream(zipEntry)) { + Files.copy(binaryPath, out); + } catch (FileAlreadyExistsException ex) { + LOGGER.warn("zip: ", ex); + } + } - private final Path binaryPath; - private final BinaryDataObjectType bdot; + return zipEntry; + } - /** - * Instantiates a new Zip task. - * - * @param binaryPath the binary path - * @param bdot the bdot - */ - public ZipTask(Path binaryPath, BinaryDataObjectType bdot) { - this.binaryPath = binaryPath; - this.bdot = bdot; + @Override + public Void call() { + MessageDigestBinaryObjectType mdbot = bdot.getMessageDigest(); + + try { + // Compute Digest + byte[] d = SipUtils.digest(binaryPath, mdbot.getAlgorithm()); + mdbot.setValue(d); // The digest is encoded to Base64 by JAXB in the XML + + // Add binary file to zip + if (zipArchive != null) { + Path zipEntry = + zip( + binaryPath, + Hex.encodeHexString(d) + + "_" + + Files.getLastModifiedTime(binaryPath).toMillis() + + "_" + + binaryPath.getFileName()); + long size = (long) Files.getAttribute(zipEntry, "zip:size"); + bdot.setSize(new BigDecimal(size)); + bdot.getAttachment().setUri(zipEntry.toString()); + } else { + bdot.setSize(new BigDecimal(Files.size(binaryPath))); + bdot.getAttachment() + .setUri( + "Content/" + + Hex.encodeHexString(d) + + "_" + + Files.getLastModifiedTime(binaryPath).toMillis() + + "_" + + binaryPath.getFileName()); } - private Path zip(Path binaryPath, String entryName) throws IOException { - - Path docEntry = zipArchive.getPath("Content"); - if (Files.notExists(docEntry)) { - try { - Files.createDirectories(docEntry); - } catch (FileAlreadyExistsException ex) { - LOGGER.warn("zip: ", ex); - } - } - - Path zipEntry = docEntry.resolve(entryName); - if (Files.notExists(zipEntry)) { - try (OutputStream out = Files.newOutputStream(zipEntry)) { - Files.copy(binaryPath, out); - } catch (FileAlreadyExistsException ex) { - LOGGER.warn("zip: ", ex); - } - } - - return zipEntry; + // Note. The Signature Identifier does not fully support NIO2 (i.e. does not work with + // jimfs) + if (StringUtils.isBlank(bdot.getFormat())) { + String ext = FilenameUtils.getExtension(binaryPath.getFileName().toString()); + List results = DroidUtils.matchBinarySignatures(binaryPath, ext); + String format = results.isEmpty() ? "Unknown Format" : results.get(0).getPuid(); + bdot.setFormat(format); } + } catch (Exception ex) { + executor.shutdownNow(); + throw new SipException("Fail to complete ZipTask for " + binaryPath, ex); + } - @Override - public Void call() { - MessageDigestBinaryObjectType mdbot = bdot.getMessageDigest(); - - try { - // Compute Digest - byte[] d = SipUtils.digest(binaryPath, mdbot.getAlgorithm()); - mdbot.setValue(d); // The digest is encoded to Base64 by JAXB in the XML - - // Add binary file to zip - if (zipArchive != null) { - Path zipEntry = zip(binaryPath, Hex.encodeHexString(d) + "_" + Files.getLastModifiedTime(binaryPath).toMillis() + "_" + binaryPath.getFileName()); - long size = (long) Files.getAttribute(zipEntry, "zip:size"); - bdot.setSize(new BigDecimal(size)); - bdot.getAttachment().setUri(zipEntry.toString()); - } else { - bdot.setSize(new BigDecimal(Files.size(binaryPath))); - bdot.getAttachment().setUri("Content/" + Hex.encodeHexString(d) + "_" + Files.getLastModifiedTime(binaryPath).toMillis() + "_" + binaryPath.getFileName()); - } - - // Note. The Signature Identifier does not fully support NIO2 (ie. does not work with jimfs) - if (StringUtils.isBlank(bdot.getFormat())) { - String ext = FilenameUtils.getExtension(binaryPath.getFileName().toString()); - List results = DroidUtils.matchBinarySignatures(binaryPath, ext); - String format = results.isEmpty() ? "Unknown Format" : results.get(0).getPuid(); - bdot.setFormat(format); - } - } catch (Exception ex) { - executor.shutdownNow(); - throw new SipException("Fail to complete ZipTask for " + binaryPath, ex); - } - - // Void - return null; - } + // Void + return null; } - + } } diff --git a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Parser.java b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Parser.java index 765214b..fe94543 100644 --- a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Parser.java +++ b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Parser.java @@ -18,17 +18,16 @@ */ package fr.xelians.sipg.service.fntcv4; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import javax.xml.parsers.ParserConfigurationException; +import javax.xml.parsers.SAXParserFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.xml.sax.*; import org.xml.sax.helpers.DefaultHandler; -import javax.xml.parsers.ParserConfigurationException; -import javax.xml.parsers.SAXParserFactory; -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; - /** * La classe Fntcv4Parser permet de parser le manifeste XML d'une archive au format FNTC v4. * @@ -36,143 +35,141 @@ */ class Fntcv4Parser extends DefaultHandler { - private static final Logger LOGGER = LoggerFactory.getLogger(Fntcv4Parser.class); - - private final ArrayList binaryObjects = new ArrayList<>(); - private Fntcv4BinaryObject binaryObject; - private StringBuilder buffer; - - private Fntcv4Parser() { + private static final Logger LOGGER = LoggerFactory.getLogger(Fntcv4Parser.class); + + private final ArrayList binaryObjects = new ArrayList<>(); + private Fntcv4BinaryObject binaryObject; + private StringBuilder buffer; + + private Fntcv4Parser() {} + + /** + * Parse array list. + * + * @param is the is + * @return the array list + * @throws IOException the io exception + * @throws ParserConfigurationException the parser configuration exception + * @throws SAXException the sax exception + */ + static ArrayList parse(InputStream is) + throws IOException, ParserConfigurationException, SAXException { + Fntcv4Parser parser = new Fntcv4Parser(); + XMLReader reader = SAXParserFactory.newInstance().newSAXParser().getXMLReader(); + reader.setContentHandler(parser); + reader.setErrorHandler(parser); + reader.setFeature("http://xml.org/sax/features/validation", false); + reader.setFeature("http://xml.org/sax/features/namespaces", false); + + // Avoid XXE + reader.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); + reader.setFeature("http://xml.org/sax/features/external-general-entities", false); + reader.setFeature("http://xml.org/sax/features/external-parameter-entities", false); + + reader.parse(new InputSource(is)); + return parser.binaryObjects; + } + + @Override + public void startElement(String uri, String local, String raw, Attributes attrs) { + if ("BinaryDataObject".equals(raw)) { + binaryObject = new Fntcv4BinaryObject(); + return; } - /** - * Parse array list. - * - * @param is the is - * @return the array list - * @throws IOException the io exception - * @throws ParserConfigurationException the parser configuration exception - * @throws SAXException the sax exception - */ - static ArrayList parse(InputStream is) - throws IOException, ParserConfigurationException, SAXException { - Fntcv4Parser parser = new Fntcv4Parser(); - XMLReader reader = SAXParserFactory.newInstance().newSAXParser().getXMLReader(); - reader.setContentHandler(parser); - reader.setErrorHandler(parser); - reader.setFeature("http://xml.org/sax/features/validation", false); - reader.setFeature("http://xml.org/sax/features/namespaces", false); - - // Avoid XXE - reader.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); - reader.setFeature("http://xml.org/sax/features/external-general-entities", false); - reader.setFeature("http://xml.org/sax/features/external-parameter-entities", false); - - reader.parse(new InputSource(is)); - return parser.binaryObjects; + if (binaryObject == null) { + return; } - @Override - public void startElement(String uri, String local, String raw, Attributes attrs) { - if ("BinaryDataObject".equals(raw)) { - binaryObject = new Fntcv4BinaryObject(); - return; - } - - if (binaryObject == null) { - return; - } - - buffer = new StringBuilder(); + buffer = new StringBuilder(); - if ("Attachment".equals(raw)) { - for (int i = 0; i < attrs.getLength(); i++) { - if ("uri".equals(attrs.getQName(i))) { - binaryObject.setUri(attrs.getValue(i)); - } - } - return; + if ("Attachment".equals(raw)) { + for (int i = 0; i < attrs.getLength(); i++) { + if ("uri".equals(attrs.getQName(i))) { + binaryObject.setUri(attrs.getValue(i)); } + } + return; + } - if ("MessageDigest".equals(raw)) { - for (int i = 0; i < attrs.getLength(); i++) { - if ("algorithm".equals(attrs.getQName(i))) { - binaryObject.setAlgorithm(attrs.getValue(i)); - } - } + if ("MessageDigest".equals(raw)) { + for (int i = 0; i < attrs.getLength(); i++) { + if ("algorithm".equals(attrs.getQName(i))) { + binaryObject.setAlgorithm(attrs.getValue(i)); } + } } + } - @Override - public void characters(char[] ch, int start, int length) { - if (buffer != null) { - buffer.append(ch, start, length); - } + @Override + public void characters(char[] ch, int start, int length) { + if (buffer != null) { + buffer.append(ch, start, length); } + } - @Override - public void endElement(String uri, String local, String raw) { - if (binaryObject != null) { - - if ("MessageDigest".equals(raw)) { - binaryObject.setDigest(buffer.toString()); - buffer = null; - return; - } - - if ("Size".equals(raw)) { - binaryObject.setSize(Long.parseLong(buffer.toString())); - buffer = null; - return; - } - - if ("Format".equals(raw)) { - binaryObject.setFormat(buffer.toString()); - buffer = null; - return; - } - - if ("BinaryDataObject".equals(raw)) { - binaryObjects.add(binaryObject); - binaryObject = null; - buffer = null; - return; - } - } + @Override + public void endElement(String uri, String local, String raw) { + if (binaryObject != null) { + if ("MessageDigest".equals(raw)) { + binaryObject.setDigest(buffer.toString()); buffer = null; - } + return; + } - @Override - public void warning(SAXParseException ex) { - LOGGER.warn(getLocationString(ex), ex); - } + if ("Size".equals(raw)) { + binaryObject.setSize(Long.parseLong(buffer.toString())); + buffer = null; + return; + } - @Override - public void error(SAXParseException ex) { - LOGGER.warn(getLocationString(ex), ex); - } + if ("Format".equals(raw)) { + binaryObject.setFormat(buffer.toString()); + buffer = null; + return; + } - @Override - public void fatalError(SAXParseException ex) { - LOGGER.warn(getLocationString(ex), ex); + if ("BinaryDataObject".equals(raw)) { + binaryObjects.add(binaryObject); + binaryObject = null; + buffer = null; + return; + } } - // Returns a string of the location. - private String getLocationString(SAXParseException ex) { - StringBuilder str = new StringBuilder(); - - String systemId = ex.getSystemId(); - if (systemId != null) { - int index = systemId.lastIndexOf('/'); - if (index != -1) { - systemId = systemId.substring(index + 1); - } - str.append(systemId); - } - str.append(':').append(ex.getLineNumber()); - str.append(':').append(ex.getColumnNumber()); - return str.toString(); + buffer = null; + } + + @Override + public void warning(SAXParseException ex) { + LOGGER.warn(getLocationString(ex), ex); + } + + @Override + public void error(SAXParseException ex) { + LOGGER.warn(getLocationString(ex), ex); + } + + @Override + public void fatalError(SAXParseException ex) { + LOGGER.warn(getLocationString(ex), ex); + } + + // Returns a string of the location. + private String getLocationString(SAXParseException ex) { + StringBuilder str = new StringBuilder(); + + String systemId = ex.getSystemId(); + if (systemId != null) { + int index = systemId.lastIndexOf('/'); + if (index != -1) { + systemId = systemId.substring(index + 1); + } + str.append(systemId); } - + str.append(':').append(ex.getLineNumber()); + str.append(':').append(ex.getColumnNumber()); + return str.toString(); + } } diff --git a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Resolver.java b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Resolver.java index 433936d..552969d 100644 --- a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Resolver.java +++ b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Resolver.java @@ -19,54 +19,58 @@ package fr.xelians.sipg.service.fntcv4; import fr.xelians.sipg.service.common.LSInputImpl; +import java.io.InputStream; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.w3c.dom.ls.LSInput; import org.w3c.dom.ls.LSResourceResolver; -import java.io.InputStream; - /** - * La classe Fntcv4Resolver permet de résoudre les accès aux schémas inclus dans les XSD utilisés lors de la conversion - * en FNTC v4. + * La classe Fntcv4Resolver permet de résoudre les accès aux schémas inclus dans les XSD utilisés + * lors de la conversion en FNTC v4. * * @author Emmanuel Deviller */ public class Fntcv4Resolver implements LSResourceResolver { - private static final Logger LOGGER = LoggerFactory.getLogger(Fntcv4Resolver.class); + private static final Logger LOGGER = LoggerFactory.getLogger(Fntcv4Resolver.class); - private final InputStream fntcInputStream; - private final InputStream xmlInputStream; - private final InputStream xlinkInputStream; + private final InputStream fntcInputStream; + private final InputStream xmlInputStream; + private final InputStream xlinkInputStream; - /** - * Instantiates a new Fntcv 4 resolver. - * - * @param fntcInputStream the fntc input stream - * @param xmlInputStream the xml input stream - * @param xlinkInputStream the xlink input stream - */ - public Fntcv4Resolver(InputStream fntcInputStream, InputStream xmlInputStream, InputStream xlinkInputStream) { - this.fntcInputStream = fntcInputStream; - this.xmlInputStream = xmlInputStream; - this.xlinkInputStream = xlinkInputStream; - } + /** + * Instantiates a new Fntcv 4 resolver. + * + * @param fntcInputStream the fntc input stream + * @param xmlInputStream the xml input stream + * @param xlinkInputStream the xlink input stream + */ + public Fntcv4Resolver( + InputStream fntcInputStream, InputStream xmlInputStream, InputStream xlinkInputStream) { + this.fntcInputStream = fntcInputStream; + this.xmlInputStream = xmlInputStream; + this.xlinkInputStream = xlinkInputStream; + } - @Override - public LSInput resolveResource(final String type, final String namespaceURI, final String publicId, String systemId, - final String baseURI) { + @Override + public LSInput resolveResource( + final String type, + final String namespaceURI, + final String publicId, + String systemId, + final String baseURI) { - switch (systemId) { - case "fntcta-4.0.xsd": - return new LSInputImpl(publicId, systemId, fntcInputStream); - case "http://www.w3.org/2001/xml.xsd": - return new LSInputImpl(publicId, systemId, xmlInputStream); - case "http://www.w3.org/1999/xlink.xsd": - return new LSInputImpl(publicId, systemId, xlinkInputStream); - default: - LOGGER.info("Unable to resolve resource {}", systemId); - } - return null; + switch (systemId) { + case "fntcta-4.0.xsd": + return new LSInputImpl(publicId, systemId, fntcInputStream); + case "http://www.w3.org/2001/xml.xsd": + return new LSInputImpl(publicId, systemId, xmlInputStream); + case "http://www.w3.org/1999/xlink.xsd": + return new LSInputImpl(publicId, systemId, xlinkInputStream); + default: + LOGGER.info("Unable to resolve resource {}", systemId); } + return null; + } } diff --git a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Service.java b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Service.java index 178beef..a3d2ef6 100644 --- a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Service.java +++ b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Service.java @@ -29,21 +29,6 @@ import jakarta.xml.bind.JAXBException; import jakarta.xml.bind.Marshaller; import jakarta.xml.bind.util.JAXBSource; -import org.afnor.medona.v1.ArchiveTransferType; -import org.apache.commons.io.FilenameUtils; -import org.apache.commons.lang3.Validate; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.xml.sax.SAXException; - -import javax.xml.XMLConstants; -import javax.xml.parsers.ParserConfigurationException; -import javax.xml.transform.Result; -import javax.xml.transform.Source; -import javax.xml.transform.stream.StreamSource; -import javax.xml.validation.Schema; -import javax.xml.validation.SchemaFactory; -import javax.xml.validation.Validator; import java.io.BufferedOutputStream; import java.io.IOException; import java.io.InputStream; @@ -57,12 +42,26 @@ import java.util.Base64; import java.util.Collections; import java.util.concurrent.ExecutionException; +import javax.xml.XMLConstants; +import javax.xml.parsers.ParserConfigurationException; +import javax.xml.transform.Result; +import javax.xml.transform.Source; +import javax.xml.transform.stream.StreamSource; +import javax.xml.validation.Schema; +import javax.xml.validation.SchemaFactory; +import javax.xml.validation.Validator; +import org.afnor.medona.v1.ArchiveTransferType; +import org.apache.commons.io.FilenameUtils; +import org.apache.commons.lang3.Validate; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.xml.sax.SAXException; /** - * La classe Fntcv4Service offre des API pour valider et sérialiser une archive dans un paquet zip selon le standard - * FNTC v4. Le processus de sérialisation peut être contrôlé par configuration. Il est aussi possible d'opérer une - * validation supplémentaire du fichier de description de l'archive selon un schéma RNG. Note. La classe Fntcv4Service - * est thread-safe. + * La classe Fntcv4Service offre des API pour valider et sérialiser une archive dans un paquet zip + * selon le standard FNTC v4. Le processus de sérialisation peut être contrôlé par configuration. Il + * est aussi possible d'opérer une validation supplémentaire du fichier de description de l'archive + * selon un schéma RNG. Note. La classe Fntcv4Service est thread-safe. * * @author Emmanuel Deviller * @see ArchiveTransfer @@ -70,451 +69,509 @@ */ public class Fntcv4Service { - public static final String HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL = "http://apache.org/xml/features/disallow-doctype-decl"; - - private static final Logger LOGGER = LoggerFactory.getLogger(Fntcv4Service.class); - private static final Fntcv4Service INSTANCE = new Fntcv4Service(); - - private final JAXBContext fntcContext; - private final Schema fntcSchema; - - private Fntcv4Service() { - - // Load provided schemas from resource - try (InputStream is1 = SipUtils.resourceAsStream("medona-1.0.xsd"); - InputStream is2 = SipUtils.resourceAsStream("fntcta-4.0.xsd"); - InputStream is3 = SipUtils.resourceAsStream("xml.xsd"); - InputStream is4 = SipUtils.resourceAsStream("xlink.xsd")) { - - SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); - sf.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); // Avoid XXE - sf.setResourceResolver(new Fntcv4Resolver(is2, is3, is4)); - fntcSchema = sf.newSchema(new StreamSource(is1)); - fntcContext = JAXBContext.newInstance(org.afnor.medona.v1.ObjectFactory.class, - org.fntc.ta.v4.ObjectFactory.class); - } catch (IOException | JAXBException | SAXException ex) { - LOGGER.warn("Unable to initialize XSD Schemas, JAXBContext and Marshaller"); - throw new SipException(ex); - } - } - - /** - * Retourne l'instance singleton de la classe Fntcv4Service. - * - * @return l 'instance singleton - */ - public static Fntcv4Service getInstance() { - return INSTANCE; + public static final String HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL = + "http://apache.org/xml/features/disallow-doctype-decl"; + + private static final Logger LOGGER = LoggerFactory.getLogger(Fntcv4Service.class); + private static final Fntcv4Service INSTANCE = new Fntcv4Service(); + + private final JAXBContext fntcContext; + private final Schema fntcSchema; + + private Fntcv4Service() { + + // Load provided schemas from resource + try (InputStream is1 = SipUtils.resourceAsStream("medona-1.0.xsd"); + InputStream is2 = SipUtils.resourceAsStream("fntcta-4.0.xsd"); + InputStream is3 = SipUtils.resourceAsStream("xml.xsd"); + InputStream is4 = SipUtils.resourceAsStream("xlink.xsd")) { + + SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); + sf.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); // Avoid XXE + sf.setResourceResolver(new Fntcv4Resolver(is2, is3, is4)); + fntcSchema = sf.newSchema(new StreamSource(is1)); + fntcContext = + JAXBContext.newInstance( + org.afnor.medona.v1.ObjectFactory.class, org.fntc.ta.v4.ObjectFactory.class); + } catch (IOException | JAXBException | SAXException ex) { + LOGGER.warn("Unable to initialize XSD Schemas, JAXBContext and Marshaller"); + throw new SipException(ex); } - - /** - * Sérialise l'archive dans un paquet zip au format FNTC v4. - * - * @param archive l'archive à sérialiser - * @param zipPath le path du paquet zip - */ - public void write(ArchiveTransfer archive, Path zipPath) { - this.write(archive, zipPath, null, Fntcv4Config.DEFAULT); - } - - /** - * Sérialise l'archive dans un paquet zip au format FNTC v4. Le fichier XML de description de l'archive peut être - * validé selon le schéma RNG défini par le Validator. - *

- * Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application appelante de s'assurer - * que l'objet {@link Validator} n'est utilisé à tout moment que par une seule et mếme thread. - * - * @param archive l'archive à sérialiser - * @param zipPath le path du paquet zip - * @param validator le validateur RNG - */ - public void write(ArchiveTransfer archive, Path zipPath, Validator validator) { - this.write(archive, zipPath, validator, Fntcv4Config.DEFAULT); - } - - /** - * Sérialise l'archive dans un paquet zip au format FNTC v4. La configuration permet de contrôler le processus de - * sérialisation. - * - * @param archive l'archive à sérialiser - * @param zipPath le path du paquet zip - * @param config la configuration utilisée lors de la sérialisation - */ - public void write(ArchiveTransfer archive, Path zipPath, Fntcv4Config config) { - this.write(archive, zipPath, null, config); + } + + /** + * Retourne l'instance singleton de la classe Fntcv4Service. + * + * @return l 'instance singleton + */ + public static Fntcv4Service getInstance() { + return INSTANCE; + } + + /** + * Sérialise l'archive dans un paquet zip au format FNTC v4. + * + * @param archive l'archive à sérialiser + * @param zipPath le path du paquet zip + */ + public void write(ArchiveTransfer archive, Path zipPath) { + this.write(archive, zipPath, null, Fntcv4Config.DEFAULT); + } + + /** + * Sérialise l'archive dans un paquet zip au format FNTC v4. Le fichier XML de description de + * l'archive peut être validé selon le schéma RNG défini par le Validator. + * + *

Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application + * appelante de s'assurer que l'objet {@link Validator} n'est utilisé à tout moment que par une + * seule et mếme thread. + * + * @param archive l'archive à sérialiser + * @param zipPath le path du paquet zip + * @param validator le validateur RNG + */ + public void write(ArchiveTransfer archive, Path zipPath, Validator validator) { + this.write(archive, zipPath, validator, Fntcv4Config.DEFAULT); + } + + /** + * Sérialise l'archive dans un paquet zip au format FNTC v4. La configuration permet de contrôler + * le processus de sérialisation. + * + * @param archive l'archive à sérialiser + * @param zipPath le path du paquet zip + * @param config la configuration utilisée lors de la sérialisation + */ + public void write(ArchiveTransfer archive, Path zipPath, Fntcv4Config config) { + this.write(archive, zipPath, null, config); + } + + /** + * Sérialise l'archive dans un paquet zip au format FNTC v4. Le fichier XML de description de + * l'archive peut être validé selon le schéma RNG défini par le Validator. La configuration permet + * de contrôler le processus de sérialisation. + * + *

Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application + * appelante de s'assurer que l'objet {@link Validator} n'est utilisé à tout moment que par une + * seule et même thread. + * + * @param archive l'archive à sérialiser + * @param zipPath le path du paquet zip + * @param validator le validateur RNG + * @param config la configuration utilisée lors du processus de sérialisation + */ + public void write( + ArchiveTransfer archive, Path zipPath, Validator validator, Fntcv4Config config) { + Validate.notNull(archive, SipUtils.NOT_NULL, "archiveTransfer"); + Validate.notNull(zipPath, SipUtils.NOT_NULL, "zipPath"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + try { + Files.deleteIfExists(zipPath); + } catch (IOException ex) { + LOGGER.warn("Unable to delete file {}", zipPath); + throw new SipException(ex); } - /** - * Sérialise l'archive dans un paquet zip au format FNTC v4. Le fichier XML de description de l'archive peut être - * validé selon le schéma RNG défini par le Validator. La configuration permet de contrôler le processus de - * sérialisation. - *

- * Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application appelante de s'assurer - * que l'objet {@link Validator} n'est utilisé à tout moment que par une seule et même thread. - * - * @param archive l'archive à sérialiser - * @param zipPath le path du paquet zip - * @param validator le validateur RNG - * @param config la configuration utilisée lors du processus de sérialisation - */ - public void write(ArchiveTransfer archive, Path zipPath, Validator validator, Fntcv4Config config) { - Validate.notNull(archive, SipUtils.NOT_NULL, "archiveTransfer"); - Validate.notNull(zipPath, SipUtils.NOT_NULL, "zipPath"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); + try (FileSystem zipArchive = SipUtils.newZipFileSystem(zipPath, config.useMemory())) { + ArchiveTransferType att = Fntcv4Converter.convert(archive, zipArchive, config); + final Path zipEntryPath = zipArchive.getPath("manifest.xml"); + try (OutputStream os = Files.newOutputStream(zipEntryPath); + BufferedOutputStream bos = new BufferedOutputStream(os, 4096)) { - try { - Files.deleteIfExists(zipPath); - } catch (IOException ex) { - LOGGER.warn("Unable to delete file {}", zipPath); - throw new SipException(ex); + // Set External Validator + if (validator != null) { + validator.validate(new JAXBSource(fntcContext, att)); } - try (FileSystem zipArchive = SipUtils.newZipFileSystem(zipPath, config.useMemory())) { - ArchiveTransferType att = Fntcv4Converter.convert(archive, zipArchive, config); - final Path zipEntryPath = zipArchive.getPath("manifest.xml"); - try (OutputStream os = Files.newOutputStream(zipEntryPath); - BufferedOutputStream bos = new BufferedOutputStream(os, 4096)) { - - // Set External Validator - if (validator != null) { - validator.validate(new JAXBSource(fntcContext, att)); - } - - Marshaller fntcMarshaller = fntcContext.createMarshaller(); - fntcMarshaller.setSchema(config.isValidate() ? fntcSchema : null); - fntcMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, false); - - // Marshall & prettyPrint - if (config.isFormat()) { - // JAXB_FORMATTED_OUTPUT is buggy and does not format XML with DOM nodes. Hence, this ugly hack... - ByteArrayInOutStream baios = new ByteArrayInOutStream(1024); - fntcMarshaller.marshal(att, baios); - SipUtils.formatXml(baios.getInputStream(), bos, config.getIndent()); - } else { - fntcMarshaller.marshal(att, bos); - } - } - } catch (IOException | ExecutionException | InterruptedException | JAXBException | SAXException ex) { - Thread.currentThread().interrupt(); - throw new SipException("Unable to serialize archive " + zipPath, ex); + Marshaller fntcMarshaller = fntcContext.createMarshaller(); + fntcMarshaller.setSchema(config.validate() ? fntcSchema : null); + fntcMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, false); + + // Marshall & prettyPrint + if (config.format()) { + // JAXB_FORMATTED_OUTPUT is buggy and does not format XML with DOM nodes. Hence, this ugly + // hack... + ByteArrayInOutStream baios = new ByteArrayInOutStream(1024); + fntcMarshaller.marshal(att, baios); + SipUtils.formatXml(baios.getInputStream(), bos, config.indent()); + } else { + fntcMarshaller.marshal(att, bos); } + } + } catch (IOException + | ExecutionException + | InterruptedException + | JAXBException + | SAXException ex) { + Thread.currentThread().interrupt(); + throw new SipException("Unable to serialize archive " + zipPath, ex); } - - /** - * Valide le XML de description de l'archive selon le schéma défini par le standard FNTC v4. - * - * @param archive l'archive à valider - */ - public void validate(ArchiveTransfer archive) { - this.validate(archive, null, Fntcv4Config.DEFAULT, null); + } + + /** + * Valide le XML de description de l'archive selon le schéma défini par le standard FNTC v4. + * + * @param archive l'archive à valider + */ + public void validate(ArchiveTransfer archive) { + this.validate(archive, null, Fntcv4Config.DEFAULT, null); + } + + /** + * Valide le XML de description de l'archive selon le schéma défini par le standard FNTC v4. La + * configuration permet de contrôler le processus de validation. + * + * @param archive l'archive à valider + * @param config la configuration utilisée lors du processus de validation + */ + public void validate(ArchiveTransfer archive, Fntcv4Config config) { + this.validate(archive, null, config, null); + } + + /** + * Valide le XML de description de l'archive selon le schéma défini par le standard FNTC v4. Le + * XML de description de l'archive peut être validé selon le schéma RNG défini par le Validator. + * + *

Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application + * appelante de s'assurer que l'objet {@link Validator} n'est utilisé à tout moment que par une + * seule et même thread. + * + * @param archive l'archive à valider + * @param validator le validateur RNG + */ + public void validate(ArchiveTransfer archive, Validator validator) { + this.validate(archive, validator, Fntcv4Config.DEFAULT, null); + } + + /** + * Valide le XML de description de l'archive selon le schéma défini par le standard FNTC v4. Le + * XML de description de l'archive peut être validé selon le schéma RNG défini par le Validator. + * La configuration permet de contrôler le processus de validation. + * + *

Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application + * appelante de s'assurer que l'objet {@link Validator} n'est utilisé à tout moment que par une + * seule et même thread. + * + * @param archive l'archive à valider + * @param validator le validateur RNG + * @param config la configuration utilisée lors du processus de validation + * @param result le résultat de la validation + */ + public void validate( + ArchiveTransfer archive, Validator validator, Fntcv4Config config, Result result) { + Validate.notNull(archive, SipUtils.NOT_NULL, "archiveTransfer"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + try { + ArchiveTransferType att = Fntcv4Converter.convert(archive, config); + JAXBSource source = new JAXBSource(fntcContext, att); + fntcSchema.newValidator().validate(source, result); + + if (validator != null) { + validator.validate(source, result); + } + + } catch (IOException + | ExecutionException + | InterruptedException + | JAXBException + | SAXException ex) { + throw new SipException("Unable to validate archive with validator", ex); } - - /** - * Valide le XML de description de l'archive selon le schéma défini par le standard FNTC v4. La configuration permet - * de contrôler le processus de validation. - * - * @param archive l'archive à valider - * @param config la configuration utilisée lors du processus de validation - */ - public void validate(ArchiveTransfer archive, Fntcv4Config config) { - this.validate(archive, null, config, null); + } + + /** + * Valide le fichier XML ou l'archive selon le schéma défini par le standard FNTC v4. + * + * @param path le path du fichier XML à valider + */ + public void validate(Path path) { + Validate.notNull(path, SipUtils.NOT_NULL, "path"); + validate(path, null, Fntcv4Config.DEFAULT, null); + } + + /** + * Valide le fichier XML ou l'archive selon le schéma défini par le standard FNTC v4. L'objet + * Validator n'est pas thread-safe, il est de la responsabilité de l'application appelante de + * s'assurer que l'objet {@link Validator} n'est utilisé à tout moment que par une seule et même + * thread. + * + * @param path le path du fichier XML à valider + * @param validator le validateur RNG + */ + public void validate(Path path, Validator validator) { + Validate.notNull(path, SipUtils.NOT_NULL, "path"); + + validate(path, validator, Fntcv4Config.DEFAULT, null); + } + + /** + * Valide le fichier XML ou l'archive selon le schéma défini par le standard FNTC v4. + * + * @param path le path du fichier XML à valider + * @param config la configuration utilisée lors du processus de validation + */ + public void validate(Path path, Fntcv4Config config) { + Validate.notNull(path, SipUtils.NOT_NULL, "path"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + validate(path, null, config, null); + } + + /** + * Valide le fichier XML ou l'archive selon le schéma défini par le standard FNTC v4. L'objet + * Validator n'est pas thread-safe, il est de la responsabilité de l'application appelante de + * s'assurer que l'objet {@link Validator} n'est utilisé à tout moment que par une seule et même + * thread. + * + * @param path le path du fichier XML à valider + * @param validator le validateur RNG + * @param config the config + */ + public void validate(Path path, Validator validator, Fntcv4Config config) { + Validate.notNull(path, SipUtils.NOT_NULL, "path"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + validate(path, validator, config, null); + } + + /** + * Valide le fichier XML ou l'archive selon le schéma défini par le standard FNTC v4. Le {@link + * Validator} permet d'appliquer une validation supplémentaire. Note. L'objet Validator n'est pas + * thread-safe, il est de la responsabilité de l'application appelante de s'assurer que l'objet + * {@link Validator} n'est utilisé à tout moment que par une seule et même thread. + * + * @param path le path du fichier XML à valider + * @param validator le validateur RNG + * @param config la configuration utilisée lors du processus de validation + * @param listener la méthode de callback pour suivre la progression de la validation + */ + public void validate( + Path path, Validator validator, Fntcv4Config config, ProgressListener listener) { + Validate.notNull(path, SipUtils.NOT_NULL, "path"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + String name = path.toString().toLowerCase(); + if (name.endsWith(".xml")) { + validateXml(path, validator); + } else { + validateZip(path, validator, config, listener); } + } - /** - * Valide le XML de description de l'archive selon le schéma défini par le standard FNTC v4. Le XML de description de - * l'archive peut être validé selon le schéma RNG défini par le Validator. - *

- * Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application appelante de s'assurer - * que l'objet {@link Validator} n'est utilisé à tout moment que par une seule et même thread. - * - * @param archive l'archive à valider - * @param validator le validateur RNG - */ - public void validate(ArchiveTransfer archive, Validator validator) { - this.validate(archive, validator, Fntcv4Config.DEFAULT, null); - } - - /** - * Valide le XML de description de l'archive selon le schéma défini par le standard FNTC v4. Le XML de description de - * l'archive peut être validé selon le schéma RNG défini par le Validator. La configuration permet de contrôler le - * processus de validation. - *

- * Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application appelante de s'assurer - * que l'objet {@link Validator} n'est utilisé à tout moment que par une seule et même thread. - * - * @param archive l'archive à valider - * @param validator le validateur RNG - * @param config la configuration utilisée lors du processus de validation - * @param result le résultat de la validation - */ - public void validate(ArchiveTransfer archive, Validator validator, Fntcv4Config config, Result result) { - Validate.notNull(archive, SipUtils.NOT_NULL, "archiveTransfer"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); + private void validateXml(Path xmlPath, Validator validator) { + Validate.notNull(xmlPath, SipUtils.NOT_NULL, "path"); - try { - ArchiveTransferType att = Fntcv4Converter.convert(archive, config); - JAXBSource source = new JAXBSource(fntcContext, att); - fntcSchema.newValidator().validate(source, result); - - if (validator != null) { - validator.validate(source, result); - } - - } catch (IOException | ExecutionException | InterruptedException | JAXBException | SAXException ex) { - throw new SipException("Unable to validate archive with validator", ex); - } + try (InputStream is = Files.newInputStream(xmlPath)) { + this.validate(new StreamSource(is)); + } catch (IOException ex) { + throw new SipException("Unable to validate " + xmlPath, ex); } - /** - * Valide le fichier XML ou l'archive selon le schéma défini par le standard FNTC v4. - * - * @param path le path du fichier XML à valider - */ - public void validate(Path path) { - Validate.notNull(path, SipUtils.NOT_NULL, "path"); - validate(path, null, Fntcv4Config.DEFAULT, null); + // Check manifest is valid against rng + if (validator != null) { + try (InputStream is = Files.newInputStream(xmlPath)) { + validator.validate(new StreamSource(is)); + } catch (IOException | SAXException ex) { + throw new SipException("Unable to validate " + xmlPath, ex); + } } - - /** - * Valide le fichier XML ou l'archive selon le schéma défini par le standard FNTC v4. L'objet Validator n'est pas - * thread-safe, il est de la responsabilité de l'application appelante de s'assurer que l'objet {@link Validator} - * n'est utilisé à tout moment que par une seule et même thread. - * - * @param path le path du fichier XML à valider - * @param validator le validateur RNG - */ - public void validate(Path path, Validator validator) { - Validate.notNull(path, SipUtils.NOT_NULL, "path"); - - validate(path, validator, Fntcv4Config.DEFAULT, null); - } - - /** - * Valide le fichier XML ou l'archive selon le schéma défini par le standard FNTC v4. - * - * @param path le path du fichier XML à valider - * @param config la configuration utilisée lors du processus de validation - */ - public void validate(Path path, Fntcv4Config config) { - Validate.notNull(path, SipUtils.NOT_NULL, "path"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); - - validate(path, null, config, null); + } + + /** + * Valide la source XML source selon le schéma défini par le standard FNTC v4. + * + * @param source la source XML à valider + */ + private void validate(Source source) { + Validate.notNull(source, SipUtils.NOT_NULL, "source"); + + try { + Validator fntcValidator = fntcSchema.newValidator(); + fntcValidator.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); + fntcValidator.validate(source); + } catch (IOException | SAXException ex) { + throw new SipException("Unable to validate " + source, ex); } - - /** - * Valide le fichier XML ou l'archive selon le schéma défini par le standard FNTC v4. L'objet Validator n'est pas - * thread-safe, il est de la responsabilité de l'application appelante de s'assurer que l'objet {@link Validator} - * n'est utilisé à tout moment que par une seule et même thread. - * - * @param path le path du fichier XML à valider - * @param validator le validateur RNG - * @param config the config - */ - public void validate(Path path, Validator validator, Fntcv4Config config) { - Validate.notNull(path, SipUtils.NOT_NULL, "path"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); - - validate(path, validator, config, null); + } + + private void validateZip( + Path zipPath, + Validator validator, + Fntcv4Config config, + ProgressListener listener) { + + String id = FilenameUtils.removeExtension(zipPath.getFileName().toString()); + updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.START, "Archive: " + zipPath); + + // Check zip exists + if (Files.notExists(zipPath)) { + String msg = "Zip " + zipPath + " does not exist"; + updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.ARCHIVE_EXIST, msg); + throw new SipException(msg); } + updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.ARCHIVE_EXIST, "Archive exists"); - /** - * Valide le fichier XML ou l'archive selon le schéma défini par le standard FNTC v4. Le {@link Validator} permet - * d'appliquer une validation supplémentaire. Note. L'objet Validator n'est pas thread-safe, il est de la - * responsabilité de l'application appelante de s'assurer que l'objet {@link Validator} n'est utilisé à tout moment - * que par une seule et même thread. - * - * @param path le path du fichier XML à valider - * @param validator le validateur RNG - * @param config la configuration utilisée lors du processus de validation - * @param listener la méthode de callback pour suivre la progression de la validation - */ - public void validate(Path path, Validator validator, Fntcv4Config config, ProgressListener listener) { - Validate.notNull(path, SipUtils.NOT_NULL, "path"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); - - String name = path.toString().toLowerCase(); - if (name.endsWith(".xml")) { - validateXml(path, validator); - } else { - validateZip(path, validator, config, listener); - } + // Check zip is valid + if (!Files.isReadable(zipPath) || Files.isDirectory(zipPath)) { + String msg = zipPath + " is not a readable zip"; + updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.ARCHIVE_READABLE, msg); + throw new SipException(msg); } - - private void validateXml(Path xmlPath, Validator validator) { - Validate.notNull(xmlPath, SipUtils.NOT_NULL, "path"); - - try (InputStream is = Files.newInputStream(xmlPath)) { - this.validate(new StreamSource(is)); - } catch (IOException ex) { - throw new SipException("Unable to validate " + xmlPath, ex); - } - - // Check manifest is valid against rng - if (validator != null) { - try (InputStream is = Files.newInputStream(xmlPath)) { - validator.validate(new StreamSource(is)); - } catch (IOException | SAXException ex) { - throw new SipException("Unable to validate " + xmlPath, ex); - } - } - } - - /** - * Valide la source XML source selon le schéma défini par le standard FNTC v4. - * - * @param source la source XML à valider - */ - private void validate(Source source) { - Validate.notNull(source, SipUtils.NOT_NULL, "source"); - + updateListener( + listener, id, ProgressState.SUCCESS, Fntcv4Step.ARCHIVE_READABLE, "Archive is readable"); + + // Check zip is really a zip + URI zipUri = SipUtils.createZipURI(zipPath); + try (FileSystem zipArchive = FileSystems.newFileSystem(zipUri, Collections.emptyMap())) { + updateListener( + listener, id, ProgressState.SUCCESS, Fntcv4Step.ARCHIVE_UNZIP, "Archive is opened"); + + Path manifestPath = zipArchive.getPath("manifest.xml"); + if (Files.notExists(manifestPath) || Files.isDirectory(manifestPath)) { + String msg = "Zip " + zipPath + " does not contain a valid manifest"; + updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.MANIFEST_EXIST, msg); + throw new SipException(msg); + } + updateListener( + listener, id, ProgressState.SUCCESS, Fntcv4Step.MANIFEST_EXIST, "Manifest exists"); + + ByteArrayInOutStream manifest = new ByteArrayInOutStream(1024); + + // Check manifest is valid against xsd + try { + Files.copy(manifestPath, manifest); + Validator fntcValidator = fntcSchema.newValidator(); + fntcValidator.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); + fntcValidator.validate(new StreamSource(manifest.getInputStream())); + } catch (IOException | SAXException ex) { + String msg = "Unable to validate manifest for " + zipPath; + updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.MANIFEST_FNTC, msg); + throw new SipException(msg, ex); + } + updateListener( + listener, + id, + ProgressState.SUCCESS, + Fntcv4Step.MANIFEST_FNTC, + "Manifest conforms to FNTC"); + + // Check manifest is valid against rng + if (validator != null) { try { - Validator fntcValidator = fntcSchema.newValidator(); - fntcValidator.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); - fntcValidator.validate(source); + validator.validate(new StreamSource(manifest.getInputStream())); } catch (IOException | SAXException ex) { - throw new SipException("Unable to validate " + source, ex); + String msg = "Unable to validate manifest for " + zipPath; + updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.MANIFEST_VALIDATOR, msg); + throw new SipException(msg, ex); } - } - - private void validateZip(Path zipPath, Validator validator, Fntcv4Config config, - ProgressListener listener) { + updateListener( + listener, + id, + ProgressState.SUCCESS, + Fntcv4Step.MANIFEST_VALIDATOR, + "Manifest conforms to validator"); + } + + // Parse the manifest to look for binary path + if (config.checkBinary()) { + ArrayList binaryObjects; + try { + binaryObjects = Fntcv4Parser.parse(manifest.getInputStream()); + } catch (IOException | ParserConfigurationException | SAXException ex) { + String msg = "Unable to parse manifest for " + zipPath; + updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.MANIFEST_PARSE, msg); + throw new SipException(msg, ex); + } + updateListener( + listener, id, ProgressState.SUCCESS, Fntcv4Step.MANIFEST_PARSE, "Manifest is parsed"); - String id = FilenameUtils.removeExtension(zipPath.getFileName().toString()); - updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.START, "Archive: " + zipPath); + for (Fntcv4BinaryObject binaryObject : binaryObjects) { - // Check zip exists - if (Files.notExists(zipPath)) { - String msg = "Zip " + zipPath + " does not exist"; - updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.ARCHIVE_EXIST, msg); + // Check binaryPath exists + Path binaryPath = zipArchive.getPath(binaryObject.getUri()); + if (Files.notExists(binaryPath) || Files.isDirectory(binaryPath)) { + String msg = binaryPath + " does not exist for " + zipPath; + updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.BINARY_EXIST, msg); throw new SipException(msg); - } - updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.ARCHIVE_EXIST, "Archive exists"); - - // Check zip is valid - if (!Files.isReadable(zipPath) || Files.isDirectory(zipPath)) { - String msg = zipPath + " is not a readable zip"; - updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.ARCHIVE_READABLE, msg); + } + updateListener( + listener, + id, + ProgressState.SUCCESS, + Fntcv4Step.BINARY_EXIST, + "Binary object exists: " + binaryPath); + + // Check binaryPath Directory is "Content" + Path parentPath = binaryPath.getParent(); + if (!"Content".equals(parentPath.getFileName().toString())) { + String msg = binaryPath + " parent folder is not valid for " + zipPath; + updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.BINARY_FOLDER, msg); throw new SipException(msg); - } - updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.ARCHIVE_READABLE, "Archive is readable"); - - // Check zip is really a zip - URI zipUri = SipUtils.createZipURI(zipPath); - try (FileSystem zipArchive = FileSystems.newFileSystem(zipUri, Collections.emptyMap())) { - updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.ARCHIVE_UNZIP, "Archive is opened"); - - Path manifestPath = zipArchive.getPath("manifest.xml"); - if (Files.notExists(manifestPath) || Files.isDirectory(manifestPath)) { - String msg = "Zip " + zipPath + " does not contain a valid manifest"; - updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.MANIFEST_EXIST, msg); - throw new SipException(msg); + } + updateListener( + listener, + id, + ProgressState.SUCCESS, + Fntcv4Step.BINARY_FOLDER, + "Binary object folder is valid"); + + // Check binaryPath size + if (config.checkSize()) { + if (Files.size(binaryPath) != binaryObject.getSize()) { + String msg = binaryPath + " size is not valid for " + zipPath; + updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.BINARY_SIZE, msg); + throw new SipException(msg); } - updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.MANIFEST_EXIST, "Manifest exists"); - - ByteArrayInOutStream manifest = new ByteArrayInOutStream(1024); - - // Check manifest is valid against xsd - try { - Files.copy(manifestPath, manifest); - Validator fntcValidator = fntcSchema.newValidator(); - fntcValidator.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); - fntcValidator.validate(new StreamSource(manifest.getInputStream())); - } catch (IOException | SAXException ex) { - String msg = "Unable to validate manifest for " + zipPath; - updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.MANIFEST_FNTC, msg); - throw new SipException(msg, ex); + updateListener( + listener, + id, + ProgressState.SUCCESS, + Fntcv4Step.BINARY_SIZE, + "Binary object size is valid"); + } + + // Check binaryPath hash equals the given hash + if (config.checkDigest()) { + byte[] d = SipUtils.digest(binaryPath, binaryObject.getAlgorithm()); + String digest = + Base64.getEncoder().encodeToString(d); // The hash is Base64 encoded in the XML + + if (!digest.equals(binaryObject.getDigest())) { + String msg = binaryPath + " hash is not valid for " + zipPath; + updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.BINARY_DIGEST, msg); + throw new SipException(msg); } - updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.MANIFEST_FNTC, "Manifest conforms to FNTC"); - - // Check manifest is valid against rng - if (validator != null) { - try { - validator.validate(new StreamSource(manifest.getInputStream())); - } catch (IOException | SAXException ex) { - String msg = "Unable to validate manifest for " + zipPath; - updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.MANIFEST_VALIDATOR, msg); - throw new SipException(msg, ex); - } - updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.MANIFEST_VALIDATOR, - "Manifest conforms to validator"); - } - - // Parse the manifest to look for binary path - if (config.checkBinary()) { - ArrayList binaryObjects; - try { - binaryObjects = Fntcv4Parser.parse(manifest.getInputStream()); - } catch (IOException | ParserConfigurationException | SAXException ex) { - String msg = "Unable to parse manifest for " + zipPath; - updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.MANIFEST_PARSE, msg); - throw new SipException(msg, ex); - } - updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.MANIFEST_PARSE, "Manifest is parsed"); - - for (Fntcv4BinaryObject binaryObject : binaryObjects) { - - // Check binaryPath exists - Path binaryPath = zipArchive.getPath(binaryObject.getUri()); - if (Files.notExists(binaryPath) || Files.isDirectory(binaryPath)) { - String msg = binaryPath + " does not exist for " + zipPath; - updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.BINARY_EXIST, msg); - throw new SipException(msg); - } - updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.BINARY_EXIST, - "Binary object exists: " + binaryPath); - - // Check binaryPath Directory is "Content" - Path parentPath = binaryPath.getParent(); - if (!"Content".equals(parentPath.getFileName().toString())) { - String msg = binaryPath + " parent folder is not valid for " + zipPath; - updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.BINARY_FOLDER, msg); - throw new SipException(msg); - } - updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.BINARY_FOLDER, - "Binary object folder is valid"); - - // Check binaryPath size - if (config.checkSize()) { - if (Files.size(binaryPath) != binaryObject.getSize()) { - String msg = binaryPath + " size is not valid for " + zipPath; - updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.BINARY_SIZE, msg); - throw new SipException(msg); - } - updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.BINARY_SIZE, "Binary object size is valid"); - } - - // Check binaryPath hash equals the given hash - if (config.checkDigest()) { - byte[] d = SipUtils.digest(binaryPath, binaryObject.getAlgorithm()); - String digest = Base64.getEncoder().encodeToString(d); // The hash is Base64 encoded in the XML - - if (!digest.equals(binaryObject.getDigest())) { - String msg = binaryPath + " hash is not valid for " + zipPath; - updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.BINARY_DIGEST, msg); - throw new SipException(msg); - } - updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.BINARY_DIGEST, - "Binary object digest is valid"); - } - - // Check binaryPath Format. The Droid library does not support NIO FileSystem. - } - } - - } catch (IOException ex) { - String msg = "Unable to open zip " + zipPath; - updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.ARCHIVE_UNZIP, msg); - throw new SipException(msg, ex); + updateListener( + listener, + id, + ProgressState.SUCCESS, + Fntcv4Step.BINARY_DIGEST, + "Binary object digest is valid"); + } + + // Check binaryPath Format. The Droid library does not support NIO FileSystem. } + } - updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.COMPLETE, "Archive is valid"); + } catch (IOException ex) { + String msg = "Unable to open zip " + zipPath; + updateListener(listener, id, ProgressState.FAIL, Fntcv4Step.ARCHIVE_UNZIP, msg); + throw new SipException(msg, ex); } - private void updateListener(ProgressListener listener, String id, ProgressState status, Fntcv4Step step, - String message) { - if (listener != null) { - listener.progressChanged(new ProgressEvent<>(id, status, step, message)); - } + updateListener(listener, id, ProgressState.SUCCESS, Fntcv4Step.COMPLETE, "Archive is valid"); + } + + private void updateListener( + ProgressListener listener, + String id, + ProgressState status, + Fntcv4Step step, + String message) { + if (listener != null) { + listener.progressChanged(new ProgressEvent<>(id, status, step, message)); } + } } diff --git a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Step.java b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Step.java index 1b9a61a..2a77010 100644 --- a/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Step.java +++ b/src/main/java/fr/xelians/sipg/service/fntcv4/Fntcv4Step.java @@ -24,56 +24,30 @@ * @author Emmanuel Deviller */ public enum Fntcv4Step { - /** - * Start FNTC v4 step. - */ - START, - /** - * Archive exist FNTC v4 step. - */ - ARCHIVE_EXIST, - /** - * Archive readable FNTC v4 step. - */ - ARCHIVE_READABLE, - /** - * Archive unzip FNTC v4 step. - */ - ARCHIVE_UNZIP, - /** - * Manifest exist FNTC v4 step. - */ - MANIFEST_EXIST, - /** - * Manifest fntc FNTC v4 step. - */ - MANIFEST_FNTC, - /** - * Manifest validator FNTC v4 step. - */ - MANIFEST_VALIDATOR, - /** - * Manifest parse fntc v4 step. - */ - MANIFEST_PARSE, - /** - * Binary exist FNTC v4 step. - */ - BINARY_EXIST, - /** - * Binary folder FNTC v4 step. - */ - BINARY_FOLDER, - /** - * Binary size FNTC v4 step. - */ - BINARY_SIZE, - /** - * Binary digest FNTC v4 step. - */ - BINARY_DIGEST, - /** - * Complete FNTC v4 step. - */ - COMPLETE + /** Start FNTC v4 step. */ + START, + /** Archive exist FNTC v4 step. */ + ARCHIVE_EXIST, + /** Archive readable FNTC v4 step. */ + ARCHIVE_READABLE, + /** Archive unzip FNTC v4 step. */ + ARCHIVE_UNZIP, + /** Manifest exist FNTC v4 step. */ + MANIFEST_EXIST, + /** Manifest fntc FNTC v4 step. */ + MANIFEST_FNTC, + /** Manifest validator FNTC v4 step. */ + MANIFEST_VALIDATOR, + /** Manifest parse fntc v4 step. */ + MANIFEST_PARSE, + /** Binary exist FNTC v4 step. */ + BINARY_EXIST, + /** Binary folder FNTC v4 step. */ + BINARY_FOLDER, + /** Binary size FNTC v4 step. */ + BINARY_SIZE, + /** Binary digest FNTC v4 step. */ + BINARY_DIGEST, + /** Complete FNTC v4 step. */ + COMPLETE } diff --git a/src/main/java/fr/xelians/sipg/service/fntcv4/package-info.java b/src/main/java/fr/xelians/sipg/service/fntcv4/package-info.java index 39a8c1a..2152676 100644 --- a/src/main/java/fr/xelians/sipg/service/fntcv4/package-info.java +++ b/src/main/java/fr/xelians/sipg/service/fntcv4/package-info.java @@ -1,8 +1,9 @@ /** * Les classes service pour produire l'archive au format FNTC v4. - *

- * Ces classes utilisent le framework JAXB pour générer et valider le manifest de l'archive en XML. + * + *

Ces classes utilisent le framework JAXB pour générer et valider le manifest de l'archive en + * XML. * * @author Emmanuel Deviller */ -package fr.xelians.sipg.service.fntcv4; \ No newline at end of file +package fr.xelians.sipg.service.fntcv4; diff --git a/src/main/java/fr/xelians/sipg/service/json/JsonConfig.java b/src/main/java/fr/xelians/sipg/service/json/JsonConfig.java index e0df6d2..7cb7478 100644 --- a/src/main/java/fr/xelians/sipg/service/json/JsonConfig.java +++ b/src/main/java/fr/xelians/sipg/service/json/JsonConfig.java @@ -19,42 +19,14 @@ package fr.xelians.sipg.service.json; /** - * La classe JsonConfig représente la configuration utilisée lors de la sérialisation d'une archive en json. Les valeurs - * par défaut sont définies dans la classe JsonConfigBuilder. + * La classe JsonConfig représente la configuration utilisée lors de la sérialisation d'une archive + * en json. Les valeurs par défaut sont définies dans la classe JsonConfigBuilder. * * @author Emmanuel Deviller * @see JsonConfigBuilder */ -public class JsonConfig { - - /** - * The constant DEFAULT. - */ - public static final JsonConfig DEFAULT = JsonConfigBuilder.builder().build(); - - private final boolean format; - - /** - * Instancie la classe. - * - * @param format true si le fichier json doit être formaté, false sinon - */ - public JsonConfig(boolean format) { - this.format = format; - } - - /** - * Indique si le fichier json doit être formaté. - * - * @return true si le fichier json doit être formaté, false sinon. - */ - public boolean isFormat() { - return format; - } - - @Override - public String toString() { - return "JsonConfig{" + "format=" + format + "'}'"; - } +public record JsonConfig(boolean format) { + /** The constant DEFAULT. */ + public static final JsonConfig DEFAULT = JsonConfigBuilder.builder().build(); } diff --git a/src/main/java/fr/xelians/sipg/service/json/JsonConfigBuilder.java b/src/main/java/fr/xelians/sipg/service/json/JsonConfigBuilder.java index 340770b..2ae336e 100644 --- a/src/main/java/fr/xelians/sipg/service/json/JsonConfigBuilder.java +++ b/src/main/java/fr/xelians/sipg/service/json/JsonConfigBuilder.java @@ -19,46 +19,46 @@ package fr.xelians.sipg.service.json; /** - * La classe JsonConfigBuilder facilite la création d'un objet JsonConfig en suivant le principe de conception du - * pattern builder. + * La classe JsonConfigBuilder facilite la création d'un objet JsonConfig en suivant le principe de + * conception du pattern builder. * * @author Emmanuel Deviller * @see JsonConfig */ public class JsonConfigBuilder { - private Boolean format; + private Boolean format; - private JsonConfigBuilder() { - format = false; - } + private JsonConfigBuilder() { + format = false; + } - /** - * Instancie le builder. - * - * @return le builder - */ - public static JsonConfigBuilder builder() { - return new JsonConfigBuilder(); - } + /** + * Instancie le builder. + * + * @return le builder + */ + public static JsonConfigBuilder builder() { + return new JsonConfigBuilder(); + } - /** - * Spécifie si le json doit être formaté (pretty-print). False par défaut. - * - * @param format true si le fichier de description doit être formaté, false sinon - * @return le builder - */ - public JsonConfigBuilder format(boolean format) { - this.format = format; - return this; - } + /** + * Spécifie si le json doit être formaté (pretty-print). False par défaut. + * + * @param format true si le fichier de description doit être formaté, false sinon + * @return le builder + */ + public JsonConfigBuilder format(boolean format) { + this.format = format; + return this; + } - /** - * Instancie la classe JsonConfig selon les paramètres précédemment spécifiés dans le builder. - * - * @return la configuration json - */ - public JsonConfig build() { - return new JsonConfig(format); - } + /** + * Instancie la classe JsonConfig selon les paramètres précédemment spécifiés dans le builder. + * + * @return la configuration json + */ + public JsonConfig build() { + return new JsonConfig(format); + } } diff --git a/src/main/java/fr/xelians/sipg/service/json/JsonService.java b/src/main/java/fr/xelians/sipg/service/json/JsonService.java index 9301297..a03cba0 100644 --- a/src/main/java/fr/xelians/sipg/service/json/JsonService.java +++ b/src/main/java/fr/xelians/sipg/service/json/JsonService.java @@ -26,18 +26,18 @@ import fr.xelians.sipg.model.ArchiveTransfer; import fr.xelians.sipg.utils.SipException; import fr.xelians.sipg.utils.SipUtils; -import org.apache.commons.lang3.Validate; - import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.file.Files; import java.nio.file.Path; +import org.apache.commons.lang3.Validate; /** - * La classe JsonService offre des API pour sérialiser ou désérialiser une archive en json. Le processus de - * sérialisation peut être contrôlé par configuration. La structure du json dépend du modèle sous-jacent de l'archive. - * Il peut changer dans une version future. Note. La classe JsonService est thread-safe. + * La classe JsonService offre des API pour sérialiser ou désérialiser une archive en json. Le + * processus de sérialisation peut être contrôlé par configuration. La structure du json dépend du + * modèle sous-jacent de l'archive. Il peut changer dans une version future. Note. La classe + * JsonService est thread safe. * * @author Emmanuel Deviller * @see ArchiveTransfer @@ -45,156 +45,156 @@ */ public class JsonService { - private static final JsonService INSTANCE = new JsonService(); - - private final ObjectWriter objectWriter; - private final ObjectWriter indentWriter; - private final ObjectReader objectReader; - - private JsonService() { - ObjectMapper writeMapper = JsonMapper.builder().addModule(new JavaTimeModule()).build(); - writeMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); - writeMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); - writeMapper.setSerializationInclusion(JsonInclude.Include.NON_DEFAULT); - objectWriter = writeMapper.writer(); - indentWriter = objectWriter.with(SerializationFeature.INDENT_OUTPUT); - - ObjectMapper readMapper = JsonMapper.builder().addModule(new JavaTimeModule()).build(); - readMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); - readMapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); - objectReader = readMapper.reader(); + private static final JsonService INSTANCE = new JsonService(); + + private final ObjectWriter objectWriter; + private final ObjectWriter indentWriter; + private final ObjectReader objectReader; + + private JsonService() { + ObjectMapper writeMapper = JsonMapper.builder().addModule(new JavaTimeModule()).build(); + writeMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); + writeMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); + writeMapper.setSerializationInclusion(JsonInclude.Include.NON_DEFAULT); + objectWriter = writeMapper.writer(); + indentWriter = objectWriter.with(SerializationFeature.INDENT_OUTPUT); + + ObjectMapper readMapper = JsonMapper.builder().addModule(new JavaTimeModule()).build(); + readMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + readMapper.disable(DeserializationFeature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE); + objectReader = readMapper.reader(); + } + + /** + * Retourne l'instance singleton de la classe JsonService. + * + * @return l 'instance singleton + */ + public static JsonService getInstance() { + return INSTANCE; + } + + /** + * Sérialise l'archive dans un fichier json. + * + * @param archive l'archive à sérialiser + * @param jsonPath le path du fichier json + */ + public void write(ArchiveTransfer archive, Path jsonPath) { + write(archive, jsonPath, JsonConfig.DEFAULT); + } + + /** + * Sérialise l'archive dans un fichier json. La configuration permet de contrôler le processus de + * sérialisation. + * + * @param archive l'archive à sérialiser + * @param jsonPath le path du fichier json + * @param config la configuration utilisée lors de la sérialisation + */ + public void write(ArchiveTransfer archive, Path jsonPath, JsonConfig config) { + Validate.notNull(archive, SipUtils.NOT_NULL, "archive"); + Validate.notNull(jsonPath, SipUtils.NOT_NULL, "jsonPath"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + try { + Files.deleteIfExists(jsonPath); + } catch (IOException ex) { + throw new SipException("Unable to delete file " + jsonPath, ex); } - /** - * Retourne l'instance singleton de la classe JsonService. - * - * @return l 'instance singleton - */ - public static JsonService getInstance() { - return INSTANCE; - } + ObjectWriter writer = config.format() ? indentWriter : objectWriter; - /** - * Sérialise l'archive dans un fichier json. - * - * @param archive l'archive à sérialiser - * @param jsonPath le path du fichier json - */ - public void write(ArchiveTransfer archive, Path jsonPath) { - write(archive, jsonPath, JsonConfig.DEFAULT); + try (OutputStream os = Files.newOutputStream(jsonPath)) { + writer.writeValue(os, archive); + } catch (IOException ex) { + throw new SipException("Unable to create json " + jsonPath, ex); } - - /** - * Sérialise l'archive dans un fichier json. La configuration permet de contrôler le processus de sérialisation. - * - * @param archive l'archive à sérialiser - * @param jsonPath le path du fichier json - * @param config la configuration utilisée lors de la sérialisation - */ - public void write(ArchiveTransfer archive, Path jsonPath, JsonConfig config) { - Validate.notNull(archive, SipUtils.NOT_NULL, "archive"); - Validate.notNull(jsonPath, SipUtils.NOT_NULL, "jsonPath"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); - - try { - Files.deleteIfExists(jsonPath); - } catch (IOException ex) { - throw new SipException("Unable to delete file " + jsonPath, ex); - } - - ObjectWriter writer = config.isFormat() ? indentWriter : objectWriter; - - try (OutputStream os = Files.newOutputStream(jsonPath)) { - writer.writeValue(os, archive); - } catch (IOException ex) { - throw new SipException("Unable to create json " + jsonPath, ex); - } + } + + /** + * Sérialise l'archive en json dans une chaîne de caractère. + * + * @param archive l'archive à sérialiser + * @return la chaîne de caractère en json de l'archive sérialisée + */ + public String write(ArchiveTransfer archive) { + return write(archive, JsonConfig.DEFAULT); + } + + /** + * Sérialise l'archive en json dans une chaîne de caractère. + * + * @param archive l'archive à sérialiser + * @param config la configuration utilisée lors de la sérialisation + * @return la chaîne de caractère en json de l'archive sérialisée + */ + public String write(ArchiveTransfer archive, JsonConfig config) { + Validate.notNull(archive, SipUtils.NOT_NULL, "archive"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + ObjectWriter writer = config.format() ? indentWriter : objectWriter; + + try { + return writer.writeValueAsString(archive); + } catch (JsonProcessingException ex) { + throw new SipException("Unable to create json String", ex); } - - /** - * Sérialise l'archive en json dans une chaîne de caractère. - * - * @param archive l'archive à sérialiser - * @return la chaîne de caractère en json de l'archive sérialisée - */ - public String write(ArchiveTransfer archive) { - return write(archive, JsonConfig.DEFAULT); + } + + /** + * Désérialise la chaîne de caractère json en archive. + * + * @param json la chaîne de caractère json + * @return l'archive désérialisée + */ + public ArchiveTransfer read(String json) { + return read(json, JsonConfig.DEFAULT); + } + + /** + * Désérialise la chaîne de caractère json en archive. + * + * @param json la chaîne de caractère json + * @param config la configuration utilisée lors de la désérialisation + * @return l'archive désérialisée + */ + public ArchiveTransfer read(String json, JsonConfig config) { + Validate.notNull(json, SipUtils.NOT_NULL, "jsonPath"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + try { + return objectReader.readValue(json, ArchiveTransfer.class); + } catch (IOException ex) { + throw new SipException("Unable to create ArchiveTransfer from json " + json, ex); } - - /** - * Sérialise l'archive en json dans une chaîne de caractère. - * - * @param archive l'archive à sérialiser - * @param config la configuration utilisée lors de la sérialisation - * @return la chaîne de caractère en json de l'archive sérialisée - */ - public String write(ArchiveTransfer archive, JsonConfig config) { - Validate.notNull(archive, SipUtils.NOT_NULL, "archive"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); - - ObjectWriter writer = config.isFormat() ? indentWriter : objectWriter; - - try { - return writer.writeValueAsString(archive); - } catch (JsonProcessingException ex) { - throw new SipException("Unable to create json String", ex); - } + } + + /** + * Désérialise le fichier json spécifié par le path en archive. + * + * @param jsonPath le path du fichier json + * @return l'archive désérialisée + */ + public ArchiveTransfer read(Path jsonPath) { + return read(jsonPath, JsonConfig.DEFAULT); + } + + /** + * Désérialise le fichier json spécifié par le path en archive. + * + * @param jsonPath le path du fichier json + * @param config la configuration utilisée lors de la désérialisation + * @return l'archive désérialisée + */ + public ArchiveTransfer read(Path jsonPath, JsonConfig config) { + Validate.notNull(jsonPath, SipUtils.NOT_NULL, "jsonPath"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + try (InputStream is = Files.newInputStream(jsonPath)) { + return objectReader.readValue(is, ArchiveTransfer.class); + } catch (IOException ex) { + throw new SipException("Unable to create ArchiveTransfer from json " + jsonPath, ex); } - - /** - * Désérialise la chaîne de caractère json en archive. - * - * @param json la chaîne de caractère json - * @return l'archive désérialisée - */ - public ArchiveTransfer read(String json) { - return read(json, JsonConfig.DEFAULT); - } - - /** - * Désérialise la chaîne de caractère json en archive. - * - * @param json la chaîne de caractère json - * @param config la configuration utilisée lors de la désérialisation - * @return l'archive désérialisée - */ - public ArchiveTransfer read(String json, JsonConfig config) { - Validate.notNull(json, SipUtils.NOT_NULL, "jsonPath"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); - - try { - return objectReader.readValue(json, ArchiveTransfer.class); - } catch (IOException ex) { - throw new SipException("Unable to create ArchiveTransfer from json " + json, ex); - } - } - - /** - * Désérialise le fichier json spécifié par le path en archive. - * - * @param jsonPath le path du fichier json - * @return l'archive désérialisée - */ - public ArchiveTransfer read(Path jsonPath) { - return read(jsonPath, JsonConfig.DEFAULT); - } - - /** - * Désérialise le fichier json spécifié par le path en archive. - * - * @param jsonPath le path du fichier json - * @param config la configuration utilisée lors de la désérialisation - * @return l'archive désérialisée - */ - public ArchiveTransfer read(Path jsonPath, JsonConfig config) { - Validate.notNull(jsonPath, SipUtils.NOT_NULL, "jsonPath"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); - - try (InputStream is = Files.newInputStream(jsonPath)) { - return objectReader.readValue(is, ArchiveTransfer.class); - } catch (IOException ex) { - throw new SipException("Unable to create ArchiveTransfer from json " + jsonPath, ex); - } - } - + } } diff --git a/src/main/java/fr/xelians/sipg/service/json/package-info.java b/src/main/java/fr/xelians/sipg/service/json/package-info.java index 91a3760..2dbcdd2 100644 --- a/src/main/java/fr/xelians/sipg/service/json/package-info.java +++ b/src/main/java/fr/xelians/sipg/service/json/package-info.java @@ -1,8 +1,8 @@ /** * Les classes service pour lire et écrire l'archive au format JSON. - *

- * Ces classes utilisent la librairie Jacskon pour mapper les éléments l'archive en JSON. + * + *

Ces classes utilisent la librairie Jacskon pour mapper les éléments l'archive en JSON. * * @author Emmanuel Deviller */ -package fr.xelians.sipg.service.json; \ No newline at end of file +package fr.xelians.sipg.service.json; diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav21Adapter.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav21Adapter.java index c0edf81..c421ecb 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav21Adapter.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav21Adapter.java @@ -19,7 +19,9 @@ package fr.xelians.sipg.service.sedav2; +import fr.gouv.culture.archivesdefrance.seda.v21.ArchiveDeliveryRequestReplyType; import fr.gouv.culture.archivesdefrance.seda.v21.ArchiveTransferType; +import fr.xelians.sipg.model.ArchiveDeliveryRequestReply; import fr.xelians.sipg.model.ArchiveTransfer; import fr.xelians.sipg.utils.ByteArrayInOutStream; import fr.xelians.sipg.utils.SipException; @@ -28,16 +30,6 @@ import jakarta.xml.bind.JAXBException; import jakarta.xml.bind.Marshaller; import jakarta.xml.bind.util.JAXBSource; -import org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.xml.sax.SAXException; - -import javax.xml.transform.Source; -import javax.xml.transform.stream.StreamSource; -import javax.xml.validation.Schema; -import javax.xml.validation.SchemaFactory; -import javax.xml.validation.Validator; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; @@ -45,109 +37,162 @@ import java.nio.file.Files; import java.nio.file.Path; import java.util.concurrent.ExecutionException; +import javax.xml.transform.Source; +import javax.xml.transform.stream.StreamSource; +import javax.xml.validation.Schema; +import javax.xml.validation.SchemaFactory; +import javax.xml.validation.Validator; +import org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.xml.sax.SAXException; public class Sedav21Adapter implements Sedav2Adapter { - private static final String HTTP_WWW_W3_ORG_XML_XML_SCHEMA_V1_1 = "http://www.w3.org/XML/XMLSchema/v1.1"; - public static final String HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL = "http://apache.org/xml/features/disallow-doctype-decl"; + private static final String HTTP_WWW_W3_ORG_XML_XML_SCHEMA_V1_1 = + "http://www.w3.org/XML/XMLSchema/v1.1"; + public static final String HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL = + "http://apache.org/xml/features/disallow-doctype-decl"; - private static final Logger LOGGER = LoggerFactory.getLogger(Sedav21Adapter.class); + private static final Logger LOGGER = LoggerFactory.getLogger(Sedav21Adapter.class); - public static final Sedav21Adapter INSTANCE = new Sedav21Adapter() ; + public static final Sedav21Adapter INSTANCE = new Sedav21Adapter(); - private static final JAXBContext sedaContext; - private static final Schema sedaSchema; + private static final JAXBContext sedaContext; + private static final Schema sedaSchema; - private static final NamespacePrefixMapper namespaceMapper = new NamespacePrefixMapper() { - public String getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix) { - return !requirePrefix && "fr:gouv:culture:archivesdefrance:seda:v2.1".equals(namespaceUri) ? "" : "ns"; - } - }; - - static { - // Provide flattened schema in resource - try (InputStream is1 = SipUtils.resourceAsStream("seda-vitam-2.1-full.xsd"); InputStream is2 = SipUtils.resourceAsStream("xml.xsd"); InputStream is3 = SipUtils.resourceAsStream("xlink.xsd")) { - SchemaFactory sf = SchemaFactory.newInstance(HTTP_WWW_W3_ORG_XML_XML_SCHEMA_V1_1); - sf.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); // Avoid XXE - sf.setResourceResolver(new Sedav2Resolver(is2, is3)); - sedaSchema = sf.newSchema(new StreamSource(is1)); - sedaContext = JAXBContext.newInstance(fr.gouv.culture.archivesdefrance.seda.v21.ObjectFactory.class); - } catch (IOException | JAXBException | SAXException ex) { - throw new SipException("Unable to initialize XSD Schemas, JAXBContext and Marshaller", ex); + private static final NamespacePrefixMapper namespaceMapper = + new NamespacePrefixMapper() { + public String getPreferredPrefix( + String namespaceUri, String suggestion, boolean requirePrefix) { + return !requirePrefix && "fr:gouv:culture:archivesdefrance:seda:v2.1".equals(namespaceUri) + ? "" + : "ns"; } + }; + + static { + // Provide flattened schema in resource + try (InputStream is1 = SipUtils.resourceAsStream("seda-vitam-2.1-full.xsd"); + InputStream is2 = SipUtils.resourceAsStream("xml.xsd"); + InputStream is3 = SipUtils.resourceAsStream("xlink.xsd")) { + SchemaFactory sf = SchemaFactory.newInstance(HTTP_WWW_W3_ORG_XML_XML_SCHEMA_V1_1); + sf.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); // Avoid XXE + sf.setResourceResolver(new Sedav2Resolver(is2, is3)); + sedaSchema = sf.newSchema(new StreamSource(is1)); + sedaContext = + JAXBContext.newInstance(fr.gouv.culture.archivesdefrance.seda.v21.ObjectFactory.class); + } catch (IOException | JAXBException | SAXException ex) { + throw new SipException("Unable to initialize XSD Schemas, JAXBContext and Marshaller", ex); } - - private Sedav21Adapter() { + } + + private Sedav21Adapter() {} + + @Override + public void write( + ArchiveTransfer transfer, Validator validator, Path zipPath, Sedav2Config config) { + + try (FileSystem zipArchive = SipUtils.newZipFileSystem(zipPath, config.useMemory())) { + ArchiveTransferType transferType = Sedav21Converter.convert(transfer, zipArchive, config); + doWrite(validator, config, zipArchive, transferType); + } catch (IOException + | JAXBException + | SAXException + | ExecutionException + | InterruptedException ex) { + Thread.currentThread().interrupt(); + throw new SipException("Failed to write archive to " + zipPath, ex); } - - @Override - public void write(ArchiveTransfer archive, Validator validator, Path zipPath, Sedav2Config config) { - - try (FileSystem zipArchive = SipUtils.newZipFileSystem(zipPath, config.useMemory())) { - ArchiveTransferType att = Sedav21Converter.convert(archive, zipArchive, config); - final Path zipEntryPath = zipArchive.getPath("manifest.xml"); - try (OutputStream os = Files.newOutputStream(zipEntryPath)) { - - // Set External Validator - if (validator != null) { - validator.validate(new JAXBSource(sedaContext, att)); - } - - Marshaller sedaMarshaller = sedaContext.createMarshaller(); - sedaMarshaller.setSchema(config.isValidate() ? sedaSchema : null); - sedaMarshaller.setProperty("org.glassfish.jaxb.namespacePrefixMapper", namespaceMapper); - sedaMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, false); - - if (LOGGER.isDebugEnabled()) { - sedaMarshaller.setEventHandler(new Sedav2EventHandler()); - sedaMarshaller.setListener(new Sedav2Listener()); - } - - // Marshall & prettyPrint - if (config.isFormat()) { - // JAXB_FORMATTED_OUTPUT is buggy and does not format XML with DOM nodes. Hence, this ugly hack... - ByteArrayInOutStream baios = new ByteArrayInOutStream(1024); - sedaMarshaller.marshal(att, baios); - SipUtils.formatXml(baios.getInputStream(), os, config.getIndent()); - } else { - sedaMarshaller.marshal(att, os); - } - } - } catch (IOException | JAXBException | SAXException | ExecutionException | - InterruptedException ex) { - Thread.currentThread().interrupt(); - throw new SipException("Failed to write archive to " + zipPath, ex); - } + } + + @Override + public void write( + ArchiveDeliveryRequestReply deliveryRequestReply, + Validator validator, + Path zipPath, + Sedav2Config config) { + try (FileSystem zipArchive = SipUtils.newZipFileSystem(zipPath, config.useMemory())) { + ArchiveDeliveryRequestReplyType requestReplyType = + Sedav21Converter.convertToArchiveDeliveryRequestReplyType( + deliveryRequestReply, zipArchive, config); + doWrite(validator, config, zipArchive, requestReplyType); + + } catch (IOException + | JAXBException + | SAXException + | ExecutionException + | InterruptedException ex) { + Thread.currentThread().interrupt(); + throw new SipException("Failed to write archive to " + zipPath, ex); } - - @Override - public void validate(ArchiveTransfer archive, Validator validator, Sedav2Config config) { - try { - ArchiveTransferType att = Sedav21Converter.convert(archive, config); - JAXBSource source = new JAXBSource(sedaContext, att); - - Validator sedaValidator = sedaSchema.newValidator(); - sedaValidator.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); - sedaValidator.validate(source); - - if (validator != null) { - validator.validate(source); - } - } catch (SAXException | IOException | ExecutionException | InterruptedException | - JAXBException ex) { - Thread.currentThread().interrupt(); - throw new SipException("Unable to validate archive", ex); - } + } + + private static void doWrite( + Validator validator, Sedav2Config config, FileSystem zipArchive, Object content) + throws IOException, SAXException, JAXBException { + Path zipEntryPath = zipArchive.getPath("manifest.xml"); + try (OutputStream os = Files.newOutputStream(zipEntryPath)) { + + // Set External Validator + if (validator != null) { + validator.validate(new JAXBSource(sedaContext, content)); + } + + Marshaller sedaMarshaller = sedaContext.createMarshaller(); + sedaMarshaller.setSchema(config.validate() ? sedaSchema : null); + sedaMarshaller.setProperty("org.glassfish.jaxb.namespacePrefixMapper", namespaceMapper); + sedaMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, false); + + if (LOGGER.isDebugEnabled()) { + sedaMarshaller.setEventHandler(new Sedav2EventHandler()); + sedaMarshaller.setListener(new Sedav2Listener()); + } + + // Marshall & prettyPrint + if (config.format()) { + // JAXB_FORMATTED_OUTPUT is buggy and does not format XML with DOM nodes. Hence, this ugly + // hack... + ByteArrayInOutStream baios = new ByteArrayInOutStream(1024); + sedaMarshaller.marshal(content, baios); + SipUtils.formatXml(baios.getInputStream(), os, config.indent()); + } else { + sedaMarshaller.marshal(content, os); + } } - - @Override - public void validate(Source source, Sedav2Config config) { - try { - Validator sedaValidator = sedaSchema.newValidator(); - sedaValidator.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); - sedaValidator.validate(source); - } catch (SAXException | IOException ex) { - throw new SipException("Unable to validate archive", ex); - } + } + + @Override + public void validate(ArchiveTransfer archive, Validator validator, Sedav2Config config) { + try { + ArchiveTransferType att = Sedav21Converter.convert(archive, config); + JAXBSource source = new JAXBSource(sedaContext, att); + + Validator sedaValidator = sedaSchema.newValidator(); + sedaValidator.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); + sedaValidator.validate(source); + + if (validator != null) { + validator.validate(source); + } + } catch (SAXException + | IOException + | ExecutionException + | InterruptedException + | JAXBException ex) { + Thread.currentThread().interrupt(); + throw new SipException("Unable to validate archive", ex); + } + } + + @Override + public void validate(Source source, Sedav2Config config) { + try { + Validator sedaValidator = sedaSchema.newValidator(); + sedaValidator.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); + sedaValidator.validate(source); + } catch (SAXException | IOException ex) { + throw new SipException("Unable to validate archive", ex); } + } } diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav21Converter.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav21Converter.java index 69ed2f5..041e10d 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav21Converter.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav21Converter.java @@ -37,27 +37,14 @@ */ package fr.xelians.sipg.service.sedav2; +import static fr.xelians.sipg.utils.SipUtils.ifNotBlank; +import static fr.xelians.sipg.utils.SipUtils.ifNotNull; + import fr.gouv.culture.archivesdefrance.seda.v21.*; import fr.xelians.sipg.model.*; import fr.xelians.sipg.utils.DroidUtils; import fr.xelians.sipg.utils.SipException; import fr.xelians.sipg.utils.SipUtils; -import org.apache.commons.io.FilenameUtils; -import org.apache.commons.lang3.RandomStringUtils; -import org.apache.commons.lang3.StringUtils; -import org.apache.commons.lang3.Validate; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.w3c.dom.Document; -import org.w3c.dom.Node; -import org.xml.sax.InputSource; -import org.xml.sax.SAXException; -import uk.gov.nationalarchives.droid.core.interfaces.IdentificationResult; - -import javax.print.DocFlavor; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.parsers.ParserConfigurationException; import java.io.IOException; import java.io.OutputStream; import java.io.StringReader; @@ -74,14 +61,26 @@ import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Supplier; - -import static fr.xelians.sipg.utils.SipUtils.ifNotBlank; -import static fr.xelians.sipg.utils.SipUtils.ifNotNull; +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.parsers.ParserConfigurationException; +import org.apache.commons.io.FilenameUtils; +import org.apache.commons.lang3.RandomStringUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Validate; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.w3c.dom.Document; +import org.w3c.dom.Node; +import org.xml.sax.InputSource; +import org.xml.sax.SAXException; +import uk.gov.nationalarchives.droid.core.interfaces.IdentificationResult; /** - * La classe Sedav2Converter contient les informations et fonctions nécessaires à la conversion d'une archive au format - * SEDA v2.1. Cette classe ne peut être instanciée qu'à travers les méthodes statiques convert(...). Note. la - * classe n'est pas thread safe et un nouvel objet est systématiquement créé à chaque conversion. + * La classe Sedav2Converter contient les informations et fonctions nécessaires à la conversion + * d'une archive au format SEDA v2.1. Cette classe ne peut être instanciée qu'à travers les méthodes + * statiques convert(...). Note. La classe n'est pas thread safe et un nouvel objet est + * systématiquement créé à chaque conversion. * * @author Emmanuel Deviller * @see ArchiveTransfer @@ -89,1003 +88,1212 @@ */ class Sedav21Converter { - private static final Logger LOGGER = LoggerFactory.getLogger(Sedav21Converter.class); - private static final String EXT_NS = "fr:gouv:culture:archivesdefrance:seda:v2.1"; - private final List> tasks = new ArrayList<>(); - private final AtomicInteger idCounter = new AtomicInteger(); - private final ObjectFactory sedav2Factory = new ObjectFactory(); - private final DocumentBuilder documentBuilder; - private final FileSystem zipArchive; - private final boolean isStrict; - private final boolean identifyFileFormat; - - private final HashMap archiveMap = new HashMap<>(); - private final ArrayList postProcessors = new ArrayList<>(); - - private Sedav21Converter(FileSystem zipArchive, Sedav2Config config) { - this.zipArchive = zipArchive; - this.isStrict = config.isStrict(); - this.identifyFileFormat=config.identifyFileFormat(); - - try { - documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); - } - catch (ParserConfigurationException ex) { - throw new SipException("Unable to create DOM document builder", ex); + private static final Logger LOGGER = LoggerFactory.getLogger(Sedav21Converter.class); + private static final String EXT_NS = "fr:gouv:culture:archivesdefrance:seda:v2.1"; + private final List> tasks = new ArrayList<>(); + private final AtomicInteger idCounter = new AtomicInteger(); + private final ObjectFactory sedav2Factory = new ObjectFactory(); + private final DocumentBuilder documentBuilder; + private final FileSystem zipArchive; + private final boolean isStrict; + private final boolean identifyFileFormat; + + private final HashMap archiveMap = new HashMap<>(); + private final ArrayList postProcessors = new ArrayList<>(); + + private Sedav21Converter(FileSystem zipArchive, Sedav2Config config) { + this.zipArchive = zipArchive; + this.isStrict = config.strict(); + this.identifyFileFormat = config.identifyFileFormat(); + + try { + documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); + } catch (ParserConfigurationException ex) { + throw new SipException("Unable to create DOM document builder", ex); + } + } + + /** + * Convertit une archive en archive SEDA v2.1. Cette fonction permet de s'assurer que la structure + * de l'archive est valide. + * + * @param archiveTransfer l'archive à convertir + * @return l 'archive au format SEDA v2.1 + * @throws ExecutionException the execution exception + * @throws InterruptedException the interrupted exception + */ + public static ArchiveTransferType convert(ArchiveTransfer archiveTransfer) + throws ExecutionException, InterruptedException { + return convert(archiveTransfer, null, Sedav2Config.DEFAULT); + } + + /** + * Convertit une archive en archive SEDA v2.1. Cette fonction permet de s'assurer que la structure + * de l'archive est valide. + * + * @param archiveTransfer l'archive à convertir + * @param config la configuration utilisée lors de la conversion + * @return l 'archive au format SEDA v2.1 + * @throws ExecutionException the execution exception + * @throws InterruptedException the interrupted exception + */ + static ArchiveTransferType convert(ArchiveTransfer archiveTransfer, Sedav2Config config) + throws ExecutionException, InterruptedException { + return convert(archiveTransfer, null, config); + } + + /** + * Convertit une archive en archive SEDA v2.1. L'archive convertie est créée dans le paquet zip + * spécifié par le paramètre zipArchive. + * + * @param archiveTransfer l'archive à convertir + * @param zipArchive le paquet zip de destination + * @return l 'archive au format SEDA v2.1 + * @throws ExecutionException the execution exception + * @throws InterruptedException the interrupted exception + */ + static ArchiveTransferType convert(ArchiveTransfer archiveTransfer, FileSystem zipArchive) + throws ExecutionException, InterruptedException { + return convert(archiveTransfer, zipArchive, Sedav2Config.DEFAULT); + } + + /** + * Convertit une archive en archive SEDA v2.1. L'archive convertie est créée dans le paquet zip + * spécifié par le paramètre zipArchive. + * + * @param archiveTransfer l'archive à convertir + * @param zipArchive le paquet zip de destination + * @param config la configuration utilisée lors de la conversion + * @return l 'archive au format SEDA v2.1 + * @throws ExecutionException the execution exception + * @throws InterruptedException the interrupted exception + */ + static ArchiveTransferType convert( + ArchiveTransfer archiveTransfer, FileSystem zipArchive, Sedav2Config config) + throws ExecutionException, InterruptedException { + Validate.notNull(archiveTransfer, SipUtils.NOT_NULL, "archiveTransfer"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + Sedav21Converter converter = new Sedav21Converter(zipArchive, config); + ArchiveTransferType att = converter.toArchiveTransferType(archiveTransfer); + executeAndWait(converter, config); + return att; + } + + /** + * Convertit une archive en delivery SEDA v2.2. L'archive convertie est créée dans le paquet zip + * spécifié par le paramètre zipArchive. + * + * @param archiveDeliveryRequestReply l'archive à convertir + * @param zipArchive le paquet zip de destination + * @param config la configuration utilisée lors de la conversion + * @return l 'archive au format SEDA v2.2 + * @throws ExecutionException the execution exception + * @throws InterruptedException the interrupted exception + */ + static ArchiveDeliveryRequestReplyType convertToArchiveDeliveryRequestReplyType( + ArchiveDeliveryRequestReply archiveDeliveryRequestReply, + FileSystem zipArchive, + Sedav2Config config) + throws ExecutionException, InterruptedException { + Validate.notNull(archiveDeliveryRequestReply, SipUtils.NOT_NULL, "archiveTransfer"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + Sedav21Converter converter = new Sedav21Converter(zipArchive, config); + ArchiveDeliveryRequestReplyType del = + converter.toArchiveDeliveryRequestReplyType(archiveDeliveryRequestReply); + executeAndWait(converter, config); + return del; + } + + private static void executeAndWait(Sedav21Converter converter, Sedav2Config config) + throws ExecutionException, InterruptedException { + if (!converter.tasks.isEmpty()) { + ExecutorService executor = + Executors.newFixedThreadPool(SipUtils.getPoolSize(config.thread())); + try { + List> futures = executor.invokeAll(converter.tasks); + // Join all threads and throw an exception if one task has failed + for (Future future : futures) { + future.get(); } + } finally { + executor.shutdownNow(); + } } - - /** - * Convertit une archive en archive SEDA v2.1. Cette fonction permet de s'assurer que la structure de l'archive est - * valide. - * - * @param archiveTransfer l'archive à convertir - * @return l 'archive au format SEDA v2.1 - * @throws ExecutionException the execution exception - * @throws InterruptedException the interrupted exception - */ - public static ArchiveTransferType convert(ArchiveTransfer archiveTransfer) throws ExecutionException, InterruptedException { - return convert(archiveTransfer, null, Sedav2Config.DEFAULT); + } + + private ArchiveDeliveryRequestReplyType toArchiveDeliveryRequestReplyType( + ArchiveDeliveryRequestReply delivery) { + ArchiveDeliveryRequestReplyType del = sedav2Factory.createArchiveDeliveryRequestReplyType(); + + String mi = + SipUtils.getIfBlank( + delivery.getMessageIdentifier(), RandomStringUtils.randomAlphabetic(32).toLowerCase()); + del.setMessageIdentifier(toIdentifierType(mi)); + + LocalDateTime gcd = SipUtils.getIfNull(delivery.getDate(), LocalDateTime.now()); + del.setDate(SipUtils.toXmlDateTime(gcd)); + + CodeListVersions clv = + SipUtils.getIfNull(delivery.getCodeListVersions(), new CodeListVersions()); + del.setCodeListVersions(toCodeListVersionsType(clv)); + + ifNotNull(delivery.getComment(), e -> del.getComment().add(toTextType(e))); + ifNotNull(delivery.getArchivalAgreement(), e -> del.setArchivalAgreement(toIdentifierType(e))); + ifNotNull( + delivery.getArchivalAgency(), e -> del.setArchivalAgency(toOrganizationWithIdType(e))); + + ifNotNull(delivery.getReplyCode(), del::setReplyCode); + ifNotNull( + delivery.getMessageRequestIdentifier(), + e -> del.setMessageRequestIdentifier(toIdentifierType(e))); + ifNotNull(delivery.getUnitIdentifier(), e -> del.getUnitIdentifier().add(toIdentifierType(e))); + ifNotNull(delivery.getRequester(), e -> del.setRequester(toOrganizationWithIdType(e))); + + DataObjectPackageType dopt = sedav2Factory.createDataObjectPackageType(); + + DescriptiveMetadataType dmt = sedav2Factory.createDescriptiveMetadataType(); + delivery + .getArchiveUnits() + .forEach(unit -> dmt.getArchiveUnit().add(toArchiveUnitType(unit, dopt))); + dopt.setDescriptiveMetadata(dmt); + + ManagementMetadataType mmt = sedav2Factory.createManagementMetadataType(); + ifNotNull( + delivery.getOriginatingAgencyIdentifier(), + e -> mmt.setOriginatingAgencyIdentifier(toIdentifierType(e))); + dopt.setManagementMetadata(mmt); + + del.setDataObjectPackage(dopt); + + // 2nd pass + postProcessors.forEach(Runnable::run); + + return del; + } + + private ArchiveTransferType toArchiveTransferType(ArchiveTransfer transfer) { + ArchiveTransferType att = sedav2Factory.createArchiveTransferType(); + + String mi = + SipUtils.getIfBlank( + transfer.getMessageIdentifier(), RandomStringUtils.randomAlphabetic(32).toLowerCase()); + att.setMessageIdentifier(toIdentifierType(mi)); + + LocalDateTime gcd = SipUtils.getIfNull(transfer.getDate(), LocalDateTime.now()); + att.setDate(SipUtils.toXmlDateTime(gcd)); + + CodeListVersions clv = + SipUtils.getIfNull(transfer.getCodeListVersions(), new CodeListVersions()); + att.setCodeListVersions(toCodeListVersionsType(clv)); + + ifNotNull(transfer.getComment(), e -> att.getComment().add(toTextType(e))); + ifNotNull(transfer.getArchivalAgreement(), e -> att.setArchivalAgreement(toIdentifierType(e))); + ifNotNull( + transfer.getArchivalAgency(), e -> att.setArchivalAgency(toOrganizationWithIdType(e))); + ifNotNull( + transfer.getTransferringAgency(), + e -> att.setTransferringAgency(toOrganizationWithIdType(e))); + + if (StringUtils.isNotBlank(transfer.getSignature()) + || !transfer.getSignatureElements().isEmpty()) { + att.setSignature(toSignatureMessageType(transfer)); } - /** - * Convertit une archive en archive SEDA v2.1. Cette fonction permet de s'assurer que la structure de l'archive est - * valide. - * - * @param archiveTransfer l'archive à convertir - * @param config la configuration utilisée lors de la conversion - * @return l 'archive au format SEDA v2.1 - * @throws ExecutionException the execution exception - * @throws InterruptedException the interrupted exception - */ - static ArchiveTransferType convert(ArchiveTransfer archiveTransfer, Sedav2Config config) throws ExecutionException, InterruptedException { - return convert(archiveTransfer, null, config); + DataObjectPackageType dopt = sedav2Factory.createDataObjectPackageType(); + + DescriptiveMetadataType dmt = sedav2Factory.createDescriptiveMetadataType(); + transfer + .getArchiveUnits() + .forEach(unit -> dmt.getArchiveUnit().add(toArchiveUnitType(unit, dopt))); + dopt.setDescriptiveMetadata(dmt); + + ManagementMetadataType mmt = sedav2Factory.createManagementMetadataType(); + ifNotNull(transfer.getArchivalProfile(), e -> mmt.setArchivalProfile(toIdentifierType(e))); + ifNotNull(transfer.getServiceLevel(), e -> mmt.setServiceLevel(toIdentifierType(e))); + ifNotNull(transfer.getAcquisitionInformation(), mmt::setAcquisitionInformation); + ifNotNull(transfer.getLegalStatus(), e -> mmt.setLegalStatus(toLegalStatus(e))); + ifNotNull( + transfer.getOriginatingAgencyIdentifier(), + e -> mmt.setOriginatingAgencyIdentifier(toIdentifierType(e))); + ifNotNull( + transfer.getSubmissionAgencyIdentifier(), + e -> mmt.setSubmissionAgencyIdentifier(toIdentifierType(e))); + dopt.setManagementMetadata(mmt); + + att.setDataObjectPackage(dopt); + + // 2nd pass + postProcessors.forEach(Runnable::run); + + return att; + } + + private void addPhysicalDataObjectType( + DataObjectGroupType dogt, DataObjectRefType dor, ArchiveUnit unit) { + PhysicalDataObjectType pdot = sedav2Factory.createPhysicalDataObjectType(); + pdot.setId(incAndGetCounter()); + pdot.setPhysicalId(toIdentifierType(unit.getPhysicalId())); + pdot.setDataObjectVersion(unit.getPhysicalVersion()); + + dor.setDataObjectGroupReferenceId(dogt); + dogt.getBinaryDataObjectOrPhysicalDataObject().add(pdot); + } + + private void addBinaryDataObjectTypes( + DataObjectGroupType dogt, DataObjectRefType dor, ArchiveUnit unit) { + int size = dogt.getBinaryDataObjectOrPhysicalDataObject().size(); + + if (unit.getBinaryMasterDataObject() != null) { + addBinaryDataObjectType(dogt, unit.getBinaryMasterDataObject()); } - - /** - * Convertit une archive en archive SEDA v2.1. L'archive convertie est créée dans le paquet zip spécifié par le - * paramètre zipArchive. - * - * @param archiveTransfer l'archive à convertir - * @param zipArchive le paquet zip de destination - * @return l 'archive au format SEDA v2.1 - * @throws ExecutionException the execution exception - * @throws InterruptedException the interrupted exception - */ - static ArchiveTransferType convert(ArchiveTransfer archiveTransfer, FileSystem zipArchive) throws ExecutionException, InterruptedException { - return convert(archiveTransfer, zipArchive, Sedav2Config.DEFAULT); + if (unit.getDisseminationDataObject() != null) { + addBinaryDataObjectType(dogt, unit.getDisseminationDataObject()); } - - /** - * Convertit une archive en archive SEDA v2.1. L'archive convertie est créée dans le paquet zip spécifié par le - * paramètre zipArchive. - * - * @param archiveTransfer l'archive à convertir - * @param zipArchive le paquet zip de destination - * @param config la configuration utilisée lors de la conversion - * @return l 'archive au format SEDA v2.1 - * @throws ExecutionException the execution exception - * @throws InterruptedException the interrupted exception - */ - static ArchiveTransferType convert(ArchiveTransfer archiveTransfer, FileSystem zipArchive, - Sedav2Config config) throws ExecutionException, InterruptedException { - Validate.notNull(archiveTransfer, SipUtils.NOT_NULL, "archiveTransfer"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); - - Sedav21Converter converter = new Sedav21Converter(zipArchive, config); - ArchiveTransferType att = converter.toArchiveTransferType(archiveTransfer); - executeAndWait(converter, config); - return att; + if (unit.getThumbnailDataObject() != null) { + addBinaryDataObjectType(dogt, unit.getThumbnailDataObject()); } - - private static void executeAndWait(Sedav21Converter converter, Sedav2Config config) throws ExecutionException, InterruptedException { - if (!converter.tasks.isEmpty()) { - ExecutorService executor = Executors.newFixedThreadPool(SipUtils.getPoolSize(config.getThread())); - try { - List> futures = executor.invokeAll(converter.tasks); - // Join all threads and throw an exception if one task has failed - for (Future future : futures) { - future.get(); - } - } - finally { - executor.shutdownNow(); - } - } + if (unit.getTextContentDataObject() != null) { + addBinaryDataObjectType(dogt, unit.getTextContentDataObject()); } - private ArchiveTransferType toArchiveTransferType(ArchiveTransfer transfer) { - ArchiveTransferType att = sedav2Factory.createArchiveTransferType(); - - String mi = SipUtils.getIfBlank(transfer.getMessageIdentifier(), RandomStringUtils.randomAlphabetic(32).toLowerCase()); - att.setMessageIdentifier(toIdentifierType(mi)); - - LocalDateTime gcd = SipUtils.getIfNull(transfer.getDate(), LocalDateTime.now()); - att.setDate(SipUtils.toXmlDateTime(gcd)); - - CodeListVersions clv = SipUtils.getIfNull(transfer.getCodeListVersions(), new CodeListVersions()); - att.setCodeListVersions(toCodeListVersionsType(clv)); - - ifNotNull(transfer.getComment(), e -> att.getComment().add(toTextType(e))); - ifNotNull(transfer.getArchivalAgreement(), e -> att.setArchivalAgreement(toIdentifierType(e))); - ifNotNull(transfer.getArchivalAgency(), e -> att.setArchivalAgency(toOrganizationWithIdType(e))); - ifNotNull(transfer.getTransferringAgency(), e -> att.setTransferringAgency(toOrganizationWithIdType(e))); - - if (StringUtils.isNotBlank(transfer.getSignature()) || !transfer.getSignatureElements().isEmpty()) { - att.setSignature(toSignatureMessageType(transfer)); - } - - DataObjectPackageType dopt = sedav2Factory.createDataObjectPackageType(); - - DescriptiveMetadataType dmt = sedav2Factory.createDescriptiveMetadataType(); - transfer.getArchiveUnits().forEach(unit -> dmt.getArchiveUnit().add(toArchiveUnitType(unit, dopt))); - dopt.setDescriptiveMetadata(dmt); - - ManagementMetadataType mmt = sedav2Factory.createManagementMetadataType(); - ifNotNull(transfer.getArchivalProfile(), e -> mmt.setArchivalProfile(toIdentifierType(e))); - ifNotNull(transfer.getServiceLevel(), e -> mmt.setServiceLevel(toIdentifierType(e))); - ifNotNull(transfer.getAcquisitionInformation(), mmt::setAcquisitionInformation); - ifNotNull(transfer.getLegalStatus(), e -> mmt.setLegalStatus(toLegalStatus(e))); - ifNotNull(transfer.getOriginatingAgencyIdentifier(), e -> mmt.setOriginatingAgencyIdentifier(toIdentifierType(e))); - ifNotNull(transfer.getSubmissionAgencyIdentifier(), e -> mmt.setSubmissionAgencyIdentifier(toIdentifierType(e))); - dopt.setManagementMetadata(mmt); - - att.setDataObjectPackage(dopt); - - // 2nd pass - postProcessors.forEach(Runnable::run); - - return att; + if (dogt.getBinaryDataObjectOrPhysicalDataObject().size() != size) { + dor.setDataObjectGroupReferenceId(dogt); } - - private void addPhysicalDataObjectType(DataObjectGroupType dogt, DataObjectRefType dor, ArchiveUnit unit) { - PhysicalDataObjectType pdot = sedav2Factory.createPhysicalDataObjectType(); - pdot.setId(incAndGetCounter()); - pdot.setPhysicalId(toIdentifierType(unit.getPhysicalId())); - pdot.setDataObjectVersion(unit.getPhysicalVersion()); - - dor.setDataObjectGroupReferenceId(dogt); - dogt.getBinaryDataObjectOrPhysicalDataObject().add(pdot); + } + + private void addBinaryDataObjectType(DataObjectGroupType dogt, BinaryDataObject bdo) { + boolean removePath = false; + Path binaryPath = bdo.getBinaryPath(); + if (binaryPath == null) { + Supplier bs = bdo.getBinaryPathSupplier(); + if (bs == null) { + return; + } + binaryPath = bdo.getBinaryPathSupplier().get(); + removePath = true; } - private void addBinaryDataObjectTypes(DataObjectGroupType dogt, DataObjectRefType dor, ArchiveUnit unit) { - int size = dogt.getBinaryDataObjectOrPhysicalDataObject().size(); + MessageDigestBinaryObjectType mdbot = sedav2Factory.createMessageDigestBinaryObjectType(); + mdbot.setAlgorithm(bdo.getDigestAlgorithm()); - if (unit.getBinaryMasterDataObject() != null) { - addBinaryDataObjectType(dogt, unit.getBinaryMasterDataObject()); - } - if (unit.getDisseminationDataObject() != null) { - addBinaryDataObjectType(dogt, unit.getDisseminationDataObject()); - } - if (unit.getThumbnailDataObject() != null) { - addBinaryDataObjectType(dogt, unit.getThumbnailDataObject()); - } - if (unit.getTextContentDataObject() != null) { - addBinaryDataObjectType(dogt, unit.getTextContentDataObject()); - } + BinaryDataObjectType bdot = sedav2Factory.createBinaryDataObjectType(); + bdot.setId(incAndGetCounter()); + bdot.setDataObjectVersion(bdo.getBinaryVersion()); + bdot.setMessageDigest(mdbot); - if (dogt.getBinaryDataObjectOrPhysicalDataObject().size() != size) { - dor.setDataObjectGroupReferenceId(dogt); - } + FormatIdentification fmtId = bdo.getFormatIdentification(); + if (StringUtils.isNotBlank(fmtId.getFormatId())) { + bdot.setFormatIdentification( + toFormatIdentificationType( + fmtId.getFormatId(), fmtId.getFormatName(), fmtId.getMimeType())); } - private void addBinaryDataObjectType(DataObjectGroupType dogt, BinaryDataObject bdo) { - boolean removePath = false; - Path binaryPath = bdo.getBinaryPath(); - if (binaryPath == null) { - Supplier bs = bdo.getBinaryPathSupplier(); - if (bs == null) { - return; - } - binaryPath = bdo.getBinaryPathSupplier().get(); - removePath = true; - } - - MessageDigestBinaryObjectType mdbot = sedav2Factory.createMessageDigestBinaryObjectType(); - mdbot.setAlgorithm(bdo.getDigestAlgorithm()); - - BinaryDataObjectType bdot = sedav2Factory.createBinaryDataObjectType(); - bdot.setId(incAndGetCounter()); - bdot.setDataObjectVersion(bdo.getBinaryVersion()); - bdot.setMessageDigest(mdbot); - - FormatIdentification fmtId = bdo.getFormatIdentification(); - if (StringUtils.isNotBlank(fmtId.getFormatId())) { - bdot.setFormatIdentification(toFormatIdentificationType(fmtId.getFormatId(), fmtId.getFormatName(), fmtId.getMimeType())); - } - - FileInfo fileInfo = bdo.getFileInfo(); - if (fileInfo != null) { - bdot.setFileInfo(toFileInfoType(fileInfo, binaryPath.getFileName().toString())); - } - - dogt.getBinaryDataObjectOrPhysicalDataObject().add(bdot); - tasks.add(new ZipTask(binaryPath, removePath, this.identifyFileFormat, bdot)); + FileInfo fileInfo = bdo.getFileInfo(); + if (fileInfo != null) { + bdot.setFileInfo(toFileInfoType(fileInfo, binaryPath.getFileName().toString())); } - private ArchiveUnitType toArchiveUnitType(ArchiveUnit unit, DataObjectPackageType dopt) { - - ArchiveUnitType aut = sedav2Factory.createArchiveUnitType(); - // if no archive unit id set we use auto inc ids - String id = StringUtils.isNotEmpty(unit.getId()) ? unit.getId() : incAndGetCounter(); - aut.setId(id); - archiveMap.put(unit, aut); + dogt.getBinaryDataObjectOrPhysicalDataObject().add(bdot); + tasks.add(new ZipTask(binaryPath, removePath, this.identifyFileFormat, bdot)); + } - DataObjectGroupType dogt = sedav2Factory.createDataObjectGroupType(); - dogt.setId(incAndGetCounter()); + private ArchiveUnitType toArchiveUnitType(ArchiveUnit unit, DataObjectPackageType dopt) { - DataObjectRefType dor = sedav2Factory.createDataObjectRefType(); - - // Process Physical - String physicalId = unit.getPhysicalId(); - if (physicalId != null) { - addPhysicalDataObjectType(dogt, dor, unit); - } + ArchiveUnitType aut = sedav2Factory.createArchiveUnitType(); + // if no archive unit id set we use auto inc ids + String id = StringUtils.isNotEmpty(unit.getId()) ? unit.getId() : incAndGetCounter(); + aut.setId(id); + archiveMap.put(unit, aut); - // Process Binary - addBinaryDataObjectTypes(dogt, dor, unit); + DataObjectGroupType dogt = sedav2Factory.createDataObjectGroupType(); + dogt.setId(incAndGetCounter()); - if (dor.getDataObjectGroupReferenceId() != null) { - aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup().add(dor); - } - - if (!dogt.getBinaryDataObjectOrPhysicalDataObject().isEmpty()) { - dopt.getDataObjectGroupOrBinaryDataObjectOrPhysicalDataObject().add(dogt); - } + DataObjectRefType dor = sedav2Factory.createDataObjectRefType(); - // ArchiveUnitProfile - ifNotNull(unit.getArchiveUnitProfile(), e -> aut.setArchiveUnitProfile(toIdentifierType(unit.getArchiveUnitProfile()))); - - // Process Management - ManagementType mt = sedav2Factory.createManagementType(); - - if (unit.getUpdateOperation() != null) { - mt.setUpdateOperation(toUpdateOperationType(unit.getUpdateOperation())); - } - - if (unit.getAccessRules() != null) { - mt.setAccessRule(toAccessRuleType(unit.getAccessRules())); - } - - if (unit.getDisseminationRules() != null) { - mt.setDisseminationRule(toDisseminationRuleType(unit.getDisseminationRules())); - } - - if (unit.getReuseRules() != null) { - mt.setReuseRule(toReuseRuleType(unit.getReuseRules())); - } - - if (unit.getAppraisalRules() != null) { - mt.setAppraisalRule(toAppraisalRuleType(unit.getAppraisalRules())); - } - - if (unit.getStorageRules() != null) { - mt.setStorageRule(toStorageRuleType(unit.getStorageRules())); - } - - if (unit.getClassificationRules() != null) { - mt.setClassificationRule(toClassificationRuleType(unit.getClassificationRules())); - } - - if (mt.getUpdateOperation() != null || mt.getAccessRule() != null || mt.getAppraisalRule() != null || mt.getDisseminationRule() != null || mt.getReuseRule() != null || mt.getStorageRule() != null || mt.getClassificationRule() != null || mt.getLogBook() != null) { - - aut.setManagement(mt); - } - - // Content - DescriptiveMetadataContentType dmct = sedav2Factory.createDescriptiveMetadataContentType(); - - // LevelGroup - ifNotNull(unit.getDescriptionLevel(), e -> dmct.setDescriptionLevel(toLevelType(e))); - - // Title Group - unit.getTitles().forEach(t -> dmct.getTitle().add(toTextType(t))); - - // Identifier Group - unit.getFilePlanPositions().forEach( e -> dmct.getFilePlanPosition().add(e)); - unit.getSystemIds().forEach( e -> dmct.getSystemId().add(e)); - unit.getOriginatingSystemIds().forEach( e -> dmct.getOriginatingSystemId().add(e)); - unit.getOriginatingAgencyArchiveUnitIdentifiers().forEach( e -> dmct.getOriginatingAgencyArchiveUnitIdentifier().add(e)); - unit.getArchivalAgencyArchiveUnitIdentifiers().forEach( e -> dmct.getArchivalAgencyArchiveUnitIdentifier().add(e)); - unit.getTransferringAgencyArchiveUnitIdentifiers().forEach( e -> dmct.getTransferringAgencyArchiveUnitIdentifier().add(e)); - // acceptIfNotNull(unit.getPhysicalId(), e -> dmct.getPhysicalId().add(toTextType(e))); - - if (isStrict && !unit.getDataObjectSystemIds().isEmpty() ) { - throw new SipException("SEDA 2.1 does not support DataObjectSystemId"); - } - - // Description Group - unit.getDescriptions().forEach(d -> dmct.getDescription().add(toTextType(d))); - - // CustodialHistory Group - if (!unit.getCustodialItems().isEmpty()) { - CustodialHistoryType cht = sedav2Factory.createCustodialHistoryType(); - unit.getCustodialItems().forEach(e -> cht.getCustodialHistoryItem().add(toCustodialHistoryItemType(e))); - dmct.setCustodialHistory(cht); - } - - // Type Group - ifNotNull(unit.getType(), e -> dmct.setType(toTextType(e))); - ifNotNull(unit.getDocumentType(), e -> dmct.setDocumentType(toTextType(e))); - - // Language Group - unit.getLanguages().forEach(e -> dmct.getLanguage().add(e)); - ifNotNull(unit.getDescriptionLanguage(), dmct::setDescriptionLanguage); - - // Status Group - ifNotNull(unit.getStatus(), dmct::setStatus); + // Process Physical + String physicalId = unit.getPhysicalId(); + if (physicalId != null) { + addPhysicalDataObjectType(dogt, dor, unit); + } - // Version Group - ifNotNull(unit.getVersion(), dmct::setVersion); + // Process Binary + addBinaryDataObjectTypes(dogt, dor, unit); - // Keyword Group - unit.getTags().forEach(tag -> { - if (StringUtils.isBlank(tag.getKey())) { - dmct.getTag().add(tag.getValue()); - } else { - dmct.getKeyword().add(toKeywordType(tag)); - } - }); - - // Coverage Group - // Originating & Submission Agency Group - ifNotNull(unit.getOriginatingAgency(), e -> dmct.setOriginatingAgency(toOrganizationWithIdType(e))); - ifNotNull(unit.getSubmissionAgency(), e -> dmct.setSubmissionAgency(toOrganizationWithIdType(e))); - - // Authorized Agent & Writing Group - unit.getAuthorizedAgents().forEach(agent -> dmct.getAuthorizedAgent().add(toAgentType(agent))); - unit.getWriters().forEach(writer -> dmct.getWriter().add(toAgentType(writer))); - - // Audience Group - unit.getAddressees().forEach(addressee -> dmct.getAddressee().add(toAgentType(addressee))); - unit.getRecipients().forEach(recipient -> dmct.getRecipient().add(toAgentType(recipient))); - unit.getTransmitters().forEach(transmitter -> dmct.getTransmitter().add(toAgentType(transmitter))); - unit.getSenders().forEach(sender -> dmct.getSender().add(toAgentType(sender))); - - // Source Group - ifNotNull(unit.getSource(), dmct::setSource); - - // Relation Group - ifNotNull(unit.getRelation(), ror -> dmct.setRelatedObjectReference(toRelatedObjectReference(ror))); - - // Date Group - ifNotNull(unit.getCreatedDate(), d -> dmct.setCreatedDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getTransactedDate(), d -> dmct.setTransactedDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getAcquiredDate(), d -> dmct.setAcquiredDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getSentDate(), d -> dmct.setSentDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getReceivedDate(), d -> dmct.setReceivedDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getRegisteredDate(), d -> dmct.setRegisteredDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getStartDate(), d -> dmct.setStartDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getEndDate(), d -> dmct.setEndDate(SipUtils.toXmlDate(d).toString())); - - // Event Group - if (!unit.getLogEvents().isEmpty()) { - LogBookType lbt = sedav2Factory.createLogBookType(); - unit.getLogEvents().forEach(event -> lbt.getEvent().add(toEventType(event))); - mt.setLogBook(lbt); - } + if (dor.getDataObjectGroupReferenceId() != null) { + aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup().add(dor); + } - // Signature Group - unit.getSignatures().forEach(signature -> dmct.getSignature().add(toSignatureType(signature, dogt))); - - // GPS Group - if (unit.getGpsVersionID() != null || unit.getGpsDateStamp() != null || unit.getGpsAltitude() != null || unit.getGpsAltitudeRef() != null || unit.getGpsLatitude() != null || unit.getGpsLatitudeRef() != null || unit.getGpsLongitude() != null || unit.getGpsLongitudeRef() != null) { - - final GpsType gps = new GpsType(); - ifNotNull(unit.getGpsVersionID(), gps::setGpsVersionID); - ifNotNull(unit.getGpsAltitude(), s -> gps.setGpsAltitude(new BigInteger(s))); - ifNotNull(unit.getGpsAltitudeRef(), gps::setGpsAltitudeRef); - ifNotNull(unit.getGpsDateStamp(), gps::setGpsDateStamp); - ifNotNull(unit.getGpsLatitude(), gps::setGpsLatitude); - ifNotNull(unit.getGpsLatitudeRef(), gps::setGpsLatitudeRef); - ifNotNull(unit.getGpsLongitude(), gps::setGpsLongitude); - ifNotNull(unit.getGpsLongitudeRef(), gps::setGpsLongitudeRef); - dmct.setGps(gps); - } + if (!dogt.getBinaryDataObjectOrPhysicalDataObject().isEmpty()) { + dopt.getDataObjectGroupOrBinaryDataObjectOrPhysicalDataObject().add(dogt); + } - // Any Metadata - for (Object e : unit.getElements()) { - if (e instanceof String str) { - dmct.getAny().add(toNode(str)); - } else if (e instanceof Element elt) { - dmct.getAny().add(toNode(elt)); - } - } + // ArchiveUnitProfile + ifNotNull( + unit.getArchiveUnitProfile(), + e -> aut.setArchiveUnitProfile(toIdentifierType(unit.getArchiveUnitProfile()))); - aut.setContent(dmct); - unit.getArchiveUnits().forEach(u -> aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup().add(toArchiveUnitType(u, dopt))); + // Process Management + ManagementType mt = sedav2Factory.createManagementType(); - setArchiveUnitReferences(unit, aut); - return aut; + if (unit.getUpdateOperation() != null) { + mt.setUpdateOperation(toUpdateOperationType(unit.getUpdateOperation())); } - private void setArchiveUnitReferences(ArchiveUnit unit, ArchiveUnitType aut) { - for (ArchiveUnitRef ref : unit.getReferences()) { - postProcessors.add(() -> { - ArchiveUnit au = ref.getReference(); - ArchiveUnitType reference = archiveMap.get(au); - if (reference == null) { - throw new SipException("The related referenced archive unit does not exist in the sip"); - } - ArchiveUnitType referenceArchiveUnitType = new ArchiveUnitType(); - - referenceArchiveUnitType.setId(incAndGetCounter()); - referenceArchiveUnitType.setArchiveUnitRefId(reference); - aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup().add(referenceArchiveUnitType); - }); - } + if (unit.getAccessRules() != null) { + mt.setAccessRule(toAccessRuleType(unit.getAccessRules())); } - private Node toNode(String fragment) { - return toNode(fragment, documentBuilder); + if (unit.getDisseminationRules() != null) { + mt.setDisseminationRule(toDisseminationRuleType(unit.getDisseminationRules())); } - private Node toNode(String fragment, DocumentBuilder docBuilder) { - try { - Document doc = docBuilder.newDocument(); - org.w3c.dom.Element element = docBuilder.parse(new InputSource(new StringReader(fragment))).getDocumentElement(); - element.setAttribute("xmlns", EXT_NS); - return doc.importNode(element, true); - } - catch (SAXException | IOException ex) { - throw new SipException("Unable to create Node from document builder", ex); - } + if (unit.getReuseRules() != null) { + mt.setReuseRule(toReuseRuleType(unit.getReuseRules())); } - private Node toNode(Element element) { - return toNode(element, documentBuilder.newDocument()); + if (unit.getAppraisalRules() != null) { + mt.setAppraisalRule(toAppraisalRuleType(unit.getAppraisalRules())); } - private Node toNode(Element element, Document doc) { - org.w3c.dom.Element node = doc.createElementNS(EXT_NS, element.getName()); - node.setTextContent(element.getValue()); - element.getAttributes().forEach(node::setAttribute); - element.getElements().forEach(e -> node.appendChild(toNode(e, doc))); - return node; + if (unit.getStorageRules() != null) { + mt.setStorageRule(toStorageRuleType(unit.getStorageRules())); } - private RelatedObjectReferenceType toRelatedObjectReference(RelatedObjectRef relation) { - RelatedObjectReferenceType rort = sedav2Factory.createRelatedObjectReferenceType(); - relation.getPartOfs().forEach(r -> rort.getIsPartOf().add(toDataObjectOrArchiveUnitReferenceType(r))); - relation.getReferences().forEach(r -> rort.getReferences().add(toDataObjectOrArchiveUnitReferenceType(r))); - relation.getReplaces().forEach(r -> rort.getReplaces().add(toDataObjectOrArchiveUnitReferenceType(r))); - relation.getRequires().forEach(r -> rort.getRequires().add(toDataObjectOrArchiveUnitReferenceType(r))); - relation.getVersionOfs().forEach(r -> rort.getIsVersionOf().add(toDataObjectOrArchiveUnitReferenceType(r))); - return rort; + if (unit.getClassificationRules() != null) { + mt.setClassificationRule(toClassificationRuleType(unit.getClassificationRules())); } - private DataObjectOrArchiveUnitReferenceType toDataObjectOrArchiveUnitReferenceType(RelationRef relationRef) { - DataObjectOrArchiveUnitReferenceType dooaurt = sedav2Factory.createDataObjectOrArchiveUnitReferenceType(); - - if (relationRef instanceof ArchiveUnitRef) { - postProcessors.add(() -> { - ArchiveUnit au = (ArchiveUnit) relationRef.getReference(); - ArchiveUnitType aut = archiveMap.get(au); - if (aut == null) { - throw new SipException("The related referenced archive unit does not exist in the sip"); - } - dooaurt.setArchiveUnitRefId(aut); - }); - } else if (relationRef instanceof DataObjectRef) { - postProcessors.add(() -> { - ArchiveUnit au = (ArchiveUnit) relationRef.getReference(); - ArchiveUnitType aut = archiveMap.get(au); - if (aut == null) { - throw new SipException("The related referenced archive unit does not exist in the sip"); - } - List objs = aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup(); - Optional opt = objs.stream().filter(DataObjectRefType.class::isInstance).map(e -> (DataObjectRefType) e).findFirst(); - dooaurt.setDataObjectReference(opt.orElseThrow(() -> new SipException("The related referenced data object does not exist in this archive"))); - }); - } else if (relationRef instanceof RepositoryArchiveUnitPID) { - dooaurt.setRepositoryArchiveUnitPID((String) relationRef.getReference()); - } else if (relationRef instanceof RepositoryObjectPID) { - dooaurt.setRepositoryObjectPID((String) relationRef.getReference()); - } else if (relationRef instanceof ExternalReference) { - dooaurt.setExternalReference((String) relationRef.getReference()); - } + if (mt.getUpdateOperation() != null + || mt.getAccessRule() != null + || mt.getAppraisalRule() != null + || mt.getDisseminationRule() != null + || mt.getReuseRule() != null + || mt.getStorageRule() != null + || mt.getClassificationRule() != null + || mt.getLogBook() != null) { - return dooaurt; + aut.setManagement(mt); } - private CustodialHistoryItemType toCustodialHistoryItemType(CustodialItem custodialItem) { - CustodialHistoryItemType chit = sedav2Factory.createCustodialHistoryItemType(); - ifNotNull(custodialItem.getValue(), chit::setValue); - ifNotNull(custodialItem.getWhen(), e -> chit.setWhen(SipUtils.toXmlDateTime(e).toString())); - return chit; + // Content + DescriptiveMetadataContentType dmct = sedav2Factory.createDescriptiveMetadataContentType(); + + // LevelGroup + ifNotNull(unit.getDescriptionLevel(), e -> dmct.setDescriptionLevel(toLevelType(e))); + + // Title Group + unit.getTitles().forEach(t -> dmct.getTitle().add(toTextType(t))); + + // Identifier Group + unit.getFilePlanPositions().forEach(e -> dmct.getFilePlanPosition().add(e)); + unit.getSystemIds().forEach(e -> dmct.getSystemId().add(e)); + unit.getOriginatingSystemIds().forEach(e -> dmct.getOriginatingSystemId().add(e)); + unit.getOriginatingAgencyArchiveUnitIdentifiers() + .forEach(e -> dmct.getOriginatingAgencyArchiveUnitIdentifier().add(e)); + unit.getArchivalAgencyArchiveUnitIdentifiers() + .forEach(e -> dmct.getArchivalAgencyArchiveUnitIdentifier().add(e)); + unit.getTransferringAgencyArchiveUnitIdentifiers() + .forEach(e -> dmct.getTransferringAgencyArchiveUnitIdentifier().add(e)); + // acceptIfNotNull(unit.getPhysicalId(), e -> dmct.getPhysicalId().add(toTextType(e))); + + if (isStrict && !unit.getDataObjectSystemIds().isEmpty()) { + throw new SipException("SEDA 2.1 does not support DataObjectSystemId"); } - private FormatIdentificationType toFormatIdentificationType(String formatId, String formatLitteral, String mimeType) { - FormatIdentificationType fit = sedav2Factory.createFormatIdentificationType(); - ifNotNull(formatId, fit::setFormatId); - ifNotNull(formatLitteral, fit::setFormatLitteral); - ifNotNull(mimeType, fit::setMimeType); - return fit; - } + // Description Group + unit.getDescriptions().forEach(d -> dmct.getDescription().add(toTextType(d))); - private FileInfoType toFileInfoType(FileInfo fileInfo, String binaryName) { - FileInfoType fit = sedav2Factory.createFileInfoType(); - - fit.setFilename(StringUtils.isBlank(fileInfo.getFilename()) ? binaryName : fileInfo.getFilename()); - ifNotNull(fileInfo.getCreatingApplicationName(), fit::setCreatingApplicationName); - ifNotNull(fileInfo.getCreatingApplicationVersion(), fit::setCreatingApplicationVersion); - ifNotNull(fileInfo.getCreatingOs(), fit::setCreatingOs); - ifNotNull(fileInfo.getCreatingOsVersion(), fit::setCreatingOsVersion); - ifNotNull(fileInfo.getDateCreatedByApplication(), e -> fit.setDateCreatedByApplication(SipUtils.toXmlDateTime(e))); - ifNotNull(fileInfo.getLastModified(), e -> fit.setLastModified(SipUtils.toXmlDateTime(e))); - return fit; + // CustodialHistory Group + if (!unit.getCustodialItems().isEmpty()) { + CustodialHistoryType cht = sedav2Factory.createCustodialHistoryType(); + unit.getCustodialItems() + .forEach(e -> cht.getCustodialHistoryItem().add(toCustodialHistoryItemType(e))); + dmct.setCustodialHistory(cht); } - private UpdateOperationType toUpdateOperationType(UpdateOperation updateOperation) { - UpdateOperationType uopt = sedav2Factory.createUpdateOperationType(); - if (StringUtils.isNotBlank(updateOperation.getSystemId())) { - uopt.setSystemId(updateOperation.getSystemId()); - } else if (StringUtils.isNotBlank(updateOperation.getMetadataName()) && StringUtils.isNotBlank(updateOperation.getMetadataValue())) { - ArchiveUnitIdentifierKeyType auikt = sedav2Factory.createArchiveUnitIdentifierKeyType(); - auikt.setMetadataName(updateOperation.getMetadataName()); - auikt.setMetadataValue(updateOperation.getMetadataValue()); - uopt.setArchiveUnitIdentifierKey(auikt); - } else { - throw new SipException("UpdateOperation mandates non blank values"); - } - return uopt; - } + // Type Group + ifNotNull(unit.getType(), e -> dmct.setType(toTextType(e))); + ifNotNull(unit.getDocumentType(), e -> dmct.setDocumentType(toTextType(e))); - private AccessRuleType toAccessRuleType(AccessRules accessRule) { - AccessRuleType art = sedav2Factory.createAccessRuleType(); + // Language Group + unit.getLanguages().forEach(e -> dmct.getLanguage().add(e)); + ifNotNull(unit.getDescriptionLanguage(), dmct::setDescriptionLanguage); - for (Rule rule : accessRule.getRules()) { - art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); - if (rule.getStartDate() != null) { - art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); - } - } + // Status Group + ifNotNull(unit.getStatus(), dmct::setStatus); - // xsd:choice : you cannot set PreventInheritance and PreventRuleNames - ifNotNull(accessRule.isPreventInheritance(), art::setPreventInheritance); - accessRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); - return art; - } + // Version Group + ifNotNull(unit.getVersion(), dmct::setVersion); - private ClassificationRuleType toClassificationRuleType(ClassificationRules classificationRule) { - ClassificationRuleType art = sedav2Factory.createClassificationRuleType(); - - for (Rule rule : classificationRule.getRules()) { - art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); - if (rule.getStartDate() != null) { - art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); - } - } - - // xsd:choice : you cannot set PreventInheritance and PreventRuleNames - ifNotNull(classificationRule.isPreventInheritance(), art::setPreventInheritance); - classificationRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); + // Keyword Group + unit.getTags() + .forEach( + tag -> { + if (StringUtils.isBlank(tag.key())) { + dmct.getTag().add(tag.value()); + } else { + dmct.getKeyword().add(toKeywordType(tag)); + } + }); - ifNotNull(classificationRule.getClassificationLevel(), art::setClassificationLevel); - ifNotNull(classificationRule.getClassificationOwner(), art::setClassificationOwner); - ifNotNull(classificationRule.getClassificationAudience(), art::setClassificationAudience); - ifNotNull(classificationRule.getClassificationReassessingDate(), s -> art.setClassificationReassessingDate(SipUtils.toXmlDate(s))); - return art; + // Coverage Group + // Originating & Submission Agency Group + ifNotNull( + unit.getOriginatingAgency(), e -> dmct.setOriginatingAgency(toOrganizationWithIdType(e))); + ifNotNull( + unit.getSubmissionAgency(), e -> dmct.setSubmissionAgency(toOrganizationWithIdType(e))); + + // Authorized Agent & Writing Group + unit.getAuthorizedAgents().forEach(agent -> dmct.getAuthorizedAgent().add(toAgentType(agent))); + unit.getWriters().forEach(writer -> dmct.getWriter().add(toAgentType(writer))); + + // Audience Group + unit.getAddressees().forEach(addressee -> dmct.getAddressee().add(toAgentType(addressee))); + unit.getRecipients().forEach(recipient -> dmct.getRecipient().add(toAgentType(recipient))); + unit.getTransmitters() + .forEach(transmitter -> dmct.getTransmitter().add(toAgentType(transmitter))); + unit.getSenders().forEach(sender -> dmct.getSender().add(toAgentType(sender))); + + // Source Group + ifNotNull(unit.getSource(), dmct::setSource); + + // Relation Group + ifNotNull( + unit.getRelation(), ror -> dmct.setRelatedObjectReference(toRelatedObjectReference(ror))); + + // Date Group + ifNotNull(unit.getCreatedDate(), d -> dmct.setCreatedDate(SipUtils.toXmlDate(d).toString())); + ifNotNull( + unit.getTransactedDate(), d -> dmct.setTransactedDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getAcquiredDate(), d -> dmct.setAcquiredDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getSentDate(), d -> dmct.setSentDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getReceivedDate(), d -> dmct.setReceivedDate(SipUtils.toXmlDate(d).toString())); + ifNotNull( + unit.getRegisteredDate(), d -> dmct.setRegisteredDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getStartDate(), d -> dmct.setStartDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getEndDate(), d -> dmct.setEndDate(SipUtils.toXmlDate(d).toString())); + + // Event Group + if (!unit.getLogEvents().isEmpty()) { + LogBookType lbt = sedav2Factory.createLogBookType(); + unit.getLogEvents().forEach(event -> lbt.getEvent().add(toEventType(event))); + mt.setLogBook(lbt); } - private DisseminationRuleType toDisseminationRuleType(DisseminationRules disseminationRule) { - DisseminationRuleType art = sedav2Factory.createDisseminationRuleType(); - - for (Rule rule : disseminationRule.getRules()) { - art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); - if (rule.getStartDate() != null) { - art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); - } - } - - // xsd:choice : you cannot set PreventInheritance and PreventRuleNames - ifNotNull(disseminationRule.isPreventInheritance(), art::setPreventInheritance); - disseminationRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); - return art; + // Signature Group + unit.getSignatures() + .forEach(signature -> dmct.getSignature().add(toSignatureType(signature, dogt))); + + // GPS Group + if (unit.getGpsVersionID() != null + || unit.getGpsDateStamp() != null + || unit.getGpsAltitude() != null + || unit.getGpsAltitudeRef() != null + || unit.getGpsLatitude() != null + || unit.getGpsLatitudeRef() != null + || unit.getGpsLongitude() != null + || unit.getGpsLongitudeRef() != null) { + + final GpsType gps = new GpsType(); + ifNotNull(unit.getGpsVersionID(), gps::setGpsVersionID); + ifNotNull(unit.getGpsAltitude(), s -> gps.setGpsAltitude(new BigInteger(s))); + ifNotNull(unit.getGpsAltitudeRef(), gps::setGpsAltitudeRef); + ifNotNull(unit.getGpsDateStamp(), gps::setGpsDateStamp); + ifNotNull(unit.getGpsLatitude(), gps::setGpsLatitude); + ifNotNull(unit.getGpsLatitudeRef(), gps::setGpsLatitudeRef); + ifNotNull(unit.getGpsLongitude(), gps::setGpsLongitude); + ifNotNull(unit.getGpsLongitudeRef(), gps::setGpsLongitudeRef); + dmct.setGps(gps); } - private ReuseRuleType toReuseRuleType(ReuseRules reuseRule) { - ReuseRuleType art = sedav2Factory.createReuseRuleType(); - - for (Rule rule : reuseRule.getRules()) { - art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); - if (rule.getStartDate() != null) { - art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); - } - } - - // xsd:choice : you cannot set PreventInheritance and PreventRuleNames - ifNotNull(reuseRule.isPreventInheritance(), art::setPreventInheritance); - reuseRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); - return art; + // Any Metadata + for (Object e : unit.getElements()) { + if (e instanceof String str) { + dmct.getAny().add(toNode(str)); + } else if (e instanceof Element elt) { + dmct.getAny().add(toNode(elt)); + } } - private AppraisalRuleType toAppraisalRuleType(AppraisalRules appraisalRule) { - AppraisalRuleType art = sedav2Factory.createAppraisalRuleType(); - for (Rule rule : appraisalRule.getRules()) { - art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); - if (rule.getStartDate() != null) { - art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + aut.setContent(dmct); + unit.getArchiveUnits() + .forEach( + u -> + aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup() + .add(toArchiveUnitType(u, dopt))); + + setArchiveUnitReferences(unit, aut); + return aut; + } + + private void setArchiveUnitReferences(ArchiveUnit unit, ArchiveUnitType aut) { + for (ArchiveUnitRef ref : unit.getReferences()) { + postProcessors.add( + () -> { + ArchiveUnit au = ref.getReference(); + ArchiveUnitType reference = archiveMap.get(au); + if (reference == null) { + throw new SipException( + "The related referenced archive unit does not exist in the sip"); } - } + ArchiveUnitType referenceArchiveUnitType = new ArchiveUnitType(); - // xsd:choice : you cannot set PreventInheritance and PreventRuleNames - ifNotNull(appraisalRule.isPreventInheritance(), art::setPreventInheritance); - appraisalRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); - - String action = appraisalRule.getFinalAction(); - if ("Keep".equals(action)) { - art.setFinalAction(FinalActionAppraisalCodeType.KEEP); - } else if ("Destroy".equals(action)) { - art.setFinalAction(FinalActionAppraisalCodeType.DESTROY); - } - - if (isStrict) { - if (appraisalRule.getDuration() != null) { - throw new SipException("SEDA 2.1 does not support Duration"); - } - } - return art; + referenceArchiveUnitType.setId(incAndGetCounter()); + referenceArchiveUnitType.setArchiveUnitRefId(reference); + aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup() + .add(referenceArchiveUnitType); + }); } - - private StorageRuleType toStorageRuleType(StorageRules storageRule) { - StorageRuleType art = sedav2Factory.createStorageRuleType(); - for (Rule rule : storageRule.getRules()) { - art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); - if (rule.getStartDate() != null) { - art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + } + + private Node toNode(String fragment) { + return toNode(fragment, documentBuilder); + } + + private Node toNode(String fragment, DocumentBuilder docBuilder) { + try { + Document doc = docBuilder.newDocument(); + org.w3c.dom.Element element = + docBuilder.parse(new InputSource(new StringReader(fragment))).getDocumentElement(); + element.setAttribute("xmlns", EXT_NS); + return doc.importNode(element, true); + } catch (SAXException | IOException ex) { + throw new SipException("Unable to create Node from document builder", ex); + } + } + + private Node toNode(Element element) { + return toNode(element, documentBuilder.newDocument()); + } + + private Node toNode(Element element, Document doc) { + org.w3c.dom.Element node = doc.createElementNS(EXT_NS, element.getName()); + node.setTextContent(element.getValue()); + element.getAttributes().forEach(node::setAttribute); + element.getElements().forEach(e -> node.appendChild(toNode(e, doc))); + return node; + } + + private RelatedObjectReferenceType toRelatedObjectReference(RelatedObjectRef relation) { + RelatedObjectReferenceType rort = sedav2Factory.createRelatedObjectReferenceType(); + relation + .getPartOfs() + .forEach(r -> rort.getIsPartOf().add(toDataObjectOrArchiveUnitReferenceType(r))); + relation + .getReferences() + .forEach(r -> rort.getReferences().add(toDataObjectOrArchiveUnitReferenceType(r))); + relation + .getReplaces() + .forEach(r -> rort.getReplaces().add(toDataObjectOrArchiveUnitReferenceType(r))); + relation + .getRequires() + .forEach(r -> rort.getRequires().add(toDataObjectOrArchiveUnitReferenceType(r))); + relation + .getVersionOfs() + .forEach(r -> rort.getIsVersionOf().add(toDataObjectOrArchiveUnitReferenceType(r))); + return rort; + } + + private DataObjectOrArchiveUnitReferenceType toDataObjectOrArchiveUnitReferenceType( + RelationRef relationRef) { + DataObjectOrArchiveUnitReferenceType dooaurt = + sedav2Factory.createDataObjectOrArchiveUnitReferenceType(); + + if (relationRef instanceof ArchiveUnitRef) { + postProcessors.add( + () -> { + ArchiveUnit au = (ArchiveUnit) relationRef.getReference(); + ArchiveUnitType aut = archiveMap.get(au); + if (aut == null) { + throw new SipException( + "The related referenced archive unit does not exist in the sip"); } - } - - // xsd:choice : you cannot set PreventInheritance and PreventRuleNames - ifNotNull(storageRule.isPreventInheritance(), art::setPreventInheritance); - storageRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); - - String action = storageRule.getFinalAction(); - if (action != null) { - switch (action) { - case "Copy" -> art.setFinalAction(FinalActionStorageCodeType.COPY); - case "RestrictAccess" -> art.setFinalAction(FinalActionStorageCodeType.RESTRICT_ACCESS); - case "Transfer" -> art.setFinalAction(FinalActionStorageCodeType.TRANSFER); - default -> throw new SipException(String.format("Unknown final action %s", action)); + dooaurt.setArchiveUnitRefId(aut); + }); + } else if (relationRef instanceof DataObjectRef) { + postProcessors.add( + () -> { + ArchiveUnit au = (ArchiveUnit) relationRef.getReference(); + ArchiveUnitType aut = archiveMap.get(au); + if (aut == null) { + throw new SipException( + "The related referenced archive unit does not exist in the sip"); } - } - - return art; + List objs = aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup(); + Optional opt = + objs.stream() + .filter(DataObjectRefType.class::isInstance) + .map(e -> (DataObjectRefType) e) + .findFirst(); + dooaurt.setDataObjectReference( + opt.orElseThrow( + () -> + new SipException( + "The related referenced data object does not exist in this archive"))); + }); + } else if (relationRef instanceof RepositoryArchiveUnitPID) { + dooaurt.setRepositoryArchiveUnitPID((String) relationRef.getReference()); + } else if (relationRef instanceof RepositoryObjectPID) { + dooaurt.setRepositoryObjectPID((String) relationRef.getReference()); + } else if (relationRef instanceof ExternalReference) { + dooaurt.setExternalReference((String) relationRef.getReference()); } - private RuleIdType toRuleIdType(String value) { - RuleIdType rit = sedav2Factory.createRuleIdType(); - rit.setValue(value); - return rit; + return dooaurt; + } + + private CustodialHistoryItemType toCustodialHistoryItemType(CustodialItem custodialItem) { + CustodialHistoryItemType chit = sedav2Factory.createCustodialHistoryItemType(); + ifNotNull(custodialItem.getValue(), chit::setValue); + ifNotNull(custodialItem.getWhen(), e -> chit.setWhen(SipUtils.toXmlDateTime(e).toString())); + return chit; + } + + private FormatIdentificationType toFormatIdentificationType( + String formatId, String formatLitteral, String mimeType) { + FormatIdentificationType fit = sedav2Factory.createFormatIdentificationType(); + ifNotNull(formatId, fit::setFormatId); + ifNotNull(formatLitteral, fit::setFormatLitteral); + ifNotNull(mimeType, fit::setMimeType); + return fit; + } + + private FileInfoType toFileInfoType(FileInfo fileInfo, String binaryName) { + FileInfoType fit = sedav2Factory.createFileInfoType(); + + fit.setFilename( + StringUtils.isBlank(fileInfo.getFilename()) ? binaryName : fileInfo.getFilename()); + ifNotNull(fileInfo.getCreatingApplicationName(), fit::setCreatingApplicationName); + ifNotNull(fileInfo.getCreatingApplicationVersion(), fit::setCreatingApplicationVersion); + ifNotNull(fileInfo.getCreatingOs(), fit::setCreatingOs); + ifNotNull(fileInfo.getCreatingOsVersion(), fit::setCreatingOsVersion); + ifNotNull( + fileInfo.getDateCreatedByApplication(), + e -> fit.setDateCreatedByApplication(SipUtils.toXmlDateTime(e))); + ifNotNull(fileInfo.getLastModified(), e -> fit.setLastModified(SipUtils.toXmlDateTime(e))); + return fit; + } + + private UpdateOperationType toUpdateOperationType(UpdateOperation updateOperation) { + UpdateOperationType uopt = sedav2Factory.createUpdateOperationType(); + if (StringUtils.isNotBlank(updateOperation.getSystemId())) { + uopt.setSystemId(updateOperation.getSystemId()); + } else if (StringUtils.isNotBlank(updateOperation.getMetadataName()) + && StringUtils.isNotBlank(updateOperation.getMetadataValue())) { + ArchiveUnitIdentifierKeyType auikt = sedav2Factory.createArchiveUnitIdentifierKeyType(); + auikt.setMetadataName(updateOperation.getMetadataName()); + auikt.setMetadataValue(updateOperation.getMetadataValue()); + uopt.setArchiveUnitIdentifierKey(auikt); + } else { + throw new SipException("UpdateOperation mandates non blank values"); } + return uopt; + } - private EventType toEventType(Event event) { - EventType et = sedav2Factory.createEventType(); - ifNotNull(event.getIdentifier(), et::setEventIdentifier); - ifNotNull(event.getDateTime(), e -> et.setEventDateTime(SipUtils.toXmlDateTime(e).toString())); - ifNotNull(event.getDetail(), e -> et.setEventDetail(toTextType(e))); - ifNotNull(event.getDetailData(), et::setEventDetailData); - ifNotNull(event.getOutcome(), et::setOutcome); - ifNotNull(event.getOutcomeDetail(), et::setOutcomeDetail); - ifNotNull(event.getOutcomeDetailMessage(), et::setOutcomeDetailMessage); - ifNotNull(event.getType(), et::setEventType); - ifNotNull(event.getTypeCode(), et::setEventTypeCode); - return et; - } + private AccessRuleType toAccessRuleType(AccessRules accessRule) { + AccessRuleType art = sedav2Factory.createAccessRuleType(); - private AgentType toAgentType(Agent agent) { - AgentType at = sedav2Factory.createAgentType(); - ifNotBlank(agent.getFirstName(), at::setFirstName); - ifNotBlank(agent.getBirthName(), at::setBirthName); - ifNotBlank(agent.getFullName(), at::setFullName); - ifNotBlank(agent.getGivenName(), at::setGivenName); - ifNotBlank(agent.getGender(), at::setGender); - ifNotBlank(agent.getCorpName(), at::setCorpname); - ifNotNull(agent.getBirthDate(), e -> at.setBirthDate(SipUtils.toXmlDate(e))); - ifNotNull(agent.getDeathDate(), e -> at.setDeathDate(SipUtils.toXmlDate(e))); - ifNotNull(agent.getBirthPlace(), e -> at.setBirthPlace(toPlaceType(e))); - ifNotNull(agent.getDeathPlace(), e -> at.setDeathPlace(toPlaceType(e))); - at.getNationality().addAll(agent.getNationalities()); - at.getIdentifier().addAll(agent.getIdentifiers()); - agent.getFunctions().forEach(e -> at.getFunction().add(toTextType(e))); - agent.getActivities().forEach(e -> at.getActivity().add(toTextType(e))); - agent.getPositions().forEach(e -> at.getPosition().add(toTextType(e))); - agent.getRoles().forEach(e -> at.getRole().add(toTextType(e))); - agent.getMandates().forEach(e -> at.getMandate().add(toTextType(e))); - return at; + for (Rule rule : accessRule.getRules()) { + art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); + if (rule.getStartDate() != null) { + art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + } } - private SignatureType toSignatureType(Signature signature, DataObjectGroupType dogt) { - ReferencedObjectType rot = sedav2Factory.createReferencedObjectType(); - if (dogt.getBinaryDataObjectOrPhysicalDataObject().isEmpty()) { - throw new SipException("The signed referenced object does not exist in this archive"); - } - rot.setSignedObjectId(dogt); - - MessageDigestBinaryObjectType mdbot = sedav2Factory.createMessageDigestBinaryObjectType(); - mdbot.setAlgorithm(signature.getDigestAlgorithm()); - ifNotNull(signature.getDigestValue(), mdbot::setValue); - rot.setSignedObjectDigest(mdbot); + // xsd:choice : you cannot set PreventInheritance and PreventRuleNames + ifNotNull(accessRule.isPreventInheritance(), art::setPreventInheritance); + accessRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); + return art; + } - SignatureType st = sedav2Factory.createSignatureType(); - signature.getSigners().forEach(e -> st.getSigner().add(toSignerType(e))); - ifNotNull(signature.getValidator(), e -> st.setValidator(toValidatorType(e))); - st.setReferencedObject(rot); + private ClassificationRuleType toClassificationRuleType(ClassificationRules classificationRule) { + ClassificationRuleType art = sedav2Factory.createClassificationRuleType(); - return st; + for (Rule rule : classificationRule.getRules()) { + art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); + if (rule.getStartDate() != null) { + art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + } } - private SignerType toSignerType(Signer signer) { - SignerType st = sedav2Factory.createSignerType(); - ifNotBlank(signer.getFirstName(), st::setFirstName); - ifNotBlank(signer.getBirthName(), st::setBirthName); - ifNotBlank(signer.getFullName(), st::setFullName); - ifNotBlank(signer.getGivenName(), st::setGivenName); - ifNotBlank(signer.getGender(), st::setGender); - ifNotBlank(signer.getCorpName(), st::setCorpname); - ifNotNull(signer.getBirthDate(), e -> st.setBirthDate(SipUtils.toXmlDate(e))); - ifNotNull(signer.getDeathDate(), e -> st.setDeathDate(SipUtils.toXmlDate(e))); - ifNotNull(signer.getBirthPlace(), e -> st.setBirthPlace(toPlaceType(e))); - ifNotNull(signer.getDeathPlace(), e -> st.setDeathPlace(toPlaceType(e))); - ifNotNull(signer.getSigningTime(), e -> st.setSigningTime(SipUtils.toXmlDateTime(e))); - - st.getNationality().addAll(signer.getNationalities()); - st.getIdentifier().addAll(signer.getIdentifiers()); - signer.getFunctions().forEach(e -> st.getFunction().add(toTextType(e))); - signer.getActivities().forEach(e -> st.getActivity().add(toTextType(e))); - signer.getPositions().forEach(e -> st.getPosition().add(toTextType(e))); - signer.getRoles().forEach(e -> st.getRole().add(toTextType(e))); - signer.getMandates().forEach(e -> st.getMandate().add(toTextType(e))); - return st; + // xsd:choice : you cannot set PreventInheritance and PreventRuleNames + ifNotNull(classificationRule.isPreventInheritance(), art::setPreventInheritance); + classificationRule + .getPreventRuleNames() + .forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); + + ifNotNull(classificationRule.getClassificationLevel(), art::setClassificationLevel); + ifNotNull(classificationRule.getClassificationOwner(), art::setClassificationOwner); + ifNotNull(classificationRule.getClassificationAudience(), art::setClassificationAudience); + ifNotNull( + classificationRule.getClassificationReassessingDate(), + s -> art.setClassificationReassessingDate(SipUtils.toXmlDate(s))); + return art; + } + + private DisseminationRuleType toDisseminationRuleType(DisseminationRules disseminationRule) { + DisseminationRuleType art = sedav2Factory.createDisseminationRuleType(); + + for (Rule rule : disseminationRule.getRules()) { + art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); + if (rule.getStartDate() != null) { + art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + } } - private ValidatorType toValidatorType(Validator validator) { - ValidatorType vt = sedav2Factory.createValidatorType(); - ifNotBlank(validator.getFirstName(), vt::setFirstName); - ifNotBlank(validator.getBirthName(), vt::setBirthName); - ifNotBlank(validator.getFullName(), vt::setFullName); - ifNotBlank(validator.getGivenName(), vt::setGivenName); - ifNotBlank(validator.getGender(), vt::setGender); - ifNotBlank(validator.getCorpName(), vt::setCorpname); - ifNotNull(validator.getBirthDate(), e -> vt.setBirthDate(SipUtils.toXmlDate(e))); - ifNotNull(validator.getDeathDate(), e -> vt.setDeathDate(SipUtils.toXmlDate(e))); - ifNotNull(validator.getBirthPlace(), e -> vt.setBirthPlace(toPlaceType(e))); - ifNotNull(validator.getDeathPlace(), e -> vt.setDeathPlace(toPlaceType(e))); - ifNotNull(validator.getValidationTime(), e -> vt.setValidationTime(SipUtils.toXmlDateTime(e))); - - vt.getNationality().addAll(validator.getNationalities()); - vt.getIdentifier().addAll(validator.getIdentifiers()); - validator.getFunctions().forEach(e -> vt.getFunction().add(toTextType(e))); - validator.getActivities().forEach(e -> vt.getActivity().add(toTextType(e))); - validator.getPositions().forEach(e -> vt.getPosition().add(toTextType(e))); - validator.getRoles().forEach(e -> vt.getRole().add(toTextType(e))); - validator.getMandates().forEach(e -> vt.getMandate().add(toTextType(e))); - return vt; + // xsd:choice : you cannot set PreventInheritance and PreventRuleNames + ifNotNull(disseminationRule.isPreventInheritance(), art::setPreventInheritance); + disseminationRule + .getPreventRuleNames() + .forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); + return art; + } + + private ReuseRuleType toReuseRuleType(ReuseRules reuseRule) { + ReuseRuleType art = sedav2Factory.createReuseRuleType(); + + for (Rule rule : reuseRule.getRules()) { + art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); + if (rule.getStartDate() != null) { + art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + } } - private BirthOrDeathPlaceType toPlaceType(Place place) { - BirthOrDeathPlaceType bodpt = sedav2Factory.createBirthOrDeathPlaceType(); - ifNotBlank(place.getAddress(), bodpt::setAddress); - ifNotBlank(place.getCity(), bodpt::setCity); - ifNotBlank(place.getCountry(), bodpt::setCountry); - ifNotBlank(place.getGeogName(), bodpt::setGeogname); - ifNotBlank(place.getPostalCode(), bodpt::setPostalCode); - ifNotBlank(place.getRegion(), bodpt::setRegion); - return bodpt; + // xsd:choice : you cannot set PreventInheritance and PreventRuleNames + ifNotNull(reuseRule.isPreventInheritance(), art::setPreventInheritance); + reuseRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); + return art; + } + + private AppraisalRuleType toAppraisalRuleType(AppraisalRules appraisalRule) { + AppraisalRuleType art = sedav2Factory.createAppraisalRuleType(); + for (Rule rule : appraisalRule.getRules()) { + art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); + if (rule.getStartDate() != null) { + art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + } } - private CodeListVersionsType toCodeListVersionsType(CodeListVersions code) { - CodeListVersionsType clvt = sedav2Factory.createCodeListVersionsType(); - clvt.setId(code.getId()); + // xsd:choice : you cannot set PreventInheritance and PreventRuleNames + ifNotNull(appraisalRule.isPreventInheritance(), art::setPreventInheritance); + appraisalRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); - if (isStrict) { - if (code.getSignatureStatusCodeListVersion() != null) { - throw new SipException("SEDA 2.1 does not support SignatureStatusCodeListVersion"); - } - if (code.getFileEncodingCodeListVersion() != null) { - throw new SipException("SEDA 2.1 does not support FileEncodingCodeListVersion"); - } - } - - ifNotBlank(code.getAuthorizationReasonCodeListVersion(), e -> clvt.setAuthorizationReasonCodeListVersion(toCodeType(e))); - ifNotBlank(code.getFileFormatCodeListVersion(), e -> clvt.setFileFormatCodeListVersion(toCodeType(e))); - ifNotBlank(code.getMessageDigestAlgorithmCodeListVersion(), e -> clvt.setMessageDigestAlgorithmCodeListVersion(toCodeType(e))); - ifNotBlank(code.getRelationshipCodeListVersion(), e -> clvt.setRelationshipCodeListVersion(toCodeType(e))); - ifNotBlank(code.getReplyCodeListVersion(), e -> clvt.setReplyCodeListVersion(toCodeType(e))); - ifNotBlank(code.getMimeTypeCodeListVersion(), e -> clvt.setMimeTypeCodeListVersion(toCodeType(e))); - ifNotBlank(code.getEncodingCodeListVersion(), e -> clvt.setEncodingCodeListVersion(toCodeType(e))); - ifNotBlank(code.getCompressionAlgorithmCodeListVersion(), e -> clvt.setCompressionAlgorithmCodeListVersion(toCodeType(e))); - ifNotBlank(code.getDataObjectVersionCodeListVersion(), e -> clvt.setDataObjectVersionCodeListVersion(toCodeType(e))); - ifNotBlank(code.getStorageRuleCodeListVersion(), e -> clvt.setStorageRuleCodeListVersion(toCodeType(e))); - ifNotBlank(code.getAppraisalRuleCodeListVersion(), e -> clvt.setAppraisalRuleCodeListVersion(toCodeType(e))); - ifNotBlank(code.getAccessRuleCodeListVersion(), e -> clvt.setAccessRuleCodeListVersion(toCodeType(e))); - ifNotBlank(code.getDisseminationRuleCodeListVersion(), e -> clvt.setDisseminationRuleCodeListVersion(toCodeType(e))); - ifNotBlank(code.getReuseRuleCodeListVersion(), e -> clvt.setReuseRuleCodeListVersion(toCodeType(e))); - ifNotBlank(code.getClassificationRuleCodeListVersion(), e -> clvt.setClassificationRuleCodeListVersion(toCodeType(e))); - ifNotBlank(code.getAcquisitionInformationCodeListVersion(), e -> clvt.setAcquisitionInformationCodeListVersion(toCodeType(e))); - - return clvt; + String action = appraisalRule.getFinalAction(); + if ("Keep".equals(action)) { + art.setFinalAction(FinalActionAppraisalCodeType.KEEP); + } else if ("Destroy".equals(action)) { + art.setFinalAction(FinalActionAppraisalCodeType.DESTROY); } - private LevelType toLevelType(String levelType) { - try { - return LevelType.fromValue(levelType); - } - catch (IllegalArgumentException iae) { - throw new SipException("Seda 2.1 does not support the level type: " + levelType, iae); - } + if (isStrict) { + if (appraisalRule.getDuration() != null) { + throw new SipException("SEDA 2.1 does not support Duration"); + } } - - private LegalStatusType toLegalStatus(String legalStatusType) { - try { - return LegalStatusType.fromValue(legalStatusType); - } - catch (IllegalArgumentException iae) { - throw new SipException("Seda 2.1 does not support the legal status : " + legalStatusType, iae); - } + return art; + } + + private StorageRuleType toStorageRuleType(StorageRules storageRule) { + StorageRuleType art = sedav2Factory.createStorageRuleType(); + for (Rule rule : storageRule.getRules()) { + art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); + if (rule.getStartDate() != null) { + art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + } } - private CodeType toCodeType(String codeType) { - CodeType ct = sedav2Factory.createCodeType(); - ct.setValue(codeType); - return ct; + // xsd:choice : you cannot set PreventInheritance and PreventRuleNames + ifNotNull(storageRule.isPreventInheritance(), art::setPreventInheritance); + storageRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); + + String action = storageRule.getFinalAction(); + if (action != null) { + switch (action) { + case "Copy" -> art.setFinalAction(FinalActionStorageCodeType.COPY); + case "RestrictAccess" -> art.setFinalAction(FinalActionStorageCodeType.RESTRICT_ACCESS); + case "Transfer" -> art.setFinalAction(FinalActionStorageCodeType.TRANSFER); + default -> throw new SipException(String.format("Unknown final action %s", action)); + } } - private OrganizationWithIdType toOrganizationWithIdType(Agency agency) { - OrganizationWithIdType ot = sedav2Factory.createOrganizationWithIdType(); - ot.setIdentifier(toIdentifierType(agency.getIdentifier())); - if (StringUtils.isNotBlank(agency.getName())) { - OrganizationDescriptiveMetadataType odmt = sedav2Factory.createOrganizationDescriptiveMetadataType(); - - ifNotNull(agency.getName(), e -> odmt.getAny().add(toNode(new Element("Name", e)))); - agency.getElements().forEach(e -> odmt.getAny().add(toNode(e))); - ot.setOrganizationDescriptiveMetadata(odmt); - } - return ot; + return art; + } + + private RuleIdType toRuleIdType(String value) { + RuleIdType rit = sedav2Factory.createRuleIdType(); + rit.setValue(value); + return rit; + } + + private EventType toEventType(Event event) { + EventType et = sedav2Factory.createEventType(); + ifNotNull(event.getIdentifier(), et::setEventIdentifier); + ifNotNull(event.getDateTime(), e -> et.setEventDateTime(SipUtils.toXmlDateTime(e).toString())); + ifNotNull(event.getDetail(), e -> et.setEventDetail(toTextType(e))); + ifNotNull(event.getDetailData(), et::setEventDetailData); + ifNotNull(event.getOutcome(), et::setOutcome); + ifNotNull(event.getOutcomeDetail(), et::setOutcomeDetail); + ifNotNull(event.getOutcomeDetailMessage(), et::setOutcomeDetailMessage); + ifNotNull(event.getType(), et::setEventType); + ifNotNull(event.getTypeCode(), et::setEventTypeCode); + return et; + } + + private AgentType toAgentType(Agent agent) { + AgentType at = sedav2Factory.createAgentType(); + ifNotBlank(agent.getFirstName(), at::setFirstName); + ifNotBlank(agent.getBirthName(), at::setBirthName); + ifNotBlank(agent.getFullName(), at::setFullName); + ifNotBlank(agent.getGivenName(), at::setGivenName); + ifNotBlank(agent.getGender(), at::setGender); + ifNotBlank(agent.getCorpName(), at::setCorpname); + ifNotNull(agent.getBirthDate(), e -> at.setBirthDate(SipUtils.toXmlDate(e))); + ifNotNull(agent.getDeathDate(), e -> at.setDeathDate(SipUtils.toXmlDate(e))); + ifNotNull(agent.getBirthPlace(), e -> at.setBirthPlace(toPlaceType(e))); + ifNotNull(agent.getDeathPlace(), e -> at.setDeathPlace(toPlaceType(e))); + at.getNationality().addAll(agent.getNationalities()); + at.getIdentifier().addAll(agent.getIdentifiers()); + agent.getFunctions().forEach(e -> at.getFunction().add(toTextType(e))); + agent.getActivities().forEach(e -> at.getActivity().add(toTextType(e))); + agent.getPositions().forEach(e -> at.getPosition().add(toTextType(e))); + agent.getRoles().forEach(e -> at.getRole().add(toTextType(e))); + agent.getMandates().forEach(e -> at.getMandate().add(toTextType(e))); + return at; + } + + private SignatureType toSignatureType(Signature signature, DataObjectGroupType dogt) { + ReferencedObjectType rot = sedav2Factory.createReferencedObjectType(); + if (dogt.getBinaryDataObjectOrPhysicalDataObject().isEmpty()) { + throw new SipException("The signed referenced object does not exist in this archive"); } - - private IdentifierType toIdentifierType(String identifier) { - IdentifierType it = sedav2Factory.createIdentifierType(); - it.setValue(identifier); - return it; + rot.setSignedObjectId(dogt); + + MessageDigestBinaryObjectType mdbot = sedav2Factory.createMessageDigestBinaryObjectType(); + mdbot.setAlgorithm(signature.getDigestAlgorithm()); + ifNotNull(signature.getDigestValue(), mdbot::setValue); + rot.setSignedObjectDigest(mdbot); + + SignatureType st = sedav2Factory.createSignatureType(); + signature.getSigners().forEach(e -> st.getSigner().add(toSignerType(e))); + ifNotNull(signature.getValidator(), e -> st.setValidator(toValidatorType(e))); + st.setReferencedObject(rot); + + return st; + } + + private SignerType toSignerType(Signer signer) { + SignerType st = sedav2Factory.createSignerType(); + ifNotBlank(signer.getFirstName(), st::setFirstName); + ifNotBlank(signer.getBirthName(), st::setBirthName); + ifNotBlank(signer.getFullName(), st::setFullName); + ifNotBlank(signer.getGivenName(), st::setGivenName); + ifNotBlank(signer.getGender(), st::setGender); + ifNotBlank(signer.getCorpName(), st::setCorpname); + ifNotNull(signer.getBirthDate(), e -> st.setBirthDate(SipUtils.toXmlDate(e))); + ifNotNull(signer.getDeathDate(), e -> st.setDeathDate(SipUtils.toXmlDate(e))); + ifNotNull(signer.getBirthPlace(), e -> st.setBirthPlace(toPlaceType(e))); + ifNotNull(signer.getDeathPlace(), e -> st.setDeathPlace(toPlaceType(e))); + ifNotNull(signer.getSigningTime(), e -> st.setSigningTime(SipUtils.toXmlDateTime(e))); + + st.getNationality().addAll(signer.getNationalities()); + st.getIdentifier().addAll(signer.getIdentifiers()); + signer.getFunctions().forEach(e -> st.getFunction().add(toTextType(e))); + signer.getActivities().forEach(e -> st.getActivity().add(toTextType(e))); + signer.getPositions().forEach(e -> st.getPosition().add(toTextType(e))); + signer.getRoles().forEach(e -> st.getRole().add(toTextType(e))); + signer.getMandates().forEach(e -> st.getMandate().add(toTextType(e))); + return st; + } + + private ValidatorType toValidatorType(Validator validator) { + ValidatorType vt = sedav2Factory.createValidatorType(); + ifNotBlank(validator.getFirstName(), vt::setFirstName); + ifNotBlank(validator.getBirthName(), vt::setBirthName); + ifNotBlank(validator.getFullName(), vt::setFullName); + ifNotBlank(validator.getGivenName(), vt::setGivenName); + ifNotBlank(validator.getGender(), vt::setGender); + ifNotBlank(validator.getCorpName(), vt::setCorpname); + ifNotNull(validator.getBirthDate(), e -> vt.setBirthDate(SipUtils.toXmlDate(e))); + ifNotNull(validator.getDeathDate(), e -> vt.setDeathDate(SipUtils.toXmlDate(e))); + ifNotNull(validator.getBirthPlace(), e -> vt.setBirthPlace(toPlaceType(e))); + ifNotNull(validator.getDeathPlace(), e -> vt.setDeathPlace(toPlaceType(e))); + ifNotNull(validator.getValidationTime(), e -> vt.setValidationTime(SipUtils.toXmlDateTime(e))); + + vt.getNationality().addAll(validator.getNationalities()); + vt.getIdentifier().addAll(validator.getIdentifiers()); + validator.getFunctions().forEach(e -> vt.getFunction().add(toTextType(e))); + validator.getActivities().forEach(e -> vt.getActivity().add(toTextType(e))); + validator.getPositions().forEach(e -> vt.getPosition().add(toTextType(e))); + validator.getRoles().forEach(e -> vt.getRole().add(toTextType(e))); + validator.getMandates().forEach(e -> vt.getMandate().add(toTextType(e))); + return vt; + } + + private BirthOrDeathPlaceType toPlaceType(Place place) { + BirthOrDeathPlaceType bodpt = sedav2Factory.createBirthOrDeathPlaceType(); + ifNotBlank(place.getAddress(), bodpt::setAddress); + ifNotBlank(place.getCity(), bodpt::setCity); + ifNotBlank(place.getCountry(), bodpt::setCountry); + ifNotBlank(place.getGeogName(), bodpt::setGeogname); + ifNotBlank(place.getPostalCode(), bodpt::setPostalCode); + ifNotBlank(place.getRegion(), bodpt::setRegion); + return bodpt; + } + + private CodeListVersionsType toCodeListVersionsType(CodeListVersions code) { + CodeListVersionsType clvt = sedav2Factory.createCodeListVersionsType(); + clvt.setId(code.getId()); + + if (isStrict) { + if (code.getSignatureStatusCodeListVersion() != null) { + throw new SipException("SEDA 2.1 does not support SignatureStatusCodeListVersion"); + } + if (code.getFileEncodingCodeListVersion() != null) { + throw new SipException("SEDA 2.1 does not support FileEncodingCodeListVersion"); + } } - private SignatureMessageType toSignatureMessageType(ArchiveTransfer transfer) { - SignatureMessageType st = sedav2Factory.createSignatureMessageType(); - ifNotNull(transfer.getSignature(), e -> st.getAny().add(toNode(new Element("Format", e)))); - transfer.getSignatureElements().forEach(e -> st.getAny().add(toNode(e))); - return st; + ifNotBlank( + code.getAuthorizationReasonCodeListVersion(), + e -> clvt.setAuthorizationReasonCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getFileFormatCodeListVersion(), e -> clvt.setFileFormatCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getMessageDigestAlgorithmCodeListVersion(), + e -> clvt.setMessageDigestAlgorithmCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getRelationshipCodeListVersion(), + e -> clvt.setRelationshipCodeListVersion(toCodeType(e))); + ifNotBlank(code.getReplyCodeListVersion(), e -> clvt.setReplyCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getMimeTypeCodeListVersion(), e -> clvt.setMimeTypeCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getEncodingCodeListVersion(), e -> clvt.setEncodingCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getCompressionAlgorithmCodeListVersion(), + e -> clvt.setCompressionAlgorithmCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getDataObjectVersionCodeListVersion(), + e -> clvt.setDataObjectVersionCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getStorageRuleCodeListVersion(), + e -> clvt.setStorageRuleCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getAppraisalRuleCodeListVersion(), + e -> clvt.setAppraisalRuleCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getAccessRuleCodeListVersion(), e -> clvt.setAccessRuleCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getDisseminationRuleCodeListVersion(), + e -> clvt.setDisseminationRuleCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getReuseRuleCodeListVersion(), e -> clvt.setReuseRuleCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getClassificationRuleCodeListVersion(), + e -> clvt.setClassificationRuleCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getAcquisitionInformationCodeListVersion(), + e -> clvt.setAcquisitionInformationCodeListVersion(toCodeType(e))); + + return clvt; + } + + private LevelType toLevelType(String levelType) { + try { + return LevelType.fromValue(levelType); + } catch (IllegalArgumentException iae) { + throw new SipException("Seda 2.1 does not support the level type: " + levelType, iae); } - - private TextType toTextType(String text) { - TextType tt = sedav2Factory.createTextType(); - tt.setValue(text); - return tt; + } + + private LegalStatusType toLegalStatus(String legalStatusType) { + try { + return LegalStatusType.fromValue(legalStatusType); + } catch (IllegalArgumentException iae) { + throw new SipException( + "Seda 2.1 does not support the legal status : " + legalStatusType, iae); } - - private TextType toTextType(Text text) { - TextType tt = sedav2Factory.createTextType(); - tt.setValue(text.getMessage()); - tt.setLang(text.getLang()); - return tt; + } + + private CodeType toCodeType(String codeType) { + CodeType ct = sedav2Factory.createCodeType(); + ct.setValue(codeType); + return ct; + } + + private OrganizationWithIdType toOrganizationWithIdType(Agency agency) { + OrganizationWithIdType ot = sedav2Factory.createOrganizationWithIdType(); + ot.setIdentifier(toIdentifierType(agency.getIdentifier())); + if (StringUtils.isNotBlank(agency.getName())) { + OrganizationDescriptiveMetadataType odmt = + sedav2Factory.createOrganizationDescriptiveMetadataType(); + + ifNotNull(agency.getName(), e -> odmt.getAny().add(toNode(new Element("Name", e)))); + agency.getElements().forEach(e -> odmt.getAny().add(toNode(e))); + ot.setOrganizationDescriptiveMetadata(odmt); } + return ot; + } + + private IdentifierType toIdentifierType(String identifier) { + IdentifierType it = sedav2Factory.createIdentifierType(); + it.setValue(identifier); + return it; + } + + private SignatureMessageType toSignatureMessageType(ArchiveTransfer transfer) { + SignatureMessageType st = sedav2Factory.createSignatureMessageType(); + ifNotNull(transfer.getSignature(), e -> st.getAny().add(toNode(new Element("Format", e)))); + transfer.getSignatureElements().forEach(e -> st.getAny().add(toNode(e))); + return st; + } + + private TextType toTextType(String text) { + TextType tt = sedav2Factory.createTextType(); + tt.setValue(text); + return tt; + } + + private TextType toTextType(Text text) { + TextType tt = sedav2Factory.createTextType(); + tt.setValue(text.getMessage()); + tt.setLang(text.getLang()); + return tt; + } + + private KeywordsType toKeywordType(Tag tag) { + KeywordsType kt = sedav2Factory.createKeywordsType(); + kt.setKeywordReference(toIdentifierType(tag.key())); + kt.setKeywordContent(toTextType(tag.value())); + return kt; + } + + private String incAndGetCounter() { + return "ID" + idCounter.incrementAndGet(); + } + + private class ZipTask implements Callable { + + private final Path binaryPath; + private final boolean removePath; + private final BinaryDataObjectType bdot; + private final boolean identifyFileFormat; - private KeywordsType toKeywordType(Tag tag) { - KeywordsType kt = sedav2Factory.createKeywordsType(); - kt.setKeywordReference(toIdentifierType(tag.getKey())); - kt.setKeywordContent(toTextType(tag.getValue())); - return kt; + /** + * Instantiates a new Zip task. + * + * @param binaryPath the binary path + * @param bdot the bdot + */ + public ZipTask( + Path binaryPath, + boolean removePath, + boolean identifyFileFormat, + BinaryDataObjectType bdot) { + this.binaryPath = binaryPath; + this.removePath = removePath; + this.identifyFileFormat = identifyFileFormat; + this.bdot = bdot; } - private String incAndGetCounter() { - return "ID" + idCounter.incrementAndGet(); - } + private Path zip(Path binaryPath, String entryName) throws IOException { - private class ZipTask implements Callable { - - private final Path binaryPath; - private final boolean removePath; - private final BinaryDataObjectType bdot; - private final boolean identifyFileFormat; - - /** - * Instantiates a new Zip task. - * - * @param binaryPath the binary path - * @param bdot the bdot - */ - public ZipTask(Path binaryPath, boolean removePath, boolean identifyFileFormat, BinaryDataObjectType bdot) { - this.binaryPath = binaryPath; - this.removePath = removePath; - this.identifyFileFormat=identifyFileFormat; - this.bdot = bdot; + Path docEntry = zipArchive.getPath("Content"); + if (Files.notExists(docEntry)) { + try { + Files.createDirectories(docEntry); + } catch (FileAlreadyExistsException ex) { + LOGGER.warn("zip: ", ex); + } + } + + Path zipEntry = docEntry.resolve(entryName); + if (Files.notExists(zipEntry)) { + try (OutputStream out = Files.newOutputStream(zipEntry)) { + Files.copy(binaryPath, out); + } catch (FileAlreadyExistsException ex) { + LOGGER.warn("zip: ", ex); } + } - private Path zip(Path binaryPath, String entryName) throws IOException { + return zipEntry; + } - Path docEntry = zipArchive.getPath("Content"); - if (Files.notExists(docEntry)) { - try { - Files.createDirectories(docEntry); - } - catch (FileAlreadyExistsException ex) { - LOGGER.warn("zip: ", ex); - } - } + @Override + public Void call() { + MessageDigestBinaryObjectType mdbot = bdot.getMessageDigest(); + + try { + // Compute Digest + String digest = SipUtils.digestHex(binaryPath, mdbot.getAlgorithm()); + mdbot.setValue(digest); + + // Add binary file to zip + if (zipArchive != null) { + Path zipEntry = + zip( + binaryPath, + digest + + "_" + + Files.getLastModifiedTime(binaryPath).toMillis() + + "_" + + binaryPath.getFileName()); + long size = (long) Files.getAttribute(zipEntry, "zip:size"); + bdot.setSize(BigInteger.valueOf(size)); + bdot.setUri(zipEntry.toString()); + } else { + bdot.setSize(BigInteger.valueOf(Files.size(binaryPath))); + bdot.setUri( + "Content/" + + digest + + "_" + + Files.getLastModifiedTime(binaryPath).toMillis() + + "_" + + binaryPath.getFileName()); + } - Path zipEntry = docEntry.resolve(entryName); - if (Files.notExists(zipEntry)) { - try (OutputStream out = Files.newOutputStream(zipEntry)) { - Files.copy(binaryPath, out); - } - catch (FileAlreadyExistsException ex) { - LOGGER.warn("zip: ", ex); - } - } + FormatIdentificationType fit = bdot.getFormatIdentification(); + if (fit == null || StringUtils.isBlank(fit.getFormatId())) { + processFileFormatIdentification(); + } - return zipEntry; + if (removePath) Files.delete(binaryPath); + } catch (Exception ex) { + try { + if (removePath) Files.deleteIfExists(binaryPath); + } catch (IOException ioex) { + // Ignore } + throw new SipException("Fail to complete ZipTask for " + binaryPath, ex); + } - @Override - public Void call() { - MessageDigestBinaryObjectType mdbot = bdot.getMessageDigest(); - - try { - // Compute Digest - String digest = SipUtils.digestHex(binaryPath, mdbot.getAlgorithm()); - mdbot.setValue(digest); - - // Add binary file to zip - if (zipArchive != null) { - Path zipEntry = zip(binaryPath, digest + "_" + Files.getLastModifiedTime(binaryPath).toMillis() + "_" + binaryPath.getFileName()); - long size = (long) Files.getAttribute(zipEntry, "zip:size"); - bdot.setSize(BigInteger.valueOf(size)); - bdot.setUri(zipEntry.toString()); - } else { - bdot.setSize(BigInteger.valueOf(Files.size(binaryPath))); - bdot.setUri("Content/" + digest + "_" + Files.getLastModifiedTime(binaryPath).toMillis() + "_" + binaryPath.getFileName()); - } - - FormatIdentificationType fit = bdot.getFormatIdentification(); - if (fit == null || StringUtils.isBlank(fit.getFormatId())) { - processFileFormatIdentification(); - } - - if (removePath) Files.delete(binaryPath); - } - catch (Exception ex) { - try { - if (removePath) Files.deleteIfExists(binaryPath); - } - catch (IOException ioex) { - // Ignore - } - throw new SipException("Fail to complete ZipTask for " + binaryPath, ex); - } + // Void + return null; + } - // Void - return null; + private void processFileFormatIdentification() { + if (identifyFileFormat) { + // Note. The Signature Identifier does not fully support NIO2 (i.e. does not work with + // jimfs) + String ext = FilenameUtils.getExtension(binaryPath.getFileName().toString()); + List results = DroidUtils.matchBinarySignatures(binaryPath, ext); + if (results.isEmpty()) { + bdot.setFormatIdentification(toFormatIdentificationType("Unknown", null, null)); + } else { + IdentificationResult r = results.get(0); + String name = + StringUtils.isAllBlank(r.getName(), r.getVersion()) + ? null + : StringUtils.trim(r.getName() + " " + r.getVersion()); + String mimeType = StringUtils.isBlank(r.getMimeType()) ? null : r.getMimeType(); + bdot.setFormatIdentification(toFormatIdentificationType(r.getPuid(), name, mimeType)); } - private void processFileFormatIdentification() { - if (identifyFileFormat) { - // Note. The Signature Identifier does not fully support NIO2 (ie. does not work with jimfs) - String ext = FilenameUtils.getExtension(binaryPath.getFileName().toString()); - List results = DroidUtils.matchBinarySignatures(binaryPath, ext); - if (results.isEmpty()) { - bdot.setFormatIdentification(toFormatIdentificationType("Unknown", null, null)); - } else { - IdentificationResult r = results.get(0); - String name = StringUtils.isAllBlank(r.getName(), r.getVersion()) ? null : StringUtils.trim(r.getName() + " " + r.getVersion()); - String mimeType = StringUtils.isBlank(r.getMimeType()) ? null : r.getMimeType(); - bdot.setFormatIdentification(toFormatIdentificationType(r.getPuid(), name, mimeType)); - } - - } else { - bdot.setFormatIdentification(new FormatIdentificationType()); - } - } + } else { + bdot.setFormatIdentification(new FormatIdentificationType()); + } } - + } } diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav22Adapter.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav22Adapter.java index ff34661..b98d389 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav22Adapter.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav22Adapter.java @@ -19,7 +19,9 @@ package fr.xelians.sipg.service.sedav2; +import fr.gouv.culture.archivesdefrance.seda.v2.ArchiveDeliveryRequestReplyType; import fr.gouv.culture.archivesdefrance.seda.v2.ArchiveTransferType; +import fr.xelians.sipg.model.ArchiveDeliveryRequestReply; import fr.xelians.sipg.model.ArchiveTransfer; import fr.xelians.sipg.utils.ByteArrayInOutStream; import fr.xelians.sipg.utils.SipException; @@ -28,16 +30,6 @@ import jakarta.xml.bind.JAXBException; import jakarta.xml.bind.Marshaller; import jakarta.xml.bind.util.JAXBSource; -import org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.xml.sax.SAXException; - -import javax.xml.transform.Source; -import javax.xml.transform.stream.StreamSource; -import javax.xml.validation.Schema; -import javax.xml.validation.SchemaFactory; -import javax.xml.validation.Validator; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; @@ -45,109 +37,163 @@ import java.nio.file.Files; import java.nio.file.Path; import java.util.concurrent.ExecutionException; +import javax.xml.transform.Source; +import javax.xml.transform.stream.StreamSource; +import javax.xml.validation.Schema; +import javax.xml.validation.SchemaFactory; +import javax.xml.validation.Validator; +import org.glassfish.jaxb.runtime.marshaller.NamespacePrefixMapper; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.xml.sax.SAXException; public class Sedav22Adapter implements Sedav2Adapter { - private static final String HTTP_WWW_W3_ORG_XML_XML_SCHEMA_V1_1 = "http://www.w3.org/XML/XMLSchema/v1.1"; - public static final String HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL = "http://apache.org/xml/features/disallow-doctype-decl"; + private static final String HTTP_WWW_W3_ORG_XML_XML_SCHEMA_V1_1 = + "http://www.w3.org/XML/XMLSchema/v1.1"; + public static final String HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL = + "http://apache.org/xml/features/disallow-doctype-decl"; - private static final Logger LOGGER = LoggerFactory.getLogger(Sedav22Adapter.class); + private static final Logger LOGGER = LoggerFactory.getLogger(Sedav22Adapter.class); - public static final Sedav22Adapter INSTANCE = new Sedav22Adapter() ; + public static final Sedav22Adapter INSTANCE = new Sedav22Adapter(); - private static final JAXBContext sedaContext; - private static final Schema sedaSchema; + private static final JAXBContext sedaContext; + private static final Schema sedaSchema; - private static final NamespacePrefixMapper namespaceMapper = new NamespacePrefixMapper() { - public String getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix) { - return !requirePrefix && "fr:gouv:culture:archivesdefrance:seda:v2".equals(namespaceUri) ? "" : "ns"; - } - }; - - static { - // Provide flattened schema in resource - try (InputStream is1 = SipUtils.resourceAsStream("seda-vitam-2.2-full.xsd"); InputStream is2 = SipUtils.resourceAsStream("xml.xsd"); InputStream is3 = SipUtils.resourceAsStream("xlink.xsd")) { - SchemaFactory sf = SchemaFactory.newInstance(HTTP_WWW_W3_ORG_XML_XML_SCHEMA_V1_1); - sf.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); // Avoid XXE - sf.setResourceResolver(new Sedav2Resolver(is2, is3)); - sedaSchema = sf.newSchema(new StreamSource(is1)); - sedaContext = JAXBContext.newInstance(fr.gouv.culture.archivesdefrance.seda.v2.ObjectFactory.class); - } catch (IOException | JAXBException | SAXException ex) { - throw new SipException("Unable to initialize XSD Schemas, JAXBContext and Marshaller", ex); + private static final NamespacePrefixMapper namespaceMapper = + new NamespacePrefixMapper() { + public String getPreferredPrefix( + String namespaceUri, String suggestion, boolean requirePrefix) { + return !requirePrefix && "fr:gouv:culture:archivesdefrance:seda:v2".equals(namespaceUri) + ? "" + : "ns"; } + }; + + static { + // Provide flattened schema in resource + try (InputStream is1 = SipUtils.resourceAsStream("seda-vitam-2.2-full.xsd"); + InputStream is2 = SipUtils.resourceAsStream("xml.xsd"); + InputStream is3 = SipUtils.resourceAsStream("xlink.xsd")) { + SchemaFactory sf = SchemaFactory.newInstance(HTTP_WWW_W3_ORG_XML_XML_SCHEMA_V1_1); + sf.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); // Avoid XXE + sf.setResourceResolver(new Sedav2Resolver(is2, is3)); + sedaSchema = sf.newSchema(new StreamSource(is1)); + sedaContext = + JAXBContext.newInstance(fr.gouv.culture.archivesdefrance.seda.v2.ObjectFactory.class); + } catch (IOException | JAXBException | SAXException ex) { + throw new SipException("Unable to initialize XSD Schemas, JAXBContext and Marshaller", ex); } - - private Sedav22Adapter() { + } + + private Sedav22Adapter() {} + + @Override + public void write( + ArchiveTransfer transfer, Validator validator, Path zipPath, Sedav2Config config) { + + try (FileSystem zipArchive = SipUtils.newZipFileSystem(zipPath, config.useMemory())) { + ArchiveTransferType transferType = + Sedav22Converter.convertToArchiveTransferType(transfer, zipArchive, config); + doWrite(validator, config, zipArchive, transferType); + } catch (IOException + | JAXBException + | SAXException + | ExecutionException + | InterruptedException ex) { + Thread.currentThread().interrupt(); + throw new SipException("Failed to write archive to " + zipPath, ex); } - - @Override - public void write(ArchiveTransfer archive, Validator validator, Path zipPath, Sedav2Config config) { - - try (FileSystem zipArchive = SipUtils.newZipFileSystem(zipPath, config.useMemory())) { - ArchiveTransferType att = Sedav22Converter.convert(archive, zipArchive, config); - final Path zipEntryPath = zipArchive.getPath("manifest.xml"); - try (OutputStream os = Files.newOutputStream(zipEntryPath)) { - - // Set External Validator - if (validator != null) { - validator.validate(new JAXBSource(sedaContext, att)); - } - - Marshaller sedaMarshaller = sedaContext.createMarshaller(); - sedaMarshaller.setSchema(config.isValidate() ? sedaSchema : null); - sedaMarshaller.setProperty("org.glassfish.jaxb.namespacePrefixMapper", namespaceMapper); - sedaMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, false); - - if (LOGGER.isDebugEnabled()) { - sedaMarshaller.setEventHandler(new Sedav2EventHandler()); - sedaMarshaller.setListener(new Sedav2Listener()); - } - - // Marshall & prettyPrint - if (config.isFormat()) { - // JAXB_FORMATTED_OUTPUT is buggy and does not format XML with DOM nodes. Hence, this ugly hack... - ByteArrayInOutStream baios = new ByteArrayInOutStream(1024); - sedaMarshaller.marshal(att, baios); - SipUtils.formatXml(baios.getInputStream(), os, config.getIndent()); - } else { - sedaMarshaller.marshal(att, os); - } - } - } catch (IOException | JAXBException | SAXException | ExecutionException | - InterruptedException ex) { - Thread.currentThread().interrupt(); - throw new SipException("Failed to write archive to " + zipPath, ex); - } + } + + @Override + public void write( + ArchiveDeliveryRequestReply deliveryRequestReply, + Validator validator, + Path zipPath, + Sedav2Config config) { + + try (FileSystem zipArchive = SipUtils.newZipFileSystem(zipPath, config.useMemory())) { + ArchiveDeliveryRequestReplyType deliveryRequestReplyType = + Sedav22Converter.convertToArchiveDeliveryRequestReplyType( + deliveryRequestReply, zipArchive, config); + doWrite(validator, config, zipArchive, deliveryRequestReplyType); + } catch (IOException + | JAXBException + | SAXException + | ExecutionException + | InterruptedException ex) { + Thread.currentThread().interrupt(); + throw new SipException("Failed to write archive to " + zipPath, ex); } - - @Override - public void validate(ArchiveTransfer archive, Validator validator, Sedav2Config config) { - try { - ArchiveTransferType att = Sedav22Converter.convert(archive, config); - JAXBSource source = new JAXBSource(sedaContext, att); - - Validator sedaValidator = sedaSchema.newValidator(); - sedaValidator.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); - sedaValidator.validate(source); - - if (validator != null) { - validator.validate(source); - } - } catch (SAXException | IOException | ExecutionException | InterruptedException | - JAXBException ex) { - Thread.currentThread().interrupt(); - throw new SipException("Unable to validate archive", ex); - } + } + + private static void doWrite( + Validator validator, Sedav2Config config, FileSystem zipArchive, Object content) + throws IOException, SAXException, JAXBException { + final Path zipEntryPath = zipArchive.getPath("manifest.xml"); + try (OutputStream os = Files.newOutputStream(zipEntryPath)) { + + // Set External Validator + if (validator != null) { + validator.validate(new JAXBSource(sedaContext, content)); + } + + Marshaller sedaMarshaller = sedaContext.createMarshaller(); + sedaMarshaller.setSchema(config.validate() ? sedaSchema : null); + sedaMarshaller.setProperty("org.glassfish.jaxb.namespacePrefixMapper", namespaceMapper); + sedaMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, false); + + if (LOGGER.isDebugEnabled()) { + sedaMarshaller.setEventHandler(new Sedav2EventHandler()); + sedaMarshaller.setListener(new Sedav2Listener()); + } + + // Marshall & prettyPrint + if (config.format()) { + // JAXB_FORMATTED_OUTPUT is buggy and does not format XML with DOM nodes. Hence, this ugly + // hack... + ByteArrayInOutStream baios = new ByteArrayInOutStream(1024); + sedaMarshaller.marshal(content, baios); + SipUtils.formatXml(baios.getInputStream(), os, config.indent()); + } else { + sedaMarshaller.marshal(content, os); + } } - - @Override - public void validate(Source source, Sedav2Config config) { - try { - Validator sedaValidator = sedaSchema.newValidator(); - sedaValidator.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); - sedaValidator.validate(source); - } catch (SAXException | IOException ex) { - throw new SipException("Unable to validate archive", ex); - } + } + + @Override + public void validate(ArchiveTransfer archive, Validator validator, Sedav2Config config) { + try { + ArchiveTransferType att = Sedav22Converter.convertToArchiveTransferType(archive, config); + JAXBSource source = new JAXBSource(sedaContext, att); + + Validator sedaValidator = sedaSchema.newValidator(); + sedaValidator.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); + sedaValidator.validate(source); + + if (validator != null) { + validator.validate(source); + } + } catch (SAXException + | IOException + | ExecutionException + | InterruptedException + | JAXBException ex) { + Thread.currentThread().interrupt(); + throw new SipException("Unable to validate archive", ex); + } + } + + @Override + public void validate(Source source, Sedav2Config config) { + try { + Validator sedaValidator = sedaSchema.newValidator(); + sedaValidator.setFeature(HTTP_APACHE_ORG_XML_FEATURES_DISALLOW_DOCTYPE_DECL, true); + sedaValidator.validate(source); + } catch (SAXException | IOException ex) { + throw new SipException("Unable to validate archive", ex); } + } } diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav22Converter.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav22Converter.java index eb68f01..6aa8776 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav22Converter.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav22Converter.java @@ -37,29 +37,15 @@ */ package fr.xelians.sipg.service.sedav2; +import static fr.xelians.sipg.utils.SipUtils.ifNotBlank; +import static fr.xelians.sipg.utils.SipUtils.ifNotNull; + import fr.gouv.culture.archivesdefrance.seda.v2.*; import fr.xelians.sipg.model.*; import fr.xelians.sipg.utils.DroidUtils; import fr.xelians.sipg.utils.SipException; import fr.xelians.sipg.utils.SipUtils; import jakarta.xml.bind.JAXBElement; -import org.apache.commons.io.FilenameUtils; -import org.apache.commons.lang3.RandomStringUtils; -import org.apache.commons.lang3.StringUtils; -import org.apache.commons.lang3.Validate; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.w3c.dom.Document; -import org.w3c.dom.Node; -import org.xml.sax.InputSource; -import org.xml.sax.SAXException; -import uk.gov.nationalarchives.droid.core.interfaces.IdentificationResult; - -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.namespace.QName; -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; -import javax.xml.parsers.ParserConfigurationException; import java.io.IOException; import java.io.OutputStream; import java.io.StringReader; @@ -76,14 +62,28 @@ import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Supplier; - -import static fr.xelians.sipg.utils.SipUtils.ifNotBlank; -import static fr.xelians.sipg.utils.SipUtils.ifNotNull; +import javax.xml.datatype.XMLGregorianCalendar; +import javax.xml.namespace.QName; +import javax.xml.parsers.DocumentBuilder; +import javax.xml.parsers.DocumentBuilderFactory; +import javax.xml.parsers.ParserConfigurationException; +import org.apache.commons.io.FilenameUtils; +import org.apache.commons.lang3.RandomStringUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Validate; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.w3c.dom.Document; +import org.w3c.dom.Node; +import org.xml.sax.InputSource; +import org.xml.sax.SAXException; +import uk.gov.nationalarchives.droid.core.interfaces.IdentificationResult; /** - * La classe Sedav2Converter contient les informations et fonctions nécessaires à la conversion d'une archive au format - * SEDA v2.1. Cette classe ne peut être instanciée qu'à travers les méthodes statiques convert(...). Note. la - * classe n'est pas thread safe et un nouvel objet est systématiquement créé à chaque conversion. + * La classe Sedav2Converter contient les informations et fonctions nécessaires à la conversion + * d'une archive au format SEDA v2.2. Cette classe ne peut être instanciée qu'à travers les méthodes + * statiques convert(...). Note. La classe n'est pas thread safe et un nouvel objet est + * systématiquement créé à chaque conversion. * * @author Emmanuel Deviller * @see ArchiveTransfer @@ -91,1069 +91,1280 @@ */ /* Note. Annotate id in DataObjectGroupType class with : - class DataObjectGroupType { - ... - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlAttribute(name = "id", required = true) - protected String id; - */ - // TODO Generate id annotation in XML Bindings + class DataObjectGroupType { + ... + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlAttribute(name = "id", required = true) + protected String id; +*/ +// TODO Generate id annotation in XML Bindings class Sedav22Converter { - private static final Logger LOGGER = LoggerFactory.getLogger(Sedav22Converter.class); - private static final String EXT_NS = "fr:gouv:culture:archivesdefrance:seda:v2"; - private final List> tasks = new ArrayList<>(); - private final AtomicInteger idCounter = new AtomicInteger(); - private final ObjectFactory sedav2Factory = new ObjectFactory(); - private final DocumentBuilder documentBuilder; - private final FileSystem zipArchive; - private final boolean isStrict; - private final boolean identifyFileFormat; - - private final HashMap archiveMap = new HashMap<>(); - private final ArrayList postProcessors = new ArrayList<>(); - - private Sedav22Converter(FileSystem zipArchive, Sedav2Config config) { - this.zipArchive = zipArchive; - this.isStrict = config.isStrict(); - this.identifyFileFormat=config.identifyFileFormat(); - - try { - documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); - } - catch (ParserConfigurationException ex) { - throw new SipException("Unable to create DOM document builder", ex); + private static final Logger LOGGER = LoggerFactory.getLogger(Sedav22Converter.class); + private static final String EXT_NS = "fr:gouv:culture:archivesdefrance:seda:v2"; + private final List> tasks = new ArrayList<>(); + private final AtomicInteger idCounter = new AtomicInteger(); + private final ObjectFactory sedav2Factory = new ObjectFactory(); + private final DocumentBuilder documentBuilder; + private final FileSystem zipArchive; + private final boolean isStrict; + private final boolean identifyFileFormat; + + private final HashMap archiveMap = new HashMap<>(); + private final ArrayList postProcessors = new ArrayList<>(); + + private Sedav22Converter(FileSystem zipArchive, Sedav2Config config) { + this.zipArchive = zipArchive; + this.isStrict = config.strict(); + this.identifyFileFormat = config.identifyFileFormat(); + + try { + documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); + } catch (ParserConfigurationException ex) { + throw new SipException("Unable to create DOM document builder", ex); + } + } + + /** + * Convertit une archive en archive SEDA v2.2. Cette fonction permet de s'assurer que la structure + * de l'archive est valide. + * + * @param archiveTransfer l'archive à convertir + * @return l 'archive au format SEDA v2.2 + * @throws ExecutionException the execution exception + * @throws InterruptedException the interrupted exception + */ + public static ArchiveTransferType convertToArchiveTransferType(ArchiveTransfer archiveTransfer) + throws ExecutionException, InterruptedException { + return convertToArchiveTransferType(archiveTransfer, null, Sedav2Config.DEFAULT); + } + + /** + * Convertit une archive en transfert SEDA v2.2. Cette fonction permet de s'assurer que la + * structure de l'archive est valide. + * + * @param archiveTransfer l'archive à convertir + * @param config la configuration utilisée lors de la conversion + * @return l 'archive au format SEDA v2.2 + * @throws ExecutionException the execution exception + * @throws InterruptedException the interrupted exception + */ + static ArchiveTransferType convertToArchiveTransferType( + ArchiveTransfer archiveTransfer, Sedav2Config config) + throws ExecutionException, InterruptedException { + return convertToArchiveTransferType(archiveTransfer, null, config); + } + + /** + * Convertit une archive en transfert SEDA v2.2. L'archive convertie est créée dans le paquet zip + * spécifié par le paramètre zipArchive. + * + * @param archiveTransfer l'archive à convertir + * @param zipArchive le paquet zip de destination + * @return l 'archive au format SEDA v2.2 + * @throws ExecutionException the execution exception + * @throws InterruptedException the interrupted exception + */ + static ArchiveTransferType convertToArchiveTransferType( + ArchiveTransfer archiveTransfer, FileSystem zipArchive) + throws ExecutionException, InterruptedException { + return convertToArchiveTransferType(archiveTransfer, zipArchive, Sedav2Config.DEFAULT); + } + + /** + * Convertit une archive en transfert SEDA v2.2. L'archive convertie est créée dans le paquet zip + * spécifié par le paramètre zipArchive. + * + * @param archiveTransfer l'archive à convertir + * @param zipArchive le paquet zip de destination + * @param config la configuration utilisée lors de la conversion + * @return l 'archive au format SEDA v2.2 + * @throws ExecutionException the execution exception + * @throws InterruptedException the interrupted exception + */ + static ArchiveTransferType convertToArchiveTransferType( + ArchiveTransfer archiveTransfer, FileSystem zipArchive, Sedav2Config config) + throws ExecutionException, InterruptedException { + Validate.notNull(archiveTransfer, SipUtils.NOT_NULL, "archiveTransfer"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + Sedav22Converter converter = new Sedav22Converter(zipArchive, config); + ArchiveTransferType att = converter.toArchiveTransferType(archiveTransfer); + executeAndWait(converter, config); + return att; + } + + /** + * Convertit une archive en delivery SEDA v2.2. L'archive convertie est créée dans le paquet zip + * spécifié par le paramètre zipArchive. + * + * @param archiveDeliveryRequestReply l'archive à convertir + * @param zipArchive le paquet zip de destination + * @param config la configuration utilisée lors de la conversion + * @return l 'archive au format SEDA v2.2 + * @throws ExecutionException the execution exception + * @throws InterruptedException the interrupted exception + */ + static ArchiveDeliveryRequestReplyType convertToArchiveDeliveryRequestReplyType( + ArchiveDeliveryRequestReply archiveDeliveryRequestReply, + FileSystem zipArchive, + Sedav2Config config) + throws ExecutionException, InterruptedException { + Validate.notNull(archiveDeliveryRequestReply, SipUtils.NOT_NULL, "archiveTransfer"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + Sedav22Converter converter = new Sedav22Converter(zipArchive, config); + ArchiveDeliveryRequestReplyType del = + converter.toArchiveDeliveryRequestReplyType(archiveDeliveryRequestReply); + executeAndWait(converter, config); + return del; + } + + private static void executeAndWait(Sedav22Converter converter, Sedav2Config config) + throws ExecutionException, InterruptedException { + if (!converter.tasks.isEmpty()) { + ExecutorService executor = + Executors.newFixedThreadPool(SipUtils.getPoolSize(config.thread())); + try { + List> futures = executor.invokeAll(converter.tasks); + // Join all threads and throw an exception if one task has failed + for (Future future : futures) { + future.get(); } + } finally { + executor.shutdownNow(); + } } - - /** - * Convertit une archive en archive SEDA v2.1. Cette fonction permet de s'assurer que la structure de l'archive est - * valide. - * - * @param archiveTransfer l'archive à convertir - * @return l 'archive au format SEDA v2.1 - * @throws ExecutionException the execution exception - * @throws InterruptedException the interrupted exception - */ - public static ArchiveTransferType convert(ArchiveTransfer archiveTransfer) throws ExecutionException, InterruptedException { - return convert(archiveTransfer, null, Sedav2Config.DEFAULT); + } + + private ArchiveTransferType toArchiveTransferType(ArchiveTransfer transfer) { + ArchiveTransferType att = sedav2Factory.createArchiveTransferType(); + + String mi = + SipUtils.getIfBlank( + transfer.getMessageIdentifier(), RandomStringUtils.randomAlphabetic(32).toLowerCase()); + att.setMessageIdentifier(mi); + + LocalDateTime gcd = SipUtils.getIfNull(transfer.getDate(), LocalDateTime.now()); + att.setDate(SipUtils.toXmlDateTime(gcd)); + + CodeListVersions clv = + SipUtils.getIfNull(transfer.getCodeListVersions(), new CodeListVersions()); + att.setCodeListVersions(toCodeListVersionsType(clv)); + + ifNotNull(transfer.getComment(), e -> att.getComment().add(toTextType(e))); + ifNotNull(transfer.getArchivalAgreement(), e -> att.setArchivalAgreement(toIdentifierType(e))); + ifNotNull( + transfer.getArchivalAgency(), e -> att.setArchivalAgency(toOrganizationWithIdType(e))); + ifNotNull( + transfer.getTransferringAgency(), + e -> att.setTransferringAgency(toOrganizationWithIdType(e))); + + if (StringUtils.isNotBlank(transfer.getSignature()) + || !transfer.getSignatureElements().isEmpty()) { + att.setSignature(toSignatureMessageType(transfer)); } - /** - * Convertit une archive en archive SEDA v2.1. Cette fonction permet de s'assurer que la structure de l'archive est - * valide. - * - * @param archiveTransfer l'archive à convertir - * @param config la configuration utilisée lors de la conversion - * @return l 'archive au format SEDA v2.1 - * @throws ExecutionException the execution exception - * @throws InterruptedException the interrupted exception - */ - static ArchiveTransferType convert(ArchiveTransfer archiveTransfer, Sedav2Config config) throws ExecutionException, InterruptedException { - return convert(archiveTransfer, null, config); + DataObjectPackageType dopt = sedav2Factory.createDataObjectPackageType(); + + DescriptiveMetadataType dmt = sedav2Factory.createDescriptiveMetadataType(); + transfer + .getArchiveUnits() + .forEach(unit -> dmt.getArchiveUnit().add(toArchiveUnitType(unit, dopt))); + dopt.setDescriptiveMetadata(dmt); + + ManagementMetadataType mmt = sedav2Factory.createManagementMetadataType(); + ifNotNull(transfer.getArchivalProfile(), e -> mmt.setArchivalProfile(toIdentifierType(e))); + ifNotNull(transfer.getServiceLevel(), e -> mmt.setServiceLevel(toIdentifierType(e))); + ifNotNull(transfer.getAcquisitionInformation(), mmt::setAcquisitionInformation); + ifNotNull(transfer.getLegalStatus(), e -> mmt.setLegalStatus(toLegalStatus(e))); + ifNotNull( + transfer.getOriginatingAgencyIdentifier(), + e -> mmt.setOriginatingAgencyIdentifier(toIdentifierType(e))); + ifNotNull( + transfer.getSubmissionAgencyIdentifier(), + e -> mmt.setSubmissionAgencyIdentifier(toIdentifierType(e))); + dopt.setManagementMetadata(mmt); + + att.setDataObjectPackage(dopt); + + // 2nd pass + postProcessors.forEach(Runnable::run); + + return att; + } + + private ArchiveDeliveryRequestReplyType toArchiveDeliveryRequestReplyType( + ArchiveDeliveryRequestReply delivery) { + ArchiveDeliveryRequestReplyType del = sedav2Factory.createArchiveDeliveryRequestReplyType(); + + String mi = + SipUtils.getIfBlank( + delivery.getMessageIdentifier(), RandomStringUtils.randomAlphabetic(32).toLowerCase()); + del.setMessageIdentifier(mi); + + LocalDateTime gcd = SipUtils.getIfNull(delivery.getDate(), LocalDateTime.now()); + del.setDate(SipUtils.toXmlDateTime(gcd)); + + CodeListVersions clv = + SipUtils.getIfNull(delivery.getCodeListVersions(), new CodeListVersions()); + del.setCodeListVersions(toCodeListVersionsType(clv)); + + ifNotNull(delivery.getComment(), e -> del.getComment().add(toTextType(e))); + ifNotNull(delivery.getArchivalAgreement(), e -> del.setArchivalAgreement(toIdentifierType(e))); + ifNotNull( + delivery.getArchivalAgency(), e -> del.setArchivalAgency(toOrganizationWithIdType(e))); + + ifNotNull(delivery.getReplyCode(), del::setReplyCode); + ifNotNull( + delivery.getMessageRequestIdentifier(), + e -> del.setMessageRequestIdentifier(toIdentifierType(e))); + ifNotNull(delivery.getUnitIdentifier(), e -> del.getUnitIdentifier().add(toIdentifierType(e))); + ifNotNull(delivery.getRequester(), e -> del.setRequester(toOrganizationWithIdType(e))); + + DataObjectPackageType dopt = sedav2Factory.createDataObjectPackageType(); + + DescriptiveMetadataType dmt = sedav2Factory.createDescriptiveMetadataType(); + delivery + .getArchiveUnits() + .forEach(unit -> dmt.getArchiveUnit().add(toArchiveUnitType(unit, dopt))); + dopt.setDescriptiveMetadata(dmt); + + ManagementMetadataType mmt = sedav2Factory.createManagementMetadataType(); + ifNotNull( + delivery.getOriginatingAgencyIdentifier(), + e -> mmt.setOriginatingAgencyIdentifier(toIdentifierType(e))); + dopt.setManagementMetadata(mmt); + + del.setDataObjectPackage(dopt); + + // 2nd pass + postProcessors.forEach(Runnable::run); + + return del; + } + + private void addPhysicalDataObjectType( + DataObjectGroupType dogt, DataObjectRefType dor, ArchiveUnit unit) { + PhysicalDataObjectType pdot = sedav2Factory.createPhysicalDataObjectType(); + pdot.setId(incAndGetCounter()); + pdot.setPhysicalId(toIdentifierType(unit.getPhysicalId())); + pdot.setDataObjectVersion(unit.getPhysicalVersion()); + + // dor.setDataObjectReferenceId(dogt); + dor.setDataObjectGroupReferenceId(dogt); + dogt.getBinaryDataObjectOrPhysicalDataObject().add(pdot); + } + + private void addBinaryDataObjectTypes( + DataObjectGroupType dogt, DataObjectRefType dor, ArchiveUnit unit) { + int size = dogt.getBinaryDataObjectOrPhysicalDataObject().size(); + + if (unit.getBinaryMasterDataObject() != null) { + addBinaryDataObjectType(dogt, unit.getBinaryMasterDataObject()); } - - /** - * Convertit une archive en archive SEDA v2.1. L'archive convertie est créée dans le paquet zip spécifié par le - * paramètre zipArchive. - * - * @param archiveTransfer l'archive à convertir - * @param zipArchive le paquet zip de destination - * @return l 'archive au format SEDA v2.1 - * @throws ExecutionException the execution exception - * @throws InterruptedException the interrupted exception - */ - static ArchiveTransferType convert(ArchiveTransfer archiveTransfer, FileSystem zipArchive) throws ExecutionException, InterruptedException { - return convert(archiveTransfer, zipArchive, Sedav2Config.DEFAULT); + if (unit.getDisseminationDataObject() != null) { + addBinaryDataObjectType(dogt, unit.getDisseminationDataObject()); } - - /** - * Convertit une archive en archive SEDA v2.1. L'archive convertie est créée dans le paquet zip spécifié par le - * paramètre zipArchive. - * - * @param archiveTransfer l'archive à convertir - * @param zipArchive le paquet zip de destination - * @param config la configuration utilisée lors de la conversion - * @return l 'archive au format SEDA v2.1 - * @throws ExecutionException the execution exception - * @throws InterruptedException the interrupted exception - */ - static ArchiveTransferType convert(ArchiveTransfer archiveTransfer, FileSystem zipArchive, - Sedav2Config config) throws ExecutionException, InterruptedException { - Validate.notNull(archiveTransfer, SipUtils.NOT_NULL, "archiveTransfer"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); - - Sedav22Converter converter = new Sedav22Converter(zipArchive, config); - ArchiveTransferType att = converter.toArchiveTransferType(archiveTransfer); - executeAndWait(converter, config); - return att; + if (unit.getThumbnailDataObject() != null) { + addBinaryDataObjectType(dogt, unit.getThumbnailDataObject()); } - - private static void executeAndWait(Sedav22Converter converter, Sedav2Config config) throws ExecutionException, InterruptedException { - if (!converter.tasks.isEmpty()) { - ExecutorService executor = Executors.newFixedThreadPool(SipUtils.getPoolSize(config.getThread())); - try { - List> futures = executor.invokeAll(converter.tasks); - // Join all threads and throw an exception if one task has failed - for (Future future : futures) { - future.get(); - } - } - finally { - executor.shutdownNow(); - } - } + if (unit.getTextContentDataObject() != null) { + addBinaryDataObjectType(dogt, unit.getTextContentDataObject()); } - private ArchiveTransferType toArchiveTransferType(ArchiveTransfer transfer) { - ArchiveTransferType att = sedav2Factory.createArchiveTransferType(); - - String mi = SipUtils.getIfBlank(transfer.getMessageIdentifier(), RandomStringUtils.randomAlphabetic(32).toLowerCase()); - att.setMessageIdentifier(mi); - - LocalDateTime gcd = SipUtils.getIfNull(transfer.getDate(), LocalDateTime.now()); - att.setDate(SipUtils.toXmlDateTime(gcd)); - - CodeListVersions clv = SipUtils.getIfNull(transfer.getCodeListVersions(), new CodeListVersions()); - att.setCodeListVersions(toCodeListVersionsType(clv)); - - ifNotNull(transfer.getComment(), e -> att.getComment().add(toTextType(e))); - ifNotNull(transfer.getArchivalAgreement(), e -> att.setArchivalAgreement(toIdentifierType(e))); - ifNotNull(transfer.getArchivalAgency(), e -> att.setArchivalAgency(toOrganizationWithIdType(e))); - ifNotNull(transfer.getTransferringAgency(), e -> att.setTransferringAgency(toOrganizationWithIdType(e))); - - if (StringUtils.isNotBlank(transfer.getSignature()) || !transfer.getSignatureElements().isEmpty()) { - att.setSignature(toSignatureMessageType(transfer)); - } - - DataObjectPackageType dopt = sedav2Factory.createDataObjectPackageType(); - - DescriptiveMetadataType dmt = sedav2Factory.createDescriptiveMetadataType(); - transfer.getArchiveUnits().forEach(unit -> dmt.getArchiveUnit().add(toArchiveUnitType(unit, dopt))); - dopt.setDescriptiveMetadata(dmt); - - ManagementMetadataType mmt = sedav2Factory.createManagementMetadataType(); - ifNotNull(transfer.getArchivalProfile(), e -> mmt.setArchivalProfile(toIdentifierType(e))); - ifNotNull(transfer.getServiceLevel(), e -> mmt.setServiceLevel(toIdentifierType(e))); - ifNotNull(transfer.getAcquisitionInformation(), mmt::setAcquisitionInformation); - ifNotNull(transfer.getLegalStatus(), e -> mmt.setLegalStatus(toLegalStatus(e))); - ifNotNull(transfer.getOriginatingAgencyIdentifier(), e -> mmt.setOriginatingAgencyIdentifier(toIdentifierType(e))); - ifNotNull(transfer.getSubmissionAgencyIdentifier(), e -> mmt.setSubmissionAgencyIdentifier(toIdentifierType(e))); - dopt.setManagementMetadata(mmt); - - att.setDataObjectPackage(dopt); - - // 2nd pass - postProcessors.forEach(Runnable::run); - - return att; + if (dogt.getBinaryDataObjectOrPhysicalDataObject().size() != size) { + // dor.setDataObjectReferenceId(dogt); + dor.setDataObjectGroupReferenceId(dogt); } - - private void addPhysicalDataObjectType(DataObjectGroupType dogt, DataObjectRefType dor, ArchiveUnit unit) { - PhysicalDataObjectType pdot = sedav2Factory.createPhysicalDataObjectType(); - pdot.setId(incAndGetCounter()); - pdot.setPhysicalId(toIdentifierType(unit.getPhysicalId())); - pdot.setDataObjectVersion(unit.getPhysicalVersion()); - -// dor.setDataObjectReferenceId(dogt); - dor.setDataObjectGroupReferenceId(dogt); - dogt.getBinaryDataObjectOrPhysicalDataObject().add(pdot); + } + + private void addBinaryDataObjectType(DataObjectGroupType dogt, BinaryDataObject bdo) { + boolean removePath = false; + Path binaryPath = bdo.getBinaryPath(); + if (binaryPath == null) { + Supplier bs = bdo.getBinaryPathSupplier(); + if (bs == null) { + return; + } + binaryPath = bdo.getBinaryPathSupplier().get(); + removePath = true; } - private void addBinaryDataObjectTypes(DataObjectGroupType dogt, DataObjectRefType dor, ArchiveUnit unit) { - int size = dogt.getBinaryDataObjectOrPhysicalDataObject().size(); + MessageDigestBinaryObjectType mdbot = sedav2Factory.createMessageDigestBinaryObjectType(); + mdbot.setAlgorithm(bdo.getDigestAlgorithm()); - if (unit.getBinaryMasterDataObject() != null) { - addBinaryDataObjectType(dogt, unit.getBinaryMasterDataObject()); - } - if (unit.getDisseminationDataObject() != null) { - addBinaryDataObjectType(dogt, unit.getDisseminationDataObject()); - } - if (unit.getThumbnailDataObject() != null) { - addBinaryDataObjectType(dogt, unit.getThumbnailDataObject()); - } - if (unit.getTextContentDataObject() != null) { - addBinaryDataObjectType(dogt, unit.getTextContentDataObject()); - } + BinaryDataObjectType bdot = sedav2Factory.createBinaryDataObjectType(); + bdot.setId(incAndGetCounter()); + bdot.setDataObjectVersion(bdo.getBinaryVersion()); + bdot.setMessageDigest(mdbot); - if (dogt.getBinaryDataObjectOrPhysicalDataObject().size() != size) { -// dor.setDataObjectReferenceId(dogt); - dor.setDataObjectGroupReferenceId(dogt); - } + FormatIdentification fmtId = bdo.getFormatIdentification(); + if (StringUtils.isNotBlank(fmtId.getFormatId())) { + bdot.setFormatIdentification( + toFormatIdentificationType( + fmtId.getFormatId(), fmtId.getFormatName(), fmtId.getMimeType())); } - private void addBinaryDataObjectType(DataObjectGroupType dogt, BinaryDataObject bdo) { - boolean removePath = false; - Path binaryPath = bdo.getBinaryPath(); - if (binaryPath == null) { - Supplier bs = bdo.getBinaryPathSupplier(); - if (bs == null) { - return; - } - binaryPath = bdo.getBinaryPathSupplier().get(); - removePath = true; - } - - MessageDigestBinaryObjectType mdbot = sedav2Factory.createMessageDigestBinaryObjectType(); - mdbot.setAlgorithm(bdo.getDigestAlgorithm()); - - BinaryDataObjectType bdot = sedav2Factory.createBinaryDataObjectType(); - bdot.setId(incAndGetCounter()); - bdot.setDataObjectVersion(bdo.getBinaryVersion()); - bdot.setMessageDigest(mdbot); - - FormatIdentification fmtId = bdo.getFormatIdentification(); - if (StringUtils.isNotBlank(fmtId.getFormatId())) { - bdot.setFormatIdentification(toFormatIdentificationType(fmtId.getFormatId(), fmtId.getFormatName(), fmtId.getMimeType())); - } - - FileInfo fileInfo = bdo.getFileInfo(); - if (fileInfo != null) { - bdot.setFileInfo(toFileInfoType(fileInfo, binaryPath.getFileName().toString())); - } - - dogt.getBinaryDataObjectOrPhysicalDataObject().add(bdot); - tasks.add(new ZipTask(binaryPath, removePath, this.identifyFileFormat, bdot)); + FileInfo fileInfo = bdo.getFileInfo(); + if (fileInfo != null) { + bdot.setFileInfo(toFileInfoType(fileInfo, binaryPath.getFileName().toString())); } - private ArchiveUnitType toArchiveUnitType(ArchiveUnit unit, DataObjectPackageType dopt) { - - ArchiveUnitType aut = sedav2Factory.createArchiveUnitType(); - // if no archive unit id set we use auto inc ids - String id = StringUtils.isNotEmpty(unit.getId()) ? unit.getId() : incAndGetCounter(); - aut.setId(id); - archiveMap.put(unit, aut); - - DataObjectGroupType dogt = sedav2Factory.createDataObjectGroupType(); - dogt.setId(incAndGetCounter()); - - DataObjectRefType dor = sedav2Factory.createDataObjectRefType(); - - // Process Physical - String physicalId = unit.getPhysicalId(); - if (physicalId != null) { - addPhysicalDataObjectType(dogt, dor, unit); - } - - // Process Binary - addBinaryDataObjectTypes(dogt, dor, unit); - - if (dor.getDataObjectGroupReferenceId() != null) { - aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup().add(dor); - } - - if (!dogt.getBinaryDataObjectOrPhysicalDataObject().isEmpty()) { - dopt.getDataObjectGroupOrBinaryDataObjectOrPhysicalDataObject().add(dogt); - } - - // ArchiveUnitProfile - ifNotNull(unit.getArchiveUnitProfile(), e -> aut.setArchiveUnitProfile(toIdentifierType(unit.getArchiveUnitProfile()))); - - // Process Management - ManagementType mt = sedav2Factory.createManagementType(); - - if (unit.getUpdateOperation() != null) { - mt.setUpdateOperation(toUpdateOperationType(unit.getUpdateOperation())); - } - - if (unit.getAccessRules() != null) { - mt.setAccessRule(toAccessRuleType(unit.getAccessRules())); - } - - if (unit.getDisseminationRules() != null) { - mt.setDisseminationRule(toDisseminationRuleType(unit.getDisseminationRules())); - } - - if (unit.getReuseRules() != null) { - mt.setReuseRule(toReuseRuleType(unit.getReuseRules())); - } - - if (unit.getAppraisalRules() != null) { - mt.setAppraisalRule(toAppraisalRuleType(unit.getAppraisalRules())); - } - - if (unit.getStorageRules() != null) { - mt.setStorageRule(toStorageRuleType(unit.getStorageRules())); - } - - if (unit.getClassificationRules() != null) { - mt.setClassificationRule(toClassificationRuleType(unit.getClassificationRules())); - } - - if (unit.getHoldRules() != null) { - mt.setHoldRule(toHoldRuleType(unit.getHoldRules())); - } - - if (mt.getUpdateOperation() != null || mt.getAccessRule() != null || mt.getAppraisalRule() != null || mt.getDisseminationRule() != null || mt.getReuseRule() != null || mt.getStorageRule() != null || mt.getClassificationRule() != null || mt.getLogBook() != null) { - - aut.setManagement(mt); - } - - // Content - DescriptiveMetadataContentType dmct = sedav2Factory.createDescriptiveMetadataContentType(); - - // LevelGroup - ifNotNull(unit.getDescriptionLevel(), e -> dmct.setDescriptionLevel(toLevelType(e))); - - // Title Group - unit.getTitles().forEach(t -> dmct.getTitle().add(toTextType(t))); - - // Identifier Group - unit.getFilePlanPositions().forEach( e -> dmct.getFilePlanPosition().add(e)); - unit.getSystemIds().forEach( e -> dmct.getSystemId().add(e)); - unit.getOriginatingSystemIds().forEach( e -> dmct.getOriginatingSystemId().add(e)); - unit.getOriginatingAgencyArchiveUnitIdentifiers().forEach( e -> dmct.getOriginatingAgencyArchiveUnitIdentifier().add(e)); - unit.getArchivalAgencyArchiveUnitIdentifiers().forEach( e -> dmct.getArchivalAgencyArchiveUnitIdentifier().add(e)); - unit.getTransferringAgencyArchiveUnitIdentifiers().forEach( e -> dmct.getTransferringAgencyArchiveUnitIdentifier().add(e)); - // acceptIfNotNull(unit.getPhysicalId(), e -> dmct.getPhysicalId().add(toTextType(e))); - - if (isStrict && !unit.getDataObjectSystemIds().isEmpty() ) { - throw new SipException("SEDA 2.1 does not support DataObjectSystemId"); - } - - // Description Group - unit.getDescriptions().forEach(d -> dmct.getDescription().add(toTextType(d))); + dogt.getBinaryDataObjectOrPhysicalDataObject().add(bdot); + tasks.add(new ZipTask(binaryPath, removePath, this.identifyFileFormat, bdot)); + } - // CustodialHistory Group - if (!unit.getCustodialItems().isEmpty()) { - CustodialHistoryType cht = sedav2Factory.createCustodialHistoryType(); - unit.getCustodialItems().forEach(e -> cht.getCustodialHistoryItem().add(toCustodialHistoryItemType(e))); - dmct.setCustodialHistory(cht); - } - - // Type Group - ifNotNull(unit.getType(), e -> dmct.setType(toTextType(e))); - ifNotNull(unit.getDocumentType(), e -> dmct.setDocumentType(toTextType(e))); - - // Language Group - unit.getLanguages().forEach(e -> dmct.getLanguage().add(e)); - ifNotNull(unit.getDescriptionLanguage(), dmct::setDescriptionLanguage); - - // Status Group - ifNotNull(unit.getStatus(), dmct::setStatus); + private ArchiveUnitType toArchiveUnitType(ArchiveUnit unit, DataObjectPackageType dopt) { - // Version Group - ifNotNull(unit.getVersion(), dmct::setVersion); + ArchiveUnitType aut = sedav2Factory.createArchiveUnitType(); + // if no archive unit id set we use auto inc ids + String id = StringUtils.isNotEmpty(unit.getId()) ? unit.getId() : incAndGetCounter(); + aut.setId(id); + archiveMap.put(unit, aut); - // Keyword Group - unit.getTags().forEach(tag -> { - if (StringUtils.isBlank(tag.getKey())) { - dmct.getTag().add(tag.getValue()); - } else { - dmct.getKeyword().add(toKeywordType(tag)); - } - }); - - // Coverage Group - // Originating & Submission Agency Group - ifNotNull(unit.getOriginatingAgency(), e -> dmct.setOriginatingAgency(toOrganizationWithIdType(e))); - ifNotNull(unit.getSubmissionAgency(), e -> dmct.setSubmissionAgency(toOrganizationWithIdType(e))); - - // Authorized Agent & Writing Group - unit.getAuthorizedAgents().forEach(agent -> dmct.getAuthorizedAgent().add(toAgentType(agent))); - unit.getWriters().forEach(writer -> dmct.getWriter().add(toAgentType(writer))); - - // Audience Group - unit.getAddressees().forEach(addressee -> dmct.getAddressee().add(toAgentType(addressee))); - unit.getRecipients().forEach(recipient -> dmct.getRecipient().add(toAgentType(recipient))); - unit.getTransmitters().forEach(transmitter -> dmct.getTransmitter().add(toAgentType(transmitter))); - unit.getSenders().forEach(sender -> dmct.getSender().add(toAgentType(sender))); - - // Source Group - ifNotNull(unit.getSource(), dmct::setSource); - - // Relation Group - ifNotNull(unit.getRelation(), ror -> dmct.setRelatedObjectReference(toRelatedObjectReference(ror))); - - // Date Group - ifNotNull(unit.getCreatedDate(), d -> dmct.setCreatedDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getTransactedDate(), d -> dmct.setTransactedDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getAcquiredDate(), d -> dmct.setAcquiredDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getSentDate(), d -> dmct.setSentDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getReceivedDate(), d -> dmct.setReceivedDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getRegisteredDate(), d -> dmct.setRegisteredDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getStartDate(), d -> dmct.setStartDate(SipUtils.toXmlDate(d).toString())); - ifNotNull(unit.getEndDate(), d -> dmct.setEndDate(SipUtils.toXmlDate(d).toString())); - - // Event Group - if (!unit.getLogEvents().isEmpty()) { - LogBookType lbt = sedav2Factory.createLogBookType(); - unit.getLogEvents().forEach(event -> lbt.getEvent().add(toEventType(event))); - mt.setLogBook(lbt); - } + DataObjectGroupType dogt = sedav2Factory.createDataObjectGroupType(); + dogt.setId(incAndGetCounter()); - // Signature Group - unit.getSignatures().forEach(signature -> dmct.getSignature().add(toSignatureType(signature, dogt))); - - // GPS Group - if (unit.getGpsVersionID() != null || unit.getGpsDateStamp() != null || unit.getGpsAltitude() != null || unit.getGpsAltitudeRef() != null || unit.getGpsLatitude() != null || unit.getGpsLatitudeRef() != null || unit.getGpsLongitude() != null || unit.getGpsLongitudeRef() != null) { - - final GpsType gps = new GpsType(); - ifNotNull(unit.getGpsVersionID(), gps::setGpsVersionID); - ifNotNull(unit.getGpsAltitude(), s -> gps.setGpsAltitude(new BigInteger(s))); - ifNotNull(unit.getGpsAltitudeRef(), gps::setGpsAltitudeRef); - ifNotNull(unit.getGpsDateStamp(), gps::setGpsDateStamp); - ifNotNull(unit.getGpsLatitude(), gps::setGpsLatitude); - ifNotNull(unit.getGpsLatitudeRef(), gps::setGpsLatitudeRef); - ifNotNull(unit.getGpsLongitude(), gps::setGpsLongitude); - ifNotNull(unit.getGpsLongitudeRef(), gps::setGpsLongitudeRef); - dmct.setGps(gps); - } + DataObjectRefType dor = sedav2Factory.createDataObjectRefType(); - // Any Metadata - for (Object e : unit.getElements()) { - if (e instanceof String str) { - dmct.getAny().add(toNode(str)); - } else if (e instanceof Element elt) { - dmct.getAny().add(toNode(elt)); - } - } + // Process Physical + String physicalId = unit.getPhysicalId(); + if (physicalId != null) { + addPhysicalDataObjectType(dogt, dor, unit); + } - aut.setContent(dmct); - unit.getArchiveUnits().forEach(u -> aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup().add(toArchiveUnitType(u, dopt))); + // Process Binary + addBinaryDataObjectTypes(dogt, dor, unit); - setArchiveUnitReferences(unit, aut); - return aut; + if (dor.getDataObjectGroupReferenceId() != null) { + aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup().add(dor); } - private void setArchiveUnitReferences(ArchiveUnit unit, ArchiveUnitType aut) { - for (ArchiveUnitRef ref : unit.getReferences()) { - postProcessors.add(() -> { - ArchiveUnit au = ref.getReference(); - ArchiveUnitType reference = archiveMap.get(au); - if (reference == null) { - throw new SipException("The related referenced archive unit does not exist in the sip"); - } - ArchiveUnitType referenceArchiveUnitType = new ArchiveUnitType(); - - referenceArchiveUnitType.setId(incAndGetCounter()); - referenceArchiveUnitType.setArchiveUnitRefId(reference); - aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup().add(referenceArchiveUnitType); - }); - } + if (!dogt.getBinaryDataObjectOrPhysicalDataObject().isEmpty()) { + dopt.getDataObjectGroupOrBinaryDataObjectOrPhysicalDataObject().add(dogt); } - private Node toNode(String fragment) { - return toNode(fragment, documentBuilder); - } + // ArchiveUnitProfile + ifNotNull( + unit.getArchiveUnitProfile(), + e -> aut.setArchiveUnitProfile(toIdentifierType(unit.getArchiveUnitProfile()))); - private Node toNode(String fragment, DocumentBuilder docBuilder) { - try { - Document doc = docBuilder.newDocument(); - org.w3c.dom.Element element = docBuilder.parse(new InputSource(new StringReader(fragment))).getDocumentElement(); - element.setAttribute("xmlns", EXT_NS); - return doc.importNode(element, true); - } - catch (SAXException | IOException ex) { - throw new SipException("Unable to create Node from document builder", ex); - } - } + // Process Management + ManagementType mt = sedav2Factory.createManagementType(); - private Node toNode(Element element) { - return toNode(element, documentBuilder.newDocument()); + if (unit.getUpdateOperation() != null) { + mt.setUpdateOperation(toUpdateOperationType(unit.getUpdateOperation())); } - private Node toNode(Element element, Document doc) { - org.w3c.dom.Element node = doc.createElementNS(EXT_NS, element.getName()); - node.setTextContent(element.getValue()); - element.getAttributes().forEach(node::setAttribute); - element.getElements().forEach(e -> node.appendChild(toNode(e, doc))); - return node; + if (unit.getAccessRules() != null) { + mt.setAccessRule(toAccessRuleType(unit.getAccessRules())); } - private RelatedObjectReferenceType toRelatedObjectReference(RelatedObjectRef relation) { - RelatedObjectReferenceType rort = sedav2Factory.createRelatedObjectReferenceType(); - relation.getPartOfs().forEach(r -> rort.getIsPartOf().add(toDataObjectOrArchiveUnitReferenceType(r))); - relation.getReferences().forEach(r -> rort.getReferences().add(toDataObjectOrArchiveUnitReferenceType(r))); - relation.getReplaces().forEach(r -> rort.getReplaces().add(toDataObjectOrArchiveUnitReferenceType(r))); - relation.getRequires().forEach(r -> rort.getRequires().add(toDataObjectOrArchiveUnitReferenceType(r))); - relation.getVersionOfs().forEach(r -> rort.getIsVersionOf().add(toDataObjectOrArchiveUnitReferenceType(r))); - return rort; + if (unit.getDisseminationRules() != null) { + mt.setDisseminationRule(toDisseminationRuleType(unit.getDisseminationRules())); } - private DataObjectOrArchiveUnitReferenceType toDataObjectOrArchiveUnitReferenceType(RelationRef relationRef) { - DataObjectOrArchiveUnitReferenceType dooaurt = sedav2Factory.createDataObjectOrArchiveUnitReferenceType(); - - if (relationRef instanceof ArchiveUnitRef) { - postProcessors.add(() -> { - ArchiveUnit au = (ArchiveUnit) relationRef.getReference(); - ArchiveUnitType aut = archiveMap.get(au); - if (aut == null) { - throw new SipException("The related referenced archive unit does not exist in the sip"); - } - dooaurt.setArchiveUnitRefId(aut); - }); - } else if (relationRef instanceof DataObjectRef) { - postProcessors.add(() -> { - ArchiveUnit au = (ArchiveUnit) relationRef.getReference(); - ArchiveUnitType aut = archiveMap.get(au); - if (aut == null) { - throw new SipException("The related referenced archive unit does not exist in the sip"); - } - List objs = aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup(); - Optional opt = objs.stream().filter(DataObjectRefType.class::isInstance).map(e -> (DataObjectRefType) e).findFirst(); - dooaurt.setDataObjectReference(opt.orElseThrow(() -> new SipException("The related referenced data object does not exist in this archive"))); - }); - } else if (relationRef instanceof RepositoryArchiveUnitPID) { - dooaurt.setRepositoryArchiveUnitPID((String) relationRef.getReference()); - } else if (relationRef instanceof RepositoryObjectPID) { - dooaurt.setRepositoryObjectPID((String) relationRef.getReference()); - } else if (relationRef instanceof ExternalReference) { - dooaurt.setExternalReference((String) relationRef.getReference()); - } - - return dooaurt; + if (unit.getReuseRules() != null) { + mt.setReuseRule(toReuseRuleType(unit.getReuseRules())); } - private CustodialHistoryItemType toCustodialHistoryItemType(CustodialItem custodialItem) { - CustodialHistoryItemType chit = sedav2Factory.createCustodialHistoryItemType(); - ifNotNull(custodialItem.getValue(), chit::setValue); - ifNotNull(custodialItem.getWhen(), e -> chit.setWhen(SipUtils.toXmlDateTime(e).toString())); - return chit; + if (unit.getAppraisalRules() != null) { + mt.setAppraisalRule(toAppraisalRuleType(unit.getAppraisalRules())); } - private FormatIdentificationType toFormatIdentificationType(String formatId, String formatLitteral, String mimeType) { - FormatIdentificationType fit = sedav2Factory.createFormatIdentificationType(); - ifNotNull(formatId, fit::setFormatId); - ifNotNull(formatLitteral, fit::setFormatLitteral); - ifNotNull(mimeType, fit::setMimeType); - return fit; + if (unit.getStorageRules() != null) { + mt.setStorageRule(toStorageRuleType(unit.getStorageRules())); } - private FileInfoType toFileInfoType(FileInfo fileInfo, String binaryName) { - FileInfoType fit = sedav2Factory.createFileInfoType(); - - fit.setFilename(StringUtils.isBlank(fileInfo.getFilename()) ? binaryName : fileInfo.getFilename()); - ifNotNull(fileInfo.getCreatingApplicationName(), fit::setCreatingApplicationName); - ifNotNull(fileInfo.getCreatingApplicationVersion(), fit::setCreatingApplicationVersion); - ifNotNull(fileInfo.getCreatingOs(), fit::setCreatingOs); - ifNotNull(fileInfo.getCreatingOsVersion(), fit::setCreatingOsVersion); - ifNotNull(fileInfo.getDateCreatedByApplication(), e -> fit.setDateCreatedByApplication(SipUtils.toXmlDateTime(e))); - ifNotNull(fileInfo.getLastModified(), e -> fit.setLastModified(SipUtils.toXmlDateTime(e))); - return fit; + if (unit.getClassificationRules() != null) { + mt.setClassificationRule(toClassificationRuleType(unit.getClassificationRules())); } - private UpdateOperationType toUpdateOperationType(UpdateOperation updateOperation) { - UpdateOperationType uopt = sedav2Factory.createUpdateOperationType(); - if (StringUtils.isNotBlank(updateOperation.getSystemId())) { - uopt.setSystemId(updateOperation.getSystemId()); - } else if (StringUtils.isNotBlank(updateOperation.getMetadataName()) && StringUtils.isNotBlank(updateOperation.getMetadataValue())) { - ArchiveUnitIdentifierKeyType auikt = sedav2Factory.createArchiveUnitIdentifierKeyType(); - auikt.setMetadataName(updateOperation.getMetadataName()); - auikt.setMetadataValue(updateOperation.getMetadataValue()); - uopt.setArchiveUnitIdentifierKey(auikt); - } else { - throw new SipException("UpdateOperation mandates non blank values"); - } - return uopt; + if (unit.getHoldRules() != null) { + mt.setHoldRule(toHoldRuleType(unit.getHoldRules())); } - private AccessRuleType toAccessRuleType(AccessRules accessRule) { - AccessRuleType art = sedav2Factory.createAccessRuleType(); - - for (Rule rule : accessRule.getRules()) { - art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); - if (rule.getStartDate() != null) { - art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); - } - } + if (mt.getUpdateOperation() != null + || mt.getAccessRule() != null + || mt.getAppraisalRule() != null + || mt.getDisseminationRule() != null + || mt.getReuseRule() != null + || mt.getStorageRule() != null + || mt.getClassificationRule() != null + || mt.getLogBook() != null) { - // xsd:choice : you cannot set PreventInheritance and PreventRuleNames - ifNotNull(accessRule.isPreventInheritance(), art::setPreventInheritance); - accessRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); - return art; + aut.setManagement(mt); } - private ClassificationRuleType toClassificationRuleType(ClassificationRules classificationRule) { - ClassificationRuleType art = sedav2Factory.createClassificationRuleType(); - - for (Rule rule : classificationRule.getRules()) { - art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); - if (rule.getStartDate() != null) { - art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); - } - } + // Content + DescriptiveMetadataContentType dmct = sedav2Factory.createDescriptiveMetadataContentType(); + + // LevelGroup + ifNotNull(unit.getDescriptionLevel(), e -> dmct.setDescriptionLevel(toLevelType(e))); + + // Title Group + unit.getTitles().forEach(t -> dmct.getTitle().add(toTextType(t))); + + // Identifier Group + unit.getFilePlanPositions().forEach(e -> dmct.getFilePlanPosition().add(e)); + unit.getSystemIds().forEach(e -> dmct.getSystemId().add(e)); + unit.getOriginatingSystemIds().forEach(e -> dmct.getOriginatingSystemId().add(e)); + unit.getOriginatingAgencyArchiveUnitIdentifiers() + .forEach(e -> dmct.getOriginatingAgencyArchiveUnitIdentifier().add(e)); + unit.getArchivalAgencyArchiveUnitIdentifiers() + .forEach(e -> dmct.getArchivalAgencyArchiveUnitIdentifier().add(e)); + unit.getTransferringAgencyArchiveUnitIdentifiers() + .forEach(e -> dmct.getTransferringAgencyArchiveUnitIdentifier().add(e)); + // acceptIfNotNull(unit.getPhysicalId(), e -> dmct.getPhysicalId().add(toTextType(e))); + + if (isStrict && !unit.getDataObjectSystemIds().isEmpty()) { + throw new SipException("SEDA 2.1 does not support DataObjectSystemId"); + } - // xsd:choice : you cannot set PreventInheritance and PreventRuleNames - ifNotNull(classificationRule.isPreventInheritance(), art::setPreventInheritance); - classificationRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); + // Description Group + unit.getDescriptions().forEach(d -> dmct.getDescription().add(toTextType(d))); - ifNotNull(classificationRule.getClassificationLevel(), art::setClassificationLevel); - ifNotNull(classificationRule.getClassificationOwner(), art::setClassificationOwner); - ifNotNull(classificationRule.getClassificationAudience(), art::setClassificationAudience); - ifNotNull(classificationRule.getClassificationReassessingDate(), s -> art.setClassificationReassessingDate(SipUtils.toXmlDate(s))); - return art; + // CustodialHistory Group + if (!unit.getCustodialItems().isEmpty()) { + CustodialHistoryType cht = sedav2Factory.createCustodialHistoryType(); + unit.getCustodialItems() + .forEach(e -> cht.getCustodialHistoryItem().add(toCustodialHistoryItemType(e))); + dmct.setCustodialHistory(cht); } - // Note the HoldRuleGroup was "unwrapped" in the HoldRuleType in the xsd - private HoldRuleType toHoldRuleType(HoldRules holdRule) { - HoldRuleType art = sedav2Factory.createHoldRuleType(); - - for (HoldRule rule : holdRule.getRules()) { - List> elts = art.getRuleAndStartDateAndHoldEndDate() ; + // Type Group + ifNotNull(unit.getType(), e -> dmct.setType(toTextType(e))); + ifNotNull(unit.getDocumentType(), e -> dmct.setDocumentType(toTextType(e))); - QName qrule = new QName(EXT_NS, "Rule") ; - String name = rule.getName() ; - elts.add(new JAXBElement<>(qrule, String.class, name)); - if (rule.getStartDate() != null) { - QName qstartdate = new QName(EXT_NS,"StartDate") ; - XMLGregorianCalendar startDate = SipUtils.toXmlDate(rule.getStartDate()) ; - elts.add(new JAXBElement<>(qstartdate, XMLGregorianCalendar.class, startDate)); - } - if (rule.getHoldEndDate() != null) { - QName qholdenddate = new QName(EXT_NS,"HoldEndDate") ; - XMLGregorianCalendar startDate = SipUtils.toXmlDate(rule.getHoldEndDate()) ; - elts.add(new JAXBElement<>(qholdenddate, XMLGregorianCalendar.class, startDate)); - } - if (rule.getHoldOwner() != null) { - QName qowner = new QName(EXT_NS,"HoldOwner") ; - String owner = rule.getHoldOwner() ; - elts.add(new JAXBElement<>(qowner, String.class, owner)); - } - if (rule.getHoldReassessingDate() != null) { - QName qreassessingDate = new QName(EXT_NS,"HoldReassessingDate") ; - XMLGregorianCalendar reassessingDate = SipUtils.toXmlDate(rule.getHoldReassessingDate()) ; - elts.add(new JAXBElement<>(qreassessingDate, XMLGregorianCalendar.class, reassessingDate)); - } - if (rule.getHoldReason() != null) { - QName qreason = new QName(EXT_NS,"HoldReason") ; - String reason = rule.getHoldOwner() ; - elts.add(new JAXBElement<>(qreason, String.class, reason)); - } - if (rule.getPreventRearrangement() != null) { - QName qp = new QName(EXT_NS,"PreventRearrangement") ; - Boolean p = rule.getPreventRearrangement() ; - elts.add(new JAXBElement<>(qp, Boolean.class, p)); - } - } + // Language Group + unit.getLanguages().forEach(e -> dmct.getLanguage().add(e)); + ifNotNull(unit.getDescriptionLanguage(), dmct::setDescriptionLanguage); - // xsd:choice : you cannot set PreventInheritance and PreventRuleNames - ifNotNull(holdRule.isPreventInheritance(), art::setPreventInheritance); - holdRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); + // Status Group + ifNotNull(unit.getStatus(), dmct::setStatus); - return art; - } + // Version Group + ifNotNull(unit.getVersion(), dmct::setVersion); - private DisseminationRuleType toDisseminationRuleType(DisseminationRules disseminationRule) { - DisseminationRuleType art = sedav2Factory.createDisseminationRuleType(); + // Keyword Group + unit.getTags() + .forEach( + tag -> { + if (StringUtils.isBlank(tag.key())) { + dmct.getTag().add(tag.value()); + } else { + dmct.getKeyword().add(toKeywordType(tag)); + } + }); - for (Rule rule : disseminationRule.getRules()) { - art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); - if (rule.getStartDate() != null) { - art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); - } - } + // Coverage Group + // Originating & Submission Agency Group + ifNotNull( + unit.getOriginatingAgency(), e -> dmct.setOriginatingAgency(toOrganizationWithIdType(e))); + ifNotNull( + unit.getSubmissionAgency(), e -> dmct.setSubmissionAgency(toOrganizationWithIdType(e))); + + // Authorized Agent & Writing Group + unit.getAuthorizedAgents().forEach(agent -> dmct.getAuthorizedAgent().add(toAgentType(agent))); + unit.getWriters().forEach(writer -> dmct.getWriter().add(toAgentType(writer))); + + // Audience Group + unit.getAddressees().forEach(addressee -> dmct.getAddressee().add(toAgentType(addressee))); + unit.getRecipients().forEach(recipient -> dmct.getRecipient().add(toAgentType(recipient))); + unit.getTransmitters() + .forEach(transmitter -> dmct.getTransmitter().add(toAgentType(transmitter))); + unit.getSenders().forEach(sender -> dmct.getSender().add(toAgentType(sender))); + + // Source Group + ifNotNull(unit.getSource(), dmct::setSource); + + // Relation Group + ifNotNull( + unit.getRelation(), ror -> dmct.setRelatedObjectReference(toRelatedObjectReference(ror))); + + // Date Group + ifNotNull(unit.getCreatedDate(), d -> dmct.setCreatedDate(SipUtils.toXmlDate(d).toString())); + ifNotNull( + unit.getTransactedDate(), d -> dmct.setTransactedDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getAcquiredDate(), d -> dmct.setAcquiredDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getSentDate(), d -> dmct.setSentDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getReceivedDate(), d -> dmct.setReceivedDate(SipUtils.toXmlDate(d).toString())); + ifNotNull( + unit.getRegisteredDate(), d -> dmct.setRegisteredDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getStartDate(), d -> dmct.setStartDate(SipUtils.toXmlDate(d).toString())); + ifNotNull(unit.getEndDate(), d -> dmct.setEndDate(SipUtils.toXmlDate(d).toString())); + + // Event Group + if (!unit.getLogEvents().isEmpty()) { + LogBookType lbt = sedav2Factory.createLogBookType(); + unit.getLogEvents().forEach(event -> lbt.getEvent().add(toEventType(event))); + mt.setLogBook(lbt); + } - // xsd:choice : you cannot set PreventInheritance and PreventRuleNames - ifNotNull(disseminationRule.isPreventInheritance(), art::setPreventInheritance); - disseminationRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); - return art; + // Signature Group + unit.getSignatures() + .forEach(signature -> dmct.getSignature().add(toSignatureType(signature, dogt))); + + // GPS Group + if (unit.getGpsVersionID() != null + || unit.getGpsDateStamp() != null + || unit.getGpsAltitude() != null + || unit.getGpsAltitudeRef() != null + || unit.getGpsLatitude() != null + || unit.getGpsLatitudeRef() != null + || unit.getGpsLongitude() != null + || unit.getGpsLongitudeRef() != null) { + + final GpsType gps = new GpsType(); + ifNotNull(unit.getGpsVersionID(), gps::setGpsVersionID); + ifNotNull(unit.getGpsAltitude(), s -> gps.setGpsAltitude(new BigInteger(s))); + ifNotNull(unit.getGpsAltitudeRef(), gps::setGpsAltitudeRef); + ifNotNull(unit.getGpsDateStamp(), gps::setGpsDateStamp); + ifNotNull(unit.getGpsLatitude(), gps::setGpsLatitude); + ifNotNull(unit.getGpsLatitudeRef(), gps::setGpsLatitudeRef); + ifNotNull(unit.getGpsLongitude(), gps::setGpsLongitude); + ifNotNull(unit.getGpsLongitudeRef(), gps::setGpsLongitudeRef); + dmct.setGps(gps); } - private ReuseRuleType toReuseRuleType(ReuseRules reuseRule) { - ReuseRuleType art = sedav2Factory.createReuseRuleType(); + // Any Metadata + for (Object e : unit.getElements()) { + if (e instanceof String str) { + dmct.getAny().add(toNode(str)); + } else if (e instanceof Element elt) { + dmct.getAny().add(toNode(elt)); + } + } - for (Rule rule : reuseRule.getRules()) { - art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); - if (rule.getStartDate() != null) { - art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + aut.setContent(dmct); + unit.getArchiveUnits() + .forEach( + u -> + aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup() + .add(toArchiveUnitType(u, dopt))); + + setArchiveUnitReferences(unit, aut); + return aut; + } + + private void setArchiveUnitReferences(ArchiveUnit unit, ArchiveUnitType aut) { + for (ArchiveUnitRef ref : unit.getReferences()) { + postProcessors.add( + () -> { + ArchiveUnit au = ref.getReference(); + ArchiveUnitType reference = archiveMap.get(au); + if (reference == null) { + throw new SipException( + "The related referenced archive unit does not exist in the sip"); } - } + ArchiveUnitType referenceArchiveUnitType = new ArchiveUnitType(); - // xsd:choice : you cannot set PreventInheritance and PreventRuleNames - ifNotNull(reuseRule.isPreventInheritance(), art::setPreventInheritance); - reuseRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); - return art; + referenceArchiveUnitType.setId(incAndGetCounter()); + referenceArchiveUnitType.setArchiveUnitRefId(reference); + aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup() + .add(referenceArchiveUnitType); + }); } - - private AppraisalRuleType toAppraisalRuleType(AppraisalRules appraisalRule) { - AppraisalRuleType art = sedav2Factory.createAppraisalRuleType(); - for (Rule rule : appraisalRule.getRules()) { - art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); - if (rule.getStartDate() != null) { - art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + } + + private Node toNode(String fragment) { + return toNode(fragment, documentBuilder); + } + + private Node toNode(String fragment, DocumentBuilder docBuilder) { + try { + Document doc = docBuilder.newDocument(); + org.w3c.dom.Element element = + docBuilder.parse(new InputSource(new StringReader(fragment))).getDocumentElement(); + element.setAttribute("xmlns", EXT_NS); + return doc.importNode(element, true); + } catch (SAXException | IOException ex) { + throw new SipException("Unable to create Node from document builder", ex); + } + } + + private Node toNode(Element element) { + return toNode(element, documentBuilder.newDocument()); + } + + private Node toNode(Element element, Document doc) { + org.w3c.dom.Element node = doc.createElementNS(EXT_NS, element.getName()); + node.setTextContent(element.getValue()); + element.getAttributes().forEach(node::setAttribute); + element.getElements().forEach(e -> node.appendChild(toNode(e, doc))); + return node; + } + + private RelatedObjectReferenceType toRelatedObjectReference(RelatedObjectRef relation) { + RelatedObjectReferenceType rort = sedav2Factory.createRelatedObjectReferenceType(); + relation + .getPartOfs() + .forEach(r -> rort.getIsPartOf().add(toDataObjectOrArchiveUnitReferenceType(r))); + relation + .getReferences() + .forEach(r -> rort.getReferences().add(toDataObjectOrArchiveUnitReferenceType(r))); + relation + .getReplaces() + .forEach(r -> rort.getReplaces().add(toDataObjectOrArchiveUnitReferenceType(r))); + relation + .getRequires() + .forEach(r -> rort.getRequires().add(toDataObjectOrArchiveUnitReferenceType(r))); + relation + .getVersionOfs() + .forEach(r -> rort.getIsVersionOf().add(toDataObjectOrArchiveUnitReferenceType(r))); + return rort; + } + + private DataObjectOrArchiveUnitReferenceType toDataObjectOrArchiveUnitReferenceType( + RelationRef relationRef) { + DataObjectOrArchiveUnitReferenceType dooaurt = + sedav2Factory.createDataObjectOrArchiveUnitReferenceType(); + + if (relationRef instanceof ArchiveUnitRef) { + postProcessors.add( + () -> { + ArchiveUnit au = (ArchiveUnit) relationRef.getReference(); + ArchiveUnitType aut = archiveMap.get(au); + if (aut == null) { + throw new SipException( + "The related referenced archive unit does not exist in the sip"); } - } - - // xsd:choice : you cannot set PreventInheritance and PreventRuleNames - ifNotNull(appraisalRule.isPreventInheritance(), art::setPreventInheritance); - appraisalRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); - - String action = appraisalRule.getFinalAction(); - if ("Keep".equals(action)) { - art.setFinalAction(FinalActionAppraisalCodeType.KEEP); - } else if ("Destroy".equals(action)) { - art.setFinalAction(FinalActionAppraisalCodeType.DESTROY); - } - - if (isStrict) { - if (appraisalRule.getDuration() != null) { - throw new SipException("SEDA 2.1 does not support Duration"); + dooaurt.setArchiveUnitRefId(aut); + }); + } else if (relationRef instanceof DataObjectRef) { + postProcessors.add( + () -> { + ArchiveUnit au = (ArchiveUnit) relationRef.getReference(); + ArchiveUnitType aut = archiveMap.get(au); + if (aut == null) { + throw new SipException( + "The related referenced archive unit does not exist in the sip"); } - } - return art; + List objs = aut.getArchiveUnitOrDataObjectReferenceOrDataObjectGroup(); + Optional opt = + objs.stream() + .filter(DataObjectRefType.class::isInstance) + .map(e -> (DataObjectRefType) e) + .findFirst(); + dooaurt.setDataObjectReference( + opt.orElseThrow( + () -> + new SipException( + "The related referenced data object does not exist in this archive"))); + }); + } else if (relationRef instanceof RepositoryArchiveUnitPID) { + dooaurt.setRepositoryArchiveUnitPID((String) relationRef.getReference()); + } else if (relationRef instanceof RepositoryObjectPID) { + dooaurt.setRepositoryObjectPID((String) relationRef.getReference()); + } else if (relationRef instanceof ExternalReference) { + dooaurt.setExternalReference((String) relationRef.getReference()); } - private StorageRuleType toStorageRuleType(StorageRules storageRule) { - StorageRuleType art = sedav2Factory.createStorageRuleType(); - for (Rule rule : storageRule.getRules()) { - art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); - if (rule.getStartDate() != null) { - art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); - } - } + return dooaurt; + } + + private CustodialHistoryItemType toCustodialHistoryItemType(CustodialItem custodialItem) { + CustodialHistoryItemType chit = sedav2Factory.createCustodialHistoryItemType(); + ifNotNull(custodialItem.getValue(), chit::setValue); + ifNotNull(custodialItem.getWhen(), e -> chit.setWhen(SipUtils.toXmlDateTime(e).toString())); + return chit; + } + + private FormatIdentificationType toFormatIdentificationType( + String formatId, String formatLitteral, String mimeType) { + FormatIdentificationType fit = sedav2Factory.createFormatIdentificationType(); + ifNotNull(formatId, fit::setFormatId); + ifNotNull(formatLitteral, fit::setFormatLitteral); + ifNotNull(mimeType, fit::setMimeType); + return fit; + } + + private FileInfoType toFileInfoType(FileInfo fileInfo, String binaryName) { + FileInfoType fit = sedav2Factory.createFileInfoType(); + + fit.setFilename( + StringUtils.isBlank(fileInfo.getFilename()) ? binaryName : fileInfo.getFilename()); + ifNotNull(fileInfo.getCreatingApplicationName(), fit::setCreatingApplicationName); + ifNotNull(fileInfo.getCreatingApplicationVersion(), fit::setCreatingApplicationVersion); + ifNotNull(fileInfo.getCreatingOs(), fit::setCreatingOs); + ifNotNull(fileInfo.getCreatingOsVersion(), fit::setCreatingOsVersion); + ifNotNull( + fileInfo.getDateCreatedByApplication(), + e -> fit.setDateCreatedByApplication(SipUtils.toXmlDateTime(e))); + ifNotNull(fileInfo.getLastModified(), e -> fit.setLastModified(SipUtils.toXmlDateTime(e))); + return fit; + } + + private UpdateOperationType toUpdateOperationType(UpdateOperation updateOperation) { + UpdateOperationType uopt = sedav2Factory.createUpdateOperationType(); + if (StringUtils.isNotBlank(updateOperation.getSystemId())) { + uopt.setSystemId(updateOperation.getSystemId()); + } else if (StringUtils.isNotBlank(updateOperation.getMetadataName()) + && StringUtils.isNotBlank(updateOperation.getMetadataValue())) { + ArchiveUnitIdentifierKeyType auikt = sedav2Factory.createArchiveUnitIdentifierKeyType(); + auikt.setMetadataName(updateOperation.getMetadataName()); + auikt.setMetadataValue(updateOperation.getMetadataValue()); + uopt.setArchiveUnitIdentifierKey(auikt); + } else { + throw new SipException("UpdateOperation mandates non blank values"); + } + return uopt; + } - // xsd:choice : you cannot set PreventInheritance and PreventRuleNames - ifNotNull(storageRule.isPreventInheritance(), art::setPreventInheritance); - storageRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); - - String action = storageRule.getFinalAction(); - if (action != null) { - switch (action) { - case "Copy" -> art.setFinalAction(FinalActionStorageCodeType.COPY); - case "RestrictAccess" -> art.setFinalAction(FinalActionStorageCodeType.RESTRICT_ACCESS); - case "Transfer" -> art.setFinalAction(FinalActionStorageCodeType.TRANSFER); - default -> throw new SipException(String.format("Unknown final action %s", action)); - } - } + private AccessRuleType toAccessRuleType(AccessRules accessRule) { + AccessRuleType art = sedav2Factory.createAccessRuleType(); - return art; + for (Rule rule : accessRule.getRules()) { + art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); + if (rule.getStartDate() != null) { + art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + } } - private RuleIdType toRuleIdType(String value) { - RuleIdType rit = sedav2Factory.createRuleIdType(); - rit.setValue(value); - return rit; - } + // xsd:choice : you cannot set PreventInheritance and PreventRuleNames + ifNotNull(accessRule.isPreventInheritance(), art::setPreventInheritance); + accessRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); + return art; + } - private EventType toEventType(Event event) { - EventType et = sedav2Factory.createEventType(); - ifNotNull(event.getIdentifier(), et::setEventIdentifier); - ifNotNull(event.getDateTime(), e -> et.setEventDateTime(SipUtils.toXmlDateTime(e).toString())); - ifNotNull(event.getDetail(), e -> et.setEventDetail(toTextType(e))); - ifNotNull(event.getDetailData(), et::setEventDetailData); - ifNotNull(event.getOutcome(), et::setOutcome); - ifNotNull(event.getOutcomeDetail(), et::setOutcomeDetail); - ifNotNull(event.getOutcomeDetailMessage(), et::setOutcomeDetailMessage); - ifNotNull(event.getType(), et::setEventType); - ifNotNull(event.getTypeCode(), et::setEventTypeCode); - return et; - } + private ClassificationRuleType toClassificationRuleType(ClassificationRules classificationRule) { + ClassificationRuleType art = sedav2Factory.createClassificationRuleType(); - private AgentType toAgentType(Agent agent) { - AgentType at = sedav2Factory.createAgentType(); - ifNotBlank(agent.getFirstName(), at::setFirstName); - ifNotBlank(agent.getBirthName(), at::setBirthName); - ifNotBlank(agent.getFullName(), at::setFullName); - ifNotBlank(agent.getGivenName(), at::setGivenName); - ifNotBlank(agent.getGender(), at::setGender); - ifNotBlank(agent.getCorpName(), at::setCorpname); - ifNotNull(agent.getBirthDate(), e -> at.setBirthDate(SipUtils.toXmlDate(e))); - ifNotNull(agent.getDeathDate(), e -> at.setDeathDate(SipUtils.toXmlDate(e))); - ifNotNull(agent.getBirthPlace(), e -> at.setBirthPlace(toPlaceType(e))); - ifNotNull(agent.getDeathPlace(), e -> at.setDeathPlace(toPlaceType(e))); - at.getNationality().addAll(agent.getNationalities()); - at.getIdentifier().addAll(agent.getIdentifiers()); - agent.getFunctions().forEach(e -> at.getFunction().add(toTextType(e))); - agent.getActivities().forEach(e -> at.getActivity().add(toTextType(e))); - agent.getPositions().forEach(e -> at.getPosition().add(toTextType(e))); - agent.getRoles().forEach(e -> at.getRole().add(toTextType(e))); - agent.getMandates().forEach(e -> at.getMandate().add(toTextType(e))); - return at; + for (Rule rule : classificationRule.getRules()) { + art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); + if (rule.getStartDate() != null) { + art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + } } - private SignatureType toSignatureType(Signature signature, DataObjectGroupType dogt) { - ReferencedObjectType rot = sedav2Factory.createReferencedObjectType(); - if (dogt.getBinaryDataObjectOrPhysicalDataObject().isEmpty()) { - throw new SipException("The signed referenced object does not exist in this archive"); - } - rot.setSignedObjectId(dogt); + // xsd:choice : you cannot set PreventInheritance and PreventRuleNames + ifNotNull(classificationRule.isPreventInheritance(), art::setPreventInheritance); + classificationRule + .getPreventRuleNames() + .forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); + + ifNotNull(classificationRule.getClassificationLevel(), art::setClassificationLevel); + ifNotNull(classificationRule.getClassificationOwner(), art::setClassificationOwner); + ifNotNull(classificationRule.getClassificationAudience(), art::setClassificationAudience); + ifNotNull( + classificationRule.getClassificationReassessingDate(), + s -> art.setClassificationReassessingDate(SipUtils.toXmlDate(s))); + return art; + } + + // Note the HoldRuleGroup was "unwrapped" in the HoldRuleType in the xsd + private HoldRuleType toHoldRuleType(HoldRules holdRule) { + HoldRuleType art = sedav2Factory.createHoldRuleType(); + + for (HoldRule rule : holdRule.getRules()) { + List> elts = art.getRuleAndStartDateAndHoldEndDate(); + + QName qrule = new QName(EXT_NS, "Rule"); + String name = rule.getName(); + elts.add(new JAXBElement<>(qrule, String.class, name)); + if (rule.getStartDate() != null) { + QName qstartdate = new QName(EXT_NS, "StartDate"); + XMLGregorianCalendar startDate = SipUtils.toXmlDate(rule.getStartDate()); + elts.add(new JAXBElement<>(qstartdate, XMLGregorianCalendar.class, startDate)); + } + if (rule.getHoldEndDate() != null) { + QName qholdenddate = new QName(EXT_NS, "HoldEndDate"); + XMLGregorianCalendar startDate = SipUtils.toXmlDate(rule.getHoldEndDate()); + elts.add(new JAXBElement<>(qholdenddate, XMLGregorianCalendar.class, startDate)); + } + if (rule.getHoldOwner() != null) { + QName qowner = new QName(EXT_NS, "HoldOwner"); + String owner = rule.getHoldOwner(); + elts.add(new JAXBElement<>(qowner, String.class, owner)); + } + if (rule.getHoldReassessingDate() != null) { + QName qreassessingDate = new QName(EXT_NS, "HoldReassessingDate"); + XMLGregorianCalendar reassessingDate = SipUtils.toXmlDate(rule.getHoldReassessingDate()); + elts.add(new JAXBElement<>(qreassessingDate, XMLGregorianCalendar.class, reassessingDate)); + } + if (rule.getHoldReason() != null) { + QName qreason = new QName(EXT_NS, "HoldReason"); + String reason = rule.getHoldOwner(); + elts.add(new JAXBElement<>(qreason, String.class, reason)); + } + if (rule.getPreventRearrangement() != null) { + QName qp = new QName(EXT_NS, "PreventRearrangement"); + Boolean p = rule.getPreventRearrangement(); + elts.add(new JAXBElement<>(qp, Boolean.class, p)); + } + } - MessageDigestBinaryObjectType mdbot = sedav2Factory.createMessageDigestBinaryObjectType(); - mdbot.setAlgorithm(signature.getDigestAlgorithm()); - ifNotNull(signature.getDigestValue(), mdbot::setValue); - rot.setSignedObjectDigest(mdbot); + // xsd:choice : you cannot set PreventInheritance and PreventRuleNames + ifNotNull(holdRule.isPreventInheritance(), art::setPreventInheritance); + holdRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); - SignatureType st = sedav2Factory.createSignatureType(); - signature.getSigners().forEach(e -> st.getSigner().add(toSignerType(e))); - ifNotNull(signature.getValidator(), e -> st.setValidator(toValidatorType(e))); - st.setReferencedObject(rot); + return art; + } - return st; - } + private DisseminationRuleType toDisseminationRuleType(DisseminationRules disseminationRule) { + DisseminationRuleType art = sedav2Factory.createDisseminationRuleType(); - private SignerType toSignerType(Signer signer) { - SignerType st = sedav2Factory.createSignerType(); - ifNotBlank(signer.getFirstName(), st::setFirstName); - ifNotBlank(signer.getBirthName(), st::setBirthName); - ifNotBlank(signer.getFullName(), st::setFullName); - ifNotBlank(signer.getGivenName(), st::setGivenName); - ifNotBlank(signer.getGender(), st::setGender); - ifNotBlank(signer.getCorpName(), st::setCorpname); - ifNotNull(signer.getBirthDate(), e -> st.setBirthDate(SipUtils.toXmlDate(e))); - ifNotNull(signer.getDeathDate(), e -> st.setDeathDate(SipUtils.toXmlDate(e))); - ifNotNull(signer.getBirthPlace(), e -> st.setBirthPlace(toPlaceType(e))); - ifNotNull(signer.getDeathPlace(), e -> st.setDeathPlace(toPlaceType(e))); - ifNotNull(signer.getSigningTime(), e -> st.setSigningTime(SipUtils.toXmlDateTime(e))); - - st.getNationality().addAll(signer.getNationalities()); - st.getIdentifier().addAll(signer.getIdentifiers()); - signer.getFunctions().forEach(e -> st.getFunction().add(toTextType(e))); - signer.getActivities().forEach(e -> st.getActivity().add(toTextType(e))); - signer.getPositions().forEach(e -> st.getPosition().add(toTextType(e))); - signer.getRoles().forEach(e -> st.getRole().add(toTextType(e))); - signer.getMandates().forEach(e -> st.getMandate().add(toTextType(e))); - return st; + for (Rule rule : disseminationRule.getRules()) { + art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); + if (rule.getStartDate() != null) { + art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + } } - private ValidatorType toValidatorType(Validator validator) { - ValidatorType vt = sedav2Factory.createValidatorType(); - ifNotBlank(validator.getFirstName(), vt::setFirstName); - ifNotBlank(validator.getBirthName(), vt::setBirthName); - ifNotBlank(validator.getFullName(), vt::setFullName); - ifNotBlank(validator.getGivenName(), vt::setGivenName); - ifNotBlank(validator.getGender(), vt::setGender); - ifNotBlank(validator.getCorpName(), vt::setCorpname); - ifNotNull(validator.getBirthDate(), e -> vt.setBirthDate(SipUtils.toXmlDate(e))); - ifNotNull(validator.getDeathDate(), e -> vt.setDeathDate(SipUtils.toXmlDate(e))); - ifNotNull(validator.getBirthPlace(), e -> vt.setBirthPlace(toPlaceType(e))); - ifNotNull(validator.getDeathPlace(), e -> vt.setDeathPlace(toPlaceType(e))); - ifNotNull(validator.getValidationTime(), e -> vt.setValidationTime(SipUtils.toXmlDateTime(e))); - - vt.getNationality().addAll(validator.getNationalities()); - vt.getIdentifier().addAll(validator.getIdentifiers()); - validator.getFunctions().forEach(e -> vt.getFunction().add(toTextType(e))); - validator.getActivities().forEach(e -> vt.getActivity().add(toTextType(e))); - validator.getPositions().forEach(e -> vt.getPosition().add(toTextType(e))); - validator.getRoles().forEach(e -> vt.getRole().add(toTextType(e))); - validator.getMandates().forEach(e -> vt.getMandate().add(toTextType(e))); - return vt; + // xsd:choice : you cannot set PreventInheritance and PreventRuleNames + ifNotNull(disseminationRule.isPreventInheritance(), art::setPreventInheritance); + disseminationRule + .getPreventRuleNames() + .forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); + return art; + } + + private ReuseRuleType toReuseRuleType(ReuseRules reuseRule) { + ReuseRuleType art = sedav2Factory.createReuseRuleType(); + + for (Rule rule : reuseRule.getRules()) { + art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); + if (rule.getStartDate() != null) { + art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + } } - private BirthOrDeathPlaceType toPlaceType(Place place) { - BirthOrDeathPlaceType bodpt = sedav2Factory.createBirthOrDeathPlaceType(); - ifNotBlank(place.getAddress(), bodpt::setAddress); - ifNotBlank(place.getCity(), bodpt::setCity); - ifNotBlank(place.getCountry(), bodpt::setCountry); - ifNotBlank(place.getGeogName(), bodpt::setGeogname); - ifNotBlank(place.getPostalCode(), bodpt::setPostalCode); - ifNotBlank(place.getRegion(), bodpt::setRegion); - return bodpt; + // xsd:choice : you cannot set PreventInheritance and PreventRuleNames + ifNotNull(reuseRule.isPreventInheritance(), art::setPreventInheritance); + reuseRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); + return art; + } + + private AppraisalRuleType toAppraisalRuleType(AppraisalRules appraisalRule) { + AppraisalRuleType art = sedav2Factory.createAppraisalRuleType(); + for (Rule rule : appraisalRule.getRules()) { + art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); + if (rule.getStartDate() != null) { + art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + } } - private CodeListVersionsType toCodeListVersionsType(CodeListVersions code) { - CodeListVersionsType clvt = sedav2Factory.createCodeListVersionsType(); - clvt.setId(code.getId()); - - if (isStrict) { - if (code.getSignatureStatusCodeListVersion() != null) { - throw new SipException("SEDA 2.1 does not support SignatureStatusCodeListVersion"); - } - if (code.getFileEncodingCodeListVersion() != null) { - throw new SipException("SEDA 2.1 does not support FileEncodingCodeListVersion"); - } - } + // xsd:choice : you cannot set PreventInheritance and PreventRuleNames + ifNotNull(appraisalRule.isPreventInheritance(), art::setPreventInheritance); + appraisalRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); - ifNotBlank(code.getAuthorizationReasonCodeListVersion(), e -> clvt.setAuthorizationReasonCodeListVersion(toCodeType(e))); - ifNotBlank(code.getFileFormatCodeListVersion(), e -> clvt.setFileFormatCodeListVersion(toCodeType(e))); - ifNotBlank(code.getMessageDigestAlgorithmCodeListVersion(), e -> clvt.setMessageDigestAlgorithmCodeListVersion(toCodeType(e))); - ifNotBlank(code.getRelationshipCodeListVersion(), e -> clvt.setRelationshipCodeListVersion(toCodeType(e))); - ifNotBlank(code.getReplyCodeListVersion(), e -> clvt.setReplyCodeListVersion(toCodeType(e))); - ifNotBlank(code.getMimeTypeCodeListVersion(), e -> clvt.setMimeTypeCodeListVersion(toCodeType(e))); - ifNotBlank(code.getEncodingCodeListVersion(), e -> clvt.setEncodingCodeListVersion(toCodeType(e))); - ifNotBlank(code.getCompressionAlgorithmCodeListVersion(), e -> clvt.setCompressionAlgorithmCodeListVersion(toCodeType(e))); - ifNotBlank(code.getDataObjectVersionCodeListVersion(), e -> clvt.setDataObjectVersionCodeListVersion(toCodeType(e))); - ifNotBlank(code.getStorageRuleCodeListVersion(), e -> clvt.setStorageRuleCodeListVersion(toCodeType(e))); - ifNotBlank(code.getAppraisalRuleCodeListVersion(), e -> clvt.setAppraisalRuleCodeListVersion(toCodeType(e))); - ifNotBlank(code.getAccessRuleCodeListVersion(), e -> clvt.setAccessRuleCodeListVersion(toCodeType(e))); - ifNotBlank(code.getDisseminationRuleCodeListVersion(), e -> clvt.setDisseminationRuleCodeListVersion(toCodeType(e))); - ifNotBlank(code.getReuseRuleCodeListVersion(), e -> clvt.setReuseRuleCodeListVersion(toCodeType(e))); - ifNotBlank(code.getClassificationRuleCodeListVersion(), e -> clvt.setClassificationRuleCodeListVersion(toCodeType(e))); - ifNotBlank(code.getAcquisitionInformationCodeListVersion(), e -> clvt.setAcquisitionInformationCodeListVersion(toCodeType(e))); - - return clvt; + String action = appraisalRule.getFinalAction(); + if ("Keep".equals(action)) { + art.setFinalAction(FinalActionAppraisalCodeType.KEEP); + } else if ("Destroy".equals(action)) { + art.setFinalAction(FinalActionAppraisalCodeType.DESTROY); } - private LevelType toLevelType(String levelType) { - try { - return LevelType.fromValue(levelType); - } - catch (IllegalArgumentException iae) { - throw new SipException("Seda 2.1 does not support the level type: " + levelType, iae); - } + if (isStrict) { + if (appraisalRule.getDuration() != null) { + throw new SipException("SEDA 2.1 does not support Duration"); + } } - - private LegalStatusType toLegalStatus(String legalStatusType) { - try { - return LegalStatusType.fromValue(legalStatusType); - } - catch (IllegalArgumentException iae) { - throw new SipException("Seda 2.1 does not support the legal status : " + legalStatusType, iae); - } + return art; + } + + private StorageRuleType toStorageRuleType(StorageRules storageRule) { + StorageRuleType art = sedav2Factory.createStorageRuleType(); + for (Rule rule : storageRule.getRules()) { + art.getRuleAndStartDate().add(toRuleIdType(rule.getName())); + if (rule.getStartDate() != null) { + art.getRuleAndStartDate().add(SipUtils.toXmlDate(rule.getStartDate())); + } } - private CodeType toCodeType(String codeType) { - CodeType ct = sedav2Factory.createCodeType(); - ct.setValue(codeType); - return ct; + // xsd:choice : you cannot set PreventInheritance and PreventRuleNames + ifNotNull(storageRule.isPreventInheritance(), art::setPreventInheritance); + storageRule.getPreventRuleNames().forEach(e -> art.getRefNonRuleId().add(toRuleIdType(e))); + + String action = storageRule.getFinalAction(); + if (action != null) { + switch (action) { + case "Copy" -> art.setFinalAction(FinalActionStorageCodeType.COPY); + case "RestrictAccess" -> art.setFinalAction(FinalActionStorageCodeType.RESTRICT_ACCESS); + case "Transfer" -> art.setFinalAction(FinalActionStorageCodeType.TRANSFER); + default -> throw new SipException(String.format("Unknown final action %s", action)); + } } - private OrganizationWithIdType toOrganizationWithIdType(Agency agency) { - OrganizationWithIdType ot = sedav2Factory.createOrganizationWithIdType(); - ot.setIdentifier(toIdentifierType(agency.getIdentifier())); - if (StringUtils.isNotBlank(agency.getName())) { - OrganizationDescriptiveMetadataType odmt = sedav2Factory.createOrganizationDescriptiveMetadataType(); - - ifNotNull(agency.getName(), e -> odmt.getAny().add(toNode(new Element("Name", e)))); - agency.getElements().forEach(e -> odmt.getAny().add(toNode(e))); - ot.setOrganizationDescriptiveMetadata(odmt); - } - return ot; + return art; + } + + private RuleIdType toRuleIdType(String value) { + RuleIdType rit = sedav2Factory.createRuleIdType(); + rit.setValue(value); + return rit; + } + + private EventType toEventType(Event event) { + EventType et = sedav2Factory.createEventType(); + ifNotNull(event.getIdentifier(), et::setEventIdentifier); + ifNotNull(event.getDateTime(), e -> et.setEventDateTime(SipUtils.toXmlDateTime(e).toString())); + ifNotNull(event.getDetail(), e -> et.setEventDetail(toTextType(e))); + ifNotNull(event.getDetailData(), et::setEventDetailData); + ifNotNull(event.getOutcome(), et::setOutcome); + ifNotNull(event.getOutcomeDetail(), et::setOutcomeDetail); + ifNotNull(event.getOutcomeDetailMessage(), et::setOutcomeDetailMessage); + ifNotNull(event.getType(), et::setEventType); + ifNotNull(event.getTypeCode(), et::setEventTypeCode); + return et; + } + + private AgentType toAgentType(Agent agent) { + AgentType at = sedav2Factory.createAgentType(); + ifNotBlank(agent.getFirstName(), at::setFirstName); + ifNotBlank(agent.getBirthName(), at::setBirthName); + ifNotBlank(agent.getFullName(), at::setFullName); + ifNotBlank(agent.getGivenName(), at::setGivenName); + ifNotBlank(agent.getGender(), at::setGender); + ifNotBlank(agent.getCorpName(), at::setCorpname); + ifNotNull(agent.getBirthDate(), e -> at.setBirthDate(SipUtils.toXmlDate(e))); + ifNotNull(agent.getDeathDate(), e -> at.setDeathDate(SipUtils.toXmlDate(e))); + ifNotNull(agent.getBirthPlace(), e -> at.setBirthPlace(toPlaceType(e))); + ifNotNull(agent.getDeathPlace(), e -> at.setDeathPlace(toPlaceType(e))); + at.getNationality().addAll(agent.getNationalities()); + at.getIdentifier().addAll(agent.getIdentifiers()); + agent.getFunctions().forEach(e -> at.getFunction().add(toTextType(e))); + agent.getActivities().forEach(e -> at.getActivity().add(toTextType(e))); + agent.getPositions().forEach(e -> at.getPosition().add(toTextType(e))); + agent.getRoles().forEach(e -> at.getRole().add(toTextType(e))); + agent.getMandates().forEach(e -> at.getMandate().add(toTextType(e))); + return at; + } + + private SignatureType toSignatureType(Signature signature, DataObjectGroupType dogt) { + ReferencedObjectType rot = sedav2Factory.createReferencedObjectType(); + if (dogt.getBinaryDataObjectOrPhysicalDataObject().isEmpty()) { + throw new SipException("The signed referenced object does not exist in this archive"); } - - private IdentifierType toIdentifierType(String identifier) { - IdentifierType it = sedav2Factory.createIdentifierType(); - it.setValue(identifier); - return it; + rot.setSignedObjectId(dogt); + + MessageDigestBinaryObjectType mdbot = sedav2Factory.createMessageDigestBinaryObjectType(); + mdbot.setAlgorithm(signature.getDigestAlgorithm()); + ifNotNull(signature.getDigestValue(), mdbot::setValue); + rot.setSignedObjectDigest(mdbot); + + SignatureType st = sedav2Factory.createSignatureType(); + signature.getSigners().forEach(e -> st.getSigner().add(toSignerType(e))); + ifNotNull(signature.getValidator(), e -> st.setValidator(toValidatorType(e))); + st.setReferencedObject(rot); + + return st; + } + + private SignerType toSignerType(Signer signer) { + SignerType st = sedav2Factory.createSignerType(); + ifNotBlank(signer.getFirstName(), st::setFirstName); + ifNotBlank(signer.getBirthName(), st::setBirthName); + ifNotBlank(signer.getFullName(), st::setFullName); + ifNotBlank(signer.getGivenName(), st::setGivenName); + ifNotBlank(signer.getGender(), st::setGender); + ifNotBlank(signer.getCorpName(), st::setCorpname); + ifNotNull(signer.getBirthDate(), e -> st.setBirthDate(SipUtils.toXmlDate(e))); + ifNotNull(signer.getDeathDate(), e -> st.setDeathDate(SipUtils.toXmlDate(e))); + ifNotNull(signer.getBirthPlace(), e -> st.setBirthPlace(toPlaceType(e))); + ifNotNull(signer.getDeathPlace(), e -> st.setDeathPlace(toPlaceType(e))); + ifNotNull(signer.getSigningTime(), e -> st.setSigningTime(SipUtils.toXmlDateTime(e))); + + st.getNationality().addAll(signer.getNationalities()); + st.getIdentifier().addAll(signer.getIdentifiers()); + signer.getFunctions().forEach(e -> st.getFunction().add(toTextType(e))); + signer.getActivities().forEach(e -> st.getActivity().add(toTextType(e))); + signer.getPositions().forEach(e -> st.getPosition().add(toTextType(e))); + signer.getRoles().forEach(e -> st.getRole().add(toTextType(e))); + signer.getMandates().forEach(e -> st.getMandate().add(toTextType(e))); + return st; + } + + private ValidatorType toValidatorType(Validator validator) { + ValidatorType vt = sedav2Factory.createValidatorType(); + ifNotBlank(validator.getFirstName(), vt::setFirstName); + ifNotBlank(validator.getBirthName(), vt::setBirthName); + ifNotBlank(validator.getFullName(), vt::setFullName); + ifNotBlank(validator.getGivenName(), vt::setGivenName); + ifNotBlank(validator.getGender(), vt::setGender); + ifNotBlank(validator.getCorpName(), vt::setCorpname); + ifNotNull(validator.getBirthDate(), e -> vt.setBirthDate(SipUtils.toXmlDate(e))); + ifNotNull(validator.getDeathDate(), e -> vt.setDeathDate(SipUtils.toXmlDate(e))); + ifNotNull(validator.getBirthPlace(), e -> vt.setBirthPlace(toPlaceType(e))); + ifNotNull(validator.getDeathPlace(), e -> vt.setDeathPlace(toPlaceType(e))); + ifNotNull(validator.getValidationTime(), e -> vt.setValidationTime(SipUtils.toXmlDateTime(e))); + + vt.getNationality().addAll(validator.getNationalities()); + vt.getIdentifier().addAll(validator.getIdentifiers()); + validator.getFunctions().forEach(e -> vt.getFunction().add(toTextType(e))); + validator.getActivities().forEach(e -> vt.getActivity().add(toTextType(e))); + validator.getPositions().forEach(e -> vt.getPosition().add(toTextType(e))); + validator.getRoles().forEach(e -> vt.getRole().add(toTextType(e))); + validator.getMandates().forEach(e -> vt.getMandate().add(toTextType(e))); + return vt; + } + + private BirthOrDeathPlaceType toPlaceType(Place place) { + BirthOrDeathPlaceType bodpt = sedav2Factory.createBirthOrDeathPlaceType(); + ifNotBlank(place.getAddress(), bodpt::setAddress); + ifNotBlank(place.getCity(), bodpt::setCity); + ifNotBlank(place.getCountry(), bodpt::setCountry); + ifNotBlank(place.getGeogName(), bodpt::setGeogname); + ifNotBlank(place.getPostalCode(), bodpt::setPostalCode); + ifNotBlank(place.getRegion(), bodpt::setRegion); + return bodpt; + } + + private CodeListVersionsType toCodeListVersionsType(CodeListVersions code) { + CodeListVersionsType clvt = sedav2Factory.createCodeListVersionsType(); + clvt.setId(code.getId()); + + if (isStrict) { + if (code.getSignatureStatusCodeListVersion() != null) { + throw new SipException("SEDA 2.1 does not support SignatureStatusCodeListVersion"); + } + if (code.getFileEncodingCodeListVersion() != null) { + throw new SipException("SEDA 2.1 does not support FileEncodingCodeListVersion"); + } } - private SignatureMessageType toSignatureMessageType(ArchiveTransfer transfer) { - SignatureMessageType st = sedav2Factory.createSignatureMessageType(); - ifNotNull(transfer.getSignature(), e -> st.getAny().add(toNode(new Element("Format", e)))); - transfer.getSignatureElements().forEach(e -> st.getAny().add(toNode(e))); - return st; + ifNotBlank( + code.getAuthorizationReasonCodeListVersion(), + e -> clvt.setAuthorizationReasonCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getFileFormatCodeListVersion(), e -> clvt.setFileFormatCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getMessageDigestAlgorithmCodeListVersion(), + e -> clvt.setMessageDigestAlgorithmCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getRelationshipCodeListVersion(), + e -> clvt.setRelationshipCodeListVersion(toCodeType(e))); + ifNotBlank(code.getReplyCodeListVersion(), e -> clvt.setReplyCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getMimeTypeCodeListVersion(), e -> clvt.setMimeTypeCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getEncodingCodeListVersion(), e -> clvt.setEncodingCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getCompressionAlgorithmCodeListVersion(), + e -> clvt.setCompressionAlgorithmCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getDataObjectVersionCodeListVersion(), + e -> clvt.setDataObjectVersionCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getStorageRuleCodeListVersion(), + e -> clvt.setStorageRuleCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getAppraisalRuleCodeListVersion(), + e -> clvt.setAppraisalRuleCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getAccessRuleCodeListVersion(), e -> clvt.setAccessRuleCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getDisseminationRuleCodeListVersion(), + e -> clvt.setDisseminationRuleCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getReuseRuleCodeListVersion(), e -> clvt.setReuseRuleCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getClassificationRuleCodeListVersion(), + e -> clvt.setClassificationRuleCodeListVersion(toCodeType(e))); + ifNotBlank( + code.getAcquisitionInformationCodeListVersion(), + e -> clvt.setAcquisitionInformationCodeListVersion(toCodeType(e))); + + return clvt; + } + + private LevelType toLevelType(String levelType) { + try { + return LevelType.fromValue(levelType); + } catch (IllegalArgumentException iae) { + throw new SipException("Seda 2.1 does not support the level type: " + levelType, iae); } - - private TextType toTextType(String text) { - TextType tt = sedav2Factory.createTextType(); - tt.setValue(text); - return tt; + } + + private LegalStatusType toLegalStatus(String legalStatusType) { + try { + return LegalStatusType.fromValue(legalStatusType); + } catch (IllegalArgumentException iae) { + throw new SipException( + "Seda 2.1 does not support the legal status : " + legalStatusType, iae); } - - private TextType toTextType(Text text) { - TextType tt = sedav2Factory.createTextType(); - tt.setValue(text.getMessage()); - tt.setLang(text.getLang()); - return tt; + } + + private CodeType toCodeType(String codeType) { + CodeType ct = sedav2Factory.createCodeType(); + ct.setValue(codeType); + return ct; + } + + private OrganizationWithIdType toOrganizationWithIdType(Agency agency) { + OrganizationWithIdType ot = sedav2Factory.createOrganizationWithIdType(); + ot.setIdentifier(toIdentifierType(agency.getIdentifier())); + if (StringUtils.isNotBlank(agency.getName())) { + OrganizationDescriptiveMetadataType odmt = + sedav2Factory.createOrganizationDescriptiveMetadataType(); + + ifNotNull(agency.getName(), e -> odmt.getAny().add(toNode(new Element("Name", e)))); + agency.getElements().forEach(e -> odmt.getAny().add(toNode(e))); + ot.setOrganizationDescriptiveMetadata(odmt); } + return ot; + } + + private IdentifierType toIdentifierType(String identifier) { + IdentifierType it = sedav2Factory.createIdentifierType(); + it.setValue(identifier); + return it; + } + + private SignatureMessageType toSignatureMessageType(ArchiveTransfer transfer) { + SignatureMessageType st = sedav2Factory.createSignatureMessageType(); + ifNotNull(transfer.getSignature(), e -> st.getAny().add(toNode(new Element("Format", e)))); + transfer.getSignatureElements().forEach(e -> st.getAny().add(toNode(e))); + return st; + } + + private TextType toTextType(String text) { + TextType tt = sedav2Factory.createTextType(); + tt.setValue(text); + return tt; + } + + private TextType toTextType(Text text) { + TextType tt = sedav2Factory.createTextType(); + tt.setValue(text.getMessage()); + tt.setLang(text.getLang()); + return tt; + } + + private KeywordsType toKeywordType(Tag tag) { + KeywordsType kt = sedav2Factory.createKeywordsType(); + kt.setKeywordReference(toIdentifierType(tag.key())); + kt.setKeywordContent(toTextType(tag.value())); + return kt; + } + + private String incAndGetCounter() { + return "ID" + idCounter.incrementAndGet(); + } + + private class ZipTask implements Callable { + + private final Path binaryPath; + private final boolean removePath; + private final BinaryDataObjectType bdot; + private final boolean identifyFileFormat; - private KeywordsType toKeywordType(Tag tag) { - KeywordsType kt = sedav2Factory.createKeywordsType(); - kt.setKeywordReference(toIdentifierType(tag.getKey())); - kt.setKeywordContent(toTextType(tag.getValue())); - return kt; + /** + * Instantiates a new Zip task. + * + * @param binaryPath the binary path + * @param bdot the bdot + */ + public ZipTask( + Path binaryPath, + boolean removePath, + boolean identifyFileFormat, + BinaryDataObjectType bdot) { + this.binaryPath = binaryPath; + this.removePath = removePath; + this.identifyFileFormat = identifyFileFormat; + this.bdot = bdot; } - private String incAndGetCounter() { - return "ID" + idCounter.incrementAndGet(); - } + private Path zip(Path binaryPath, String entryName) throws IOException { - private class ZipTask implements Callable { - - private final Path binaryPath; - private final boolean removePath; - private final BinaryDataObjectType bdot; - private final boolean identifyFileFormat; - - /** - * Instantiates a new Zip task. - * - * @param binaryPath the binary path - * @param bdot the bdot - */ - public ZipTask(Path binaryPath, boolean removePath, boolean identifyFileFormat, BinaryDataObjectType bdot) { - this.binaryPath = binaryPath; - this.removePath = removePath; - this.identifyFileFormat=identifyFileFormat; - this.bdot = bdot; + Path docEntry = zipArchive.getPath("Content"); + if (Files.notExists(docEntry)) { + try { + Files.createDirectories(docEntry); + } catch (FileAlreadyExistsException ex) { + LOGGER.warn("zip: ", ex); + } + } + + Path zipEntry = docEntry.resolve(entryName); + if (Files.notExists(zipEntry)) { + try (OutputStream out = Files.newOutputStream(zipEntry)) { + Files.copy(binaryPath, out); + } catch (FileAlreadyExistsException ex) { + LOGGER.warn("zip: ", ex); } + } - private Path zip(Path binaryPath, String entryName) throws IOException { + return zipEntry; + } - Path docEntry = zipArchive.getPath("Content"); - if (Files.notExists(docEntry)) { - try { - Files.createDirectories(docEntry); - } - catch (FileAlreadyExistsException ex) { - LOGGER.warn("zip: ", ex); - } - } + @Override + public Void call() { + MessageDigestBinaryObjectType mdbot = bdot.getMessageDigest(); + + try { + // Compute Digest + String digest = SipUtils.digestHex(binaryPath, mdbot.getAlgorithm()); + mdbot.setValue(digest); + + // Add binary file to zip + if (zipArchive != null) { + Path zipEntry = + zip( + binaryPath, + digest + + "_" + + Files.getLastModifiedTime(binaryPath).toMillis() + + "_" + + binaryPath.getFileName()); + long size = (long) Files.getAttribute(zipEntry, "zip:size"); + bdot.setSize(BigInteger.valueOf(size)); + bdot.setUri(zipEntry.toString()); + } else { + bdot.setSize(BigInteger.valueOf(Files.size(binaryPath))); + bdot.setUri( + "Content/" + + digest + + "_" + + Files.getLastModifiedTime(binaryPath).toMillis() + + "_" + + binaryPath.getFileName()); + } - Path zipEntry = docEntry.resolve(entryName); - if (Files.notExists(zipEntry)) { - try (OutputStream out = Files.newOutputStream(zipEntry)) { - Files.copy(binaryPath, out); - } - catch (FileAlreadyExistsException ex) { - LOGGER.warn("zip: ", ex); - } - } + FormatIdentificationType fit = bdot.getFormatIdentification(); + if (fit == null || StringUtils.isBlank(fit.getFormatId())) { + processFileFormatIdentification(); + } - return zipEntry; + if (removePath) Files.delete(binaryPath); + } catch (Exception ex) { + try { + if (removePath) Files.deleteIfExists(binaryPath); + } catch (IOException ioex) { + // Ignore } + throw new SipException("Fail to complete ZipTask for " + binaryPath, ex); + } - @Override - public Void call() { - MessageDigestBinaryObjectType mdbot = bdot.getMessageDigest(); - - try { - // Compute Digest - String digest = SipUtils.digestHex(binaryPath, mdbot.getAlgorithm()); - mdbot.setValue(digest); - - // Add binary file to zip - if (zipArchive != null) { - Path zipEntry = zip(binaryPath, digest + "_" + Files.getLastModifiedTime(binaryPath).toMillis() + "_" + binaryPath.getFileName()); - long size = (long) Files.getAttribute(zipEntry, "zip:size"); - bdot.setSize(BigInteger.valueOf(size)); - bdot.setUri(zipEntry.toString()); - } else { - bdot.setSize(BigInteger.valueOf(Files.size(binaryPath))); - bdot.setUri("Content/" + digest + "_" + Files.getLastModifiedTime(binaryPath).toMillis() + "_" + binaryPath.getFileName()); - } - - FormatIdentificationType fit = bdot.getFormatIdentification(); - if (fit == null || StringUtils.isBlank(fit.getFormatId())) { - processFileFormatIdentification(); - } - - if (removePath) Files.delete(binaryPath); - } - catch (Exception ex) { - try { - if (removePath) Files.deleteIfExists(binaryPath); - } - catch (IOException ioex) { - // Ignore - } - throw new SipException("Fail to complete ZipTask for " + binaryPath, ex); - } + // Void + return null; + } - // Void - return null; + private void processFileFormatIdentification() { + if (identifyFileFormat) { + // Note. The Signature Identifier does not fully support NIO2 (i.e. does not work with + // jimfs) + String ext = FilenameUtils.getExtension(binaryPath.getFileName().toString()); + List results = DroidUtils.matchBinarySignatures(binaryPath, ext); + if (results.isEmpty()) { + bdot.setFormatIdentification(toFormatIdentificationType("Unknown", null, null)); + } else { + IdentificationResult r = results.get(0); + String name = + StringUtils.isAllBlank(r.getName(), r.getVersion()) + ? null + : StringUtils.trim(r.getName() + " " + r.getVersion()); + String mimeType = StringUtils.isBlank(r.getMimeType()) ? null : r.getMimeType(); + bdot.setFormatIdentification(toFormatIdentificationType(r.getPuid(), name, mimeType)); } - private void processFileFormatIdentification() { - if (identifyFileFormat) { - // Note. The Signature Identifier does not fully support NIO2 (ie. does not work with jimfs) - String ext = FilenameUtils.getExtension(binaryPath.getFileName().toString()); - List results = DroidUtils.matchBinarySignatures(binaryPath, ext); - if (results.isEmpty()) { - bdot.setFormatIdentification(toFormatIdentificationType("Unknown", null, null)); - } else { - IdentificationResult r = results.get(0); - String name = StringUtils.isAllBlank(r.getName(), r.getVersion()) ? null : StringUtils.trim(r.getName() + " " + r.getVersion()); - String mimeType = StringUtils.isBlank(r.getMimeType()) ? null : r.getMimeType(); - bdot.setFormatIdentification(toFormatIdentificationType(r.getPuid(), name, mimeType)); - } - - } else { - bdot.setFormatIdentification(new FormatIdentificationType()); - } - } + } else { + bdot.setFormatIdentification(new FormatIdentificationType()); + } } - + } } diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Adapter.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Adapter.java index 7889700..60d3ed0 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Adapter.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Adapter.java @@ -1,17 +1,19 @@ package fr.xelians.sipg.service.sedav2; +import fr.xelians.sipg.model.ArchiveDeliveryRequestReply; import fr.xelians.sipg.model.ArchiveTransfer; - +import java.nio.file.Path; import javax.xml.transform.Source; import javax.xml.validation.Validator; -import java.nio.file.Path; public interface Sedav2Adapter { - void write(ArchiveTransfer archive, Validator validator, Path zipPath, Sedav2Config config); + void write(ArchiveTransfer archive, Validator validator, Path zipPath, Sedav2Config config); - void validate(ArchiveTransfer archive, Validator validator, Sedav2Config config); + void write( + ArchiveDeliveryRequestReply archive, Validator validator, Path zipPath, Sedav2Config config); - void validate(Source source, Sedav2Config config); + void validate(ArchiveTransfer archive, Validator validator, Sedav2Config config); + void validate(Source source, Sedav2Config config); } diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2BinaryObject.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2BinaryObject.java index 7fe2938..be44928 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2BinaryObject.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2BinaryObject.java @@ -21,150 +21,159 @@ import java.util.Objects; /** - * La classe Sedav2BinaryObject représente un objet binaire (ie. un fichier PDF, JPEG, MPEG, etc.) . + * La classe Sedav2BinaryObject représente un objet binaire (ie. un fichier PDF, JPEG, MPEG, etc.). * * @author Emmanuel Deviller */ class Sedav2BinaryObject { - private String uri; - private long size; - private String digest; - private String algorithm; - private String format; - - /** - * Gets uri. - * - * @return the uri - */ - public String getUri() { - return uri; + private String uri; + private long size; + private String digest; + private String algorithm; + private String format; + + /** + * Gets uri. + * + * @return the uri + */ + public String getUri() { + return uri; + } + + /** + * Sets uri. + * + * @param uri the uri + */ + public void setUri(String uri) { + this.uri = uri; + } + + /** + * Gets size. + * + * @return the size + */ + public long getSize() { + return size; + } + + /** + * Sets size. + * + * @param size the size + */ + public void setSize(long size) { + this.size = size; + } + + /** + * Gets digest. + * + * @return the digest + */ + public String getDigest() { + return digest; + } + + /** + * Sets digest. + * + * @param digest the digest + */ + public void setDigest(String digest) { + this.digest = digest; + } + + /** + * Gets algorithm. + * + * @return the algorithm + */ + public String getAlgorithm() { + return algorithm; + } + + /** + * Sets algorithm. + * + * @param algorithm the algorithm + */ + public void setAlgorithm(String algorithm) { + this.algorithm = algorithm; + } + + /** + * Gets format. + * + * @return the format + */ + public String getFormat() { + return format; + } + + /** + * Sets format. + * + * @param format the format + */ + public void setFormat(String format) { + this.format = format; + } + + @Override + public int hashCode() { + int hash = 3; + hash = 41 * hash + Objects.hashCode(this.uri); + hash = 41 * hash + Long.hashCode(this.size); + hash = 41 * hash + Objects.hashCode(this.digest); + hash = 41 * hash + Objects.hashCode(this.algorithm); + hash = 41 * hash + Objects.hashCode(this.format); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; } - - /** - * Sets uri. - * - * @param uri the uri - */ - public void setUri(String uri) { - this.uri = uri; - } - - /** - * Gets size. - * - * @return the size - */ - public long getSize() { - return size; - } - - /** - * Sets size. - * - * @param size the size - */ - public void setSize(long size) { - this.size = size; + if (obj == null) { + return false; } - - /** - * Gets digest. - * - * @return the digest - */ - public String getDigest() { - return digest; + if (getClass() != obj.getClass()) { + return false; } - - /** - * Sets digest. - * - * @param digest the digest - */ - public void setDigest(String digest) { - this.digest = digest; + final Sedav2BinaryObject other = (Sedav2BinaryObject) obj; + if (this.size != other.size) { + return false; } - - /** - * Gets algorithm. - * - * @return the algorithm - */ - public String getAlgorithm() { - return algorithm; + if (!Objects.equals(this.uri, other.uri)) { + return false; } - - /** - * Sets algorithm. - * - * @param algorithm the algorithm - */ - public void setAlgorithm(String algorithm) { - this.algorithm = algorithm; + if (!Objects.equals(this.digest, other.digest)) { + return false; } - - /** - * Gets format. - * - * @return the format - */ - public String getFormat() { - return format; + if (!Objects.equals(this.algorithm, other.algorithm)) { + return false; } - - /** - * Sets format. - * - * @param format the format - */ - public void setFormat(String format) { - this.format = format; - } - - @Override - public int hashCode() { - int hash = 3; - hash = 41 * hash + Objects.hashCode(this.uri); - hash = 41 * hash + (int) (this.size ^ (this.size >>> 32)); - hash = 41 * hash + Objects.hashCode(this.digest); - hash = 41 * hash + Objects.hashCode(this.algorithm); - hash = 41 * hash + Objects.hashCode(this.format); - return hash; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (getClass() != obj.getClass()) { - return false; - } - final Sedav2BinaryObject other = (Sedav2BinaryObject) obj; - if (this.size != other.size) { - return false; - } - if (!Objects.equals(this.uri, other.uri)) { - return false; - } - if (!Objects.equals(this.digest, other.digest)) { - return false; - } - if (!Objects.equals(this.algorithm, other.algorithm)) { - return false; - } - return Objects.equals(this.format, other.format); - } - - @Override - public String toString() { - return "BinaryData{" + "uri=" + uri + ", size=" + size + ", digest=" + digest + ", algorithm=" + algorithm - + ", format=" + format + '}'; - } - + return Objects.equals(this.format, other.format); + } + + @Override + public String toString() { + return "BinaryData{" + + "uri=" + + uri + + ", size=" + + size + + ", digest=" + + digest + + ", algorithm=" + + algorithm + + ", format=" + + format + + '}'; + } } diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Config.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Config.java index ab60b76..495ea6a 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Config.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Config.java @@ -19,160 +19,33 @@ package fr.xelians.sipg.service.sedav2; /** - * La classe Sedav2Config représente la configuration utilisée lors de la conversion d'une archive au format SEDA v2.1. - * Les valeurs par défaut sont définies dans la classe Sedav2ConfigBuilder. + * La classe Sedav2Config représente la configuration utilisée lors de la conversion d'une archive + * au format SEDA v2.1. Les valeurs par défaut sont définies dans la classe Sedav2ConfigBuilder. * + * @param validate spécifie si une validation doit être réalisée lors de la conversion + * @param format spécifie si le fichier de description doit être formaté (pretty-print) + * @param indent spécifie la valeur de l'indentation lors du formatage + * @param thread spécifie le nombre de threads à utiliser lors de la conversion + * @param strict spécifie si la conversion doit être stricte + * @param checkBinary spécifie si la validation vérifie les objets binaires + * @param checkSize spécifie si la validation la taille des objets binaires + * @param checkDigest spécifie si la validation vérifie l'empreinte des objets binaires + * @param useMemory spécifie si la génération du sip utilise la mémoire ou le disque * @author Emmanuel Deviller * @see Sedav2ConfigBuilder */ -public class Sedav2Config { - - /** - * The constant DEFAULT. - */ - public static final Sedav2Config DEFAULT = Sedav2ConfigBuilder.builder().build(); - - private final boolean validate; - private final boolean format; - private final int indent; - private final int thread; - private final boolean strict; - private final boolean checkBinary; - private final boolean checkSize; - private final boolean checkDigest; - private final boolean useMemory; - private final boolean identifyFileFormat; - - /** - * Instancie la classe. - * - * @param validate spécifie si une validation doit être réalisée lors de la conversion - * @param format spécifie si le fichier de description doit être formaté (pretty-print) - * @param indent spécifie la valeur de l'indentation lors du formatage - * @param thread spécifie le nombre de threads à utiliser lors de la conversion - * @param strict spécifie si la conversion doit être stricte - * @param checkBinary spécifie si la validation vérifie les objets binaires - * @param checkSize spécifie si la validation la taille des objets binaires - * @param checkDigest spécifie si la validation vérifie l'empreinte des objets binaires - * @param useMemory spécifie si la génération du sip utilise la mémoire ou le disque - */ - public Sedav2Config(boolean validate, boolean format, int indent, int thread, boolean strict, boolean checkBinary, - boolean checkSize, boolean checkDigest, boolean useMemory, boolean identifyFileFormat) { - this.validate = validate; - this.format = format; - this.indent = indent; - this.thread = thread; - this.strict = strict; - this.checkBinary = checkBinary; - this.checkSize = checkSize; - this.checkDigest = checkDigest; - this.useMemory = useMemory; - this.identifyFileFormat=identifyFileFormat; - } - - /** - * Indique si une validation doit être réalisée lors de la conversion. - * - * @return si une validation doit être réalisée - */ - public boolean isValidate() { - return validate; - } - - /** - * Indique si le fichier de description doit être formaté (pretty-print) lors de la conversion. - * - * @return si le fichier de description doit être formaté - */ - public boolean isFormat() { - return format; - } - - /** - * Indique la valeur de l'indentation lors du formatage. - * - * @return la valeur de l'indentation lors du formatage - */ - public int getIndent() { - return indent; - } - - /** - * Indique le nombre de threads à utiliser lors de la conversion. - * - * @return le nombre de threads - */ - public int getThread() { - return thread; - } - - /** - * Indique si la conversion doit être stricte. - * - * @return si la conversion doit être stricte - */ - public boolean isStrict() { - return strict; - } - - /** - * Indique si la validation vérifie les objets binaires. - * - * @return si la validation vérifie les objets binaires - */ - public boolean checkBinary() { - return checkBinary; - } - - /** - * Indique si la validation vérifie la taille des objets binaires. - * - * @return si la validation vérifie la taille des objets binaires - */ - public boolean checkSize() { - return checkSize; - } - - /** - * Indique si la validation vérifie l'empreinte des objets binaires. - * - * @return si la validation vérifie l'empreinte des objets binaires - */ - public boolean checkDigest() { - return checkDigest; - } - - /** - * Indique si la génération du sip utilise la mémoire ou le disque - * - * @return si la génération du sip utilise la mémoire ou le disque - */ - public boolean useMemory() { - return useMemory; - } - - /** - * Indique si le format des fichiers binaires doit etre identifié. - * - * @return si le format des fichiers binaires doit etre identifié - */ - public boolean identifyFileFormat() { - return identifyFileFormat; - } - - @Override - public String toString() { - return "Sedav2Config{" + - "validate=" + validate + - ", format=" + format + - ", indent=" + indent + - ", thread=" + thread + - ", strict=" + strict + - ", checkBinary=" + checkBinary + - ", checkSize=" + checkSize + - ", checkDigest=" + checkDigest + - ", useMemory=" + useMemory + - ", identifyFileFormat=" + identifyFileFormat + - '}'; - } +public record Sedav2Config( + boolean validate, + boolean format, + int indent, + int thread, + boolean strict, + boolean checkBinary, + boolean checkSize, + boolean checkDigest, + boolean useMemory, + boolean identifyFileFormat) { + + /** The constant DEFAULT. */ + public static final Sedav2Config DEFAULT = Sedav2ConfigBuilder.builder().build(); } diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2ConfigBuilder.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2ConfigBuilder.java index 02042e6..67d06b5 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2ConfigBuilder.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2ConfigBuilder.java @@ -19,156 +19,166 @@ package fr.xelians.sipg.service.sedav2; /** - * La classe Sedav2ConfigBuilder facilite la création d'un objet Sedav2Config en suivant le principe de conception du - * pattern builder. + * La classe Sedav2ConfigBuilder facilite la création d'un objet Sedav2Config en suivant le principe + * de conception du pattern builder. * * @author Emmanuel Deviller * @see Sedav2Config */ public class Sedav2ConfigBuilder { - private boolean validate = true; - private boolean format = false; - private int indent = 3; - private int thread = 0; - private boolean strict = true; - private boolean checkBinary = true; - private boolean checkSize = true; - private boolean checkDigest = true; - private boolean useMemory = false; - private boolean identifyFileFormat=true; + private boolean validate = true; + private boolean format = false; + private int indent = 3; + private int thread = 0; + private boolean strict = true; + private boolean checkBinary = true; + private boolean checkSize = true; + private boolean checkDigest = true; + private boolean useMemory = false; + private boolean identifyFileFormat = true; - private Sedav2ConfigBuilder() { - } + private Sedav2ConfigBuilder() {} - /** - * Instancie le builder. - * - * @return le builder - */ - public static Sedav2ConfigBuilder builder() { - return new Sedav2ConfigBuilder(); - } + /** + * Instancie le builder. + * + * @return le builder + */ + public static Sedav2ConfigBuilder builder() { + return new Sedav2ConfigBuilder(); + } - /** - * Spécifie si une validation doit être réalisée lors de la conversion. True par défaut. - * - * @param validate si une validation doit être réalisée - * @return le builder - */ - public Sedav2ConfigBuilder validate(boolean validate) { - this.validate = validate; - return this; - } + /** + * Spécifie si une validation doit être réalisée lors de la conversion. True par défaut. + * + * @param validate si une validation doit être réalisée + * @return le builder + */ + public Sedav2ConfigBuilder validate(boolean validate) { + this.validate = validate; + return this; + } - /** - * Spécifie si le fichier de description doit être formaté (pretty-print). False par défaut. - * - * @param format si le fichier de description doit être formaté - * @return le builder - */ - public Sedav2ConfigBuilder format(boolean format) { - this.format = format; - return this; - } + /** + * Spécifie si le fichier de description doit être formaté (pretty-print). False par défaut. + * + * @param format si le fichier de description doit être formaté + * @return le builder + */ + public Sedav2ConfigBuilder format(boolean format) { + this.format = format; + return this; + } - /** - * Spécifie la valeur de l'indentation lors du formatage. 3 par défaut. - * - * @param indent la valeur de l'indentation - * @return le builder - */ - public Sedav2ConfigBuilder indent(int indent) { - this.indent = indent; - return this; - } + /** + * Spécifie la valeur de l'indentation lors du formatage. Par défaut 3. + * + * @param indent la valeur de l'indentation + * @return le builder + */ + public Sedav2ConfigBuilder indent(int indent) { + this.indent = indent; + return this; + } - /** - * Spécifie le nombre de threads à utiliser lors de la conversion. Le nombre de cœurs du CPU par défaut. - * - * @param thread le nombre de threads - * @return le builder - */ - public Sedav2ConfigBuilder thread(int thread) { - this.thread = thread; - return this; - } + /** + * Spécifie le nombre de threads à utiliser lors de la conversion. Le nombre de cœurs du CPU par + * défaut. + * + * @param thread le nombre de threads + * @return le builder + */ + public Sedav2ConfigBuilder thread(int thread) { + this.thread = thread; + return this; + } - /** - * Spécifie si la conversion doit être stricte. False par défaut. - * - * @param strict si la conversion doit être stricte - * @return le builder - */ - public Sedav2ConfigBuilder strict(boolean strict) { - this.strict = strict; - return this; - } + /** + * Spécifie si la conversion doit être stricte. False par défaut. + * + * @param strict si la conversion doit être stricte + * @return le builder + */ + public Sedav2ConfigBuilder strict(boolean strict) { + this.strict = strict; + return this; + } - /** - * Spécifie si la validation doit vérifier les objets binaires. - * - * @param checkBinary si la validation doit vérifier les objets binaires - * @return le builder - */ - public Sedav2ConfigBuilder checkBinary(boolean checkBinary) { - this.checkBinary = checkBinary; - return this; - } + /** + * Spécifie si la validation doit vérifier les objets binaires. + * + * @param checkBinary si la validation doit vérifier les objets binaires + * @return le builder + */ + public Sedav2ConfigBuilder checkBinary(boolean checkBinary) { + this.checkBinary = checkBinary; + return this; + } - /** - * Spécifie si la validation doit vérifier la taille des objets binaires. - * - * @param checkSize si la validation doit vérifier la taille des objets binaires - * @return le builder - */ - public Sedav2ConfigBuilder checkSize(boolean checkSize) { - this.checkSize = checkSize; - return this; - } + /** + * Spécifie si la validation doit vérifier la taille des objets binaires. + * + * @param checkSize si la validation doit vérifier la taille des objets binaires + * @return le builder + */ + public Sedav2ConfigBuilder checkSize(boolean checkSize) { + this.checkSize = checkSize; + return this; + } - /** - * Spécifie si la validation doit vérifier l'empreinte des objets binaires. - * - * @param checkDigest si la validation doit vérifier l'empreinte des objets binaires - * @return le builder - */ - public Sedav2ConfigBuilder checkDigest(boolean checkDigest) { - this.checkDigest = checkDigest; - return this; - } + /** + * Spécifie si la validation doit vérifier l'empreinte des objets binaires. + * + * @param checkDigest si la validation doit vérifier l'empreinte des objets binaires + * @return le builder + */ + public Sedav2ConfigBuilder checkDigest(boolean checkDigest) { + this.checkDigest = checkDigest; + return this; + } - /** - * Spécifie si la génération du sip utilise la mémoire ou le disque. La génération en mémoire - * peut s'avérer légèrement plus rapide, mais peut entrainer un dépassement de la mémoire - * de la machine virtuelle. Il est fortement conseiller de s'assurer de connaitre la capacité - * mémoire de la machine virtuelle et des sip à générer avant d'utiliser cette option. - * - * @param useMemory si la genération du sip doit se faire en mémoire - * @return le builder - */ - public Sedav2ConfigBuilder useMemory(boolean useMemory) { - this.useMemory = useMemory; - return this; - } + /** + * Spécifie si la génération du sip utilise la mémoire ou le disque. La génération en mémoire peut + * s'avérer légèrement plus rapide, mais peut entrainer un dépassement de la mémoire de la machine + * virtuelle. Il est fortement conseiller de s'assurer de connaitre la capacité mémoire de la + * machine virtuelle et des sip à générer avant d'utiliser cette option. + * + * @param useMemory si la genération du sip doit se faire en mémoire + * @return le builder + */ + public Sedav2ConfigBuilder useMemory(boolean useMemory) { + this.useMemory = useMemory; + return this; + } - /** - * Spécifie si le format de fichier des objets binaires doit etre identifié. - * - * @param identifyFileFormat si le format de fichier des objets binaires doit etre identifié. - * @return le builder - */ - public Sedav2ConfigBuilder identifyFileFormat(boolean identifyFileFormat) { - this.identifyFileFormat = identifyFileFormat; - return this; - } + /** + * Spécifie si le format de fichier des objets binaires doit etre identifié. + * + * @param identifyFileFormat si le format de fichier des objets binaires doit etre identifié. + * @return le builder + */ + public Sedav2ConfigBuilder identifyFileFormat(boolean identifyFileFormat) { + this.identifyFileFormat = identifyFileFormat; + return this; + } - /** - * Instancie la classe Sedav2Config selon les paramètres précédemment spécifiés dans le builder. - * - * @return la configuration SEDA v2 - */ - public Sedav2Config build() { - return new Sedav2Config(validate, format, indent, thread, strict, checkBinary, checkSize, checkDigest, useMemory, identifyFileFormat); - } + /** + * Instancie la classe Sedav2Config selon les paramètres précédemment spécifiés dans le builder. + * + * @return la configuration SEDA v2 + */ + public Sedav2Config build() { + return new Sedav2Config( + validate, + format, + indent, + thread, + strict, + checkBinary, + checkSize, + checkDigest, + useMemory, + identifyFileFormat); + } } diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2EventHandler.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2EventHandler.java index 4b2f5e3..80a5654 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2EventHandler.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2EventHandler.java @@ -3,65 +3,64 @@ import jakarta.xml.bind.ValidationEvent; import jakarta.xml.bind.ValidationEventHandler; import jakarta.xml.bind.ValidationEventLocator; +import java.net.URL; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.w3c.dom.Node; -import java.net.URL; - public class Sedav2EventHandler implements ValidationEventHandler { - private static final Logger LOGGER = LoggerFactory.getLogger(Sedav2EventHandler.class); + private static final Logger LOGGER = LoggerFactory.getLogger(Sedav2EventHandler.class); - public boolean handleEvent(ValidationEvent event) { + public boolean handleEvent(ValidationEvent event) { - if (event == null) { - throw new IllegalArgumentException(); - } + if (event == null) { + throw new IllegalArgumentException(); + } - switch (event.getSeverity()) { - case ValidationEvent.WARNING -> { - LOGGER.info("Warning {} {}", event.getMessage(), getLocation(event)); - return true; - } - case ValidationEvent.ERROR -> { - LOGGER.info("Error {} {}", event.getMessage(), getLocation(event)); - return false; - } - case ValidationEvent.FATAL_ERROR -> { - LOGGER.info("FatalError {} {}", event.getMessage(), getLocation(event)); - return false; - } - default -> { - assert false : "UnrecognizedSeverity"; - } - } + switch (event.getSeverity()) { + case ValidationEvent.WARNING -> { + LOGGER.info("Warning {} {}", event.getMessage(), getLocation(event)); + return true; + } + case ValidationEvent.ERROR -> { + LOGGER.info("Error {} {}", event.getMessage(), getLocation(event)); + return false; + } + case ValidationEvent.FATAL_ERROR -> { + LOGGER.info("FatalError {} {}", event.getMessage(), getLocation(event)); return false; + } + default -> { + assert false : "UnrecognizedSeverity"; + } } + return false; + } - private String getLocation(ValidationEvent event) { - StringBuilder msg = new StringBuilder(); + private String getLocation(ValidationEvent event) { + StringBuilder msg = new StringBuilder(); - ValidationEventLocator locator = event.getLocator(); + ValidationEventLocator locator = event.getLocator(); - if (locator != null) { - URL url = locator.getURL(); - Object obj = locator.getObject(); - Node node = locator.getNode(); - int line = locator.getLineNumber(); + if (locator != null) { + URL url = locator.getURL(); + Object obj = locator.getObject(); + Node node = locator.getNode(); + int line = locator.getLineNumber(); - if (url != null || line != -1) { - msg.append("line ").append(line); - if (url != null) { - msg.append(" of ").append(url); - } - } else if (obj != null) { - msg.append(" obj: ").append(obj); - } else if (node != null) { - msg.append(" node: ").append(node); - } + if (url != null || line != -1) { + msg.append("line ").append(line); + if (url != null) { + msg.append(" of ").append(url); } - - return msg.toString(); + } else if (obj != null) { + msg.append(" obj: ").append(obj); + } else if (node != null) { + msg.append(" node: ").append(node); + } } + + return msg.toString(); + } } diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Listener.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Listener.java index 8fe7c83..e3a2d8b 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Listener.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Listener.java @@ -7,21 +7,19 @@ public class Sedav2Listener extends Marshaller.Listener { - private static final Logger LOGGER = LoggerFactory.getLogger(Sedav2Listener.class); + private static final Logger LOGGER = LoggerFactory.getLogger(Sedav2Listener.class); - @Override - public void beforeMarshal(Object source) { - if (source != null) { - LOGGER.info("Before: {}", ToStringBuilder.reflectionToString(source)); - } + @Override + public void beforeMarshal(Object source) { + if (source != null) { + LOGGER.info("Before: {}", ToStringBuilder.reflectionToString(source)); } + } - @Override - public void afterMarshal(Object source) { - if (source != null) { - LOGGER.info("After: {}", source); - } + @Override + public void afterMarshal(Object source) { + if (source != null) { + LOGGER.info("After: {}", source); } - + } } - diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Parser.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Parser.java index 51ab4e4..7406942 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Parser.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Parser.java @@ -18,17 +18,16 @@ */ package fr.xelians.sipg.service.sedav2; +import java.io.IOException; +import java.io.InputStream; +import java.util.ArrayList; +import javax.xml.parsers.ParserConfigurationException; +import javax.xml.parsers.SAXParserFactory; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.xml.sax.*; import org.xml.sax.helpers.DefaultHandler; -import javax.xml.parsers.ParserConfigurationException; -import javax.xml.parsers.SAXParserFactory; -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; - /** * La classe Sedav2Parser permet de parser le manifeste XML d'une archive au format SEDA v2.1. * @@ -36,138 +35,136 @@ */ class Sedav2Parser extends DefaultHandler { - private static final Logger LOGGER = LoggerFactory.getLogger(Sedav2Parser.class); - - private final ArrayList binaryObjects = new ArrayList<>(); - private Sedav2BinaryObject binaryObject; - private StringBuilder buffer; - - private Sedav2Parser() { + private static final Logger LOGGER = LoggerFactory.getLogger(Sedav2Parser.class); + + private final ArrayList binaryObjects = new ArrayList<>(); + private Sedav2BinaryObject binaryObject; + private StringBuilder buffer; + + private Sedav2Parser() {} + + /** + * Parse array list. + * + * @param is the is + * @return the array list + * @throws IOException the io exception + * @throws ParserConfigurationException the parser configuration exception + * @throws SAXException the sax exception + */ + static ArrayList parse(InputStream is) + throws IOException, ParserConfigurationException, SAXException { + Sedav2Parser parser = new Sedav2Parser(); + XMLReader reader = SAXParserFactory.newInstance().newSAXParser().getXMLReader(); + reader.setContentHandler(parser); + reader.setErrorHandler(parser); + reader.setFeature("http://xml.org/sax/features/validation", false); + reader.setFeature("http://xml.org/sax/features/namespaces", false); + + // Avoid XXE + reader.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); + reader.setFeature("http://xml.org/sax/features/external-general-entities", false); + reader.setFeature("http://xml.org/sax/features/external-parameter-entities", false); + + reader.parse(new InputSource(is)); + return parser.binaryObjects; + } + + @Override + public void startElement(String uri, String local, String raw, Attributes attrs) { + if ("BinaryDataObject".equals(raw)) { + binaryObject = new Sedav2BinaryObject(); + return; } - /** - * Parse array list. - * - * @param is the is - * @return the array list - * @throws IOException the io exception - * @throws ParserConfigurationException the parser configuration exception - * @throws SAXException the sax exception - */ - static ArrayList parse(InputStream is) - throws IOException, ParserConfigurationException, SAXException { - Sedav2Parser parser = new Sedav2Parser(); - XMLReader reader = SAXParserFactory.newInstance().newSAXParser().getXMLReader(); - reader.setContentHandler(parser); - reader.setErrorHandler(parser); - reader.setFeature("http://xml.org/sax/features/validation", false); - reader.setFeature("http://xml.org/sax/features/namespaces", false); - - // Avoid XXE - reader.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); - reader.setFeature("http://xml.org/sax/features/external-general-entities", false); - reader.setFeature("http://xml.org/sax/features/external-parameter-entities", false); - - reader.parse(new InputSource(is)); - return parser.binaryObjects; - } + if (binaryObject != null) { + buffer = new StringBuilder(); - @Override - public void startElement(String uri, String local, String raw, Attributes attrs) { - if ("BinaryDataObject".equals(raw)) { - binaryObject = new Sedav2BinaryObject(); - return; - } - - if (binaryObject != null) { - buffer = new StringBuilder(); - - if ("MessageDigest".equals(raw)) { - for (int i = 0; i < attrs.getLength(); i++) { - if ("algorithm".equals(attrs.getQName(i))) { - binaryObject.setAlgorithm(attrs.getValue(i)); - } - } - } + if ("MessageDigest".equals(raw)) { + for (int i = 0; i < attrs.getLength(); i++) { + if ("algorithm".equals(attrs.getQName(i))) { + binaryObject.setAlgorithm(attrs.getValue(i)); + } } + } } + } - @Override - public void characters(char[] ch, int start, int length) { - if (buffer != null) { - buffer.append(ch, start, length); - } + @Override + public void characters(char[] ch, int start, int length) { + if (buffer != null) { + buffer.append(ch, start, length); } + } - @Override - public void endElement(String uri, String local, String raw) { - if (binaryObject != null) { - - if ("Uri".equals(raw)) { - binaryObject.setUri(buffer.toString()); - buffer = null; - return; - } - - if ("MessageDigest".equals(raw)) { - binaryObject.setDigest(buffer.toString()); - buffer = null; - return; - } - - if ("Size".equals(raw)) { - binaryObject.setSize(Long.parseLong(buffer.toString())); - buffer = null; - return; - } - - if ("FormatId".equals(raw)) { - binaryObject.setFormat(buffer.toString()); - buffer = null; - return; - } - - if ("BinaryDataObject".equals(raw)) { - binaryObjects.add(binaryObject); - binaryObject = null; - buffer = null; - return; - } - } + @Override + public void endElement(String uri, String local, String raw) { + if (binaryObject != null) { + if ("Uri".equals(raw)) { + binaryObject.setUri(buffer.toString()); buffer = null; - } + return; + } - @Override - public void warning(SAXParseException ex) { - LOGGER.warn(getLocationString(ex), ex); - } + if ("MessageDigest".equals(raw)) { + binaryObject.setDigest(buffer.toString()); + buffer = null; + return; + } - @Override - public void error(SAXParseException ex) { - LOGGER.warn(getLocationString(ex), ex); - } + if ("Size".equals(raw)) { + binaryObject.setSize(Long.parseLong(buffer.toString())); + buffer = null; + return; + } - @Override - public void fatalError(SAXParseException ex) { - LOGGER.warn(getLocationString(ex), ex); - } + if ("FormatId".equals(raw)) { + binaryObject.setFormat(buffer.toString()); + buffer = null; + return; + } - // Returns a string of the location. - private String getLocationString(SAXParseException ex) { - StringBuilder str = new StringBuilder(); - - String systemId = ex.getSystemId(); - if (systemId != null) { - int index = systemId.lastIndexOf('/'); - if (index != -1) { - systemId = systemId.substring(index + 1); - } - str.append(systemId); - } - str.append(':').append(ex.getLineNumber()); - str.append(':').append(ex.getColumnNumber()); - return str.toString(); + if ("BinaryDataObject".equals(raw)) { + binaryObjects.add(binaryObject); + binaryObject = null; + buffer = null; + return; + } } + buffer = null; + } + + @Override + public void warning(SAXParseException ex) { + LOGGER.warn(getLocationString(ex), ex); + } + + @Override + public void error(SAXParseException ex) { + LOGGER.warn(getLocationString(ex), ex); + } + + @Override + public void fatalError(SAXParseException ex) { + LOGGER.warn(getLocationString(ex), ex); + } + + // Returns a string of the location. + private String getLocationString(SAXParseException ex) { + StringBuilder str = new StringBuilder(); + + String systemId = ex.getSystemId(); + if (systemId != null) { + int index = systemId.lastIndexOf('/'); + if (index != -1) { + systemId = systemId.substring(index + 1); + } + str.append(systemId); + } + str.append(':').append(ex.getLineNumber()); + str.append(':').append(ex.getColumnNumber()); + return str.toString(); + } } diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Resolver.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Resolver.java index 175f972..f456f41 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Resolver.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Resolver.java @@ -19,49 +19,52 @@ package fr.xelians.sipg.service.sedav2; import fr.xelians.sipg.service.common.LSInputImpl; +import java.io.InputStream; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.w3c.dom.ls.LSInput; import org.w3c.dom.ls.LSResourceResolver; -import java.io.InputStream; - /** - * La classe Sedav2Resolver permet de résoudre les accès aux schémas inclus dans les XSD utilisés lors de la conversion - * en SEDA v2.1. + * La classe Sedav2Resolver permet de résoudre les accès aux schémas inclus dans les XSD utilisés + * lors de la conversion en SEDA v2.1. * * @author Emmanuel Deviller */ public class Sedav2Resolver implements LSResourceResolver { - private static final Logger LOGGER = LoggerFactory.getLogger(Sedav2Resolver.class); - - private final InputStream xmlInputStream; - private final InputStream xlinkInputStream; + private static final Logger LOGGER = LoggerFactory.getLogger(Sedav2Resolver.class); - /** - * Instantiates a new Sedav 2 resolver. - * - * @param xmlInputStream the xml input stream - * @param xlinkInputStream the xlink input stream - */ - public Sedav2Resolver(InputStream xmlInputStream, InputStream xlinkInputStream) { - this.xmlInputStream = xmlInputStream; - this.xlinkInputStream = xlinkInputStream; - } + private final InputStream xmlInputStream; + private final InputStream xlinkInputStream; - @Override - public LSInput resolveResource(final String type, final String namespaceURI, final String publicId, String systemId, - final String baseURI) { + /** + * Instantiates a new Sedav 2 resolver. + * + * @param xmlInputStream the xml input stream + * @param xlinkInputStream the xlink input stream + */ + public Sedav2Resolver(InputStream xmlInputStream, InputStream xlinkInputStream) { + this.xmlInputStream = xmlInputStream; + this.xlinkInputStream = xlinkInputStream; + } - return switch (systemId) { - case "http://www.w3.org/2001/xml.xsd" -> new LSInputImpl(publicId, systemId, xmlInputStream); - case "http://www.w3.org/1999/xlink.xsd" -> new LSInputImpl(publicId, systemId, xlinkInputStream); - default -> { - LOGGER.info("Unable to resolve resource {}", systemId); - yield null; - } - }; - } + @Override + public LSInput resolveResource( + final String type, + final String namespaceURI, + final String publicId, + String systemId, + final String baseURI) { + return switch (systemId) { + case "http://www.w3.org/2001/xml.xsd" -> new LSInputImpl(publicId, systemId, xmlInputStream); + case "http://www.w3.org/1999/xlink.xsd" -> + new LSInputImpl(publicId, systemId, xlinkInputStream); + default -> { + LOGGER.info("Unable to resolve resource {}", systemId); + yield null; + } + }; + } } diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Service.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Service.java index 155feda..7eb4fa2 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Service.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Service.java @@ -18,6 +18,10 @@ */ package fr.xelians.sipg.service.sedav2; +import static fr.xelians.sipg.service.common.ProgressState.FAIL; +import static fr.xelians.sipg.service.common.ProgressState.SUCCESS; + +import fr.xelians.sipg.model.ArchiveDeliveryRequestReply; import fr.xelians.sipg.model.ArchiveTransfer; import fr.xelians.sipg.service.common.ProgressEvent; import fr.xelians.sipg.service.common.ProgressListener; @@ -25,16 +29,6 @@ import fr.xelians.sipg.utils.ByteArrayInOutStream; import fr.xelians.sipg.utils.SipException; import fr.xelians.sipg.utils.SipUtils; -import org.apache.commons.io.FilenameUtils; -import org.apache.commons.lang3.Validate; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.xml.sax.SAXException; - -import javax.xml.parsers.ParserConfigurationException; -import javax.xml.transform.Source; -import javax.xml.transform.stream.StreamSource; -import javax.xml.validation.Validator; import java.io.IOException; import java.io.InputStream; import java.net.URI; @@ -44,15 +38,21 @@ import java.nio.file.Path; import java.util.ArrayList; import java.util.Collections; - -import static fr.xelians.sipg.service.common.ProgressState.FAIL; -import static fr.xelians.sipg.service.common.ProgressState.SUCCESS; +import javax.xml.parsers.ParserConfigurationException; +import javax.xml.transform.Source; +import javax.xml.transform.stream.StreamSource; +import javax.xml.validation.Validator; +import org.apache.commons.io.FilenameUtils; +import org.apache.commons.lang3.Validate; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.xml.sax.SAXException; /** - * La classe Sedav2Service offre des API pour valider et sérialiser une archive dans un paquet zip selon le standard - * SEDA v2.1. Le processus de sérialisation peut être contrôlé par configuration. Il est possible d'opérer une - * validation supplémentaire du fichier de description de l'archive selon un schéma RNG. Note. La classe Sedav2Service - * est thread-safe. + * La classe Sedav2Service offre des API pour valider et sérialiser une archive dans un paquet zip + * selon le standard SEDA v2.1. Le processus de sérialisation peut être contrôlé par configuration. + * Il est possible d'opérer une validation supplémentaire du fichier de description de l'archive + * selon un schéma RNG. Note. La classe Sedav2Service est thread-safe. * * @author Emmanuel Deviller * @see ArchiveTransfer @@ -60,392 +60,484 @@ */ public class Sedav2Service { - private static final Logger LOGGER = LoggerFactory.getLogger(Sedav2Service.class); + private static final Logger LOGGER = LoggerFactory.getLogger(Sedav2Service.class); - private static final Sedav2Service SEDA_V21 = new Sedav2Service(Sedav2Version.v21); - private static final Sedav2Service SEDA_V22 = new Sedav2Service(Sedav2Version.v22); + private static final Sedav2Service SEDA_V21 = new Sedav2Service(Sedav2Version.v21); + private static final Sedav2Service SEDA_V22 = new Sedav2Service(Sedav2Version.v22); - private final Sedav2Adapter sedaAdapter; + private final Sedav2Adapter sedaAdapter; - private Sedav2Service(Sedav2Version version) { - this.sedaAdapter = switch (version) { - case v21 -> Sedav21Adapter.INSTANCE; - case v22 -> Sedav22Adapter.INSTANCE; + private Sedav2Service(Sedav2Version version) { + this.sedaAdapter = + switch (version) { + case v21 -> Sedav21Adapter.INSTANCE; + case v22 -> Sedav22Adapter.INSTANCE; }; + } + + /** + * Retourne l'instance singleton de la classe Sedav2Service v2.1. + * + * @return l 'instance singleton + */ + public static Sedav2Service getInstance() { + return SEDA_V21; + } + + /** + * Retourne l'instance singleton de la classe Sedav2Service v2.2. + * + * @return l 'instance singleton + */ + public static Sedav2Service getV22Instance() { + return SEDA_V22; + } + + /** + * Sérialise l'archive dans un paquet zip au format SEDA v2.1. + * + * @param archive l'archive à sérialiser + * @param zipPath le path du paquet zip + */ + public void write(ArchiveTransfer archive, Path zipPath) { + write(archive, zipPath, null, Sedav2Config.DEFAULT); + } + + /** + * Sérialise l'archive dans un paquet zip au format SEDA v2.1. Le fichier XML de description de + * l'archive peut être validé selon le schéma RNG défini par le Validator. + * + *

Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application + * appelante de s'assurer que l'objet {@link Validator} n'est utilisé à tout moment que par une + * seule et même thread. + * + * @param archive l'archive à sérialiser + * @param zipPath le path du paquet zip + * @param validator le validateur RNG + */ + public void write(ArchiveTransfer archive, Path zipPath, Validator validator) { + write(archive, zipPath, validator, Sedav2Config.DEFAULT); + } + + /** + * Sérialise l'archive dans un paquet zip au format SEDA v2.1. La configuration permet de + * contrôler le processus de sérialisation. + * + * @param archive l'archive à sérialiser + * @param zipPath le path du paquet zip + * @param config la configuration utilisée lors de la sérialisation + */ + public void write(ArchiveTransfer archive, Path zipPath, Sedav2Config config) { + write(archive, zipPath, null, config); + } + + /** + * Sérialise l'archive dans un paquet zip au format SEDA v2.1. Le fichier XML de description de + * l'archive peut être validé selon le schéma RNG défini par le Validator. La configuration permet + * de contrôler le processus de conversion et de sérialisation. + * + *

Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application + * appelante de s'assurer que l'objet {@link Validator} n'est utilisé à tout moment que par une + * seule et même thread. + * + * @param archive l'archive à sérialiser + * @param zipPath le path du paquet zip + * @param validator le validateur RNG + * @param config la configuration utilisée lors du processus de sérialisation + */ + public void write( + ArchiveTransfer archive, Path zipPath, Validator validator, Sedav2Config config) { + Validate.notNull(archive, SipUtils.NOT_NULL, "archiveTransfer"); + Validate.notNull(zipPath, SipUtils.NOT_NULL, "zipPath"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + try { + Files.deleteIfExists(zipPath); + } catch (IOException ex) { + throw new SipException("Unable to delete file " + zipPath, ex); } - /** - * Retourne l'instance singleton de la classe Sedav2Service v2.1. - * - * @return l 'instance singleton - */ - public static Sedav2Service getInstance() { - return SEDA_V21; + sedaAdapter.write(archive, validator, zipPath, config); + } + + /** + * Sérialise la réponse dans un paquet zip au format SEDA v2.1. + * + * @param archive l'archive à sérialiser + * @param zipPath le path du paquet zip + */ + public void write(ArchiveDeliveryRequestReply archive, Path zipPath) { + write(archive, zipPath, null, Sedav2Config.DEFAULT); + } + + /** + * Sérialise la réponse dans un paquet zip au format SEDA v2.1. Le fichier XML de description de + * l'archive peut être validé selon le schéma RNG défini par le Validator. + * + *

Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application + * appelante de s'assurer que l'objet {@link Validator} n'est utilisé à tout moment que par une + * seule et même thread. + * + * @param archive l'archive à sérialiser + * @param zipPath le path du paquet zip + * @param validator le validateur RNG + */ + public void write(ArchiveDeliveryRequestReply archive, Path zipPath, Validator validator) { + write(archive, zipPath, validator, Sedav2Config.DEFAULT); + } + + /** + * Sérialise la réponse dans un paquet zip au format SEDA v2.1. La configuration permet de + * contrôler le processus de sérialisation. + * + * @param archive l'archive à sérialiser + * @param zipPath le path du paquet zip + * @param config la configuration utilisée lors de la sérialisation + */ + public void write(ArchiveDeliveryRequestReply archive, Path zipPath, Sedav2Config config) { + write(archive, zipPath, null, config); + } + + /** + * Sérialise la réponse dans un paquet zip au format SEDA v2.1. Le fichier XML de description de + * l'archive peut être validé selon le schéma RNG défini par le Validator. La configuration permet + * de contrôler le processus de conversion et de sérialisation. + * + *

Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application + * appelante de s'assurer que l'objet {@link Validator} n'est utilisé à tout moment que par une + * seule et même thread. + * + * @param archive l'archive à sérialiser + * @param zipPath le path du paquet zip + * @param validator le validateur RNG + * @param config la configuration utilisée lors du processus de sérialisation + */ + public void write( + ArchiveDeliveryRequestReply archive, Path zipPath, Validator validator, Sedav2Config config) { + Validate.notNull(archive, SipUtils.NOT_NULL, "archiveTransfer"); + Validate.notNull(zipPath, SipUtils.NOT_NULL, "zipPath"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + try { + Files.deleteIfExists(zipPath); + } catch (IOException ex) { + throw new SipException("Unable to delete file " + zipPath, ex); } - /** - * Retourne l'instance singleton de la classe Sedav2Service v2.2. - * - * @return l 'instance singleton - */ - public static Sedav2Service getV22Instance() { - return SEDA_V22; + sedaAdapter.write(archive, validator, zipPath, config); + } + + /** + * Valide le XML de description de l'archive selon le schéma défini par le standard SEDA v2.1. + * + * @param archive l'archive à valider + */ + public void validate(ArchiveTransfer archive) { + validate(archive, null, Sedav2Config.DEFAULT); + } + + /** + * Valide le XML de description de l'archive selon le schéma défini par le standard SEDA v2.1. La + * configuration permet de contrôler le processus de validation. + * + * @param archive l'archive à valider + * @param config la configuration utilisée lors du processus de validation + */ + public void validate(ArchiveTransfer archive, Sedav2Config config) { + validate(archive, null, config); + } + + /** + * Valide le XML de description de l'archive selon le schéma défini par le standard SEDA v2.1. Le + * XML de description de l'archive peut être validé selon le schéma RNG défini par le Validator. + * + *

Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application + * appelante de s'assurer que l'objet {@link Validator} n'est utilisé à tout moment que par une + * seule et même thread. + * + * @param archive l'archive à valider + * @param validator le validateur RNG + */ + public void validate(ArchiveTransfer archive, Validator validator) { + validate(archive, validator, Sedav2Config.DEFAULT); + } + + /** + * Valide le XML de description de l'archive selon le schéma défini par le standard SEDA v2.1. Le + * XML de description de l'archive peut être validé selon le schéma RNG défini par le Validator. + * La configuration permet de contrôler le processus de validation. + * + *

Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application + * appelante de s'assurer que l'objet {@link Validator} n'est utilisé à tout moment que par une + * seule et même thread. + * + * @param archive l'archive à valider + * @param validator le validateur RNG + * @param config la configuration utilisée lors du processus de validation + */ + public void validate(ArchiveTransfer archive, Validator validator, Sedav2Config config) { + Validate.notNull(archive, SipUtils.NOT_NULL, "archive"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + sedaAdapter.validate(archive, validator, config); + } + + /** + * Valide le fichier XML ou l'archive selon le schéma défini par le standard SEDA v2.1. + * + * @param path le path du fichier XML à valider + */ + public void validate(Path path) { + Validate.notNull(path, SipUtils.NOT_NULL, "path"); + validate(path, null, Sedav2Config.DEFAULT, null); + } + + /** + * Valide le fichier XML ou l'archive selon le schéma défini par le standard SEDA v2.1. L'objet + * Validator n'est pas thread-safe, il est de la responsabilité de l'application appelante de + * s'assurer que l'objet {@link Validator} n'est utilisé à tout moment que par une seule et même + * thread. + * + * @param path le path du fichier XML à valider + * @param validator le validateur RNG + */ + public void validate(Path path, Validator validator) { + Validate.notNull(path, SipUtils.NOT_NULL, "path"); + + validate(path, validator, Sedav2Config.DEFAULT, null); + } + + /** + * Valide le fichier XML ou l'archive selon le schéma défini par le standard SEDA v2.1. + * + * @param path le path du fichier XML à valider + * @param config la configuration utilisée lors du processus de validation + */ + public void validate(Path path, Sedav2Config config) { + Validate.notNull(path, SipUtils.NOT_NULL, "path"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + validate(path, null, config, null); + } + + /** + * Valide le fichier XML ou l'archive selon le schéma défini par le standard SEDA v2.1. L'objet + * Validator n'est pas thread-safe, il est de la responsabilité de l'application appelante de + * s'assurer que l'objet {@link Validator} n'est utilisé à tout moment que par une seule et même + * thread. + * + * @param path le path du fichier XML à valider + * @param validator le validateur RNG + * @param config the config + */ + public void validate(Path path, Validator validator, Sedav2Config config) { + Validate.notNull(path, SipUtils.NOT_NULL, "path"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + validate(path, validator, config, null); + } + + /** + * Valide le fichier XML ou l'archive selon le schéma défini par le standard SEDA v2.1. Le {@link + * Validator} permet d'appliquer une validation supplémentaire. Note. L'objet Validator n'est pas + * thread-safe, il est de la responsabilité de l'application appelante de s'assurer que l'objet + * {@link Validator} n'est utilisé à tout moment que par une seule et même thread. + * + * @param path le path du fichier XML à valider + * @param validator le validateur RNG + * @param config la configuration utilisée lors du processus de validation + * @param listener la méthode de callback pour suivre la progression de la validation + */ + public void validate( + Path path, Validator validator, Sedav2Config config, ProgressListener listener) { + Validate.notNull(path, SipUtils.NOT_NULL, "path"); + Validate.notNull(config, SipUtils.NOT_NULL, "config"); + + String name = path.toString().toLowerCase(); + if (name.endsWith(".xml")) { + validateXml(path, validator, config); + } else { + validateZip(path, validator, config, listener); } + } - /** - * Sérialise l'archive dans un paquet zip au format SEDA v2.1. - * - * @param archive l'archive à sérialiser - * @param zipPath le path du paquet zip - */ - public void write(ArchiveTransfer archive, Path zipPath) { - write(archive, zipPath, null, Sedav2Config.DEFAULT); - } + private void validateXml(Path xmlPath, Validator validator, Sedav2Config config) { + Validate.notNull(xmlPath, SipUtils.NOT_NULL, "path"); - /** - * Sérialise l'archive dans un paquet zip au format SEDA v2.1. Le fichier XML de description de l'archive peut être - * validé selon le schéma RNG défini par le Validator. - *

- * Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application appelante de s'assurer - * que l'objet {@link Validator} n'est utilisé à tout moment que par une seule et même thread. - * - * @param archive l'archive à sérialiser - * @param zipPath le path du paquet zip - * @param validator le validateur RNG - */ - public void write(ArchiveTransfer archive, Path zipPath, Validator validator) { - write(archive, zipPath, validator, Sedav2Config.DEFAULT); + try (InputStream is = Files.newInputStream(xmlPath)) { + this.validate(new StreamSource(is), config); + } catch (IOException ex) { + throw new SipException("Unable to validate " + xmlPath, ex); } - /** - * Sérialise l'archive dans un paquet zip au format SEDA v2.1. La configuration permet de contrôler le processus de - * sérialisation. - * - * @param archive l'archive à sérialiser - * @param zipPath le path du paquet zip - * @param config la configuration utilisée lors de la sérialisation - */ - public void write(ArchiveTransfer archive, Path zipPath, Sedav2Config config) { - write(archive, zipPath, null, config); + // Check manifest is valid against rng + if (validator != null) { + try (InputStream is = Files.newInputStream(xmlPath)) { + validator.validate(new StreamSource(is)); + } catch (IOException | SAXException ex) { + throw new SipException("Unable to validate " + xmlPath, ex); + } } - - /** - * Sérialise l'archive dans un paquet zip au format SEDA v2.1. Le fichier XML de description de l'archive peut être - * validé selon le schéma RNG défini par le Validator. La configuration permet de contrôler le processus de conversion - * et de sérialisation. - *

- * Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application appelante de s'assurer - * que l'objet {@link Validator} n'est utilisé à tout moment que par une seule et même thread. - * - * @param archive l'archive à sérialiser - * @param zipPath le path du paquet zip - * @param validator le validateur RNG - * @param config la configuration utilisée lors du processus de sérialisation - */ - public void write(ArchiveTransfer archive, Path zipPath, Validator validator, Sedav2Config config) { - Validate.notNull(archive, SipUtils.NOT_NULL, "archiveTransfer"); - Validate.notNull(zipPath, SipUtils.NOT_NULL, "zipPath"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); - - try { - Files.deleteIfExists(zipPath); - } catch (IOException ex) { - throw new SipException("Unable to delete file " + zipPath, ex); - } - - sedaAdapter.write(archive, validator, zipPath, config); - } - - /** - * Valide le XML de description de l'archive selon le schéma défini par le standard SEDA v2.1. - * - * @param archive l'archive à valider - */ - public void validate(ArchiveTransfer archive) { - validate(archive, null, Sedav2Config.DEFAULT); - } - - /** - * Valide le XML de description de l'archive selon le schéma défini par le standard SEDA v2.1. La configuration permet - * de contrôler le processus de validation. - * - * @param archive l'archive à valider - * @param config la configuration utilisée lors du processus de validation - */ - public void validate(ArchiveTransfer archive, Sedav2Config config) { - validate(archive, null, config); + } + + /** + * Valide la source XML source selon le schéma défini par le standard SEDA v2.1. + * + * @param source la source XML à valider + */ + private void validate(Source source, Sedav2Config config) { + Validate.notNull(source, SipUtils.NOT_NULL, "source"); + sedaAdapter.validate(source, config); + } + + private void validateZip( + Path zipPath, + Validator validator, + Sedav2Config config, + ProgressListener listener) { + + String id = FilenameUtils.removeExtension(zipPath.getFileName().toString()); + updateListener(listener, id, SUCCESS, Sedav2Step.START, "Archive: " + zipPath); + + // Check zip exists + if (Files.notExists(zipPath)) { + String msg = "Archive does not exist: " + zipPath; + updateListener(listener, id, FAIL, Sedav2Step.ARCHIVE_EXIST, msg); + throw new SipException(msg); } + updateListener(listener, id, SUCCESS, Sedav2Step.ARCHIVE_EXIST, "Archive exists"); - /** - * Valide le XML de description de l'archive selon le schéma défini par le standard SEDA v2.1. Le XML de description - * de l'archive peut être validé selon le schéma RNG défini par le Validator. - *

- * Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application appelante de s'assurer - * que l'objet {@link Validator} n'est utilisé à tout moment que par une seule et même thread. - * - * @param archive l'archive à valider - * @param validator le validateur RNG - */ - public void validate(ArchiveTransfer archive, Validator validator) { - validate(archive, validator, Sedav2Config.DEFAULT); + // Check zip is valid + if (!Files.isReadable(zipPath) || Files.isDirectory(zipPath)) { + String msg = "Archive is not a readable zip: " + zipPath; + updateListener(listener, id, FAIL, Sedav2Step.ARCHIVE_READABLE, msg); + throw new SipException(msg); } - - /** - * Valide le XML de description de l'archive selon le schéma défini par le standard SEDA v2.1. Le XML de description - * de l'archive peut être validé selon le schéma RNG défini par le Validator. La configuration permet de contrôler le - * processus de validation. - *

- * Note. L'objet Validator n'est pas thread-safe, il est de la responsabilité de l'application appelante de s'assurer - * que l'objet {@link Validator} n'est utilisé à tout moment que par une seule et même thread. - * - * @param archive l'archive à valider - * @param validator le validateur RNG - * @param config la configuration utilisée lors du processus de validation - */ - public void validate(ArchiveTransfer archive, Validator validator, Sedav2Config config) { - Validate.notNull(archive, SipUtils.NOT_NULL, "archive"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); - - sedaAdapter.validate(archive, validator, config); - } - - /** - * Valide le fichier XML ou l'archive selon le schéma défini par le standard SEDA v2.1. - * - * @param path le path du fichier XML à valider - */ - public void validate(Path path) { - Validate.notNull(path, SipUtils.NOT_NULL, "path"); - validate(path, null, Sedav2Config.DEFAULT, null); - } - - /** - * Valide le fichier XML ou l'archive selon le schéma défini par le standard SEDA v2.1. L'objet Validator n'est pas - * thread-safe, il est de la responsabilité de l'application appelante de s'assurer que l'objet {@link Validator} - * n'est utilisé à tout moment que par une seule et même thread. - * - * @param path le path du fichier XML à valider - * @param validator le validateur RNG - */ - public void validate(Path path, Validator validator) { - Validate.notNull(path, SipUtils.NOT_NULL, "path"); - - validate(path, validator, Sedav2Config.DEFAULT, null); - } - - /** - * Valide le fichier XML ou l'archive selon le schéma défini par le standard SEDA v2.1. - * - * @param path le path du fichier XML à valider - * @param config la configuration utilisée lors du processus de validation - */ - public void validate(Path path, Sedav2Config config) { - Validate.notNull(path, SipUtils.NOT_NULL, "path"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); - - validate(path, null, config, null); - } - - /** - * Valide le fichier XML ou l'archive selon le schéma défini par le standard SEDA v2.1. L'objet Validator n'est pas - * thread-safe, il est de la responsabilité de l'application appelante de s'assurer que l'objet {@link Validator} - * n'est utilisé à tout moment que par une seule et même thread. - * - * @param path le path du fichier XML à valider - * @param validator le validateur RNG - * @param config the config - */ - public void validate(Path path, Validator validator, Sedav2Config config) { - Validate.notNull(path, SipUtils.NOT_NULL, "path"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); - - validate(path, validator, config, null); - } - - /** - * Valide le fichier XML ou l'archive selon le schéma défini par le standard SEDA v2.1. Le {@link Validator} permet - * d'appliquer une validation supplémentaire. Note. L'objet Validator n'est pas thread-safe, il est de la - * responsabilité de l'application appelante de s'assurer que l'objet {@link Validator} n'est utilisé à tout moment - * que par une seule et même thread. - * - * @param path le path du fichier XML à valider - * @param validator le validateur RNG - * @param config la configuration utilisée lors du processus de validation - * @param listener la méthode de callback pour suivre la progression de la validation - */ - public void validate(Path path, Validator validator, Sedav2Config config, ProgressListener listener) { - Validate.notNull(path, SipUtils.NOT_NULL, "path"); - Validate.notNull(config, SipUtils.NOT_NULL, "config"); - - String name = path.toString().toLowerCase(); - if (name.endsWith(".xml")) { - validateXml(path, validator, config); - } else { - validateZip(path, validator, config, listener); - } - } - - private void validateXml(Path xmlPath, Validator validator, Sedav2Config config) { - Validate.notNull(xmlPath, SipUtils.NOT_NULL, "path"); - - try (InputStream is = Files.newInputStream(xmlPath)) { - this.validate(new StreamSource(is), config); - } catch (IOException ex) { - throw new SipException("Unable to validate " + xmlPath, ex); + updateListener(listener, id, SUCCESS, Sedav2Step.ARCHIVE_READABLE, "Archive is readable"); + + // Check zip is really a zip + URI zipUri = SipUtils.createZipURI(zipPath); + try (FileSystem zipArchive = FileSystems.newFileSystem(zipUri, Collections.emptyMap())) { + updateListener(listener, id, SUCCESS, Sedav2Step.ARCHIVE_UNZIP, "Archive is opened"); + + Path manifestPath = zipArchive.getPath("manifest.xml"); + if (Files.notExists(manifestPath) || Files.isDirectory(manifestPath)) { + String msg = "Archive does not contain a manifest: " + zipPath; + updateListener(listener, id, FAIL, Sedav2Step.MANIFEST_EXIST, msg); + throw new SipException(msg); + } + updateListener(listener, id, SUCCESS, Sedav2Step.MANIFEST_EXIST, "Manifest exists"); + + ByteArrayInOutStream manifest = new ByteArrayInOutStream(1024); + + // Check manifest is valid against xsd + Files.copy(manifestPath, manifest); + + try { + validate(new StreamSource(manifest.getInputStream()), config); + } catch (SipException ex) { + String msg = "Unable to validate manifest: " + zipPath; + updateListener(listener, id, FAIL, Sedav2Step.MANIFEST_SEDA, msg); + throw ex; + } + + updateListener(listener, id, SUCCESS, Sedav2Step.MANIFEST_SEDA, "Manifest conforms to SEDA"); + + // Check manifest is valid against rng + if (validator != null) { + try { + validator.validate(new StreamSource(manifest.getInputStream())); + } catch (IOException | SAXException ex) { + String msg = "Unable to validate manifest: " + zipPath; + updateListener(listener, id, FAIL, Sedav2Step.MANIFEST_VALIDATOR, msg); + throw new SipException(msg, ex); } + updateListener( + listener, id, SUCCESS, Sedav2Step.MANIFEST_VALIDATOR, "Manifest conforms to validator"); + } - // Check manifest is valid against rng - if (validator != null) { - try (InputStream is = Files.newInputStream(xmlPath)) { - validator.validate(new StreamSource(is)); - } catch (IOException | SAXException ex) { - throw new SipException("Unable to validate " + xmlPath, ex); - } + // Parse the manifest to look for binary path + if (config.checkBinary()) { + ArrayList binaryObjects; + try { + binaryObjects = Sedav2Parser.parse(manifest.getInputStream()); + } catch (IOException | ParserConfigurationException | SAXException ex) { + String msg = "Unable to parse manifest: " + zipPath; + updateListener(listener, id, FAIL, Sedav2Step.MANIFEST_PARSE, msg); + throw new SipException(msg, ex); } - } - - /** - * Valide la source XML source selon le schéma défini par le standard SEDA v2.1. - * - * @param source la source XML à valider - */ - private void validate(Source source, Sedav2Config config) { - Validate.notNull(source, SipUtils.NOT_NULL, "source"); - sedaAdapter.validate(source, config); - } - - private void validateZip(Path zipPath, Validator validator, Sedav2Config config, - ProgressListener listener) { + updateListener(listener, id, SUCCESS, Sedav2Step.MANIFEST_PARSE, "Manifest is parsed"); - String id = FilenameUtils.removeExtension(zipPath.getFileName().toString()); - updateListener(listener, id, SUCCESS, Sedav2Step.START, "Archive: " + zipPath); + for (Sedav2BinaryObject binaryObject : binaryObjects) { - // Check zip exists - if (Files.notExists(zipPath)) { - String msg = "Archive does not exist: " + zipPath; - updateListener(listener, id, FAIL, Sedav2Step.ARCHIVE_EXIST, msg); + // Check binaryPath exists + Path binaryPath = zipArchive.getPath(binaryObject.getUri()); + if (Files.notExists(binaryPath) || Files.isDirectory(binaryPath)) { + String msg = "Binary object does not exist: " + zipPath + "!" + binaryPath; + updateListener(listener, id, FAIL, Sedav2Step.BINARY_EXIST, msg); throw new SipException(msg); - } - updateListener(listener, id, SUCCESS, Sedav2Step.ARCHIVE_EXIST, "Archive exists"); - - // Check zip is valid - if (!Files.isReadable(zipPath) || Files.isDirectory(zipPath)) { - String msg = "Archive is not a readable zip: " + zipPath; - updateListener(listener, id, FAIL, Sedav2Step.ARCHIVE_READABLE, msg); + } + updateListener( + listener, + id, + SUCCESS, + Sedav2Step.BINARY_EXIST, + "Binary object exists: " + binaryPath); + + // Check binaryPath Directory is "Content" + Path parentPath = binaryPath.getParent(); + if (!"Content".equals(parentPath.getFileName().toString())) { + String msg = "Binary object folder is not valid: " + zipPath + "!" + binaryPath; + updateListener(listener, id, FAIL, Sedav2Step.BINARY_FOLDER, msg); throw new SipException(msg); - } - updateListener(listener, id, SUCCESS, Sedav2Step.ARCHIVE_READABLE, "Archive is readable"); - - // Check zip is really a zip - URI zipUri = SipUtils.createZipURI(zipPath); - try (FileSystem zipArchive = FileSystems.newFileSystem(zipUri, Collections.emptyMap())) { - updateListener(listener, id, SUCCESS, Sedav2Step.ARCHIVE_UNZIP, "Archive is opened"); - - Path manifestPath = zipArchive.getPath("manifest.xml"); - if (Files.notExists(manifestPath) || Files.isDirectory(manifestPath)) { - String msg = "Archive does not contain a manifest: " + zipPath; - updateListener(listener, id, FAIL, Sedav2Step.MANIFEST_EXIST, msg); - throw new SipException(msg); + } + updateListener( + listener, id, SUCCESS, Sedav2Step.BINARY_FOLDER, "Binary object folder is valid"); + + // Check binaryPath size + if (config.checkSize()) { + if (Files.size(binaryPath) != binaryObject.getSize()) { + String msg = "Binary object size is not valid: " + zipPath + "!" + binaryPath; + updateListener(listener, id, FAIL, Sedav2Step.BINARY_SIZE, msg); + throw new SipException(msg); } - updateListener(listener, id, SUCCESS, Sedav2Step.MANIFEST_EXIST, "Manifest exists"); - - ByteArrayInOutStream manifest = new ByteArrayInOutStream(1024); - - // Check manifest is valid against xsd - Files.copy(manifestPath, manifest); - - try { - validate(new StreamSource(manifest.getInputStream()), config); - } catch (SipException ex) { - String msg = "Unable to validate manifest: " + zipPath; - updateListener(listener, id, FAIL, Sedav2Step.MANIFEST_SEDA, msg); - throw ex; - } - - updateListener(listener, id, SUCCESS, Sedav2Step.MANIFEST_SEDA, "Manifest conforms to SEDA"); - - // Check manifest is valid against rng - if (validator != null) { - try { - validator.validate(new StreamSource(manifest.getInputStream())); - } catch (IOException | SAXException ex) { - String msg = "Unable to validate manifest: " + zipPath; - updateListener(listener, id, FAIL, Sedav2Step.MANIFEST_VALIDATOR, msg); - throw new SipException(msg, ex); - } - updateListener(listener, id, SUCCESS, Sedav2Step.MANIFEST_VALIDATOR, "Manifest conforms to validator"); + updateListener( + listener, id, SUCCESS, Sedav2Step.BINARY_SIZE, "Binary object size is valid"); + } + + // Check binaryPath hash equals the given hash + if (config.checkDigest()) { + String digest = SipUtils.digestHex(binaryPath, binaryObject.getAlgorithm()); + if (!digest.equals(binaryObject.getDigest())) { + String msg = + binaryPath + "Binary object digest is not valid: " + zipPath + "!" + binaryPath; + updateListener(listener, id, FAIL, Sedav2Step.BINARY_DIGEST, msg); + throw new SipException(msg); } + updateListener( + listener, id, SUCCESS, Sedav2Step.BINARY_DIGEST, "Binary object digest is valid"); + } - // Parse the manifest to look for binary path - if (config.checkBinary()) { - ArrayList binaryObjects; - try { - binaryObjects = Sedav2Parser.parse(manifest.getInputStream()); - } catch (IOException | ParserConfigurationException | SAXException ex) { - String msg = "Unable to parse manifest: " + zipPath; - updateListener(listener, id, FAIL, Sedav2Step.MANIFEST_PARSE, msg); - throw new SipException(msg, ex); - } - updateListener(listener, id, SUCCESS, Sedav2Step.MANIFEST_PARSE, "Manifest is parsed"); - - for (Sedav2BinaryObject binaryObject : binaryObjects) { - - // Check binaryPath exists - Path binaryPath = zipArchive.getPath(binaryObject.getUri()); - if (Files.notExists(binaryPath) || Files.isDirectory(binaryPath)) { - String msg = "Binary object does not exist: " + zipPath + "!" + binaryPath; - updateListener(listener, id, FAIL, Sedav2Step.BINARY_EXIST, msg); - throw new SipException(msg); - } - updateListener(listener, id, SUCCESS, Sedav2Step.BINARY_EXIST, "Binary object exists: " + binaryPath); - - // Check binaryPath Directory is "Content" - Path parentPath = binaryPath.getParent(); - if (!"Content".equals(parentPath.getFileName().toString())) { - String msg = "Binary object folder is not valid: " + zipPath + "!" + binaryPath; - updateListener(listener, id, FAIL, Sedav2Step.BINARY_FOLDER, msg); - throw new SipException(msg); - } - updateListener(listener, id, SUCCESS, Sedav2Step.BINARY_FOLDER, "Binary object folder is valid"); - - // Check binaryPath size - if (config.checkSize()) { - if (Files.size(binaryPath) != binaryObject.getSize()) { - String msg = "Binary object size is not valid: " + zipPath + "!" + binaryPath; - updateListener(listener, id, FAIL, Sedav2Step.BINARY_SIZE, msg); - throw new SipException(msg); - } - updateListener(listener, id, SUCCESS, Sedav2Step.BINARY_SIZE, "Binary object size is valid"); - } - - // Check binaryPath hash equals the given hash - if (config.checkDigest()) { - String digest = SipUtils.digestHex(binaryPath, binaryObject.getAlgorithm()); - if (!digest.equals(binaryObject.getDigest())) { - String msg = binaryPath + "Binary object digest is not valid: " + zipPath + "!" + binaryPath; - updateListener(listener, id, FAIL, Sedav2Step.BINARY_DIGEST, msg); - throw new SipException(msg); - } - updateListener(listener, id, SUCCESS, Sedav2Step.BINARY_DIGEST, "Binary object digest is valid"); - } - - // Check binaryPath Format. The Droid library does not support NIO FileSystem. - } - } - } catch (IOException ex) { - String msg = "Unable to open: " + zipPath; - updateListener(listener, id, FAIL, Sedav2Step.ARCHIVE_UNZIP, msg); - throw new SipException(msg, ex); + // Check binaryPath Format. The Droid library does not support NIO FileSystem. } - - updateListener(listener, id, SUCCESS, Sedav2Step.COMPLETE, "Archive is valid"); + } + } catch (IOException ex) { + String msg = "Unable to open: " + zipPath; + updateListener(listener, id, FAIL, Sedav2Step.ARCHIVE_UNZIP, msg); + throw new SipException(msg, ex); } - private void updateListener(ProgressListener listener, String id, ProgressState status, Sedav2Step step, - String message) { - if (listener != null) { - listener.progressChanged(new ProgressEvent<>(id, status, step, message)); - } + updateListener(listener, id, SUCCESS, Sedav2Step.COMPLETE, "Archive is valid"); + } + + private void updateListener( + ProgressListener listener, + String id, + ProgressState status, + Sedav2Step step, + String message) { + if (listener != null) { + listener.progressChanged(new ProgressEvent<>(id, status, step, message)); } - + } } diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Step.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Step.java index c3140e5..faf8e24 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Step.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Step.java @@ -24,56 +24,30 @@ * @author Emmanuel Deviller */ public enum Sedav2Step { - /** - * Start sedav 2 step. - */ - START, - /** - * Archive exist sedav 2 step. - */ - ARCHIVE_EXIST, - /** - * Archive readable sedav 2 step. - */ - ARCHIVE_READABLE, - /** - * Archive unzip sedav 2 step. - */ - ARCHIVE_UNZIP, - /** - * Manifest exist sedav 2 step. - */ - MANIFEST_EXIST, - /** - * Manifest seda sedav 2 step. - */ - MANIFEST_SEDA, - /** - * Manifest validator sedav 2 step. - */ - MANIFEST_VALIDATOR, - /** - * Manifest parse sedav 2 step. - */ - MANIFEST_PARSE, - /** - * Binary exist sedav 2 step. - */ - BINARY_EXIST, - /** - * Binary folder sedav 2 step. - */ - BINARY_FOLDER, - /** - * Binary size sedav 2 step. - */ - BINARY_SIZE, - /** - * Binary digest sedav 2 step. - */ - BINARY_DIGEST, - /** - * Complete sedav 2 step. - */ - COMPLETE + /** Start sedav 2 step. */ + START, + /** Archive exist sedav 2 step. */ + ARCHIVE_EXIST, + /** Archive readable sedav 2 step. */ + ARCHIVE_READABLE, + /** Archive unzip sedav 2 step. */ + ARCHIVE_UNZIP, + /** Manifest exist sedav 2 step. */ + MANIFEST_EXIST, + /** Manifest seda sedav 2 step. */ + MANIFEST_SEDA, + /** Manifest validator sedav 2 step. */ + MANIFEST_VALIDATOR, + /** Manifest parse sedav 2 step. */ + MANIFEST_PARSE, + /** Binary exist sedav 2 step. */ + BINARY_EXIST, + /** Binary folder sedav 2 step. */ + BINARY_FOLDER, + /** Binary size sedav 2 step. */ + BINARY_SIZE, + /** Binary digest sedav 2 step. */ + BINARY_DIGEST, + /** Complete sedav 2 step. */ + COMPLETE } diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Version.java b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Version.java index 2177e8b..e110dc9 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Version.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/Sedav2Version.java @@ -1,6 +1,6 @@ package fr.xelians.sipg.service.sedav2; public enum Sedav2Version { - v21, - v22 + v21, + v22 } diff --git a/src/main/java/fr/xelians/sipg/service/sedav2/package-info.java b/src/main/java/fr/xelians/sipg/service/sedav2/package-info.java index 81e0bca..8603a92 100644 --- a/src/main/java/fr/xelians/sipg/service/sedav2/package-info.java +++ b/src/main/java/fr/xelians/sipg/service/sedav2/package-info.java @@ -1,8 +1,9 @@ /** * Les classes service pour produire l'archive au format SEDA v2.1. - *

- * Ces classes utilisent le framework JAXB pour générer et valider le manifest de l'archive en XML. + * + *

Ces classes utilisent le framework JAXB pour générer et valider le manifest de l'archive en + * XML. * * @author Emmanuel Deviller */ -package fr.xelians.sipg.service.sedav2; \ No newline at end of file +package fr.xelians.sipg.service.sedav2; diff --git a/src/main/java/fr/xelians/sipg/utils/ByteArrayInOutStream.java b/src/main/java/fr/xelians/sipg/utils/ByteArrayInOutStream.java index 9f123c4..ecc80a2 100644 --- a/src/main/java/fr/xelians/sipg/utils/ByteArrayInOutStream.java +++ b/src/main/java/fr/xelians/sipg/utils/ByteArrayInOutStream.java @@ -22,44 +22,46 @@ import java.io.ByteArrayOutputStream; /** - * This class extends the ByteArrayOutputStream by providing a method that returns a new ByteArrayInputStream which uses - * the internal byte array buffer. This buffer is not copied, so no additional memory is used. After creating the - * ByteArrayInputStream the instance of the ByteArrayInOutStream can not be used anymore. - *

- * The ByteArrayInputStream can be retrieved using getInputStream(). + * This class extends the ByteArrayOutputStream by providing a method that returns a new + * ByteArrayInputStream which uses the internal byte array buffer. This buffer is not copied, so no + * additional memory is used. After creating the ByteArrayInputStream the instance of the + * ByteArrayInOutStream can not be used anymore. + * + *

The ByteArrayInputStream can be retrieved using getInputStream(). * * @author Nick Russler */ public class ByteArrayInOutStream extends ByteArrayOutputStream { - /** - * Creates a new ByteArrayInOutStream. The buffer capacity is initially 32 bytes, though its size increases if - * necessary. - */ - public ByteArrayInOutStream() { - super(); - } + /** + * Creates a new ByteArrayInOutStream. The buffer capacity is initially 32 bytes, though its size + * increases if necessary. + */ + public ByteArrayInOutStream() { + super(); + } - /** - * Creates a new ByteArrayInOutStream, with a buffer capacity of the specified size, in bytes. - * - * @param size the initial size. - * @throws IllegalArgumentException if size is negative. - */ - public ByteArrayInOutStream(int size) { - super(size); - } + /** + * Creates a new ByteArrayInOutStream, with a buffer capacity of the specified size, in bytes. + * + * @param size the initial size. + * @throws IllegalArgumentException if size is negative. + */ + public ByteArrayInOutStream(int size) { + super(size); + } - /** - * Creates a new ByteArrayInputStream that uses the internal byte array buffer of this ByteArrayInOutStream instance - * as its buffer array. The initial value of pos is set to zero and the initial value of count is the number of bytes - * that can be read from the byte array. The buffer array is not copied. This instance of ByteArrayInOutStream can not - * be used anymore after calling this method. - * - * @return the ByteArrayInputStream instance - */ - public ByteArrayInputStream getInputStream() { - // create new ByteArrayInputStream that respects the current count - return new ByteArrayInputStream(this.buf, 0, this.count); - } + /** + * Creates a new ByteArrayInputStream that uses the internal byte array buffer of this + * ByteArrayInOutStream instance as its buffer array. The initial value of pos is set to zero and + * the initial value of count is the number of bytes that can be read from the byte array. The + * buffer array is not copied. This instance of ByteArrayInOutStream can not be used anymore after + * calling this method. + * + * @return the ByteArrayInputStream instance + */ + public ByteArrayInputStream getInputStream() { + // create new ByteArrayInputStream that respects the current count + return new ByteArrayInputStream(this.buf, 0, this.count); + } } diff --git a/src/main/java/fr/xelians/sipg/utils/DroidUtils.java b/src/main/java/fr/xelians/sipg/utils/DroidUtils.java index 2aa0392..2c480dd 100644 --- a/src/main/java/fr/xelians/sipg/utils/DroidUtils.java +++ b/src/main/java/fr/xelians/sipg/utils/DroidUtils.java @@ -1,5 +1,16 @@ package fr.xelians.sipg.utils; +import static fr.xelians.sipg.utils.SipUtils.NOT_NULL; + +import java.io.IOException; +import java.io.InputStream; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.StandardCopyOption; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.Validate; import uk.gov.nationalarchives.droid.core.BinarySignatureIdentifier; @@ -13,228 +24,220 @@ import uk.gov.nationalarchives.droid.core.signature.FileFormatHit; import uk.gov.nationalarchives.droid.core.signature.droid6.InternalSignature; -import java.io.IOException; -import java.io.InputStream; -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.StandardCopyOption; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static fr.xelians.sipg.utils.SipUtils.NOT_NULL; - /** - * La classe DroidUtils offre des méthodes statiques utilitaires. Note. Il est fortement déconseillé d'utiliser cette - * classe en dehors de la librairie. + * La classe DroidUtils offre des méthodes statiques utilitaires. Note. Il est fortement déconseillé + * d'utiliser cette classe en dehors de la librairie. * * @author Emmanuel Deviller */ public final class DroidUtils { - private static final String[] EXTENSIONS = {"PDF", "JPG", "JPEG", "TIF", "TIFF", "PNG", "XML", "TXT", "CSV", "DOC", - "DOCX", "XLS", "XLSX", "ZIP"}; - - private static final Map> SIGNATURES_BY_ID = new HashMap<>(); - - private DroidUtils() { - } - - /** - * Initialise les identifiants binaires des signatures Droid à partir de la ressource par défaut. - * - * @return les identifiants binaires des signatures - */ - private static BinarySignatureIdentifier initDroidSignatures() { - Path signatureTmpPath = null; - try (InputStream is = SipUtils.resourceAsStream("droid_signaturefile.xml")) { - if (is != null) { - signatureTmpPath = Files.createTempFile("droid", ".xml"); - Files.copy(is, signatureTmpPath, StandardCopyOption.REPLACE_EXISTING); - BinarySignatureIdentifier bsi = initDroidSignatures(signatureTmpPath); - List.of(EXTENSIONS).forEach(ext -> { - List isigs = buildInternalSignatures(bsi, ext); - if (!isigs.isEmpty()) { - SIGNATURES_BY_ID.put(ext, isigs); - } + private static final String[] EXTENSIONS = { + "PDF", "JPG", "JPEG", "TIF", "TIFF", "PNG", "XML", "TXT", "CSV", "DOC", "DOCX", "XLS", "XLSX", + "ZIP" + }; + + private static final Map> SIGNATURES_BY_ID = new HashMap<>(); + + private DroidUtils() {} + + /** + * Initialise les identifiants binaires des signatures Droid à partir de la ressource par défaut. + * + * @return les identifiants binaires des signatures + */ + private static BinarySignatureIdentifier initDroidSignatures() { + Path signatureTmpPath = null; + try (InputStream is = SipUtils.resourceAsStream("droid_signaturefile.xml")) { + if (is != null) { + signatureTmpPath = Files.createTempFile("droid", ".xml"); + Files.copy(is, signatureTmpPath, StandardCopyOption.REPLACE_EXISTING); + BinarySignatureIdentifier bsi = initDroidSignatures(signatureTmpPath); + List.of(EXTENSIONS) + .forEach( + ext -> { + List isigs = buildInternalSignatures(bsi, ext); + if (!isigs.isEmpty()) { + SIGNATURES_BY_ID.put(ext, isigs); + } }); - return bsi; - } - throw new SipException("Unable to found Droid droid_signaturefile.xml in resource"); - } - catch (IOException ex) { - throw new SipException("Unable to init Droid signatures identifier", ex); - } - finally { - if (signatureTmpPath != null) { - try { - Files.deleteIfExists(signatureTmpPath); - } - catch (IOException e) { - // Ignore - } - } - } - } - - /** - * Initialise les identifiants binaires des signatures Droid à partir d'un fichier de signature. Note. Le fichier de - * signatures doit se trouver sur le système de fichier par défaut. - * - * @param signaturePath le path du fichier de signature - * @return les identifiants binaires des signatures - */ - public static BinarySignatureIdentifier initDroidSignatures(Path signaturePath) { - Validate.notNull(signaturePath, NOT_NULL, "signaturePath"); - + return bsi; + } + throw new SipException("Unable to found Droid droid_signaturefile.xml in resource"); + } catch (IOException ex) { + throw new SipException("Unable to init Droid signatures identifier", ex); + } finally { + if (signatureTmpPath != null) { try { - BinarySignatureIdentifier bsi = new BinarySignatureIdentifier(); - bsi.setSignatureFile(signaturePath.toString()); - bsi.init(); - return bsi; - } - catch (SignatureParseException ex) { - throw new SipException("Unable to init Droid signatures identifier", ex); + Files.deleteIfExists(signatureTmpPath); + } catch (IOException e) { + // Ignore } + } } - - public static boolean isSupportedFormat(String puid) { - return DroidSignaturesHolder.INSTANCE.getSigFile().getFileFormat(puid) != null; - } - - public static boolean isSupportedExtension(String ext) { - return ext != null && SIGNATURES_BY_ID.containsKey(ext.toUpperCase()); - } - - /** - * Identifie le format du fichier spécifié par le path en utilisant les identifiants binaire des signatures par - * défaut. Note. Les paths vers un système de fichier virtuel (ie. zip) ne sont pas supportés. - * - * @param path le path du fichier à identifier - * @param extension l'extension du fichier à identifier - * @return la liste de résultats de l'identification. - */ - public static List matchBinarySignatures(Path path, String extension) { - Validate.notNull(path, NOT_NULL, "path"); - return matchBinarySignatures(path, extension, DroidSignaturesHolder.INSTANCE); + } + + /** + * Initialise les identifiants binaires des signatures Droid à partir d'un fichier de signature. + * Note. Le fichier de signatures doit se trouver sur le système de fichier par défaut. + * + * @param signaturePath le path du fichier de signature + * @return les identifiants binaires des signatures + */ + public static BinarySignatureIdentifier initDroidSignatures(Path signaturePath) { + Validate.notNull(signaturePath, NOT_NULL, "signaturePath"); + + try { + BinarySignatureIdentifier bsi = new BinarySignatureIdentifier(); + bsi.setSignatureFile(signaturePath.toString()); + bsi.init(); + return bsi; + } catch (SignatureParseException ex) { + throw new SipException("Unable to init Droid signatures identifier", ex); } - - /** - * Identifie le format du fichier spécifié par le path en utilisant les identifiants binaire des signatures par - * défaut. Note. Les paths vers un système de fichier virtuel (ie. zip) ne sont pas supportés. - * - * @param path le path du fichier à identifier - * @param extension l'extension du fichier à identifier - * @param bsi les identifiants binaires des signatures - * @return la liste de résultats de l'identification. - */ - public static List matchBinarySignatures(Path path, String extension, - BinarySignatureIdentifier bsi) { - - RequestIdentifier identifier = new RequestIdentifier(path.toUri()); - identifier.setParentId(1L); - - try (IdentificationRequest request = new FileSystemIdentificationRequest(createMetadata(path), identifier)) { - request.open(path); - - if (!StringUtils.isBlank(extension)) { - List intSigs = SIGNATURES_BY_ID.get(extension.toUpperCase()); - if (intSigs != null) { - List results = matchBinarySignatures(request, intSigs).getResults(); - if (!results.isEmpty()) { - return results; - } - } - } - return bsi.matchBinarySignatures(request).getResults(); + } + + public static boolean isSupportedFormat(String puid) { + return DroidSignaturesHolder.INSTANCE.getSigFile().getFileFormat(puid) != null; + } + + public static boolean isSupportedExtension(String ext) { + return ext != null && SIGNATURES_BY_ID.containsKey(ext.toUpperCase()); + } + + /** + * Identifie le format du fichier spécifié par le path en utilisant les identifiants binaire des + * signatures par défaut. Note. Les paths vers un système de fichier virtuel (ie. zip) ne sont pas + * supportés. + * + * @param path le path du fichier à identifier + * @param extension l'extension du fichier à identifier + * @return la liste de résultats de l'identification. + */ + public static List matchBinarySignatures(Path path, String extension) { + Validate.notNull(path, NOT_NULL, "path"); + return matchBinarySignatures(path, extension, DroidSignaturesHolder.INSTANCE); + } + + /** + * Identifie le format du fichier spécifié par le path en utilisant les identifiants binaire des + * signatures par défaut. Note. Les paths vers un système de fichier virtuel (ie. zip) ne sont pas + * supportés. + * + * @param path le path du fichier à identifier + * @param extension l'extension du fichier à identifier + * @param bsi les identifiants binaires des signatures + * @return la liste de résultats de l'identification. + */ + public static List matchBinarySignatures( + Path path, String extension, BinarySignatureIdentifier bsi) { + + RequestIdentifier identifier = new RequestIdentifier(path.toUri()); + identifier.setParentId(1L); + + try (IdentificationRequest request = + new FileSystemIdentificationRequest(createMetadata(path), identifier)) { + request.open(path); + + if (!StringUtils.isBlank(extension)) { + List intSigs = SIGNATURES_BY_ID.get(extension.toUpperCase()); + if (intSigs != null) { + List results = matchBinarySignatures(request, intSigs).getResults(); + if (!results.isEmpty()) { + return results; + } } - catch (IOException ex) { - throw new SipException("Unable to matchBinarySignatures for " + path, ex); - } - } - - private static RequestMetaData createMetadata(Path path) throws IOException { - return new RequestMetaData(Files.size(path), Files.getLastModifiedTime(path).toMillis(), - path.getFileName().toString()); + } + return bsi.matchBinarySignatures(request).getResults(); + } catch (IOException ex) { + throw new SipException("Unable to matchBinarySignatures for " + path, ex); } - - private static IdentificationResultCollection matchBinarySignatures(IdentificationRequest request, - List intSigs) { - - IdentificationResultCollection results = new IdentificationResultCollection(request); - results.setRequestMetaData(request.getRequestMetaData()); - ByteReader byteReader = new IdentificationRequestByteReaderAdapter(request); - runFileIdentification(byteReader, intSigs); - final int numHits = byteReader.getNumHits(); - for (int i = 0; i < numHits; i++) { - FileFormatHit hit = byteReader.getHit(i); - IdentificationResultImpl result = new IdentificationResultImpl(); - result.setMimeType(hit.getMimeType()); - result.setName(hit.getFileFormatName()); - result.setVersion(hit.getFileFormatVersion()); - result.setPuid(hit.getFileFormatPUID()); - result.setMethod(IdentificationMethod.BINARY_SIGNATURE); - results.addResult(result); - } - results.setFileLength(request.size()); - results.setRequestMetaData(request.getRequestMetaData()); - return results; + } + + private static RequestMetaData createMetadata(Path path) throws IOException { + return new RequestMetaData( + Files.size(path), + Files.getLastModifiedTime(path).toMillis(), + path.getFileName().toString()); + } + + private static IdentificationResultCollection matchBinarySignatures( + IdentificationRequest request, List intSigs) { + + IdentificationResultCollection results = new IdentificationResultCollection(request); + results.setRequestMetaData(request.getRequestMetaData()); + ByteReader byteReader = new IdentificationRequestByteReaderAdapter(request); + runFileIdentification(byteReader, intSigs); + final int numHits = byteReader.getNumHits(); + for (int i = 0; i < numHits; i++) { + FileFormatHit hit = byteReader.getHit(i); + IdentificationResultImpl result = new IdentificationResultImpl(); + result.setMimeType(hit.getMimeType()); + result.setName(hit.getFileFormatName()); + result.setVersion(hit.getFileFormatVersion()); + result.setPuid(hit.getFileFormatPUID()); + result.setMethod(IdentificationMethod.BINARY_SIGNATURE); + results.addResult(result); } - - private static void runFileIdentification(final ByteReader targetFile, List intSigs) { - - final List matchingSigs = getMatchingSignatures(targetFile, intSigs); - for (final InternalSignature internalSig : matchingSigs) { - targetFile.setPositiveIdent(); - final int numFileFormats = internalSig.getNumFileFormats(); - for (int fileFormatIndex = 0; fileFormatIndex < numFileFormats; fileFormatIndex++) { - final FileFormatHit fileHit = - new FileFormatHit(internalSig.getFileFormat(fileFormatIndex), - FileFormatHit.HIT_TYPE_POSITIVE_GENERIC_OR_SPECIFIC, - internalSig.isSpecific(), - ""); - targetFile.addHit(fileHit); - } - } + results.setFileLength(request.size()); + results.setRequestMetaData(request.getRequestMetaData()); + return results; + } + + private static void runFileIdentification( + final ByteReader targetFile, List intSigs) { + + final List matchingSigs = getMatchingSignatures(targetFile, intSigs); + for (final InternalSignature internalSig : matchingSigs) { + targetFile.setPositiveIdent(); + final int numFileFormats = internalSig.getNumFileFormats(); + for (int fileFormatIndex = 0; fileFormatIndex < numFileFormats; fileFormatIndex++) { + final FileFormatHit fileHit = + new FileFormatHit( + internalSig.getFileFormat(fileFormatIndex), + FileFormatHit.HIT_TYPE_POSITIVE_GENERIC_OR_SPECIFIC, + internalSig.isSpecific(), + ""); + targetFile.addHit(fileHit); + } } + } - private static List getMatchingSignatures(ByteReader targetFile, - List intSigs) { + private static List getMatchingSignatures( + ByteReader targetFile, List intSigs) { - List matchingSigs = new ArrayList<>(); - if (targetFile.getNumBytes() > 0) { - for (final InternalSignature internalSig : intSigs) { - if (internalSig.matches(targetFile, -1)) { - matchingSigs.add(internalSig); - } - } + List matchingSigs = new ArrayList<>(); + if (targetFile.getNumBytes() > 0) { + for (final InternalSignature internalSig : intSigs) { + if (internalSig.matches(targetFile, -1)) { + matchingSigs.add(internalSig); } - return matchingSigs; + } } - - private static List buildInternalSignatures(BinarySignatureIdentifier bsi, String extension) { - - Map intSignsMap = new HashMap<>(); - List signatures = bsi.getSigFile().getSignatures(); - for (InternalSignature isig : signatures) { - for (int i = 0; i < isig.getNumFileFormats(); i++) { - FileFormat format = isig.getFileFormat(i); - for (String ext : format.getExtensions()) { - if (extension.equalsIgnoreCase(ext)) { - intSignsMap.put(isig.getID(), isig); - } - } - } + return matchingSigs; + } + + private static List buildInternalSignatures( + BinarySignatureIdentifier bsi, String extension) { + + Map intSignsMap = new HashMap<>(); + List signatures = bsi.getSigFile().getSignatures(); + for (InternalSignature isig : signatures) { + for (int i = 0; i < isig.getNumFileFormats(); i++) { + FileFormat format = isig.getFileFormat(i); + for (String ext : format.getExtensions()) { + if (extension.equalsIgnoreCase(ext)) { + intSignsMap.put(isig.getID(), isig); + } } - return new ArrayList<>(intSignsMap.values()); + } } + return new ArrayList<>(intSignsMap.values()); + } - /** - * Allow lazy initialization of Droid Signatures - */ - private static class DroidSignaturesHolder { + /** Allow lazy initialization of Droid Signatures */ + private static class DroidSignaturesHolder { - private static final BinarySignatureIdentifier INSTANCE = initDroidSignatures(); - } + private static final BinarySignatureIdentifier INSTANCE = initDroidSignatures(); + } } diff --git a/src/main/java/fr/xelians/sipg/utils/SipException.java b/src/main/java/fr/xelians/sipg/utils/SipException.java index a260d4b..604fd44 100644 --- a/src/main/java/fr/xelians/sipg/utils/SipException.java +++ b/src/main/java/fr/xelians/sipg/utils/SipException.java @@ -19,43 +19,41 @@ package fr.xelians.sipg.utils; /** - * La classe SipException définit une exception spécifique à la librairie. Note. Il est fortement déconseillé - * d'utiliser cette classe en dehors de la librairie. + * La classe SipException définit une exception spécifique à la librairie. Note. Il est fortement + * déconseillé d'utiliser cette classe en dehors de la librairie. * * @author Emmanuel Deviller */ public class SipException extends RuntimeException { - /** - * The Serial version uid. - */ - static final long serialVersionUID = 6637885103769526334L; + /** The Serial version uid. */ + static final long serialVersionUID = 6637885103769526334L; - /** - * Instancie une nouvelle exception avec un message. - * - * @param message le message - */ - public SipException(String message) { - super(message); - } + /** + * Instancie une nouvelle exception avec un message. + * + * @param message le message + */ + public SipException(String message) { + super(message); + } - /** - * Instancie une nouvelle exception avec une cause. - * - * @param cause la cause - */ - public SipException(Throwable cause) { - super(cause); - } + /** + * Instancie une nouvelle exception avec une cause. + * + * @param cause la cause + */ + public SipException(Throwable cause) { + super(cause); + } - /** - * Instancie une nouvelle exception avec un message et une cause. - * - * @param message le message - * @param cause la cause - */ - public SipException(String message, Throwable cause) { - super(message, cause); - } + /** + * Instancie une nouvelle exception avec un message et une cause. + * + * @param message le message + * @param cause la cause + */ + public SipException(String message, Throwable cause) { + super(message, cause); + } } diff --git a/src/main/java/fr/xelians/sipg/utils/SipUtils.java b/src/main/java/fr/xelians/sipg/utils/SipUtils.java index 532cc0c..376efc7 100644 --- a/src/main/java/fr/xelians/sipg/utils/SipUtils.java +++ b/src/main/java/fr/xelians/sipg/utils/SipUtils.java @@ -18,24 +18,6 @@ */ package fr.xelians.sipg.utils; -import org.apache.commons.codec.digest.DigestUtils; -import org.apache.commons.lang3.StringUtils; -import org.apache.commons.lang3.Validate; -import org.xml.sax.InputSource; - -import javax.xml.datatype.DatatypeConfigurationException; -import javax.xml.datatype.DatatypeFactory; -import javax.xml.datatype.Duration; -import javax.xml.datatype.XMLGregorianCalendar; -import javax.xml.transform.OutputKeys; -import javax.xml.transform.Transformer; -import javax.xml.transform.TransformerException; -import javax.xml.transform.TransformerFactory; -import javax.xml.transform.dom.DOMResult; -import javax.xml.transform.dom.DOMSource; -import javax.xml.transform.sax.SAXSource; -import javax.xml.transform.sax.SAXTransformerFactory; -import javax.xml.transform.stream.StreamResult; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; @@ -50,255 +32,276 @@ import java.time.format.DateTimeFormatter; import java.util.Map; import java.util.function.Consumer; +import javax.xml.datatype.DatatypeConfigurationException; +import javax.xml.datatype.DatatypeFactory; +import javax.xml.datatype.Duration; +import javax.xml.datatype.XMLGregorianCalendar; +import javax.xml.transform.OutputKeys; +import javax.xml.transform.Transformer; +import javax.xml.transform.TransformerException; +import javax.xml.transform.TransformerFactory; +import javax.xml.transform.dom.DOMResult; +import javax.xml.transform.dom.DOMSource; +import javax.xml.transform.sax.SAXSource; +import javax.xml.transform.sax.SAXTransformerFactory; +import javax.xml.transform.stream.StreamResult; +import org.apache.commons.codec.digest.DigestUtils; +import org.apache.commons.lang3.StringUtils; +import org.apache.commons.lang3.Validate; +import org.xml.sax.InputSource; /** - * La classe SipUtils offre des méthodes statiques utilitaires. Note. Il est fortement déconseillé d'utiliser cette - * classe en dehors de la librairie. + * La classe SipUtils offre des méthodes statiques utilitaires. Note. Il est fortement déconseillé + * d'utiliser cette classe en dehors de la librairie. * * @author Emmanuel Deviller */ public final class SipUtils { - public static final String NOT_NULL = "the %s argument must be not null"; - private static final DateTimeFormatter YYYYMMDD = DateTimeFormatter.ofPattern("yyyy-MM-dd"); - private static final DateTimeFormatter YYYYMMDD_HMS = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss"); + public static final String NOT_NULL = "the %s argument must be not null"; + private static final DateTimeFormatter YYYYMMDD = DateTimeFormatter.ofPattern("yyyy-MM-dd"); + private static final DateTimeFormatter YYYYMMDD_HMS = + DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss"); - private SipUtils() { - } + private SipUtils() {} - /** - * Crée un URI à partir du path. - * - * @param zipPath le path du zip - * @return l 'URI - */ - public static URI createZipURI(Path zipPath) { - Validate.notNull(zipPath, NOT_NULL, "zipPath"); + /** + * Crée un URI à partir du path. + * + * @param zipPath le path du zip + * @return l 'URI + */ + public static URI createZipURI(Path zipPath) { + Validate.notNull(zipPath, NOT_NULL, "zipPath"); - try { - return new URI("jar:file", zipPath.toAbsolutePath().toUri().getPath(), null); - } catch (URISyntaxException ex) { - throw new SipException("Unable to create Zip Archive", ex); - } + try { + return new URI("jar:file", zipPath.toAbsolutePath().toUri().getPath(), null); + } catch (URISyntaxException ex) { + throw new SipException("Unable to create Zip Archive", ex); } + } - /** - * Crée un système de fichier de type Zip à partir du path. - * - * @param zipPath le path du zip - * @return le système de fichier de type Zip - */ - public static FileSystem newZipFileSystem(Path zipPath, boolean useMemory) { - Validate.notNull(zipPath, NOT_NULL, "zipPath"); + /** + * Crée un système de fichier de type Zip à partir du path. + * + * @param zipPath le path du zip + * @return le système de fichier de type Zip + */ + public static FileSystem newZipFileSystem(Path zipPath, boolean useMemory) { + Validate.notNull(zipPath, NOT_NULL, "zipPath"); - URI zipURI = SipUtils.createZipURI(zipPath); - Map env = Map.of("create", "true", "useTempFile", !useMemory); + URI zipURI = SipUtils.createZipURI(zipPath); + Map env = Map.of("create", "true", "useTempFile", !useMemory); - try { - return FileSystems.newFileSystem(zipURI, env); - } catch (IOException ex) { - throw new SipException("Unable to create ZipFilesystem " + zipPath, ex); - } + try { + return FileSystems.newFileSystem(zipURI, env); + } catch (IOException ex) { + throw new SipException("Unable to create ZipFilesystem " + zipPath, ex); } + } - /** - * Formate le flux de données XML avec l'indentation spécifiée. Si le flux d'entrée est le résultat d'un marshalling - * JAXB, il est nécessaire de positionner l'option Marshaller.JAXB_FORMATTED_OUTPUT à false pour que cette méthode - * fonctionne correctement. - * - * @param is le flux d'entrée - * @param os le flux de sortie - * @param indentation la valeur de l'indentation - */ - public static void formatXml(InputStream is, OutputStream os, int indentation) { - Validate.notNull(is, NOT_NULL, "is"); - Validate.notNull(os, NOT_NULL, "os"); + /** + * Formate le flux de données XML avec l'indentation spécifiée. Si le flux d'entrée est le + * résultat d'un marshalling JAXB, il est nécessaire de positionner l'option + * Marshaller.JAXB_FORMATTED_OUTPUT à false pour que cette méthode fonctionne correctement. + * + * @param is le flux d'entrée + * @param os le flux de sortie + * @param indentation la valeur de l'indentation + */ + public static void formatXml(InputStream is, OutputStream os, int indentation) { + Validate.notNull(is, NOT_NULL, "is"); + Validate.notNull(os, NOT_NULL, "os"); - try { - Transformer transformer = SAXTransformerFactory.newInstance().newTransformer(); - transformer.setOutputProperty(OutputKeys.INDENT, "yes"); - transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", String.valueOf(Math.abs(indentation))); - transformer.transform(new SAXSource(new InputSource(is)), new StreamResult(os)); - } catch (IllegalArgumentException | TransformerException ex) { - throw new SipException("Unable to create transformer", ex); - } + try { + Transformer transformer = SAXTransformerFactory.newInstance().newTransformer(); + transformer.setOutputProperty(OutputKeys.INDENT, "yes"); + transformer.setOutputProperty( + "{http://xml.apache.org/xslt}indent-amount", String.valueOf(Math.abs(indentation))); + transformer.transform(new SAXSource(new InputSource(is)), new StreamResult(os)); + } catch (IllegalArgumentException | TransformerException ex) { + throw new SipException("Unable to create transformer", ex); } + } - /** - * Formate l'arbre DOM avec l'indentation spécifiée. Si l'arbre DOM en entrée est le résultat d'un marshalling JAXB, - * il est nécessaire de positionner l'option Marshaller.JAXB_FORMATTED_OUTPUT à false pour que cette méthode - * fonctionne correctement. - * - * @param domResult l'arbre DOM - * @param os le flux de sortie - * @param indentation la valeur de l'indentation - */ - public static void formatXml(DOMResult domResult, OutputStream os, int indentation) { - Validate.notNull(domResult, NOT_NULL, "domResult"); - Validate.notNull(os, NOT_NULL, "os"); + /** + * Formate l'arbre DOM avec l'indentation spécifiée. Si l'arbre DOM en entrée est le résultat d'un + * marshalling JAXB, il est nécessaire de positionner l'option Marshaller.JAXB_FORMATTED_OUTPUT à + * false pour que cette méthode fonctionne correctement. + * + * @param domResult l'arbre DOM + * @param os le flux de sortie + * @param indentation la valeur de l'indentation + */ + public static void formatXml(DOMResult domResult, OutputStream os, int indentation) { + Validate.notNull(domResult, NOT_NULL, "domResult"); + Validate.notNull(os, NOT_NULL, "os"); - try { - Transformer transformer = TransformerFactory.newInstance().newTransformer(); - transformer.setOutputProperty(OutputKeys.INDENT, "yes"); - transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", String.valueOf(Math.abs(indentation))); - transformer.transform(new DOMSource(domResult.getNode()), new StreamResult(os)); - } catch (IllegalArgumentException | TransformerException ex) { - throw new SipException("Unable to create transformer", ex); - } + try { + Transformer transformer = TransformerFactory.newInstance().newTransformer(); + transformer.setOutputProperty(OutputKeys.INDENT, "yes"); + transformer.setOutputProperty( + "{http://xml.apache.org/xslt}indent-amount", String.valueOf(Math.abs(indentation))); + transformer.transform(new DOMSource(domResult.getNode()), new StreamResult(os)); + } catch (IllegalArgumentException | TransformerException ex) { + throw new SipException("Unable to create transformer", ex); } + } - /** - * Fournit la ressource système spécifiée par le path. - * - * @param name le path - * @return la ressource système - */ - public static InputStream resourceAsStream(String name) { - // Load the resources from the current package - return SipUtils.class.getClassLoader().getResourceAsStream(name) ; - } + /** + * Fournit la ressource système spécifiée par le path. + * + * @param name le path + * @return la ressource système + */ + public static InputStream resourceAsStream(String name) { + // Load the resources from the current package + return SipUtils.class.getClassLoader().getResourceAsStream(name); + } - /** - * Retourne la taille du pool de thread. Si n est égal ou inférieur à zéro, la taille correspond au nombre de - * processeurs disponibles. - * - * @param n le nombre de thread souhaité - * @return la taille du pool de thread - */ - public static int getPoolSize(int n) { - return n <= 0 ? Runtime.getRuntime().availableProcessors() : n; - } + /** + * Retourne la taille du pool de thread. S'il est égal ou inférieur à zéro, la taille correspond + * au nombre de processeurs disponibles. + * + * @param n le nombre de thread souhaité + * @return la taille du pool de thread + */ + public static int getPoolSize(int n) { + return n <= 0 ? Runtime.getRuntime().availableProcessors() : n; + } - /** - * Convertit la date en XML au format "yyyy-MM-dd". - * - * @param date la date - * @return la date formatée - */ - public static XMLGregorianCalendar toXmlDate(LocalDate date) { - Validate.notNull(date, NOT_NULL, "date"); + /** + * Convertit la date en XML au format "yyyy-MM-dd". + * + * @param date la date + * @return la date formatée + */ + public static XMLGregorianCalendar toXmlDate(LocalDate date) { + Validate.notNull(date, NOT_NULL, "date"); - try { - return DatatypeFactory.newInstance().newXMLGregorianCalendar(date.format(YYYYMMDD)); - } catch (DatatypeConfigurationException ex) { - throw new SipException(String.format("Unable to convert Date %s to XMLGregorianCalendar", date), ex); - } + try { + return DatatypeFactory.newInstance().newXMLGregorianCalendar(date.format(YYYYMMDD)); + } catch (DatatypeConfigurationException ex) { + throw new SipException( + String.format("Unable to convert Date %s to XMLGregorianCalendar", date), ex); } + } - /** - * Convertit la date en XML au format "yyyy-MM-dd'T'HH:mm:ss". - * - * @param date la date - * @return la date formatée - */ - public static XMLGregorianCalendar toXmlDateTime(LocalDateTime date) { - Validate.notNull(date, NOT_NULL, "date"); + /** + * Convertit la date en XML au format "yyyy-MM-dd'T'HH:mm:ss". + * + * @param date la date + * @return la date formatée + */ + public static XMLGregorianCalendar toXmlDateTime(LocalDateTime date) { + Validate.notNull(date, NOT_NULL, "date"); - try { - return DatatypeFactory.newInstance().newXMLGregorianCalendar(date.format(YYYYMMDD_HMS)); - } catch (DatatypeConfigurationException ex) { - throw new SipException(String.format("Unable to convert Date %s to XMLGregorianCalendar", date), ex); - } + try { + return DatatypeFactory.newInstance().newXMLGregorianCalendar(date.format(YYYYMMDD_HMS)); + } catch (DatatypeConfigurationException ex) { + throw new SipException( + String.format("Unable to convert Date %s to XMLGregorianCalendar", date), ex); } + } - /** - * Convertit la durée la chaîne de caractères en type Duration. - * - * @param duration la durée de type chaîne de caractères - * @return la durée de type Duration - */ - public static Duration toDuration(String duration) { - Validate.notNull(duration, NOT_NULL, "duration"); + /** + * Convertit la durée la chaîne de caractères en type Duration. + * + * @param duration la durée de type chaîne de caractères + * @return la durée de type Duration + */ + public static Duration toDuration(String duration) { + Validate.notNull(duration, NOT_NULL, "duration"); - try { - return DatatypeFactory.newInstance().newDuration(duration); - } catch (DatatypeConfigurationException ex) { - throw new SipException(String.format("Unable to convert String %s to Duration", duration), ex); - } + try { + return DatatypeFactory.newInstance().newDuration(duration); + } catch (DatatypeConfigurationException ex) { + throw new SipException( + String.format("Unable to convert String %s to Duration", duration), ex); } + } - /** - * Calcule le condensat en hexadécimal du fichier indiqué par le path selon l'algorithm spécifié. - * - * @param binaryPath le path - * @param algorithm l'algorithme - * @return le condensat - * @throws IOException génère une exception d'entrée-sortie - */ - public static String digestHex(Path binaryPath, String algorithm) throws IOException { - Validate.notNull(binaryPath, NOT_NULL, "binaryPath"); - Validate.notNull(algorithm, NOT_NULL, "algorithm"); + /** + * Calcule le condensat en hexadécimal du fichier indiqué par le path selon l'algorithm spécifié. + * + * @param binaryPath le path + * @param algorithm l'algorithme + * @return le condensat + * @throws IOException génère une exception d'entrée-sortie + */ + public static String digestHex(Path binaryPath, String algorithm) throws IOException { + Validate.notNull(binaryPath, NOT_NULL, "binaryPath"); + Validate.notNull(algorithm, NOT_NULL, "algorithm"); - DigestUtils du = new DigestUtils(algorithm); - try (InputStream is = Files.newInputStream(binaryPath)) { - return du.digestAsHex(is); - } + DigestUtils du = new DigestUtils(algorithm); + try (InputStream is = Files.newInputStream(binaryPath)) { + return du.digestAsHex(is); } + } - /** - * Calcule le condensat du fichier indiqué par le path selon l'algorithm spécifié. - * - * @param binaryPath le path - * @param algorithm l'algorithme - * @return le condensat - * @throws IOException génère une exception d'entrée-sortie - */ - public static byte[] digest(Path binaryPath, String algorithm) throws IOException { - Validate.notNull(binaryPath, NOT_NULL, "binaryPath"); - Validate.notNull(algorithm, NOT_NULL, "algorithm"); + /** + * Calcule le condensat du fichier indiqué par le path selon l'algorithm spécifié. + * + * @param binaryPath le path + * @param algorithm l'algorithme + * @return le condensat + * @throws IOException génère une exception d'entrée-sortie + */ + public static byte[] digest(Path binaryPath, String algorithm) throws IOException { + Validate.notNull(binaryPath, NOT_NULL, "binaryPath"); + Validate.notNull(algorithm, NOT_NULL, "algorithm"); - DigestUtils du = new DigestUtils(algorithm); - try (InputStream is = Files.newInputStream(binaryPath)) { - return du.digest(is); - } + DigestUtils du = new DigestUtils(algorithm); + try (InputStream is = Files.newInputStream(binaryPath)) { + return du.digest(is); } + } - /** - * Retourne true si l'objet est nul sinon la valeur par défaut. - * - * @param le type de l'objet - * @param obj l'objet à tester - * @param def la valeur par défaut - * @return true si l'objet est nul sinon la valeur par défaut - */ - public static T getIfNull(T obj, T def) { - return obj == null ? def : obj; - } + /** + * Retourne true si l'objet est nul sinon la valeur par défaut. + * + * @param le type de l'objet + * @param obj l'objet à tester + * @param def la valeur par défaut + * @return true si l'objet est nul sinon la valeur par défaut + */ + public static T getIfNull(T obj, T def) { + return obj == null ? def : obj; + } - /** - * Retourne true si l'objet est vide sinon la valeur par défaut. - * - * @param obj l'objet à tester - * @param def la valeur par défaut - * @return Retourne true si l'objet est vide sinon la valeur par défaut - */ - public static String getIfBlank(String obj, String def) { - return StringUtils.isBlank(obj) ? def : obj; - } + /** + * Retourne true si l'objet est vide sinon la valeur par défaut. + * + * @param obj l'objet à tester + * @param def la valeur par défaut + * @return Retourne true si l'objet est vide sinon la valeur par défaut + */ + public static String getIfBlank(String obj, String def) { + return StringUtils.isBlank(obj) ? def : obj; + } - /** - * Applique le consommateur si l'objet n'est pas nul. - * - * @param le type de l'objet - * @param obj l'objet à tester - * @param func le consommateur - */ - public static void ifNotNull(T obj, Consumer func) { - if (obj != null) { - func.accept(obj); - } + /** + * Applique le consommateur si l'objet n'est pas nul. + * + * @param le type de l'objet + * @param obj l'objet à tester + * @param func le consommateur + */ + public static void ifNotNull(T obj, Consumer func) { + if (obj != null) { + func.accept(obj); } + } - /** - * Applique le consommateur si l'objet n'est pas vide. - * - * @param obj l'objet à tester - * @param func le consommateur - */ - public static void ifNotBlank(String obj, Consumer func) { - if (StringUtils.isNotBlank(obj)) { - func.accept(obj); - } + /** + * Applique le consommateur si l'objet n'est pas vide. + * + * @param obj l'objet à tester + * @param func le consommateur + */ + public static void ifNotBlank(String obj, Consumer func) { + if (StringUtils.isNotBlank(obj)) { + func.accept(obj); } - + } } diff --git a/src/main/java/fr/xelians/sipg/utils/Validators.java b/src/main/java/fr/xelians/sipg/utils/Validators.java index 74eb653..c643dbe 100644 --- a/src/main/java/fr/xelians/sipg/utils/Validators.java +++ b/src/main/java/fr/xelians/sipg/utils/Validators.java @@ -18,17 +18,6 @@ */ package fr.xelians.sipg.utils; -import org.apache.commons.lang3.Validate; -import org.xml.sax.SAXException; -import org.xml.sax.SAXNotRecognizedException; -import org.xml.sax.SAXNotSupportedException; - -import javax.xml.XMLConstants; -import javax.xml.transform.Source; -import javax.xml.transform.stream.StreamSource; -import javax.xml.validation.Schema; -import javax.xml.validation.SchemaFactory; -import javax.xml.validation.Validator; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; @@ -36,100 +25,113 @@ import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; +import javax.xml.XMLConstants; +import javax.xml.transform.Source; +import javax.xml.transform.stream.StreamSource; +import javax.xml.validation.Schema; +import javax.xml.validation.SchemaFactory; +import javax.xml.validation.Validator; +import org.apache.commons.lang3.Validate; +import org.xml.sax.SAXException; +import org.xml.sax.SAXNotRecognizedException; +import org.xml.sax.SAXNotSupportedException; /** - * La classe Validators offre des méthodes pour obtenir des validateurs RNG et valider des documents XML. + * La classe Validators offre des méthodes pour obtenir des validateurs RNG et valider des documents + * XML. * * @author Emmanuel Deviller */ public class Validators { - /** - * Forbid class instantiation for static class - */ - private Validators() { - } + /** Forbid class instantiation for static class */ + private Validators() {} - /** - * Fournit un validateur RNG. Note. Les objets {@link Validator} ne sont pas thread-safe. - * - * @param rngPath le path du fichier RNG - * @return le validateur RNG - */ - public static Validator getRngValidator(Path rngPath) { - Validate.notNull(rngPath, SipUtils.NOT_NULL, "rngPath"); + /** + * Fournit un validateur RNG. Note. Les objets {@link Validator} ne sont pas thread-safe. + * + * @param rngPath le path du fichier RNG + * @return le validateur RNG + */ + public static Validator getRngValidator(Path rngPath) { + Validate.notNull(rngPath, SipUtils.NOT_NULL, "rngPath"); - try (BufferedReader rngReader = Files.newBufferedReader(rngPath, StandardCharsets.UTF_8)) { - return getRngValidator(rngReader); - } catch (IOException ex) { - throw new SipException("Unable to create RNG validator for " + rngPath, ex); - } + try (BufferedReader rngReader = Files.newBufferedReader(rngPath, StandardCharsets.UTF_8)) { + return getRngValidator(rngReader); + } catch (IOException ex) { + throw new SipException("Unable to create RNG validator for " + rngPath, ex); } + } - /** - * Fournit un validateur RNG. Note. Les objets {@link Validator} ne sont pas thread-safe. - * - * @param rngReader le reader RNG - * @return le validateur RNG - */ - public static Validator getRngValidator(Reader rngReader) { - Validate.notNull(rngReader, SipUtils.NOT_NULL, "rngReader"); - return getRngSchema(new StreamSource(rngReader)).newValidator(); - } + /** + * Fournit un validateur RNG. Note. Les objets {@link Validator} ne sont pas thread-safe. + * + * @param rngReader le reader RNG + * @return le validateur RNG + */ + public static Validator getRngValidator(Reader rngReader) { + Validate.notNull(rngReader, SipUtils.NOT_NULL, "rngReader"); + return getRngSchema(new StreamSource(rngReader)).newValidator(); + } - private static Schema getRngSchema(StreamSource source) { - try { - // Initialize RNG validator through JAXP. SchemaFactory is not tread safe , so we create a new one for each RNG schema. XXE mitigation is not supported - System.setProperty(SchemaFactory.class.getName() + ":" + XMLConstants.RELAXNG_NS_URI, - "com.thaiopensource.relaxng.jaxp.XMLSyntaxSchemaFactory"); - SchemaFactory rngSchemaFactory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI); - rngSchemaFactory.setProperty("http://relaxng.org/properties/datatype-library-factory", - new org.relaxng.datatype.helpers.DatatypeLibraryLoader()); - return rngSchemaFactory.newSchema(source); - } catch (SAXNotRecognizedException | SAXNotSupportedException ex) { - throw new SipException("Unable to initialize RNG Factory", ex); - } catch (SAXException ex) { - throw new SipException("Unable to create RNG Validator", ex); - } + private static Schema getRngSchema(StreamSource source) { + try { + // Initialize RNG validator through JAXP. SchemaFactory is not tread safe , so we create a new + // one for each RNG schema. XXE mitigation is not supported + System.setProperty( + SchemaFactory.class.getName() + ":" + XMLConstants.RELAXNG_NS_URI, + "com.thaiopensource.relaxng.jaxp.XMLSyntaxSchemaFactory"); + SchemaFactory rngSchemaFactory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI); + rngSchemaFactory.setProperty( + "http://relaxng.org/properties/datatype-library-factory", + new org.relaxng.datatype.helpers.DatatypeLibraryLoader()); + return rngSchemaFactory.newSchema(source); + } catch (SAXNotRecognizedException | SAXNotSupportedException ex) { + throw new SipException("Unable to initialize RNG Factory", ex); + } catch (SAXException ex) { + throw new SipException("Unable to create RNG Validator", ex); } + } - /** - * Valide le fichier XML de description de l'archive selon le schéma défini par le Validator. - *

- * Note. L'objet {@link Validator} n'est pas thread-safe, il est de la responsabilité de l'application appelante de - * s'assurer que l'objet Validator n'est utilisé à tout moment que par une seule et même thread. - * - * @param path la source XML à valider - * @param validator le validateur RNG - */ - public static void validate(Path path, Validator validator) { - Validate.notNull(path, SipUtils.NOT_NULL, "source"); - Validate.notNull(validator, SipUtils.NOT_NULL, "validator"); + /** + * Valide le fichier XML de description de l'archive selon le schéma défini par le Validator. + * + *

Note. L'objet {@link Validator} n'est pas thread-safe, il est de la responsabilité de + * l'application appelante de s'assurer que l'objet Validator n'est utilisé à tout moment que par + * une seule et même thread. + * + * @param path la source XML à valider + * @param validator le validateur RNG + */ + public static void validate(Path path, Validator validator) { + Validate.notNull(path, SipUtils.NOT_NULL, "source"); + Validate.notNull(validator, SipUtils.NOT_NULL, "validator"); - try (InputStream is = Files.newInputStream(path)) { - validate(new StreamSource(is), validator); - } catch (IOException ex) { - throw new SipException("Unable to validate " + path + " with validator", ex); - } + try (InputStream is = Files.newInputStream(path)) { + validate(new StreamSource(is), validator); + } catch (IOException ex) { + throw new SipException("Unable to validate " + path + " with validator", ex); } + } - /** - * Valide le fichier XML de description de l'archive selon le schéma défini par le Validator. - *

- * Note. L'objet {@link Validator} n'est pas thread-safe, il est de la responsabilité de l'application appelante de - * s'assurer que l'objet Validator n'est utilisé à tout moment que par une seule et même thread. - * - * @param source la source XML à valider - * @param validator le validateur RNG - */ - public static void validate(Source source, Validator validator) { - Validate.notNull(source, SipUtils.NOT_NULL, "source"); - Validate.notNull(validator, SipUtils.NOT_NULL, "validator"); + /** + * Valide le fichier XML de description de l'archive selon le schéma défini par le Validator. + * + *

Note. L'objet {@link Validator} n'est pas thread-safe, il est de la responsabilité de + * l'application appelante de s'assurer que l'objet Validator n'est utilisé à tout moment que par + * une seule et même thread. + * + * @param source la source XML à valider + * @param validator le validateur RNG + */ + public static void validate(Source source, Validator validator) { + Validate.notNull(source, SipUtils.NOT_NULL, "source"); + Validate.notNull(validator, SipUtils.NOT_NULL, "validator"); - try { - validator.validate(source); - } catch (IOException | SAXException ex) { - throw new SipException("Unable to validate " + source + " with validator", ex); - } + try { + validator.validate(source); + } catch (IOException | SAXException ex) { + throw new SipException("Unable to validate " + source + " with validator", ex); } + } } diff --git a/src/main/java/fr/xelians/sipg/utils/package-info.java b/src/main/java/fr/xelians/sipg/utils/package-info.java index 3764782..3a90ac8 100644 --- a/src/main/java/fr/xelians/sipg/utils/package-info.java +++ b/src/main/java/fr/xelians/sipg/utils/package-info.java @@ -1,8 +1,8 @@ /** * Les classes utilitaires. - *

- * Il est fortement déconseillé d'utiliser ces classes en dehors de la librairie. + * + *

Il est fortement déconseillé d'utiliser ces classes en dehors de la librairie. * * @author Emmanuel Deviller */ -package fr.xelians.sipg.utils; \ No newline at end of file +package fr.xelians.sipg.utils; diff --git a/src/main/java/org/afnor/medona/v1/AccessRuleType.java b/src/main/java/org/afnor/medona/v1/AccessRuleType.java index 9c542f0..06f1e1e 100644 --- a/src/main/java/org/afnor/medona/v1/AccessRuleType.java +++ b/src/main/java/org/afnor/medona/v1/AccessRuleType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for AccessRuleType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="AccessRuleType">
@@ -28,7 +27,4 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "AccessRuleType")
-public class AccessRuleType
-        extends OpenType {
-
-}
+public class AccessRuleType extends OpenType {}
diff --git a/src/main/java/org/afnor/medona/v1/AcknowledgementType.java b/src/main/java/org/afnor/medona/v1/AcknowledgementType.java
index e71fe96..7a25d06 100644
--- a/src/main/java/org/afnor/medona/v1/AcknowledgementType.java
+++ b/src/main/java/org/afnor/medona/v1/AcknowledgementType.java
@@ -1,8 +1,9 @@
 //
-// 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: 2019.09.15 at 07:07:47 PM CEST 
+// 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: 2019.09.15 at 07:07:47 PM CEST
 //
 package org.afnor.medona.v1;
 
@@ -12,11 +13,9 @@
 import jakarta.xml.bind.annotation.XmlType;
 
 /**
- * 

* Java class for AcknowledgementType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="AcknowledgementType">
@@ -33,82 +32,74 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AcknowledgementType", propOrder = { - "messageReceivedIdentifier", - "sender", - "receiver" -}) -public class AcknowledgementType - extends MessageType { +@XmlType( + name = "AcknowledgementType", + propOrder = {"messageReceivedIdentifier", "sender", "receiver"}) +public class AcknowledgementType extends MessageType { - /** - * The Message received identifier. - */ - @XmlElement(name = "MessageReceivedIdentifier", required = true) - protected IdentifierType messageReceivedIdentifier; - /** - * The Sender. - */ - @XmlElement(name = "Sender", required = true) - protected OrganizationType sender; - /** - * The Receiver. - */ - @XmlElement(name = "Receiver", required = true) - protected OrganizationType receiver; + /** The Message received identifier. */ + @XmlElement(name = "MessageReceivedIdentifier", required = true) + protected IdentifierType messageReceivedIdentifier; - /** - * Gets the value of the messageReceivedIdentifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getMessageReceivedIdentifier() { - return messageReceivedIdentifier; - } + /** The Sender. */ + @XmlElement(name = "Sender", required = true) + protected OrganizationType sender; - /** - * Sets the value of the messageReceivedIdentifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setMessageReceivedIdentifier(IdentifierType value) { - this.messageReceivedIdentifier = value; - } + /** The Receiver. */ + @XmlElement(name = "Receiver", required = true) + protected OrganizationType receiver; - /** - * Gets the value of the sender property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getSender() { - return sender; - } + /** + * Gets the value of the messageReceivedIdentifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getMessageReceivedIdentifier() { + return messageReceivedIdentifier; + } - /** - * Sets the value of the sender property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setSender(OrganizationType value) { - this.sender = value; - } + /** + * Sets the value of the messageReceivedIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setMessageReceivedIdentifier(IdentifierType value) { + this.messageReceivedIdentifier = value; + } - /** - * Gets the value of the receiver property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getReceiver() { - return receiver; - } + /** + * Gets the value of the sender property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getSender() { + return sender; + } - /** - * Sets the value of the receiver property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setReceiver(OrganizationType value) { - this.receiver = value; - } + /** + * Sets the value of the sender property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setSender(OrganizationType value) { + this.sender = value; + } + /** + * Gets the value of the receiver property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getReceiver() { + return receiver; + } + + /** + * Sets the value of the receiver property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setReceiver(OrganizationType value) { + this.receiver = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/AppraisalRuleType.java b/src/main/java/org/afnor/medona/v1/AppraisalRuleType.java index dc7beb6..8cdef47 100644 --- a/src/main/java/org/afnor/medona/v1/AppraisalRuleType.java +++ b/src/main/java/org/afnor/medona/v1/AppraisalRuleType.java @@ -1,24 +1,22 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - import javax.xml.datatype.Duration; import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for AppraisalRuleType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="AppraisalRuleType">
@@ -36,110 +34,102 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AppraisalRuleType", propOrder = { - "appraisalCode", - "duration", - "startDate" -}) +@XmlType( + name = "AppraisalRuleType", + propOrder = {"appraisalCode", "duration", "startDate"}) public class AppraisalRuleType { - /** - * The Appraisal code. - */ - @XmlElement(name = "AppraisalCode") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String appraisalCode; - /** - * The Duration. - */ - @XmlElement(name = "Duration") - protected Duration duration; - /** - * The Start date. - */ - @XmlElement(name = "StartDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar startDate; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + /** The Appraisal code. */ + @XmlElement(name = "AppraisalCode") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String appraisalCode; + + /** The Duration. */ + @XmlElement(name = "Duration") + protected Duration duration; + + /** The Start date. */ + @XmlElement(name = "StartDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar startDate; - /** - * Gets the value of the appraisalCode property. - * - * @return possible object is {@link String } - */ - public String getAppraisalCode() { - return appraisalCode; - } + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Sets the value of the appraisalCode property. - * - * @param value allowed object is {@link String } - */ - public void setAppraisalCode(String value) { - this.appraisalCode = value; - } + /** + * Gets the value of the appraisalCode property. + * + * @return possible object is {@link String } + */ + public String getAppraisalCode() { + return appraisalCode; + } - /** - * Gets the value of the duration property. - * - * @return possible object is {@link Duration } - */ - public Duration getDuration() { - return duration; - } + /** + * Sets the value of the appraisalCode property. + * + * @param value allowed object is {@link String } + */ + public void setAppraisalCode(String value) { + this.appraisalCode = value; + } - /** - * Sets the value of the duration property. - * - * @param value allowed object is {@link Duration } - */ - public void setDuration(Duration value) { - this.duration = value; - } + /** + * Gets the value of the duration property. + * + * @return possible object is {@link Duration } + */ + public Duration getDuration() { + return duration; + } - /** - * Gets the value of the startDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getStartDate() { - return startDate; - } + /** + * Sets the value of the duration property. + * + * @param value allowed object is {@link Duration } + */ + public void setDuration(Duration value) { + this.duration = value; + } - /** - * Sets the value of the startDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setStartDate(XMLGregorianCalendar value) { - this.startDate = value; - } + /** + * Gets the value of the startDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getStartDate() { + return startDate; + } - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** + * Sets the value of the startDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setStartDate(XMLGregorianCalendar value) { + this.startDate = value; + } - /** - * 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 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/org/afnor/medona/v1/ArchiveDeliveryRequestReplyType.java b/src/main/java/org/afnor/medona/v1/ArchiveDeliveryRequestReplyType.java index 57e034a..6c18f0f 100644 --- a/src/main/java/org/afnor/medona/v1/ArchiveDeliveryRequestReplyType.java +++ b/src/main/java/org/afnor/medona/v1/ArchiveDeliveryRequestReplyType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for ArchiveDeliveryRequestReplyType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ArchiveDeliveryRequestReplyType">
@@ -37,116 +35,107 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveDeliveryRequestReplyType", propOrder = { - "authorizationRequestReplyIdentifier", - "unitIdentifier", - "archivalAgency", - "requester" -}) -public class ArchiveDeliveryRequestReplyType - extends BusinessReplyMessageType { +@XmlType( + name = "ArchiveDeliveryRequestReplyType", + propOrder = { + "authorizationRequestReplyIdentifier", + "unitIdentifier", + "archivalAgency", + "requester" + }) +public class ArchiveDeliveryRequestReplyType extends BusinessReplyMessageType { - /** - * The Authorization request reply identifier. - */ - @XmlElement(name = "AuthorizationRequestReplyIdentifier") - protected IdentifierType authorizationRequestReplyIdentifier; - /** - * The Unit identifier. - */ - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationType archivalAgency; - /** - * The Requester. - */ - @XmlElement(name = "Requester", required = true) - protected OrganizationType requester; + /** The Authorization request reply identifier. */ + @XmlElement(name = "AuthorizationRequestReplyIdentifier") + protected IdentifierType authorizationRequestReplyIdentifier; - /** - * Gets the value of the authorizationRequestReplyIdentifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getAuthorizationRequestReplyIdentifier() { - return authorizationRequestReplyIdentifier; - } + /** The Unit identifier. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Sets the value of the authorizationRequestReplyIdentifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setAuthorizationRequestReplyIdentifier(IdentifierType value) { - this.authorizationRequestReplyIdentifier = value; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationType archivalAgency; - /** - * Gets the value of the unitIdentifier 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 unitIdentifier property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getUnitIdentifier().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the unit identifier - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** The Requester. */ + @XmlElement(name = "Requester", required = true) + protected OrganizationType requester; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getArchivalAgency() { - return archivalAgency; - } + /** + * Gets the value of the authorizationRequestReplyIdentifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getAuthorizationRequestReplyIdentifier() { + return authorizationRequestReplyIdentifier; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setArchivalAgency(OrganizationType value) { - this.archivalAgency = value; - } + /** + * Sets the value of the authorizationRequestReplyIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setAuthorizationRequestReplyIdentifier(IdentifierType value) { + this.authorizationRequestReplyIdentifier = value; + } - /** - * Gets the value of the requester property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getRequester() { - return requester; + /** + * Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getUnitIdentifier().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the unit identifier + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Sets the value of the requester property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setRequester(OrganizationType value) { - this.requester = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setArchivalAgency(OrganizationType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the requester property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getRequester() { + return requester; + } + /** + * Sets the value of the requester property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setRequester(OrganizationType value) { + this.requester = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/ArchiveDeliveryRequestType.java b/src/main/java/org/afnor/medona/v1/ArchiveDeliveryRequestType.java index 257ac4c..b4f0034 100644 --- a/src/main/java/org/afnor/medona/v1/ArchiveDeliveryRequestType.java +++ b/src/main/java/org/afnor/medona/v1/ArchiveDeliveryRequestType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for ArchiveDeliveryRequestType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ArchiveDeliveryRequestType">
@@ -37,116 +35,102 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveDeliveryRequestType", propOrder = { - "derogation", - "unitIdentifier", - "archivalAgency", - "requester" -}) -public class ArchiveDeliveryRequestType - extends BusinessRequestMessageType { +@XmlType( + name = "ArchiveDeliveryRequestType", + propOrder = {"derogation", "unitIdentifier", "archivalAgency", "requester"}) +public class ArchiveDeliveryRequestType extends BusinessRequestMessageType { - /** - * The Derogation. - */ - @XmlElement(name = "Derogation") - protected boolean derogation; - /** - * The Unit identifier. - */ - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationType archivalAgency; - /** - * The Requester. - */ - @XmlElement(name = "Requester", required = true) - protected OrganizationType requester; + /** The Derogation. */ + @XmlElement(name = "Derogation") + protected boolean derogation; - /** - * Gets the value of the derogation property. - * - * @return the boolean - */ - public boolean isDerogation() { - return derogation; - } + /** The Unit identifier. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Sets the value of the derogation property. - * - * @param value the value - */ - public void setDerogation(boolean value) { - this.derogation = value; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationType archivalAgency; - /** - * Gets the value of the unitIdentifier 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 unitIdentifier property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getUnitIdentifier().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the unit identifier - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** The Requester. */ + @XmlElement(name = "Requester", required = true) + protected OrganizationType requester; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getArchivalAgency() { - return archivalAgency; - } + /** + * Gets the value of the derogation property. + * + * @return the boolean + */ + public boolean isDerogation() { + return derogation; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setArchivalAgency(OrganizationType value) { - this.archivalAgency = value; - } + /** + * Sets the value of the derogation property. + * + * @param value the value + */ + public void setDerogation(boolean value) { + this.derogation = value; + } - /** - * Gets the value of the requester property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getRequester() { - return requester; + /** + * Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getUnitIdentifier().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the unit identifier + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Sets the value of the requester property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setRequester(OrganizationType value) { - this.requester = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setArchivalAgency(OrganizationType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the requester property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getRequester() { + return requester; + } + /** + * Sets the value of the requester property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setRequester(OrganizationType value) { + this.requester = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/ArchiveDestructionNotificationType.java b/src/main/java/org/afnor/medona/v1/ArchiveDestructionNotificationType.java index 4130232..0186bec 100644 --- a/src/main/java/org/afnor/medona/v1/ArchiveDestructionNotificationType.java +++ b/src/main/java/org/afnor/medona/v1/ArchiveDestructionNotificationType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for ArchiveDestructionNotificationType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ArchiveDestructionNotificationType">
@@ -37,116 +35,107 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveDestructionNotificationType", propOrder = { - "authorizationRequestReplyIdentifier", - "unitIdentifier", - "archivalAgency", - "originatingAgency" -}) -public class ArchiveDestructionNotificationType - extends BusinessNotificationMessageType { +@XmlType( + name = "ArchiveDestructionNotificationType", + propOrder = { + "authorizationRequestReplyIdentifier", + "unitIdentifier", + "archivalAgency", + "originatingAgency" + }) +public class ArchiveDestructionNotificationType extends BusinessNotificationMessageType { - /** - * The Authorization request reply identifier. - */ - @XmlElement(name = "AuthorizationRequestReplyIdentifier", required = true) - protected IdentifierType authorizationRequestReplyIdentifier; - /** - * The Unit identifier. - */ - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationType archivalAgency; - /** - * The Originating agency. - */ - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationType originatingAgency; + /** The Authorization request reply identifier. */ + @XmlElement(name = "AuthorizationRequestReplyIdentifier", required = true) + protected IdentifierType authorizationRequestReplyIdentifier; - /** - * Gets the value of the authorizationRequestReplyIdentifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getAuthorizationRequestReplyIdentifier() { - return authorizationRequestReplyIdentifier; - } + /** The Unit identifier. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Sets the value of the authorizationRequestReplyIdentifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setAuthorizationRequestReplyIdentifier(IdentifierType value) { - this.authorizationRequestReplyIdentifier = value; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationType archivalAgency; - /** - * Gets the value of the unitIdentifier 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 unitIdentifier property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getUnitIdentifier().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the unit identifier - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** The Originating agency. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationType originatingAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getArchivalAgency() { - return archivalAgency; - } + /** + * Gets the value of the authorizationRequestReplyIdentifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getAuthorizationRequestReplyIdentifier() { + return authorizationRequestReplyIdentifier; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setArchivalAgency(OrganizationType value) { - this.archivalAgency = value; - } + /** + * Sets the value of the authorizationRequestReplyIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setAuthorizationRequestReplyIdentifier(IdentifierType value) { + this.authorizationRequestReplyIdentifier = value; + } - /** - * Gets the value of the originatingAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getOriginatingAgency() { - return originatingAgency; + /** + * Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getUnitIdentifier().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the unit identifier + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setOriginatingAgency(OrganizationType value) { - this.originatingAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setArchivalAgency(OrganizationType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the originatingAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setOriginatingAgency(OrganizationType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/ArchiveModificationNotificationType.java b/src/main/java/org/afnor/medona/v1/ArchiveModificationNotificationType.java index cb8d107..9710c2b 100644 --- a/src/main/java/org/afnor/medona/v1/ArchiveModificationNotificationType.java +++ b/src/main/java/org/afnor/medona/v1/ArchiveModificationNotificationType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for ArchiveModificationNotificationType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ArchiveModificationNotificationType">
@@ -36,92 +34,80 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveModificationNotificationType", propOrder = { - "unitIdentifier", - "archivalAgency", - "originatingAgency" -}) -public class ArchiveModificationNotificationType - extends BusinessNotificationMessageType { +@XmlType( + name = "ArchiveModificationNotificationType", + propOrder = {"unitIdentifier", "archivalAgency", "originatingAgency"}) +public class ArchiveModificationNotificationType extends BusinessNotificationMessageType { - /** - * The Unit identifier. - */ - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationType archivalAgency; - /** - * The Originating agency. - */ - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationType originatingAgency; + /** The Unit identifier. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Gets the value of the unitIdentifier 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 unitIdentifier property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getUnitIdentifier().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the unit identifier - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getArchivalAgency() { - return archivalAgency; - } + /** The Originating agency. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setArchivalAgency(OrganizationType value) { - this.archivalAgency = value; + /** + * Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getUnitIdentifier().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the unit identifier + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Gets the value of the originatingAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getOriginatingAgency() { - return originatingAgency; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getArchivalAgency() { + return archivalAgency; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setOriginatingAgency(OrganizationType value) { - this.originatingAgency = value; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setArchivalAgency(OrganizationType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the originatingAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setOriginatingAgency(OrganizationType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/ArchiveRestitutionRequestReplyType.java b/src/main/java/org/afnor/medona/v1/ArchiveRestitutionRequestReplyType.java index b044f8e..2b8d36d 100644 --- a/src/main/java/org/afnor/medona/v1/ArchiveRestitutionRequestReplyType.java +++ b/src/main/java/org/afnor/medona/v1/ArchiveRestitutionRequestReplyType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for ArchiveRestitutionRequestReplyType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ArchiveRestitutionRequestReplyType">
@@ -36,92 +34,80 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveRestitutionRequestReplyType", propOrder = { - "unitIdentifier", - "archivalAgency", - "originatingAgency" -}) -public class ArchiveRestitutionRequestReplyType - extends BusinessReplyMessageType { +@XmlType( + name = "ArchiveRestitutionRequestReplyType", + propOrder = {"unitIdentifier", "archivalAgency", "originatingAgency"}) +public class ArchiveRestitutionRequestReplyType extends BusinessReplyMessageType { - /** - * The Unit identifier. - */ - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationType archivalAgency; - /** - * The Originating agency. - */ - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationType originatingAgency; + /** The Unit identifier. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Gets the value of the unitIdentifier 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 unitIdentifier property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getUnitIdentifier().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the unit identifier - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getArchivalAgency() { - return archivalAgency; - } + /** The Originating agency. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setArchivalAgency(OrganizationType value) { - this.archivalAgency = value; + /** + * Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getUnitIdentifier().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the unit identifier + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Gets the value of the originatingAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getOriginatingAgency() { - return originatingAgency; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getArchivalAgency() { + return archivalAgency; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setOriginatingAgency(OrganizationType value) { - this.originatingAgency = value; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setArchivalAgency(OrganizationType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the originatingAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setOriginatingAgency(OrganizationType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/ArchiveRestitutionRequestType.java b/src/main/java/org/afnor/medona/v1/ArchiveRestitutionRequestType.java index d1398b8..d440ce1 100644 --- a/src/main/java/org/afnor/medona/v1/ArchiveRestitutionRequestType.java +++ b/src/main/java/org/afnor/medona/v1/ArchiveRestitutionRequestType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for ArchiveRestitutionRequestType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ArchiveRestitutionRequestType">
@@ -36,92 +34,80 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveRestitutionRequestType", propOrder = { - "unitIdentifier", - "archivalAgency", - "originatingAgency" -}) -public class ArchiveRestitutionRequestType - extends BusinessRequestMessageType { +@XmlType( + name = "ArchiveRestitutionRequestType", + propOrder = {"unitIdentifier", "archivalAgency", "originatingAgency"}) +public class ArchiveRestitutionRequestType extends BusinessRequestMessageType { - /** - * The Unit identifier. - */ - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationType archivalAgency; - /** - * The Originating agency. - */ - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationType originatingAgency; + /** The Unit identifier. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; - /** - * Gets the value of the unitIdentifier 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 unitIdentifier property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getUnitIdentifier().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the unit identifier - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList<>(); - } - return this.unitIdentifier; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getArchivalAgency() { - return archivalAgency; - } + /** The Originating agency. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setArchivalAgency(OrganizationType value) { - this.archivalAgency = value; + /** + * Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getUnitIdentifier().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the unit identifier + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList<>(); } + return this.unitIdentifier; + } - /** - * Gets the value of the originatingAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getOriginatingAgency() { - return originatingAgency; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getArchivalAgency() { + return archivalAgency; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setOriginatingAgency(OrganizationType value) { - this.originatingAgency = value; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setArchivalAgency(OrganizationType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the originatingAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setOriginatingAgency(OrganizationType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/ArchiveTransferReplyType.java b/src/main/java/org/afnor/medona/v1/ArchiveTransferReplyType.java index 6fb7929..6de086a 100644 --- a/src/main/java/org/afnor/medona/v1/ArchiveTransferReplyType.java +++ b/src/main/java/org/afnor/medona/v1/ArchiveTransferReplyType.java @@ -1,21 +1,19 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; import jakarta.xml.bind.annotation.*; - import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for ArchiveTransferReplyType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ArchiveTransferReplyType">
@@ -32,83 +30,75 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveTransferReplyType", propOrder = { - "grantDate", - "archivalAgency", - "transferringAgency" -}) -public class ArchiveTransferReplyType - extends BusinessReplyMessageType { +@XmlType( + name = "ArchiveTransferReplyType", + propOrder = {"grantDate", "archivalAgency", "transferringAgency"}) +public class ArchiveTransferReplyType extends BusinessReplyMessageType { + + /** The Grant date. */ + @XmlElement(name = "GrantDate") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar grantDate; - /** - * The Grant date. - */ - @XmlElement(name = "GrantDate") - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar grantDate; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationType archivalAgency; - /** - * The Transferring agency. - */ - @XmlElement(name = "TransferringAgency", required = true) - protected OrganizationType transferringAgency; + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationType archivalAgency; - /** - * Gets the value of the grantDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getGrantDate() { - return grantDate; - } + /** The Transferring agency. */ + @XmlElement(name = "TransferringAgency", required = true) + protected OrganizationType transferringAgency; - /** - * Sets the value of the grantDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setGrantDate(XMLGregorianCalendar value) { - this.grantDate = value; - } + /** + * Gets the value of the grantDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getGrantDate() { + return grantDate; + } - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getArchivalAgency() { - return archivalAgency; - } + /** + * Sets the value of the grantDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setGrantDate(XMLGregorianCalendar value) { + this.grantDate = value; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setArchivalAgency(OrganizationType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the transferringAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getTransferringAgency() { - return transferringAgency; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setArchivalAgency(OrganizationType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the transferringAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setTransferringAgency(OrganizationType value) { - this.transferringAgency = value; - } + /** + * Gets the value of the transferringAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getTransferringAgency() { + return transferringAgency; + } + /** + * Sets the value of the transferringAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setTransferringAgency(OrganizationType value) { + this.transferringAgency = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/ArchiveTransferRequestReplyType.java b/src/main/java/org/afnor/medona/v1/ArchiveTransferRequestReplyType.java index 5420e10..4b2ca48 100644 --- a/src/main/java/org/afnor/medona/v1/ArchiveTransferRequestReplyType.java +++ b/src/main/java/org/afnor/medona/v1/ArchiveTransferRequestReplyType.java @@ -1,21 +1,19 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; import jakarta.xml.bind.annotation.*; - import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for ArchiveTransferRequestReplyType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ArchiveTransferRequestReplyType">
@@ -32,83 +30,75 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveTransferRequestReplyType", propOrder = { - "transferDate", - "archivalAgency", - "transferringAgency" -}) -public class ArchiveTransferRequestReplyType - extends BusinessReplyMessageType { +@XmlType( + name = "ArchiveTransferRequestReplyType", + propOrder = {"transferDate", "archivalAgency", "transferringAgency"}) +public class ArchiveTransferRequestReplyType extends BusinessReplyMessageType { + + /** The Transfer date. */ + @XmlElement(name = "TransferDate") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar transferDate; - /** - * The Transfer date. - */ - @XmlElement(name = "TransferDate") - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar transferDate; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationType archivalAgency; - /** - * The Transferring agency. - */ - @XmlElement(name = "TransferringAgency", required = true) - protected OrganizationType transferringAgency; + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationType archivalAgency; - /** - * Gets the value of the transferDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getTransferDate() { - return transferDate; - } + /** The Transferring agency. */ + @XmlElement(name = "TransferringAgency", required = true) + protected OrganizationType transferringAgency; - /** - * Sets the value of the transferDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setTransferDate(XMLGregorianCalendar value) { - this.transferDate = value; - } + /** + * Gets the value of the transferDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getTransferDate() { + return transferDate; + } - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getArchivalAgency() { - return archivalAgency; - } + /** + * Sets the value of the transferDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setTransferDate(XMLGregorianCalendar value) { + this.transferDate = value; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setArchivalAgency(OrganizationType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the transferringAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getTransferringAgency() { - return transferringAgency; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setArchivalAgency(OrganizationType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the transferringAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setTransferringAgency(OrganizationType value) { - this.transferringAgency = value; - } + /** + * Gets the value of the transferringAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getTransferringAgency() { + return transferringAgency; + } + /** + * Sets the value of the transferringAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setTransferringAgency(OrganizationType value) { + this.transferringAgency = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/ArchiveTransferRequestType.java b/src/main/java/org/afnor/medona/v1/ArchiveTransferRequestType.java index 8ed1f93..13d1c7b 100644 --- a/src/main/java/org/afnor/medona/v1/ArchiveTransferRequestType.java +++ b/src/main/java/org/afnor/medona/v1/ArchiveTransferRequestType.java @@ -1,23 +1,21 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; import jakarta.xml.bind.annotation.*; - -import javax.xml.datatype.XMLGregorianCalendar; import java.util.ArrayList; import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for ArchiveTransferRequestType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ArchiveTransferRequestType">
@@ -35,117 +33,108 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveTransferRequestType", propOrder = { - "relatedTransferReference", - "transferDate", - "archivalAgency", - "transferringAgency" -}) -public class ArchiveTransferRequestType - extends BusinessRequestMessageType { +@XmlType( + name = "ArchiveTransferRequestType", + propOrder = { + "relatedTransferReference", + "transferDate", + "archivalAgency", + "transferringAgency" + }) +public class ArchiveTransferRequestType extends BusinessRequestMessageType { - /** - * The Related transfer reference. - */ - @XmlElement(name = "RelatedTransferReference") - protected List relatedTransferReference; - /** - * The Transfer date. - */ - @XmlElement(name = "TransferDate") - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar transferDate; - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationType archivalAgency; - /** - * The Transferring agency. - */ - @XmlElement(name = "TransferringAgency", required = true) - protected OrganizationType transferringAgency; + /** The Related transfer reference. */ + @XmlElement(name = "RelatedTransferReference") + protected List relatedTransferReference; - /** - * Gets the value of the relatedTransferReference 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 relatedTransferReference property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRelatedTransferReference().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the related transfer reference - */ - public List getRelatedTransferReference() { - if (relatedTransferReference == null) { - relatedTransferReference = new ArrayList<>(); - } - return this.relatedTransferReference; - } + /** The Transfer date. */ + @XmlElement(name = "TransferDate") + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar transferDate; - /** - * Gets the value of the transferDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getTransferDate() { - return transferDate; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationType archivalAgency; - /** - * Sets the value of the transferDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setTransferDate(XMLGregorianCalendar value) { - this.transferDate = value; - } + /** The Transferring agency. */ + @XmlElement(name = "TransferringAgency", required = true) + protected OrganizationType transferringAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getArchivalAgency() { - return archivalAgency; + /** + * Gets the value of the relatedTransferReference 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 relatedTransferReference property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getRelatedTransferReference().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the related transfer reference + */ + public List getRelatedTransferReference() { + if (relatedTransferReference == null) { + relatedTransferReference = new ArrayList<>(); } + return this.relatedTransferReference; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setArchivalAgency(OrganizationType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the transferDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getTransferDate() { + return transferDate; + } - /** - * Gets the value of the transferringAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getTransferringAgency() { - return transferringAgency; - } + /** + * Sets the value of the transferDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setTransferDate(XMLGregorianCalendar value) { + this.transferDate = value; + } - /** - * Sets the value of the transferringAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setTransferringAgency(OrganizationType value) { - this.transferringAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setArchivalAgency(OrganizationType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the transferringAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getTransferringAgency() { + return transferringAgency; + } + /** + * Sets the value of the transferringAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setTransferringAgency(OrganizationType value) { + this.transferringAgency = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/ArchiveTransferType.java b/src/main/java/org/afnor/medona/v1/ArchiveTransferType.java index 8367b64..e0cd859 100644 --- a/src/main/java/org/afnor/medona/v1/ArchiveTransferType.java +++ b/src/main/java/org/afnor/medona/v1/ArchiveTransferType.java @@ -1,22 +1,20 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; import jakarta.xml.bind.annotation.*; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for ArchiveTransferType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ArchiveTransferType">
@@ -35,116 +33,107 @@
  */
 @XmlRootElement(name = "ArchiveTransfer")
 @XmlAccessorType(XmlAccessType.FIELD)
-@XmlType(name = "ArchiveTransferType", propOrder = {
-    "relatedTransferReference",
-    "transferRequestReplyIdentifier",
-    "archivalAgency",
-    "transferringAgency"
-})
-public class ArchiveTransferType
-        extends BusinessRequestMessageType {
+@XmlType(
+    name = "ArchiveTransferType",
+    propOrder = {
+      "relatedTransferReference",
+      "transferRequestReplyIdentifier",
+      "archivalAgency",
+      "transferringAgency"
+    })
+public class ArchiveTransferType extends BusinessRequestMessageType {
 
-    /**
-     * The Related transfer reference.
-     */
-    @XmlElement(name = "RelatedTransferReference")
-    protected List relatedTransferReference;
-    /**
-     * The Transfer request reply identifier.
-     */
-    @XmlElement(name = "TransferRequestReplyIdentifier")
-    protected IdentifierType transferRequestReplyIdentifier;
-    /**
-     * The Archival agency.
-     */
-    @XmlElement(name = "ArchivalAgency", required = true)
-    protected OrganizationType archivalAgency;
-    /**
-     * The Transferring agency.
-     */
-    @XmlElement(name = "TransferringAgency", required = true)
-    protected OrganizationType transferringAgency;
+  /** The Related transfer reference. */
+  @XmlElement(name = "RelatedTransferReference")
+  protected List relatedTransferReference;
 
-    /**
-     * Gets the value of the relatedTransferReference 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 relatedTransferReference property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRelatedTransferReference().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the related transfer reference - */ - public List getRelatedTransferReference() { - if (relatedTransferReference == null) { - relatedTransferReference = new ArrayList(); - } - return this.relatedTransferReference; - } + /** The Transfer request reply identifier. */ + @XmlElement(name = "TransferRequestReplyIdentifier") + protected IdentifierType transferRequestReplyIdentifier; - /** - * Gets the value of the transferRequestReplyIdentifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getTransferRequestReplyIdentifier() { - return transferRequestReplyIdentifier; - } + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationType archivalAgency; - /** - * Sets the value of the transferRequestReplyIdentifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setTransferRequestReplyIdentifier(IdentifierType value) { - this.transferRequestReplyIdentifier = value; - } + /** The Transferring agency. */ + @XmlElement(name = "TransferringAgency", required = true) + protected OrganizationType transferringAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getArchivalAgency() { - return archivalAgency; + /** + * Gets the value of the relatedTransferReference 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 relatedTransferReference property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getRelatedTransferReference().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the related transfer reference + */ + public List getRelatedTransferReference() { + if (relatedTransferReference == null) { + relatedTransferReference = new ArrayList(); } + return this.relatedTransferReference; + } - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setArchivalAgency(OrganizationType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the transferRequestReplyIdentifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getTransferRequestReplyIdentifier() { + return transferRequestReplyIdentifier; + } - /** - * Gets the value of the transferringAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getTransferringAgency() { - return transferringAgency; - } + /** + * Sets the value of the transferRequestReplyIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setTransferRequestReplyIdentifier(IdentifierType value) { + this.transferRequestReplyIdentifier = value; + } - /** - * Sets the value of the transferringAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setTransferringAgency(OrganizationType value) { - this.transferringAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getArchivalAgency() { + return archivalAgency; + } + + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setArchivalAgency(OrganizationType value) { + this.archivalAgency = value; + } + + /** + * Gets the value of the transferringAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getTransferringAgency() { + return transferringAgency; + } + /** + * Sets the value of the transferringAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setTransferringAgency(OrganizationType value) { + this.transferringAgency = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/AuthorizationControlAuthorityRequestReplyType.java b/src/main/java/org/afnor/medona/v1/AuthorizationControlAuthorityRequestReplyType.java index 4e7dd8f..4eb0e92 100644 --- a/src/main/java/org/afnor/medona/v1/AuthorizationControlAuthorityRequestReplyType.java +++ b/src/main/java/org/afnor/medona/v1/AuthorizationControlAuthorityRequestReplyType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for AuthorizationControlAuthorityRequestReplyType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="AuthorizationControlAuthorityRequestReplyType">
@@ -32,58 +31,53 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationControlAuthorityRequestReplyType", propOrder = { - "archivalAgency", - "controlAuthority" -}) +@XmlType( + name = "AuthorizationControlAuthorityRequestReplyType", + propOrder = {"archivalAgency", "controlAuthority"}) public class AuthorizationControlAuthorityRequestReplyType - extends BusinessAuthorizationRequestReplyMessageType { + extends BusinessAuthorizationRequestReplyMessageType { - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationType archivalAgency; - /** - * The Control authority. - */ - @XmlElement(name = "ControlAuthority", required = true) - protected OrganizationType controlAuthority; + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getArchivalAgency() { - return archivalAgency; - } + /** The Control authority. */ + @XmlElement(name = "ControlAuthority", required = true) + protected OrganizationType controlAuthority; - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setArchivalAgency(OrganizationType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the controlAuthority property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getControlAuthority() { - return controlAuthority; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setArchivalAgency(OrganizationType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the controlAuthority property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setControlAuthority(OrganizationType value) { - this.controlAuthority = value; - } + /** + * Gets the value of the controlAuthority property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getControlAuthority() { + return controlAuthority; + } + /** + * Sets the value of the controlAuthority property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setControlAuthority(OrganizationType value) { + this.controlAuthority = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/AuthorizationControlAuthorityRequestType.java b/src/main/java/org/afnor/medona/v1/AuthorizationControlAuthorityRequestType.java index f885f1e..20c44db 100644 --- a/src/main/java/org/afnor/medona/v1/AuthorizationControlAuthorityRequestType.java +++ b/src/main/java/org/afnor/medona/v1/AuthorizationControlAuthorityRequestType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for AuthorizationControlAuthorityRequestType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="AuthorizationControlAuthorityRequestType">
@@ -32,58 +31,53 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationControlAuthorityRequestType", propOrder = { - "archivalAgency", - "controlAuthority" -}) +@XmlType( + name = "AuthorizationControlAuthorityRequestType", + propOrder = {"archivalAgency", "controlAuthority"}) public class AuthorizationControlAuthorityRequestType - extends BusinessAuthorizationRequestMessageType { + extends BusinessAuthorizationRequestMessageType { - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationType archivalAgency; - /** - * The Control authority. - */ - @XmlElement(name = "ControlAuthority", required = true) - protected OrganizationType controlAuthority; + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getArchivalAgency() { - return archivalAgency; - } + /** The Control authority. */ + @XmlElement(name = "ControlAuthority", required = true) + protected OrganizationType controlAuthority; - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setArchivalAgency(OrganizationType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the controlAuthority property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getControlAuthority() { - return controlAuthority; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setArchivalAgency(OrganizationType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the controlAuthority property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setControlAuthority(OrganizationType value) { - this.controlAuthority = value; - } + /** + * Gets the value of the controlAuthority property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getControlAuthority() { + return controlAuthority; + } + /** + * Sets the value of the controlAuthority property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setControlAuthority(OrganizationType value) { + this.controlAuthority = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/AuthorizationOriginatingAgencyRequestReplyType.java b/src/main/java/org/afnor/medona/v1/AuthorizationOriginatingAgencyRequestReplyType.java index 50f3c33..cd8bfe0 100644 --- a/src/main/java/org/afnor/medona/v1/AuthorizationOriginatingAgencyRequestReplyType.java +++ b/src/main/java/org/afnor/medona/v1/AuthorizationOriginatingAgencyRequestReplyType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for AuthorizationOriginatingAgencyRequestReplyType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="AuthorizationOriginatingAgencyRequestReplyType">
@@ -32,58 +31,53 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationOriginatingAgencyRequestReplyType", propOrder = { - "archivalAgency", - "originatingAgency" -}) +@XmlType( + name = "AuthorizationOriginatingAgencyRequestReplyType", + propOrder = {"archivalAgency", "originatingAgency"}) public class AuthorizationOriginatingAgencyRequestReplyType - extends BusinessAuthorizationRequestReplyMessageType { + extends BusinessAuthorizationRequestReplyMessageType { - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationType archivalAgency; - /** - * The Originating agency. - */ - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationType originatingAgency; + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getArchivalAgency() { - return archivalAgency; - } + /** The Originating agency. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setArchivalAgency(OrganizationType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the originatingAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getOriginatingAgency() { - return originatingAgency; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setArchivalAgency(OrganizationType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setOriginatingAgency(OrganizationType value) { - this.originatingAgency = value; - } + /** + * Gets the value of the originatingAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setOriginatingAgency(OrganizationType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/AuthorizationOriginatingAgencyRequestType.java b/src/main/java/org/afnor/medona/v1/AuthorizationOriginatingAgencyRequestType.java index 3b54570..3c33f28 100644 --- a/src/main/java/org/afnor/medona/v1/AuthorizationOriginatingAgencyRequestType.java +++ b/src/main/java/org/afnor/medona/v1/AuthorizationOriginatingAgencyRequestType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for AuthorizationOriginatingAgencyRequestType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="AuthorizationOriginatingAgencyRequestType">
@@ -32,58 +31,53 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationOriginatingAgencyRequestType", propOrder = { - "archivalAgency", - "originatingAgency" -}) +@XmlType( + name = "AuthorizationOriginatingAgencyRequestType", + propOrder = {"archivalAgency", "originatingAgency"}) public class AuthorizationOriginatingAgencyRequestType - extends BusinessAuthorizationRequestMessageType { + extends BusinessAuthorizationRequestMessageType { - /** - * The Archival agency. - */ - @XmlElement(name = "ArchivalAgency", required = true) - protected OrganizationType archivalAgency; - /** - * The Originating agency. - */ - @XmlElement(name = "OriginatingAgency", required = true) - protected OrganizationType originatingAgency; + /** The Archival agency. */ + @XmlElement(name = "ArchivalAgency", required = true) + protected OrganizationType archivalAgency; - /** - * Gets the value of the archivalAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getArchivalAgency() { - return archivalAgency; - } + /** The Originating agency. */ + @XmlElement(name = "OriginatingAgency", required = true) + protected OrganizationType originatingAgency; - /** - * Sets the value of the archivalAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setArchivalAgency(OrganizationType value) { - this.archivalAgency = value; - } + /** + * Gets the value of the archivalAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getArchivalAgency() { + return archivalAgency; + } - /** - * Gets the value of the originatingAgency property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getOriginatingAgency() { - return originatingAgency; - } + /** + * Sets the value of the archivalAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setArchivalAgency(OrganizationType value) { + this.archivalAgency = value; + } - /** - * Sets the value of the originatingAgency property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setOriginatingAgency(OrganizationType value) { - this.originatingAgency = value; - } + /** + * Gets the value of the originatingAgency property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getOriginatingAgency() { + return originatingAgency; + } + /** + * Sets the value of the originatingAgency property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setOriginatingAgency(OrganizationType value) { + this.originatingAgency = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/AuthorizationRequestContentType.java b/src/main/java/org/afnor/medona/v1/AuthorizationRequestContentType.java index 7913d5b..56f8878 100644 --- a/src/main/java/org/afnor/medona/v1/AuthorizationRequestContentType.java +++ b/src/main/java/org/afnor/medona/v1/AuthorizationRequestContentType.java @@ -1,25 +1,23 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - -import javax.xml.datatype.XMLGregorianCalendar; import java.util.ArrayList; import java.util.List; +import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for AuthorizationRequestContentType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="AuthorizationRequestContentType">
@@ -40,212 +38,194 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AuthorizationRequestContentType", propOrder = { - "authorizationReason", - "comment", - "requestDate", - "unitIdentifier", - "requester", - "authorizationRequestReply" -}) +@XmlType( + name = "AuthorizationRequestContentType", + propOrder = { + "authorizationReason", + "comment", + "requestDate", + "unitIdentifier", + "requester", + "authorizationRequestReply" + }) public class AuthorizationRequestContentType { - /** - * The Authorization reason. - */ - @XmlElement(name = "AuthorizationReason", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String authorizationReason; - /** - * The Comment. - */ - @XmlElement(name = "Comment") - protected List comment; - /** - * The Request date. - */ - @XmlElement(name = "RequestDate", required = true) - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar requestDate; - /** - * The Unit identifier. - */ - @XmlElement(name = "UnitIdentifier", required = true) - protected List unitIdentifier; - /** - * The Requester. - */ - @XmlElement(name = "Requester", required = true) - protected OrganizationType requester; - /** - * The Authorization request reply. - */ - @XmlElement(name = "AuthorizationRequestReply") - protected List authorizationRequestReply; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - - /** - * Gets the value of the authorizationReason property. - * - * @return possible object is {@link String } - */ - public String getAuthorizationReason() { - return authorizationReason; - } - - /** - * Sets the value of the authorizationReason property. - * - * @param value allowed object is {@link String } - */ - public void setAuthorizationReason(String value) { - this.authorizationReason = value; - } - - /** - * Gets the value of the comment 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 comment property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getComment().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the comment - */ - public List getComment() { - if (comment == null) { - comment = new ArrayList(); - } - return this.comment; - } - - /** - * Gets the value of the requestDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getRequestDate() { - return requestDate; - } - - /** - * Sets the value of the requestDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setRequestDate(XMLGregorianCalendar value) { - this.requestDate = value; + /** The Authorization reason. */ + @XmlElement(name = "AuthorizationReason", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String authorizationReason; + + /** The Comment. */ + @XmlElement(name = "Comment") + protected List comment; + + /** The Request date. */ + @XmlElement(name = "RequestDate", required = true) + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar requestDate; + + /** The Unit identifier. */ + @XmlElement(name = "UnitIdentifier", required = true) + protected List unitIdentifier; + + /** The Requester. */ + @XmlElement(name = "Requester", required = true) + protected OrganizationType requester; + + /** The Authorization request reply. */ + @XmlElement(name = "AuthorizationRequestReply") + protected List authorizationRequestReply; + + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Gets the value of the authorizationReason property. + * + * @return possible object is {@link String } + */ + public String getAuthorizationReason() { + return authorizationReason; + } + + /** + * Sets the value of the authorizationReason property. + * + * @param value allowed object is {@link String } + */ + public void setAuthorizationReason(String value) { + this.authorizationReason = value; + } + + /** + * Gets the value of the comment 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 comment property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getComment().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the comment + */ + public List getComment() { + if (comment == null) { + comment = new ArrayList(); } - - /** - * Gets the value of the unitIdentifier 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 unitIdentifier property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getUnitIdentifier().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link IdentifierType - * }* - * - * @return the unit identifier - */ - public List getUnitIdentifier() { - if (unitIdentifier == null) { - unitIdentifier = new ArrayList(); - } - return this.unitIdentifier; - } - - /** - * Gets the value of the requester property. - * - * @return possible object is {@link OrganizationType } - */ - public OrganizationType getRequester() { - return requester; + return this.comment; + } + + /** + * Gets the value of the requestDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getRequestDate() { + return requestDate; + } + + /** + * Sets the value of the requestDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setRequestDate(XMLGregorianCalendar value) { + this.requestDate = value; + } + + /** + * Gets the value of the unitIdentifier 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 unitIdentifier property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getUnitIdentifier().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link IdentifierType }* + * + * @return the unit identifier + */ + public List getUnitIdentifier() { + if (unitIdentifier == null) { + unitIdentifier = new ArrayList(); } - - /** - * Sets the value of the requester property. - * - * @param value allowed object is {@link OrganizationType } - */ - public void setRequester(OrganizationType value) { - this.requester = value; - } - - /** - * Gets the value of the authorizationRequestReply 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 authorizationRequestReply property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getAuthorizationRequestReply().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link BusinessAuthorizationRequestReplyMessageType - * }* - * - * @return the authorization request reply - */ - public List getAuthorizationRequestReply() { - if (authorizationRequestReply == null) { - authorizationRequestReply = new ArrayList(); - } - return this.authorizationRequestReply; + return this.unitIdentifier; + } + + /** + * Gets the value of the requester property. + * + * @return possible object is {@link OrganizationType } + */ + public OrganizationType getRequester() { + return requester; + } + + /** + * Sets the value of the requester property. + * + * @param value allowed object is {@link OrganizationType } + */ + public void setRequester(OrganizationType value) { + this.requester = value; + } + + /** + * Gets the value of the authorizationRequestReply 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 authorizationRequestReply property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getAuthorizationRequestReply().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link + * BusinessAuthorizationRequestReplyMessageType }* + * + * @return the authorization request reply + */ + public List getAuthorizationRequestReply() { + if (authorizationRequestReply == null) { + authorizationRequestReply = new ArrayList(); } - - /** - * 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; - } - + return this.authorizationRequestReply; + } + + /** + * 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/org/afnor/medona/v1/BinaryDataObjectType.java b/src/main/java/org/afnor/medona/v1/BinaryDataObjectType.java index 5b484a6..2ed17a1 100644 --- a/src/main/java/org/afnor/medona/v1/BinaryDataObjectType.java +++ b/src/main/java/org/afnor/medona/v1/BinaryDataObjectType.java @@ -1,23 +1,21 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - import java.math.BigDecimal; /** - *

* Java class for BinaryDataObjectType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="BinaryDataObjectType">
@@ -36,134 +34,122 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BinaryDataObjectType", propOrder = { - "attachment", - "format", - "messageDigest", - "signatureStatus", - "size" -}) -public class BinaryDataObjectType - extends DataObjectType { - - /** - * The Attachment. - */ - @XmlElement(name = "Attachment", required = true) - protected BinaryObjectType attachment; - /** - * The Format. - */ - @XmlElement(name = "Format", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String format; - /** - * The Message digest. - */ - @XmlElement(name = "MessageDigest", required = true) - protected MessageDigestBinaryObjectType messageDigest; - /** - * The Signature status. - */ - @XmlElement(name = "SignatureStatus", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String signatureStatus; - /** - * The Size. - */ - @XmlElement(name = "Size", required = true) - protected BigDecimal size; - - /** - * Gets the value of the attachment property. - * - * @return possible object is {@link BinaryObjectType } - */ - public BinaryObjectType getAttachment() { - return attachment; - } - - /** - * Sets the value of the attachment property. - * - * @param value allowed object is {@link BinaryObjectType } - */ - public void setAttachment(BinaryObjectType value) { - this.attachment = value; - } - - /** - * Gets the value of the format property. - * - * @return possible object is {@link String } - */ - public String getFormat() { - return format; - } - - /** - * Sets the value of the format property. - * - * @param value allowed object is {@link String } - */ - public void setFormat(String value) { - this.format = value; - } - - /** - * Gets the value of the messageDigest property. - * - * @return possible object is {@link MessageDigestBinaryObjectType } - */ - public MessageDigestBinaryObjectType getMessageDigest() { - return messageDigest; - } - - /** - * Sets the value of the messageDigest property. - * - * @param value allowed object is {@link MessageDigestBinaryObjectType } - */ - public void setMessageDigest(MessageDigestBinaryObjectType value) { - this.messageDigest = value; - } - - /** - * Gets the value of the signatureStatus property. - * - * @return possible object is {@link String } - */ - public String getSignatureStatus() { - return signatureStatus; - } - - /** - * Sets the value of the signatureStatus property. - * - * @param value allowed object is {@link String } - */ - public void setSignatureStatus(String value) { - this.signatureStatus = value; - } - - /** - * Gets the value of the size property. - * - * @return possible object is {@link BigDecimal } - */ - public BigDecimal getSize() { - return size; - } - - /** - * Sets the value of the size property. - * - * @param value allowed object is {@link BigDecimal } - */ - public void setSize(BigDecimal value) { - this.size = value; - } +@XmlType( + name = "BinaryDataObjectType", + propOrder = {"attachment", "format", "messageDigest", "signatureStatus", "size"}) +public class BinaryDataObjectType extends DataObjectType { + + /** The Attachment. */ + @XmlElement(name = "Attachment", required = true) + protected BinaryObjectType attachment; + + /** The Format. */ + @XmlElement(name = "Format", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String format; + + /** The Message digest. */ + @XmlElement(name = "MessageDigest", required = true) + protected MessageDigestBinaryObjectType messageDigest; + + /** The Signature status. */ + @XmlElement(name = "SignatureStatus", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String signatureStatus; + + /** The Size. */ + @XmlElement(name = "Size", required = true) + protected BigDecimal size; + + /** + * Gets the value of the attachment property. + * + * @return possible object is {@link BinaryObjectType } + */ + public BinaryObjectType getAttachment() { + return attachment; + } + + /** + * Sets the value of the attachment property. + * + * @param value allowed object is {@link BinaryObjectType } + */ + public void setAttachment(BinaryObjectType value) { + this.attachment = value; + } + + /** + * Gets the value of the format property. + * + * @return possible object is {@link String } + */ + public String getFormat() { + return format; + } + + /** + * Sets the value of the format property. + * + * @param value allowed object is {@link String } + */ + public void setFormat(String value) { + this.format = value; + } + + /** + * Gets the value of the messageDigest property. + * + * @return possible object is {@link MessageDigestBinaryObjectType } + */ + public MessageDigestBinaryObjectType getMessageDigest() { + return messageDigest; + } + + /** + * Sets the value of the messageDigest property. + * + * @param value allowed object is {@link MessageDigestBinaryObjectType } + */ + public void setMessageDigest(MessageDigestBinaryObjectType value) { + this.messageDigest = value; + } + + /** + * Gets the value of the signatureStatus property. + * + * @return possible object is {@link String } + */ + public String getSignatureStatus() { + return signatureStatus; + } + + /** + * Sets the value of the signatureStatus property. + * + * @param value allowed object is {@link String } + */ + public void setSignatureStatus(String value) { + this.signatureStatus = value; + } + + /** + * Gets the value of the size property. + * + * @return possible object is {@link BigDecimal } + */ + public BigDecimal getSize() { + return size; + } + /** + * Sets the value of the size property. + * + * @param value allowed object is {@link BigDecimal } + */ + public void setSize(BigDecimal value) { + this.size = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/BinaryObjectType.java b/src/main/java/org/afnor/medona/v1/BinaryObjectType.java index abef238..2db8374 100644 --- a/src/main/java/org/afnor/medona/v1/BinaryObjectType.java +++ b/src/main/java/org/afnor/medona/v1/BinaryObjectType.java @@ -1,19 +1,18 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; import jakarta.xml.bind.annotation.*; /** - *

* Java class for BinaryObjectType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="BinaryObjectType">
@@ -27,83 +26,75 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BinaryObjectType", propOrder = { - "value" -}) -@XmlSeeAlso({ - MessageDigestBinaryObjectType.class -}) +@XmlType( + name = "BinaryObjectType", + propOrder = {"value"}) +@XmlSeeAlso({MessageDigestBinaryObjectType.class}) public class BinaryObjectType { - /** - * The Value. - */ - @XmlValue - protected byte[] value; - /** - * The Filename. - */ - @XmlAttribute(name = "filename") - protected String filename; - /** - * The Uri. - */ - @XmlAttribute(name = "uri") - @XmlSchemaType(name = "anyURI") - protected String uri; + /** The Value. */ + @XmlValue protected byte[] value; - /** - * Gets the value of the value property. - * - * @return possible object is byte[] - */ - public byte[] getValue() { - return value; - } + /** The Filename. */ + @XmlAttribute(name = "filename") + protected String filename; - /** - * Sets the value of the value property. - * - * @param value allowed object is byte[] - */ - public void setValue(byte[] value) { - this.value = value; - } + /** The Uri. */ + @XmlAttribute(name = "uri") + @XmlSchemaType(name = "anyURI") + protected String uri; - /** - * Gets the value of the filename property. - * - * @return possible object is {@link String } - */ - public String getFilename() { - return filename; - } + /** + * Gets the value of the value property. + * + * @return possible object is byte[] + */ + public byte[] getValue() { + return value; + } - /** - * Sets the value of the filename property. - * - * @param value allowed object is {@link String } - */ - public void setFilename(String value) { - this.filename = value; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is byte[] + */ + public void setValue(byte[] value) { + this.value = value; + } - /** - * Gets the value of the uri property. - * - * @return possible object is {@link String } - */ - public String getUri() { - return uri; - } + /** + * Gets the value of the filename property. + * + * @return possible object is {@link String } + */ + public String getFilename() { + return filename; + } - /** - * Sets the value of the uri property. - * - * @param value allowed object is {@link String } - */ - public void setUri(String value) { - this.uri = value; - } + /** + * Sets the value of the filename property. + * + * @param value allowed object is {@link String } + */ + public void setFilename(String value) { + this.filename = value; + } + /** + * Gets the value of the uri property. + * + * @return possible object is {@link String } + */ + public String getUri() { + return uri; + } + + /** + * Sets the value of the uri property. + * + * @param value allowed object is {@link String } + */ + public void setUri(String value) { + this.uri = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/BusinessAuthorizationRequestMessageType.java b/src/main/java/org/afnor/medona/v1/BusinessAuthorizationRequestMessageType.java index 30df950..789d9db 100644 --- a/src/main/java/org/afnor/medona/v1/BusinessAuthorizationRequestMessageType.java +++ b/src/main/java/org/afnor/medona/v1/BusinessAuthorizationRequestMessageType.java @@ -1,19 +1,18 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; import jakarta.xml.bind.annotation.*; /** - *

* Java class for BusinessAuthorizationRequestMessageType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="BusinessAuthorizationRequestMessageType">
@@ -28,38 +27,34 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BusinessAuthorizationRequestMessageType", propOrder = { - "authorizationRequestContent" -}) +@XmlType( + name = "BusinessAuthorizationRequestMessageType", + propOrder = {"authorizationRequestContent"}) @XmlSeeAlso({ - AuthorizationControlAuthorityRequestType.class, - AuthorizationOriginatingAgencyRequestType.class + AuthorizationControlAuthorityRequestType.class, + AuthorizationOriginatingAgencyRequestType.class }) -public abstract class BusinessAuthorizationRequestMessageType - extends BusinessRequestMessageType { - - /** - * The Authorization request content. - */ - @XmlElement(name = "AuthorizationRequestContent", required = true) - protected AuthorizationRequestContentType authorizationRequestContent; +public abstract class BusinessAuthorizationRequestMessageType extends BusinessRequestMessageType { - /** - * Gets the value of the authorizationRequestContent property. - * - * @return possible object is {@link AuthorizationRequestContentType } - */ - public AuthorizationRequestContentType getAuthorizationRequestContent() { - return authorizationRequestContent; - } + /** The Authorization request content. */ + @XmlElement(name = "AuthorizationRequestContent", required = true) + protected AuthorizationRequestContentType authorizationRequestContent; - /** - * Sets the value of the authorizationRequestContent property. - * - * @param value allowed object is {@link AuthorizationRequestContentType } - */ - public void setAuthorizationRequestContent(AuthorizationRequestContentType value) { - this.authorizationRequestContent = value; - } + /** + * Gets the value of the authorizationRequestContent property. + * + * @return possible object is {@link AuthorizationRequestContentType } + */ + public AuthorizationRequestContentType getAuthorizationRequestContent() { + return authorizationRequestContent; + } + /** + * Sets the value of the authorizationRequestContent property. + * + * @param value allowed object is {@link AuthorizationRequestContentType } + */ + public void setAuthorizationRequestContent(AuthorizationRequestContentType value) { + this.authorizationRequestContent = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/BusinessAuthorizationRequestReplyMessageType.java b/src/main/java/org/afnor/medona/v1/BusinessAuthorizationRequestReplyMessageType.java index 1c3ae57..1fd0363 100644 --- a/src/main/java/org/afnor/medona/v1/BusinessAuthorizationRequestReplyMessageType.java +++ b/src/main/java/org/afnor/medona/v1/BusinessAuthorizationRequestReplyMessageType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for BusinessAuthorizationRequestReplyMessageType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="BusinessAuthorizationRequestReplyMessageType">
@@ -30,10 +29,8 @@
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "BusinessAuthorizationRequestReplyMessageType")
 @XmlSeeAlso({
-    AuthorizationControlAuthorityRequestReplyType.class,
-    AuthorizationOriginatingAgencyRequestReplyType.class
+  AuthorizationControlAuthorityRequestReplyType.class,
+  AuthorizationOriginatingAgencyRequestReplyType.class
 })
 public abstract class BusinessAuthorizationRequestReplyMessageType
-        extends BusinessReplyMessageType {
-
-}
+    extends BusinessReplyMessageType {}
diff --git a/src/main/java/org/afnor/medona/v1/BusinessMessageType.java b/src/main/java/org/afnor/medona/v1/BusinessMessageType.java
index d21e6eb..6bf6d45 100644
--- a/src/main/java/org/afnor/medona/v1/BusinessMessageType.java
+++ b/src/main/java/org/afnor/medona/v1/BusinessMessageType.java
@@ -1,19 +1,18 @@
 //
-// 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: 2019.09.15 at 07:07:47 PM CEST 
+// 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: 2019.09.15 at 07:07:47 PM CEST
 //
 package org.afnor.medona.v1;
 
 import jakarta.xml.bind.annotation.*;
 
 /**
- * 

* Java class for BusinessMessageType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="BusinessMessageType">
@@ -30,87 +29,79 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BusinessMessageType", propOrder = { - "archivalAgreement", - "codeListVersions", - "dataObjectPackage" -}) +@XmlType( + name = "BusinessMessageType", + propOrder = {"archivalAgreement", "codeListVersions", "dataObjectPackage"}) @XmlSeeAlso({ - BusinessNotificationMessageType.class, - BusinessRequestMessageType.class, - BusinessReplyMessageType.class + BusinessNotificationMessageType.class, + BusinessRequestMessageType.class, + BusinessReplyMessageType.class }) -public abstract class BusinessMessageType - extends MessageType { +public abstract class BusinessMessageType extends MessageType { + + /** The Archival agreement. */ + @XmlElement(name = "ArchivalAgreement") + protected IdentifierType archivalAgreement; - /** - * The Archival agreement. - */ - @XmlElement(name = "ArchivalAgreement") - protected IdentifierType archivalAgreement; - /** - * The Code list versions. - */ - @XmlElement(name = "CodeListVersions", required = true) - protected CodeListVersionsType codeListVersions; - /** - * The Data object package. - */ - @XmlElement(name = "DataObjectPackage") - protected DataObjectPackageType dataObjectPackage; + /** The Code list versions. */ + @XmlElement(name = "CodeListVersions", required = true) + protected CodeListVersionsType codeListVersions; - /** - * Gets the value of the archivalAgreement property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getArchivalAgreement() { - return archivalAgreement; - } + /** The Data object package. */ + @XmlElement(name = "DataObjectPackage") + protected DataObjectPackageType dataObjectPackage; - /** - * Sets the value of the archivalAgreement property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setArchivalAgreement(IdentifierType value) { - this.archivalAgreement = value; - } + /** + * Gets the value of the archivalAgreement property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getArchivalAgreement() { + return archivalAgreement; + } - /** - * Gets the value of the codeListVersions property. - * - * @return possible object is {@link CodeListVersionsType } - */ - public CodeListVersionsType getCodeListVersions() { - return codeListVersions; - } + /** + * Sets the value of the archivalAgreement property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setArchivalAgreement(IdentifierType value) { + this.archivalAgreement = value; + } - /** - * Sets the value of the codeListVersions property. - * - * @param value allowed object is {@link CodeListVersionsType } - */ - public void setCodeListVersions(CodeListVersionsType value) { - this.codeListVersions = value; - } + /** + * Gets the value of the codeListVersions property. + * + * @return possible object is {@link CodeListVersionsType } + */ + public CodeListVersionsType getCodeListVersions() { + return codeListVersions; + } - /** - * Gets the value of the dataObjectPackage property. - * - * @return possible object is {@link DataObjectPackageType } - */ - public DataObjectPackageType getDataObjectPackage() { - return dataObjectPackage; - } + /** + * Sets the value of the codeListVersions property. + * + * @param value allowed object is {@link CodeListVersionsType } + */ + public void setCodeListVersions(CodeListVersionsType value) { + this.codeListVersions = value; + } - /** - * Sets the value of the dataObjectPackage property. - * - * @param value allowed object is {@link DataObjectPackageType } - */ - public void setDataObjectPackage(DataObjectPackageType value) { - this.dataObjectPackage = value; - } + /** + * Gets the value of the dataObjectPackage property. + * + * @return possible object is {@link DataObjectPackageType } + */ + public DataObjectPackageType getDataObjectPackage() { + return dataObjectPackage; + } + /** + * Sets the value of the dataObjectPackage property. + * + * @param value allowed object is {@link DataObjectPackageType } + */ + public void setDataObjectPackage(DataObjectPackageType value) { + this.dataObjectPackage = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/BusinessNotificationMessageType.java b/src/main/java/org/afnor/medona/v1/BusinessNotificationMessageType.java index 3808e83..851aff1 100644 --- a/src/main/java/org/afnor/medona/v1/BusinessNotificationMessageType.java +++ b/src/main/java/org/afnor/medona/v1/BusinessNotificationMessageType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for BusinessNotificationMessageType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="BusinessNotificationMessageType">
@@ -29,11 +28,5 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "BusinessNotificationMessageType")
-@XmlSeeAlso({
-    ArchiveDestructionNotificationType.class,
-    ArchiveModificationNotificationType.class
-})
-public abstract class BusinessNotificationMessageType
-        extends BusinessMessageType {
-
-}
+@XmlSeeAlso({ArchiveDestructionNotificationType.class, ArchiveModificationNotificationType.class})
+public abstract class BusinessNotificationMessageType extends BusinessMessageType {}
diff --git a/src/main/java/org/afnor/medona/v1/BusinessReplyMessageType.java b/src/main/java/org/afnor/medona/v1/BusinessReplyMessageType.java
index c577bbe..a3d5b0c 100644
--- a/src/main/java/org/afnor/medona/v1/BusinessReplyMessageType.java
+++ b/src/main/java/org/afnor/medona/v1/BusinessReplyMessageType.java
@@ -1,8 +1,9 @@
 //
-// 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: 2019.09.15 at 07:07:47 PM CEST 
+// 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: 2019.09.15 at 07:07:47 PM CEST
 //
 package org.afnor.medona.v1;
 
@@ -11,11 +12,9 @@
 import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 
 /**
- * 

* Java class for BusinessReplyMessageType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="BusinessReplyMessageType">
@@ -31,67 +30,61 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "BusinessReplyMessageType", propOrder = { - "replyCode", - "messageRequestIdentifier" -}) +@XmlType( + name = "BusinessReplyMessageType", + propOrder = {"replyCode", "messageRequestIdentifier"}) @XmlSeeAlso({ - ArchiveTransferReplyType.class, - ArchiveDeliveryRequestReplyType.class, - ArchiveRestitutionRequestReplyType.class, - ArchiveTransferRequestReplyType.class, - BusinessAuthorizationRequestReplyMessageType.class + ArchiveTransferReplyType.class, + ArchiveDeliveryRequestReplyType.class, + ArchiveRestitutionRequestReplyType.class, + ArchiveTransferRequestReplyType.class, + BusinessAuthorizationRequestReplyMessageType.class }) -public abstract class BusinessReplyMessageType - extends BusinessMessageType { +public abstract class BusinessReplyMessageType extends BusinessMessageType { - /** - * The Reply code. - */ - @XmlElement(name = "ReplyCode") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String replyCode; - /** - * The Message request identifier. - */ - @XmlElement(name = "MessageRequestIdentifier", required = true) - protected IdentifierType messageRequestIdentifier; + /** The Reply code. */ + @XmlElement(name = "ReplyCode") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String replyCode; - /** - * Gets the value of the replyCode property. - * - * @return possible object is {@link String } - */ - public String getReplyCode() { - return replyCode; - } + /** The Message request identifier. */ + @XmlElement(name = "MessageRequestIdentifier", required = true) + protected IdentifierType messageRequestIdentifier; - /** - * Sets the value of the replyCode property. - * - * @param value allowed object is {@link String } - */ - public void setReplyCode(String value) { - this.replyCode = value; - } + /** + * Gets the value of the replyCode property. + * + * @return possible object is {@link String } + */ + public String getReplyCode() { + return replyCode; + } - /** - * Gets the value of the messageRequestIdentifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getMessageRequestIdentifier() { - return messageRequestIdentifier; - } + /** + * Sets the value of the replyCode property. + * + * @param value allowed object is {@link String } + */ + public void setReplyCode(String value) { + this.replyCode = value; + } - /** - * Sets the value of the messageRequestIdentifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setMessageRequestIdentifier(IdentifierType value) { - this.messageRequestIdentifier = value; - } + /** + * Gets the value of the messageRequestIdentifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getMessageRequestIdentifier() { + return messageRequestIdentifier; + } + /** + * Sets the value of the messageRequestIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setMessageRequestIdentifier(IdentifierType value) { + this.messageRequestIdentifier = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/BusinessRequestMessageType.java b/src/main/java/org/afnor/medona/v1/BusinessRequestMessageType.java index 9ef84d2..36ae0b4 100644 --- a/src/main/java/org/afnor/medona/v1/BusinessRequestMessageType.java +++ b/src/main/java/org/afnor/medona/v1/BusinessRequestMessageType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for BusinessRequestMessageType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="BusinessRequestMessageType">
@@ -30,13 +29,10 @@
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "BusinessRequestMessageType")
 @XmlSeeAlso({
-    ArchiveTransferType.class,
-    BusinessAuthorizationRequestMessageType.class,
-    ArchiveDeliveryRequestType.class,
-    ArchiveRestitutionRequestType.class,
-    ArchiveTransferRequestType.class
+  ArchiveTransferType.class,
+  BusinessAuthorizationRequestMessageType.class,
+  ArchiveDeliveryRequestType.class,
+  ArchiveRestitutionRequestType.class,
+  ArchiveTransferRequestType.class
 })
-public abstract class BusinessRequestMessageType
-        extends BusinessMessageType {
-
-}
+public abstract class BusinessRequestMessageType extends BusinessMessageType {}
diff --git a/src/main/java/org/afnor/medona/v1/CodeListVersionsType.java b/src/main/java/org/afnor/medona/v1/CodeListVersionsType.java
index bc9012d..5537664 100644
--- a/src/main/java/org/afnor/medona/v1/CodeListVersionsType.java
+++ b/src/main/java/org/afnor/medona/v1/CodeListVersionsType.java
@@ -1,8 +1,9 @@
 //
-// 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: 2019.09.15 at 07:07:47 PM CEST 
+// 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: 2019.09.15 at 07:07:47 PM CEST
 //
 package org.afnor.medona.v1;
 
@@ -11,11 +12,9 @@
 import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 
 /**
- * 

* Java class for CodeListVersionsType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="CodeListVersionsType">
@@ -37,203 +36,195 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CodeListVersionsType", propOrder = { - "authorizationReasonCodeListVersion", - "fileEncodingCodeListVersion", - "fileFormatCodeListVersion", - "messageDigestAlgorithmCodeListVersion", - "relationshipCodeListVersion", - "replyCodeListVersion", - "signatureStatusCodeListVersion" -}) +@XmlType( + name = "CodeListVersionsType", + propOrder = { + "authorizationReasonCodeListVersion", + "fileEncodingCodeListVersion", + "fileFormatCodeListVersion", + "messageDigestAlgorithmCodeListVersion", + "relationshipCodeListVersion", + "replyCodeListVersion", + "signatureStatusCodeListVersion" + }) public class CodeListVersionsType { - /** - * The Authorization reason code list version. - */ - @XmlElement(name = "AuthorizationReasonCodeListVersion") - protected CodeType authorizationReasonCodeListVersion; - /** - * The File encoding code list version. - */ - @XmlElement(name = "FileEncodingCodeListVersion") - protected CodeType fileEncodingCodeListVersion; - /** - * The File format code list version. - */ - @XmlElement(name = "FileFormatCodeListVersion") - protected CodeType fileFormatCodeListVersion; - /** - * The Message digest algorithm code list version. - */ - @XmlElement(name = "MessageDigestAlgorithmCodeListVersion") - protected CodeType messageDigestAlgorithmCodeListVersion; - /** - * The Relationship code list version. - */ - @XmlElement(name = "RelationshipCodeListVersion") - protected CodeType relationshipCodeListVersion; - /** - * The Reply code list version. - */ - @XmlElement(name = "ReplyCodeListVersion") - protected CodeType replyCodeListVersion; - /** - * The Signature status code list version. - */ - @XmlElement(name = "SignatureStatusCodeListVersion") - protected CodeType signatureStatusCodeListVersion; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - - /** - * Gets the value of the authorizationReasonCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getAuthorizationReasonCodeListVersion() { - return authorizationReasonCodeListVersion; - } - - /** - * Sets the value of the authorizationReasonCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setAuthorizationReasonCodeListVersion(CodeType value) { - this.authorizationReasonCodeListVersion = value; - } - - /** - * Gets the value of the fileEncodingCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getFileEncodingCodeListVersion() { - return fileEncodingCodeListVersion; - } - - /** - * Sets the value of the fileEncodingCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setFileEncodingCodeListVersion(CodeType value) { - this.fileEncodingCodeListVersion = value; - } - - /** - * Gets the value of the fileFormatCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getFileFormatCodeListVersion() { - return fileFormatCodeListVersion; - } - - /** - * Sets the value of the fileFormatCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setFileFormatCodeListVersion(CodeType value) { - this.fileFormatCodeListVersion = value; - } - - /** - * Gets the value of the messageDigestAlgorithmCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getMessageDigestAlgorithmCodeListVersion() { - return messageDigestAlgorithmCodeListVersion; - } - - /** - * Sets the value of the messageDigestAlgorithmCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setMessageDigestAlgorithmCodeListVersion(CodeType value) { - this.messageDigestAlgorithmCodeListVersion = value; - } - - /** - * Gets the value of the relationshipCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getRelationshipCodeListVersion() { - return relationshipCodeListVersion; - } - - /** - * Sets the value of the relationshipCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setRelationshipCodeListVersion(CodeType value) { - this.relationshipCodeListVersion = value; - } - - /** - * Gets the value of the replyCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getReplyCodeListVersion() { - return replyCodeListVersion; - } - - /** - * Sets the value of the replyCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setReplyCodeListVersion(CodeType value) { - this.replyCodeListVersion = value; - } - - /** - * Gets the value of the signatureStatusCodeListVersion property. - * - * @return possible object is {@link CodeType } - */ - public CodeType getSignatureStatusCodeListVersion() { - return signatureStatusCodeListVersion; - } - - /** - * Sets the value of the signatureStatusCodeListVersion property. - * - * @param value allowed object is {@link CodeType } - */ - public void setSignatureStatusCodeListVersion(CodeType value) { - this.signatureStatusCodeListVersion = 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; - } - + /** The Authorization reason code list version. */ + @XmlElement(name = "AuthorizationReasonCodeListVersion") + protected CodeType authorizationReasonCodeListVersion; + + /** The File encoding code list version. */ + @XmlElement(name = "FileEncodingCodeListVersion") + protected CodeType fileEncodingCodeListVersion; + + /** The File format code list version. */ + @XmlElement(name = "FileFormatCodeListVersion") + protected CodeType fileFormatCodeListVersion; + + /** The Message digest algorithm code list version. */ + @XmlElement(name = "MessageDigestAlgorithmCodeListVersion") + protected CodeType messageDigestAlgorithmCodeListVersion; + + /** The Relationship code list version. */ + @XmlElement(name = "RelationshipCodeListVersion") + protected CodeType relationshipCodeListVersion; + + /** The Reply code list version. */ + @XmlElement(name = "ReplyCodeListVersion") + protected CodeType replyCodeListVersion; + + /** The Signature status code list version. */ + @XmlElement(name = "SignatureStatusCodeListVersion") + protected CodeType signatureStatusCodeListVersion; + + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Gets the value of the authorizationReasonCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getAuthorizationReasonCodeListVersion() { + return authorizationReasonCodeListVersion; + } + + /** + * Sets the value of the authorizationReasonCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setAuthorizationReasonCodeListVersion(CodeType value) { + this.authorizationReasonCodeListVersion = value; + } + + /** + * Gets the value of the fileEncodingCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getFileEncodingCodeListVersion() { + return fileEncodingCodeListVersion; + } + + /** + * Sets the value of the fileEncodingCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setFileEncodingCodeListVersion(CodeType value) { + this.fileEncodingCodeListVersion = value; + } + + /** + * Gets the value of the fileFormatCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getFileFormatCodeListVersion() { + return fileFormatCodeListVersion; + } + + /** + * Sets the value of the fileFormatCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setFileFormatCodeListVersion(CodeType value) { + this.fileFormatCodeListVersion = value; + } + + /** + * Gets the value of the messageDigestAlgorithmCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getMessageDigestAlgorithmCodeListVersion() { + return messageDigestAlgorithmCodeListVersion; + } + + /** + * Sets the value of the messageDigestAlgorithmCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setMessageDigestAlgorithmCodeListVersion(CodeType value) { + this.messageDigestAlgorithmCodeListVersion = value; + } + + /** + * Gets the value of the relationshipCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getRelationshipCodeListVersion() { + return relationshipCodeListVersion; + } + + /** + * Sets the value of the relationshipCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setRelationshipCodeListVersion(CodeType value) { + this.relationshipCodeListVersion = value; + } + + /** + * Gets the value of the replyCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getReplyCodeListVersion() { + return replyCodeListVersion; + } + + /** + * Sets the value of the replyCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setReplyCodeListVersion(CodeType value) { + this.replyCodeListVersion = value; + } + + /** + * Gets the value of the signatureStatusCodeListVersion property. + * + * @return possible object is {@link CodeType } + */ + public CodeType getSignatureStatusCodeListVersion() { + return signatureStatusCodeListVersion; + } + + /** + * Sets the value of the signatureStatusCodeListVersion property. + * + * @param value allowed object is {@link CodeType } + */ + public void setSignatureStatusCodeListVersion(CodeType value) { + this.signatureStatusCodeListVersion = value; + } + + /** + * Gets the value of the id property. + * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link String } + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/CodeType.java b/src/main/java/org/afnor/medona/v1/CodeType.java index a644e05..cbcdb1d 100644 --- a/src/main/java/org/afnor/medona/v1/CodeType.java +++ b/src/main/java/org/afnor/medona/v1/CodeType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for CodeType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="CodeType">
@@ -36,252 +35,240 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CodeType", propOrder = { - "value" -}) +@XmlType( + name = "CodeType", + propOrder = {"value"}) public class CodeType { - /** - * The Value. - */ - @XmlValue - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String value; - /** - * The List id. - */ - @XmlAttribute(name = "listID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String listID; - /** - * The List agency id. - */ - @XmlAttribute(name = "listAgencyID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String listAgencyID; - /** - * The List agency name. - */ - @XmlAttribute(name = "listAgencyName") - protected String listAgencyName; - /** - * The List name. - */ - @XmlAttribute(name = "listName") - protected String listName; - /** - * The List version id. - */ - @XmlAttribute(name = "listVersionID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String listVersionID; - /** - * The Name. - */ - @XmlAttribute(name = "name") - protected String name; - /** - * The Language id. - */ - @XmlAttribute(name = "languageID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "language") - protected String languageID; - /** - * The List uri. - */ - @XmlAttribute(name = "listURI") - @XmlSchemaType(name = "anyURI") - protected String listURI; - /** - * The List scheme uri. - */ - @XmlAttribute(name = "listSchemeURI") - @XmlSchemaType(name = "anyURI") - protected String listSchemeURI; - - /** - * 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 listID property. - * - * @return possible object is {@link String } - */ - public String getListID() { - return listID; - } - - /** - * Sets the value of the listID property. - * - * @param value allowed object is {@link String } - */ - public void setListID(String value) { - this.listID = value; - } - - /** - * Gets the value of the listAgencyID property. - * - * @return possible object is {@link String } - */ - public String getListAgencyID() { - return listAgencyID; - } - - /** - * Sets the value of the listAgencyID property. - * - * @param value allowed object is {@link String } - */ - public void setListAgencyID(String value) { - this.listAgencyID = value; - } - - /** - * Gets the value of the listAgencyName property. - * - * @return possible object is {@link String } - */ - public String getListAgencyName() { - return listAgencyName; - } - - /** - * Sets the value of the listAgencyName property. - * - * @param value allowed object is {@link String } - */ - public void setListAgencyName(String value) { - this.listAgencyName = value; - } - - /** - * Gets the value of the listName property. - * - * @return possible object is {@link String } - */ - public String getListName() { - return listName; - } - - /** - * Sets the value of the listName property. - * - * @param value allowed object is {@link String } - */ - public void setListName(String value) { - this.listName = value; - } - - /** - * Gets the value of the listVersionID property. - * - * @return possible object is {@link String } - */ - public String getListVersionID() { - return listVersionID; - } - - /** - * Sets the value of the listVersionID property. - * - * @param value allowed object is {@link String } - */ - public void setListVersionID(String value) { - this.listVersionID = 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 languageID property. - * - * @return possible object is {@link String } - */ - public String getLanguageID() { - return languageID; - } - - /** - * Sets the value of the languageID property. - * - * @param value allowed object is {@link String } - */ - public void setLanguageID(String value) { - this.languageID = value; - } - - /** - * Gets the value of the listURI property. - * - * @return possible object is {@link String } - */ - public String getListURI() { - return listURI; - } - - /** - * Sets the value of the listURI property. - * - * @param value allowed object is {@link String } - */ - public void setListURI(String value) { - this.listURI = value; - } - - /** - * Gets the value of the listSchemeURI property. - * - * @return possible object is {@link String } - */ - public String getListSchemeURI() { - return listSchemeURI; - } - - /** - * Sets the value of the listSchemeURI property. - * - * @param value allowed object is {@link String } - */ - public void setListSchemeURI(String value) { - this.listSchemeURI = value; - } + /** The Value. */ + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String value; + /** The List id. */ + @XmlAttribute(name = "listID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String listID; + + /** The List agency id. */ + @XmlAttribute(name = "listAgencyID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String listAgencyID; + + /** The List agency name. */ + @XmlAttribute(name = "listAgencyName") + protected String listAgencyName; + + /** The List name. */ + @XmlAttribute(name = "listName") + protected String listName; + + /** The List version id. */ + @XmlAttribute(name = "listVersionID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String listVersionID; + + /** The Name. */ + @XmlAttribute(name = "name") + protected String name; + + /** The Language id. */ + @XmlAttribute(name = "languageID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "language") + protected String languageID; + + /** The List uri. */ + @XmlAttribute(name = "listURI") + @XmlSchemaType(name = "anyURI") + protected String listURI; + + /** The List scheme uri. */ + @XmlAttribute(name = "listSchemeURI") + @XmlSchemaType(name = "anyURI") + protected String listSchemeURI; + + /** + * 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 listID property. + * + * @return possible object is {@link String } + */ + public String getListID() { + return listID; + } + + /** + * Sets the value of the listID property. + * + * @param value allowed object is {@link String } + */ + public void setListID(String value) { + this.listID = value; + } + + /** + * Gets the value of the listAgencyID property. + * + * @return possible object is {@link String } + */ + public String getListAgencyID() { + return listAgencyID; + } + + /** + * Sets the value of the listAgencyID property. + * + * @param value allowed object is {@link String } + */ + public void setListAgencyID(String value) { + this.listAgencyID = value; + } + + /** + * Gets the value of the listAgencyName property. + * + * @return possible object is {@link String } + */ + public String getListAgencyName() { + return listAgencyName; + } + + /** + * Sets the value of the listAgencyName property. + * + * @param value allowed object is {@link String } + */ + public void setListAgencyName(String value) { + this.listAgencyName = value; + } + + /** + * Gets the value of the listName property. + * + * @return possible object is {@link String } + */ + public String getListName() { + return listName; + } + + /** + * Sets the value of the listName property. + * + * @param value allowed object is {@link String } + */ + public void setListName(String value) { + this.listName = value; + } + + /** + * Gets the value of the listVersionID property. + * + * @return possible object is {@link String } + */ + public String getListVersionID() { + return listVersionID; + } + + /** + * Sets the value of the listVersionID property. + * + * @param value allowed object is {@link String } + */ + public void setListVersionID(String value) { + this.listVersionID = 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 languageID property. + * + * @return possible object is {@link String } + */ + public String getLanguageID() { + return languageID; + } + + /** + * Sets the value of the languageID property. + * + * @param value allowed object is {@link String } + */ + public void setLanguageID(String value) { + this.languageID = value; + } + + /** + * Gets the value of the listURI property. + * + * @return possible object is {@link String } + */ + public String getListURI() { + return listURI; + } + + /** + * Sets the value of the listURI property. + * + * @param value allowed object is {@link String } + */ + public void setListURI(String value) { + this.listURI = value; + } + + /** + * Gets the value of the listSchemeURI property. + * + * @return possible object is {@link String } + */ + public String getListSchemeURI() { + return listSchemeURI; + } + + /** + * Sets the value of the listSchemeURI property. + * + * @param value allowed object is {@link String } + */ + public void setListSchemeURI(String value) { + this.listSchemeURI = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/DataObjectPackageType.java b/src/main/java/org/afnor/medona/v1/DataObjectPackageType.java index 4a14c6f..345c35a 100644 --- a/src/main/java/org/afnor/medona/v1/DataObjectPackageType.java +++ b/src/main/java/org/afnor/medona/v1/DataObjectPackageType.java @@ -1,24 +1,22 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for DataObjectPackageType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="DataObjectPackageType">
@@ -39,120 +37,113 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DataObjectPackageType", propOrder = { - "binaryDataObjectOrPhysicalDataObject", - "descriptiveMetadata", - "managementMetadata" -}) +@XmlType( + name = "DataObjectPackageType", + propOrder = { + "binaryDataObjectOrPhysicalDataObject", + "descriptiveMetadata", + "managementMetadata" + }) public class DataObjectPackageType { - /** - * The Binary data object or physical data object. - */ - @XmlElements({ - @XmlElement(name = "BinaryDataObject", type = BinaryDataObjectType.class), - @XmlElement(name = "PhysicalDataObject", type = PhysicalDataObjectType.class) - }) - protected List binaryDataObjectOrPhysicalDataObject; - /** - * The Descriptive metadata. - */ - @XmlElement(name = "DescriptiveMetadata", required = true) - protected DescriptiveMetadataType descriptiveMetadata; - /** - * The Management metadata. - */ - @XmlElement(name = "ManagementMetadata", required = true) - protected ManagementMetadataType managementMetadata; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + /** The Binary data object or physical data object. */ + @XmlElements({ + @XmlElement(name = "BinaryDataObject", type = BinaryDataObjectType.class), + @XmlElement(name = "PhysicalDataObject", type = PhysicalDataObjectType.class) + }) + protected List binaryDataObjectOrPhysicalDataObject; - /** - * Gets the value of the binaryDataObjectOrPhysicalDataObject 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 binaryDataObjectOrPhysicalDataObject property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getBinaryDataObjectOrPhysicalDataObject().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list null null null null {@link BinaryDataObjectType } - * {@link PhysicalDataObjectType } - * - * @return the binary data object or physical data object - */ - public List getBinaryDataObjectOrPhysicalDataObject() { - if (binaryDataObjectOrPhysicalDataObject == null) { - binaryDataObjectOrPhysicalDataObject = new ArrayList(); - } - return this.binaryDataObjectOrPhysicalDataObject; - } + /** The Descriptive metadata. */ + @XmlElement(name = "DescriptiveMetadata", required = true) + protected DescriptiveMetadataType descriptiveMetadata; - /** - * Gets the value of the descriptiveMetadata property. - * - * @return possible object is {@link DescriptiveMetadataType } - */ - public DescriptiveMetadataType getDescriptiveMetadata() { - return descriptiveMetadata; - } + /** The Management metadata. */ + @XmlElement(name = "ManagementMetadata", required = true) + protected ManagementMetadataType managementMetadata; - /** - * Sets the value of the descriptiveMetadata property. - * - * @param value allowed object is {@link DescriptiveMetadataType } - */ - public void setDescriptiveMetadata(DescriptiveMetadataType value) { - this.descriptiveMetadata = value; - } + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Gets the value of the managementMetadata property. - * - * @return possible object is {@link ManagementMetadataType } - */ - public ManagementMetadataType getManagementMetadata() { - return managementMetadata; + /** + * Gets the value of the binaryDataObjectOrPhysicalDataObject 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 binaryDataObjectOrPhysicalDataObject property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getBinaryDataObjectOrPhysicalDataObject().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list null null null null {@link + * BinaryDataObjectType } {@link PhysicalDataObjectType } + * + * @return the binary data object or physical data object + */ + public List getBinaryDataObjectOrPhysicalDataObject() { + if (binaryDataObjectOrPhysicalDataObject == null) { + binaryDataObjectOrPhysicalDataObject = new ArrayList(); } + return this.binaryDataObjectOrPhysicalDataObject; + } - /** - * Sets the value of the managementMetadata property. - * - * @param value allowed object is {@link ManagementMetadataType } - */ - public void setManagementMetadata(ManagementMetadataType value) { - this.managementMetadata = value; - } + /** + * Gets the value of the descriptiveMetadata property. + * + * @return possible object is {@link DescriptiveMetadataType } + */ + public DescriptiveMetadataType getDescriptiveMetadata() { + return descriptiveMetadata; + } - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** + * Sets the value of the descriptiveMetadata property. + * + * @param value allowed object is {@link DescriptiveMetadataType } + */ + public void setDescriptiveMetadata(DescriptiveMetadataType value) { + this.descriptiveMetadata = value; + } - /** - * 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 managementMetadata property. + * + * @return possible object is {@link ManagementMetadataType } + */ + public ManagementMetadataType getManagementMetadata() { + return managementMetadata; + } + + /** + * Sets the value of the managementMetadata property. + * + * @param value allowed object is {@link ManagementMetadataType } + */ + public void setManagementMetadata(ManagementMetadataType value) { + this.managementMetadata = value; + } + + /** + * Gets the value of the id property. + * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link String } + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/DataObjectType.java b/src/main/java/org/afnor/medona/v1/DataObjectType.java index 37f5c1b..ae7bbb5 100644 --- a/src/main/java/org/afnor/medona/v1/DataObjectType.java +++ b/src/main/java/org/afnor/medona/v1/DataObjectType.java @@ -1,24 +1,22 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for DataObjectType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="DataObjectType">
@@ -34,73 +32,62 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DataObjectType", propOrder = { - "relationship" -}) -@XmlSeeAlso({ - PhysicalDataObjectType.class, - BinaryDataObjectType.class -}) +@XmlType( + name = "DataObjectType", + propOrder = {"relationship"}) +@XmlSeeAlso({PhysicalDataObjectType.class, BinaryDataObjectType.class}) public class DataObjectType { - /** - * The Relationship. - */ - @XmlElement(name = "Relationship") - protected List relationship; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + /** The Relationship. */ + @XmlElement(name = "Relationship") + protected List relationship; - /** - * Gets the value of the relationship 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 relationship property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getRelationship().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link RelationshipType - * }* - * - * @return the relationship - */ - public List getRelationship() { - if (relationship == null) { - relationship = new ArrayList(); - } - return this.relationship; - } + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; + /** + * Gets the value of the relationship 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 relationship property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getRelationship().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link RelationshipType }* + * + * @return the relationship + */ + public List getRelationship() { + if (relationship == null) { + relationship = new ArrayList(); } + return this.relationship; + } - /** - * 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 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/org/afnor/medona/v1/DescriptiveMetadataType.java b/src/main/java/org/afnor/medona/v1/DescriptiveMetadataType.java index 021e8b3..2855b9b 100644 --- a/src/main/java/org/afnor/medona/v1/DescriptiveMetadataType.java +++ b/src/main/java/org/afnor/medona/v1/DescriptiveMetadataType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for DescriptiveMetadataType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="DescriptiveMetadataType">
@@ -28,7 +27,4 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "DescriptiveMetadataType")
-public class DescriptiveMetadataType
-        extends OpenType {
-
-}
+public class DescriptiveMetadataType extends OpenType {}
diff --git a/src/main/java/org/afnor/medona/v1/IdentifierType.java b/src/main/java/org/afnor/medona/v1/IdentifierType.java
index 4416f2d..2d84f07 100644
--- a/src/main/java/org/afnor/medona/v1/IdentifierType.java
+++ b/src/main/java/org/afnor/medona/v1/IdentifierType.java
@@ -1,8 +1,9 @@
 //
-// 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: 2019.09.15 at 07:07:47 PM CEST 
+// 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: 2019.09.15 at 07:07:47 PM CEST
 //
 package org.afnor.medona.v1;
 
@@ -11,11 +12,9 @@
 import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 
 /**
- * 

* Java class for IdentifierType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="IdentifierType">
@@ -34,204 +33,194 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "IdentifierType", propOrder = { - "value" -}) +@XmlType( + name = "IdentifierType", + propOrder = {"value"}) public class IdentifierType { - /** - * The Value. - */ - @XmlValue - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String value; - /** - * The Scheme id. - */ - @XmlAttribute(name = "schemeID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String schemeID; - /** - * The Scheme name. - */ - @XmlAttribute(name = "schemeName") - protected String schemeName; - /** - * The Scheme agency id. - */ - @XmlAttribute(name = "schemeAgencyID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String schemeAgencyID; - /** - * The Scheme agency name. - */ - @XmlAttribute(name = "schemeAgencyName") - protected String schemeAgencyName; - /** - * The Scheme version id. - */ - @XmlAttribute(name = "schemeVersionID") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String schemeVersionID; - /** - * The Scheme data uri. - */ - @XmlAttribute(name = "schemeDataURI") - @XmlSchemaType(name = "anyURI") - protected String schemeDataURI; - /** - * The Scheme uri. - */ - @XmlAttribute(name = "schemeURI") - @XmlSchemaType(name = "anyURI") - protected String schemeURI; - - /** - * 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 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; - } - - /** - * Gets the value of the schemeAgencyID property. - * - * @return possible object is {@link String } - */ - public String getSchemeAgencyID() { - return schemeAgencyID; - } - - /** - * Sets the value of the schemeAgencyID property. - * - * @param value allowed object is {@link String } - */ - public void setSchemeAgencyID(String value) { - this.schemeAgencyID = value; - } - - /** - * Gets the value of the schemeAgencyName property. - * - * @return possible object is {@link String } - */ - public String getSchemeAgencyName() { - return schemeAgencyName; - } - - /** - * Sets the value of the schemeAgencyName property. - * - * @param value allowed object is {@link String } - */ - public void setSchemeAgencyName(String value) { - this.schemeAgencyName = value; - } - - /** - * Gets the value of the schemeVersionID property. - * - * @return possible object is {@link String } - */ - public String getSchemeVersionID() { - return schemeVersionID; - } - - /** - * Sets the value of the schemeVersionID property. - * - * @param value allowed object is {@link String } - */ - public void setSchemeVersionID(String value) { - this.schemeVersionID = value; - } - - /** - * Gets the value of the schemeDataURI property. - * - * @return possible object is {@link String } - */ - public String getSchemeDataURI() { - return schemeDataURI; - } - - /** - * Sets the value of the schemeDataURI property. - * - * @param value allowed object is {@link String } - */ - public void setSchemeDataURI(String value) { - this.schemeDataURI = value; - } - - /** - * Gets the value of the schemeURI property. - * - * @return possible object is {@link String } - */ - public String getSchemeURI() { - return schemeURI; - } - - /** - * Sets the value of the schemeURI property. - * - * @param value allowed object is {@link String } - */ - public void setSchemeURI(String value) { - this.schemeURI = value; - } - + /** The Value. */ + @XmlValue + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String value; + + /** The Scheme id. */ + @XmlAttribute(name = "schemeID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String schemeID; + + /** The Scheme name. */ + @XmlAttribute(name = "schemeName") + protected String schemeName; + + /** The Scheme agency id. */ + @XmlAttribute(name = "schemeAgencyID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String schemeAgencyID; + + /** The Scheme agency name. */ + @XmlAttribute(name = "schemeAgencyName") + protected String schemeAgencyName; + + /** The Scheme version id. */ + @XmlAttribute(name = "schemeVersionID") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String schemeVersionID; + + /** The Scheme data uri. */ + @XmlAttribute(name = "schemeDataURI") + @XmlSchemaType(name = "anyURI") + protected String schemeDataURI; + + /** The Scheme uri. */ + @XmlAttribute(name = "schemeURI") + @XmlSchemaType(name = "anyURI") + protected String schemeURI; + + /** + * 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 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; + } + + /** + * Gets the value of the schemeAgencyID property. + * + * @return possible object is {@link String } + */ + public String getSchemeAgencyID() { + return schemeAgencyID; + } + + /** + * Sets the value of the schemeAgencyID property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeAgencyID(String value) { + this.schemeAgencyID = value; + } + + /** + * Gets the value of the schemeAgencyName property. + * + * @return possible object is {@link String } + */ + public String getSchemeAgencyName() { + return schemeAgencyName; + } + + /** + * Sets the value of the schemeAgencyName property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeAgencyName(String value) { + this.schemeAgencyName = value; + } + + /** + * Gets the value of the schemeVersionID property. + * + * @return possible object is {@link String } + */ + public String getSchemeVersionID() { + return schemeVersionID; + } + + /** + * Sets the value of the schemeVersionID property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeVersionID(String value) { + this.schemeVersionID = value; + } + + /** + * Gets the value of the schemeDataURI property. + * + * @return possible object is {@link String } + */ + public String getSchemeDataURI() { + return schemeDataURI; + } + + /** + * Sets the value of the schemeDataURI property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeDataURI(String value) { + this.schemeDataURI = value; + } + + /** + * Gets the value of the schemeURI property. + * + * @return possible object is {@link String } + */ + public String getSchemeURI() { + return schemeURI; + } + + /** + * Sets the value of the schemeURI property. + * + * @param value allowed object is {@link String } + */ + public void setSchemeURI(String value) { + this.schemeURI = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/ManagementMetadataType.java b/src/main/java/org/afnor/medona/v1/ManagementMetadataType.java index 7499a22..856324b 100644 --- a/src/main/java/org/afnor/medona/v1/ManagementMetadataType.java +++ b/src/main/java/org/afnor/medona/v1/ManagementMetadataType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for ManagementMetadataType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ManagementMetadataType">
@@ -34,131 +33,121 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ManagementMetadataType", propOrder = { - "archivalProfile", - "serviceLevel", - "accessRule", - "appraisalRule" -}) +@XmlType( + name = "ManagementMetadataType", + propOrder = {"archivalProfile", "serviceLevel", "accessRule", "appraisalRule"}) public class ManagementMetadataType { - /** - * The Archival profile. - */ - @XmlElement(name = "ArchivalProfile") - protected IdentifierType archivalProfile; - /** - * The Service level. - */ - @XmlElement(name = "ServiceLevel") - protected IdentifierType serviceLevel; - /** - * The Access rule. - */ - @XmlElement(name = "AccessRule") - protected AccessRuleType accessRule; - /** - * The Appraisal rule. - */ - @XmlElement(name = "AppraisalRule") - protected AppraisalRuleType appraisalRule; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - - /** - * Gets the value of the archivalProfile property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getArchivalProfile() { - return archivalProfile; - } - - /** - * Sets the value of the archivalProfile property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setArchivalProfile(IdentifierType value) { - this.archivalProfile = value; - } - - /** - * Gets the value of the serviceLevel property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getServiceLevel() { - return serviceLevel; - } - - /** - * Sets the value of the serviceLevel property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setServiceLevel(IdentifierType value) { - this.serviceLevel = value; - } - - /** - * Gets the value of the accessRule property. - * - * @return possible object is {@link AccessRuleType } - */ - public AccessRuleType getAccessRule() { - return accessRule; - } - - /** - * Sets the value of the accessRule property. - * - * @param value allowed object is {@link AccessRuleType } - */ - public void setAccessRule(AccessRuleType value) { - this.accessRule = value; - } - - /** - * Gets the value of the appraisalRule property. - * - * @return possible object is {@link AppraisalRuleType } - */ - public AppraisalRuleType getAppraisalRule() { - return appraisalRule; - } - - /** - * Sets the value of the appraisalRule property. - * - * @param value allowed object is {@link AppraisalRuleType } - */ - public void setAppraisalRule(AppraisalRuleType value) { - this.appraisalRule = 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; - } + /** The Archival profile. */ + @XmlElement(name = "ArchivalProfile") + protected IdentifierType archivalProfile; + /** The Service level. */ + @XmlElement(name = "ServiceLevel") + protected IdentifierType serviceLevel; + + /** The Access rule. */ + @XmlElement(name = "AccessRule") + protected AccessRuleType accessRule; + + /** The Appraisal rule. */ + @XmlElement(name = "AppraisalRule") + protected AppraisalRuleType appraisalRule; + + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Gets the value of the archivalProfile property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getArchivalProfile() { + return archivalProfile; + } + + /** + * Sets the value of the archivalProfile property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setArchivalProfile(IdentifierType value) { + this.archivalProfile = value; + } + + /** + * Gets the value of the serviceLevel property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getServiceLevel() { + return serviceLevel; + } + + /** + * Sets the value of the serviceLevel property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setServiceLevel(IdentifierType value) { + this.serviceLevel = value; + } + + /** + * Gets the value of the accessRule property. + * + * @return possible object is {@link AccessRuleType } + */ + public AccessRuleType getAccessRule() { + return accessRule; + } + + /** + * Sets the value of the accessRule property. + * + * @param value allowed object is {@link AccessRuleType } + */ + public void setAccessRule(AccessRuleType value) { + this.accessRule = value; + } + + /** + * Gets the value of the appraisalRule property. + * + * @return possible object is {@link AppraisalRuleType } + */ + public AppraisalRuleType getAppraisalRule() { + return appraisalRule; + } + + /** + * Sets the value of the appraisalRule property. + * + * @param value allowed object is {@link AppraisalRuleType } + */ + public void setAppraisalRule(AppraisalRuleType value) { + this.appraisalRule = value; + } + + /** + * Gets the value of the id property. + * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link String } + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/MeasureType.java b/src/main/java/org/afnor/medona/v1/MeasureType.java index f3c3943..d4d654e 100644 --- a/src/main/java/org/afnor/medona/v1/MeasureType.java +++ b/src/main/java/org/afnor/medona/v1/MeasureType.java @@ -1,21 +1,19 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; import jakarta.xml.bind.annotation.*; - import java.math.BigDecimal; /** - *

* Java class for MeasureType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="MeasureType">
@@ -28,56 +26,51 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "MeasureType", propOrder = { - "value" -}) +@XmlType( + name = "MeasureType", + propOrder = {"value"}) public class MeasureType { - /** - * The Value. - */ - @XmlValue - protected BigDecimal value; - /** - * The Unit code. - */ - @XmlAttribute(name = "unitCode") - protected String unitCode; + /** The Value. */ + @XmlValue protected BigDecimal value; - /** - * Gets the value of the value property. - * - * @return possible object is {@link BigDecimal } - */ - public BigDecimal getValue() { - return value; - } + /** The Unit code. */ + @XmlAttribute(name = "unitCode") + protected String unitCode; - /** - * Sets the value of the value property. - * - * @param value allowed object is {@link BigDecimal } - */ - public void setValue(BigDecimal value) { - this.value = value; - } + /** + * Gets the value of the value property. + * + * @return possible object is {@link BigDecimal } + */ + public BigDecimal getValue() { + return value; + } - /** - * Gets the value of the unitCode property. - * - * @return possible object is {@link String } - */ - public String getUnitCode() { - return unitCode; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link BigDecimal } + */ + public void setValue(BigDecimal value) { + this.value = value; + } - /** - * Sets the value of the unitCode property. - * - * @param value allowed object is {@link String } - */ - public void setUnitCode(String value) { - this.unitCode = value; - } + /** + * Gets the value of the unitCode property. + * + * @return possible object is {@link String } + */ + public String getUnitCode() { + return unitCode; + } + /** + * Sets the value of the unitCode property. + * + * @param value allowed object is {@link String } + */ + public void setUnitCode(String value) { + this.unitCode = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/MessageDigestBinaryObjectType.java b/src/main/java/org/afnor/medona/v1/MessageDigestBinaryObjectType.java index 02f26e9..a66f6cb 100644 --- a/src/main/java/org/afnor/medona/v1/MessageDigestBinaryObjectType.java +++ b/src/main/java/org/afnor/medona/v1/MessageDigestBinaryObjectType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for MessageDigestBinaryObjectType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="MessageDigestBinaryObjectType">
@@ -29,33 +28,29 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "MessageDigestBinaryObjectType")
-public class MessageDigestBinaryObjectType
-        extends BinaryObjectType {
+public class MessageDigestBinaryObjectType extends BinaryObjectType {
 
-    /**
-     * The Algorithm.
-     */
-    @XmlAttribute(name = "algorithm", required = true)
-    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
-    @XmlSchemaType(name = "token")
-    protected String algorithm;
+  /** The Algorithm. */
+  @XmlAttribute(name = "algorithm", required = true)
+  @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+  @XmlSchemaType(name = "token")
+  protected String algorithm;
 
-    /**
-     * Gets the value of the algorithm property.
-     *
-     * @return possible object is {@link String }
-     */
-    public String getAlgorithm() {
-        return algorithm;
-    }
-
-    /**
-     * Sets the value of the algorithm property.
-     *
-     * @param value allowed object is {@link String }
-     */
-    public void setAlgorithm(String value) {
-        this.algorithm = value;
-    }
+  /**
+   * Gets the value of the algorithm property.
+   *
+   * @return possible object is {@link String }
+   */
+  public String getAlgorithm() {
+    return algorithm;
+  }
 
+  /**
+   * Sets the value of the algorithm property.
+   *
+   * @param value allowed object is {@link String }
+   */
+  public void setAlgorithm(String value) {
+    this.algorithm = value;
+  }
 }
diff --git a/src/main/java/org/afnor/medona/v1/MessageType.java b/src/main/java/org/afnor/medona/v1/MessageType.java
index 83ca6fb..9a76cfb 100644
--- a/src/main/java/org/afnor/medona/v1/MessageType.java
+++ b/src/main/java/org/afnor/medona/v1/MessageType.java
@@ -1,25 +1,23 @@
 //
-// 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: 2019.09.15 at 07:07:47 PM CEST 
+// 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: 2019.09.15 at 07:07:47 PM CEST
 //
 package org.afnor.medona.v1;
 
 import jakarta.xml.bind.annotation.*;
 import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
 import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-
-import javax.xml.datatype.XMLGregorianCalendar;
 import java.util.ArrayList;
 import java.util.List;
+import javax.xml.datatype.XMLGregorianCalendar;
 
 /**
- * 

* Java class for MessageType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="MessageType">
@@ -38,146 +36,129 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "MessageType", propOrder = { - "comment", - "date", - "messageIdentifier", - "signature" -}) -@XmlSeeAlso({ - AcknowledgementType.class, - BusinessMessageType.class -}) +@XmlType( + name = "MessageType", + propOrder = {"comment", "date", "messageIdentifier", "signature"}) +@XmlSeeAlso({AcknowledgementType.class, BusinessMessageType.class}) public abstract class MessageType { - /** - * The Comment. - */ - @XmlElement(name = "Comment") - protected List comment; - /** - * The Date. - */ - @XmlElement(name = "Date", required = true) - @XmlSchemaType(name = "dateTime") - protected XMLGregorianCalendar date; - /** - * The Message identifier. - */ - @XmlElement(name = "MessageIdentifier", required = true) - protected IdentifierType messageIdentifier; - /** - * The Signature. - */ - @XmlElement(name = "Signature") - protected SignatureType signature; - /** - * The Id. - */ - @XmlAttribute(name = "Id") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - - /** - * Gets the value of the comment 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 comment property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getComment().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the comment - */ - public List getComment() { - if (comment == null) { - comment = new ArrayList(); - } - return this.comment; - } + /** The Comment. */ + @XmlElement(name = "Comment") + protected List comment; - /** - * Gets the value of the date property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getDate() { - return date; - } + /** The Date. */ + @XmlElement(name = "Date", required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar date; - /** - * Sets the value of the date property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setDate(XMLGregorianCalendar value) { - this.date = value; - } + /** The Message identifier. */ + @XmlElement(name = "MessageIdentifier", required = true) + protected IdentifierType messageIdentifier; - /** - * Gets the value of the messageIdentifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getMessageIdentifier() { - return messageIdentifier; - } + /** The Signature. */ + @XmlElement(name = "Signature") + protected SignatureType signature; - /** - * Sets the value of the messageIdentifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setMessageIdentifier(IdentifierType value) { - this.messageIdentifier = value; - } + /** The Id. */ + @XmlAttribute(name = "Id") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Gets the value of the signature property. - * - * @return possible object is {@link SignatureType } - */ - public SignatureType getSignature() { - return signature; + /** + * Gets the value of the comment 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 comment property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getComment().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the comment + */ + public List getComment() { + if (comment == null) { + comment = new ArrayList(); } + return this.comment; + } - /** - * Sets the value of the signature property. - * - * @param value allowed object is {@link SignatureType } - */ - public void setSignature(SignatureType value) { - this.signature = value; - } + /** + * Gets the value of the date property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getDate() { + return date; + } - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** + * Sets the value of the date property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setDate(XMLGregorianCalendar value) { + this.date = value; + } - /** - * 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 messageIdentifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getMessageIdentifier() { + return messageIdentifier; + } + + /** + * Sets the value of the messageIdentifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setMessageIdentifier(IdentifierType value) { + this.messageIdentifier = value; + } + + /** + * Gets the value of the signature property. + * + * @return possible object is {@link SignatureType } + */ + public SignatureType getSignature() { + return signature; + } + + /** + * Sets the value of the signature property. + * + * @param value allowed object is {@link SignatureType } + */ + public void setSignature(SignatureType value) { + this.signature = value; + } + + /** + * Gets the value of the id property. + * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link String } + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/ObjectFactory.java b/src/main/java/org/afnor/medona/v1/ObjectFactory.java index e7e2d27..9560e6e 100644 --- a/src/main/java/org/afnor/medona/v1/ObjectFactory.java +++ b/src/main/java/org/afnor/medona/v1/ObjectFactory.java @@ -1,848 +1,1006 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; import jakarta.xml.bind.JAXBElement; import jakarta.xml.bind.annotation.XmlElementDecl; import jakarta.xml.bind.annotation.XmlRegistry; - -import javax.xml.namespace.QName; import java.math.BigDecimal; +import javax.xml.namespace.QName; /** - * This object contains factory methods for each Java content interface and Java element interface generated in the - * org.afnor.medona.v1 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. + * This object contains factory methods for each Java content interface and Java element interface + * generated in the org.afnor.medona.v1 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 _DescriptiveMetadata_QNAME = new QName("org:afnor:medona:v1.0", "DescriptiveMetadata"); - private final static QName _DataObjectPackage_QNAME = new QName("org:afnor:medona:v1.0", "DataObjectPackage"); - private final static QName _Organization_QNAME = new QName("org:afnor:medona:v1.0", "Organization"); - private final static QName _ByteSize_QNAME = new QName("org:afnor:medona:v1.0", "ByteSize"); - private final static QName _ManagementMetadata_QNAME = new QName("org:afnor:medona:v1.0", "ManagementMetadata"); - private final static QName _MessageDigestBinaryObject_QNAME = new QName("org:afnor:medona:v1.0", "MessageDigestBinaryObject"); - private final static QName _PhysicalDataObject_QNAME = new QName("org:afnor:medona:v1.0", "PhysicalDataObject"); - private final static QName _OrganizationDescriptiveMetadata_QNAME = new QName("org:afnor:medona:v1.0", "OrganizationDescriptiveMetadata"); - private final static QName _Message_QNAME = new QName("org:afnor:medona:v1.0", "Message"); - private final static QName _AuthorizationControlAuthorityRequestReply_QNAME = new QName("org:afnor:medona:v1.0", "AuthorizationControlAuthorityRequestReply"); - private final static QName _ArchiveDeliveryRequestReply_QNAME = new QName("org:afnor:medona:v1.0", "ArchiveDeliveryRequestReply"); - private final static QName _ArchiveModificationNotification_QNAME = new QName("org:afnor:medona:v1.0", "ArchiveModificationNotification"); - private final static QName _BinaryDataObject_QNAME = new QName("org:afnor:medona:v1.0", "BinaryDataObject"); - private final static QName _Acknowledgement_QNAME = new QName("org:afnor:medona:v1.0", "Acknowledgement"); - private final static QName _BinaryObject_QNAME = new QName("org:afnor:medona:v1.0", "BinaryObject"); - private final static QName _Text_QNAME = new QName("org:afnor:medona:v1.0", "Text"); - private final static QName _BusinessMessage_QNAME = new QName("org:afnor:medona:v1.0", "BusinessMessage"); - private final static QName _ArchiveRestitutionRequestReply_QNAME = new QName("org:afnor:medona:v1.0", "ArchiveRestitutionRequestReply"); - private final static QName _AuthorizationOriginatingAgencyRequest_QNAME = new QName("org:afnor:medona:v1.0", "AuthorizationOriginatingAgencyRequest"); - private final static QName _Relationship_QNAME = new QName("org:afnor:medona:v1.0", "Relationship"); - private final static QName _Signature_QNAME = new QName("org:afnor:medona:v1.0", "Signature"); - private final static QName _ArchiveRestitutionRequest_QNAME = new QName("org:afnor:medona:v1.0", "ArchiveRestitutionRequest"); - private final static QName _AppraisalRule_QNAME = new QName("org:afnor:medona:v1.0", "AppraisalRule"); - private final static QName _ArchiveTransferReply_QNAME = new QName("org:afnor:medona:v1.0", "ArchiveTransferReply"); - private final static QName _BusinessReplyMessage_QNAME = new QName("org:afnor:medona:v1.0", "BusinessReplyMessage"); - private final static QName _ArchiveTransfer_QNAME = new QName("org:afnor:medona:v1.0", "ArchiveTransfer"); - private final static QName _ArchiveDestructionNotification_QNAME = new QName("org:afnor:medona:v1.0", "ArchiveDestructionNotification"); - private final static QName _Measure_QNAME = new QName("org:afnor:medona:v1.0", "Measure"); - private final static QName _AccessRule_QNAME = new QName("org:afnor:medona:v1.0", "AccessRule"); - private final static QName _BusinessAuthorizationRequestMessage_QNAME = new QName("org:afnor:medona:v1.0", "BusinessAuthorizationRequestMessage"); - private final static QName _AuthorizationControlAuthorityRequest_QNAME = new QName("org:afnor:medona:v1.0", "AuthorizationControlAuthorityRequest"); - private final static QName _BusinessRequestMessage_QNAME = new QName("org:afnor:medona:v1.0", "BusinessRequestMessage"); - private final static QName _ArchiveTransferRequestReply_QNAME = new QName("org:afnor:medona:v1.0", "ArchiveTransferRequestReply"); - private final static QName _AuthorizationOriginatingAgencyRequestReply_QNAME = new QName("org:afnor:medona:v1.0", "AuthorizationOriginatingAgencyRequestReply"); - private final static QName _BusinessNotificationMessage_QNAME = new QName("org:afnor:medona:v1.0", "BusinessNotificationMessage"); - private final static QName _DataObject_QNAME = new QName("org:afnor:medona:v1.0", "DataObject"); - private final static QName _AuthorizationRequestContent_QNAME = new QName("org:afnor:medona:v1.0", "AuthorizationRequestContent"); - private final static QName _CodeListVersions_QNAME = new QName("org:afnor:medona:v1.0", "CodeListVersions"); - private final static QName _BusinessAuthorizationRequestReplyMessage_QNAME = new QName("org:afnor:medona:v1.0", "BusinessAuthorizationRequestReplyMessage"); - private final static QName _ArchiveDeliveryRequest_QNAME = new QName("org:afnor:medona:v1.0", "ArchiveDeliveryRequest"); - private final static QName _ArchiveTransferRequest_QNAME = new QName("org:afnor:medona:v1.0", "ArchiveTransferRequest"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: - * org.afnor.medona.v1 - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link ManagementMetadataType } - * - * @return the management metadata type - */ - public ManagementMetadataType createManagementMetadataType() { - return new ManagementMetadataType(); - } - - /** - * Create an instance of {@link OrganizationType } - * - * @return the organization type - */ - public OrganizationType createOrganizationType() { - return new OrganizationType(); - } - - /** - * Create an instance of {@link PhysicalDataObjectType } - * - * @return the physical data object type - */ - public PhysicalDataObjectType createPhysicalDataObjectType() { - return new PhysicalDataObjectType(); - } - - /** - * Create an instance of {@link DataObjectType } - * - * @return the data object type - */ - public DataObjectType createDataObjectType() { - return new DataObjectType(); - } - - /** - * Create an instance of {@link OrganizationDescriptiveMetadataType } - * - * @return the organization descriptive metadata type - */ - public OrganizationDescriptiveMetadataType createOrganizationDescriptiveMetadataType() { - return new OrganizationDescriptiveMetadataType(); - } - - /** - * Create an instance of {@link AuthorizationControlAuthorityRequestReplyType - * }* - * - * @return the authorization control authority request reply type - */ - public AuthorizationControlAuthorityRequestReplyType createAuthorizationControlAuthorityRequestReplyType() { - return new AuthorizationControlAuthorityRequestReplyType(); - } - - /** - * Create an instance of {@link ArchiveDestructionNotificationType } - * - * @return the archive destruction notification type - */ - public ArchiveDestructionNotificationType createArchiveDestructionNotificationType() { - return new ArchiveDestructionNotificationType(); - } - - /** - * Create an instance of {@link MessageDigestBinaryObjectType } - * - * @return the message digest binary object type - */ - public MessageDigestBinaryObjectType createMessageDigestBinaryObjectType() { - return new MessageDigestBinaryObjectType(); - } - - /** - * Create an instance of {@link ArchiveTransferType } - * - * @return the archive transfer type - */ - public ArchiveTransferType createArchiveTransferType() { - return new ArchiveTransferType(); - } - - /** - * Create an instance of {@link ArchiveTransferReplyType } - * - * @return the archive transfer reply type - */ - public ArchiveTransferReplyType createArchiveTransferReplyType() { - return new ArchiveTransferReplyType(); - } - - /** - * Create an instance of {@link DescriptiveMetadataType } - * - * @return the descriptive metadata type - */ - public DescriptiveMetadataType createDescriptiveMetadataType() { - return new DescriptiveMetadataType(); - } - - /** - * Create an instance of {@link DataObjectPackageType } - * - * @return the data object package type - */ - public DataObjectPackageType createDataObjectPackageType() { - return new DataObjectPackageType(); - } - - /** - * Create an instance of {@link BinaryDataObjectType } - * - * @return the binary data object type - */ - public BinaryDataObjectType createBinaryDataObjectType() { - return new BinaryDataObjectType(); - } - - /** - * Create an instance of {@link AuthorizationControlAuthorityRequestType } - * - * @return the authorization control authority request type - */ - public AuthorizationControlAuthorityRequestType createAuthorizationControlAuthorityRequestType() { - return new AuthorizationControlAuthorityRequestType(); - } - - /** - * Create an instance of {@link AcknowledgementType } - * - * @return the acknowledgement type - */ - public AcknowledgementType createAcknowledgementType() { - return new AcknowledgementType(); - } - - /** - * Create an instance of {@link BinaryObjectType } - * - * @return the binary object type - */ - public BinaryObjectType createBinaryObjectType() { - return new BinaryObjectType(); - } - - /** - * Create an instance of {@link MeasureType } - * - * @return the measure type - */ - public MeasureType createMeasureType() { - return new MeasureType(); - } - - /** - * Create an instance of {@link ArchiveDeliveryRequestReplyType } - * - * @return the archive delivery request reply type - */ - public ArchiveDeliveryRequestReplyType createArchiveDeliveryRequestReplyType() { - return new ArchiveDeliveryRequestReplyType(); - } - - /** - * Create an instance of {@link AccessRuleType } - * - * @return the access rule type - */ - public AccessRuleType createAccessRuleType() { - return new AccessRuleType(); - } - - /** - * Create an instance of {@link ArchiveModificationNotificationType } - * - * @return the archive modification notification type - */ - public ArchiveModificationNotificationType createArchiveModificationNotificationType() { - return new ArchiveModificationNotificationType(); - } - - /** - * Create an instance of {@link AuthorizationOriginatingAgencyRequestType } - * - * @return the authorization originating agency request type - */ - public AuthorizationOriginatingAgencyRequestType createAuthorizationOriginatingAgencyRequestType() { - return new AuthorizationOriginatingAgencyRequestType(); - } - - /** - * Create an instance of {@link TextType } - * - * @return the text type - */ - public TextType createTextType() { - return new TextType(); - } - - /** - * Create an instance of {@link ArchiveRestitutionRequestReplyType } - * - * @return the archive restitution request reply type - */ - public ArchiveRestitutionRequestReplyType createArchiveRestitutionRequestReplyType() { - return new ArchiveRestitutionRequestReplyType(); - } - - /** - * Create an instance of {@link ArchiveTransferRequestReplyType } - * - * @return the archive transfer request reply type - */ - public ArchiveTransferRequestReplyType createArchiveTransferRequestReplyType() { - return new ArchiveTransferRequestReplyType(); - } - - /** - * Create an instance of {@link AuthorizationOriginatingAgencyRequestReplyType - * }* - * - * @return the authorization originating agency request reply type - */ - public AuthorizationOriginatingAgencyRequestReplyType createAuthorizationOriginatingAgencyRequestReplyType() { - return new AuthorizationOriginatingAgencyRequestReplyType(); - } - - /** - * Create an instance of {@link CodeListVersionsType } - * - * @return the code list versions type - */ - public CodeListVersionsType createCodeListVersionsType() { - return new CodeListVersionsType(); - } - - /** - * Create an instance of {@link AuthorizationRequestContentType } - * - * @return the authorization request content type - */ - public AuthorizationRequestContentType createAuthorizationRequestContentType() { - return new AuthorizationRequestContentType(); - } - - /** - * Create an instance of {@link ArchiveDeliveryRequestType } - * - * @return the archive delivery request type - */ - public ArchiveDeliveryRequestType createArchiveDeliveryRequestType() { - return new ArchiveDeliveryRequestType(); - } - - /** - * Create an instance of {@link ArchiveRestitutionRequestType } - * - * @return the archive restitution request type - */ - public ArchiveRestitutionRequestType createArchiveRestitutionRequestType() { - return new ArchiveRestitutionRequestType(); - } - - /** - * Create an instance of {@link AppraisalRuleType } - * - * @return the appraisal rule type - */ - public AppraisalRuleType createAppraisalRuleType() { - return new AppraisalRuleType(); - } - - /** - * Create an instance of {@link ArchiveTransferRequestType } - * - * @return the archive transfer request type - */ - public ArchiveTransferRequestType createArchiveTransferRequestType() { - return new ArchiveTransferRequestType(); - } - - /** - * Create an instance of {@link RelationshipType } - * - * @return the relationship type - */ - public RelationshipType createRelationshipType() { - return new RelationshipType(); - } - - /** - * Create an instance of {@link SignatureType } - * - * @return the signature type - */ - public SignatureType createSignatureType() { - return new SignatureType(); - } - - /** - * Create an instance of {@link IdentifierType } - * - * @return the identifier type - */ - public IdentifierType createIdentifierType() { - return new IdentifierType(); - } - - /** - * Create an instance of {@link CodeType } - * - * @return the code type - */ - public CodeType createCodeType() { - return new CodeType(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DescriptiveMetadataType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "DescriptiveMetadata") - public JAXBElement createDescriptiveMetadata(DescriptiveMetadataType value) { - return new JAXBElement(_DescriptiveMetadata_QNAME, DescriptiveMetadataType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DataObjectPackageType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "DataObjectPackage") - public JAXBElement createDataObjectPackage(DataObjectPackageType value) { - return new JAXBElement(_DataObjectPackage_QNAME, DataObjectPackageType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link OrganizationType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "Organization") - public JAXBElement createOrganization(OrganizationType value) { - return new JAXBElement(_Organization_QNAME, OrganizationType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ByteSize") - public JAXBElement createByteSize(BigDecimal value) { - return new JAXBElement(_ByteSize_QNAME, BigDecimal.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ManagementMetadataType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ManagementMetadata") - public JAXBElement createManagementMetadata(ManagementMetadataType value) { - return new JAXBElement(_ManagementMetadata_QNAME, ManagementMetadataType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link MessageDigestBinaryObjectType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "MessageDigestBinaryObject") - public JAXBElement createMessageDigestBinaryObject(MessageDigestBinaryObjectType value) { - return new JAXBElement(_MessageDigestBinaryObject_QNAME, MessageDigestBinaryObjectType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link PhysicalDataObjectType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "PhysicalDataObject", substitutionHeadNamespace = "org:afnor:medona:v1.0", substitutionHeadName = "DataObject") - public JAXBElement createPhysicalDataObject(PhysicalDataObjectType value) { - return new JAXBElement(_PhysicalDataObject_QNAME, PhysicalDataObjectType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link OrganizationDescriptiveMetadataType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "OrganizationDescriptiveMetadata") - public JAXBElement createOrganizationDescriptiveMetadata(OrganizationDescriptiveMetadataType value) { - return new JAXBElement(_OrganizationDescriptiveMetadata_QNAME, OrganizationDescriptiveMetadataType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link MessageType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "Message") - public JAXBElement createMessage(MessageType value) { - return new JAXBElement(_Message_QNAME, MessageType.class, null, value); - } - - /** - * Create an instance of - * {@link JAXBElement }{@code <}{@link AuthorizationControlAuthorityRequestReplyType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "AuthorizationControlAuthorityRequestReply") - public JAXBElement createAuthorizationControlAuthorityRequestReply(AuthorizationControlAuthorityRequestReplyType value) { - return new JAXBElement(_AuthorizationControlAuthorityRequestReply_QNAME, AuthorizationControlAuthorityRequestReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestReplyType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveDeliveryRequestReply") - public JAXBElement createArchiveDeliveryRequestReply(ArchiveDeliveryRequestReplyType value) { - return new JAXBElement(_ArchiveDeliveryRequestReply_QNAME, ArchiveDeliveryRequestReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveModificationNotificationType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveModificationNotification") - public JAXBElement createArchiveModificationNotification(ArchiveModificationNotificationType value) { - return new JAXBElement(_ArchiveModificationNotification_QNAME, ArchiveModificationNotificationType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BinaryDataObjectType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "BinaryDataObject", substitutionHeadNamespace = "org:afnor:medona:v1.0", substitutionHeadName = "DataObject") - public JAXBElement createBinaryDataObject(BinaryDataObjectType value) { - return new JAXBElement(_BinaryDataObject_QNAME, BinaryDataObjectType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AcknowledgementType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "Acknowledgement") - public JAXBElement createAcknowledgement(AcknowledgementType value) { - return new JAXBElement(_Acknowledgement_QNAME, AcknowledgementType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BinaryObjectType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "BinaryObject") - public JAXBElement createBinaryObject(BinaryObjectType value) { - return new JAXBElement(_BinaryObject_QNAME, BinaryObjectType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "Text") - public JAXBElement createText(TextType value) { - return new JAXBElement(_Text_QNAME, TextType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BusinessMessageType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "BusinessMessage") - public JAXBElement createBusinessMessage(BusinessMessageType value) { - return new JAXBElement(_BusinessMessage_QNAME, BusinessMessageType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestReplyType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveRestitutionRequestReply") - public JAXBElement createArchiveRestitutionRequestReply(ArchiveRestitutionRequestReplyType value) { - return new JAXBElement(_ArchiveRestitutionRequestReply_QNAME, ArchiveRestitutionRequestReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AuthorizationOriginatingAgencyRequestType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "AuthorizationOriginatingAgencyRequest") - public JAXBElement createAuthorizationOriginatingAgencyRequest(AuthorizationOriginatingAgencyRequestType value) { - return new JAXBElement(_AuthorizationOriginatingAgencyRequest_QNAME, AuthorizationOriginatingAgencyRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link RelationshipType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "Relationship") - public JAXBElement createRelationship(RelationshipType value) { - return new JAXBElement(_Relationship_QNAME, RelationshipType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "Signature") - public JAXBElement createSignature(SignatureType value) { - return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveRestitutionRequest") - public JAXBElement createArchiveRestitutionRequest(ArchiveRestitutionRequestType value) { - return new JAXBElement(_ArchiveRestitutionRequest_QNAME, ArchiveRestitutionRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AppraisalRuleType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "AppraisalRule") - public JAXBElement createAppraisalRule(AppraisalRuleType value) { - return new JAXBElement(_AppraisalRule_QNAME, AppraisalRuleType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferReplyType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveTransferReply") - public JAXBElement createArchiveTransferReply(ArchiveTransferReplyType value) { - return new JAXBElement(_ArchiveTransferReply_QNAME, ArchiveTransferReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BusinessReplyMessageType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "BusinessReplyMessage") - public JAXBElement createBusinessReplyMessage(BusinessReplyMessageType value) { - return new JAXBElement(_BusinessReplyMessage_QNAME, BusinessReplyMessageType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveTransfer") - public JAXBElement createArchiveTransfer(ArchiveTransferType value) { - return new JAXBElement(_ArchiveTransfer_QNAME, ArchiveTransferType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDestructionNotificationType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveDestructionNotification") - public JAXBElement createArchiveDestructionNotification(ArchiveDestructionNotificationType value) { - return new JAXBElement(_ArchiveDestructionNotification_QNAME, ArchiveDestructionNotificationType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link MeasureType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "Measure") - public JAXBElement createMeasure(MeasureType value) { - return new JAXBElement(_Measure_QNAME, MeasureType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AccessRuleType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "AccessRule") - public JAXBElement createAccessRule(AccessRuleType value) { - return new JAXBElement(_AccessRule_QNAME, AccessRuleType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BusinessAuthorizationRequestMessageType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "BusinessAuthorizationRequestMessage") - public JAXBElement createBusinessAuthorizationRequestMessage(BusinessAuthorizationRequestMessageType value) { - return new JAXBElement(_BusinessAuthorizationRequestMessage_QNAME, BusinessAuthorizationRequestMessageType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AuthorizationControlAuthorityRequestType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "AuthorizationControlAuthorityRequest") - public JAXBElement createAuthorizationControlAuthorityRequest(AuthorizationControlAuthorityRequestType value) { - return new JAXBElement(_AuthorizationControlAuthorityRequest_QNAME, AuthorizationControlAuthorityRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BusinessRequestMessageType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "BusinessRequestMessage") - public JAXBElement createBusinessRequestMessage(BusinessRequestMessageType value) { - return new JAXBElement(_BusinessRequestMessage_QNAME, BusinessRequestMessageType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestReplyType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveTransferRequestReply") - public JAXBElement createArchiveTransferRequestReply(ArchiveTransferRequestReplyType value) { - return new JAXBElement(_ArchiveTransferRequestReply_QNAME, ArchiveTransferRequestReplyType.class, null, value); - } - - /** - * Create an instance of - * {@link JAXBElement }{@code <}{@link AuthorizationOriginatingAgencyRequestReplyType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "AuthorizationOriginatingAgencyRequestReply") - public JAXBElement createAuthorizationOriginatingAgencyRequestReply(AuthorizationOriginatingAgencyRequestReplyType value) { - return new JAXBElement(_AuthorizationOriginatingAgencyRequestReply_QNAME, AuthorizationOriginatingAgencyRequestReplyType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link BusinessNotificationMessageType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "BusinessNotificationMessage") - public JAXBElement createBusinessNotificationMessage(BusinessNotificationMessageType value) { - return new JAXBElement(_BusinessNotificationMessage_QNAME, BusinessNotificationMessageType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DataObjectType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "DataObject") - public JAXBElement createDataObject(DataObjectType value) { - return new JAXBElement(_DataObject_QNAME, DataObjectType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AuthorizationRequestContentType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "AuthorizationRequestContent") - public JAXBElement createAuthorizationRequestContent(AuthorizationRequestContentType value) { - return new JAXBElement(_AuthorizationRequestContent_QNAME, AuthorizationRequestContentType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link CodeListVersionsType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "CodeListVersions") - public JAXBElement createCodeListVersions(CodeListVersionsType value) { - return new JAXBElement(_CodeListVersions_QNAME, CodeListVersionsType.class, null, value); - } - - /** - * Create an instance of - * {@link JAXBElement }{@code <}{@link BusinessAuthorizationRequestReplyMessageType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "BusinessAuthorizationRequestReplyMessage") - public JAXBElement createBusinessAuthorizationRequestReplyMessage(BusinessAuthorizationRequestReplyMessageType value) { - return new JAXBElement(_BusinessAuthorizationRequestReplyMessage_QNAME, BusinessAuthorizationRequestReplyMessageType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveDeliveryRequest") - public JAXBElement createArchiveDeliveryRequest(ArchiveDeliveryRequestType value) { - return new JAXBElement(_ArchiveDeliveryRequest_QNAME, ArchiveDeliveryRequestType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveTransferRequest") - public JAXBElement createArchiveTransferRequest(ArchiveTransferRequestType value) { - return new JAXBElement(_ArchiveTransferRequest_QNAME, ArchiveTransferRequestType.class, null, value); - } - + private static final QName _DescriptiveMetadata_QNAME = + new QName("org:afnor:medona:v1.0", "DescriptiveMetadata"); + private static final QName _DataObjectPackage_QNAME = + new QName("org:afnor:medona:v1.0", "DataObjectPackage"); + private static final QName _Organization_QNAME = + new QName("org:afnor:medona:v1.0", "Organization"); + private static final QName _ByteSize_QNAME = new QName("org:afnor:medona:v1.0", "ByteSize"); + private static final QName _ManagementMetadata_QNAME = + new QName("org:afnor:medona:v1.0", "ManagementMetadata"); + private static final QName _MessageDigestBinaryObject_QNAME = + new QName("org:afnor:medona:v1.0", "MessageDigestBinaryObject"); + private static final QName _PhysicalDataObject_QNAME = + new QName("org:afnor:medona:v1.0", "PhysicalDataObject"); + private static final QName _OrganizationDescriptiveMetadata_QNAME = + new QName("org:afnor:medona:v1.0", "OrganizationDescriptiveMetadata"); + private static final QName _Message_QNAME = new QName("org:afnor:medona:v1.0", "Message"); + private static final QName _AuthorizationControlAuthorityRequestReply_QNAME = + new QName("org:afnor:medona:v1.0", "AuthorizationControlAuthorityRequestReply"); + private static final QName _ArchiveDeliveryRequestReply_QNAME = + new QName("org:afnor:medona:v1.0", "ArchiveDeliveryRequestReply"); + private static final QName _ArchiveModificationNotification_QNAME = + new QName("org:afnor:medona:v1.0", "ArchiveModificationNotification"); + private static final QName _BinaryDataObject_QNAME = + new QName("org:afnor:medona:v1.0", "BinaryDataObject"); + private static final QName _Acknowledgement_QNAME = + new QName("org:afnor:medona:v1.0", "Acknowledgement"); + private static final QName _BinaryObject_QNAME = + new QName("org:afnor:medona:v1.0", "BinaryObject"); + private static final QName _Text_QNAME = new QName("org:afnor:medona:v1.0", "Text"); + private static final QName _BusinessMessage_QNAME = + new QName("org:afnor:medona:v1.0", "BusinessMessage"); + private static final QName _ArchiveRestitutionRequestReply_QNAME = + new QName("org:afnor:medona:v1.0", "ArchiveRestitutionRequestReply"); + private static final QName _AuthorizationOriginatingAgencyRequest_QNAME = + new QName("org:afnor:medona:v1.0", "AuthorizationOriginatingAgencyRequest"); + private static final QName _Relationship_QNAME = + new QName("org:afnor:medona:v1.0", "Relationship"); + private static final QName _Signature_QNAME = new QName("org:afnor:medona:v1.0", "Signature"); + private static final QName _ArchiveRestitutionRequest_QNAME = + new QName("org:afnor:medona:v1.0", "ArchiveRestitutionRequest"); + private static final QName _AppraisalRule_QNAME = + new QName("org:afnor:medona:v1.0", "AppraisalRule"); + private static final QName _ArchiveTransferReply_QNAME = + new QName("org:afnor:medona:v1.0", "ArchiveTransferReply"); + private static final QName _BusinessReplyMessage_QNAME = + new QName("org:afnor:medona:v1.0", "BusinessReplyMessage"); + private static final QName _ArchiveTransfer_QNAME = + new QName("org:afnor:medona:v1.0", "ArchiveTransfer"); + private static final QName _ArchiveDestructionNotification_QNAME = + new QName("org:afnor:medona:v1.0", "ArchiveDestructionNotification"); + private static final QName _Measure_QNAME = new QName("org:afnor:medona:v1.0", "Measure"); + private static final QName _AccessRule_QNAME = new QName("org:afnor:medona:v1.0", "AccessRule"); + private static final QName _BusinessAuthorizationRequestMessage_QNAME = + new QName("org:afnor:medona:v1.0", "BusinessAuthorizationRequestMessage"); + private static final QName _AuthorizationControlAuthorityRequest_QNAME = + new QName("org:afnor:medona:v1.0", "AuthorizationControlAuthorityRequest"); + private static final QName _BusinessRequestMessage_QNAME = + new QName("org:afnor:medona:v1.0", "BusinessRequestMessage"); + private static final QName _ArchiveTransferRequestReply_QNAME = + new QName("org:afnor:medona:v1.0", "ArchiveTransferRequestReply"); + private static final QName _AuthorizationOriginatingAgencyRequestReply_QNAME = + new QName("org:afnor:medona:v1.0", "AuthorizationOriginatingAgencyRequestReply"); + private static final QName _BusinessNotificationMessage_QNAME = + new QName("org:afnor:medona:v1.0", "BusinessNotificationMessage"); + private static final QName _DataObject_QNAME = new QName("org:afnor:medona:v1.0", "DataObject"); + private static final QName _AuthorizationRequestContent_QNAME = + new QName("org:afnor:medona:v1.0", "AuthorizationRequestContent"); + private static final QName _CodeListVersions_QNAME = + new QName("org:afnor:medona:v1.0", "CodeListVersions"); + private static final QName _BusinessAuthorizationRequestReplyMessage_QNAME = + new QName("org:afnor:medona:v1.0", "BusinessAuthorizationRequestReplyMessage"); + private static final QName _ArchiveDeliveryRequest_QNAME = + new QName("org:afnor:medona:v1.0", "ArchiveDeliveryRequest"); + private static final QName _ArchiveTransferRequest_QNAME = + new QName("org:afnor:medona:v1.0", "ArchiveTransferRequest"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes + * for package: org.afnor.medona.v1 + */ + public ObjectFactory() {} + + /** + * Create an instance of {@link ManagementMetadataType } + * + * @return the management metadata type + */ + public ManagementMetadataType createManagementMetadataType() { + return new ManagementMetadataType(); + } + + /** + * Create an instance of {@link OrganizationType } + * + * @return the organization type + */ + public OrganizationType createOrganizationType() { + return new OrganizationType(); + } + + /** + * Create an instance of {@link PhysicalDataObjectType } + * + * @return the physical data object type + */ + public PhysicalDataObjectType createPhysicalDataObjectType() { + return new PhysicalDataObjectType(); + } + + /** + * Create an instance of {@link DataObjectType } + * + * @return the data object type + */ + public DataObjectType createDataObjectType() { + return new DataObjectType(); + } + + /** + * Create an instance of {@link OrganizationDescriptiveMetadataType } + * + * @return the organization descriptive metadata type + */ + public OrganizationDescriptiveMetadataType createOrganizationDescriptiveMetadataType() { + return new OrganizationDescriptiveMetadataType(); + } + + /** + * Create an instance of {@link AuthorizationControlAuthorityRequestReplyType }* + * + * @return the authorization control authority request reply type + */ + public AuthorizationControlAuthorityRequestReplyType + createAuthorizationControlAuthorityRequestReplyType() { + return new AuthorizationControlAuthorityRequestReplyType(); + } + + /** + * Create an instance of {@link ArchiveDestructionNotificationType } + * + * @return the archive destruction notification type + */ + public ArchiveDestructionNotificationType createArchiveDestructionNotificationType() { + return new ArchiveDestructionNotificationType(); + } + + /** + * Create an instance of {@link MessageDigestBinaryObjectType } + * + * @return the message digest binary object type + */ + public MessageDigestBinaryObjectType createMessageDigestBinaryObjectType() { + return new MessageDigestBinaryObjectType(); + } + + /** + * Create an instance of {@link ArchiveTransferType } + * + * @return the archive transfer type + */ + public ArchiveTransferType createArchiveTransferType() { + return new ArchiveTransferType(); + } + + /** + * Create an instance of {@link ArchiveTransferReplyType } + * + * @return the archive transfer reply type + */ + public ArchiveTransferReplyType createArchiveTransferReplyType() { + return new ArchiveTransferReplyType(); + } + + /** + * Create an instance of {@link DescriptiveMetadataType } + * + * @return the descriptive metadata type + */ + public DescriptiveMetadataType createDescriptiveMetadataType() { + return new DescriptiveMetadataType(); + } + + /** + * Create an instance of {@link DataObjectPackageType } + * + * @return the data object package type + */ + public DataObjectPackageType createDataObjectPackageType() { + return new DataObjectPackageType(); + } + + /** + * Create an instance of {@link BinaryDataObjectType } + * + * @return the binary data object type + */ + public BinaryDataObjectType createBinaryDataObjectType() { + return new BinaryDataObjectType(); + } + + /** + * Create an instance of {@link AuthorizationControlAuthorityRequestType } + * + * @return the authorization control authority request type + */ + public AuthorizationControlAuthorityRequestType createAuthorizationControlAuthorityRequestType() { + return new AuthorizationControlAuthorityRequestType(); + } + + /** + * Create an instance of {@link AcknowledgementType } + * + * @return the acknowledgement type + */ + public AcknowledgementType createAcknowledgementType() { + return new AcknowledgementType(); + } + + /** + * Create an instance of {@link BinaryObjectType } + * + * @return the binary object type + */ + public BinaryObjectType createBinaryObjectType() { + return new BinaryObjectType(); + } + + /** + * Create an instance of {@link MeasureType } + * + * @return the measure type + */ + public MeasureType createMeasureType() { + return new MeasureType(); + } + + /** + * Create an instance of {@link ArchiveDeliveryRequestReplyType } + * + * @return the archive delivery request reply type + */ + public ArchiveDeliveryRequestReplyType createArchiveDeliveryRequestReplyType() { + return new ArchiveDeliveryRequestReplyType(); + } + + /** + * Create an instance of {@link AccessRuleType } + * + * @return the access rule type + */ + public AccessRuleType createAccessRuleType() { + return new AccessRuleType(); + } + + /** + * Create an instance of {@link ArchiveModificationNotificationType } + * + * @return the archive modification notification type + */ + public ArchiveModificationNotificationType createArchiveModificationNotificationType() { + return new ArchiveModificationNotificationType(); + } + + /** + * Create an instance of {@link AuthorizationOriginatingAgencyRequestType } + * + * @return the authorization originating agency request type + */ + public AuthorizationOriginatingAgencyRequestType + createAuthorizationOriginatingAgencyRequestType() { + return new AuthorizationOriginatingAgencyRequestType(); + } + + /** + * Create an instance of {@link TextType } + * + * @return the text type + */ + public TextType createTextType() { + return new TextType(); + } + + /** + * Create an instance of {@link ArchiveRestitutionRequestReplyType } + * + * @return the archive restitution request reply type + */ + public ArchiveRestitutionRequestReplyType createArchiveRestitutionRequestReplyType() { + return new ArchiveRestitutionRequestReplyType(); + } + + /** + * Create an instance of {@link ArchiveTransferRequestReplyType } + * + * @return the archive transfer request reply type + */ + public ArchiveTransferRequestReplyType createArchiveTransferRequestReplyType() { + return new ArchiveTransferRequestReplyType(); + } + + /** + * Create an instance of {@link AuthorizationOriginatingAgencyRequestReplyType }* + * + * @return the authorization originating agency request reply type + */ + public AuthorizationOriginatingAgencyRequestReplyType + createAuthorizationOriginatingAgencyRequestReplyType() { + return new AuthorizationOriginatingAgencyRequestReplyType(); + } + + /** + * Create an instance of {@link CodeListVersionsType } + * + * @return the code list versions type + */ + public CodeListVersionsType createCodeListVersionsType() { + return new CodeListVersionsType(); + } + + /** + * Create an instance of {@link AuthorizationRequestContentType } + * + * @return the authorization request content type + */ + public AuthorizationRequestContentType createAuthorizationRequestContentType() { + return new AuthorizationRequestContentType(); + } + + /** + * Create an instance of {@link ArchiveDeliveryRequestType } + * + * @return the archive delivery request type + */ + public ArchiveDeliveryRequestType createArchiveDeliveryRequestType() { + return new ArchiveDeliveryRequestType(); + } + + /** + * Create an instance of {@link ArchiveRestitutionRequestType } + * + * @return the archive restitution request type + */ + public ArchiveRestitutionRequestType createArchiveRestitutionRequestType() { + return new ArchiveRestitutionRequestType(); + } + + /** + * Create an instance of {@link AppraisalRuleType } + * + * @return the appraisal rule type + */ + public AppraisalRuleType createAppraisalRuleType() { + return new AppraisalRuleType(); + } + + /** + * Create an instance of {@link ArchiveTransferRequestType } + * + * @return the archive transfer request type + */ + public ArchiveTransferRequestType createArchiveTransferRequestType() { + return new ArchiveTransferRequestType(); + } + + /** + * Create an instance of {@link RelationshipType } + * + * @return the relationship type + */ + public RelationshipType createRelationshipType() { + return new RelationshipType(); + } + + /** + * Create an instance of {@link SignatureType } + * + * @return the signature type + */ + public SignatureType createSignatureType() { + return new SignatureType(); + } + + /** + * Create an instance of {@link IdentifierType } + * + * @return the identifier type + */ + public IdentifierType createIdentifierType() { + return new IdentifierType(); + } + + /** + * Create an instance of {@link CodeType } + * + * @return the code type + */ + public CodeType createCodeType() { + return new CodeType(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DescriptiveMetadataType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "DescriptiveMetadata") + public JAXBElement createDescriptiveMetadata( + DescriptiveMetadataType value) { + return new JAXBElement( + _DescriptiveMetadata_QNAME, DescriptiveMetadataType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DataObjectPackageType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "DataObjectPackage") + public JAXBElement createDataObjectPackage(DataObjectPackageType value) { + return new JAXBElement( + _DataObjectPackage_QNAME, DataObjectPackageType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link OrganizationType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "Organization") + public JAXBElement createOrganization(OrganizationType value) { + return new JAXBElement( + _Organization_QNAME, OrganizationType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ByteSize") + public JAXBElement createByteSize(BigDecimal value) { + return new JAXBElement(_ByteSize_QNAME, BigDecimal.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ManagementMetadataType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ManagementMetadata") + public JAXBElement createManagementMetadata( + ManagementMetadataType value) { + return new JAXBElement( + _ManagementMetadata_QNAME, ManagementMetadataType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MessageDigestBinaryObjectType }{@code + * >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "MessageDigestBinaryObject") + public JAXBElement createMessageDigestBinaryObject( + MessageDigestBinaryObjectType value) { + return new JAXBElement( + _MessageDigestBinaryObject_QNAME, MessageDigestBinaryObjectType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link PhysicalDataObjectType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "org:afnor:medona:v1.0", + name = "PhysicalDataObject", + substitutionHeadNamespace = "org:afnor:medona:v1.0", + substitutionHeadName = "DataObject") + public JAXBElement createPhysicalDataObject( + PhysicalDataObjectType value) { + return new JAXBElement( + _PhysicalDataObject_QNAME, PhysicalDataObjectType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link OrganizationDescriptiveMetadataType + * }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "OrganizationDescriptiveMetadata") + public JAXBElement createOrganizationDescriptiveMetadata( + OrganizationDescriptiveMetadataType value) { + return new JAXBElement( + _OrganizationDescriptiveMetadata_QNAME, + OrganizationDescriptiveMetadataType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MessageType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "Message") + public JAXBElement createMessage(MessageType value) { + return new JAXBElement(_Message_QNAME, MessageType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link + * AuthorizationControlAuthorityRequestReplyType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "org:afnor:medona:v1.0", + name = "AuthorizationControlAuthorityRequestReply") + public JAXBElement + createAuthorizationControlAuthorityRequestReply( + AuthorizationControlAuthorityRequestReplyType value) { + return new JAXBElement( + _AuthorizationControlAuthorityRequestReply_QNAME, + AuthorizationControlAuthorityRequestReplyType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestReplyType + * }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveDeliveryRequestReply") + public JAXBElement createArchiveDeliveryRequestReply( + ArchiveDeliveryRequestReplyType value) { + return new JAXBElement( + _ArchiveDeliveryRequestReply_QNAME, ArchiveDeliveryRequestReplyType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveModificationNotificationType + * }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveModificationNotification") + public JAXBElement createArchiveModificationNotification( + ArchiveModificationNotificationType value) { + return new JAXBElement( + _ArchiveModificationNotification_QNAME, + ArchiveModificationNotificationType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BinaryDataObjectType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "org:afnor:medona:v1.0", + name = "BinaryDataObject", + substitutionHeadNamespace = "org:afnor:medona:v1.0", + substitutionHeadName = "DataObject") + public JAXBElement createBinaryDataObject(BinaryDataObjectType value) { + return new JAXBElement( + _BinaryDataObject_QNAME, BinaryDataObjectType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AcknowledgementType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "Acknowledgement") + public JAXBElement createAcknowledgement(AcknowledgementType value) { + return new JAXBElement( + _Acknowledgement_QNAME, AcknowledgementType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BinaryObjectType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "BinaryObject") + public JAXBElement createBinaryObject(BinaryObjectType value) { + return new JAXBElement( + _BinaryObject_QNAME, BinaryObjectType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "Text") + public JAXBElement createText(TextType value) { + return new JAXBElement(_Text_QNAME, TextType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BusinessMessageType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "BusinessMessage") + public JAXBElement createBusinessMessage(BusinessMessageType value) { + return new JAXBElement( + _BusinessMessage_QNAME, BusinessMessageType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestReplyType + * }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveRestitutionRequestReply") + public JAXBElement createArchiveRestitutionRequestReply( + ArchiveRestitutionRequestReplyType value) { + return new JAXBElement( + _ArchiveRestitutionRequestReply_QNAME, + ArchiveRestitutionRequestReplyType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link + * AuthorizationOriginatingAgencyRequestType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "org:afnor:medona:v1.0", + name = "AuthorizationOriginatingAgencyRequest") + public JAXBElement + createAuthorizationOriginatingAgencyRequest(AuthorizationOriginatingAgencyRequestType value) { + return new JAXBElement( + _AuthorizationOriginatingAgencyRequest_QNAME, + AuthorizationOriginatingAgencyRequestType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link RelationshipType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "Relationship") + public JAXBElement createRelationship(RelationshipType value) { + return new JAXBElement( + _Relationship_QNAME, RelationshipType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SignatureType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "Signature") + public JAXBElement createSignature(SignatureType value) { + return new JAXBElement(_Signature_QNAME, SignatureType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveRestitutionRequestType }{@code + * >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveRestitutionRequest") + public JAXBElement createArchiveRestitutionRequest( + ArchiveRestitutionRequestType value) { + return new JAXBElement( + _ArchiveRestitutionRequest_QNAME, ArchiveRestitutionRequestType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AppraisalRuleType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "AppraisalRule") + public JAXBElement createAppraisalRule(AppraisalRuleType value) { + return new JAXBElement( + _AppraisalRule_QNAME, AppraisalRuleType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferReplyType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveTransferReply") + public JAXBElement createArchiveTransferReply( + ArchiveTransferReplyType value) { + return new JAXBElement( + _ArchiveTransferReply_QNAME, ArchiveTransferReplyType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BusinessReplyMessageType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "BusinessReplyMessage") + public JAXBElement createBusinessReplyMessage( + BusinessReplyMessageType value) { + return new JAXBElement( + _BusinessReplyMessage_QNAME, BusinessReplyMessageType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveTransfer") + public JAXBElement createArchiveTransfer(ArchiveTransferType value) { + return new JAXBElement( + _ArchiveTransfer_QNAME, ArchiveTransferType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDestructionNotificationType + * }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveDestructionNotification") + public JAXBElement createArchiveDestructionNotification( + ArchiveDestructionNotificationType value) { + return new JAXBElement( + _ArchiveDestructionNotification_QNAME, + ArchiveDestructionNotificationType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MeasureType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "Measure") + public JAXBElement createMeasure(MeasureType value) { + return new JAXBElement(_Measure_QNAME, MeasureType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AccessRuleType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "AccessRule") + public JAXBElement createAccessRule(AccessRuleType value) { + return new JAXBElement(_AccessRule_QNAME, AccessRuleType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link + * BusinessAuthorizationRequestMessageType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "BusinessAuthorizationRequestMessage") + public JAXBElement + createBusinessAuthorizationRequestMessage(BusinessAuthorizationRequestMessageType value) { + return new JAXBElement( + _BusinessAuthorizationRequestMessage_QNAME, + BusinessAuthorizationRequestMessageType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link + * AuthorizationControlAuthorityRequestType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "org:afnor:medona:v1.0", + name = "AuthorizationControlAuthorityRequest") + public JAXBElement + createAuthorizationControlAuthorityRequest(AuthorizationControlAuthorityRequestType value) { + return new JAXBElement( + _AuthorizationControlAuthorityRequest_QNAME, + AuthorizationControlAuthorityRequestType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BusinessRequestMessageType }{@code + * >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "BusinessRequestMessage") + public JAXBElement createBusinessRequestMessage( + BusinessRequestMessageType value) { + return new JAXBElement( + _BusinessRequestMessage_QNAME, BusinessRequestMessageType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestReplyType + * }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveTransferRequestReply") + public JAXBElement createArchiveTransferRequestReply( + ArchiveTransferRequestReplyType value) { + return new JAXBElement( + _ArchiveTransferRequestReply_QNAME, ArchiveTransferRequestReplyType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link + * AuthorizationOriginatingAgencyRequestReplyType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "org:afnor:medona:v1.0", + name = "AuthorizationOriginatingAgencyRequestReply") + public JAXBElement + createAuthorizationOriginatingAgencyRequestReply( + AuthorizationOriginatingAgencyRequestReplyType value) { + return new JAXBElement( + _AuthorizationOriginatingAgencyRequestReply_QNAME, + AuthorizationOriginatingAgencyRequestReplyType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BusinessNotificationMessageType + * }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "BusinessNotificationMessage") + public JAXBElement createBusinessNotificationMessage( + BusinessNotificationMessageType value) { + return new JAXBElement( + _BusinessNotificationMessage_QNAME, BusinessNotificationMessageType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DataObjectType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "DataObject") + public JAXBElement createDataObject(DataObjectType value) { + return new JAXBElement(_DataObject_QNAME, DataObjectType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AuthorizationRequestContentType + * }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "AuthorizationRequestContent") + public JAXBElement createAuthorizationRequestContent( + AuthorizationRequestContentType value) { + return new JAXBElement( + _AuthorizationRequestContent_QNAME, AuthorizationRequestContentType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link CodeListVersionsType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "CodeListVersions") + public JAXBElement createCodeListVersions(CodeListVersionsType value) { + return new JAXBElement( + _CodeListVersions_QNAME, CodeListVersionsType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link + * BusinessAuthorizationRequestReplyMessageType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "org:afnor:medona:v1.0", + name = "BusinessAuthorizationRequestReplyMessage") + public JAXBElement + createBusinessAuthorizationRequestReplyMessage( + BusinessAuthorizationRequestReplyMessageType value) { + return new JAXBElement( + _BusinessAuthorizationRequestReplyMessage_QNAME, + BusinessAuthorizationRequestReplyMessageType.class, + null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveDeliveryRequestType }{@code + * >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveDeliveryRequest") + public JAXBElement createArchiveDeliveryRequest( + ArchiveDeliveryRequestType value) { + return new JAXBElement( + _ArchiveDeliveryRequest_QNAME, ArchiveDeliveryRequestType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveTransferRequestType }{@code + * >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:afnor:medona:v1.0", name = "ArchiveTransferRequest") + public JAXBElement createArchiveTransferRequest( + ArchiveTransferRequestType value) { + return new JAXBElement( + _ArchiveTransferRequest_QNAME, ArchiveTransferRequestType.class, null, value); + } } diff --git a/src/main/java/org/afnor/medona/v1/OpenType.java b/src/main/java/org/afnor/medona/v1/OpenType.java index 4dc428f..e8a2bfe 100644 --- a/src/main/java/org/afnor/medona/v1/OpenType.java +++ b/src/main/java/org/afnor/medona/v1/OpenType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for OpenType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="OpenType">
@@ -32,88 +31,83 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "OpenType", propOrder = { - "any" -}) +@XmlType( + name = "OpenType", + propOrder = {"any"}) @XmlSeeAlso({ - OrganizationDescriptiveMetadataType.class, - DescriptiveMetadataType.class, - AccessRuleType.class, - SignatureType.class + OrganizationDescriptiveMetadataType.class, + DescriptiveMetadataType.class, + AccessRuleType.class, + SignatureType.class }) public abstract class OpenType { - /** - * The Any. - */ - @XmlAnyElement(lax = true) - protected Object any; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - /** - * The Href. - */ - @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") - protected String href; + /** The Any. */ + @XmlAnyElement(lax = true) + protected Object any; + + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Gets the value of the any property. - * - * @return possible object is {@link Object } - */ - public Object getAny() { - return any; - } + /** The Href. */ + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + protected String href; - /** - * Sets the value of the any property. - * - * @param value allowed object is {@link Object } - */ - public void setAny(Object value) { - this.any = value; - } + /** + * Gets the value of the any property. + * + * @return possible object is {@link Object } + */ + public Object getAny() { + return any; + } - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** + * Sets the value of the any property. + * + * @param value allowed object is {@link Object } + */ + public void setAny(Object value) { + this.any = value; + } - /** - * 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 id property. + * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } - /** - * Gets the value of the href property. - * - * @return possible object is {@link String } - */ - public String getHref() { - return href; - } + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link String } + */ + public void setId(String value) { + this.id = value; + } - /** - * Sets the value of the href property. - * - * @param value allowed object is {@link String } - */ - public void setHref(String value) { - this.href = value; - } + /** + * Gets the value of the href property. + * + * @return possible object is {@link String } + */ + public String getHref() { + return href; + } + /** + * Sets the value of the href property. + * + * @param value allowed object is {@link String } + */ + public void setHref(String value) { + this.href = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/OrganizationDescriptiveMetadataType.java b/src/main/java/org/afnor/medona/v1/OrganizationDescriptiveMetadataType.java index e448a56..2aadca1 100644 --- a/src/main/java/org/afnor/medona/v1/OrganizationDescriptiveMetadataType.java +++ b/src/main/java/org/afnor/medona/v1/OrganizationDescriptiveMetadataType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for OrganizationDescriptiveMetadataType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="OrganizationDescriptiveMetadataType">
@@ -28,7 +27,4 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "OrganizationDescriptiveMetadataType")
-public class OrganizationDescriptiveMetadataType
-        extends OpenType {
-
-}
+public class OrganizationDescriptiveMetadataType extends OpenType {}
diff --git a/src/main/java/org/afnor/medona/v1/OrganizationType.java b/src/main/java/org/afnor/medona/v1/OrganizationType.java
index 5d72f07..b97ac44 100644
--- a/src/main/java/org/afnor/medona/v1/OrganizationType.java
+++ b/src/main/java/org/afnor/medona/v1/OrganizationType.java
@@ -1,8 +1,9 @@
 //
-// 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: 2019.09.15 at 07:07:47 PM CEST 
+// 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: 2019.09.15 at 07:07:47 PM CEST
 //
 package org.afnor.medona.v1;
 
@@ -11,11 +12,9 @@
 import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 
 /**
- * 

* Java class for OrganizationType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="OrganizationType">
@@ -32,84 +31,77 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "OrganizationType", propOrder = { - "identifier", - "organizationDescriptiveMetadata" -}) +@XmlType( + name = "OrganizationType", + propOrder = {"identifier", "organizationDescriptiveMetadata"}) public class OrganizationType { - /** - * The Identifier. - */ - @XmlElement(name = "Identifier", required = true) - protected IdentifierType identifier; - /** - * The Organization descriptive metadata. - */ - @XmlElement(name = "OrganizationDescriptiveMetadata") - protected OrganizationDescriptiveMetadataType organizationDescriptiveMetadata; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + /** The Identifier. */ + @XmlElement(name = "Identifier", required = true) + protected IdentifierType identifier; - /** - * Gets the value of the identifier property. - * - * @return possible object is {@link IdentifierType } - */ - public IdentifierType getIdentifier() { - return identifier; - } + /** The Organization descriptive metadata. */ + @XmlElement(name = "OrganizationDescriptiveMetadata") + protected OrganizationDescriptiveMetadataType organizationDescriptiveMetadata; - /** - * Sets the value of the identifier property. - * - * @param value allowed object is {@link IdentifierType } - */ - public void setIdentifier(IdentifierType value) { - this.identifier = value; - } + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Gets the value of the organizationDescriptiveMetadata property. - * - * @return possible object is {@link OrganizationDescriptiveMetadataType } - */ - public OrganizationDescriptiveMetadataType getOrganizationDescriptiveMetadata() { - return organizationDescriptiveMetadata; - } + /** + * Gets the value of the identifier property. + * + * @return possible object is {@link IdentifierType } + */ + public IdentifierType getIdentifier() { + return identifier; + } - /** - * Sets the value of the organizationDescriptiveMetadata property. - * - * @param value allowed object is {@link OrganizationDescriptiveMetadataType - * } - */ - public void setOrganizationDescriptiveMetadata(OrganizationDescriptiveMetadataType value) { - this.organizationDescriptiveMetadata = value; - } + /** + * Sets the value of the identifier property. + * + * @param value allowed object is {@link IdentifierType } + */ + public void setIdentifier(IdentifierType value) { + this.identifier = value; + } - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** + * Gets the value of the organizationDescriptiveMetadata property. + * + * @return possible object is {@link OrganizationDescriptiveMetadataType } + */ + public OrganizationDescriptiveMetadataType getOrganizationDescriptiveMetadata() { + return organizationDescriptiveMetadata; + } - /** - * Sets the value of the id property. - * - * @param value allowed object is {@link String } - */ - public void setId(String value) { - this.id = value; - } + /** + * Sets the value of the organizationDescriptiveMetadata property. + * + * @param value allowed object is {@link OrganizationDescriptiveMetadataType } + */ + public void setOrganizationDescriptiveMetadata(OrganizationDescriptiveMetadataType value) { + this.organizationDescriptiveMetadata = value; + } + /** + * Gets the value of the id property. + * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link String } + */ + public void setId(String value) { + this.id = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/PhysicalDataObjectType.java b/src/main/java/org/afnor/medona/v1/PhysicalDataObjectType.java index 05fb521..296bcfa 100644 --- a/src/main/java/org/afnor/medona/v1/PhysicalDataObjectType.java +++ b/src/main/java/org/afnor/medona/v1/PhysicalDataObjectType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for PhysicalDataObjectType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="PhysicalDataObjectType">
@@ -31,34 +30,30 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "PhysicalDataObjectType", propOrder = { - "size" -}) -public class PhysicalDataObjectType - extends DataObjectType { +@XmlType( + name = "PhysicalDataObjectType", + propOrder = {"size"}) +public class PhysicalDataObjectType extends DataObjectType { - /** - * The Size. - */ - @XmlElement(name = "Size", required = true) - protected MeasureType size; + /** The Size. */ + @XmlElement(name = "Size", required = true) + protected MeasureType size; - /** - * Gets the value of the size property. - * - * @return possible object is {@link MeasureType } - */ - public MeasureType getSize() { - return size; - } - - /** - * Sets the value of the size property. - * - * @param value allowed object is {@link MeasureType } - */ - public void setSize(MeasureType value) { - this.size = value; - } + /** + * Gets the value of the size property. + * + * @return possible object is {@link MeasureType } + */ + public MeasureType getSize() { + return size; + } + /** + * Sets the value of the size property. + * + * @param value allowed object is {@link MeasureType } + */ + public void setSize(MeasureType value) { + this.size = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/RelationshipType.java b/src/main/java/org/afnor/medona/v1/RelationshipType.java index 31dfd85..f03e139 100644 --- a/src/main/java/org/afnor/medona/v1/RelationshipType.java +++ b/src/main/java/org/afnor/medona/v1/RelationshipType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.afnor.medona.v1; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for RelationshipType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="RelationshipType">
@@ -32,55 +31,51 @@
 @XmlType(name = "RelationshipType")
 public class RelationshipType {
 
-    /**
-     * The Target.
-     */
-    @XmlAttribute(name = "target", required = true)
-    @XmlIDREF
-    @XmlSchemaType(name = "IDREF")
-    protected Object target;
-    /**
-     * The Type.
-     */
-    @XmlAttribute(name = "type", required = true)
-    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
-    @XmlSchemaType(name = "token")
-    protected String type;
+  /** The Target. */
+  @XmlAttribute(name = "target", required = true)
+  @XmlIDREF
+  @XmlSchemaType(name = "IDREF")
+  protected Object target;
 
-    /**
-     * Gets the value of the target property.
-     *
-     * @return possible object is {@link Object }
-     */
-    public Object getTarget() {
-        return target;
-    }
+  /** The Type. */
+  @XmlAttribute(name = "type", required = true)
+  @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+  @XmlSchemaType(name = "token")
+  protected String type;
 
-    /**
-     * Sets the value of the target property.
-     *
-     * @param value allowed object is {@link Object }
-     */
-    public void setTarget(Object value) {
-        this.target = value;
-    }
+  /**
+   * Gets the value of the target property.
+   *
+   * @return possible object is {@link Object }
+   */
+  public Object getTarget() {
+    return target;
+  }
 
-    /**
-     * Gets the value of the type property.
-     *
-     * @return possible object is {@link String }
-     */
-    public String getType() {
-        return type;
-    }
+  /**
+   * Sets the value of the target property.
+   *
+   * @param value allowed object is {@link Object }
+   */
+  public void setTarget(Object value) {
+    this.target = value;
+  }
 
-    /**
-     * 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 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/afnor/medona/v1/SignatureType.java b/src/main/java/org/afnor/medona/v1/SignatureType.java
index d83b5f1..842bc1d 100644
--- a/src/main/java/org/afnor/medona/v1/SignatureType.java
+++ b/src/main/java/org/afnor/medona/v1/SignatureType.java
@@ -1,8 +1,9 @@
 //
-// 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: 2019.09.15 at 07:07:47 PM CEST 
+// 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: 2019.09.15 at 07:07:47 PM CEST
 //
 package org.afnor.medona.v1;
 
@@ -11,11 +12,9 @@
 import jakarta.xml.bind.annotation.XmlType;
 
 /**
- * 

* Java class for SignatureType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="SignatureType">
@@ -28,7 +27,4 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "SignatureType")
-public class SignatureType
-        extends OpenType {
-
-}
+public class SignatureType extends OpenType {}
diff --git a/src/main/java/org/afnor/medona/v1/TextType.java b/src/main/java/org/afnor/medona/v1/TextType.java
index 2cd029d..673a24b 100644
--- a/src/main/java/org/afnor/medona/v1/TextType.java
+++ b/src/main/java/org/afnor/medona/v1/TextType.java
@@ -1,19 +1,18 @@
 //
-// 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: 2019.09.15 at 07:07:47 PM CEST 
+// 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: 2019.09.15 at 07:07:47 PM CEST
 //
 package org.afnor.medona.v1;
 
 import jakarta.xml.bind.annotation.*;
 
 /**
- * 

* Java class for TextType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="TextType">
@@ -26,56 +25,51 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "TextType", propOrder = { - "value" -}) +@XmlType( + name = "TextType", + propOrder = {"value"}) public class TextType { - /** - * The Value. - */ - @XmlValue - protected String value; - /** - * The Lang. - */ - @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") - protected String lang; + /** The Value. */ + @XmlValue protected String value; - /** - * Gets the value of the value property. - * - * @return possible object is {@link String } - */ - public String getValue() { - return value; - } + /** The Lang. */ + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; - /** - * 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 value property. + * + * @return possible object is {@link String } + */ + public String getValue() { + return value; + } - /** - * Gets the value of the lang property. - * - * @return possible object is {@link String } - */ - public String getLang() { - return lang; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link String } + */ + public void setValue(String value) { + this.value = value; + } - /** - * Sets the value of the lang property. - * - * @param value allowed object is {@link String } - */ - public void setLang(String value) { - this.lang = value; - } + /** + * Gets the value of the lang property. + * + * @return possible object is {@link String } + */ + public String getLang() { + return lang; + } + /** + * Sets the value of the lang property. + * + * @param value allowed object is {@link String } + */ + public void setLang(String value) { + this.lang = value; + } } diff --git a/src/main/java/org/afnor/medona/v1/package-info.java b/src/main/java/org/afnor/medona/v1/package-info.java index 7e6271e..11a21d4 100644 --- a/src/main/java/org/afnor/medona/v1/package-info.java +++ b/src/main/java/org/afnor/medona/v1/package-info.java @@ -1,8 +1,11 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // -@jakarta.xml.bind.annotation.XmlSchema(namespace = "org:afnor:medona:v1.0", elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED) +@jakarta.xml.bind.annotation.XmlSchema( + namespace = "org:afnor:medona:v1.0", + elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED) package org.afnor.medona.v1; diff --git a/src/main/java/org/fntc/ta/v4/AccessRuleType.java b/src/main/java/org/fntc/ta/v4/AccessRuleType.java index cfd6bd0..94e5615 100644 --- a/src/main/java/org/fntc/ta/v4/AccessRuleType.java +++ b/src/main/java/org/fntc/ta/v4/AccessRuleType.java @@ -1,23 +1,21 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.fntc.ta.v4; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for AccessRuleType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="AccessRuleType">
@@ -34,86 +32,80 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AccessRuleType", propOrder = { - "rule", - "startDate" -}) +@XmlType( + name = "AccessRuleType", + propOrder = {"rule", "startDate"}) public class AccessRuleType { - /** - * The Rule. - */ - @XmlElement(name = "Rule") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String rule; - /** - * The Start date. - */ - @XmlElement(name = "StartDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar startDate; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + /** The Rule. */ + @XmlElement(name = "Rule") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String rule; + + /** The Start date. */ + @XmlElement(name = "StartDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar startDate; - /** - * Gets the value of the rule property. - * - * @return possible object is {@link String } - */ - public String getRule() { - return rule; - } + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Sets the value of the rule property. - * - * @param value allowed object is {@link String } - */ - public void setRule(String value) { - this.rule = value; - } + /** + * Gets the value of the rule property. + * + * @return possible object is {@link String } + */ + public String getRule() { + return rule; + } - /** - * Gets the value of the startDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getStartDate() { - return startDate; - } + /** + * Sets the value of the rule property. + * + * @param value allowed object is {@link String } + */ + public void setRule(String value) { + this.rule = value; + } - /** - * Sets the value of the startDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setStartDate(XMLGregorianCalendar value) { - this.startDate = value; - } + /** + * Gets the value of the startDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getStartDate() { + return startDate; + } - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** + * Sets the value of the startDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setStartDate(XMLGregorianCalendar value) { + this.startDate = value; + } - /** - * 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 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/org/fntc/ta/v4/AppraisalRuleType.java b/src/main/java/org/fntc/ta/v4/AppraisalRuleType.java index 5c822aa..bf401b9 100644 --- a/src/main/java/org/fntc/ta/v4/AppraisalRuleType.java +++ b/src/main/java/org/fntc/ta/v4/AppraisalRuleType.java @@ -1,24 +1,22 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.fntc.ta.v4; import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - import javax.xml.datatype.Duration; import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for AppraisalRuleType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="AppraisalRuleType">
@@ -36,110 +34,102 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AppraisalRuleType", propOrder = { - "appraisalCode", - "duration", - "startDate" -}) +@XmlType( + name = "AppraisalRuleType", + propOrder = {"appraisalCode", "duration", "startDate"}) public class AppraisalRuleType { - /** - * The Appraisal code. - */ - @XmlElement(name = "AppraisalCode") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlSchemaType(name = "token") - protected String appraisalCode; - /** - * The Duration. - */ - @XmlElement(name = "Duration") - protected Duration duration; - /** - * The Start date. - */ - @XmlElement(name = "StartDate") - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar startDate; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; + /** The Appraisal code. */ + @XmlElement(name = "AppraisalCode") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlSchemaType(name = "token") + protected String appraisalCode; + + /** The Duration. */ + @XmlElement(name = "Duration") + protected Duration duration; + + /** The Start date. */ + @XmlElement(name = "StartDate") + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar startDate; - /** - * Gets the value of the appraisalCode property. - * - * @return possible object is {@link String } - */ - public String getAppraisalCode() { - return appraisalCode; - } + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Sets the value of the appraisalCode property. - * - * @param value allowed object is {@link String } - */ - public void setAppraisalCode(String value) { - this.appraisalCode = value; - } + /** + * Gets the value of the appraisalCode property. + * + * @return possible object is {@link String } + */ + public String getAppraisalCode() { + return appraisalCode; + } - /** - * Gets the value of the duration property. - * - * @return possible object is {@link Duration } - */ - public Duration getDuration() { - return duration; - } + /** + * Sets the value of the appraisalCode property. + * + * @param value allowed object is {@link String } + */ + public void setAppraisalCode(String value) { + this.appraisalCode = value; + } - /** - * Sets the value of the duration property. - * - * @param value allowed object is {@link Duration } - */ - public void setDuration(Duration value) { - this.duration = value; - } + /** + * Gets the value of the duration property. + * + * @return possible object is {@link Duration } + */ + public Duration getDuration() { + return duration; + } - /** - * Gets the value of the startDate property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getStartDate() { - return startDate; - } + /** + * Sets the value of the duration property. + * + * @param value allowed object is {@link Duration } + */ + public void setDuration(Duration value) { + this.duration = value; + } - /** - * Sets the value of the startDate property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setStartDate(XMLGregorianCalendar value) { - this.startDate = value; - } + /** + * Gets the value of the startDate property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getStartDate() { + return startDate; + } - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** + * Sets the value of the startDate property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setStartDate(XMLGregorianCalendar value) { + this.startDate = value; + } - /** - * 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 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/org/fntc/ta/v4/ArchiveUnitType.java b/src/main/java/org/fntc/ta/v4/ArchiveUnitType.java index 92cf21a..337598b 100644 --- a/src/main/java/org/fntc/ta/v4/ArchiveUnitType.java +++ b/src/main/java/org/fntc/ta/v4/ArchiveUnitType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.fntc.ta.v4; @@ -10,18 +11,15 @@ import jakarta.xml.bind.annotation.*; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - import java.util.ArrayList; import java.util.List; /** * Unité de base des métadonnées de description contenant la gestion de l'arborescence. * - *

- * Java class for ArchiveUnitType complex type. + *

Java class for ArchiveUnitType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ArchiveUnitType">
@@ -50,203 +48,183 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveUnitType", propOrder = { - "management", - "content", - "archiveUnit", - "dataObjectReference" -}) +@XmlType( + name = "ArchiveUnitType", + propOrder = {"management", "content", "archiveUnit", "dataObjectReference"}) public class ArchiveUnitType { - /** - * The Management. - */ - @XmlElement(name = "Management") - protected ManagementType management; - /** - * The Content. - */ - @XmlElement(name = "Content") - protected DescriptiveMetadataContentType content; - /** - * The Archive unit. - */ - @XmlElement(name = "ArchiveUnit") - protected List archiveUnit; - /** - * The Data object reference. - */ - @XmlElement(name = "DataObjectReference") - protected ArchiveUnitType.DataObjectReference dataObjectReference; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace", required = true) - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - - /** - * Gets the value of the management property. - * - * @return possible object is {@link ManagementType } - */ - public ManagementType getManagement() { - return management; - } - - /** - * Sets the value of the management property. - * - * @param value allowed object is {@link ManagementType } - */ - public void setManagement(ManagementType value) { - this.management = value; + /** The Management. */ + @XmlElement(name = "Management") + protected ManagementType management; + + /** The Content. */ + @XmlElement(name = "Content") + protected DescriptiveMetadataContentType content; + + /** The Archive unit. */ + @XmlElement(name = "ArchiveUnit") + protected List archiveUnit; + + /** The Data object reference. */ + @XmlElement(name = "DataObjectReference") + protected ArchiveUnitType.DataObjectReference dataObjectReference; + + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace", required = true) + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; + + /** + * Gets the value of the management property. + * + * @return possible object is {@link ManagementType } + */ + public ManagementType getManagement() { + return management; + } + + /** + * Sets the value of the management property. + * + * @param value allowed object is {@link ManagementType } + */ + public void setManagement(ManagementType value) { + this.management = value; + } + + /** + * Gets the value of the content property. + * + * @return possible object is {@link DescriptiveMetadataContentType } + */ + public DescriptiveMetadataContentType getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value allowed object is {@link DescriptiveMetadataContentType } + */ + public void setContent(DescriptiveMetadataContentType value) { + this.content = value; + } + + /** + * Gets the value of the archiveUnit 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 archiveUnit property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getArchiveUnit().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link ArchiveUnitType }* + * + * @return the archive unit + */ + public List getArchiveUnit() { + if (archiveUnit == null) { + archiveUnit = new ArrayList(); } + return this.archiveUnit; + } + + /** + * Gets the value of the dataObjectReference property. + * + * @return possible object is {@link ArchiveUnitType.DataObjectReference } + */ + public ArchiveUnitType.DataObjectReference getDataObjectReference() { + return dataObjectReference; + } + + /** + * Sets the value of the dataObjectReference property. + * + * @param value allowed object is {@link ArchiveUnitType.DataObjectReference } + */ + public void setDataObjectReference(ArchiveUnitType.DataObjectReference value) { + this.dataObjectReference = 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; + } + + /** + * 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="DataObjectReferenceId" type="{org:fntc:ta:v4.0}DataObjectRefIdType" maxOccurs="unbounded"/>
+   *       </sequence>
+   *     </restriction>
+   *   </complexContent>
+   * </complexType>
+   * 
+ */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType( + name = "", + propOrder = {"dataObjectReferenceId"}) + public static class DataObjectReference { + + /** The Data object reference id. */ + @XmlElementRef( + name = "DataObjectReferenceId", + namespace = "org:fntc:ta:v4.0", + type = JAXBElement.class) + protected List> dataObjectReferenceId; /** - * Gets the value of the content property. + * Gets the value of the dataObjectReferenceId property. * - * @return possible object is {@link DescriptiveMetadataContentType } - */ - public DescriptiveMetadataContentType getContent() { - return content; - } - - /** - * Sets the value of the content property. + *

This accessor method returns a reference to the live list, not a snapshot. Therefore any + * modification you make to the returned list will be present inside the JAXB object. This is + * why there is not a set method for the dataObjectReferenceId property. * - * @param value allowed object is {@link DescriptiveMetadataContentType } - */ - public void setContent(DescriptiveMetadataContentType value) { - this.content = value; - } - - /** - * Gets the value of the archiveUnit 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 archiveUnit property. + *

For example, to add a new item, do as follows: * - *

- * For example, to add a new item, do as follows: *

-     *    getArchiveUnit().add(newItem);
+     *    getDataObjectReferenceId().add(newItem);
      * 
* + *

Objects of the following type(s) are allowed in the list {@link JAXBElement }{@code + * <}{@link Object }{@code >} * - *

- * Objects of the following type(s) are allowed in the list {@link ArchiveUnitType - * }* - * - * @return the archive unit + * @return the data object reference id */ - public List getArchiveUnit() { - if (archiveUnit == null) { - archiveUnit = new ArrayList(); - } - return this.archiveUnit; + public List> getDataObjectReferenceId() { + if (dataObjectReferenceId == null) { + dataObjectReferenceId = new ArrayList>(); + } + return this.dataObjectReferenceId; } - - /** - * Gets the value of the dataObjectReference property. - * - * @return possible object is {@link ArchiveUnitType.DataObjectReference } - */ - public ArchiveUnitType.DataObjectReference getDataObjectReference() { - return dataObjectReference; - } - - /** - * Sets the value of the dataObjectReference property. - * - * @param value allowed object is {@link ArchiveUnitType.DataObjectReference - * } - */ - public void setDataObjectReference(ArchiveUnitType.DataObjectReference value) { - this.dataObjectReference = 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; - } - - /** - *

- * 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="DataObjectReferenceId" type="{org:fntc:ta:v4.0}DataObjectRefIdType" maxOccurs="unbounded"/>
-     *       </sequence>
-     *     </restriction>
-     *   </complexContent>
-     * </complexType>
-     * 
- */ - @XmlAccessorType(XmlAccessType.FIELD) - @XmlType(name = "", propOrder = { - "dataObjectReferenceId" - }) - public static class DataObjectReference { - - /** - * The Data object reference id. - */ - @XmlElementRef(name = "DataObjectReferenceId", namespace = "org:fntc:ta:v4.0", type = JAXBElement.class) - protected List> dataObjectReferenceId; - - /** - * Gets the value of the dataObjectReferenceId 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 dataObjectReferenceId property. - * - *

- * For example, to add a new item, do as follows: - *

-         *    getDataObjectReferenceId().add(newItem);
-         * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link JAXBElement }{@code <}{@link Object }{@code >} - * - * @return the data object reference id - */ - public List> getDataObjectReferenceId() { - if (dataObjectReferenceId == null) { - dataObjectReferenceId = new ArrayList>(); - } - return this.dataObjectReferenceId; - } - - } - + } } diff --git a/src/main/java/org/fntc/ta/v4/ArchiveUnitsType.java b/src/main/java/org/fntc/ta/v4/ArchiveUnitsType.java index c95e899..6e627e2 100644 --- a/src/main/java/org/fntc/ta/v4/ArchiveUnitsType.java +++ b/src/main/java/org/fntc/ta/v4/ArchiveUnitsType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.fntc.ta.v4; @@ -10,18 +11,15 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** * Un élement ArchiveUnits peut contenir plusieurs ArchiveUnit. * - *

- * Java class for ArchiveUnitsType complex type. + *

Java class for ArchiveUnitsType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ArchiveUnitsType">
@@ -36,43 +34,36 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ArchiveUnitsType", propOrder = { - "archiveUnit" -}) +@XmlType( + name = "ArchiveUnitsType", + propOrder = {"archiveUnit"}) public class ArchiveUnitsType { - /** - * The Archive unit. - */ - @XmlElement(name = "ArchiveUnit") - protected List archiveUnit; + /** The Archive unit. */ + @XmlElement(name = "ArchiveUnit") + protected List archiveUnit; - /** - * Gets the value of the archiveUnit 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 archiveUnit property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getArchiveUnit().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link ArchiveUnitType - * }* - * - * @return the archive unit - */ - public List getArchiveUnit() { - if (archiveUnit == null) { - archiveUnit = new ArrayList(); - } - return this.archiveUnit; + /** + * Gets the value of the archiveUnit 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 archiveUnit property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getArchiveUnit().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link ArchiveUnitType }* + * + * @return the archive unit + */ + public List getArchiveUnit() { + if (archiveUnit == null) { + archiveUnit = new ArrayList(); } - + return this.archiveUnit; + } } diff --git a/src/main/java/org/fntc/ta/v4/DescriptiveMetadataContentType.java b/src/main/java/org/fntc/ta/v4/DescriptiveMetadataContentType.java index d5d2a55..e5bbf4a 100644 --- a/src/main/java/org/fntc/ta/v4/DescriptiveMetadataContentType.java +++ b/src/main/java/org/fntc/ta/v4/DescriptiveMetadataContentType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.fntc.ta.v4; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for DescriptiveMetadataContentType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="DescriptiveMetadataContentType">
@@ -42,670 +40,605 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DescriptiveMetadataContentType", propOrder = { - "descriptionLevel", - "title", - "filePlanPosition", - "systemId", - "dataObjectSystemId", - "originatingSystemId", - "archivalAgencyArchiveUnitIdentifier", - "originatingAgencyArchiveUnitIdentifier", - "transferringAgencyArchiveUnitIdentifier", - "physicalId", - "description", - "documentType", - "tag", - "status", - "createdDate", - "transactedDate", - "acquiredDate", - "sentDate", - "receivedDate", - "registeredDate", - "startDate", - "endDate", - "extended" -}) +@XmlType( + name = "DescriptiveMetadataContentType", + propOrder = { + "descriptionLevel", + "title", + "filePlanPosition", + "systemId", + "dataObjectSystemId", + "originatingSystemId", + "archivalAgencyArchiveUnitIdentifier", + "originatingAgencyArchiveUnitIdentifier", + "transferringAgencyArchiveUnitIdentifier", + "physicalId", + "description", + "documentType", + "tag", + "status", + "createdDate", + "transactedDate", + "acquiredDate", + "sentDate", + "receivedDate", + "registeredDate", + "startDate", + "endDate", + "extended" + }) public class DescriptiveMetadataContentType { - /** - * The Description level. - */ - @XmlElement(name = "DescriptionLevel") - protected TextType descriptionLevel; - /** - * The Title. - */ - @XmlElement(name = "Title") - protected List title; - /** - * The File plan position. - */ - @XmlElement(name = "FilePlanPosition") - protected List filePlanPosition; - /** - * The System id. - */ - @XmlElement(name = "SystemId") - protected List systemId; - /** - * The Data object system id. - */ - @XmlElement(name = "DataObjectSystemId") - protected List dataObjectSystemId; - /** - * The Originating system id. - */ - @XmlElement(name = "OriginatingSystemId") - protected List originatingSystemId; - /** - * The Archival agency archive unit identifier. - */ - @XmlElement(name = "ArchivalAgencyArchiveUnitIdentifier") - protected List archivalAgencyArchiveUnitIdentifier; - /** - * The Originating agency archive unit identifier. - */ - @XmlElement(name = "OriginatingAgencyArchiveUnitIdentifier") - protected List originatingAgencyArchiveUnitIdentifier; - /** - * The Transferring agency archive unit identifier. - */ - @XmlElement(name = "TransferringAgencyArchiveUnitIdentifier") - protected List transferringAgencyArchiveUnitIdentifier; - /** - * The Physical id. - */ - @XmlElement(name = "PhysicalId") - protected List physicalId; - /** - * The Description. - */ - @XmlElement(name = "Description") - protected List description; - /** - * The Document type. - */ - @XmlElement(name = "DocumentType") - protected TextType documentType; - /** - * The Tag. - */ - @XmlElement(name = "Tag") - protected List tag; - /** - * The Status. - */ - @XmlElement(name = "Status") - protected TextType status; - /** - * The Created date. - */ - @XmlElement(name = "CreatedDate") - protected String createdDate; - /** - * The Transacted date. - */ - @XmlElement(name = "TransactedDate") - protected String transactedDate; - /** - * The Acquired date. - */ - @XmlElement(name = "AcquiredDate") - protected String acquiredDate; - /** - * The Sent date. - */ - @XmlElement(name = "SentDate") - protected String sentDate; - /** - * The Received date. - */ - @XmlElement(name = "ReceivedDate") - protected String receivedDate; - /** - * The Registered date. - */ - @XmlElement(name = "RegisteredDate") - protected String registeredDate; - /** - * The Start date. - */ - @XmlElement(name = "StartDate") - protected String startDate; - /** - * The End date. - */ - @XmlElement(name = "EndDate") - protected String endDate; - /** - * The Extended. - */ - @XmlElement(name = "Extended") - protected ExtendedType extended; - - /** - * Gets the value of the descriptionLevel property. - * - * @return possible object is {@link TextType } - */ - public TextType getDescriptionLevel() { - return descriptionLevel; - } - - /** - * Sets the value of the descriptionLevel property. - * - * @param value allowed object is {@link TextType } - */ - public void setDescriptionLevel(TextType value) { - this.descriptionLevel = value; - } - - /** - * Gets the value of the title 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 title property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTitle().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the title - */ - public List getTitle() { - if (title == null) { - title = new ArrayList(); - } - return this.title; - } - - /** - * Gets the value of the filePlanPosition 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 filePlanPosition property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getFilePlanPosition().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the file plan position - */ - public List getFilePlanPosition() { - if (filePlanPosition == null) { - filePlanPosition = new ArrayList(); - } - return this.filePlanPosition; - } - - /** - * Gets the value of the systemId 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 systemId property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getSystemId().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the system id - */ - public List getSystemId() { - if (systemId == null) { - systemId = new ArrayList(); - } - return this.systemId; - } - - /** - * Gets the value of the dataObjectSystemId 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 dataObjectSystemId property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getDataObjectSystemId().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the data object system id - */ - public List getDataObjectSystemId() { - if (dataObjectSystemId == null) { - dataObjectSystemId = new ArrayList(); - } - return this.dataObjectSystemId; - } - - /** - * Gets the value of the originatingSystemId 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 originatingSystemId property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getOriginatingSystemId().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the originating system id - */ - public List getOriginatingSystemId() { - if (originatingSystemId == null) { - originatingSystemId = new ArrayList(); - } - return this.originatingSystemId; - } - - /** - * Gets the value of the archivalAgencyArchiveUnitIdentifier 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 archivalAgencyArchiveUnitIdentifier property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getArchivalAgencyArchiveUnitIdentifier().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the archival agency archive unit identifier - */ - public List getArchivalAgencyArchiveUnitIdentifier() { - if (archivalAgencyArchiveUnitIdentifier == null) { - archivalAgencyArchiveUnitIdentifier = new ArrayList(); - } - return this.archivalAgencyArchiveUnitIdentifier; - } - - /** - * Gets the value of the originatingAgencyArchiveUnitIdentifier 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 originatingAgencyArchiveUnitIdentifier property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getOriginatingAgencyArchiveUnitIdentifier().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the originating agency archive unit identifier - */ - public List getOriginatingAgencyArchiveUnitIdentifier() { - if (originatingAgencyArchiveUnitIdentifier == null) { - originatingAgencyArchiveUnitIdentifier = new ArrayList(); - } - return this.originatingAgencyArchiveUnitIdentifier; - } - - /** - * Gets the value of the transferringAgencyArchiveUnitIdentifier 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 transferringAgencyArchiveUnitIdentifier property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTransferringAgencyArchiveUnitIdentifier().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the transferring agency archive unit identifier - */ - public List getTransferringAgencyArchiveUnitIdentifier() { - if (transferringAgencyArchiveUnitIdentifier == null) { - transferringAgencyArchiveUnitIdentifier = new ArrayList(); - } - return this.transferringAgencyArchiveUnitIdentifier; - } - - /** - * Gets the value of the physicalId 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 physicalId property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getPhysicalId().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the physical id - */ - public List getPhysicalId() { - if (physicalId == null) { - physicalId = new ArrayList(); - } - return this.physicalId; - } - - /** - * Gets the value of the description 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 description property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getDescription().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TextType - * }* - * - * @return the description - */ - public List getDescription() { - if (description == null) { - description = new ArrayList(); - } - return this.description; - } - - /** - * Gets the value of the documentType property. - * - * @return possible object is {@link TextType } - */ - public TextType getDocumentType() { - return documentType; - } - - /** - * Sets the value of the documentType property. - * - * @param value allowed object is {@link TextType } - */ - public void setDocumentType(TextType value) { - this.documentType = value; - } - - /** - * Gets the value of the tag 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 tag property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTag().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link TagType } - * - * @return the tag - */ - public List getTag() { - if (tag == null) { - tag = new ArrayList(); - } - return this.tag; - } - - /** - * Gets the value of the status property. - * - * @return possible object is {@link TextType } - */ - public TextType getStatus() { - return status; - } - - /** - * Sets the value of the status property. - * - * @param value allowed object is {@link TextType } - */ - public void setStatus(TextType value) { - this.status = value; - } - - /** - * Gets the value of the createdDate property. - * - * @return possible object is {@link String } - */ - public String getCreatedDate() { - return createdDate; - } - - /** - * Sets the value of the createdDate property. - * - * @param value allowed object is {@link String } - */ - public void setCreatedDate(String value) { - this.createdDate = value; - } - - /** - * Gets the value of the transactedDate property. - * - * @return possible object is {@link String } - */ - public String getTransactedDate() { - return transactedDate; - } - - /** - * Sets the value of the transactedDate property. - * - * @param value allowed object is {@link String } - */ - public void setTransactedDate(String value) { - this.transactedDate = value; - } - - /** - * Gets the value of the acquiredDate property. - * - * @return possible object is {@link String } - */ - public String getAcquiredDate() { - return acquiredDate; - } - - /** - * Sets the value of the acquiredDate property. - * - * @param value allowed object is {@link String } - */ - public void setAcquiredDate(String value) { - this.acquiredDate = value; - } - - /** - * Gets the value of the sentDate property. - * - * @return possible object is {@link String } - */ - public String getSentDate() { - return sentDate; - } - - /** - * Sets the value of the sentDate property. - * - * @param value allowed object is {@link String } - */ - public void setSentDate(String value) { - this.sentDate = value; - } - - /** - * Gets the value of the receivedDate property. - * - * @return possible object is {@link String } - */ - public String getReceivedDate() { - return receivedDate; - } - - /** - * Sets the value of the receivedDate property. - * - * @param value allowed object is {@link String } - */ - public void setReceivedDate(String value) { - this.receivedDate = value; - } - - /** - * Gets the value of the registeredDate property. - * - * @return possible object is {@link String } - */ - public String getRegisteredDate() { - return registeredDate; - } - - /** - * Sets the value of the registeredDate property. - * - * @param value allowed object is {@link String } - */ - public void setRegisteredDate(String value) { - this.registeredDate = value; - } - - /** - * Gets the value of the startDate property. - * - * @return possible object is {@link String } - */ - public String getStartDate() { - return startDate; - } - - /** - * Sets the value of the startDate property. - * - * @param value allowed object is {@link String } - */ - public void setStartDate(String value) { - this.startDate = value; - } - - /** - * Gets the value of the endDate property. - * - * @return possible object is {@link String } - */ - public String getEndDate() { - return endDate; - } - - /** - * Sets the value of the endDate property. - * - * @param value allowed object is {@link String } - */ - public void setEndDate(String value) { - this.endDate = value; - } - - /** - * Gets the value of the extended property. - * - * @return possible object is {@link ExtendedType } - */ - public ExtendedType getExtended() { - return extended; - } - - /** - * Sets the value of the extended property. - * - * @param value allowed object is {@link ExtendedType } - */ - public void setExtended(ExtendedType value) { - this.extended = value; - } - + /** The Description level. */ + @XmlElement(name = "DescriptionLevel") + protected TextType descriptionLevel; + + /** The Title. */ + @XmlElement(name = "Title") + protected List title; + + /** The File plan position. */ + @XmlElement(name = "FilePlanPosition") + protected List filePlanPosition; + + /** The System id. */ + @XmlElement(name = "SystemId") + protected List systemId; + + /** The Data object system id. */ + @XmlElement(name = "DataObjectSystemId") + protected List dataObjectSystemId; + + /** The Originating system id. */ + @XmlElement(name = "OriginatingSystemId") + protected List originatingSystemId; + + /** The Archival agency archive unit identifier. */ + @XmlElement(name = "ArchivalAgencyArchiveUnitIdentifier") + protected List archivalAgencyArchiveUnitIdentifier; + + /** The Originating agency archive unit identifier. */ + @XmlElement(name = "OriginatingAgencyArchiveUnitIdentifier") + protected List originatingAgencyArchiveUnitIdentifier; + + /** The Transferring agency archive unit identifier. */ + @XmlElement(name = "TransferringAgencyArchiveUnitIdentifier") + protected List transferringAgencyArchiveUnitIdentifier; + + /** The Physical id. */ + @XmlElement(name = "PhysicalId") + protected List physicalId; + + /** The Description. */ + @XmlElement(name = "Description") + protected List description; + + /** The Document type. */ + @XmlElement(name = "DocumentType") + protected TextType documentType; + + /** The Tag. */ + @XmlElement(name = "Tag") + protected List tag; + + /** The Status. */ + @XmlElement(name = "Status") + protected TextType status; + + /** The Created date. */ + @XmlElement(name = "CreatedDate") + protected String createdDate; + + /** The Transacted date. */ + @XmlElement(name = "TransactedDate") + protected String transactedDate; + + /** The Acquired date. */ + @XmlElement(name = "AcquiredDate") + protected String acquiredDate; + + /** The Sent date. */ + @XmlElement(name = "SentDate") + protected String sentDate; + + /** The Received date. */ + @XmlElement(name = "ReceivedDate") + protected String receivedDate; + + /** The Registered date. */ + @XmlElement(name = "RegisteredDate") + protected String registeredDate; + + /** The Start date. */ + @XmlElement(name = "StartDate") + protected String startDate; + + /** The End date. */ + @XmlElement(name = "EndDate") + protected String endDate; + + /** The Extended. */ + @XmlElement(name = "Extended") + protected ExtendedType extended; + + /** + * Gets the value of the descriptionLevel property. + * + * @return possible object is {@link TextType } + */ + public TextType getDescriptionLevel() { + return descriptionLevel; + } + + /** + * Sets the value of the descriptionLevel property. + * + * @param value allowed object is {@link TextType } + */ + public void setDescriptionLevel(TextType value) { + this.descriptionLevel = value; + } + + /** + * Gets the value of the title 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 title property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getTitle().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the title + */ + public List getTitle() { + if (title == null) { + title = new ArrayList(); + } + return this.title; + } + + /** + * Gets the value of the filePlanPosition 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 filePlanPosition property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getFilePlanPosition().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the file plan position + */ + public List getFilePlanPosition() { + if (filePlanPosition == null) { + filePlanPosition = new ArrayList(); + } + return this.filePlanPosition; + } + + /** + * Gets the value of the systemId 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 systemId property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getSystemId().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the system id + */ + public List getSystemId() { + if (systemId == null) { + systemId = new ArrayList(); + } + return this.systemId; + } + + /** + * Gets the value of the dataObjectSystemId 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 dataObjectSystemId property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getDataObjectSystemId().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the data object system id + */ + public List getDataObjectSystemId() { + if (dataObjectSystemId == null) { + dataObjectSystemId = new ArrayList(); + } + return this.dataObjectSystemId; + } + + /** + * Gets the value of the originatingSystemId 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 originatingSystemId property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getOriginatingSystemId().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the originating system id + */ + public List getOriginatingSystemId() { + if (originatingSystemId == null) { + originatingSystemId = new ArrayList(); + } + return this.originatingSystemId; + } + + /** + * Gets the value of the archivalAgencyArchiveUnitIdentifier 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 archivalAgencyArchiveUnitIdentifier property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getArchivalAgencyArchiveUnitIdentifier().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the archival agency archive unit identifier + */ + public List getArchivalAgencyArchiveUnitIdentifier() { + if (archivalAgencyArchiveUnitIdentifier == null) { + archivalAgencyArchiveUnitIdentifier = new ArrayList(); + } + return this.archivalAgencyArchiveUnitIdentifier; + } + + /** + * Gets the value of the originatingAgencyArchiveUnitIdentifier 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 originatingAgencyArchiveUnitIdentifier property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getOriginatingAgencyArchiveUnitIdentifier().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the originating agency archive unit identifier + */ + public List getOriginatingAgencyArchiveUnitIdentifier() { + if (originatingAgencyArchiveUnitIdentifier == null) { + originatingAgencyArchiveUnitIdentifier = new ArrayList(); + } + return this.originatingAgencyArchiveUnitIdentifier; + } + + /** + * Gets the value of the transferringAgencyArchiveUnitIdentifier 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 transferringAgencyArchiveUnitIdentifier + * property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getTransferringAgencyArchiveUnitIdentifier().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the transferring agency archive unit identifier + */ + public List getTransferringAgencyArchiveUnitIdentifier() { + if (transferringAgencyArchiveUnitIdentifier == null) { + transferringAgencyArchiveUnitIdentifier = new ArrayList(); + } + return this.transferringAgencyArchiveUnitIdentifier; + } + + /** + * Gets the value of the physicalId 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 physicalId property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getPhysicalId().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the physical id + */ + public List getPhysicalId() { + if (physicalId == null) { + physicalId = new ArrayList(); + } + return this.physicalId; + } + + /** + * Gets the value of the description 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 description property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getDescription().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TextType }* + * + * @return the description + */ + public List getDescription() { + if (description == null) { + description = new ArrayList(); + } + return this.description; + } + + /** + * Gets the value of the documentType property. + * + * @return possible object is {@link TextType } + */ + public TextType getDocumentType() { + return documentType; + } + + /** + * Sets the value of the documentType property. + * + * @param value allowed object is {@link TextType } + */ + public void setDocumentType(TextType value) { + this.documentType = value; + } + + /** + * Gets the value of the tag 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 tag property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getTag().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TagType } + * + * @return the tag + */ + public List getTag() { + if (tag == null) { + tag = new ArrayList(); + } + return this.tag; + } + + /** + * Gets the value of the status property. + * + * @return possible object is {@link TextType } + */ + public TextType getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value allowed object is {@link TextType } + */ + public void setStatus(TextType value) { + this.status = value; + } + + /** + * Gets the value of the createdDate property. + * + * @return possible object is {@link String } + */ + public String getCreatedDate() { + return createdDate; + } + + /** + * Sets the value of the createdDate property. + * + * @param value allowed object is {@link String } + */ + public void setCreatedDate(String value) { + this.createdDate = value; + } + + /** + * Gets the value of the transactedDate property. + * + * @return possible object is {@link String } + */ + public String getTransactedDate() { + return transactedDate; + } + + /** + * Sets the value of the transactedDate property. + * + * @param value allowed object is {@link String } + */ + public void setTransactedDate(String value) { + this.transactedDate = value; + } + + /** + * Gets the value of the acquiredDate property. + * + * @return possible object is {@link String } + */ + public String getAcquiredDate() { + return acquiredDate; + } + + /** + * Sets the value of the acquiredDate property. + * + * @param value allowed object is {@link String } + */ + public void setAcquiredDate(String value) { + this.acquiredDate = value; + } + + /** + * Gets the value of the sentDate property. + * + * @return possible object is {@link String } + */ + public String getSentDate() { + return sentDate; + } + + /** + * Sets the value of the sentDate property. + * + * @param value allowed object is {@link String } + */ + public void setSentDate(String value) { + this.sentDate = value; + } + + /** + * Gets the value of the receivedDate property. + * + * @return possible object is {@link String } + */ + public String getReceivedDate() { + return receivedDate; + } + + /** + * Sets the value of the receivedDate property. + * + * @param value allowed object is {@link String } + */ + public void setReceivedDate(String value) { + this.receivedDate = value; + } + + /** + * Gets the value of the registeredDate property. + * + * @return possible object is {@link String } + */ + public String getRegisteredDate() { + return registeredDate; + } + + /** + * Sets the value of the registeredDate property. + * + * @param value allowed object is {@link String } + */ + public void setRegisteredDate(String value) { + this.registeredDate = value; + } + + /** + * Gets the value of the startDate property. + * + * @return possible object is {@link String } + */ + public String getStartDate() { + return startDate; + } + + /** + * Sets the value of the startDate property. + * + * @param value allowed object is {@link String } + */ + public void setStartDate(String value) { + this.startDate = value; + } + + /** + * Gets the value of the endDate property. + * + * @return possible object is {@link String } + */ + public String getEndDate() { + return endDate; + } + + /** + * Sets the value of the endDate property. + * + * @param value allowed object is {@link String } + */ + public void setEndDate(String value) { + this.endDate = value; + } + + /** + * Gets the value of the extended property. + * + * @return possible object is {@link ExtendedType } + */ + public ExtendedType getExtended() { + return extended; + } + + /** + * Sets the value of the extended property. + * + * @param value allowed object is {@link ExtendedType } + */ + public void setExtended(ExtendedType value) { + this.extended = value; + } } diff --git a/src/main/java/org/fntc/ta/v4/EventType.java b/src/main/java/org/fntc/ta/v4/EventType.java index 87380b8..85989f8 100644 --- a/src/main/java/org/fntc/ta/v4/EventType.java +++ b/src/main/java/org/fntc/ta/v4/EventType.java @@ -1,21 +1,19 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.fntc.ta.v4; import jakarta.xml.bind.annotation.*; - import javax.xml.datatype.XMLGregorianCalendar; /** - *

* Java class for EventType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="EventType">
@@ -38,226 +36,217 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "EventType", propOrder = { - "eventIdentifier", - "eventTypeCode", - "eventType", - "eventDateTime", - "eventDetail", - "outcome", - "outcomeDetail", - "outcomeDetailMessage", - "eventDetailData" -}) +@XmlType( + name = "EventType", + propOrder = { + "eventIdentifier", + "eventTypeCode", + "eventType", + "eventDateTime", + "eventDetail", + "outcome", + "outcomeDetail", + "outcomeDetailMessage", + "eventDetailData" + }) public class EventType { - /** - * The Event identifier. - */ - @XmlElement(name = "EventIdentifier") - protected TextType eventIdentifier; - /** - * The Event type code. - */ - @XmlElement(name = "EventTypeCode") - protected TextType eventTypeCode; - /** - * The Event type. - */ - @XmlElement(name = "EventType") - protected TextType eventType; - /** - * The Event date time. - */ - @XmlElement(name = "EventDateTime", required = true) - @XmlSchemaType(name = "date") - protected XMLGregorianCalendar eventDateTime; - /** - * The Event detail. - */ - @XmlElement(name = "EventDetail") - protected TextType eventDetail; - /** - * The Outcome. - */ - @XmlElement(name = "Outcome") - protected TextType outcome; - /** - * The Outcome detail. - */ - @XmlElement(name = "OutcomeDetail") - protected TextType outcomeDetail; - /** - * The Outcome detail message. - */ - @XmlElement(name = "OutcomeDetailMessage") - protected TextType outcomeDetailMessage; - /** - * The Event detail data. - */ - @XmlElement(name = "EventDetailData") - protected TextType eventDetailData; - - /** - * Gets the value of the eventIdentifier property. - * - * @return possible object is {@link TextType } - */ - public TextType getEventIdentifier() { - return eventIdentifier; - } - - /** - * Sets the value of the eventIdentifier property. - * - * @param value allowed object is {@link TextType } - */ - public void setEventIdentifier(TextType value) { - this.eventIdentifier = value; - } - - /** - * Gets the value of the eventTypeCode property. - * - * @return possible object is {@link TextType } - */ - public TextType getEventTypeCode() { - return eventTypeCode; - } - - /** - * Sets the value of the eventTypeCode property. - * - * @param value allowed object is {@link TextType } - */ - public void setEventTypeCode(TextType value) { - this.eventTypeCode = value; - } - - /** - * Gets the value of the eventType property. - * - * @return possible object is {@link TextType } - */ - public TextType getEventType() { - return eventType; - } - - /** - * Sets the value of the eventType property. - * - * @param value allowed object is {@link TextType } - */ - public void setEventType(TextType value) { - this.eventType = value; - } - - /** - * Gets the value of the eventDateTime property. - * - * @return possible object is {@link XMLGregorianCalendar } - */ - public XMLGregorianCalendar getEventDateTime() { - return eventDateTime; - } - - /** - * Sets the value of the eventDateTime property. - * - * @param value allowed object is {@link XMLGregorianCalendar } - */ - public void setEventDateTime(XMLGregorianCalendar value) { - this.eventDateTime = value; - } - - /** - * Gets the value of the eventDetail property. - * - * @return possible object is {@link TextType } - */ - public TextType getEventDetail() { - return eventDetail; - } - - /** - * Sets the value of the eventDetail property. - * - * @param value allowed object is {@link TextType } - */ - public void setEventDetail(TextType value) { - this.eventDetail = value; - } - - /** - * Gets the value of the outcome property. - * - * @return possible object is {@link TextType } - */ - public TextType getOutcome() { - return outcome; - } - - /** - * Sets the value of the outcome property. - * - * @param value allowed object is {@link TextType } - */ - public void setOutcome(TextType value) { - this.outcome = value; - } - - /** - * Gets the value of the outcomeDetail property. - * - * @return possible object is {@link TextType } - */ - public TextType getOutcomeDetail() { - return outcomeDetail; - } - - /** - * Sets the value of the outcomeDetail property. - * - * @param value allowed object is {@link TextType } - */ - public void setOutcomeDetail(TextType value) { - this.outcomeDetail = value; - } - - /** - * Gets the value of the outcomeDetailMessage property. - * - * @return possible object is {@link TextType } - */ - public TextType getOutcomeDetailMessage() { - return outcomeDetailMessage; - } - - /** - * Sets the value of the outcomeDetailMessage property. - * - * @param value allowed object is {@link TextType } - */ - public void setOutcomeDetailMessage(TextType value) { - this.outcomeDetailMessage = value; - } - - /** - * Gets the value of the eventDetailData property. - * - * @return possible object is {@link TextType } - */ - public TextType getEventDetailData() { - return eventDetailData; - } - - /** - * Sets the value of the eventDetailData property. - * - * @param value allowed object is {@link TextType } - */ - public void setEventDetailData(TextType value) { - this.eventDetailData = value; - } - + /** The Event identifier. */ + @XmlElement(name = "EventIdentifier") + protected TextType eventIdentifier; + + /** The Event type code. */ + @XmlElement(name = "EventTypeCode") + protected TextType eventTypeCode; + + /** The Event type. */ + @XmlElement(name = "EventType") + protected TextType eventType; + + /** The Event date time. */ + @XmlElement(name = "EventDateTime", required = true) + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar eventDateTime; + + /** The Event detail. */ + @XmlElement(name = "EventDetail") + protected TextType eventDetail; + + /** The Outcome. */ + @XmlElement(name = "Outcome") + protected TextType outcome; + + /** The Outcome detail. */ + @XmlElement(name = "OutcomeDetail") + protected TextType outcomeDetail; + + /** The Outcome detail message. */ + @XmlElement(name = "OutcomeDetailMessage") + protected TextType outcomeDetailMessage; + + /** The Event detail data. */ + @XmlElement(name = "EventDetailData") + protected TextType eventDetailData; + + /** + * Gets the value of the eventIdentifier property. + * + * @return possible object is {@link TextType } + */ + public TextType getEventIdentifier() { + return eventIdentifier; + } + + /** + * Sets the value of the eventIdentifier property. + * + * @param value allowed object is {@link TextType } + */ + public void setEventIdentifier(TextType value) { + this.eventIdentifier = value; + } + + /** + * Gets the value of the eventTypeCode property. + * + * @return possible object is {@link TextType } + */ + public TextType getEventTypeCode() { + return eventTypeCode; + } + + /** + * Sets the value of the eventTypeCode property. + * + * @param value allowed object is {@link TextType } + */ + public void setEventTypeCode(TextType value) { + this.eventTypeCode = value; + } + + /** + * Gets the value of the eventType property. + * + * @return possible object is {@link TextType } + */ + public TextType getEventType() { + return eventType; + } + + /** + * Sets the value of the eventType property. + * + * @param value allowed object is {@link TextType } + */ + public void setEventType(TextType value) { + this.eventType = value; + } + + /** + * Gets the value of the eventDateTime property. + * + * @return possible object is {@link XMLGregorianCalendar } + */ + public XMLGregorianCalendar getEventDateTime() { + return eventDateTime; + } + + /** + * Sets the value of the eventDateTime property. + * + * @param value allowed object is {@link XMLGregorianCalendar } + */ + public void setEventDateTime(XMLGregorianCalendar value) { + this.eventDateTime = value; + } + + /** + * Gets the value of the eventDetail property. + * + * @return possible object is {@link TextType } + */ + public TextType getEventDetail() { + return eventDetail; + } + + /** + * Sets the value of the eventDetail property. + * + * @param value allowed object is {@link TextType } + */ + public void setEventDetail(TextType value) { + this.eventDetail = value; + } + + /** + * Gets the value of the outcome property. + * + * @return possible object is {@link TextType } + */ + public TextType getOutcome() { + return outcome; + } + + /** + * Sets the value of the outcome property. + * + * @param value allowed object is {@link TextType } + */ + public void setOutcome(TextType value) { + this.outcome = value; + } + + /** + * Gets the value of the outcomeDetail property. + * + * @return possible object is {@link TextType } + */ + public TextType getOutcomeDetail() { + return outcomeDetail; + } + + /** + * Sets the value of the outcomeDetail property. + * + * @param value allowed object is {@link TextType } + */ + public void setOutcomeDetail(TextType value) { + this.outcomeDetail = value; + } + + /** + * Gets the value of the outcomeDetailMessage property. + * + * @return possible object is {@link TextType } + */ + public TextType getOutcomeDetailMessage() { + return outcomeDetailMessage; + } + + /** + * Sets the value of the outcomeDetailMessage property. + * + * @param value allowed object is {@link TextType } + */ + public void setOutcomeDetailMessage(TextType value) { + this.outcomeDetailMessage = value; + } + + /** + * Gets the value of the eventDetailData property. + * + * @return possible object is {@link TextType } + */ + public TextType getEventDetailData() { + return eventDetailData; + } + + /** + * Sets the value of the eventDetailData property. + * + * @param value allowed object is {@link TextType } + */ + public void setEventDetailData(TextType value) { + this.eventDetailData = value; + } } diff --git a/src/main/java/org/fntc/ta/v4/ExtendedType.java b/src/main/java/org/fntc/ta/v4/ExtendedType.java index 0f0059e..a99db29 100644 --- a/src/main/java/org/fntc/ta/v4/ExtendedType.java +++ b/src/main/java/org/fntc/ta/v4/ExtendedType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.fntc.ta.v4; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for ExtendedType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ExtendedType">
@@ -28,7 +27,4 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "ExtendedType")
-public class ExtendedType
-        extends FntcOpenType {
-
-}
+public class ExtendedType extends FntcOpenType {}
diff --git a/src/main/java/org/fntc/ta/v4/FntcOpenType.java b/src/main/java/org/fntc/ta/v4/FntcOpenType.java
index 50c608d..f4a0d7d 100644
--- a/src/main/java/org/fntc/ta/v4/FntcOpenType.java
+++ b/src/main/java/org/fntc/ta/v4/FntcOpenType.java
@@ -1,25 +1,23 @@
 //
-// 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: 2019.09.15 at 07:07:47 PM CEST 
+// 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: 2019.09.15 at 07:07:47 PM CEST
 //
 package org.fntc.ta.v4;
 
 import jakarta.xml.bind.annotation.*;
 import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
 import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
-import org.w3c.dom.Element;
-
 import java.util.ArrayList;
 import java.util.List;
+import org.w3c.dom.Element;
 
 /**
- * 

* Java class for FntcOpenType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="FntcOpenType">
@@ -36,95 +34,85 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "FntcOpenType", propOrder = { - "any" -}) -@XmlSeeAlso({ - ExtendedType.class -}) +@XmlType( + name = "FntcOpenType", + propOrder = {"any"}) +@XmlSeeAlso({ExtendedType.class}) public abstract class FntcOpenType { - /** - * The Any. - */ - @XmlAnyElement(lax = true) - protected List any; - /** - * The Id. - */ - @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - @XmlSchemaType(name = "ID") - protected String id; - /** - * The Href. - */ - @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") - protected String href; + /** The Any. */ + @XmlAnyElement(lax = true) + protected List any; - /** - * Gets the value of the any 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 any property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getAny().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list null null null null {@link Element } - * {@link Object } - * - * @return the any - */ - public List getAny() { - if (any == null) { - any = new ArrayList(); - } - return this.any; - } + /** The Id. */ + @XmlAttribute(name = "id", namespace = "http://www.w3.org/XML/1998/namespace") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + @XmlSchemaType(name = "ID") + protected String id; - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } + /** The Href. */ + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + protected String href; - /** - * 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 any 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 any property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getAny().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list null null null null {@link Element + * } {@link Object } + * + * @return the any + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); } + return this.any; + } - /** - * Gets the value of the href property. - * - * @return possible object is {@link String } - */ - public String getHref() { - return href; - } + /** + * Gets the value of the id property. + * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } - /** - * Sets the value of the href property. - * - * @param value allowed object is {@link String } - */ - public void setHref(String value) { - this.href = value; - } + /** + * 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 href property. + * + * @return possible object is {@link String } + */ + public String getHref() { + return href; + } + /** + * Sets the value of the href property. + * + * @param value allowed object is {@link String } + */ + public void setHref(String value) { + this.href = value; + } } diff --git a/src/main/java/org/fntc/ta/v4/LogBookType.java b/src/main/java/org/fntc/ta/v4/LogBookType.java index a84d4c4..752e9e0 100644 --- a/src/main/java/org/fntc/ta/v4/LogBookType.java +++ b/src/main/java/org/fntc/ta/v4/LogBookType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.fntc.ta.v4; @@ -10,16 +11,13 @@ import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlType; - import java.util.ArrayList; import java.util.List; /** - *

* Java class for LogBookType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="LogBookType">
@@ -34,43 +32,36 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "LogBookType", propOrder = { - "event" -}) +@XmlType( + name = "LogBookType", + propOrder = {"event"}) public class LogBookType { - /** - * The Event. - */ - @XmlElement(name = "Event", required = true) - protected List event; + /** The Event. */ + @XmlElement(name = "Event", required = true) + protected List event; - /** - * Gets the value of the event 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 event property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getEvent().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list {@link EventType - * }* - * - * @return the event - */ - public List getEvent() { - if (event == null) { - event = new ArrayList(); - } - return this.event; + /** + * Gets the value of the event 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 event property. + * + *

For example, to add a new item, do as follows: + * + *

+   *    getEvent().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link EventType }* + * + * @return the event + */ + public List getEvent() { + if (event == null) { + event = new ArrayList(); } - + return this.event; + } } diff --git a/src/main/java/org/fntc/ta/v4/ManagementType.java b/src/main/java/org/fntc/ta/v4/ManagementType.java index 2550300..a85db20 100644 --- a/src/main/java/org/fntc/ta/v4/ManagementType.java +++ b/src/main/java/org/fntc/ta/v4/ManagementType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.fntc.ta.v4; @@ -12,11 +13,9 @@ import jakarta.xml.bind.annotation.XmlType; /** - *

* Java class for ManagementType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="ManagementType">
@@ -29,105 +28,96 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "ManagementType", propOrder = { - "accessRule", - "appraisalRule", - "logBook", - "extended" -}) +@XmlType( + name = "ManagementType", + propOrder = {"accessRule", "appraisalRule", "logBook", "extended"}) public class ManagementType { - /** - * The Access rule. - */ - @XmlElement(name = "AccessRule") - protected AccessRuleType accessRule; - /** - * The Appraisal rule. - */ - @XmlElement(name = "AppraisalRule") - protected AppraisalRuleType appraisalRule; - /** - * The Log book. - */ - @XmlElement(name = "LogBook") - protected LogBookType logBook; - /** - * The Extended. - */ - @XmlElement(name = "Extended") - protected ExtendedType extended; + /** The Access rule. */ + @XmlElement(name = "AccessRule") + protected AccessRuleType accessRule; - /** - * Gets the value of the accessRule property. - * - * @return possible object is {@link AccessRuleType } - */ - public AccessRuleType getAccessRule() { - return accessRule; - } + /** The Appraisal rule. */ + @XmlElement(name = "AppraisalRule") + protected AppraisalRuleType appraisalRule; - /** - * Sets the value of the accessRule property. - * - * @param value allowed object is {@link AccessRuleType } - */ - public void setAccessRule(AccessRuleType value) { - this.accessRule = value; - } + /** The Log book. */ + @XmlElement(name = "LogBook") + protected LogBookType logBook; - /** - * Gets the value of the appraisalRule property. - * - * @return possible object is {@link AppraisalRuleType } - */ - public AppraisalRuleType getAppraisalRule() { - return appraisalRule; - } + /** The Extended. */ + @XmlElement(name = "Extended") + protected ExtendedType extended; - /** - * Sets the value of the appraisalRule property. - * - * @param value allowed object is {@link AppraisalRuleType } - */ - public void setAppraisalRule(AppraisalRuleType value) { - this.appraisalRule = value; - } + /** + * Gets the value of the accessRule property. + * + * @return possible object is {@link AccessRuleType } + */ + public AccessRuleType getAccessRule() { + return accessRule; + } - /** - * Gets the value of the logBook property. - * - * @return possible object is {@link LogBookType } - */ - public LogBookType getLogBook() { - return logBook; - } + /** + * Sets the value of the accessRule property. + * + * @param value allowed object is {@link AccessRuleType } + */ + public void setAccessRule(AccessRuleType value) { + this.accessRule = value; + } - /** - * Sets the value of the logBook property. - * - * @param value allowed object is {@link LogBookType } - */ - public void setLogBook(LogBookType value) { - this.logBook = value; - } + /** + * Gets the value of the appraisalRule property. + * + * @return possible object is {@link AppraisalRuleType } + */ + public AppraisalRuleType getAppraisalRule() { + return appraisalRule; + } - /** - * Gets the value of the extended property. - * - * @return possible object is {@link ExtendedType } - */ - public ExtendedType getExtended() { - return extended; - } + /** + * Sets the value of the appraisalRule property. + * + * @param value allowed object is {@link AppraisalRuleType } + */ + public void setAppraisalRule(AppraisalRuleType value) { + this.appraisalRule = value; + } - /** - * Sets the value of the extended property. - * - * @param value allowed object is {@link ExtendedType } - */ - public void setExtended(ExtendedType value) { - this.extended = value; - } + /** + * Gets the value of the logBook property. + * + * @return possible object is {@link LogBookType } + */ + public LogBookType getLogBook() { + return logBook; + } + /** + * Sets the value of the logBook property. + * + * @param value allowed object is {@link LogBookType } + */ + public void setLogBook(LogBookType value) { + this.logBook = value; + } + + /** + * Gets the value of the extended property. + * + * @return possible object is {@link ExtendedType } + */ + public ExtendedType getExtended() { + return extended; + } + + /** + * Sets the value of the extended property. + * + * @param value allowed object is {@link ExtendedType } + */ + public void setExtended(ExtendedType value) { + this.extended = value; + } } diff --git a/src/main/java/org/fntc/ta/v4/ObjectFactory.java b/src/main/java/org/fntc/ta/v4/ObjectFactory.java index c1c524e..f27502a 100644 --- a/src/main/java/org/fntc/ta/v4/ObjectFactory.java +++ b/src/main/java/org/fntc/ta/v4/ObjectFactory.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.fntc.ta.v4; @@ -10,220 +11,228 @@ import jakarta.xml.bind.annotation.XmlElementDecl; import jakarta.xml.bind.annotation.XmlIDREF; import jakarta.xml.bind.annotation.XmlRegistry; - import javax.xml.namespace.QName; /** - * This object contains factory methods for each Java content interface and Java element interface generated in the - * org.fntc.ta.v4 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. + * This object contains factory methods for each Java content interface and Java element interface + * generated in the org.fntc.ta.v4 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 _ArchiveUnits_QNAME = new QName("org:fntc:ta:v4.0", "ArchiveUnits"); - private final static QName _Name_QNAME = new QName("org:fntc:ta:v4.0", "Name"); - private final static QName _AccessRule_QNAME = new QName("org:fntc:ta:v4.0", "AccessRule"); - private final static QName _Text_QNAME = new QName("org:fntc:ta:v4.0", "Text"); - private final static QName _AppraisalRule_QNAME = new QName("org:fntc:ta:v4.0", "AppraisalRule"); - private final static QName _Format_QNAME = new QName("org:fntc:ta:v4.0", "Format"); - private final static QName _ArchiveUnitTypeDataObjectReferenceDataObjectReferenceId_QNAME = new QName("org:fntc:ta:v4.0", "DataObjectReferenceId"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: - * org.fntc.ta.v4 - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link ArchiveUnitType } - * - * @return the archive unit type - */ - public ArchiveUnitType createArchiveUnitType() { - return new ArchiveUnitType(); - } - - /** - * Create an instance of {@link ArchiveUnitsType } - * - * @return the archive units type - */ - public ArchiveUnitsType createArchiveUnitsType() { - return new ArchiveUnitsType(); - } - - /** - * Create an instance of {@link TextType } - * - * @return the text type - */ - public TextType createTextType() { - return new TextType(); - } - - /** - * Create an instance of {@link AppraisalRuleType } - * - * @return the appraisal rule type - */ - public AppraisalRuleType createAppraisalRuleType() { - return new AppraisalRuleType(); - } - - /** - * Create an instance of {@link AccessRuleType } - * - * @return the access rule type - */ - public AccessRuleType createAccessRuleType() { - return new AccessRuleType(); - } - - /** - * Create an instance of {@link ManagementType } - * - * @return the management type - */ - public ManagementType createManagementType() { - return new ManagementType(); - } - - /** - * Create an instance of {@link EventType } - * - * @return the event type - */ - public EventType createEventType() { - return new EventType(); - } - - /** - * Create an instance of {@link TagType } - * - * @return the tag type - */ - public TagType createTagType() { - return new TagType(); - } - - /** - * Create an instance of {@link LogBookType } - * - * @return the log book type - */ - public LogBookType createLogBookType() { - return new LogBookType(); - } - - /** - * Create an instance of {@link ExtendedType } - * - * @return the extended type - */ - public ExtendedType createExtendedType() { - return new ExtendedType(); - } - - /** - * Create an instance of {@link DescriptiveMetadataContentType } - * - * @return the descriptive metadata content type - */ - public DescriptiveMetadataContentType createDescriptiveMetadataContentType() { - return new DescriptiveMetadataContentType(); - } - - /** - * Create an instance of {@link ArchiveUnitType.DataObjectReference } - * - * @return the archive unit type . data object reference - */ - public ArchiveUnitType.DataObjectReference createArchiveUnitTypeDataObjectReference() { - return new ArchiveUnitType.DataObjectReference(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveUnitsType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:fntc:ta:v4.0", name = "ArchiveUnits") - public JAXBElement createArchiveUnits(ArchiveUnitsType value) { - return new JAXBElement(_ArchiveUnits_QNAME, ArchiveUnitsType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:fntc:ta:v4.0", name = "Name") - public JAXBElement createName(TextType value) { - return new JAXBElement(_Name_QNAME, TextType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AccessRuleType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:fntc:ta:v4.0", name = "AccessRule") - public JAXBElement createAccessRule(AccessRuleType value) { - return new JAXBElement(_AccessRule_QNAME, AccessRuleType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:fntc:ta:v4.0", name = "Text") - public JAXBElement createText(TextType value) { - return new JAXBElement(_Text_QNAME, TextType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link AppraisalRuleType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:fntc:ta:v4.0", name = "AppraisalRule") - public JAXBElement createAppraisalRule(AppraisalRuleType value) { - return new JAXBElement(_AppraisalRule_QNAME, AppraisalRuleType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:fntc:ta:v4.0", name = "Format") - public JAXBElement createFormat(TextType value) { - return new JAXBElement(_Format_QNAME, TextType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} - * - * @param value the value - * @return the jaxb element - */ - @XmlElementDecl(namespace = "org:fntc:ta:v4.0", name = "DataObjectReferenceId", scope = ArchiveUnitType.DataObjectReference.class) - @XmlIDREF - public JAXBElement createArchiveUnitTypeDataObjectReferenceDataObjectReferenceId(Object value) { - return new JAXBElement(_ArchiveUnitTypeDataObjectReferenceDataObjectReferenceId_QNAME, Object.class, ArchiveUnitType.DataObjectReference.class, value); - } - + private static final QName _ArchiveUnits_QNAME = new QName("org:fntc:ta:v4.0", "ArchiveUnits"); + private static final QName _Name_QNAME = new QName("org:fntc:ta:v4.0", "Name"); + private static final QName _AccessRule_QNAME = new QName("org:fntc:ta:v4.0", "AccessRule"); + private static final QName _Text_QNAME = new QName("org:fntc:ta:v4.0", "Text"); + private static final QName _AppraisalRule_QNAME = new QName("org:fntc:ta:v4.0", "AppraisalRule"); + private static final QName _Format_QNAME = new QName("org:fntc:ta:v4.0", "Format"); + private static final QName _ArchiveUnitTypeDataObjectReferenceDataObjectReferenceId_QNAME = + new QName("org:fntc:ta:v4.0", "DataObjectReferenceId"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes + * for package: org.fntc.ta.v4 + */ + public ObjectFactory() {} + + /** + * Create an instance of {@link ArchiveUnitType } + * + * @return the archive unit type + */ + public ArchiveUnitType createArchiveUnitType() { + return new ArchiveUnitType(); + } + + /** + * Create an instance of {@link ArchiveUnitsType } + * + * @return the archive units type + */ + public ArchiveUnitsType createArchiveUnitsType() { + return new ArchiveUnitsType(); + } + + /** + * Create an instance of {@link TextType } + * + * @return the text type + */ + public TextType createTextType() { + return new TextType(); + } + + /** + * Create an instance of {@link AppraisalRuleType } + * + * @return the appraisal rule type + */ + public AppraisalRuleType createAppraisalRuleType() { + return new AppraisalRuleType(); + } + + /** + * Create an instance of {@link AccessRuleType } + * + * @return the access rule type + */ + public AccessRuleType createAccessRuleType() { + return new AccessRuleType(); + } + + /** + * Create an instance of {@link ManagementType } + * + * @return the management type + */ + public ManagementType createManagementType() { + return new ManagementType(); + } + + /** + * Create an instance of {@link EventType } + * + * @return the event type + */ + public EventType createEventType() { + return new EventType(); + } + + /** + * Create an instance of {@link TagType } + * + * @return the tag type + */ + public TagType createTagType() { + return new TagType(); + } + + /** + * Create an instance of {@link LogBookType } + * + * @return the log book type + */ + public LogBookType createLogBookType() { + return new LogBookType(); + } + + /** + * Create an instance of {@link ExtendedType } + * + * @return the extended type + */ + public ExtendedType createExtendedType() { + return new ExtendedType(); + } + + /** + * Create an instance of {@link DescriptiveMetadataContentType } + * + * @return the descriptive metadata content type + */ + public DescriptiveMetadataContentType createDescriptiveMetadataContentType() { + return new DescriptiveMetadataContentType(); + } + + /** + * Create an instance of {@link ArchiveUnitType.DataObjectReference } + * + * @return the archive unit type . data object reference + */ + public ArchiveUnitType.DataObjectReference createArchiveUnitTypeDataObjectReference() { + return new ArchiveUnitType.DataObjectReference(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArchiveUnitsType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:fntc:ta:v4.0", name = "ArchiveUnits") + public JAXBElement createArchiveUnits(ArchiveUnitsType value) { + return new JAXBElement( + _ArchiveUnits_QNAME, ArchiveUnitsType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:fntc:ta:v4.0", name = "Name") + public JAXBElement createName(TextType value) { + return new JAXBElement(_Name_QNAME, TextType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AccessRuleType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:fntc:ta:v4.0", name = "AccessRule") + public JAXBElement createAccessRule(AccessRuleType value) { + return new JAXBElement(_AccessRule_QNAME, AccessRuleType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:fntc:ta:v4.0", name = "Text") + public JAXBElement createText(TextType value) { + return new JAXBElement(_Text_QNAME, TextType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AppraisalRuleType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:fntc:ta:v4.0", name = "AppraisalRule") + public JAXBElement createAppraisalRule(AppraisalRuleType value) { + return new JAXBElement( + _AppraisalRule_QNAME, AppraisalRuleType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TextType }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl(namespace = "org:fntc:ta:v4.0", name = "Format") + public JAXBElement createFormat(TextType value) { + return new JAXBElement(_Format_QNAME, TextType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}} + * + * @param value the value + * @return the jaxb element + */ + @XmlElementDecl( + namespace = "org:fntc:ta:v4.0", + name = "DataObjectReferenceId", + scope = ArchiveUnitType.DataObjectReference.class) + @XmlIDREF + public JAXBElement createArchiveUnitTypeDataObjectReferenceDataObjectReferenceId( + Object value) { + return new JAXBElement( + _ArchiveUnitTypeDataObjectReferenceDataObjectReferenceId_QNAME, + Object.class, + ArchiveUnitType.DataObjectReference.class, + value); + } } diff --git a/src/main/java/org/fntc/ta/v4/TagType.java b/src/main/java/org/fntc/ta/v4/TagType.java index 83575ff..04001e4 100644 --- a/src/main/java/org/fntc/ta/v4/TagType.java +++ b/src/main/java/org/fntc/ta/v4/TagType.java @@ -1,8 +1,9 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // package org.fntc.ta.v4; @@ -11,11 +12,9 @@ import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** - *

* Java class for TagType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="TagType">
@@ -29,33 +28,29 @@
  */
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "TagType")
-public class TagType
-        extends TextType {
+public class TagType extends TextType {
 
-    /**
-     * The Key.
-     */
-    @XmlAttribute(name = "key")
-    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
-    @XmlSchemaType(name = "token")
-    protected String key;
+  /** The Key. */
+  @XmlAttribute(name = "key")
+  @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+  @XmlSchemaType(name = "token")
+  protected String key;
 
-    /**
-     * Gets the value of the key property.
-     *
-     * @return possible object is {@link String }
-     */
-    public String getKey() {
-        return key;
-    }
-
-    /**
-     * Sets the value of the key property.
-     *
-     * @param value allowed object is {@link String }
-     */
-    public void setKey(String value) {
-        this.key = value;
-    }
+  /**
+   * Gets the value of the key property.
+   *
+   * @return possible object is {@link String }
+   */
+  public String getKey() {
+    return key;
+  }
 
+  /**
+   * Sets the value of the key property.
+   *
+   * @param value allowed object is {@link String }
+   */
+  public void setKey(String value) {
+    this.key = value;
+  }
 }
diff --git a/src/main/java/org/fntc/ta/v4/TextType.java b/src/main/java/org/fntc/ta/v4/TextType.java
index 0bf2ce5..45a2a07 100644
--- a/src/main/java/org/fntc/ta/v4/TextType.java
+++ b/src/main/java/org/fntc/ta/v4/TextType.java
@@ -1,19 +1,18 @@
 //
-// 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: 2019.09.15 at 07:07:47 PM CEST 
+// 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: 2019.09.15 at 07:07:47 PM CEST
 //
 package org.fntc.ta.v4;
 
 import jakarta.xml.bind.annotation.*;
 
 /**
- * 

* Java class for TextType complex type. * - *

- * The following schema fragment specifies the expected content contained within this class. + *

The following schema fragment specifies the expected content contained within this class. * *

  * <complexType name="TextType">
@@ -26,59 +25,52 @@
  * 
*/ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "TextType", propOrder = { - "value" -}) -@XmlSeeAlso({ - TagType.class -}) +@XmlType( + name = "TextType", + propOrder = {"value"}) +@XmlSeeAlso({TagType.class}) public class TextType { - /** - * The Value. - */ - @XmlValue - protected String value; - /** - * The Lang. - */ - @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") - protected String lang; + /** The Value. */ + @XmlValue protected String value; - /** - * Gets the value of the value property. - * - * @return possible object is {@link String } - */ - public String getValue() { - return value; - } + /** The Lang. */ + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; - /** - * 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 value property. + * + * @return possible object is {@link String } + */ + public String getValue() { + return value; + } - /** - * Gets the value of the lang property. - * - * @return possible object is {@link String } - */ - public String getLang() { - return lang; - } + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link String } + */ + public void setValue(String value) { + this.value = value; + } - /** - * Sets the value of the lang property. - * - * @param value allowed object is {@link String } - */ - public void setLang(String value) { - this.lang = value; - } + /** + * Gets the value of the lang property. + * + * @return possible object is {@link String } + */ + public String getLang() { + return lang; + } + /** + * Sets the value of the lang property. + * + * @param value allowed object is {@link String } + */ + public void setLang(String value) { + this.lang = value; + } } diff --git a/src/main/java/org/fntc/ta/v4/package-info.java b/src/main/java/org/fntc/ta/v4/package-info.java index e9bea94..252b392 100644 --- a/src/main/java/org/fntc/ta/v4/package-info.java +++ b/src/main/java/org/fntc/ta/v4/package-info.java @@ -1,8 +1,11 @@ // -// 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: 2019.09.15 at 07:07:47 PM CEST +// 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: 2019.09.15 at 07:07:47 PM CEST // -@jakarta.xml.bind.annotation.XmlSchema(namespace = "org:fntc:ta:v4.0", elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED) +@jakarta.xml.bind.annotation.XmlSchema( + namespace = "org:fntc:ta:v4.0", + elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED) package org.fntc.ta.v4; diff --git a/src/main/java/org/w3/_1999/xlink/ActuateType.java b/src/main/java/org/w3/_1999/xlink/ActuateType.java index 506c4d2..5e25532 100644 --- a/src/main/java/org/w3/_1999/xlink/ActuateType.java +++ b/src/main/java/org/w3/_1999/xlink/ActuateType.java @@ -1,21 +1,20 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package org.w3._1999.xlink; import jakarta.xml.bind.annotation.XmlEnum; import jakarta.xml.bind.annotation.XmlEnumValue; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for actuateType. - * + * Java class for actuateType. + * *

The following schema fragment specifies the expected content contained within this class. + * *

{@code
  * 
  *   
@@ -26,37 +25,46 @@
  *   
  * 
  * }
- * */ @XmlType(name = "actuateType") @XmlEnum public enum ActuateType { + @XmlEnumValue("onLoad") + ON_LOAD("onLoad"), + @XmlEnumValue("onRequest") + ON_REQUEST("onRequest"), + @XmlEnumValue("other") + OTHER("other"), + @XmlEnumValue("none") + NONE("none"); + private final String value; - @XmlEnumValue("onLoad") - ON_LOAD("onLoad"), - @XmlEnumValue("onRequest") - ON_REQUEST("onRequest"), - @XmlEnumValue("other") - OTHER("other"), - @XmlEnumValue("none") - NONE("none"); - private final String value; - - ActuateType(String v) { - value = v; - } + ActuateType(String v) { + value = v; + } - public String value() { - return value; - } + /** + * Gets the value associated to the enum constant. + * + * @return The value linked to the enum. + */ + public String value() { + return value; + } - public static ActuateType fromValue(String v) { - for (ActuateType c: ActuateType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** + * Gets the enum associated to the value passed as parameter. + * + * @param v The value to get the enum from. + * @return The enum which corresponds to the value, if it exists. + * @throws IllegalArgumentException If no value matches in the enum declaration. + */ + public static ActuateType fromValue(String v) { + for (ActuateType c : ActuateType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/org/w3/_1999/xlink/ArcType.java b/src/main/java/org/w3/_1999/xlink/ArcType.java index c879ae2..dcfb152 100644 --- a/src/main/java/org/w3/_1999/xlink/ArcType.java +++ b/src/main/java/org/w3/_1999/xlink/ArcType.java @@ -1,27 +1,25 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package org.w3._1999.xlink; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAttribute; import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for arcType complex type. - * + * Java class for arcType complex type. + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

{@code
  * 
  *   
@@ -32,236 +30,191 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "arcType", propOrder = { - "title" -}) +@XmlType( + name = "arcType", + propOrder = {"title"}) public class ArcType { - protected List title; - @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink", required = true) - protected TypeType type; - @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") - protected String arcrole; - @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") - protected String title2; - @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") - protected ShowType show; - @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") - protected ActuateType actuate; - @XmlAttribute(name = "from", namespace = "http://www.w3.org/1999/xlink") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String from; - @XmlAttribute(name = "to", namespace = "http://www.w3.org/1999/xlink") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String to; - - /** - * Gets the value of the title 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the title property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTitle().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link TitleEltType } - * - * - * @return - * The value of the title property. - */ - public List getTitle() { - if (title == null) { - title = new ArrayList<>(); - } - return this.title; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link TypeType } - * - */ - public TypeType getType() { - if (type == null) { - return TypeType.ARC; - } else { - return type; - } + protected List title; + + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink", required = true) + protected TypeType type; + + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title2; + + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected ShowType show; + + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected ActuateType actuate; + + @XmlAttribute(name = "from", namespace = "http://www.w3.org/1999/xlink") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String from; + + /** from and to have default behavior when values are missing */ + @XmlAttribute(name = "to", namespace = "http://www.w3.org/1999/xlink") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String to; + + /** + * Gets the value of the title 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 title property. + * + *

For example, to add a new item, do as follows: + * + *

+   * getTitle().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TitleEltType } + * + * @return The value of the title property. + */ + public List getTitle() { + if (title == null) { + title = new ArrayList<>(); } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link TypeType } - * - */ - public void setType(TypeType value) { - this.type = value; - } - - /** - * Gets the value of the arcrole property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getArcrole() { - return arcrole; - } - - /** - * Sets the value of the arcrole property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setArcrole(String value) { - this.arcrole = value; - } - - /** - * Gets the value of the title2 property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTitle2() { - return title2; - } - - /** - * Sets the value of the title2 property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTitle2(String value) { - this.title2 = value; + return this.title; + } + + /** + * Gets the value of the type property. + * + * @return possible object is {@link TypeType } + */ + public TypeType getType() { + if (type == null) { + return TypeType.ARC; + } else { + return type; } - - /** - * Gets the value of the show property. - * - * @return - * possible object is - * {@link ShowType } - * - */ - public ShowType getShow() { - return show; - } - - /** - * Sets the value of the show property. - * - * @param value - * allowed object is - * {@link ShowType } - * - */ - public void setShow(ShowType value) { - this.show = value; - } - - /** - * Gets the value of the actuate property. - * - * @return - * possible object is - * {@link ActuateType } - * - */ - public ActuateType getActuate() { - return actuate; - } - - /** - * Sets the value of the actuate property. - * - * @param value - * allowed object is - * {@link ActuateType } - * - */ - public void setActuate(ActuateType value) { - this.actuate = value; - } - - /** - * Gets the value of the from property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getFrom() { - return from; - } - - /** - * Sets the value of the from property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setFrom(String value) { - this.from = value; - } - - /** - * - * from and to have default behavior when values are missing - * - * - * @return - * possible object is - * {@link String } - * - */ - public String getTo() { - return to; - } - - /** - * Sets the value of the to property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTo(String value) { - this.to = value; - } - + } + + /** + * Sets the value of the type property. + * + * @param value allowed object is {@link TypeType } + */ + public void setType(TypeType value) { + this.type = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return possible object is {@link String } + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value allowed object is {@link String } + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title2 property. + * + * @return possible object is {@link String } + */ + public String getTitle2() { + return title2; + } + + /** + * Sets the value of the title2 property. + * + * @param value allowed object is {@link String } + */ + public void setTitle2(String value) { + this.title2 = value; + } + + /** + * Gets the value of the show property. + * + * @return possible object is {@link ShowType } + */ + public ShowType getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value allowed object is {@link ShowType } + */ + public void setShow(ShowType value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return possible object is {@link ActuateType } + */ + public ActuateType getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value allowed object is {@link ActuateType } + */ + public void setActuate(ActuateType value) { + this.actuate = value; + } + + /** + * Gets the value of the from property. + * + * @return possible object is {@link String } + */ + public String getFrom() { + return from; + } + + /** + * Sets the value of the from property. + * + * @param value allowed object is {@link String } + */ + public void setFrom(String value) { + this.from = value; + } + + /** + * from and to have default behavior when values are missing + * + * @return possible object is {@link String } + */ + public String getTo() { + return to; + } + + /** + * Sets the value of the to property. + * + * @param value allowed object is {@link String } + * @see #getTo() + */ + public void setTo(String value) { + this.to = value; + } } diff --git a/src/main/java/org/w3/_1999/xlink/Extended.java b/src/main/java/org/w3/_1999/xlink/Extended.java index 3d38cc9..f4ba088 100644 --- a/src/main/java/org/w3/_1999/xlink/Extended.java +++ b/src/main/java/org/w3/_1999/xlink/Extended.java @@ -1,35 +1,29 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package org.w3._1999.xlink; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAttribute; import jakarta.xml.bind.annotation.XmlElement; import jakarta.xml.bind.annotation.XmlElements; import jakarta.xml.bind.annotation.XmlType; - +import java.util.ArrayList; +import java.util.List; /** - * - * Intended for use as the type of user-declared elements to make them - * extended links. - * Note that the elements referenced in the content model are all abstract. - * The intention is that by simply declaring elements with these as their - * substitutionGroup, all the right things will happen. - * - * + * Intended for use as the type of user-declared elements to make them extended links. Note that the + * elements referenced in the content model are all abstract. The intention is that by simply + * declaring elements with these as their substitutionGroup, all the right things will happen. + * *

Java class for extended complex type. - * + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

{@code
  * 
  *   
@@ -40,137 +34,110 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "extended", propOrder = { - "extendedModel" -}) +@XmlType( + name = "extended", + propOrder = {"extendedModel"}) public class Extended { - @XmlElements({ - @XmlElement(name = "title", type = TitleEltType.class), - @XmlElement(name = "resource", type = ResourceType.class), - @XmlElement(name = "locator", type = LocatorType.class), - @XmlElement(name = "arc", type = ArcType.class) - }) - protected List extendedModel; - @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink", required = true) - protected TypeType type; - @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") - protected String role; - @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") - protected String title; + @XmlElements({ + @XmlElement(name = "title", type = TitleEltType.class), + @XmlElement(name = "resource", type = ResourceType.class), + @XmlElement(name = "locator", type = LocatorType.class), + @XmlElement(name = "arc", type = ArcType.class) + }) + protected List extendedModel; - /** - * Gets the value of the extendedModel 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the extendedModel property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getExtendedModel().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link ArcType } - * {@link LocatorType } - * {@link ResourceType } - * {@link TitleEltType } - * - * - * @return - * The value of the extendedModel property. - */ - public List getExtendedModel() { - if (extendedModel == null) { - extendedModel = new ArrayList<>(); - } - return this.extendedModel; - } + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink", required = true) + protected TypeType type; - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link TypeType } - * - */ - public TypeType getType() { - if (type == null) { - return TypeType.EXTENDED; - } else { - return type; - } - } + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link TypeType } - * - */ - public void setType(TypeType value) { - this.type = value; - } + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; - /** - * Gets the value of the role property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRole() { - return role; + /** + * Gets the value of the extendedModel 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 extendedModel property. + * + *

For example, to add a new item, do as follows: + * + *

+   * getExtendedModel().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link ArcType } {@link LocatorType + * } {@link ResourceType } {@link TitleEltType } + * + * @return The value of the extendedModel property. + */ + public List getExtendedModel() { + if (extendedModel == null) { + extendedModel = new ArrayList<>(); } + return this.extendedModel; + } - /** - * Sets the value of the role property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRole(String value) { - this.role = value; + /** + * Gets the value of the type property. + * + * @return possible object is {@link TypeType } + */ + public TypeType getType() { + if (type == null) { + return TypeType.EXTENDED; + } else { + return type; } + } - /** - * Gets the value of the title property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTitle() { - return title; - } + /** + * Sets the value of the type property. + * + * @param value allowed object is {@link TypeType } + */ + public void setType(TypeType value) { + this.type = value; + } - /** - * Sets the value of the title property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTitle(String value) { - this.title = value; - } + /** + * Gets the value of the role property. + * + * @return possible object is {@link String } + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value allowed object is {@link String } + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the title property. + * + * @return possible object is {@link String } + */ + public String getTitle() { + return title; + } + /** + * Sets the value of the title property. + * + * @param value allowed object is {@link String } + */ + public void setTitle(String value) { + this.title = value; + } } diff --git a/src/main/java/org/w3/_1999/xlink/LocatorType.java b/src/main/java/org/w3/_1999/xlink/LocatorType.java index 97b86e0..3037e83 100644 --- a/src/main/java/org/w3/_1999/xlink/LocatorType.java +++ b/src/main/java/org/w3/_1999/xlink/LocatorType.java @@ -1,27 +1,25 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package org.w3._1999.xlink; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAttribute; import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; - +import java.util.ArrayList; +import java.util.List; /** - *

Java class for locatorType complex type. - * + * Java class for locatorType complex type. + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

{@code
  * 
  *   
@@ -32,184 +30,150 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "locatorType", propOrder = { - "title" -}) +@XmlType( + name = "locatorType", + propOrder = {"title"}) public class LocatorType { - protected List title; - @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink", required = true) - protected TypeType type; - @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink", required = true) - protected String href; - @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") - protected String role; - @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") - protected String title1; - @XmlAttribute(name = "label", namespace = "http://www.w3.org/1999/xlink") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String label; - - /** - * Gets the value of the title 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 Jakarta XML Binding object. - * This is why there is not a {@code set} method for the title property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getTitle().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link TitleEltType } - * - * - * @return - * The value of the title property. - */ - public List getTitle() { - if (title == null) { - title = new ArrayList<>(); - } - return this.title; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link TypeType } - * - */ - public TypeType getType() { - if (type == null) { - return TypeType.LOCATOR; - } else { - return type; - } - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link TypeType } - * - */ - public void setType(TypeType value) { - this.type = value; - } - - /** - * Gets the value of the href property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getHref() { - return href; - } - - /** - * Sets the value of the href property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setHref(String value) { - this.href = value; - } - - /** - * Gets the value of the role property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRole() { - return role; + protected List title; + + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink", required = true) + protected TypeType type; + + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink", required = true) + protected String href; + + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title1; + + /** + * label is not required, but locators have no particular XLink function if they are not labeled. + */ + @XmlAttribute(name = "label", namespace = "http://www.w3.org/1999/xlink") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String label; + + /** + * Gets the value of the title 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 title property. + * + *

For example, to add a new item, do as follows: + * + *

+   * getTitle().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link TitleEltType } + * + * @return The value of the title property. + */ + public List getTitle() { + if (title == null) { + title = new ArrayList<>(); } - - /** - * Sets the value of the role property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRole(String value) { - this.role = value; + return this.title; + } + + /** + * Gets the value of the type property. + * + * @return possible object is {@link TypeType } + */ + public TypeType getType() { + if (type == null) { + return TypeType.LOCATOR; + } else { + return type; } - - /** - * Gets the value of the title1 property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTitle1() { - return title1; - } - - /** - * Sets the value of the title1 property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTitle1(String value) { - this.title1 = value; - } - - /** - * - * label is not required, but locators have no particular - * XLink function if they are not labeled. - * - * - * @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; - } - + } + + /** + * Sets the value of the type property. + * + * @param value allowed object is {@link TypeType } + */ + public void setType(TypeType value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return possible object is {@link String } + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value allowed object is {@link String } + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return possible object is {@link String } + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value allowed object is {@link String } + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the title1 property. + * + * @return possible object is {@link String } + */ + public String getTitle1() { + return title1; + } + + /** + * Sets the value of the title1 property. + * + * @param value allowed object is {@link String } + */ + public void setTitle1(String value) { + this.title1 = value; + } + + /** + * label is not required, but locators have no particular XLink function if they are not labeled. + * + * @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 } + * @see #getLabel() + */ + public void setLabel(String value) { + this.label = value; + } } diff --git a/src/main/java/org/w3/_1999/xlink/ObjectFactory.java b/src/main/java/org/w3/_1999/xlink/ObjectFactory.java index b33c1b4..e532449 100644 --- a/src/main/java/org/w3/_1999/xlink/ObjectFactory.java +++ b/src/main/java/org/w3/_1999/xlink/ObjectFactory.java @@ -1,157 +1,135 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package org.w3._1999.xlink; -import javax.xml.namespace.QName; import jakarta.xml.bind.JAXBElement; import jakarta.xml.bind.annotation.XmlElementDecl; import jakarta.xml.bind.annotation.XmlRegistry; - +import javax.xml.namespace.QName; /** - * This object contains factory methods for each - * Java content interface and Java element interface - * generated in the org.w3._1999.xlink 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. - * + * This object contains factory methods for each Java content interface and Java element interface + * generated in the org.w3._1999.xlink package. + * + *

An ObjectFactory allows you to programmatically 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 static final QName _Title_QNAME = new QName("http://www.w3.org/1999/xlink", "title"); - private static final QName _Resource_QNAME = new QName("http://www.w3.org/1999/xlink", "resource"); - private static final QName _Locator_QNAME = new QName("http://www.w3.org/1999/xlink", "locator"); - private static final QName _Arc_QNAME = new QName("http://www.w3.org/1999/xlink", "arc"); - - /** - * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.w3._1999.xlink - * - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link TitleEltType } - * - * @return - * the new instance of {@link TitleEltType } - */ - public TitleEltType createTitleEltType() { - return new TitleEltType(); - } - - /** - * Create an instance of {@link ResourceType } - * - * @return - * the new instance of {@link ResourceType } - */ - public ResourceType createResourceType() { - return new ResourceType(); - } - - /** - * Create an instance of {@link LocatorType } - * - * @return - * the new instance of {@link LocatorType } - */ - public LocatorType createLocatorType() { - return new LocatorType(); - } - - /** - * Create an instance of {@link ArcType } - * - * @return - * the new instance of {@link ArcType } - */ - public ArcType createArcType() { - return new ArcType(); - } - - /** - * Create an instance of {@link Simple } - * - * @return - * the new instance of {@link Simple } - */ - public Simple createSimple() { - return new Simple(); - } - - /** - * Create an instance of {@link Extended } - * - * @return - * the new instance of {@link Extended } - */ - public Extended createExtended() { - return new Extended(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link TitleEltType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link TitleEltType }{@code >} - */ - @XmlElementDecl(namespace = "http://www.w3.org/1999/xlink", name = "title") - public JAXBElement createTitle(TitleEltType value) { - return new JAXBElement<>(_Title_QNAME, TitleEltType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ResourceType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link ResourceType }{@code >} - */ - @XmlElementDecl(namespace = "http://www.w3.org/1999/xlink", name = "resource") - public JAXBElement createResource(ResourceType value) { - return new JAXBElement<>(_Resource_QNAME, ResourceType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link LocatorType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link LocatorType }{@code >} - */ - @XmlElementDecl(namespace = "http://www.w3.org/1999/xlink", name = "locator") - public JAXBElement createLocator(LocatorType value) { - return new JAXBElement<>(_Locator_QNAME, LocatorType.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ArcType }{@code >} - * - * @param value - * Java instance representing xml element's value. - * @return - * the new instance of {@link JAXBElement }{@code <}{@link ArcType }{@code >} - */ - @XmlElementDecl(namespace = "http://www.w3.org/1999/xlink", name = "arc") - public JAXBElement createArc(ArcType value) { - return new JAXBElement<>(_Arc_QNAME, ArcType.class, null, value); - } - + private static final QName _Title_QNAME = new QName("http://www.w3.org/1999/xlink", "title"); + private static final QName _Resource_QNAME = + new QName("http://www.w3.org/1999/xlink", "resource"); + private static final QName _Locator_QNAME = new QName("http://www.w3.org/1999/xlink", "locator"); + private static final QName _Arc_QNAME = new QName("http://www.w3.org/1999/xlink", "arc"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes + * for package: org.w3._1999.xlink + */ + public ObjectFactory() {} + + /** + * Create an instance of {@link TitleEltType } + * + * @return the new instance of {@link TitleEltType } + */ + public TitleEltType createTitleEltType() { + return new TitleEltType(); + } + + /** + * Create an instance of {@link ResourceType } + * + * @return the new instance of {@link ResourceType } + */ + public ResourceType createResourceType() { + return new ResourceType(); + } + + /** + * Create an instance of {@link LocatorType } + * + * @return the new instance of {@link LocatorType } + */ + public LocatorType createLocatorType() { + return new LocatorType(); + } + + /** + * Create an instance of {@link ArcType } + * + * @return the new instance of {@link ArcType } + */ + public ArcType createArcType() { + return new ArcType(); + } + + /** + * Create an instance of {@link Simple } + * + * @return the new instance of {@link Simple } + */ + public Simple createSimple() { + return new Simple(); + } + + /** + * Create an instance of {@link Extended } + * + * @return the new instance of {@link Extended } + */ + public Extended createExtended() { + return new Extended(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link TitleEltType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link TitleEltType }{@code >} + */ + @XmlElementDecl(namespace = "http://www.w3.org/1999/xlink", name = "title") + public JAXBElement createTitle(TitleEltType value) { + return new JAXBElement<>(_Title_QNAME, TitleEltType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ResourceType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link ResourceType }{@code >} + */ + @XmlElementDecl(namespace = "http://www.w3.org/1999/xlink", name = "resource") + public JAXBElement createResource(ResourceType value) { + return new JAXBElement<>(_Resource_QNAME, ResourceType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link LocatorType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link LocatorType }{@code >} + */ + @XmlElementDecl(namespace = "http://www.w3.org/1999/xlink", name = "locator") + public JAXBElement createLocator(LocatorType value) { + return new JAXBElement<>(_Locator_QNAME, LocatorType.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ArcType }{@code >} + * + * @param value Java instance representing xml element's value. + * @return the new instance of {@link JAXBElement }{@code <}{@link ArcType }{@code >} + */ + @XmlElementDecl(namespace = "http://www.w3.org/1999/xlink", name = "arc") + public JAXBElement createArc(ArcType value) { + return new JAXBElement<>(_Arc_QNAME, ArcType.class, null, value); + } } diff --git a/src/main/java/org/w3/_1999/xlink/ResourceType.java b/src/main/java/org/w3/_1999/xlink/ResourceType.java index eb217f4..b58de84 100644 --- a/src/main/java/org/w3/_1999/xlink/ResourceType.java +++ b/src/main/java/org/w3/_1999/xlink/ResourceType.java @@ -1,14 +1,11 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package org.w3._1999.xlink; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAnyElement; @@ -17,14 +14,15 @@ import jakarta.xml.bind.annotation.XmlType; import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter; import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import java.util.ArrayList; +import java.util.List; import org.w3c.dom.Element; - /** - *

Java class for resourceType complex type. - * + * Java class for resourceType complex type. + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

{@code
  * 
  *   
@@ -35,159 +33,128 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "resourceType", propOrder = { - "content" -}) +@XmlType( + name = "resourceType", + propOrder = {"content"}) public class ResourceType { - @XmlMixed - @XmlAnyElement(lax = true) - protected List content; - @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink", required = true) - protected TypeType type; - @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") - protected String role; - @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") - protected String title; - @XmlAttribute(name = "label", namespace = "http://www.w3.org/1999/xlink") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - protected String label; - - /** - * Gets the value of the content property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the Jakarta XML Binding object. - * This is why there is not a {@code set} method for the content property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getContent().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Object } - * {@link String } - * {@link Element } - * - * - * @return - * The value of the content property. - */ - public List getContent() { - if (content == null) { - content = new ArrayList<>(); - } - return this.content; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link TypeType } - * - */ - public TypeType getType() { - if (type == null) { - return TypeType.RESOURCE; - } else { - return type; - } - } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link TypeType } - * - */ - public void setType(TypeType value) { - this.type = value; - } - - /** - * Gets the value of the role property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRole() { - return role; - } - - /** - * Sets the value of the role property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRole(String value) { - this.role = value; + @XmlMixed + @XmlAnyElement(lax = true) + protected List content; + + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink", required = true) + protected TypeType type; + + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + + @XmlAttribute(name = "label", namespace = "http://www.w3.org/1999/xlink") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + protected String label; + + /** + * Gets the value of the content property. + * + *

This accessor method returns a reference to the live list, not a snapshot. Therefore any + * modification you make to the returned list will be present inside the JAXB object. This is why + * there is not a set method for the content property. + * + *

For example, to add a new item, do as follows: + * + *

+   * getContent().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link Object } {@link String } + * {@link Element } + * + * @return The value of the content property. + */ + public List getContent() { + if (content == null) { + content = new ArrayList<>(); } - - /** - * Gets the value of the title property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTitle() { - return title; - } - - /** - * Sets the value of the title property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTitle(String value) { - this.title = value; + return this.content; + } + + /** + * Gets the value of the type property. + * + * @return possible object is {@link TypeType } + */ + public TypeType getType() { + if (type == null) { + return TypeType.RESOURCE; + } else { + return type; } - - /** - * 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; - } - + } + + /** + * Sets the value of the type property. + * + * @param value allowed object is {@link TypeType } + */ + public void setType(TypeType value) { + this.type = value; + } + + /** + * Gets the value of the role property. + * + * @return possible object is {@link String } + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value allowed object is {@link String } + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the title property. + * + * @return possible object is {@link String } + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value allowed object is {@link String } + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the 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/org/w3/_1999/xlink/ShowType.java b/src/main/java/org/w3/_1999/xlink/ShowType.java index d713b83..9aea4a7 100644 --- a/src/main/java/org/w3/_1999/xlink/ShowType.java +++ b/src/main/java/org/w3/_1999/xlink/ShowType.java @@ -1,21 +1,20 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package org.w3._1999.xlink; import jakarta.xml.bind.annotation.XmlEnum; import jakarta.xml.bind.annotation.XmlEnumValue; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for showType. - * + * Java class for showType. + * *

The following schema fragment specifies the expected content contained within this class. + * *

{@code
  * 
  *   
@@ -27,39 +26,48 @@
  *   
  * 
  * }
- * */ @XmlType(name = "showType") @XmlEnum public enum ShowType { + @XmlEnumValue("new") + NEW("new"), + @XmlEnumValue("replace") + REPLACE("replace"), + @XmlEnumValue("embed") + EMBED("embed"), + @XmlEnumValue("other") + OTHER("other"), + @XmlEnumValue("none") + NONE("none"); + private final String value; - @XmlEnumValue("new") - NEW("new"), - @XmlEnumValue("replace") - REPLACE("replace"), - @XmlEnumValue("embed") - EMBED("embed"), - @XmlEnumValue("other") - OTHER("other"), - @XmlEnumValue("none") - NONE("none"); - private final String value; - - ShowType(String v) { - value = v; - } + ShowType(String v) { + value = v; + } - public String value() { - return value; - } + /** + * Gets the value associated to the enum constant. + * + * @return The value linked to the enum. + */ + public String value() { + return value; + } - public static ShowType fromValue(String v) { - for (ShowType c: ShowType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** + * Gets the enum associated to the value passed as parameter. + * + * @param v The value to get the enum from. + * @return The enum which corresponds to the value, if it exists. + * @throws IllegalArgumentException If no value matches in the enum declaration. + */ + public static ShowType fromValue(String v) { + for (ShowType c : ShowType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/org/w3/_1999/xlink/Simple.java b/src/main/java/org/w3/_1999/xlink/Simple.java index 327bbca..5a405b5 100644 --- a/src/main/java/org/w3/_1999/xlink/Simple.java +++ b/src/main/java/org/w3/_1999/xlink/Simple.java @@ -1,33 +1,28 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package org.w3._1999.xlink; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAnyElement; import jakarta.xml.bind.annotation.XmlAttribute; import jakarta.xml.bind.annotation.XmlMixed; import jakarta.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; import org.w3c.dom.Element; - /** - * - * Intended for use as the type of user-declared elements to make them - * simple links. - * - * + * Intended for use as the type of user-declared elements to make them simple links. + * *

Java class for simple complex type. - * + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

{@code
  * 
  *   
@@ -38,239 +33,193 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "simple", propOrder = { - "content" -}) +@XmlType( + name = "simple", + propOrder = {"content"}) public class Simple { - @XmlMixed - @XmlAnyElement(lax = true) - protected List content; - @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") - protected TypeType type; - @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") - protected String href; - @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") - protected String role; - @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") - protected String arcrole; - @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") - protected String title; - @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") - protected ShowType show; - @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") - protected ActuateType actuate; - - /** - * - * Intended for use as the type of user-declared elements to make them - * simple links. - * Gets the value of the content property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the Jakarta XML Binding object. - * This is why there is not a {@code set} method for the content property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getContent().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Object } - * {@link String } - * {@link Element } - * - * - * @return - * The value of the content property. - */ - public List getContent() { - if (content == null) { - content = new ArrayList<>(); - } - return this.content; - } - - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link TypeType } - * - */ - public TypeType getType() { - if (type == null) { - return TypeType.SIMPLE; - } else { - return type; - } + /** Intended for use as the type of user-declared elements to make them simple links. */ + @XmlMixed + @XmlAnyElement(lax = true) + protected List content; + + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink") + protected TypeType type; + + @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink") + protected String href; + + @XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink") + protected String role; + + @XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink") + protected String arcrole; + + @XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink") + protected String title; + + @XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink") + protected ShowType show; + + @XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink") + protected ActuateType actuate; + + /** + * Intended for use as the type of user-declared elements to make them simple links. + * + *

Gets the value of the content property. + * + *

This accessor method returns a reference to the live list, not a snapshot. Therefore any + * modification you make to the returned list will be present inside the JAXB object. This is why + * there is not a set method for the content property. + * + *

For example, to add a new item, do as follows: + * + *

+   * getContent().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link Object } {@link String } + * {@link Element } + * + * @return The value of the content property. + */ + public List getContent() { + if (content == null) { + content = new ArrayList<>(); } - - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link TypeType } - * - */ - public void setType(TypeType value) { - this.type = value; - } - - /** - * Gets the value of the href property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getHref() { - return href; - } - - /** - * Sets the value of the href property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setHref(String value) { - this.href = value; - } - - /** - * Gets the value of the role property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getRole() { - return role; - } - - /** - * Sets the value of the role property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setRole(String value) { - this.role = value; + return this.content; + } + + /** + * Gets the value of the type property. + * + * @return possible object is {@link TypeType } + */ + public TypeType getType() { + if (type == null) { + return TypeType.SIMPLE; + } else { + return type; } - - /** - * Gets the value of the arcrole property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getArcrole() { - return arcrole; - } - - /** - * Sets the value of the arcrole property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setArcrole(String value) { - this.arcrole = value; - } - - /** - * Gets the value of the title property. - * - * @return - * possible object is - * {@link String } - * - */ - public String getTitle() { - return title; - } - - /** - * Sets the value of the title property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setTitle(String value) { - this.title = value; - } - - /** - * Gets the value of the show property. - * - * @return - * possible object is - * {@link ShowType } - * - */ - public ShowType getShow() { - return show; - } - - /** - * Sets the value of the show property. - * - * @param value - * allowed object is - * {@link ShowType } - * - */ - public void setShow(ShowType value) { - this.show = value; - } - - /** - * Gets the value of the actuate property. - * - * @return - * possible object is - * {@link ActuateType } - * - */ - public ActuateType getActuate() { - return actuate; - } - - /** - * Sets the value of the actuate property. - * - * @param value - * allowed object is - * {@link ActuateType } - * - */ - public void setActuate(ActuateType value) { - this.actuate = value; - } - + } + + /** + * Sets the value of the type property. + * + * @param value allowed object is {@link TypeType } + */ + public void setType(TypeType value) { + this.type = value; + } + + /** + * Gets the value of the href property. + * + * @return possible object is {@link String } + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value allowed object is {@link String } + */ + public void setHref(String value) { + this.href = value; + } + + /** + * Gets the value of the role property. + * + * @return possible object is {@link String } + */ + public String getRole() { + return role; + } + + /** + * Sets the value of the role property. + * + * @param value allowed object is {@link String } + */ + public void setRole(String value) { + this.role = value; + } + + /** + * Gets the value of the arcrole property. + * + * @return possible object is {@link String } + */ + public String getArcrole() { + return arcrole; + } + + /** + * Sets the value of the arcrole property. + * + * @param value allowed object is {@link String } + */ + public void setArcrole(String value) { + this.arcrole = value; + } + + /** + * Gets the value of the title property. + * + * @return possible object is {@link String } + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value allowed object is {@link String } + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the show property. + * + * @return possible object is {@link ShowType } + */ + public ShowType getShow() { + return show; + } + + /** + * Sets the value of the show property. + * + * @param value allowed object is {@link ShowType } + */ + public void setShow(ShowType value) { + this.show = value; + } + + /** + * Gets the value of the actuate property. + * + * @return possible object is {@link ActuateType } + */ + public ActuateType getActuate() { + return actuate; + } + + /** + * Sets the value of the actuate property. + * + * @param value allowed object is {@link ActuateType } + */ + public void setActuate(ActuateType value) { + this.actuate = value; + } } diff --git a/src/main/java/org/w3/_1999/xlink/TitleEltType.java b/src/main/java/org/w3/_1999/xlink/TitleEltType.java index 758285d..33160c0 100644 --- a/src/main/java/org/w3/_1999/xlink/TitleEltType.java +++ b/src/main/java/org/w3/_1999/xlink/TitleEltType.java @@ -1,28 +1,26 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package org.w3._1999.xlink; -import java.util.ArrayList; -import java.util.List; import jakarta.xml.bind.annotation.XmlAccessType; import jakarta.xml.bind.annotation.XmlAccessorType; import jakarta.xml.bind.annotation.XmlAnyElement; import jakarta.xml.bind.annotation.XmlAttribute; import jakarta.xml.bind.annotation.XmlMixed; import jakarta.xml.bind.annotation.XmlType; +import java.util.ArrayList; +import java.util.List; import org.w3c.dom.Element; - /** - *

Java class for titleEltType complex type. - * + * Java class for titleEltType complex type. + * *

The following schema fragment specifies the expected content contained within this class. - * + * *

{@code
  * 
  *   
@@ -33,110 +31,91 @@
  *   
  * 
  * }
- * - * */ @XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "titleEltType", propOrder = { - "content" -}) +@XmlType( + name = "titleEltType", + propOrder = {"content"}) public class TitleEltType { - @XmlMixed - @XmlAnyElement(lax = true) - protected List content; - @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink", required = true) - protected TypeType type; - @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") - protected String lang; + @XmlMixed + @XmlAnyElement(lax = true) + protected List content; - /** - * Gets the value of the content property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the Jakarta XML Binding object. - * This is why there is not a {@code set} method for the content property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getContent().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link Object } - * {@link String } - * {@link Element } - * - * - * @return - * The value of the content property. - */ - public List getContent() { - if (content == null) { - content = new ArrayList<>(); - } - return this.content; - } + @XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink", required = true) + protected TypeType type; - /** - * Gets the value of the type property. - * - * @return - * possible object is - * {@link TypeType } - * - */ - public TypeType getType() { - if (type == null) { - return TypeType.TITLE; - } else { - return type; - } - } + /** + * xml:lang is not required, but provides much of the motivation for title elements in addition to + * attributes, and so is provided here for convenience. + */ + @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") + protected String lang; - /** - * Sets the value of the type property. - * - * @param value - * allowed object is - * {@link TypeType } - * - */ - public void setType(TypeType value) { - this.type = value; + /** + * Gets the value of the content property. + * + *

This accessor method returns a reference to the live list, not a snapshot. Therefore any + * modification you make to the returned list will be present inside the JAXB object. This is why + * there is not a set method for the content property. + * + *

For example, to add a new item, do as follows: + * + *

+   * getContent().add(newItem);
+   * 
+ * + *

Objects of the following type(s) are allowed in the list {@link Object } {@link String } + * {@link Element } + * + * @return The value of the content property. + */ + public List getContent() { + if (content == null) { + content = new ArrayList<>(); } + return this.content; + } - /** - * - * xml:lang is not required, but provides much of the - * motivation for title elements in addition to attributes, and so - * is provided here for convenience. - * - * - * @return - * possible object is - * {@link String } - * - */ - public String getLang() { - return lang; + /** + * Gets the value of the type property. + * + * @return possible object is {@link TypeType } + */ + public TypeType getType() { + if (type == null) { + return TypeType.TITLE; + } else { + return type; } + } - /** - * Sets the value of the lang property. - * - * @param value - * allowed object is - * {@link String } - * - */ - public void setLang(String value) { - this.lang = value; - } + /** + * Sets the value of the type property. + * + * @param value allowed object is {@link TypeType } + */ + public void setType(TypeType value) { + this.type = value; + } + + /** + * xml:lang is not required, but provides much of the motivation for title elements in addition to + * attributes, and so is provided here for convenience. + * + * @return possible object is {@link String } + */ + public String getLang() { + return lang; + } + /** + * Sets the value of the lang property. + * + * @param value allowed object is {@link String } + * @see #getLang() + */ + public void setLang(String value) { + this.lang = value; + } } diff --git a/src/main/java/org/w3/_1999/xlink/TypeType.java b/src/main/java/org/w3/_1999/xlink/TypeType.java index 766940f..e90bfe9 100644 --- a/src/main/java/org/w3/_1999/xlink/TypeType.java +++ b/src/main/java/org/w3/_1999/xlink/TypeType.java @@ -1,21 +1,20 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // - package org.w3._1999.xlink; import jakarta.xml.bind.annotation.XmlEnum; import jakarta.xml.bind.annotation.XmlEnumValue; import jakarta.xml.bind.annotation.XmlType; - /** - *

Java class for typeType. - * + * Java class for typeType. + * *

The following schema fragment specifies the expected content contained within this class. + * *

{@code
  * 
  *   
@@ -28,41 +27,50 @@
  *   
  * 
  * }
- * */ @XmlType(name = "typeType") @XmlEnum public enum TypeType { + @XmlEnumValue("simple") + SIMPLE("simple"), + @XmlEnumValue("extended") + EXTENDED("extended"), + @XmlEnumValue("title") + TITLE("title"), + @XmlEnumValue("resource") + RESOURCE("resource"), + @XmlEnumValue("locator") + LOCATOR("locator"), + @XmlEnumValue("arc") + ARC("arc"); + private final String value; - @XmlEnumValue("simple") - SIMPLE("simple"), - @XmlEnumValue("extended") - EXTENDED("extended"), - @XmlEnumValue("title") - TITLE("title"), - @XmlEnumValue("resource") - RESOURCE("resource"), - @XmlEnumValue("locator") - LOCATOR("locator"), - @XmlEnumValue("arc") - ARC("arc"); - private final String value; - - TypeType(String v) { - value = v; - } + TypeType(String v) { + value = v; + } - public String value() { - return value; - } + /** + * Gets the value associated to the enum constant. + * + * @return The value linked to the enum. + */ + public String value() { + return value; + } - public static TypeType fromValue(String v) { - for (TypeType c: TypeType.values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v); + /** + * Gets the enum associated to the value passed as parameter. + * + * @param v The value to get the enum from. + * @return The enum which corresponds to the value, if it exists. + * @throws IllegalArgumentException If no value matches in the enum declaration. + */ + public static TypeType fromValue(String v) { + for (TypeType c : TypeType.values()) { + if (c.value.equals(v)) { + return c; + } } - + throw new IllegalArgumentException(v); + } } diff --git a/src/main/java/org/w3/_1999/xlink/package-info.java b/src/main/java/org/w3/_1999/xlink/package-info.java index 40e9fbd..a517977 100644 --- a/src/main/java/org/w3/_1999/xlink/package-info.java +++ b/src/main/java/org/w3/_1999/xlink/package-info.java @@ -1,8 +1,10 @@ // -// This file was generated by the Eclipse Implementation of JAXB, v4.0.2 -// See https://eclipse-ee4j.github.io/jaxb-ri -// Any modifications to this file will be lost upon recompilation of the source schema. +// This file was generated by the Eclipse Implementation of JAXB, v4.0.5 +// See https://eclipse-ee4j.github.io/jaxb-ri +// Any modifications to this file will be lost upon recompilation of the source schema. // -@jakarta.xml.bind.annotation.XmlSchema(namespace = "http://www.w3.org/1999/xlink", elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED) +@jakarta.xml.bind.annotation.XmlSchema( + namespace = "http://www.w3.org/1999/xlink", + elementFormDefault = jakarta.xml.bind.annotation.XmlNsForm.QUALIFIED) package org.w3._1999.xlink; diff --git a/src/main/resources/seda-2.2/binding.xjb b/src/main/resources/seda-2.2/binding.xjb index 46e1d50..b0d8c3f 100644 --- a/src/main/resources/seda-2.2/binding.xjb +++ b/src/main/resources/seda-2.2/binding.xjb @@ -13,70 +13,87 @@ - + - - + + + - + name="DataObjectRef"/> - + name="ArchiveUnit"/> - + name="ArchiveTransfer"/> + + name="DataObjectPackage"/> + + + + + + + + + + + + + + + + + - - - diff --git a/src/main/resources/seda-2.2/readme.txt b/src/main/resources/seda-2.2/readme.txt new file mode 100644 index 0000000..899ba7d --- /dev/null +++ b/src/main/resources/seda-2.2/readme.txt @@ -0,0 +1 @@ + Generate the classes with maven diff --git a/src/main/resources/seda-2.2/seda-vitam-main.xsd b/src/main/resources/seda-2.2/seda-vitam-main.xsd index c964575..af907fd 100644 --- a/src/main/resources/seda-2.2/seda-vitam-main.xsd +++ b/src/main/resources/seda-2.2/seda-vitam-main.xsd @@ -135,11 +135,13 @@ + + diff --git a/src/test/java/fr/xelians/sipg/SipFactory.java b/src/test/java/fr/xelians/sipg/SipFactory.java index ab5e0c6..a816b0a 100644 --- a/src/test/java/fr/xelians/sipg/SipFactory.java +++ b/src/test/java/fr/xelians/sipg/SipFactory.java @@ -103,7 +103,7 @@ public static ArchiveTransfer createWithoutAgencySip() { * Create json string. * * @return the string - * @throws IOException the io exception + * @throws IOException the io exception * @throws TemplateException the template exception */ public static String createJsonString() throws IOException, TemplateException { @@ -135,28 +135,27 @@ public static ArchiveTransfer createCsvSip() throws IOException { archiveTransfer.setArchivalAgency("AG001", "My Archive Agency"); archiveTransfer.setTransferringAgency("AG002", "My Transfer Agency"); - //association d'une valeur à une autre. clé = String et valeur = ArchiveUnit + // association d'une valeur à une autre. clé = String et valeur = ArchiveUnit HashMap map = new HashMap<>(); try (BufferedReader reader = Files.newBufferedReader(csvPath)) { CSVParser parser = CSVFormat.DEFAULT.builder().setDelimiter(';').build().parse(reader); - for (CSVRecord record : parser) { + for (CSVRecord csvRecord : parser) { ArchiveUnit unit = new ArchiveUnit(); - unit.setBinaryPath(Paths.get(TestInit.TEST_RESOURCES + record.get(2))); + unit.setBinaryPath(Paths.get(TestInit.TEST_RESOURCES + csvRecord.get(2))); unit.setDescriptionLevel("File"); - unit.addTitle(record.get(3)); - unit.addTag(record.get(4)); + unit.addTitle(csvRecord.get(3)); + unit.addTag(csvRecord.get(4)); - String parentId = record.get(1); + String parentId = csvRecord.get(1); if (parentId.isEmpty()) { archiveTransfer.addArchiveUnit(unit); } else { ArchiveUnit parentUnit = map.get(parentId); parentUnit.addArchiveUnit(unit); } - map.put(record.get(0), unit); - + map.put(csvRecord.get(0), unit); } } @@ -177,7 +176,8 @@ public static ArchiveTransfer createFullTextSip() { unit.addTitle("Citizen Four", "en"); unit.addDescription(TestUtils.extractTextFromPDF(binaryPath), "en"); - unit.addWriter(AgentBuilder.builder().withFullName("Marie-Sarah Deviller").addNationality("Fr").build()); + unit.addWriter( + AgentBuilder.builder().withFullName("Marie-Sarah Deviller").addNationality("Fr").build()); unit.addLanguage("en"); unit.setDescriptionLanguage("en"); @@ -278,8 +278,7 @@ public static ArchiveTransfer createSipFullVitam() { unit1.addTag("juste de l'indexation"); unit1.addSystemId("SystemId"); - //Règles de gestion - //unit1.setAccessRule("AR038", today); + // Règles de gestion AccessRules accessRule = new AccessRules(); accessRule.addRule("AR038", today); unit1.setAccessRules(accessRule); @@ -289,14 +288,18 @@ public static ArchiveTransfer createSipFullVitam() { appraisalRule.setFinalAction("Destroy"); unit1.setAppraisalRules(appraisalRule); - //AgentType - unit1.addWriter(AgentBuilder.builder() - .withFirstName("Baptiste").withFullName("Nichele").withBirthDate(LocalDate.ofEpochDay(0)) - .addActivity("Consultant").addFunction("Tech") - .withBirthPlace(PlaceBuilder.builder().withCountry("France").withCity("Paris").build()) - .build()); - - //Extension d'ontologie + // AgentType + unit1.addWriter( + AgentBuilder.builder() + .withFirstName("Baptiste") + .withFullName("Nichele") + .withBirthDate(LocalDate.ofEpochDay(0)) + .addActivity("Consultant") + .addFunction("Tech") + .withBirthPlace(PlaceBuilder.builder().withCountry("France").withCity("Paris").build()) + .build()); + + // Extension d'ontologie Element extended = new Element("Extended", "Ontology extend 1"); extended.addAttribute("Id", "attribute1"); unit1.addElement(extended); @@ -315,8 +318,12 @@ public static ArchiveTransfer createSipFullVitam() { unit3.setFormatName("PDF"); unit3.setMimeType("application/pdf"); unit3.setSignatureStatus("True"); - unit3.setFileInfo(FileInfoBuilder.builder().withFilename("FileName.pdf").withLastModified(todaytime) - .withCreatingApplicationName("PdfBox").build()); + unit3.setFileInfo( + FileInfoBuilder.builder() + .withFilename("FileName.pdf") + .withLastModified(todaytime) + .withCreatingApplicationName("PdfBox") + .build()); unit3.addTitle("AU binaryObject"); unit3.setUpdateOperation(new UpdateOperation("mySystemId")); @@ -381,7 +388,8 @@ public static ArchiveTransfer createComplexSip(FileSystem fs) { ArchiveUnit unit1 = new ArchiveUnit(); - UpdateOperation updateOperation = new UpdateOperation("CleDeRattachement", "ValeurDeRattachement"); + UpdateOperation updateOperation = + new UpdateOperation("CleDeRattachement", "ValeurDeRattachement"); unit1.setUpdateOperation(updateOperation); unit1.setPhysicalId("physical-0001"); @@ -433,20 +441,41 @@ public static ArchiveTransfer createComplexSip(FileSystem fs) { LocalDateTime todaytime = LocalDateTime.now(); - Event event1 = EventBuilder.builder().withDateTime(todaytime).withDetail("MyDetails1") - .withDetailData("MyDetailsData1").withIdentifier("MyIdentifier1") - .withOutcome("MyOutcome1").withOutcomeDetail("MyOutcomeDetail1").withType("MyType1") - .withTypeCode("MyTypeCode1").build(); - - Event event2 = EventBuilder.builder().withDateTime(todaytime).withDetail("MyDetails2") - .withDetailData("MyDetailsData2").withIdentifier("MyIdentifier2") - .withOutcome("MyOutcome2").withOutcomeDetail("MyOutcomeDetail2").withType("MyType2") - .withTypeCode("MyTypeCode2").build(); - - Event event3 = EventBuilder.builder().withDateTime(todaytime).withDetail("MyDetails3") - .withDetailData("MyDetailsData3").withIdentifier("MyIdentifier3") - .withOutcome("MyOutcome3").withOutcomeDetail("MyOutcomeDetail3").withType("MyType3") - .withTypeCode("MyTypeCode3").build(); + Event event1 = + EventBuilder.builder() + .withDateTime(todaytime) + .withDetail("MyDetails1") + .withDetailData("MyDetailsData1") + .withIdentifier("MyIdentifier1") + .withOutcome("MyOutcome1") + .withOutcomeDetail("MyOutcomeDetail1") + .withType("MyType1") + .withTypeCode("MyTypeCode1") + .build(); + + Event event2 = + EventBuilder.builder() + .withDateTime(todaytime) + .withDetail("MyDetails2") + .withDetailData("MyDetailsData2") + .withIdentifier("MyIdentifier2") + .withOutcome("MyOutcome2") + .withOutcomeDetail("MyOutcomeDetail2") + .withType("MyType2") + .withTypeCode("MyTypeCode2") + .build(); + + Event event3 = + EventBuilder.builder() + .withDateTime(todaytime) + .withDetail("MyDetails3") + .withDetailData("MyDetailsData3") + .withIdentifier("MyIdentifier3") + .withOutcome("MyOutcome3") + .withOutcomeDetail("MyOutcomeDetail3") + .withType("MyType3") + .withTypeCode("MyTypeCode3") + .build(); unit1.addLogEvent(event1); unit1.addLogEvent(event2); @@ -469,13 +498,23 @@ public static ArchiveTransfer createComplexSip(FileSystem fs) { unit1.setOriginatingAgency(oriAgency); unit1.setSubmissionAgency(new Agency("AG001", "My Archive Agency")); - unit1.addAddressee(AgentBuilder.builder() - .withFirstName("Marc").withFullName("Lavolle").withBirthDate(today) - .addActivity("Sword").addFunction("Jedi") - .withBirthPlace( - PlaceBuilder.builder().withAddress("19 Holliday Street").withGeogName("GEOName").withPostalCode("94300") - .withRegion("Oregon").withCountry("USA").withCity("NY").build()) - .build()); + unit1.addAddressee( + AgentBuilder.builder() + .withFirstName("Marc") + .withFullName("Lavolle") + .withBirthDate(today) + .addActivity("Sword") + .addFunction("Jedi") + .withBirthPlace( + PlaceBuilder.builder() + .withAddress("19 Holliday Street") + .withGeogName("GEOName") + .withPostalCode("94300") + .withRegion("Oregon") + .withCountry("USA") + .withCity("NY") + .build()) + .build()); unit1.setSource("My Source1"); @@ -489,28 +528,44 @@ public static ArchiveTransfer createComplexSip(FileSystem fs) { unit2.setVersion("BinaryMaster_1"); unit2.setFormatId("fmt/18"); unit2.setFormatName("Portable Document Format"); - unit2.setFileInfo(FileInfoBuilder.builder().withFilename("MyFile.pdf").withLastModified(todaytime) - .withCreatingApplicationName("PdfBox").build()); + unit2.setFileInfo( + FileInfoBuilder.builder() + .withFilename("MyFile.pdf") + .withLastModified(todaytime) + .withCreatingApplicationName("PdfBox") + .build()); unit2.setDisseminationPath(binaryPath2); unit2.setDisseminationFormatId("fmt/18"); unit2.setDisseminationFormatName("Portable Document Format"); - unit2.setDisseminationFileInfo(FileInfoBuilder.builder().withFilename("MyFile.pdf").withLastModified(todaytime) - .withCreatingApplicationName("PdfBoxDissemination").build()); + unit2.setDisseminationFileInfo( + FileInfoBuilder.builder() + .withFilename("MyFile.pdf") + .withLastModified(todaytime) + .withCreatingApplicationName("PdfBoxDissemination") + .build()); unit2.setThumbnailPath(binaryPath2); unit2.setThumbnailVersion("Thumbnail_2"); unit2.setThumbnailFormatId("fmt/18"); unit2.setThumbnailFormatName("Portable Document Format"); - unit2.setThumbnailFileInfo(FileInfoBuilder.builder().withFilename("MyFile.pdf").withLastModified(todaytime) - .withCreatingApplicationName("PdfBoxThumbnail").build()); + unit2.setThumbnailFileInfo( + FileInfoBuilder.builder() + .withFilename("MyFile.pdf") + .withLastModified(todaytime) + .withCreatingApplicationName("PdfBoxThumbnail") + .build()); unit2.setTextContentPath(binaryPath2); unit2.setTextContentVersion("TextContent_1"); unit2.setTextContentFormatId("pdf"); unit2.setTextContentFormatName("Portable Document Format"); - unit2.setTextContentFileInfo(FileInfoBuilder.builder().withFilename("MyFile.pdf").withLastModified(todaytime) - .withCreatingApplicationName("PdfBoxTextContent").build()); + unit2.setTextContentFileInfo( + FileInfoBuilder.builder() + .withFilename("MyFile.pdf") + .withLastModified(todaytime) + .withCreatingApplicationName("PdfBoxTextContent") + .build()); unit2.setSignatureStatus("No Signature"); @@ -547,53 +602,104 @@ public static ArchiveTransfer createComplexSip(FileSystem fs) { unit2.addTag("MyKey22", "MyValue22"); unit2.addTag("MyValue23"); - unit2.addAuthorizedAgent(AgentBuilder.builder() - .withFirstName("Jacques").withFullName("Terner").withBirthDate(today) - .withBirthName("Jacky Ho").withGivenName("Joe").withGender("Male").addIdentifier("JH") - .withDeathDate(today) - .addActivity("Controller").addFunction("BOSS").addPosition("High") - .addNationality("French").addRole("SmallBoss").addMandate("Mandataire") - .withBirthPlace(PlaceBuilder.builder().withAddress("MyAddress").withGeogName("LND") - .withRegion("Sussex").withPostalCode("98765").withCountry("England").withCity("London").build()) - .withDeathPlace(PlaceBuilder.builder().withAddress("MyAddress").withGeogName("PRS") - .withRegion("Seine").withPostalCode("75012").withCountry("France").withCity("Paris").build()) - .build()); - - unit2.addWriter(AgentBuilder.builder() - .withFirstName("Emmanuel").withFullName("Deviller").withBirthDate(today) - .addActivity("Developper").addFunction("CTO") - .withBirthPlace(PlaceBuilder.builder().withCountry("France").withCity("Paris").build()) - .build()); - - unit2.addWriter(AgentBuilder.builder() - .withFirstName("Baptiste").withFullName("Nichele").withBirthDate(today) - .addActivity("Consultant").addFunction("Expert") - .withBirthPlace(PlaceBuilder.builder().withCountry("Germany").withCity("Baden-Baden").build()) - .build()); - - unit2.addAddressee(AgentBuilder.builder() - .withFirstName("Marc").withFullName("Lavolle").withBirthDate(today) - .addActivity("Sword").addFunction("Jedi") - .withBirthPlace(PlaceBuilder.builder().withCountry("USA").withCity("NY").build()) - .build()); - - unit2.addRecipient(AgentBuilder.builder() - .withFirstName("Tom").withFullName("Johns").withBirthDate(today) - .addActivity("Sword").addFunction("Guerrier") - .withBirthPlace(PlaceBuilder.builder().withCountry("USA").withCity("NY").build()) - .build()); - - unit2.addTransmitter(AgentBuilder.builder() - .withFirstName("Jacques").withFullName("Garel").withBirthDate(today) - .addActivity("Lance").addFunction("Magicien") - .withBirthPlace(PlaceBuilder.builder().withCountry("Espagne").withCity("Madrid").build()) - .build()); - - unit2.addSender(AgentBuilder.builder() - .withFirstName("Ben").withFullName("Targatien").withBirthDate(today) - .addActivity("Dague").addFunction("Voleur") - .withBirthPlace(PlaceBuilder.builder().withCountry("Royaume-Uni").withCity("Londres").build()) - .build()); + unit2.addAuthorizedAgent( + AgentBuilder.builder() + .withFirstName("Jacques") + .withFullName("Terner") + .withBirthDate(today) + .withBirthName("Jacky Ho") + .withGivenName("Joe") + .withGender("Male") + .addIdentifier("JH") + .withDeathDate(today) + .addActivity("Controller") + .addFunction("BOSS") + .addPosition("High") + .addNationality("French") + .addRole("SmallBoss") + .addMandate("Mandataire") + .withBirthPlace( + PlaceBuilder.builder() + .withAddress("MyAddress") + .withGeogName("LND") + .withRegion("Sussex") + .withPostalCode("98765") + .withCountry("England") + .withCity("London") + .build()) + .withDeathPlace( + PlaceBuilder.builder() + .withAddress("MyAddress") + .withGeogName("PRS") + .withRegion("Seine") + .withPostalCode("75012") + .withCountry("France") + .withCity("Paris") + .build()) + .build()); + + unit2.addWriter( + AgentBuilder.builder() + .withFirstName("Emmanuel") + .withFullName("Deviller") + .withBirthDate(today) + .addActivity("Developper") + .addFunction("CTO") + .withBirthPlace(PlaceBuilder.builder().withCountry("France").withCity("Paris").build()) + .build()); + + unit2.addWriter( + AgentBuilder.builder() + .withFirstName("Baptiste") + .withFullName("Nichele") + .withBirthDate(today) + .addActivity("Consultant") + .addFunction("Expert") + .withBirthPlace( + PlaceBuilder.builder().withCountry("Germany").withCity("Baden-Baden").build()) + .build()); + + unit2.addAddressee( + AgentBuilder.builder() + .withFirstName("Marc") + .withFullName("Lavolle") + .withBirthDate(today) + .addActivity("Sword") + .addFunction("Jedi") + .withBirthPlace(PlaceBuilder.builder().withCountry("USA").withCity("NY").build()) + .build()); + + unit2.addRecipient( + AgentBuilder.builder() + .withFirstName("Tom") + .withFullName("Johns") + .withBirthDate(today) + .addActivity("Sword") + .addFunction("Guerrier") + .withBirthPlace(PlaceBuilder.builder().withCountry("USA").withCity("NY").build()) + .build()); + + unit2.addTransmitter( + AgentBuilder.builder() + .withFirstName("Jacques") + .withFullName("Garel") + .withBirthDate(today) + .addActivity("Lance") + .addFunction("Magicien") + .withBirthPlace( + PlaceBuilder.builder().withCountry("Espagne").withCity("Madrid").build()) + .build()); + + unit2.addSender( + AgentBuilder.builder() + .withFirstName("Ben") + .withFullName("Targatien") + .withBirthDate(today) + .addActivity("Dague") + .addFunction("Voleur") + .withBirthPlace( + PlaceBuilder.builder().withCountry("Royaume-Uni").withCity("Londres").build()) + .build()); Element e1 = new Element("MyExtTag1", "MyExtValue1"); e1.addAttribute("attr1", "val1"); @@ -637,17 +743,29 @@ public static ArchiveTransfer createComplexSip(FileSystem fs) { aRule3.setFinalAction("Keep"); unit3.setAppraisalRules(aRule3); - Signer signer = SignerBuilder.builder() - .withFirstName("Marc").withFullName("Lavolle").withBirthDate(today) - .addActivity("Sword").addFunction("Jedi").addMandate("Signer") - .withBirthPlace(PlaceBuilder.builder().withCountry("USA").withCity("NY").build()) - .withSigningTime(todaytime).build(); - - Validator validator = ValidatorBuilder.builder() - .withFirstName("Marc").withFullName("Lavolle").withBirthDate(today) - .addActivity("Sword").addFunction("Jedi").addMandate("Validator") - .withBirthPlace(PlaceBuilder.builder().withCountry("USA").withCity("NY").build()) - .withValidationTime(todaytime).build(); + Signer signer = + SignerBuilder.builder() + .withFirstName("Marc") + .withFullName("Lavolle") + .withBirthDate(today) + .addActivity("Sword") + .addFunction("Jedi") + .addMandate("Signer") + .withBirthPlace(PlaceBuilder.builder().withCountry("USA").withCity("NY").build()) + .withSigningTime(todaytime) + .build(); + + Validator validator = + ValidatorBuilder.builder() + .withFirstName("Marc") + .withFullName("Lavolle") + .withBirthDate(today) + .addActivity("Sword") + .addFunction("Jedi") + .addMandate("Validator") + .withBirthPlace(PlaceBuilder.builder().withCountry("USA").withCity("NY").build()) + .withValidationTime(todaytime) + .build(); Signature signature = new Signature(); signature.addSigner(signer); @@ -773,4 +891,481 @@ public static ArchiveTransfer createDeepSip(FileSystem fs) { } return archiveTransfer; } + + /** + * Create simple sip archive transfer. + * + * @param fs the fs + * @return the archive transfer + */ + public static ArchiveDeliveryRequestReply createComplexDelivery(FileSystem fs) { + Path binaryPath1 = fs.getPath("helloworld_1.pdf"); + TestUtils.createPdf("Hello World 1", binaryPath1); + + Path binaryPath2 = fs.getPath("helloworld_2.pdf"); + TestUtils.createPdf("Hello World 2", binaryPath2); + + ArchiveUnit unit1 = new ArchiveUnit(); + + UpdateOperation updateOperation = + new UpdateOperation("CleDeRattachement", "ValeurDeRattachement"); + unit1.setUpdateOperation(updateOperation); + + unit1.setPhysicalId("physical-0001"); + unit1.setPhysicalVersion("PhysicalMaster_1"); + unit1.setMeasure(26); + + LocalDate today = LocalDate.now(); + unit1.setAccessRules("AccessRule", today); + + AppraisalRules aRule1 = new AppraisalRules(); + aRule1.addRule("RuleName a1", today); + aRule1.addRule("RuleName a2", today); + aRule1.addRule("RuleName a3", today); + aRule1.setPreventInheritance(true); + aRule1.setFinalAction("Destroy"); + unit1.setAppraisalRules(aRule1); + + StorageRules sRule1 = new StorageRules(); + sRule1.addRule("RuleName s1", today); + sRule1.addRule("RuleName s2", today); + sRule1.addRule("RuleName s3", today); + sRule1.setPreventInheritance(false); + sRule1.setFinalAction("Copy"); + unit1.setStorageRules(sRule1); + + DisseminationRules dRule1 = new DisseminationRules(); + dRule1.addRule("RuleName d1", today); + dRule1.addRule("RuleName d2", today); + dRule1.addRule("RuleName d3", today); + dRule1.addPreventRuleName("RuleName d4"); + dRule1.addPreventRuleName("RuleName d5"); + unit1.setDisseminationRules(dRule1); + + ReuseRules rRule1 = new ReuseRules(); + rRule1.addRule("RuleName r1", today); + rRule1.addRule("RuleName r2", today); + rRule1.addRule("RuleName r3", today); + rRule1.addPreventRuleName("RuleName r4"); + rRule1.addPreventRuleName("RuleName r5"); + unit1.setReuseRules(rRule1); + + HoldRules hRule1 = new HoldRules(); + hRule1.addRule("RuleName h1", today, today, "MySelf1", "Maybe1", today, false); + hRule1.addRule("RuleName h2", today, today, "MySelf2", null, today, false); + hRule1.addRule("RuleName h3", today, today, "MySelf3", "Maybe3", null, false); + hRule1.addPreventRuleName("RuleName r4"); + hRule1.addPreventRuleName("RuleName r5"); + unit1.setHoldRules(hRule1); + + LocalDateTime todaytime = LocalDateTime.now(); + + Event event1 = + EventBuilder.builder() + .withDateTime(todaytime) + .withDetail("MyDetails1") + .withDetailData("MyDetailsData1") + .withIdentifier("MyIdentifier1") + .withOutcome("MyOutcome1") + .withOutcomeDetail("MyOutcomeDetail1") + .withType("MyType1") + .withTypeCode("MyTypeCode1") + .build(); + + Event event2 = + EventBuilder.builder() + .withDateTime(todaytime) + .withDetail("MyDetails2") + .withDetailData("MyDetailsData2") + .withIdentifier("MyIdentifier2") + .withOutcome("MyOutcome2") + .withOutcomeDetail("MyOutcomeDetail2") + .withType("MyType2") + .withTypeCode("MyTypeCode2") + .build(); + + Event event3 = + EventBuilder.builder() + .withDateTime(todaytime) + .withDetail("MyDetails3") + .withDetailData("MyDetailsData3") + .withIdentifier("MyIdentifier3") + .withOutcome("MyOutcome3") + .withOutcomeDetail("MyOutcomeDetail3") + .withType("MyType3") + .withTypeCode("MyTypeCode3") + .build(); + + unit1.addLogEvent(event1); + unit1.addLogEvent(event2); + unit1.addLogEvent(event3); + + unit1.setDocumentType("DOC001"); + + unit1.addCustodialItem("My Message1", todaytime); + unit1.addCustodialItem("My Message2", todaytime); + + unit1.addSystemId("000001"); + unit1.addTitle("MyTitle1"); + unit1.addTag("MyKey11", "MyValue11"); + unit1.addTag("MyKey12", "MyValue12"); + unit1.addTag("MyValue13"); + + Agency oriAgency = new Agency("AG002", "My Transfer Agency"); + oriAgency.addElement("Address", "Rue de la Jarry - Vincennes"); + + unit1.setOriginatingAgency(oriAgency); + unit1.setSubmissionAgency(new Agency("AG001", "My Archive Agency")); + + unit1.addAddressee( + AgentBuilder.builder() + .withFirstName("Marc") + .withFullName("Lavolle") + .withBirthDate(today) + .addActivity("Sword") + .addFunction("Jedi") + .withBirthPlace( + PlaceBuilder.builder() + .withAddress("19 Holliday Street") + .withGeogName("GEOName") + .withPostalCode("94300") + .withRegion("Oregon") + .withCountry("USA") + .withCity("NY") + .build()) + .build()); + + unit1.setSource("My Source1"); + + ArchiveUnit unit2 = new ArchiveUnit(); + unit2.setPhysicalId("physical-0002"); + unit2.setVersion("Version2"); + unit2.setPhysicalVersion("PhysicalMaster_1"); + unit2.setMeasure(236); + + unit2.setBinaryPath(binaryPath1); + unit2.setVersion("BinaryMaster_1"); + unit2.setFormatId("fmt/18"); + unit2.setFormatName("Portable Document Format"); + unit2.setFileInfo( + FileInfoBuilder.builder() + .withFilename("MyFile.pdf") + .withLastModified(todaytime) + .withCreatingApplicationName("PdfBox") + .build()); + + unit2.setDisseminationPath(binaryPath2); + unit2.setDisseminationFormatId("fmt/18"); + unit2.setDisseminationFormatName("Portable Document Format"); + unit2.setDisseminationFileInfo( + FileInfoBuilder.builder() + .withFilename("MyFile.pdf") + .withLastModified(todaytime) + .withCreatingApplicationName("PdfBoxDissemination") + .build()); + + unit2.setThumbnailPath(binaryPath2); + unit2.setThumbnailVersion("Thumbnail_2"); + unit2.setThumbnailFormatId("fmt/18"); + unit2.setThumbnailFormatName("Portable Document Format"); + unit2.setThumbnailFileInfo( + FileInfoBuilder.builder() + .withFilename("MyFile.pdf") + .withLastModified(todaytime) + .withCreatingApplicationName("PdfBoxThumbnail") + .build()); + + unit2.setTextContentPath(binaryPath2); + unit2.setTextContentVersion("TextContent_1"); + unit2.setTextContentFormatId("pdf"); + unit2.setTextContentFormatName("Portable Document Format"); + unit2.setTextContentFileInfo( + FileInfoBuilder.builder() + .withFilename("MyFile.pdf") + .withLastModified(todaytime) + .withCreatingApplicationName("PdfBoxTextContent") + .build()); + + unit2.setSignatureStatus("No Signature"); + + AccessRules aRule2 = new AccessRules(); + aRule2.addRule("RuleName 1", today); + aRule2.addRule("RuleName 2", today); + aRule2.addRule("RuleName 3", today); + aRule2.addPreventRuleName("RuleName 4"); + aRule2.addPreventRuleName("RuleName 5"); + unit2.setAccessRules(aRule2); + + ClassificationRules cRule2 = new ClassificationRules(); + cRule2.addRule("RuleName 1", today); + cRule2.addRule("RuleName 2", today); + cRule2.addRule("RuleName 3", today); + cRule2.addPreventRuleName("RuleName 4"); + cRule2.addPreventRuleName("RuleName 5"); + cRule2.setClassificationAudience("EveryOne"); + cRule2.setClassificationOwner("Captain Deviller"); + cRule2.setClassificationLevel("TOP SECRET"); + cRule2.setClassificationReassessingDate(today); + cRule2.setNeedReassessingAuthorization(Boolean.FALSE); + unit2.setClassificationRules(cRule2); + + unit2.setGpsAltitude("60"); + unit2.setGpsLatitude("48.8534"); + unit2.setGpsLongitude("2.3488"); + + unit2.setArchiveUnitProfile("My Archive Unit Profile 2"); + unit2.setDocumentType("DOC002"); + unit2.addSystemId("000002"); + unit2.addTitle("MyTitle2"); + unit2.addTag("MyKey21", "MyValue21"); + unit2.addTag("MyKey22", "MyValue22"); + unit2.addTag("MyValue23"); + + unit2.addAuthorizedAgent( + AgentBuilder.builder() + .withFirstName("Jacques") + .withFullName("Terner") + .withBirthDate(today) + .withBirthName("Jacky Ho") + .withGivenName("Joe") + .withGender("Male") + .addIdentifier("JH") + .withDeathDate(today) + .addActivity("Controller") + .addFunction("BOSS") + .addPosition("High") + .addNationality("French") + .addRole("SmallBoss") + .addMandate("Mandataire") + .withBirthPlace( + PlaceBuilder.builder() + .withAddress("MyAddress") + .withGeogName("LND") + .withRegion("Sussex") + .withPostalCode("98765") + .withCountry("England") + .withCity("London") + .build()) + .withDeathPlace( + PlaceBuilder.builder() + .withAddress("MyAddress") + .withGeogName("PRS") + .withRegion("Seine") + .withPostalCode("75012") + .withCountry("France") + .withCity("Paris") + .build()) + .build()); + + unit2.addWriter( + AgentBuilder.builder() + .withFirstName("Emmanuel") + .withFullName("Deviller") + .withBirthDate(today) + .addActivity("Developper") + .addFunction("CTO") + .withBirthPlace(PlaceBuilder.builder().withCountry("France").withCity("Paris").build()) + .build()); + + unit2.addWriter( + AgentBuilder.builder() + .withFirstName("Baptiste") + .withFullName("Nichele") + .withBirthDate(today) + .addActivity("Consultant") + .addFunction("Expert") + .withBirthPlace( + PlaceBuilder.builder().withCountry("Germany").withCity("Baden-Baden").build()) + .build()); + + unit2.addAddressee( + AgentBuilder.builder() + .withFirstName("Marc") + .withFullName("Lavolle") + .withBirthDate(today) + .addActivity("Sword") + .addFunction("Jedi") + .withBirthPlace(PlaceBuilder.builder().withCountry("USA").withCity("NY").build()) + .build()); + + unit2.addRecipient( + AgentBuilder.builder() + .withFirstName("Tom") + .withFullName("Johns") + .withBirthDate(today) + .addActivity("Sword") + .addFunction("Guerrier") + .withBirthPlace(PlaceBuilder.builder().withCountry("USA").withCity("NY").build()) + .build()); + + unit2.addTransmitter( + AgentBuilder.builder() + .withFirstName("Jacques") + .withFullName("Garel") + .withBirthDate(today) + .addActivity("Lance") + .addFunction("Magicien") + .withBirthPlace( + PlaceBuilder.builder().withCountry("Espagne").withCity("Madrid").build()) + .build()); + + unit2.addSender( + AgentBuilder.builder() + .withFirstName("Ben") + .withFullName("Targatien") + .withBirthDate(today) + .addActivity("Dague") + .addFunction("Voleur") + .withBirthPlace( + PlaceBuilder.builder().withCountry("Royaume-Uni").withCity("Londres").build()) + .build()); + + Element e1 = new Element("MyExtTag1", "MyExtValue1"); + e1.addAttribute("attr1", "val1"); + e1.addAttribute("attr12", "val12"); + + Element e2 = new Element("MyExtTag2"); + e2.addAttribute("attr2", "val2"); + + Element e3 = new Element("MyExtTag3", "MyExtValue3"); + e2.addElement(e3); + + unit2.addElement(e1); + unit2.addElement(e2); + unit2.addElement("MyValue"); + + RelatedObjectRef ror = new RelatedObjectRef(); + ror.addVersionOf(new ArchiveUnitRef(unit1)); + ror.addVersionOf(new DataObjectRef(unit1)); + ror.addVersionOf(new RepositoryArchiveUnitPID("repo archive pid")); + ror.addVersionOf(new RepositoryObjectPID("repo object pid")); + ror.addVersionOf(new ExternalReference("Test external ref")); + unit2.setRelation(ror); + + unit1.addArchiveUnit(unit2); + + ArchiveUnit unit3 = new ArchiveUnit(); + unit3.setBinaryPath(binaryPath2); + unit3.setFormatId("pdf"); + unit3.setSignatureStatus("No Signature"); + unit3.setDocumentType("DOC003"); + unit3.addSystemId("000003"); + unit3.addTitle("MyTitle3"); + unit3.addTag("MyKey11", "MyValue11"); + unit3.addTag("MyValue13"); + unit3.setPhysicalId("physical-0001"); + + AppraisalRules aRule3 = new AppraisalRules(); + aRule3.addRule("RuleName 31", today); + aRule3.addRule("RuleName 32", today); + aRule3.setPreventInheritance(true); + aRule3.setFinalAction("Keep"); + unit3.setAppraisalRules(aRule3); + + Signer signer = + SignerBuilder.builder() + .withFirstName("Marc") + .withFullName("Lavolle") + .withBirthDate(today) + .addActivity("Sword") + .addFunction("Jedi") + .addMandate("Signer") + .withBirthPlace(PlaceBuilder.builder().withCountry("USA").withCity("NY").build()) + .withSigningTime(todaytime) + .build(); + + Validator validator = + ValidatorBuilder.builder() + .withFirstName("Marc") + .withFullName("Lavolle") + .withBirthDate(today) + .addActivity("Sword") + .addFunction("Jedi") + .addMandate("Validator") + .withBirthPlace(PlaceBuilder.builder().withCountry("USA").withCity("NY").build()) + .withValidationTime(todaytime) + .build(); + + Signature signature = new Signature(); + signature.addSigner(signer); + signature.setValidator(validator); + unit3.addSignature(signature); + + RelatedObjectRef relation = new RelatedObjectRef(); + relation.addRequire(new ArchiveUnitRef(unit1)); + relation.addPartOf(new ExternalReference("ExternalRef")); + relation.addReference(new RepositoryArchiveUnitPID("RepoArcUnitPid")); + relation.addReplace(new DataObjectRef(unit2)); + unit3.setRelation(relation); + + unit1.addArchiveUnit(unit3); + + CodeListVersions clvs = new CodeListVersions(); + clvs.setFileFormatCodeListVersion("Pronom Codes"); + clvs.setReplyCodeListVersion("Reply Codes"); + + ArchiveDeliveryRequestReply archiveDelivery = new ArchiveDeliveryRequestReply(); + archiveDelivery.setMessageIdentifier("MSG001"); + archiveDelivery.setDate(todaytime); + archiveDelivery.setComment("My Archive Transfer"); + archiveDelivery.setSignature("org.afnor.signformat.PKCS-7"); + archiveDelivery.setCodeListVersions(clvs); + archiveDelivery.setArchivalAgreement("My Archival Agreement"); + archiveDelivery.setArchivalAgency(new Agency("AG001", "My Archive Agency")); + archiveDelivery.setUnitIdentifier("UNKNOWN_UNIT"); + archiveDelivery.setMessageRequestIdentifier("REQ-0001"); + archiveDelivery.setReplyCode("OK"); + archiveDelivery.setRequester(new Agency("REQUESTER-001", "TheRequester")); + + archiveDelivery.addArchiveUnit(unit1); + return archiveDelivery; + } + + /** + * Create large sip archive transfer. + * + * @param fs the fs + * @return the archive transfer + */ + public static ArchiveDeliveryRequestReply createLargeDelivery(FileSystem fs) { + LocalDate today = LocalDate.now(); + LocalDateTime todaytime = LocalDateTime.now(); + + ArchiveDeliveryRequestReply archiveDelivery = new ArchiveDeliveryRequestReply(); + archiveDelivery.setMessageIdentifier("MSG001"); + archiveDelivery.setDate(todaytime); + archiveDelivery.setComment("My Archive Transfer"); + archiveDelivery.setArchivalAgreement("My Archival Agreement"); + archiveDelivery.setArchivalAgency(new Agency("AG001", "My Archive Agency")); + + archiveDelivery.setUnitIdentifier("UNKNOWN_UNIT"); + archiveDelivery.setMessageRequestIdentifier("REQ-0001"); + archiveDelivery.setReplyCode("OK"); + archiveDelivery.setRequester(new Agency("REQUESTER-001", null)); + + for (int i = 0; i < 100; i++) { + Path binaryPath = fs.getPath("helloworld_" + i + ".pdf"); + TestUtils.createPdfWithImage("Hello World " + i, binaryPath); + + ArchiveUnit unit = new ArchiveUnit(); + unit.setBinaryPath(binaryPath); + unit.setFormatId("pdf"); + unit.setSignatureStatus("No Signature"); + + unit.setAccessRules("AccessRule", today); + unit.setAppraisalRules("RuleName", today); + unit.getAppraisalRules().setDuration("P2DT12H30M0S"); + unit.getAppraisalRules().setFinalAction("Destroy"); + + unit.setDocumentType("DOC00" + i); + unit.addSystemId(String.valueOf(i)); + unit.addTitle("MyTitle " + i); + unit.addTag("MyKey1", "MyValue1_" + i); + unit.addTag("MyKey1", "MyValue1_" + i); + unit.addTag("MyValue13"); + + archiveDelivery.addArchiveUnit(unit); + } + return archiveDelivery; + } } diff --git a/src/test/java/fr/xelians/sipg/TestInit.java b/src/test/java/fr/xelians/sipg/TestInit.java index 30b90f3..dd2f446 100644 --- a/src/test/java/fr/xelians/sipg/TestInit.java +++ b/src/test/java/fr/xelians/sipg/TestInit.java @@ -33,14 +33,12 @@ */ public class TestInit implements BeforeAllCallback { - /** - * The constant TEST_RESOURCES. - */ + /** The constant TEST_RESOURCES. */ public static final String TEST_RESOURCES = "src/test/resources/"; - /** - * The constant TEST_RESULTS. - */ + + /** The constant TEST_RESULTS. */ public static final String TEST_RESULTS = "target/test-results/"; + private static final Logger LOGGER = LoggerFactory.getLogger(TestInit.class); @Override @@ -51,5 +49,4 @@ public void beforeAll(ExtensionContext context) throws Exception { Files.createDirectories(testDir); } } - } diff --git a/src/test/java/fr/xelians/sipg/TestUtils.java b/src/test/java/fr/xelians/sipg/TestUtils.java index a705d3f..c5e6d69 100644 --- a/src/test/java/fr/xelians/sipg/TestUtils.java +++ b/src/test/java/fr/xelians/sipg/TestUtils.java @@ -19,23 +19,19 @@ package fr.xelians.sipg; import fr.xelians.sipg.utils.SipException; - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.file.Files; import java.nio.file.Path; - import org.apache.commons.io.IOUtils; import org.apache.pdfbox.Loader; import org.apache.pdfbox.io.RandomAccessRead; import org.apache.pdfbox.io.RandomAccessReadBuffer; -import org.apache.pdfbox.io.RandomAccessReadBufferedFile; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.pdmodel.PDPage; import org.apache.pdfbox.pdmodel.PDPageContentStream; -import org.apache.pdfbox.pdmodel.font.PDFont; import org.apache.pdfbox.pdmodel.font.PDType1Font; import org.apache.pdfbox.pdmodel.font.Standard14Fonts; import org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject; @@ -51,20 +47,17 @@ */ public class TestUtils { - /** - * The constant TEST. - */ - public static final String TEST = "**************** Testing "; - /** - * The constant FAIL. - */ + /** The constant TEST. */ + public static final String TEST = "**************** Testing {}"; + + /** The constant FAIL. */ public static final String FAIL = "Fail to complete "; + private static final Logger LOGGER = LoggerFactory.getLogger(TestUtils.class); - private static final byte[] img100k = loadImage("100k.jpg") ; + private static final byte[] img100k = loadImage("100k.jpg"); - private TestUtils() { - } + private TestUtils() {} /** * Gets method. @@ -80,7 +73,7 @@ public static String getMethod(TestInfo testInfo) { * Create pdf. * * @param message the message - * @param path the path + * @param path the path */ public static void createPdf(String message, Path path) { createPdf(message, path, false); @@ -131,8 +124,8 @@ private static void createPdf(String message, Path path, boolean withImage) { public static String extractTextFromPDF(Path path) { try (InputStream is = Files.newInputStream(path); - RandomAccessRead rar = new RandomAccessReadBuffer(is); - PDDocument document = Loader.loadPDF(rar)) { + RandomAccessRead rar = new RandomAccessReadBuffer(is); + PDDocument document = Loader.loadPDF(rar)) { return new PDFTextStripper().getText(document); } catch (IOException ex) { String msg = String.format("Unable to extract text from PDF %s", path); @@ -149,12 +142,11 @@ public static String extractTextFromPDF(Path path) { */ public static byte[] loadImage(String image) { try (InputStream is = ClassLoader.getSystemResourceAsStream(image)) { - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - IOUtils.copy(is, baos); - return baos.toByteArray(); + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + IOUtils.copy(is, baos); + return baos.toByteArray(); } catch (IOException e) { - throw new RuntimeException(e); + throw new RuntimeException(e); } } - } diff --git a/src/test/java/fr/xelians/sipg/model/AgencyTest.java b/src/test/java/fr/xelians/sipg/model/AgencyTest.java index 2e63465..b260017 100644 --- a/src/test/java/fr/xelians/sipg/model/AgencyTest.java +++ b/src/test/java/fr/xelians/sipg/model/AgencyTest.java @@ -30,17 +30,13 @@ */ class AgencyTest { - /** - * Test get identifier not null. - */ + /** Test get identifier not null. */ @Test void testGetIdentifierNotNull() { assertThrows(NullPointerException.class, () -> new Agency(null, "")); } - /** - * Test of getIdentifier method, of class Agency. - */ + /** Test of getIdentifier method, of class Agency. */ @Test void testGetIdentifier() { String expResult = "identifier"; @@ -49,9 +45,7 @@ void testGetIdentifier() { assertEquals(expResult, result); } - /** - * Test of getName method, of class Agency. - */ + /** Test of getName method, of class Agency. */ @Test void testGetName() { String expResult = "name"; @@ -59,5 +53,4 @@ void testGetName() { String result = instance.getName(); assertEquals(expResult, result); } - } diff --git a/src/test/java/fr/xelians/sipg/service/DroidTest.java b/src/test/java/fr/xelians/sipg/service/DroidTest.java index afd9013..63f48c7 100644 --- a/src/test/java/fr/xelians/sipg/service/DroidTest.java +++ b/src/test/java/fr/xelians/sipg/service/DroidTest.java @@ -25,7 +25,6 @@ import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; - import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.slf4j.Logger; @@ -42,9 +41,7 @@ class DroidTest { private static final Logger LOGGER = LoggerFactory.getLogger(DroidTest.class); - /** - * Test small pdf droid. - */ + /** Test small pdf droid. */ @Test void testSmallPdfDroid() { Path path = Paths.get(TestInit.TEST_RESOURCES + "dummy.pdf"); @@ -80,5 +77,4 @@ void testLoopDroid() { assertEquals("fmt/19", results.get(0).getPuid()); } } - } diff --git a/src/test/java/fr/xelians/sipg/service/fntcv4/Fntcv4Test.java b/src/test/java/fr/xelians/sipg/service/fntcv4/Fntcv4Test.java index ee7f271..5d2290e 100644 --- a/src/test/java/fr/xelians/sipg/service/fntcv4/Fntcv4Test.java +++ b/src/test/java/fr/xelians/sipg/service/fntcv4/Fntcv4Test.java @@ -27,15 +27,12 @@ import fr.xelians.sipg.TestUtils; import fr.xelians.sipg.model.ArchiveTransfer; import fr.xelians.sipg.service.json.JsonService; -import fr.xelians.sipg.service.sedav2.Sedav2Config; -import fr.xelians.sipg.service.sedav2.Sedav2ConfigBuilder; import fr.xelians.sipg.utils.SipException; import fr.xelians.sipg.utils.Validators; import java.nio.file.FileSystem; import java.nio.file.Path; import java.nio.file.Paths; import javax.xml.validation.Validator; - import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInfo; import org.junit.jupiter.api.extension.ExtendWith; @@ -52,8 +49,8 @@ class Fntcv4Test { private static final Logger LOGGER = LoggerFactory.getLogger(Fntcv4Test.class); - private final Fntcv4Config fntcConfig = Fntcv4ConfigBuilder.builder().format(true).validate(true).strict(false) - .build(); + private final Fntcv4Config fntcConfig = + Fntcv4ConfigBuilder.builder().format(true).validate(true).strict(false).build(); private final Fntcv4Service fntcService = Fntcv4Service.getInstance(); /** @@ -63,7 +60,7 @@ class Fntcv4Test { */ @Test void testValidateXml(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { Path path = Paths.get(TestInit.TEST_RESOURCES + "fntc_small.xml"); @@ -86,7 +83,7 @@ void testValidateXml(TestInfo testInfo) { */ @Test void testValidateSimpleZip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createComplexSip(fs); @@ -108,7 +105,7 @@ void testValidateSimpleZip(TestInfo testInfo) { */ @Test void testValidateLargeZip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createLargeSip(fs); @@ -129,11 +126,12 @@ void testValidateLargeZip(TestInfo testInfo) { */ @Test void testCreateFullTextSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createFullTextSip(); - fntcService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "fulltextsip_fntc.zip"), fntcConfig); + fntcService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "fulltextsip_fntc.zip"), fntcConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -148,11 +146,12 @@ void testCreateFullTextSip(TestInfo testInfo) { */ @Test void testCreateDirSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createSipFromDir(); - fntcService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "dirsip_fntc.zip"), fntcConfig); + fntcService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "dirsip_fntc.zip"), fntcConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -167,7 +166,7 @@ void testCreateDirSip(TestInfo testInfo) { */ @Test void testWithoutAgencyFail(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); ArchiveTransfer archiveTransfer = SipFactory.createWithoutAgencySip(); Path outputPath = Paths.get(TestInit.TEST_RESULTS + "fail_fntc.zip"); @@ -181,11 +180,12 @@ void testWithoutAgencyFail(TestInfo testInfo) { */ @Test void testCreateCsvSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createCsvSip(); - fntcService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "csvsip_fntc.zip"), fntcConfig); + fntcService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "csvsip_fntc.zip"), fntcConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -200,11 +200,12 @@ void testCreateCsvSip(TestInfo testInfo) { */ @Test void testReadFreemarkerJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { String jsonString = SipFactory.createJsonString(); ArchiveTransfer archiveTransfer = JsonService.getInstance().read(jsonString); - Fntcv4Service.getInstance().write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "freemarker_fntc.zip")); + Fntcv4Service.getInstance() + .write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "freemarker_fntc.zip")); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -219,11 +220,12 @@ void testReadFreemarkerJson(TestInfo testInfo) { */ @Test void testCreateMiniSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createMiniSip(); - fntcService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "minisip_fntc.zip"), fntcConfig); + fntcService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "minisip_fntc.zip"), fntcConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -238,11 +240,12 @@ void testCreateMiniSip(TestInfo testInfo) { */ @Test void testCreateSimpleSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createComplexSip(fs); - fntcService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "simplesip_fntc.zip"), fntcConfig); + fntcService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "simplesip_fntc.zip"), fntcConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -257,7 +260,7 @@ void testCreateSimpleSip(TestInfo testInfo) { */ @Test void testValidateSimpleSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createComplexSip(fs); @@ -276,7 +279,7 @@ void testValidateSimpleSip(TestInfo testInfo) { */ @Test void testCreateSmallSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createSmallSip(); @@ -298,7 +301,7 @@ void testCreateSmallSip(TestInfo testInfo) { */ @Test void testValidateSmallSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createSmallSip(); @@ -320,13 +323,14 @@ void testValidateSmallSip(TestInfo testInfo) { */ @Test void testCreateLargeSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); Fntcv4Config config = Fntcv4ConfigBuilder.builder().useMemory(false).strict(false).build(); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createLargeSip(fs); - fntcService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "largesip_fntc.zip"), config); + fntcService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "largesip_fntc.zip"), config); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -341,7 +345,7 @@ void testCreateLargeSip(TestInfo testInfo) { */ @Test void testValidateRngSmallSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createSmallSip(); @@ -360,11 +364,12 @@ void testValidateRngSmallSip(TestInfo testInfo) { */ @Test void testCreateDeepSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createDeepSip(fs); - fntcService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "deepsip_fntc.zip"), fntcConfig); + fntcService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "deepsip_fntc.zip"), fntcConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -379,7 +384,7 @@ void testCreateDeepSip(TestInfo testInfo) { */ @Test void testValidateDeepSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createDeepSip(fs); diff --git a/src/test/java/fr/xelians/sipg/service/json/JsonTest.java b/src/test/java/fr/xelians/sipg/service/json/JsonTest.java index d66f1ce..d873839 100644 --- a/src/test/java/fr/xelians/sipg/service/json/JsonTest.java +++ b/src/test/java/fr/xelians/sipg/service/json/JsonTest.java @@ -18,6 +18,8 @@ */ package fr.xelians.sipg.service.json; +import static org.junit.jupiter.api.Assertions.*; + import com.google.common.jimfs.Jimfs; import fr.xelians.sipg.SipFactory; import fr.xelians.sipg.TestInit; @@ -32,8 +34,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import static org.junit.jupiter.api.Assertions.*; - /** * The JSON integration test. * @@ -54,7 +54,7 @@ class JsonTest { */ @Test void testCreateMiniJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { Path jsonPath = Paths.get(TestInit.TEST_RESULTS + "minisip_serial.json"); ArchiveTransfer archiveTransfer = SipFactory.createMiniSip(); @@ -79,11 +79,12 @@ void testCreateMiniJson(TestInfo testInfo) { */ @Test void testReadMiniJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { Path jsonPath = Paths.get(TestInit.TEST_RESOURCES + "minisip.json"); ArchiveTransfer archiveTransfer = jsonService.read(jsonPath); - jsonService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "minisip_deserial.json"), jsonConfig); + jsonService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "minisip_deserial.json"), jsonConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -98,11 +99,12 @@ void testReadMiniJson(TestInfo testInfo) { */ @Test void testCreateFullVitam(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createSipFullVitam(); - jsonService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "sip_vitam_full.json"), jsonConfig); + jsonService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "sip_vitam_full.json"), jsonConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -117,11 +119,12 @@ void testCreateFullVitam(TestInfo testInfo) { */ @Test void testCreateSimpleJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createComplexSip(fs); - jsonService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "simplesip_serial.json"), jsonConfig); + jsonService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "simplesip_serial.json"), jsonConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -136,11 +139,14 @@ void testCreateSimpleJson(TestInfo testInfo) { */ @Test void testReadSimpleJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { Path jsonPath = Paths.get(TestInit.TEST_RESOURCES + "simplesip.json"); ArchiveTransfer archiveTransfer = jsonService.read(jsonPath); - jsonService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "simplesip_deserial.json"), jsonConfig); + jsonService.write( + archiveTransfer, + Paths.get(TestInit.TEST_RESULTS + "simplesip_deserial.json"), + jsonConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -155,11 +161,13 @@ void testReadSimpleJson(TestInfo testInfo) { */ @Test void testCreateReadSimpleJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { String serialized = jsonService.write(SipFactory.createComplexSip(fs), jsonConfig); ArchiveTransfer archiveTransfer = jsonService.read(serialized); - jsonService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "simplesip_serial_deserial.json"), + jsonService.write( + archiveTransfer, + Paths.get(TestInit.TEST_RESULTS + "simplesip_serial_deserial.json"), jsonConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); @@ -175,11 +183,14 @@ void testCreateReadSimpleJson(TestInfo testInfo) { */ @Test void testReadFreemarkerJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { String jsonString = SipFactory.createJsonString(); ArchiveTransfer archiveTransfer = jsonService.read(jsonString); - jsonService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "freemarker_deserial.json"), jsonConfig); + jsonService.write( + archiveTransfer, + Paths.get(TestInit.TEST_RESULTS + "freemarker_deserial.json"), + jsonConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -194,10 +205,11 @@ void testReadFreemarkerJson(TestInfo testInfo) { */ @Test void testCreateFullTextJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createFullTextSip(); - jsonService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "full_serial.json"), jsonConfig); + jsonService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "full_serial.json"), jsonConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -212,11 +224,12 @@ void testCreateFullTextJson(TestInfo testInfo) { */ @Test void testReadFullTextJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { String serialized = jsonService.write(SipFactory.createFullTextSip(), jsonConfig); ArchiveTransfer archiveTransfer = jsonService.read(serialized); - jsonService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "full_deserial.json"), jsonConfig); + jsonService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "full_deserial.json"), jsonConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -231,7 +244,7 @@ void testReadFullTextJson(TestInfo testInfo) { */ @Test void testCreateSmallJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createSmallSip(); Path zipPath = Paths.get(TestInit.TEST_RESULTS + "smallsip_serial.json"); @@ -250,11 +263,12 @@ void testCreateSmallJson(TestInfo testInfo) { */ @Test void testReadSmallJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { Path jsonPath = Paths.get(TestInit.TEST_RESOURCES + "smallsip.json"); ArchiveTransfer archiveTransfer = jsonService.read(jsonPath); - jsonService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "smallsip_deserial.json"), jsonConfig); + jsonService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "smallsip_deserial.json"), jsonConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -269,10 +283,11 @@ void testReadSmallJson(TestInfo testInfo) { */ @Test void testCreateLargeJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createLargeSip(fs); - jsonService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "largesip_serial.json"), jsonConfig); + jsonService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "largesip_serial.json"), jsonConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -287,11 +302,12 @@ void testCreateLargeJson(TestInfo testInfo) { */ @Test void testReadLargeJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { Path jsonPath = Paths.get(TestInit.TEST_RESOURCES + "largesip.json"); ArchiveTransfer archiveTransfer = jsonService.read(jsonPath); - jsonService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "largesip_deserial.json"), jsonConfig); + jsonService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "largesip_deserial.json"), jsonConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -306,10 +322,11 @@ void testReadLargeJson(TestInfo testInfo) { */ @Test void testCreateDeepJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createDeepSip(fs); - jsonService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "deepsip_serial.json"), jsonConfig); + jsonService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "deepsip_serial.json"), jsonConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -324,11 +341,12 @@ void testCreateDeepJson(TestInfo testInfo) { */ @Test void testReadDeepJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { Path jsonPath = Paths.get(TestInit.TEST_RESOURCES + "deepsip.json"); ArchiveTransfer archiveTransfer = jsonService.read(jsonPath); - jsonService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "deepsip_deserial.json"), jsonConfig); + jsonService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "deepsip_deserial.json"), jsonConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); diff --git a/src/test/java/fr/xelians/sipg/service/sedav2/Sedav21Test.java b/src/test/java/fr/xelians/sipg/service/sedav2/Sedav21Test.java index b474a82..26e925e 100644 --- a/src/test/java/fr/xelians/sipg/service/sedav2/Sedav21Test.java +++ b/src/test/java/fr/xelians/sipg/service/sedav2/Sedav21Test.java @@ -25,6 +25,7 @@ import fr.xelians.sipg.SipFactory; import fr.xelians.sipg.TestInit; import fr.xelians.sipg.TestUtils; +import fr.xelians.sipg.model.ArchiveDeliveryRequestReply; import fr.xelians.sipg.model.ArchiveTransfer; import fr.xelians.sipg.service.json.JsonService; import fr.xelians.sipg.utils.SipException; @@ -33,7 +34,6 @@ import java.nio.file.Path; import java.nio.file.Paths; import javax.xml.validation.Validator; - import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInfo; import org.junit.jupiter.api.extension.ExtendWith; @@ -48,12 +48,12 @@ @ExtendWith(TestInit.class) class Sedav21Test { - public static final String SEDA21 = TestInit. TEST_RESOURCES + "seda-2.1/"; + public static final String SEDA21 = TestInit.TEST_RESOURCES + "seda-2.1/"; private static final Logger LOGGER = LoggerFactory.getLogger(Sedav21Test.class); - private final Sedav2Config sedaConfig = Sedav2ConfigBuilder.builder().format(true).validate(true).strict(false) - .build(); + private final Sedav2Config sedaConfig = + Sedav2ConfigBuilder.builder().format(true).validate(true).strict(false).build(); private final Sedav2Service sedaService = Sedav2Service.getInstance(); /** @@ -63,7 +63,7 @@ class Sedav21Test { */ @Test void testValidateXml(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { Path path = Paths.get(SEDA21 + "seda_small.xml"); @@ -82,7 +82,7 @@ void testValidateXml(TestInfo testInfo) { */ @Test void testValidateSimpleZip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createComplexSip(fs); @@ -104,7 +104,7 @@ void testValidateSimpleZip(TestInfo testInfo) { */ @Test void testValidateLargeZip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createLargeSip(fs); @@ -125,11 +125,12 @@ void testValidateLargeZip(TestInfo testInfo) { */ @Test void testCreateDirSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createSipFromDir(); - sedaService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "dirsip_seda.zip"), sedaConfig); + sedaService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "dirsip_seda.zip"), sedaConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -144,7 +145,7 @@ void testCreateDirSip(TestInfo testInfo) { */ @Test void testWithoutAgencyFail(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); ArchiveTransfer archiveTransfer = SipFactory.createWithoutAgencySip(); Path outputPath = Paths.get(TestInit.TEST_RESULTS + "fail_seda.zip"); @@ -158,11 +159,12 @@ void testWithoutAgencyFail(TestInfo testInfo) { */ @Test void testCreateCsvSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createCsvSip(); - sedaService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "csvsip_seda.zip"), sedaConfig); + sedaService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "csvsip_seda.zip"), sedaConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -177,11 +179,12 @@ void testCreateCsvSip(TestInfo testInfo) { */ @Test void testReadFreemarkerJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { String jsonString = SipFactory.createJsonString(); ArchiveTransfer archiveTransfer = JsonService.getInstance().read(jsonString); - Sedav2Service.getInstance().write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "freemarker_seda.zip")); + Sedav2Service.getInstance() + .write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "freemarker_seda.zip")); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -196,11 +199,12 @@ void testReadFreemarkerJson(TestInfo testInfo) { */ @Test void testCreateFullTextSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createFullTextSip(); - sedaService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "fulltextsip_seda.zip"), sedaConfig); + sedaService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "fulltextsip_seda.zip"), sedaConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -215,11 +219,12 @@ void testCreateFullTextSip(TestInfo testInfo) { */ @Test void testCreateMiniSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createMiniSip(); - sedaService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "minisip_seda.zip"), sedaConfig); + sedaService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "minisip_seda.zip"), sedaConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -234,7 +239,7 @@ void testCreateMiniSip(TestInfo testInfo) { */ @Test void testValidateMiniSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createMiniSip(); @@ -253,7 +258,7 @@ void testValidateMiniSip(TestInfo testInfo) { */ @Test void testCreateSipFullVitam(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createSipFullVitam(); @@ -273,7 +278,7 @@ void testCreateSipFullVitam(TestInfo testInfo) { */ @Test void testCreateMiniSipVitam(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createMiniSipVitam(); @@ -295,7 +300,7 @@ void testCreateMiniSipVitam(TestInfo testInfo) { */ @Test void testValidateMiniSipVitam(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createMiniSipVitam(); @@ -316,7 +321,7 @@ void testValidateMiniSipVitam(TestInfo testInfo) { */ @Test void testCreateSimpleSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createComplexSip(fs); @@ -336,7 +341,7 @@ void testCreateSimpleSip(TestInfo testInfo) { */ @Test void testValidateSimpleSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createComplexSip(fs); @@ -355,7 +360,7 @@ void testValidateSimpleSip(TestInfo testInfo) { */ @Test void testCreateSmallSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createSmallSip(); @@ -375,7 +380,7 @@ void testCreateSmallSip(TestInfo testInfo) { */ @Test void testValidateSmallSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try { ArchiveTransfer archiveTransfer = SipFactory.createSmallSip(); @@ -387,7 +392,6 @@ void testValidateSmallSip(TestInfo testInfo) { } } - /** * Test create large sip. * @@ -395,13 +399,14 @@ void testValidateSmallSip(TestInfo testInfo) { */ @Test void testCreateLargeSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); Sedav2Config config = Sedav2ConfigBuilder.builder().useMemory(false).strict(false).build(); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createLargeSip(fs); - sedaService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "largesip_seda.zip"), config); + sedaService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "largesip_seda.zip"), config); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -416,7 +421,7 @@ void testCreateLargeSip(TestInfo testInfo) { */ @Test void testValidateLargeSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createLargeSip(fs); @@ -435,11 +440,12 @@ void testValidateLargeSip(TestInfo testInfo) { */ @Test void testCreateDeepSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createDeepSip(fs); - sedaService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "deepsip_seda.zip"), sedaConfig); + sedaService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "deepsip_seda.zip"), sedaConfig); } catch (Exception ex) { String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); LOGGER.warn(msg, ex); @@ -454,7 +460,7 @@ void testCreateDeepSip(TestInfo testInfo) { */ @Test void testValidateDeepSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); try (FileSystem fs = Jimfs.newFileSystem()) { ArchiveTransfer archiveTransfer = SipFactory.createDeepSip(fs); @@ -466,4 +472,45 @@ void testValidateDeepSip(TestInfo testInfo) { } } + /** + * Test create simple dip. + * + * @param testInfo the test info + */ + @Test + void testCreateSimpleDelivery(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try (FileSystem fs = Jimfs.newFileSystem()) { + ArchiveDeliveryRequestReply archiveDelivery = SipFactory.createComplexDelivery(fs); + Path output = Paths.get(TestInit.TEST_RESULTS + "simpledelivery_seda.zip"); + sedaService.write(archiveDelivery, output, sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); + } + } + + /** + * Test create large dip. + * + * @param testInfo the test info + */ + @Test + void testCreateLargeDelivery(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + Sedav2Config config = Sedav2ConfigBuilder.builder().useMemory(false).strict(false).build(); + + try (FileSystem fs = Jimfs.newFileSystem()) { + ArchiveDeliveryRequestReply archiveDelivery = SipFactory.createLargeDelivery(fs); + sedaService.write( + archiveDelivery, Paths.get(TestInit.TEST_RESULTS + "largedelivery_seda.zip"), config); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); + } + } } diff --git a/src/test/java/fr/xelians/sipg/service/sedav2/Sedav22Test.java b/src/test/java/fr/xelians/sipg/service/sedav2/Sedav22Test.java index 1820aed..fcd7c85 100644 --- a/src/test/java/fr/xelians/sipg/service/sedav2/Sedav22Test.java +++ b/src/test/java/fr/xelians/sipg/service/sedav2/Sedav22Test.java @@ -18,28 +18,28 @@ */ package fr.xelians.sipg.service.sedav2; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.fail; + import com.google.common.jimfs.Jimfs; import fr.xelians.sipg.SipFactory; import fr.xelians.sipg.TestInit; import fr.xelians.sipg.TestUtils; +import fr.xelians.sipg.model.ArchiveDeliveryRequestReply; import fr.xelians.sipg.model.ArchiveTransfer; import fr.xelians.sipg.service.json.JsonService; import fr.xelians.sipg.utils.SipException; import fr.xelians.sipg.utils.Validators; +import java.nio.file.FileSystem; +import java.nio.file.Path; +import java.nio.file.Paths; +import javax.xml.validation.Validator; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInfo; import org.junit.jupiter.api.extension.ExtendWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import javax.xml.validation.Validator; -import java.nio.file.FileSystem; -import java.nio.file.Path; -import java.nio.file.Paths; - -import static org.junit.jupiter.api.Assertions.assertThrows; -import static org.junit.jupiter.api.Assertions.fail; - /** * The SEDA v2 integration test. * @@ -48,421 +48,473 @@ @ExtendWith(TestInit.class) public class Sedav22Test { - public static final String SEDA22 = TestInit.TEST_RESOURCES + "seda-2.2/"; - - private static final Logger LOGGER = LoggerFactory.getLogger(Sedav22Test.class); - - private final Sedav2Config sedaConfig = Sedav2ConfigBuilder.builder().format(true).validate(true).strict(false).build(); - private final Sedav2Service sedaService = Sedav2Service.getV22Instance(); - - /** - * Test validate xml. - * - * @param testInfo the test info - */ - @Test - void testValidateXml(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try { - Path path = Paths.get(SEDA22 + "seda_small.xml"); - sedaService.validate(path, sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + public static final String SEDA22 = TestInit.TEST_RESOURCES + "seda-2.2/"; + + private static final Logger LOGGER = LoggerFactory.getLogger(Sedav22Test.class); + + private final Sedav2Config sedaConfig = + Sedav2ConfigBuilder.builder().format(true).validate(true).strict(false).build(); + private final Sedav2Service sedaService = Sedav2Service.getV22Instance(); + + /** + * Test validate xml. + * + * @param testInfo the test info + */ + @Test + void testValidateXml(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try { + Path path = Paths.get(SEDA22 + "seda_small.xml"); + sedaService.validate(path, sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test validate simple zip. - * - * @param testInfo the test info - */ - @Test - void testValidateSimpleZip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try (FileSystem fs = Jimfs.newFileSystem()) { - ArchiveTransfer archiveTransfer = SipFactory.createComplexSip(fs); - Path output = Paths.get(TestInit.TEST_RESULTS + "simplesip2_seda.zip"); - sedaService.write(archiveTransfer, output, sedaConfig); - - sedaService.validate(output, null, sedaConfig, e -> LOGGER.info(e.toString())); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test validate simple zip. + * + * @param testInfo the test info + */ + @Test + void testValidateSimpleZip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try (FileSystem fs = Jimfs.newFileSystem()) { + ArchiveTransfer archiveTransfer = SipFactory.createComplexSip(fs); + Path output = Paths.get(TestInit.TEST_RESULTS + "simplesip2_seda.zip"); + sedaService.write(archiveTransfer, output, sedaConfig); + + sedaService.validate(output, null, sedaConfig, e -> LOGGER.info(e.toString())); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test validate large zip. - * - * @param testInfo the test info - */ - @Test - void testValidateLargeZip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try (FileSystem fs = Jimfs.newFileSystem()) { - ArchiveTransfer archiveTransfer = SipFactory.createLargeSip(fs); - Path output = Paths.get(TestInit.TEST_RESULTS + "largesip2_seda.zip"); - sedaService.write(archiveTransfer, output, sedaConfig); - sedaService.validate(output, sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test validate large zip. + * + * @param testInfo the test info + */ + @Test + void testValidateLargeZip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try (FileSystem fs = Jimfs.newFileSystem()) { + ArchiveTransfer archiveTransfer = SipFactory.createLargeSip(fs); + Path output = Paths.get(TestInit.TEST_RESULTS + "largesip2_seda.zip"); + sedaService.write(archiveTransfer, output, sedaConfig); + sedaService.validate(output, sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test create dir sip. - * - * @param testInfo the test info - */ - @Test - void testCreateDirSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try { - ArchiveTransfer archiveTransfer = SipFactory.createSipFromDir(); - sedaService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "dirsip_seda.zip"), sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test create dir sip. + * + * @param testInfo the test info + */ + @Test + void testCreateDirSip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try { + ArchiveTransfer archiveTransfer = SipFactory.createSipFromDir(); + sedaService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "dirsip_seda.zip"), sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test without agency fail. - * - * @param testInfo the test info - */ - @Test - void testWithoutAgencyFail(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - ArchiveTransfer archiveTransfer = SipFactory.createWithoutAgencySip(); - Path outputPath = Paths.get(TestInit.TEST_RESULTS + "fail_seda.zip"); - assertThrows(SipException.class, () -> sedaService.write(archiveTransfer, outputPath, sedaConfig)); + } + + /** + * Test without agency fail. + * + * @param testInfo the test info + */ + @Test + void testWithoutAgencyFail(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + ArchiveTransfer archiveTransfer = SipFactory.createWithoutAgencySip(); + Path outputPath = Paths.get(TestInit.TEST_RESULTS + "fail_seda.zip"); + assertThrows( + SipException.class, () -> sedaService.write(archiveTransfer, outputPath, sedaConfig)); + } + + /** + * Test create csv sip. + * + * @param testInfo the test info + */ + @Test + void testCreateCsvSip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try { + ArchiveTransfer archiveTransfer = SipFactory.createCsvSip(); + sedaService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "csvsip_seda.zip"), sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test create csv sip. - * - * @param testInfo the test info - */ - @Test - void testCreateCsvSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try { - ArchiveTransfer archiveTransfer = SipFactory.createCsvSip(); - sedaService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "csvsip_seda.zip"), sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test read freemarker json. + * + * @param testInfo the test info + */ + @Test + void testReadFreemarkerJson(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + try { + String jsonString = SipFactory.createJsonString(); + ArchiveTransfer archiveTransfer = JsonService.getInstance().read(jsonString); + Sedav2Service.getInstance() + .write( + archiveTransfer, + Paths.get(TestInit.TEST_RESULTS + "freemarker_seda.zip"), + sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test read freemarker json. - * - * @param testInfo the test info - */ - @Test - void testReadFreemarkerJson(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - try { - String jsonString = SipFactory.createJsonString(); - ArchiveTransfer archiveTransfer = JsonService.getInstance().read(jsonString); - Sedav2Service.getInstance().write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "freemarker_seda.zip"), sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test create full text sip. + * + * @param testInfo the test info + */ + @Test + void testCreateFullTextSip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try { + ArchiveTransfer archiveTransfer = SipFactory.createFullTextSip(); + sedaService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "fulltextsip_seda.zip"), sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test create full text sip. - * - * @param testInfo the test info - */ - @Test - void testCreateFullTextSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try { - ArchiveTransfer archiveTransfer = SipFactory.createFullTextSip(); - sedaService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "fulltextsip_seda.zip"), sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test create mini sip. + * + * @param testInfo the test info + */ + @Test + void testCreateMiniSip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try { + ArchiveTransfer archiveTransfer = SipFactory.createMiniSip(); + sedaService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "minisip_seda.zip"), sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test create mini sip. - * - * @param testInfo the test info - */ - @Test - void testCreateMiniSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try { - ArchiveTransfer archiveTransfer = SipFactory.createMiniSip(); - sedaService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "minisip_seda.zip"), sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test validate mini sip. + * + * @param testInfo the test info + */ + @Test + void testValidateMiniSip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try { + ArchiveTransfer archiveTransfer = SipFactory.createMiniSip(); + sedaService.validate(archiveTransfer, sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test validate mini sip. - * - * @param testInfo the test info - */ - @Test - void testValidateMiniSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try { - ArchiveTransfer archiveTransfer = SipFactory.createMiniSip(); - sedaService.validate(archiveTransfer, sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test create sip full vitam. + * + * @param testInfo the test info + */ + @Test + void testCreateSipFullVitam(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try { + ArchiveTransfer archiveTransfer = SipFactory.createSipFullVitam(); + Path zipPath = Paths.get(TestInit.TEST_RESULTS + "sip_vitam_full.zip"); + sedaService.write(archiveTransfer, zipPath, sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test create sip full vitam. - * - * @param testInfo the test info - */ - @Test - void testCreateSipFullVitam(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try { - ArchiveTransfer archiveTransfer = SipFactory.createSipFullVitam(); - Path zipPath = Paths.get(TestInit.TEST_RESULTS + "sip_vitam_full.zip"); - sedaService.write(archiveTransfer, zipPath, sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test create mini sip vitam. + * + * @param testInfo the test info + */ + @Test + void testCreateMiniSipVitam(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try { + ArchiveTransfer archiveTransfer = SipFactory.createMiniSipVitam(); + Path zipPath = Paths.get(TestInit.TEST_RESULTS + "MiniSipVitam_seda.zip"); + Path rngPath = Paths.get(SEDA22, "Profil_VITAM_base.rng"); + Validator rngValidator = Validators.getRngValidator(rngPath); + sedaService.write(archiveTransfer, zipPath, rngValidator, sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test create mini sip vitam. - * - * @param testInfo the test info - */ - @Test - void testCreateMiniSipVitam(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try { - ArchiveTransfer archiveTransfer = SipFactory.createMiniSipVitam(); - Path zipPath = Paths.get(TestInit.TEST_RESULTS + "MiniSipVitam_seda.zip"); - Path rngPath = Paths.get(SEDA22, "Profil_VITAM_base.rng"); - Validator rngValidator = Validators.getRngValidator(rngPath); - sedaService.write(archiveTransfer, zipPath, rngValidator, sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test validate mini sip vitam. + * + * @param testInfo the test info + */ + @Test + void testValidateMiniSipVitam(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try { + ArchiveTransfer archiveTransfer = SipFactory.createMiniSipVitam(); + Path rngPath = Paths.get(SEDA22, "Profil_VITAM_base.rng"); + Validator rngValidator = Validators.getRngValidator(rngPath); + sedaService.validate(archiveTransfer, rngValidator, sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test validate mini sip vitam. - * - * @param testInfo the test info - */ - @Test - void testValidateMiniSipVitam(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try { - ArchiveTransfer archiveTransfer = SipFactory.createMiniSipVitam(); - Path rngPath = Paths.get(SEDA22, "Profil_VITAM_base.rng"); - Validator rngValidator = Validators.getRngValidator(rngPath); - sedaService.validate(archiveTransfer, rngValidator, sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test create simple sip. + * + * @param testInfo the test info + */ + @Test + void testCreateSimpleSip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try (FileSystem fs = Jimfs.newFileSystem()) { + ArchiveTransfer archiveTransfer = SipFactory.createComplexSip(fs); + Path output = Paths.get(TestInit.TEST_RESULTS + "simplesip_seda.zip"); + sedaService.write(archiveTransfer, output, sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test create simple sip. - * - * @param testInfo the test info - */ - @Test - void testCreateSimpleSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try (FileSystem fs = Jimfs.newFileSystem()) { - ArchiveTransfer archiveTransfer = SipFactory.createComplexSip(fs); - Path output = Paths.get(TestInit.TEST_RESULTS + "simplesip_seda.zip"); - sedaService.write(archiveTransfer, output, sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test validate simple sip. + * + * @param testInfo the test info + */ + @Test + void testValidateSimpleSip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try (FileSystem fs = Jimfs.newFileSystem()) { + ArchiveTransfer archiveTransfer = SipFactory.createComplexSip(fs); + sedaService.validate(archiveTransfer, sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test validate simple sip. - * - * @param testInfo the test info - */ - @Test - void testValidateSimpleSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try (FileSystem fs = Jimfs.newFileSystem()) { - ArchiveTransfer archiveTransfer = SipFactory.createComplexSip(fs); - sedaService.validate(archiveTransfer, sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test create small sip. + * + * @param testInfo the test info + */ + @Test + void testCreateSmallSip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try { + ArchiveTransfer archiveTransfer = SipFactory.createSmallSip(); + Path zipPath = Paths.get(TestInit.TEST_RESULTS + "smallsip_seda.zip"); + sedaService.write(archiveTransfer, zipPath, sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test create small sip. - * - * @param testInfo the test info - */ - @Test - void testCreateSmallSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try { - ArchiveTransfer archiveTransfer = SipFactory.createSmallSip(); - Path zipPath = Paths.get(TestInit.TEST_RESULTS + "smallsip_seda.zip"); - sedaService.write(archiveTransfer, zipPath, sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test validate small sip. + * + * @param testInfo the test info + */ + @Test + void testValidateSmallSip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try { + ArchiveTransfer archiveTransfer = SipFactory.createSmallSip(); + sedaService.validate(archiveTransfer, sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test validate small sip. - * - * @param testInfo the test info - */ - @Test - void testValidateSmallSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try { - ArchiveTransfer archiveTransfer = SipFactory.createSmallSip(); - sedaService.validate(archiveTransfer, sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test create large sip. + * + * @param testInfo the test info + */ + @Test + void testCreateLargeSip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + Sedav2Config config = Sedav2ConfigBuilder.builder().useMemory(false).strict(false).build(); + + try (FileSystem fs = Jimfs.newFileSystem()) { + ArchiveTransfer archiveTransfer = SipFactory.createLargeSip(fs); + sedaService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "largesip_seda.zip"), config); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - - /** - * Test create large sip. - * - * @param testInfo the test info - */ - @Test - void testCreateLargeSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - Sedav2Config config = Sedav2ConfigBuilder.builder().useMemory(false).strict(false).build(); - - try (FileSystem fs = Jimfs.newFileSystem()) { - ArchiveTransfer archiveTransfer = SipFactory.createLargeSip(fs); - sedaService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "largesip_seda.zip"), config); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test validate large sip. + * + * @param testInfo the test info + */ + @Test + void testValidateLargeSip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try (FileSystem fs = Jimfs.newFileSystem()) { + ArchiveTransfer archiveTransfer = SipFactory.createLargeSip(fs); + sedaService.validate(archiveTransfer, sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test validate large sip. - * - * @param testInfo the test info - */ - @Test - void testValidateLargeSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try (FileSystem fs = Jimfs.newFileSystem()) { - ArchiveTransfer archiveTransfer = SipFactory.createLargeSip(fs); - sedaService.validate(archiveTransfer, sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test create deep sip. + * + * @param testInfo the test info + */ + @Test + void testCreateDeepSip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try (FileSystem fs = Jimfs.newFileSystem()) { + ArchiveTransfer archiveTransfer = SipFactory.createDeepSip(fs); + sedaService.write( + archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "deepsip_seda.zip"), sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test create deep sip. - * - * @param testInfo the test info - */ - @Test - void testCreateDeepSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try (FileSystem fs = Jimfs.newFileSystem()) { - ArchiveTransfer archiveTransfer = SipFactory.createDeepSip(fs); - sedaService.write(archiveTransfer, Paths.get(TestInit.TEST_RESULTS + "deepsip_seda.zip"), sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test validate deep sip. + * + * @param testInfo the test info + */ + @Test + void testValidateDeepSip(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try (FileSystem fs = Jimfs.newFileSystem()) { + ArchiveTransfer archiveTransfer = SipFactory.createDeepSip(fs); + sedaService.validate(archiveTransfer, sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - - /** - * Test validate deep sip. - * - * @param testInfo the test info - */ - @Test - void testValidateDeepSip(TestInfo testInfo) { - LOGGER.info(TestUtils.TEST + TestUtils.getMethod(testInfo)); - - try (FileSystem fs = Jimfs.newFileSystem()) { - ArchiveTransfer archiveTransfer = SipFactory.createDeepSip(fs); - sedaService.validate(archiveTransfer, sedaConfig); - } catch (Exception ex) { - String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); - LOGGER.error(msg, ex); - fail(msg); - } + } + + /** + * Test create simple dip. + * + * @param testInfo the test info + */ + @Test + void testCreateSimpleDelivery(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + try (FileSystem fs = Jimfs.newFileSystem()) { + ArchiveDeliveryRequestReply archiveDelivery = SipFactory.createComplexDelivery(fs); + Path output = Paths.get(TestInit.TEST_RESULTS + "simpledelivery_seda.zip"); + sedaService.write(archiveDelivery, output, sedaConfig); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); } - + } + + /** + * Test create large dip. + * + * @param testInfo the test info + */ + @Test + void testCreateLargeDelivery(TestInfo testInfo) { + LOGGER.info(TestUtils.TEST, TestUtils.getMethod(testInfo)); + + Sedav2Config config = Sedav2ConfigBuilder.builder().useMemory(false).strict(false).build(); + + try (FileSystem fs = Jimfs.newFileSystem()) { + ArchiveDeliveryRequestReply archiveDelivery = SipFactory.createLargeDelivery(fs); + sedaService.write( + archiveDelivery, Paths.get(TestInit.TEST_RESULTS + "largedelivery_seda.zip"), config); + } catch (Exception ex) { + String msg = TestUtils.FAIL + TestUtils.getMethod(testInfo); + LOGGER.error(msg, ex); + fail(msg); + } + } }