|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.component.descriptor.DefaultComponentRole<T>
T - the type of the component rolepublic class DefaultComponentRole<T>
| Constructor Summary | |
|---|---|
DefaultComponentRole()
Default constructor. |
|
DefaultComponentRole(ComponentRole<T> componentRole)
Create a new DefaultComponentRole by cloning the provided ComponentRole. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultComponentRole()
public DefaultComponentRole(ComponentRole<T> componentRole)
DefaultComponentRole by cloning the provided ComponentRole.
componentRole - the component role to clone| Method Detail |
|---|
public 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>public String toString()
toString in class Objectpublic boolean equals(Object object)
equals in class Objectpublic int hashCode()
hashCode in class Object@Deprecated public void setRole(Class<T> role)
setRoleType(Type) instead
role - the class of the component role@Deprecated public Class<T> getRole()
getRole in interface ComponentRole<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||