Skip to content

Commit

Permalink
Merge pull request #50 from openEHR/make_root_element
Browse files Browse the repository at this point in the history
Add @XmlRootElement annotations to some data structures
  • Loading branch information
pieterbos authored Sep 10, 2018
2 parents 4871c66 + 6575c80 commit 37be157
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 37be157

Please sign in to comment.