Package fr.paris.lutece.utils.sql
Class SqlPathInfo
- java.lang.Object
-
- fr.paris.lutece.utils.sql.SqlPathInfo
-
public class SqlPathInfo extends java.lang.ObjectKnows how to parse lutece SQL file paths. Holds useful information about the parsed file.
-
-
Constructor Summary
Constructors Constructor Description SqlPathInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginVersiongetDstVersion()java.lang.StringgetFullPluginName()java.lang.StringgetPlugin()PluginVersiongetSrcVersion()java.lang.StringgetTheme()booleanisCreate()booleanisTheme()static SqlPathInfoparse(java.lang.String sqlFilePath)Creates a SqlPathInfo instance from a file pathvoidsetTheme(boolean isTheme)java.lang.StringtoString()
-
-
-
Method Detail
-
isTheme
public boolean isTheme()
-
setTheme
public void setTheme(boolean isTheme)
-
isCreate
public boolean isCreate()
-
getPlugin
public java.lang.String getPlugin()
-
getTheme
public java.lang.String getTheme()
-
getFullPluginName
public java.lang.String getFullPluginName()
-
getSrcVersion
public PluginVersion getSrcVersion()
-
getDstVersion
public PluginVersion getDstVersion()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
parse
public static SqlPathInfo parse(java.lang.String sqlFilePath)
Creates a SqlPathInfo instance from a file path- Parameters:
sqlFilePath- path of the SQL file- Returns:
- a new instance, or null, if the given path matches cannot be recognized
-
-