srcanaapps/depexplorer/com.nokia.s60tools.appdep/src/com/nokia/s60tools/appdep/ui/dialogs/SISFileEntry.java
changeset 0 a02c979e8dfd
equal deleted inserted replaced
-1:000000000000 0:a02c979e8dfd
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17  
       
    18 package com.nokia.s60tools.appdep.ui.dialogs;
       
    19 
       
    20 import java.io.File;
       
    21 
       
    22 
       
    23 /**
       
    24  * Stores information on a single SIS file entry.
       
    25  */
       
    26 public class SISFileEntry {
       
    27 	
       
    28 	//
       
    29 	// Column sorting indices for table column sorter
       
    30 	//
       
    31 	public static final int NAME_COLUMN_INDEX = 0;
       
    32 	public static final int LOCATION_COLUMN_INDEX = 1;
       
    33 	
       
    34 	/**
       
    35 	 * Path name of the directory SIS file is locating.
       
    36 	 */
       
    37 	private final String locationPath;
       
    38 	
       
    39 	/**
       
    40 	 * Name of the SIS file without path. 
       
    41 	 */
       
    42 	private final String fileName;
       
    43 		
       
    44 	/**
       
    45 	 * Constructor.
       
    46 	 * @param locationPath path name of the directory SIS file is locating.
       
    47 	 * @param fileName name of the SIS file without path.
       
    48 	 */
       
    49 	public SISFileEntry(String locationPath, String fileName){
       
    50 		this.locationPath = locationPath;
       
    51 		this.fileName = fileName;		
       
    52 	}
       
    53 
       
    54 	/**
       
    55 	 * Gets path name of the directory SIS file is locating.
       
    56 	 * @return path name of the directory SIS file is locating.
       
    57 	 */
       
    58 	public String getLocation() {
       
    59 		return locationPath;
       
    60 	}
       
    61 
       
    62 	/**
       
    63 	 * Gets name of the SIS file without path. 
       
    64 	 * @return name of the SIS file without path.
       
    65 	 */
       
    66 	public String getFileName() {
       
    67 		return fileName;
       
    68 	}
       
    69 	
       
    70 	/**
       
    71 	 * Gets name of the SIS file with absolute path. 
       
    72 	 * @return name of the SIS file with absolute path.
       
    73 	 */
       
    74 	public String getFullPathFileName() {
       
    75 		return getLocation() + File.separator + getFileName();
       
    76 	}
       
    77 	
       
    78 }