public class DirectoryTarget extends AbstractDirectoryInfo implements InfoSource
AbstractDirectoryInfo.OptionsasStringOpt, errors, file, url| Constructor and Description |
|---|
DirectoryTarget(String directory)
Creates a new directory target object from a directory name.
|
DirectoryTarget(String directory,
InfoLocationOptions option)
Creates a new directory target from a directory name with options.
|
| Modifier and Type | Method and Description |
|---|---|
String |
asString()
Returns a string representation of the source for messages.
|
IsErrorSetFT |
getInitError()
Returns any error that happened during initialization (and relate validation) of the source.
|
Object |
getSource()
Returns the actual source.
|
protected ValidationOptions |
valOption()
Returns the validation option which makes this abstract implementation a info object or target or both.
|
asFile, asURL, getFullDirecoryName, getSetRootPath, init, isValid, reset, setAsStringOption, testDirectory, tryCP, tryFSclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisValidpublic DirectoryTarget(String directory)
directory - name of the directory.
Path information can be relative to any path in the class path.public DirectoryTarget(String directory, InfoLocationOptions option)
directory - name of the directory.
Path information can be relative to any path in the class path.option - an option on how to locate the directorypublic Object getSource()
InfoSourcegetSource in interface InfoSourcepublic IsErrorSetFT getInitError()
InfoSourcegetInitError in interface InfoSourceprotected ValidationOptions valOption()
AbstractDirectoryInfovalOption in class AbstractDirectoryInfopublic String asString()
InfoSourceasString in interface InfoSourceCopyright © 2010–2017. All rights reserved.