package com.nedap.archie.rm.datavalues;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import java.net.URI;

/**
 * Created by pieter.bos on 04/11/15.
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DV_URI", propOrder = {
        "value"
})
public class DvURI extends DataValue implements SingleValuedDataValue<URI>{

    private URI value; //supposed to be a string, but this is better. Let's see how far we get with this

    @Override
    public URI getValue() {
        return value;
    }

    @Override
    public void setValue(URI value) {
        this.value = value;
    }
}

@@ -413,12 +413,16 @@
 lue%3C
-URI%3E
+String%3E 
 %7B%0A%0A 
@@ -551,19 +551,22 @@
  public 
-URI
+String
  getValu
@@ -587,24 +587,35 @@
 return value
+.toString()
 ;%0A    %7D%0A%0A   
@@ -650,19 +650,22 @@
 etValue(
-URI
+String
  value) 
@@ -687,21 +687,33 @@
 value = 
+URI.create(
 value
+)
 ;%0A    %7D%0A

Parse string to uri