|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.extension.jdbc.gen.internal.version.ManagedFileImpl
public class ManagedFileImpl
ManagedFile
の実装クラスです。
入れ子のクラスの概要 | |
---|---|
protected static class |
ManagedFileImpl.FileInfo
ファイル情報です。 |
フィールドの概要 | |
---|---|
protected ManagedFileImpl.FileInfo |
envNamedFileInfo
環境名つきファイル情報 |
protected ManagedFileImpl.FileInfo |
fileInfo
ファイル情報 |
protected ManagedFile |
parent
親の ManagedFile |
コンストラクタの概要 | |
---|---|
protected |
ManagedFileImpl(ManagedFile parent,
java.lang.String basePath,
java.lang.String relativePath,
java.lang.String env)
インスタンスを構築します。 |
protected |
ManagedFileImpl(java.lang.String basePath,
java.lang.String relativePath,
java.lang.String env)
インスタンスを構築します。 |
メソッドの概要 | |
---|---|
java.io.File |
asFile()
File として返します。 |
ManagedFile |
createChild(java.lang.String childName)
このインスタンスの子となるバージョン管理されたファイルを作成します。 |
protected ManagedFile |
createChildInternal(java.lang.String relativePath)
このインスタンスの子となるバージョン管理されたディレクトリを作成します。 |
boolean |
createNewFile()
空の新しいファイルを不可分 (atomic) に生成します。 |
boolean |
delete()
ファイルまたはディレクトリを削除します。 |
boolean |
exists()
ファイルまたはディレクトリが存在するかどうかを判定します。 |
protected java.io.File |
getFile()
ファイルを返します。 |
protected ManagedFileImpl.FileInfo |
getFileInfo()
ファイル情報を返します。 |
protected java.util.List<java.io.File> |
getFileList(java.util.Map<java.lang.String,java.io.File> fileMap)
ファイルのリストを返します。 |
java.lang.String |
getName()
名前を返します。 |
ManagedFile |
getParent()
親の ManagedFile を返します。 |
java.lang.String |
getRelativePath()
バージョンディレクトリからの相対パスを返します。 |
boolean |
hasChild()
子ディレクトリもしくは子ファイルを持っている場合 true を返します。 |
boolean |
isDirectory()
ディレクトリであるかどうかを判定します。 |
java.util.List<java.io.File> |
listAllFiles()
このインスタンスがディレクトリを表す場合、ディレクトリ階層下に含まれる全ファイルを返します。 |
java.util.List<ManagedFile> |
listManagedFiles()
ディレクトリ内の ManagedFile のリストを返します。 |
java.util.List<ManagedFile> |
listManagedFiles(java.io.FilenameFilter filter)
ディレクトリ内の ManagedFile のリストを返します。 |
boolean |
mkdir()
ディレクトリを生成します。 |
boolean |
mkdirs()
ディレクトリを生成します。 |
protected void |
traverseDirectory(ManagedFileImpl.FileInfo fileInfo,
java.util.Map<java.lang.String,java.io.File> fileMap)
ディレクトリを横断します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected ManagedFile parent
ManagedFile
protected ManagedFileImpl.FileInfo fileInfo
protected ManagedFileImpl.FileInfo envNamedFileInfo
コンストラクタの詳細 |
---|
protected ManagedFileImpl(java.lang.String basePath, java.lang.String relativePath, java.lang.String env)
basePath
- ベースパスrelativePath
- ベースパスからの相対パスenv
- 環境名protected ManagedFileImpl(ManagedFile parent, java.lang.String basePath, java.lang.String relativePath, java.lang.String env)
parent
- 親のManagedFile
、このインスタンスがバージョンディレクトリの場合null
basePath
- ベースパスrelativePath
- ベースパスからの相対パスenv
- 環境名メソッドの詳細 |
---|
public java.io.File asFile()
ManagedFile
の記述: File
として返します。
ManagedFile
内の asFile
File
public java.lang.String getRelativePath()
ManagedFile
の記述:
ManagedFile
内の getRelativePath
public java.lang.String getName()
ManagedFile
の記述:
ManagedFile
内の getName
public boolean delete()
ManagedFile
の記述:
ManagedFile
内の delete
true
、そうでない場合はfalse
public boolean exists()
ManagedFile
の記述:
ManagedFile
内の exists
true
、そうでない場合はfalse
public boolean isDirectory()
ManagedFile
の記述:
ManagedFile
内の isDirectory
true
、そうでない場合はfalse
public ManagedFile getParent()
ManagedFile
の記述: ManagedFile
を返します。
ManagedFile
内の getParent
ManagedFile
public boolean mkdir()
ManagedFile
の記述:
ManagedFile
内の mkdir
true
、そうでない場合はfalse
public boolean mkdirs()
ManagedFile
の記述:
ManagedFile
内の mkdirs
true
、そうでない場合はfalse
public boolean createNewFile()
ManagedFile
の記述:
ManagedFile
内の createNewFile
true
、示されたファイルがすでに存在する場合は
false
public java.util.List<ManagedFile> listManagedFiles()
ManagedFile
の記述: ManagedFile
のリストを返します。
ManagedFile
内の listManagedFiles
ManagedFile
のリストpublic java.util.List<ManagedFile> listManagedFiles(java.io.FilenameFilter filter)
ManagedFile
の記述: ManagedFile
のリストを返します。
ManagedFile
内の listManagedFiles
filter
- ファイル名フィルタ
ManagedFile
のリストpublic ManagedFile createChild(java.lang.String childName)
ManagedFile
の記述:
ManagedFile
内の createChild
childName
- 子となるファイルまたはディレクトリの名前
protected ManagedFile createChildInternal(java.lang.String relativePath)
relativePath
- このインスタンスが表すファイルからの相対パス
public java.util.List<java.io.File> listAllFiles()
ManagedFile
の記述: 返されるリストにはファイルのみが含まれ、ディレクトリは含まれません。
ManagedFile
内の listAllFiles
protected java.util.List<java.io.File> getFileList(java.util.Map<java.lang.String,java.io.File> fileMap)
fileMap
- パスの文字列をキー、 File
を値とするマップ
protected void traverseDirectory(ManagedFileImpl.FileInfo fileInfo, java.util.Map<java.lang.String,java.io.File> fileMap)
fileInfo
- ディレクトリの情報fileMap
- ディレクトリからの相対パスをキー、ファイルを値とするマップpublic boolean hasChild()
ManagedFile
の記述: true
を返します。
ManagedFile
内の hasChild
true
、そうでない場合false
protected java.io.File getFile()
protected ManagedFileImpl.FileInfo getFileInfo()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |