Class InfrastructureFileDescriptor
java.lang.Object
net.sourceforge.jnlp.config.InfrastructureFileDescriptor
- Direct Known Subclasses:
PathsAndFiles.CacheFileDescriptor, PathsAndFiles.ConfigFileDescriptor, PathsAndFiles.DataFileDescriptor, PathsAndFiles.HomeFileDescriptor, PathsAndFiles.RuntimeFileDescriptor, PathsAndFiles.SystemConfigFileDescriptor, PathsAndFiles.SystemJavaFileDescriptor, PathsAndFiles.TmpUsrFileDescriptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringRemove garbage from paths.protected StringFor documentation purposes, the descriptor may be created as VARIABLE/custom/path.getFile()protected StringgetFullPath(DeploymentConfiguration config) overload version for control panel, which is saving to internal copy.protected Stringsetup-able files have to override this if they don't, they are read only, and set value will fail if it is desired to write value of property, then override and use known key.private StringgetStub()This remaining part of file declaration, when acronym is removed.protected StringgetUrl()voidvoidsetValue(String value, DeploymentConfiguration config) overload version for control panel, which is saving to internal copy.toString()
-
Field Details
-
fileName
-
pathStub
-
systemPathStub
-
descriptionKey
-
target
-
-
Constructor Details
-
InfrastructureFileDescriptor
protected InfrastructureFileDescriptor() -
InfrastructureFileDescriptor
-
-
Method Details
-
getPropertiesKey
setup-able files have to override this if they don't, they are read only, and set value will fail if it is desired to write value of property, then override and use known key.- Returns:
- null by default. Should return key to configuration if overridden.
-
getFile
-
getUrl
- Throws:
MalformedURLException
-
setValue
-
getFullPath
-
setValue
overload version for control panel, which is saving to internal copy.- Parameters:
value- new path of fileconfig- config where t write this value (note, usually JNLPRuntime.getConfiguration() so you don't need it, but our config gui tool is using two sets to allow undo.
-
getFullPath
overload version for control panel, which is saving to internal copy.- Parameters:
config- config from where to read this value (note, usually JNLPRuntime.getConfiguration() so you don't need it, but our config gui tool is using two sets to allow undo.- Returns:
- configured property or default
-
getDefaultFullPath
-
getSystemPathStubAcronym
-
getFileName
-
getDescriptionKey
-
getStub
This remaining part of file declaration, when acronym is removed. See getDirViaAcronym.- Returns:
-
toString
-
getDirViaAcronym
For documentation purposes, the descriptor may be created as VARIABLE/custom/path.This is whole part, which is considered as setup-able.
- Returns:
- directory acronym for nice docs
-
clean
Remove garbage from paths.Currently this methods unify all multiple occurrences of separators to single one. Eg /path/to//file will become /path/to/file.
Those artifacts maybe spread during various s=path+separator+subdir+separator file=s+separator+filename
- Parameters:
s- string to be cleaned- Returns:
- cleaned string
-
getDescription
- Returns:
- the translated description
-