Skip to content

Commit

Permalink
Added Javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Feb 26, 2013
1 parent d6ad261 commit 13b5a8f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
14 changes: 14 additions & 0 deletions fcrepo-kernel/src/main/java/org/fcrepo/FedoraObject.java
Expand Up @@ -15,6 +15,13 @@

import org.modeshape.jcr.api.JcrTools;

/**
* An abstraction that represents a Fedora Object backed by
* a JCR node.
*
* @author ajs6f
*
*/
public class FedoraObject extends JcrTools {

private Node node;
Expand All @@ -35,10 +42,17 @@ public FedoraObject(Session session, String path)
node.getName()});
}

/**
* @return The JCR name of the node that backs this object.
* @throws RepositoryException
*/
public String getName() throws RepositoryException {
return node.getName();
}

/**
* @return The JCR node that backs this object.
*/
public Node getNode() {
return node;
}
Expand Down
Expand Up @@ -82,7 +82,7 @@ public static Node getObjectNode(final String pid)

/**
* @param pid
* @return A FedoraObject with the proferred PID
* @return A FedoraObject with the proffered PID
* @throws RepositoryException
*/
public static FedoraObject getObject(final String pid)
Expand Down
@@ -1,6 +1,12 @@

package org.fcrepo.utils;

/**
* Convenience class with constants for commonly used JCR types.
*
* @author ajs6f
*
*/
public class FedoraJcrTypes {

public static final String FEDORA_DATASTREAM = "fedora:datastream";
Expand Down

0 comments on commit 13b5a8f

Please sign in to comment.