org.xwiki.rendering.macro.descriptor
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 of ParameterDescriptor.
- Since:
- 1.7M2
- Version:
- $Id: 8e486ad3e363cbeb2f0f306b29230d1389ee3605 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultParameterDescriptor
public DefaultParameterDescriptor(org.xwiki.properties.PropertyDescriptor propertyDescriptor)
- Creates a new
DefaultParameterDescriptor instance using the given PropertyDescriptor.
- Parameters:
propertyDescriptor - The PropertyDescriptor instance.
getId
public String getId()
- Specified by:
getId in interface ParameterDescriptor
- Returns:
- the identifier of the parameter.
getName
public String getName()
- Specified by:
getName in interface ParameterDescriptor
- Returns:
- the display name of the parameter.
getDescription
public String getDescription()
- Specified by:
getDescription in interface ParameterDescriptor
- Returns:
- the description of the parameter.
getType
@Deprecated
public Class<?> getType()
- Deprecated.
- Specified by:
getType in interface ParameterDescriptor
- Returns:
- the type of the parameter.
getParameterType
public Type getParameterType()
- Specified by:
getParameterType in interface ParameterDescriptor
- Returns:
- the type of the property.
getDefaultValue
public Object getDefaultValue()
- Specified by:
getDefaultValue in interface ParameterDescriptor
- Returns:
- the default value of the parameter.
isMandatory
public boolean isMandatory()
- Specified by:
isMandatory in interface ParameterDescriptor
- Returns:
- indicate if the parameter is mandatory.
Copyright © 2004–2013 XWiki. All rights reserved.