001/*
002 * Copyright 2015 DuraSpace, Inc.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.fcrepo.migration;
017
018import java.nio.file.Path;
019
020/**
021 * A default implementation of ObjectInfo that accepts
022 * values at construction time.
023 * @author mdurbin
024 */
025public class DefaultObjectInfo implements ObjectInfo {
026
027    private String pid;
028    private String uri;
029    private Path foxmlPath;
030
031    /**
032     * the default object info
033     * @param pid the pid
034     * @param uri the uri
035     * @param foxmlPath path to the foxml file
036     */
037    public DefaultObjectInfo(final String pid, final String uri, final Path foxmlPath) {
038        this.pid = pid;
039        this.uri = uri;
040        this.foxmlPath = foxmlPath;
041    }
042
043    @Override
044    public String getPid() {
045        return pid;
046    }
047
048    @Override
049    public String getFedoraURI() {
050        return uri;
051    }
052
053    @Override
054    public Path getFoxmlPath() {
055        return foxmlPath;
056    }
057}