Package org.fcrepo.migration
Class DefaultObjectInfo
- java.lang.Object
-
- org.fcrepo.migration.DefaultObjectInfo
-
- All Implemented Interfaces:
ObjectInfo
public class DefaultObjectInfo extends Object implements ObjectInfo
A default implementation of ObjectInfo that accepts values at construction time.- Author:
- mdurbin
-
-
Constructor Summary
Constructors Constructor Description DefaultObjectInfo(String pid, String uri, Path foxmlPath)the default object info
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFedoraURI()PathgetFoxmlPath()StringgetPid()
-
-
-
Constructor Detail
-
DefaultObjectInfo
public DefaultObjectInfo(String pid, String uri, Path foxmlPath)
the default object info- Parameters:
pid- the piduri- the urifoxmlPath- path to the foxml file
-
-
Method Detail
-
getPid
public String getPid()
- Specified by:
getPidin interfaceObjectInfo- Returns:
- the pid of the object.
-
getFedoraURI
public String getFedoraURI()
- Specified by:
getFedoraURIin interfaceObjectInfo- Returns:
- the Fedora URI of the object (or null if none is available in the source).
-
getFoxmlPath
public Path getFoxmlPath()
- Specified by:
getFoxmlPathin interfaceObjectInfo- Returns:
- the path to the foxml file of this object.
-
-