public abstract class AbstractExtensionPattern extends Object implements ExtensionPattern
ExtensionPattern
implementations.Constructor and Description |
---|
AbstractExtensionPattern(ExtensionPattern pattern)
Create new instance by cloning the provided one.
|
AbstractExtensionPattern(Pattern idPattern)
Create new instance by cloning the provided one with different version constraint.
|
AbstractExtensionPattern(String id) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Pattern |
getIdPattern() |
int |
hashCode() |
boolean |
matches(ExtensionDependency dependency) |
boolean |
matches(ExtensionId extensionId) |
boolean |
matches(String extensionId) |
String |
toString() |
protected final Pattern idPattern
getIdPattern()
public AbstractExtensionPattern(ExtensionPattern pattern)
pattern
- a pattern to copypublic AbstractExtensionPattern(Pattern idPattern)
idPattern
- a regular expression matching all the ids to excludepublic AbstractExtensionPattern(String id)
id
- the exact id to excludepublic Pattern getIdPattern()
getIdPattern
in interface ExtensionPattern
public boolean matches(String extensionId)
extensionId
- the extension id to matchpublic boolean matches(ExtensionId extensionId)
matches
in interface ExtensionPattern
extensionId
- the extension id to matchpublic boolean matches(ExtensionDependency dependency)
matches
in interface ExtensionPattern
dependency
- the extension dependency to matchCopyright © 2004–2021 XWiki. All rights reserved.