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 Object
implements ParameterDescriptor

The default implementation of ParameterDescriptor.

Since:
1.7M2
Version:
$Id: c5430325b91f8c515b8672580ec36e2bd90b972e $

Constructor Summary
DefaultParameterDescriptor(org.xwiki.properties.PropertyDescriptor propertyDescriptor)
          Creates a new DefaultParameterDescriptor instance using the given PropertyDescriptor.
 
Method Summary
 Object getDefaultValue()
          
 String getDescription()
          
 String getId()
          
 String getName()
          
 Type getParameterType()
          
 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 String getId()

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

getName

public String getName()

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

getDescription

public String getDescription()

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

getType

public Class<?> getType()

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

getParameterType

public Type getParameterType()

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

getDefaultValue

public 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.