public class DefaultExtensionComponent extends Object implements ExtensionComponent
ExtensionComponent
.Constructor and Description |
---|
DefaultExtensionComponent(String roleType,
String roleHint) |
Modifier and Type | Method and Description |
---|---|
boolean |
equalRoleType(String type)
The same type can be represented as several different
String so it's recommended to use this method when
you want to compare a type name with this extension component type. |
boolean |
equals(Object obj) |
String |
getRoleHint() |
String |
getRoleType() |
int |
hashCode() |
static String |
toCanonicalComponentHint(String componentHint) |
static String |
toCanonicalComponentType(String componentType) |
String |
toString() |
public static String toCanonicalComponentType(String componentType)
componentType
- the component type to cleanpublic static String toCanonicalComponentHint(String componentHint)
componentHint
- the component hint to cleanpublic String getRoleType()
getRoleType
in interface ExtensionComponent
public String getRoleHint()
getRoleHint
in interface ExtensionComponent
public boolean equalRoleType(String type)
ExtensionComponent
String
so it's recommended to use this method when
you want to compare a type name with this extension component type.equalRoleType
in interface ExtensionComponent
type
- the type name to compareCopyright © 2004–2021 XWiki. All rights reserved.