
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
    }

}


package org.fcrepo.jaxb.responses.management;

import java.net.URI;

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

@XmlRootElement(name = "datastreamProfile", namespace = "http://www.fedora.info/definitions/1/0/management/")
public class DatastreamProfile {

    @XmlAttribute
    public String pid;

    @XmlAttribute
    public String dsID;

    @XmlElement
    public String dsLabel;

    @XmlElement
    public String dsVersionID;

    @XmlElement
    public String dsCreateDate;

    @XmlElement
    public DatastreamStates dsState;

    @XmlElement
    public String dsMIME;

    @XmlElement
    public URI dsFormatURI;

    @XmlElement
    public DatastreamControlGroup dsControlGroup;

    @XmlElement
    public long dsSize;

    @XmlElement
    public String dsVersionable;

    @XmlElement
    public String dsInfoType;

    @XmlElement
    public String dsLocation;

    @XmlElement
    public String dsLocationType;

    @XmlElement
    public String dsChecksumType;

    @XmlElement
    public String dsChecksum;

    public static enum DatastreamControlGroup {
        M, E, R
    }

    public static enum DatastreamStates {
        A, D, I
    }

}

fix datastream profile response