-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
108 additions
and
137 deletions.
There are no files selected for viewing
186 changes: 96 additions & 90 deletions
186
roda-core/roda-core/src/main/java/org/roda/core/common/PremisV3Utils.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,14 @@ | |
import jakarta.xml.bind.annotation.XmlAttribute; | ||
import jakarta.xml.bind.annotation.XmlElement; | ||
import jakarta.xml.bind.annotation.XmlRootElement; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
|
||
/** | ||
* @author Carlos Afonso <[email protected]> | ||
*/ | ||
@XmlRootElement(name = "featureExtractor") | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(namespace = "http://www.loc.gov/premis/v3") | ||
public class TechnicalMetadata { | ||
|
||
@XmlAttribute | ||
|
@@ -31,7 +33,7 @@ public class TechnicalMetadata { | |
@XmlAttribute | ||
private String algorithm; | ||
|
||
@XmlElement(name = "metadata") | ||
@XmlElement(name = "metadata", namespace = "http://www.loc.gov/premis/v3") | ||
private TechnicalMetadataElement technicalMetadataElement; | ||
|
||
public TechnicalMetadata() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
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; | ||
|
@@ -18,9 +19,10 @@ | |
* @author Miguel Guimarães <[email protected]> | ||
*/ | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(namespace = "http://www.loc.gov/premis/v3") | ||
public class TechnicalMetadataElement { | ||
|
||
@XmlElement(name = "field") | ||
@XmlElement(name = "field", namespace = "http://www.loc.gov/premis/v3") | ||
private List<TechnicalMetadataField> technicalMetadataFields = new ArrayList<>(); | ||
|
||
public TechnicalMetadataElement() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,15 +10,14 @@ | |
import jakarta.xml.bind.annotation.XmlAccessType; | ||
import jakarta.xml.bind.annotation.XmlAccessorType; | ||
import jakarta.xml.bind.annotation.XmlAttribute; | ||
import jakarta.xml.bind.annotation.XmlRootElement; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
import jakarta.xml.bind.annotation.XmlValue; | ||
|
||
/** | ||
* @author Miguel Guimarães <[email protected]> | ||
*/ | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlRootElement(name = "metadata") | ||
|
||
@XmlType(namespace = "http://www.loc.gov/premis/v3") | ||
public class TechnicalMetadataField { | ||
|
||
public TechnicalMetadataField() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters