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 TypeDEFAULT_PARAMETER_TYPEDefault content type of all content descriptors.
-
Constructor Summary
Constructors Constructor Description DefaultParameterDescriptor(org.xwiki.properties.PropertyDescriptor propertyDescriptor)Creates a newDefaultParameterDescriptorinstance using the givenPropertyDescriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ObjectgetDefaultValue()StringgetDescription()TypegetDisplayType()org.xwiki.properties.PropertyGroupDescriptorgetGroupDescriptor()StringgetId()StringgetName()TypegetParameterType()Class<?>getType()Deprecated.booleanisAdvanced()booleanisDeprecated()booleanisDisplayHidden()booleanisMandatory()
-
-
-
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 newDefaultParameterDescriptorinstance using the givenPropertyDescriptor.- Parameters:
propertyDescriptor- ThePropertyDescriptorinstance.
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin interfaceParameterDescriptor- Returns:
- the identifier of the parameter.
-
getName
public String getName()
- Specified by:
getNamein interfaceParameterDescriptor- Returns:
- the display name of the parameter.
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceParameterDescriptor- Returns:
- the description of the parameter.
-
getType
@Deprecated public Class<?> getType()
Deprecated.- Specified by:
getTypein interfaceParameterDescriptor- Returns:
- the type of the parameter.
-
getParameterType
public Type getParameterType()
- Specified by:
getParameterTypein interfaceParameterDescriptor- Returns:
- the type of the property.
-
getDefaultValue
public Object getDefaultValue()
- Specified by:
getDefaultValuein interfaceParameterDescriptor- Returns:
- the default value of the parameter.
-
isMandatory
public boolean isMandatory()
- Specified by:
isMandatoryin interfaceParameterDescriptor- Returns:
- indicate if the parameter is mandatory.
-
isDeprecated
public boolean isDeprecated()
- Specified by:
isDeprecatedin interfaceParameterDescriptor- Returns:
- indicate if the parameter is deprecated.
-
isAdvanced
public boolean isAdvanced()
- Specified by:
isAdvancedin interfaceParameterDescriptor- Returns:
- indicate if the parameter is advanced.
-
getGroupDescriptor
public org.xwiki.properties.PropertyGroupDescriptor getGroupDescriptor()
- Specified by:
getGroupDescriptorin interfaceParameterDescriptor- Returns:
- a hierarchy of groups and its associated feature.
-
getDisplayType
public Type getDisplayType()
- Specified by:
getDisplayTypein interfaceParameterDescriptor- Returns:
- the type used to display the property.
-
isDisplayHidden
public boolean isDisplayHidden()
- Specified by:
isDisplayHiddenin 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.
-
-