Package com.install4j.api.context
Interface FileInfo
-
public interface FileInfoProvides information about a file in the distribution tree. Objects of this type are returned byContext.getDestinationFileInfo(String). Also, the "File filter" and "Directory resolver" handlers of the "Install files" action offer a parameter of this type. In those handlers this class is useful to filter or divert an entire installation root.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.FilegetDestinationFile()Get the actual installation location of the file.java.lang.StringgetFilesetId()Get the id of the fileset or a zero length string for the default fileset.java.lang.StringgetFilesetName()Get the name of the fileset, a zero length string for the default fileset, ornullif the fileset is non-existent.java.lang.StringgetRelativeFilePath()Get the relative path of the file in the distribution tree without the installation root.java.io.FilegetRootResolved()Get the resolved installation root for the file.java.lang.StringgetRootUnresolved()Get the unresolved installation root for the file.
-
-
-
Method Detail
-
getDestinationFile
java.io.File getDestinationFile()
Get the actual installation location of the file.- Returns:
- the installation location
-
getRootUnresolved
java.lang.String getRootUnresolved()
Get the unresolved installation root for the file. "Unresolved" means that no installer variables have been replaced.- Returns:
- the unresolved root or
nullfor the installation directory.
-
getRootResolved
java.io.File getRootResolved()
Get the resolved installation root for the file. "Resolved" means that all installer variables have been replaced.- Returns:
- the resolved root
-
getRelativeFilePath
java.lang.String getRelativeFilePath()
Get the relative path of the file in the distribution tree without the installation root.- Returns:
- the relative path
-
getFilesetId
java.lang.String getFilesetId()
Get the id of the fileset or a zero length string for the default fileset.- Returns:
- the fileset id
-
getFilesetName
java.lang.String getFilesetName()
Get the name of the fileset, a zero length string for the default fileset, ornullif the fileset is non-existent.- Returns:
- the fileset name
-
-