Package io.github.qishr.cascara.common.util
Class Cascara
java.lang.Object
io.github.qishr.cascara.common.util.Cascara
public class Cascara
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public static boolean | isFileTimeSupported() | |
| public static SemVer | getVersion() | |
| public static String | getHomeEnvVar() | |
| public static Path | getHomePath() | |
| public static void | setHomePath(Path path) | |
| public static Path | getContentTypesPath() | The path of the content types registry file. |
| public static Path | getSchemasPath() | The path of the schema store irectory. |
| public static Path | getSplPropertiesPath() | The path of the properties file containing definitions of default or preferred service providers If this file is empty, or if a service is not listed in it, when a provider is requested the first matching provider will be returned by SPL. |
| public static Path | getModulePath() | |
| public static List<String> | getInstalledVersions() | |
| public static Path | getActiveVersionPath() | |
| public static String | getActiveVersionString() | |
| public static SemVer | toSemVer(String version) | |
| public static Path | getSharedPath() |
Method Details
isFileTimeSupported
public static boolean isFileTimeSupported()
getVersion
public static SemVer getVersion()
getHomeEnvVar
public static String getHomeEnvVar()
getHomePath
public static Path getHomePath()
setHomePath
@io.github.qishr.cascara.common.annotation.Experimental
public static void setHomePath(Path path)
getContentTypesPath
public static Path getContentTypesPath()
The path of the content types registry file.
getSchemasPath
public static Path getSchemasPath()
The path of the schema store irectory.
getSplPropertiesPath
public static Path getSplPropertiesPath()
The path of the properties file containing definitions of default or preferred service providers If this file is empty, or if a service is not listed in it, when a provider is requested the first matching provider will be returned by SPL.
getModulePath
public static Path getModulePath()
getInstalledVersions
public static List<String> getInstalledVersions()
getActiveVersionPath
@io.github.qishr.cascara.common.annotation.Nullable
public static Path getActiveVersionPath()
getActiveVersionString
@io.github.qishr.cascara.common.annotation.Nullable
public static String getActiveVersionString()
toSemVer
public static SemVer toSemVer(String version)
getSharedPath
public static Path getSharedPath()