0bf69441d1c4c9d8c6dd2d757c057962b4192ccd
1 /*******************************************************************************
2 * Copyright (c) 2015 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Marc-Andre Laperle - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.internal
.tmf
.ui
.project
.wizards
.importtrace
;
16 * This interface abstracts the differences between different kinds of
17 * FileSystemObjects such as File, TarEntry, ZipEntry, etc. This allows clients
18 * (TraceFileSystemElement, TraceValidateAndImportOperation) to handle all the
19 * types transparently.
21 public interface IFileSystemObject
{
24 * Get the name of the file system object (last segment).
26 * @return the name of the file system object.
31 * Get the absolute path of the file system object.
33 * @return the absolute path of the file system object
35 String
getAbsolutePath();
38 * Get the source location for this file system object.
40 * @return the source location
42 String
getSourceLocation();
45 * Returns the raw object wrapped by this IFileSystemObject (File, TarEntry, etc).
47 * @return the raw object wrapped by this IFileSystemObject
49 Object
getRawFileSystemObject();
52 * Returns whether or not the file system object exists.
54 * @return whether or not the file system object exists
This page took 0.031559 seconds and 5 git commands to generate.