org.xwiki.rendering.macro.descriptor
Class DefaultParameterDescriptor

java.lang.Object
  extended by org.xwiki.rendering.macro.descriptor.DefaultParameterDescriptor
All Implemented Interfaces:
ParameterDescriptor

public class DefaultParameterDescriptor
extends java.lang.Object
implements ParameterDescriptor

The default implementation of ParameterDescriptor.

Since:
1.7M2
Version:
$Id$

Constructor Summary
DefaultParameterDescriptor(org.xwiki.properties.PropertyDescriptor propertyDescriptor)
          Creates a new DefaultParameterDescriptor instance using the given PropertyDescriptor.
 
Method Summary
 java.lang.Object getDefaultValue()
          
 java.lang.String getDescription()
          
 java.lang.String getId()
          
 java.lang.String getName()
          
 java.lang.reflect.Type getParameterType()
          
 java.lang.Class<?> getType()
          
 boolean isMandatory()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultParameterDescriptor

public DefaultParameterDescriptor(org.xwiki.properties.PropertyDescriptor propertyDescriptor)
Creates a new DefaultParameterDescriptor instance using the given PropertyDescriptor.

Parameters:
propertyDescriptor - The PropertyDescriptor instance.
Method Detail

getId

public java.lang.String getId()

Specified by:
getId in interface ParameterDescriptor
Returns:
the identifier of the parameter.
See Also:
ParameterDescriptor.getId()

getName

public java.lang.String getName()

Specified by:
getName in interface ParameterDescriptor
Returns:
the display name of the parameter.
See Also:
ParameterDescriptor.getName()

getDescription

public java.lang.String getDescription()

Specified by:
getDescription in interface ParameterDescriptor
Returns:
the description of the parameter.
See Also:
ParameterDescriptor.getDescription()

getType

public java.lang.Class<?> getType()

Specified by:
getType in interface ParameterDescriptor
Returns:
the type of the parameter.
See Also:
ParameterDescriptor.getType()

getParameterType

public java.lang.reflect.Type getParameterType()

Specified by:
getParameterType in interface ParameterDescriptor
Returns:
the type of the property.
See Also:
ParameterDescriptor.getParameterType()

getDefaultValue

public java.lang.Object getDefaultValue()

Specified by:
getDefaultValue in interface ParameterDescriptor
Returns:
the default value of the parameter.
See Also:
ParameterDescriptor.getDefaultValue()

isMandatory

public boolean isMandatory()

Specified by:
isMandatory in interface ParameterDescriptor
Returns:
indicate if the parameter is mandatory.
Since:
1.7
See Also:
ParameterDescriptor.isMandatory()


Copyright © 2004-2011 XWiki. All Rights Reserved.