Skip to content

Commit

Permalink
Rearrange code
Browse files Browse the repository at this point in the history
  • Loading branch information
hmiguim committed Mar 13, 2024
1 parent cb479df commit 78099d3
Show file tree
Hide file tree
Showing 32 changed files with 13,977 additions and 16,108 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@

package org.roda_project.commons_ip.mets_v1_11.beans;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.namespace.QName;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAnyAttribute;
Expand All @@ -22,16 +17,22 @@
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import javax.xml.namespace.QName;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
* amdSecType: Complex Type for Administrative Metadata Sections
* The administrative metadata section consists of four possible subsidiary sections: techMD (technical metadata for text/image/audio/video files), rightsMD (intellectual property rights metadata), sourceMD (analog/digital source metadata), and digiprovMD (digital provenance metadata, that is, the history of migrations/translations performed on a digital library object from it's original digital capture/encoding).
*
*
* The administrative metadata section consists of four possible subsidiary sections: techMD (technical metadata for text/image/audio/video files), rightsMD (intellectual property rights metadata), sourceMD (analog/digital source metadata), and digiprovMD (digital provenance metadata, that is, the history of migrations/translations performed on a digital library object from it's original digital capture/encoding).
*
*
* <p>Java class for amdSecType complex type.
*
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
*
* <pre>{@code
* <complexType name="amdSecType">
* <complexContent>
Expand All @@ -48,8 +49,6 @@
* </complexContent>
* </complexType>
* }</pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "amdSecType", propOrder = {
Expand All @@ -60,182 +59,168 @@
})
public class AmdSecType {

protected List<MdSecType> techMD;
protected List<MdSecType> rightsMD;
protected List<MdSecType> sourceMD;
protected List<MdSecType> digiprovMD;
@XmlAttribute(name = "ID")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<>();
protected List<MdSecType> techMD;
protected List<MdSecType> rightsMD;
protected List<MdSecType> sourceMD;
protected List<MdSecType> digiprovMD;
@XmlAttribute(name = "ID")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAnyAttribute
private final Map<QName, String> otherAttributes = new HashMap<>();

/**
* Gets the value of the techMD property.
*
* <p>
* This accessor method 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 techMD property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTechMD().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link MdSecType }
*
*
* @return
* The value of the techMD property.
*/
public List<MdSecType> getTechMD() {
if (techMD == null) {
techMD = new ArrayList<>();
}
return this.techMD;
/**
* Gets the value of the techMD property.
*
* <p>
* This accessor method 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 techMD property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTechMD().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link MdSecType }
*
* @return The value of the techMD property.
*/
public List<MdSecType> getTechMD() {
if (techMD == null) {
techMD = new ArrayList<>();
}
return this.techMD;
}

/**
* Gets the value of the rightsMD property.
*
* <p>
* This accessor method 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 rightsMD property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRightsMD().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link MdSecType }
*
*
* @return
* The value of the rightsMD property.
*/
public List<MdSecType> getRightsMD() {
if (rightsMD == null) {
rightsMD = new ArrayList<>();
}
return this.rightsMD;
/**
* Gets the value of the rightsMD property.
*
* <p>
* This accessor method 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 rightsMD property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getRightsMD().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link MdSecType }
*
* @return The value of the rightsMD property.
*/
public List<MdSecType> getRightsMD() {
if (rightsMD == null) {
rightsMD = new ArrayList<>();
}
return this.rightsMD;
}

/**
* Gets the value of the sourceMD property.
*
* <p>
* This accessor method 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 sourceMD property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSourceMD().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link MdSecType }
*
*
* @return
* The value of the sourceMD property.
*/
public List<MdSecType> getSourceMD() {
if (sourceMD == null) {
sourceMD = new ArrayList<>();
}
return this.sourceMD;
/**
* Gets the value of the sourceMD property.
*
* <p>
* This accessor method 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 sourceMD property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSourceMD().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link MdSecType }
*
* @return The value of the sourceMD property.
*/
public List<MdSecType> getSourceMD() {
if (sourceMD == null) {
sourceMD = new ArrayList<>();
}
return this.sourceMD;
}

/**
* Gets the value of the digiprovMD property.
*
* <p>
* This accessor method 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 digiprovMD property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDigiprovMD().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link MdSecType }
*
*
* @return
* The value of the digiprovMD property.
*/
public List<MdSecType> getDigiprovMD() {
if (digiprovMD == null) {
digiprovMD = new ArrayList<>();
}
return this.digiprovMD;
/**
* Gets the value of the digiprovMD property.
*
* <p>
* This accessor method 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 digiprovMD property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDigiprovMD().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link MdSecType }
*
* @return The value of the digiprovMD property.
*/
public List<MdSecType> getDigiprovMD() {
if (digiprovMD == null) {
digiprovMD = new ArrayList<>();
}
return this.digiprovMD;
}

/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getID() {
return 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;
}
/**
* Sets the value of the id property.
*
* @param value allowed object is
* {@link String }
*/
public void setID(String value) {
this.id = value;
}

/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
* <p>
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
* <p>
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
* @return always non-null
*/
public Map<QName, String> getOtherAttributes() {
return otherAttributes;
}

}
Loading

0 comments on commit 78099d3

Please sign in to comment.