Package org.xwiki.tool.extension
Class ComponentRepresentation
- java.lang.Object
-
- org.xwiki.tool.extension.ComponentRepresentation
-
public class ComponentRepresentation extends Object
A class to represent aComponentRole
with a serialized type.- Since:
- 12.2
- Version:
- $Id: c3ad03f0115e64ae61305b63ddbd1922027766e0 $
-
-
Constructor Summary
Constructors Constructor Description ComponentRepresentation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getRole()
String
getType()
void
setRole(String role)
Set the role of the component to retrieve.void
setType(String type)
Set the serialized type of the component.
-
-
-
Method Detail
-
getRole
public String getRole()
- Returns:
- the role of the component or the default role.
-
setRole
public void setRole(String role)
Set the role of the component to retrieve.- Parameters:
role
- the role used for this component.
-
getType
public String getType()
- Returns:
- the serialized type of the component. This value is mandatory.
-
setType
public void setType(String type)
Set the serialized type of the component.- Parameters:
type
- a serialized string corresponding to the type of the component.
-
-