Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
168 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
src/main/java/org/fcrepo/modeshape/jaxb/FedoraObjectStates.java
This file was deleted.
Oops, something went wrong.
67 changes: 67 additions & 0 deletions
67
src/main/java/org/fcrepo/modeshape/jaxb/responses/DatastreamProfile.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
package org.fcrepo.modeshape.jaxb.responses; | ||
|
||
import java.net.URI; | ||
|
||
import javax.xml.bind.annotation.XmlAttribute; | ||
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; | ||
|
||
@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 String 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 | ||
} | ||
|
||
} |
40 changes: 40 additions & 0 deletions
40
src/main/java/org/fcrepo/modeshape/jaxb/responses/NamespaceListing.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package org.fcrepo.modeshape.jaxb.responses; | ||
|
||
import java.net.URI; | ||
import java.util.Set; | ||
|
||
import javax.xml.bind.annotation.XmlAttribute; | ||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlRootElement; | ||
|
||
@XmlRootElement(name = "namespaceRegistry", namespace = "http://www.fedora.info/definitions/1/0/management/") | ||
public class NamespaceListing { | ||
|
||
@XmlElement(name = "namespace") | ||
public Set<Namespace> namespaces; | ||
|
||
public NamespaceListing(Set<Namespace> nses) { | ||
this.namespaces = nses; | ||
} | ||
|
||
public NamespaceListing() { | ||
} | ||
|
||
public static class Namespace { | ||
|
||
@XmlAttribute | ||
public String prefix; | ||
|
||
@XmlAttribute(name = "URI") | ||
public URI uri; | ||
|
||
public Namespace(String prefix, URI uri) { | ||
this.prefix = prefix; | ||
this.uri = uri; | ||
} | ||
|
||
public Namespace() { | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.