T
- the type of the component rolepublic class DefaultComponentRole<T> extends Object implements ComponentRole<T>
Constructor and Description |
---|
DefaultComponentRole()
Default constructor.
|
DefaultComponentRole(ComponentRole<T> componentRole)
Create a new
DefaultComponentRole by cloning the provided ComponentRole . |
DefaultComponentRole(Type roleType,
String roleHint) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
Class<T> |
getRole()
Deprecated.
|
String |
getRoleHint() |
Type |
getRoleType() |
int |
hashCode() |
void |
setRole(Class<T> role)
Deprecated.
since 4.0M1 use
setRoleType(Type) instead |
void |
setRoleHint(String roleHint) |
void |
setRoleType(Type roleType) |
String |
toString() |
public DefaultComponentRole()
public DefaultComponentRole(ComponentRole<T> componentRole)
DefaultComponentRole
by cloning the provided ComponentRole
.componentRole
- the component role to clonepublic Type getRoleType()
getRoleType
in interface ComponentRole<T>
public void setRoleType(Type roleType)
roleType
- the type of the rolepublic void setRoleHint(String roleHint)
roleHint
- the hint of the component rolepublic String getRoleHint()
getRoleHint
in interface ComponentRole<T>
@Deprecated public void setRole(Class<T> role)
setRoleType(Type)
insteadrole
- the class of the component role@Deprecated public Class<T> getRole()
getRole
in interface ComponentRole<T>
Copyright © 2004–2021 XWiki. All rights reserved.