
com.day.util.diff.FileDocumentSource Maven / Gradle / Ivy
/*
* $URL$
* $Id$
*
* Copyright 1997-2006 Day Management AG
* Barfuesserplatz 6, 4001 Basel, Switzerland
* All Rights Reserved.
*
* This software is the confidential and proprietary information of
* Day Management AG, ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* accordance with the terms of the license agreement you entered into
* with Day.
*/
package com.day.util.diff;
import java.io.File;
/**
* FileDocumentSource
...
*
* @author tripod
* @version $Rev$, $Date$
*/
public class FileDocumentSource implements DocumentSource {
/**
* The CVS/SVN id
*/
static final String CVS_ID = "$URL$ $Rev$ $Date$";
private final File file;
public FileDocumentSource(File file) {
this.file = file;
}
public File getFile() {
return file;
}
public String getLabel() {
return file.getName();
}
public String getLocation() {
return file.getPath();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy