jp.sourceforge.gtibuilder.io.filesystem
クラス Root

java.lang.Object
  拡張jp.sourceforge.gtibuilder.io.filesystem.GBFile
      拡張jp.sourceforge.gtibuilder.io.filesystem.Root
すべての実装インタフェース:
Serializable

public class Root
extends GBFile

関連項目:
直列化された形式

フィールドの概要
 
クラス jp.sourceforge.gtibuilder.io.filesystem.GBFile から継承したフィールド
 
コンストラクタの概要
Root(Project project)
          Creates a new instance of Root
 
メソッドの概要
 boolean createNewFile()
          このファイルがまだ存在しないとき普通のファイルを作成します。
 boolean delete()
          このファイルを削除します。
 boolean exists()
          このファイルが存在するときにtrueを返します。
 String getName()
          ファイル名を返します
 String getParent()
          このファイルの親のパスを返します。
 GBFile getParentFile()
          このファイルの親を返します。
 boolean isDirectory()
          このファイルがディレクトリのときにtrueを返します。
 boolean isRoot()
           
 boolean mkdir()
          このファイルがまだ存在しないときディレクトリを作成します。
 String toString()
          このファイルのパスを返します。
 
クラス jp.sourceforge.gtibuilder.io.filesystem.GBFile から継承したメソッド
addFileUpdateListener, getData, getEditorComponent, getFileInfomation, getFileType, getGBFile, getGBFile, getPath, getRoot, isFile, list, listFile, removeFileUpdateListener, setData, setFileInfomation, setFileType, setName, setParentFile
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

Root

public Root(Project project)
Creates a new instance of Root

メソッドの詳細

getName

public String getName()
クラス GBFile の記述:
ファイル名を返します

オーバーライド:
クラス GBFile 内の getName

createNewFile

public boolean createNewFile()
クラス GBFile の記述:
このファイルがまだ存在しないとき普通のファイルを作成します。

オーバーライド:
クラス GBFile 内の createNewFile

getParent

public String getParent()
クラス GBFile の記述:
このファイルの親のパスを返します。

オーバーライド:
クラス GBFile 内の getParent

isDirectory

public boolean isDirectory()
クラス GBFile の記述:
このファイルがディレクトリのときにtrueを返します。

オーバーライド:
クラス GBFile 内の isDirectory

mkdir

public boolean mkdir()
クラス GBFile の記述:
このファイルがまだ存在しないときディレクトリを作成します。
java.io.File.mkdirs()に同じです。

オーバーライド:
クラス GBFile 内の mkdir

toString

public String toString()
クラス GBFile の記述:
このファイルのパスを返します。

オーバーライド:
クラス GBFile 内の toString

getParentFile

public GBFile getParentFile()
クラス GBFile の記述:
このファイルの親を返します。

オーバーライド:
クラス GBFile 内の getParentFile

exists

public boolean exists()
クラス GBFile の記述:
このファイルが存在するときにtrueを返します。

オーバーライド:
クラス GBFile 内の exists

delete

public boolean delete()
クラス GBFile の記述:
このファイルを削除します。

オーバーライド:
クラス GBFile 内の delete

isRoot

public boolean isRoot()
オーバーライド:
クラス GBFile 内の isRoot