public class ConfigLocation extends Object
| Constructor and Description |
|---|
ConfigLocation(String n,
String dir,
String s)
Constructs a new config location.
|
ConfigLocation(String j,
String n,
String dir,
String s)
Constructs a new schema location that's located in a JAR file.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigName() |
String |
getConfigParentDirectory() |
String |
getDirectory() |
String |
getFileName()
The complete file name of this config file OR When the file is found in a JAR file,
it's the URL of the file, for example
"jar:file:" + jarFileName + "!/" + jarDirectory + "/" + configName + ".xxx" URL url = new URL(fileName); |
String |
getJarDirectory()
If the schema was in a JAR, this is the name of the directory within the
JAR where it was found.
|
String |
getJarFilename()
If the schema was in a JAR, this is the fully qualified name of the JAR.
|
String |
getJustJarFilename()
If the schema was in a JAR, this is just the name of the JAR.
|
String |
getVersion() |
boolean |
isFromJAR() |
String |
toString() |
public ConfigLocation(String n, String dir, String s)
n - The name of the config file with the suffix e.g. config.suffixdir - The directory where this file was found.s - The config file suffix.public ConfigLocation(String j, String n, String dir, String s)
j - The JAR file name (that ends with DMSChema.jar). Example:n - The name of the config file with the .whatever suffix in place.dir - The sub directory in the JAR where the schema is found.s - The config file suffix.public boolean isFromJAR()
public String getConfigName()
public String getDirectory()
public String getFileName()
public String getConfigParentDirectory()
public String getVersion()
public String getJarFilename()
public String getJarDirectory()
public String getJustJarFilename()
Copyright © 2023. All rights reserved.