Skip to content

Commit

Permalink
Add @XmlRootElement annotations to some data structures
Browse files Browse the repository at this point in the history
  • Loading branch information
tanja-de-jong committed Sep 10, 2018
1 parent 4871c66 commit 6575c80
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
import com.nedap.archie.rm.datavalues.SingleValuedDataValue;

import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.*;

/**
* Created by pieter.bos on 04/11/15.
Expand All @@ -18,6 +15,7 @@
"value",
"nullFlavour"
})
@XmlRootElement(name="element")
public class Element extends Item implements SingleValuedDataValue<DataValue> {

@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;
Expand All @@ -14,6 +15,7 @@
@XmlType(name = "ITEM_LIST", propOrder = {
"items"
})
@XmlRootElement(name="item_list")
public class ItemList extends ItemStructure<Element> {

@Nullable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;
Expand All @@ -14,6 +15,7 @@
@XmlType(name = "ITEM_TABLE", propOrder = {
"rows"
})
@XmlRootElement(name="item_table")
public class ItemTable extends ItemStructure<Element> {

@Nullable
Expand Down

0 comments on commit 6575c80

Please sign in to comment.