Package org.xwiki.extension
Class ExtensionId
java.lang.Object
org.xwiki.extension.ExtensionId
- All Implemented Interfaces:
Serializable
,Comparable<ExtensionId>
- Direct Known Subclasses:
AbstractExtensionRequest.ExtensionExtensionId
The combination of properties which makes an extension unique.
- Since:
- 4.0M1
- Version:
- $Id: c9f11414d8c0f6c58eff24c9d569f3b1c47b6ddd $
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ParameterizedType
Type instance forList<ExtensionId>
. -
Constructor Summary
ConstructorDescriptionExtensionId
(String id) ExtensionId
(String id, String version) ExtensionId
(String id, Version version) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
getId()
int
hashCode()
boolean
matches
(ExtensionId extensionId) Same asequals(Object)
but withnull
version meaning "any version".boolean
matchesOne
(Iterable<ExtensionId> extensionIds) toString()
-
Field Details
-
TYPE_LIST
Type instance forList<ExtensionId>
.- Since:
- 8.0M1
-
-
Constructor Details
-
ExtensionId
- Parameters:
id
- the extension identifier- Since:
- 8.0M1, 7.4.6
-
ExtensionId
- Parameters:
id
- the extension identifierversion
- the extension version
-
ExtensionId
- Parameters:
id
- the extension identifierversion
- the extension version
-
-
Method Details
-
getId
- Returns:
- the extension identifier
-
getVersion
- Returns:
- the extension version
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ExtensionId>
-
matches
Same asequals(Object)
but withnull
version meaning "any version".- Parameters:
extensionId
- the extension identifier to match- Returns:
- true if the passes extension id matches this extension id
- Since:
- 9.5RC1
-
matchesOne
- Parameters:
extensionIds
- the extension identifiers to match- Returns:
- true if one of the passes extension ids matched this extension id
- Since:
- 9.5RC1
-