Class DefaultParameterDescriptor
- java.lang.Object
-
- org.xwiki.rendering.macro.descriptor.DefaultParameterDescriptor
-
- All Implemented Interfaces:
ParameterDescriptor
public class DefaultParameterDescriptor extends Object implements ParameterDescriptor
The default implementation ofParameterDescriptor
.- Since:
- 1.7M2
- Version:
- $Id: 8e46d41abc9c2985a93070515d98978c4ec514d5 $
-
-
Field Summary
Fields Modifier and Type Field Description static Type
DEFAULT_PARAMETER_TYPE
Default content type of all content descriptors.
-
Constructor Summary
Constructors Constructor Description DefaultParameterDescriptor(org.xwiki.properties.PropertyDescriptor propertyDescriptor)
Creates a newDefaultParameterDescriptor
instance using the givenPropertyDescriptor
.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
getDefaultValue()
String
getDescription()
Type
getDisplayType()
org.xwiki.properties.PropertyGroupDescriptor
getGroupDescriptor()
String
getId()
String
getName()
Type
getParameterType()
Class<?>
getType()
Deprecated.boolean
isAdvanced()
boolean
isDeprecated()
boolean
isDisplayHidden()
boolean
isMandatory()
-
-
-
Field Detail
-
DEFAULT_PARAMETER_TYPE
public static final Type DEFAULT_PARAMETER_TYPE
Default content type of all content descriptors.- Since:
- 11.1RC1
-
-
Constructor Detail
-
DefaultParameterDescriptor
public DefaultParameterDescriptor(org.xwiki.properties.PropertyDescriptor propertyDescriptor)
Creates a newDefaultParameterDescriptor
instance using the givenPropertyDescriptor
.- Parameters:
propertyDescriptor
- ThePropertyDescriptor
instance.
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceParameterDescriptor
- Returns:
- the identifier of the parameter.
-
getName
public String getName()
- Specified by:
getName
in interfaceParameterDescriptor
- Returns:
- the display name of the parameter.
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceParameterDescriptor
- Returns:
- the description of the parameter.
-
getType
@Deprecated public Class<?> getType()
Deprecated.- Specified by:
getType
in interfaceParameterDescriptor
- Returns:
- the type of the parameter.
-
getParameterType
public Type getParameterType()
- Specified by:
getParameterType
in interfaceParameterDescriptor
- Returns:
- the type of the property.
-
getDefaultValue
public Object getDefaultValue()
- Specified by:
getDefaultValue
in interfaceParameterDescriptor
- Returns:
- the default value of the parameter.
-
isMandatory
public boolean isMandatory()
- Specified by:
isMandatory
in interfaceParameterDescriptor
- Returns:
- indicate if the parameter is mandatory.
-
isDeprecated
public boolean isDeprecated()
- Specified by:
isDeprecated
in interfaceParameterDescriptor
- Returns:
- indicate if the parameter is deprecated.
-
isAdvanced
public boolean isAdvanced()
- Specified by:
isAdvanced
in interfaceParameterDescriptor
- Returns:
- indicate if the parameter is advanced.
-
getGroupDescriptor
public org.xwiki.properties.PropertyGroupDescriptor getGroupDescriptor()
- Specified by:
getGroupDescriptor
in interfaceParameterDescriptor
- Returns:
- a hierarchy of groups and its associated feature.
-
getDisplayType
public Type getDisplayType()
- Specified by:
getDisplayType
in interfaceParameterDescriptor
- Returns:
- the type used to display the property.
-
isDisplayHidden
public boolean isDisplayHidden()
- Specified by:
isDisplayHidden
in interfaceParameterDescriptor
- Returns:
- whether the parameter should be displayed in UIs or not. For example the WYSIWYG editor uses it to decide whether to display it or not in the Macro editor UI.
-
-