Top Description Fields Constructors Methods
org.hsqldb.util.preprocessor

public Class BasicResolver

extends Object
implements IResolver
Class Inheritance
All Implemented Interfaces
org.hsqldb.util.preprocessor.IResolver
Annotations
@SuppressWarnings:ClassWithoutLogger
Imports
java.io.File, .IOException

Resolves paths using a parent directory; does not resolve properties.
Author
Campbell Burnet (campbell-burnet@users dot sourceforge.net)
Since
1.8.1
Version
2.7.0

Field Summary

Modifier and TypeField and Description
private final File

Constructor Summary

AccessConstructor and Description
public
public
BasicResolver(final File parentDir)

Method Summary

Modifier and TypeMethod and Description
public static IResolver

Returns:

a new instance.
forPath
(final String
for resolving other abstract paths.
path
)

creates a new resolver rooted at the given path or its parent.

public File
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

parentDirback to summary
private final File parentDir

Constructor Detail

BasicResolverback to summary
public BasicResolver()
BasicResolverback to summary
public BasicResolver(final File parentDir)

Method Detail

forPathback to summary
public static IResolver forPath(final String path)

creates a new resolver rooted at the given path or its parent.

Parameters
path:String

for resolving other abstract paths.

Returns:IResolver

a new instance.

Exceptions
IllegalArgumentException:
if the path is not a directory, cannot be created as a directory, does not have a parent and a parent cannot be created as a directory, of if the file exist and is not a file or a directory.
resolveFileback to summary
public File resolveFile(final String path)

Implements org.hsqldb.util.preprocessor.IResolver.resolveFile.

Annotations
@Override
resolvePropertiesback to summary
public String resolveProperties(final String expression)

Implements org.hsqldb.util.preprocessor.IResolver.resolveProperties.

Annotations
@Override