
package org.fcrepo.jaxb.responses.management;

import java.net.URI;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "datastreamProfile")
public class DatastreamProfile {

    @XmlAttribute
    public String pid;

    @XmlAttribute
    public String dsID;

    @XmlAttribute
    public String dsLabel;

    @XmlAttribute
    public String dsVersionID;

    @XmlAttribute
    public String dsCreateDate;

    @XmlAttribute
    public DatastreamStates dsState;

    @XmlAttribute
    public String dsMIME;

    @XmlAttribute
    public URI dsFormatURI;

    @XmlAttribute
    public DatastreamControlGroup dsControlGroup;

    @XmlAttribute
    public long dsSize;

    @XmlAttribute
    public String dsVersionable;

    @XmlAttribute
    public String dsInfoType;

    @XmlAttribute
    public String dsLocation;

    @XmlAttribute
    public String dsLocationType;

    @XmlAttribute
    public String dsChecksumType;

    @XmlAttribute
    public String dsChecksum;

    public static enum DatastreamControlGroup {
        M, E, R
    }

    public static enum DatastreamStates {
        A, D, I
    }

}

@@ -110,16 +110,61 @@
 ribute;%0A
+import javax.xml.bind.annotation.XmlElement;%0A
 import j
@@ -247,16 +247,82 @@
 Profile%22
+, namespace = %22http://www.fedora.info/definitions/1/0/management/%22
 )%0Apublic
@@ -438,33 +438,31 @@
 D;%0A%0A    @Xml
-Attribute
+Element
 %0A    public 
@@ -482,33 +482,31 @@
 l;%0A%0A    @Xml
-Attribute
+Element
 %0A    public 
@@ -530,33 +530,31 @@
 D;%0A%0A    @Xml
-Attribute
+Element
 %0A    public 
@@ -579,33 +579,31 @@
 e;%0A%0A    @Xml
-Attribute
+Element
 %0A    public 
@@ -633,33 +633,31 @@
 e;%0A%0A    @Xml
-Attribute
+Element
 %0A    public 
@@ -676,33 +676,31 @@
 E;%0A%0A    @Xml
-Attribute
+Element
 %0A    public 
@@ -721,33 +721,31 @@
 I;%0A%0A    @Xml
-Attribute
+Element
 %0A    public 
@@ -788,33 +788,31 @@
 p;%0A%0A    @Xml
-Attribute
+Element
 %0A    public 
@@ -829,33 +829,31 @@
 e;%0A%0A    @Xml
-Attribute
+Element
 %0A    public 
@@ -879,33 +879,31 @@
 e;%0A%0A    @Xml
-Attribute
+Element
 %0A    public 
@@ -926,33 +926,31 @@
 e;%0A%0A    @Xml
-Attribute
+Element
 %0A    public 
@@ -973,33 +973,31 @@
 n;%0A%0A    @Xml
-Attribute
+Element
 %0A    public 
@@ -1024,33 +1024,31 @@
 e;%0A%0A    @Xml
-Attribute
+Element
 %0A    public 
@@ -1075,33 +1075,31 @@
 e;%0A%0A    @Xml
-Attribute
+Element
 %0A    public 

fix datastream profile response