mp3file.java

来自「eclise rcp 项目,是非常好的学习源码」· Java 代码 · 共 63 行

JAVA
63
字号
/*******************************************************************************
 * Copyright (c) 2007 Siemens AG
 * 
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Kai T鰀ter - initial API and implementation
 *******************************************************************************/
 
package com.siemens.ct.mp3m.model.physical;

import org.eclipse.core.runtime.PlatformObject;


public class Mp3File extends PlatformObject {
    String name;

    Mp3Directory directory;

    String fullPath;

    public Mp3File(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setDirectory(Mp3Directory parent) {
        this.directory = parent;
    }

    public Mp3Directory getDirectory() {
        return directory;
    }

    public String toString() {
        return getName();
    }

    /**
     * Gets the fullPath.
     * 
     * @return Returns the fullPath.
     */
    public String getFullPath() {
        return fullPath;
    }

    /**
     * Sets the fullPath.
     * 
     * @param fullPath
     *            The fullPath to set.
     */
    public void setFullPath(String fullPath) {
        this.fullPath = fullPath;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?