-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3304 switched to JAXB for handling XML generation
- Loading branch information
Showing
12 changed files
with
107 additions
and
75 deletions.
There are no files selected for viewing
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
9 changes: 6 additions & 3 deletions
9
...ava/eu/dzhw/fdz/metadatamanagement/datapackagemanagement/domain/ddiCodebook/Citation.java
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
package eu.dzhw.fdz.metadatamanagement.datapackagemanagement.domain.ddiCodebook; | ||
|
||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | ||
import javax.xml.bind.annotation.XmlElement; | ||
|
||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public class Citation { | ||
|
||
@JacksonXmlProperty(localName = "titlStmt") | ||
private TitlStmt titlStmt; | ||
public Citation() {} | ||
|
||
@XmlElement(name="titlStmt") | ||
TitlStmt titlStmt; | ||
|
||
} |
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
10 changes: 7 additions & 3 deletions
10
...ava/eu/dzhw/fdz/metadatamanagement/datapackagemanagement/domain/ddiCodebook/FileDscr.java
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 |
---|---|---|
@@ -1,14 +1,18 @@ | ||
package eu.dzhw.fdz.metadatamanagement.datapackagemanagement.domain.ddiCodebook; | ||
|
||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | ||
import javax.xml.bind.annotation.XmlAttribute; | ||
import javax.xml.bind.annotation.XmlElement; | ||
|
||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public class FileDscr { | ||
|
||
@JacksonXmlProperty(localName = "ID", isAttribute = true) | ||
public FileDscr() {} | ||
|
||
@XmlAttribute(name="ID") | ||
String id; | ||
|
||
@JacksonXmlProperty(localName = "fileTxt") | ||
@XmlElement(name="fileTxt") | ||
FileTxt fileTxt; | ||
} |
9 changes: 6 additions & 3 deletions
9
...java/eu/dzhw/fdz/metadatamanagement/datapackagemanagement/domain/ddiCodebook/FileTxt.java
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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
package eu.dzhw.fdz.metadatamanagement.datapackagemanagement.domain.ddiCodebook; | ||
|
||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | ||
import javax.xml.bind.annotation.XmlElement; | ||
|
||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public class FileTxt { | ||
|
||
@JacksonXmlProperty(localName = "fileName") | ||
public FileTxt() {} | ||
|
||
@XmlElement(name="fileName") | ||
String fileName; | ||
|
||
@JacksonXmlProperty(localName = "fileCont") | ||
@XmlElement(name="fileCont") | ||
TextElement fileCont; | ||
|
||
} |
7 changes: 5 additions & 2 deletions
7
...ava/eu/dzhw/fdz/metadatamanagement/datapackagemanagement/domain/ddiCodebook/StdyDscr.java
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
package eu.dzhw.fdz.metadatamanagement.datapackagemanagement.domain.ddiCodebook; | ||
|
||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | ||
import javax.xml.bind.annotation.XmlElement; | ||
|
||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public class StdyDscr { | ||
|
||
@JacksonXmlProperty(localName = "citation") | ||
public StdyDscr() {} | ||
|
||
@XmlElement(name="citation") | ||
Citation citation; | ||
|
||
} |
14 changes: 10 additions & 4 deletions
14
.../eu/dzhw/fdz/metadatamanagement/datapackagemanagement/domain/ddiCodebook/TextElement.java
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
13 changes: 8 additions & 5 deletions
13
...ava/eu/dzhw/fdz/metadatamanagement/datapackagemanagement/domain/ddiCodebook/TitlStmt.java
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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
package eu.dzhw.fdz.metadatamanagement.datapackagemanagement.domain.ddiCodebook; | ||
|
||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | ||
import javax.xml.bind.annotation.XmlElement; | ||
|
||
import lombok.AllArgsConstructor; | ||
|
||
@AllArgsConstructor | ||
public class TitlStmt { | ||
|
||
@JacksonXmlProperty(localName = "titl") | ||
private TextElement titl; | ||
public TitlStmt() {} | ||
|
||
@XmlElement(name="titl") | ||
TextElement titl; | ||
|
||
@JacksonXmlProperty(localName = "parTitl") | ||
private TextElement parTitle; | ||
@XmlElement(name="parTitl") | ||
TextElement parTitle; | ||
|
||
} |
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
21 changes: 21 additions & 0 deletions
21
...eu/dzhw/fdz/metadatamanagement/datapackagemanagement/domain/ddiCodebook/package-info.java
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
/** | ||
* Configuration for JAXB | ||
*/ | ||
|
||
@XmlSchema( | ||
xmlns = { | ||
@XmlNs(prefix = "", namespaceURI = "ddi:codebook:2_5"), | ||
@XmlNs(prefix = "xs", namespaceURI = "http://www.w3.org/2001/XMLSchema") | ||
}, | ||
namespace = "ddi:codebook:2_5", | ||
elementFormDefault = XmlNsForm.QUALIFIED) | ||
package eu.dzhw.fdz.metadatamanagement.datapackagemanagement.domain.ddiCodebook; | ||
|
||
import javax.xml.bind.annotation.XmlNs; | ||
import javax.xml.bind.annotation.XmlNsForm; | ||
import javax.xml.bind.annotation.XmlSchema; | ||
|
||
|
||
|
||
|
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