dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16270
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6152: minor changes to dataEntryForm
------------------------------------------------------------
revno: 6152
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-03-02 14:29:39 +0100
message:
minor changes to dataEntryForm
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataentryform/DataEntryForm.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataentryform/DataEntryForm.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataentryform/DataEntryForm.java 2011-12-26 10:07:59 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataentryform/DataEntryForm.java 2012-03-02 13:29:39 +0000
@@ -27,8 +27,14 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+import org.codehaus.jackson.annotate.JsonProperty;
+import org.hisp.dhis.common.Dxf2Namespace;
import org.hisp.dhis.common.ImportableObject;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.Map;
import java.util.regex.Matcher;
@@ -37,6 +43,8 @@
/**
* @author Bharath Kumar
*/
+@XmlRootElement( name = "dataEntryForm", namespace = Dxf2Namespace.NAMESPACE )
+@XmlAccessorType( value = XmlAccessType.NONE )
public class DataEntryForm
implements Serializable, ImportableObject
{
@@ -181,6 +189,8 @@
this.id = id;
}
+ @XmlElement
+ @JsonProperty
public String getName()
{
return name;
@@ -191,6 +201,8 @@
this.name = name;
}
+ @XmlElement
+ @JsonProperty
public String getHtmlCode()
{
return htmlCode;