001/** 002 * The contents of this file are subject to the license and copyright 003 * detailed in the LICENSE and NOTICE files at the root of the source 004 * tree. 005 * 006 */ 007package org.fcrepo.migration; 008 009import java.nio.file.Path; 010 011/** 012 * A default implementation of ObjectInfo that accepts 013 * values at construction time. 014 * @author mdurbin 015 */ 016public class DefaultObjectInfo implements ObjectInfo { 017 018 private String pid; 019 private String uri; 020 private Path foxmlPath; 021 022 /** 023 * the default object info 024 * @param pid the pid 025 * @param uri the uri 026 * @param foxmlPath path to the foxml file 027 */ 028 public DefaultObjectInfo(final String pid, final String uri, final Path foxmlPath) { 029 this.pid = pid; 030 this.uri = uri; 031 this.foxmlPath = foxmlPath; 032 } 033 034 @Override 035 public String getPid() { 036 return pid; 037 } 038 039 @Override 040 public String getFedoraURI() { 041 return uri; 042 } 043 044 @Override 045 public Path getFoxmlPath() { 046 return foxmlPath; 047 } 048}