Package org.xwiki.extension
Interface ExtensionPattern
-
- All Known Implementing Classes:
AbstractExtensionPattern
,DefaultExtensionPattern
public interface ExtensionPattern
An extension exclusion.- Since:
- 12.2
- Version:
- $Id: 8fb3e321002542f282ae190c6d81dd5234a1f510 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Pattern
getIdPattern()
boolean
matches(ExtensionDependency dependency)
boolean
matches(ExtensionId extensionId)
-
-
-
Method Detail
-
getIdPattern
Pattern getIdPattern()
- Returns:
- a regular expression matching all the ids to exclude or null to match everything
-
matches
boolean matches(ExtensionId extensionId)
- Parameters:
extensionId
- the extension id to match- Returns:
- true if the passed extension is matched by the pattern
-
matches
boolean matches(ExtensionDependency dependency)
- Parameters:
dependency
- the extension dependency to match- Returns:
- true if the passed extension dependency is matched by the pattern
-
-