Package org.xwiki.extension
Class DefaultExtensionComponent
java.lang.Object
org.xwiki.extension.DefaultExtensionComponent
- All Implemented Interfaces:
ExtensionComponent
Default implementation of
ExtensionComponent
.- Since:
- 13.3RC1
- Version:
- $Id: 457d9cb1804361f2734990a6ae02d775ae0627dc $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
equalRoleType
(String type) The same type can be represented as several differentString
so it's recommended to use this method when you want to compare a type name with this extension component type.boolean
int
hashCode()
static String
toCanonicalComponentHint
(String componentHint) static String
toCanonicalComponentType
(String componentType) toString()
-
Constructor Details
-
DefaultExtensionComponent
- Parameters:
roleType
- the class of the component role as StringroleHint
- the hint of the component role
-
-
Method Details
-
toCanonicalComponentType
- Parameters:
componentType
- the component type to clean- Returns:
- the canonical version of the component type name
-
toCanonicalComponentHint
- Parameters:
componentHint
- the component hint to clean- Returns:
- the canonical version of the component hint
- Since:
- 13.3
-
getRoleType
- Specified by:
getRoleType
in interfaceExtensionComponent
- Returns:
- the class of the component role as String
-
getRoleHint
- Specified by:
getRoleHint
in interfaceExtensionComponent
- Returns:
- the hint of the component role
-
equalRoleType
Description copied from interface:ExtensionComponent
The same type can be represented as several differentString
so it's recommended to use this method when you want to compare a type name with this extension component type.- Specified by:
equalRoleType
in interfaceExtensionComponent
- Parameters:
type
- the type name to compare- Returns:
- true of the passed type name is equals to the component one
-
equals
-
hashCode
public int hashCode() -
toString
-