package es.icane.metadatos.model;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;

/**
 *
 * @author Alejandro Villar <contacto@alejandro-villar.es>
 */
@XmlType
public class ApiUri {
    private String format;
    private String uri;

    @XmlAttribute
    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    @XmlValue
    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    @Override
    public String toString() {
        return format + "(" + uri + ")";
    }
}

@@ -43,41 +43,23 @@
 java
-x.xml.bind.annotation.XmlAttribut
+.io.Serializabl
 e;%0Ai
@@ -97,15 +97,17 @@
 .Xml
-Element
+Attribute
 ;%0Aim
@@ -289,16 +289,40 @@
  ApiUri 
+implements Serializable 
 %7B%0A    pr

Mark ApiUri as Serializable.