Package org.apache.maven.doxia.site.skin
Class ResourceCondition
java.lang.Object
org.apache.maven.doxia.site.skin.ResourceCondition
- All Implemented Interfaces:
Serializable,Cloneable
Describes the condition for including a specific Skin resource.
If multiple conditions are defined for a single resource only
the first matching condition determines the outcome. Resources
not matching a condition will always be included.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceName(String string) Method addResourceName.clone()Method clone.Method getResourceNames.Get the Velocity (VTL) expression to be evaluated to decide if the resource should be included.voidremoveResourceName(String string) Method removeResourceName.voidsetResourceNames(List<String> resourceNames) Set a resource name to which this condition applies.voidsetVtlCondition(String vtlCondition) Set the Velocity (VTL) expression to be evaluated to decide if the resource should be included.
-
Constructor Details
-
ResourceCondition
public ResourceCondition()
-
-
Method Details
-
addResourceName
Method addResourceName.- Parameters:
string- a string object.
-
clone
Method clone. -
getResourceNames
Method getResourceNames.- Returns:
- List
-
getVtlCondition
Get the Velocity (VTL) expression to be evaluated to decide if the resource should be included. Only if the condition evaluates to true, the resource will be included.- Returns:
- String
-
removeResourceName
Method removeResourceName.- Parameters:
string- a string object.
-
setResourceNames
Set a resource name to which this condition applies. Refers to the relative path within the JAR (i.e. must always use "/" as separator and must not start with a slash). Multiple resource names can be specified sharing the same condition.- Parameters:
resourceNames- a resourceNames object.
-
setVtlCondition
Set the Velocity (VTL) expression to be evaluated to decide if the resource should be included. Only if the condition evaluates to true, the resource will be included.- Parameters:
vtlCondition- a vtlCondition object.
-