Package lumis.util
Class ScriptPathUtil
- java.lang.Object
-
- lumis.util.ScriptPathUtil
-
public class ScriptPathUtil extends Object
Utility methods and classes for setting the className attribute or node from some xpath from a node provided, using the corresponding scriptPath attribute or node resolved into a className by the replacement of bars by points.- Since:
- 8.1.0
- Version:
- $Revision: 17770 $ $Date: 2015-09-30 20:06:01 -0300 (Wed, 30 Sep 2015) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScriptPathUtil.ProcessEntry
Represents an entry in the xpath of a node provided to have its corresponding classPath attribute or node configured with the value of it's corresponding scriptPath attribute or node resolved, if it exists, indicating if such replacement must be made from the attribute or node.static class
ScriptPathUtil.ProcessType
Constants used to indicate whether the configuration of classPath from scriptPath should be made using the corresponding attributes or corresponding nodes.
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_CLASS_NAME_ATTRIBUTE_OR_NODE_NAME
static String
DEFAULT_SCRIPT_PATH_ATTRIBUTE_OR_NODE_NAME
-
Constructor Summary
Constructors Constructor Description ScriptPathUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
processNodes(String basePath, Node parentNode, ScriptPathUtil.ProcessEntry... entries)
Process the givenentries
using the given node as the base node and the base path for relativizing script paths.
-
-
-
Field Detail
-
DEFAULT_CLASS_NAME_ATTRIBUTE_OR_NODE_NAME
public static final String DEFAULT_CLASS_NAME_ATTRIBUTE_OR_NODE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SCRIPT_PATH_ATTRIBUTE_OR_NODE_NAME
public static final String DEFAULT_SCRIPT_PATH_ATTRIBUTE_OR_NODE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
processNodes
public static void processNodes(String basePath, Node parentNode, ScriptPathUtil.ProcessEntry... entries) throws PortalException
Process the givenentries
using the given node as the base node and the base path for relativizing script paths.- Parameters:
basePath
- the base path.parentNode
- the base parent node.entries
- the entries to be processed.- Throws:
PortalException
- Since:
- 8.1.0
-
-