Class PathUtils
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Class<? extends CometEntity>Deprecated.static Class<? extends CometEntity>getClassByAbsolutePath(String path) Gets class by absolute path.static Class<? extends CometEntity>Gets class by project relative path.static Class<? extends CometEntity>getConfigClass(PluginConfigDataHandler container) Gets config class.Gets detailed project layout.static String[]getFolderAndFilename(String path) Get folder and filename string [ ].static PathUtils.PathInfogetPathInfo(String absolutePath) Gets path info.static PathUtils.PathInfogetPathInfoFromOldStructure(String absolutePath) Deprecated.Gets project layout.static final StringgetProjectRelativeContainerPath(int id, Class<? extends CometEntity> clazz) Gets project relative container path.static final StringGets project relative container path.static StringgetProjectRelativeContainerRoot(Class<? extends CometEntity> clazz) Gets project relative container root.static booleanisApplicationConfigFile(String absolutePath) Deprecated.static booleanisNullFilename(String path) Deprecated.static StringnormalizePath(String path) Normalize path string.static StringtranslateToNewPath(String absolutePath) Deprecated.
-
Field Details
-
PATH_DELIMITER
The constant PATH_DELIMITER "/".- See Also:
-
-
Method Details
-
isApplicationConfigFile
Deprecated.Checks, if a path denotes the application configuration file.
Since the "application configuration resource" was never implemented, this method is deprecated and will be removed from the SDK in 4.1.6
- Parameters:
absolutePath- absolute path of the repository resource- Returns:
- true, if the file is a "application configuration file", false otherwise
-
getPathInfoFromOldStructure
Deprecated.Gets the path info from an old repository structure.
Since automatic updates of old repositories isn't supported any more, this method is obsolete and will be removed from the SDK in 4.1.6
- Parameters:
absolutePath- absolute path of the repository resource- Returns:
- PathInfo object
-
getPathInfo
Gets path info.- Parameters:
absolutePath- the absolute path- Returns:
- the path info
-
translateToNewPath
Deprecated.Gets the new path for a repository resource stored in old structure.
Since automatic updates of old repositories isn't supported any more, this method is obsolete and will be removed from the SDK in 4.1.6
- Parameters:
absolutePath- absolute path of the repository resource- Returns:
- new path for this repository resource
-
normalizePath
Normalize path string.- Parameters:
path- the path- Returns:
- the string
-
getClassByAbsoluteOldPath
Deprecated.Gets the configuration class from an old repository structure.
Since automatic updates of old repositories isn't supported any more, this method is obsolete and will be removed from the SDK in 4.1.6
- Parameters:
path- absolute path of the repository resource- Returns:
- PathInfo object
-
getClassByAbsolutePath
Gets class by absolute path.- Parameters:
path- the path- Returns:
- the class by absolute path
-
getClassByProjectRelativePath
Gets class by project relative path.- Parameters:
path- the path- Returns:
- the class by project relative path
-
getProjectRelativeContainerRoot
Gets project relative container root.- Parameters:
clazz- the class- Returns:
- the project relative container root
-
getProjectRelativeContainerPath
public static final String getProjectRelativeContainerPath(PluginConfigDataHandler container) throws CometException Gets project relative container path.- Parameters:
container- the container- Returns:
- the project relative container path
- Throws:
CometException- the comet exception
-
getConfigClass
public static Class<? extends CometEntity> getConfigClass(PluginConfigDataHandler container) throws CometException Gets config class.- Parameters:
container- the container- Returns:
- the config class
- Throws:
CometException- the comet exception
-
getProjectRelativeContainerPath
public static final String getProjectRelativeContainerPath(int id, Class<? extends CometEntity> clazz) throws CometException Gets project relative container path.- Parameters:
id- the idclazz- the class- Returns:
- the project relative container path
- Throws:
CometException- the comet exception
-
getProjectLayout
Gets project layout.- Returns:
- the project layout
-
getDetailedProjectLayout
Gets detailed project layout.- Returns:
- the detailed project layout
- Throws:
CometException- the comet exception
-
getFolderAndFilename
Get folder and filename string [ ].- Parameters:
path- the path- Returns:
- the string [ ]
-
isNullFilename
Deprecated.Checks, if the file name of a configuration resource is "0.xml".
Since this method was never used, it will be removed from the SDK in 4.1.6
- Parameters:
path- absolute path of the repository resource- Returns:
- true, if the filename is "0.xml", false otherwise.
-