org.xwiki.gwt.wysiwyg.client.plugin.macro
Class ParameterDescriptor

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.macro.ParameterDescriptor
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class ParameterDescriptor
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable

Describes a macro parameter.

Version:
$Id: ParameterDescriptor.java 26786 2010-02-07 16:46:17Z mflorea $

Constructor Summary
ParameterDescriptor()
           
 
Method Summary
 java.lang.String getDefaultValue()
           
 java.lang.String getDescription()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 ParameterType getType()
           
 boolean isMandatory()
           
 void setDefaultValue(java.lang.String defaultValue)
          Sets the default value of the parameter.
 void setDescription(java.lang.String description)
          Sets the description of this parameter.
 void setId(java.lang.String id)
          Sets the identifier of this parameter.
 void setMandatory(boolean mandatory)
          Specify if this parameter is required or not.
 void setName(java.lang.String name)
          Sets the display name of this parameter.
 void setType(ParameterType type)
          Sets the type of this parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterDescriptor

public ParameterDescriptor()
Method Detail

getId

public java.lang.String getId()
Returns:
the identifier of this parameter
Since:
2.1M1

setId

public void setId(java.lang.String id)
Sets the identifier of this parameter.

Parameters:
id - the identifier of the parameter
Since:
2.1M1

getName

public java.lang.String getName()
Returns:
the display name of this parameter
Since:
2.1M1

setName

public void setName(java.lang.String name)
Sets the display name of this parameter.

Parameters:
name - the display name of the parameter
Since:
2.1M1

getDescription

public java.lang.String getDescription()
Returns:
the parameter description

setDescription

public void setDescription(java.lang.String description)
Sets the description of this parameter.

Parameters:
description - the description of this parameter

getType

public ParameterType getType()
Returns:
the parameter type

setType

public void setType(ParameterType type)
Sets the type of this parameter.

Parameters:
type - the type of this parameter

getDefaultValue

public java.lang.String getDefaultValue()
Returns:
the default value of the parameter

setDefaultValue

public void setDefaultValue(java.lang.String defaultValue)
Sets the default value of the parameter.

Parameters:
defaultValue - a String representing the default value of the parameter

isMandatory

public boolean isMandatory()
Returns:
true if this parameter is required, false if not

setMandatory

public void setMandatory(boolean mandatory)
Specify if this parameter is required or not.

Parameters:
mandatory - true to make this parameter required, false otherwise


Copyright © 2004-2011 XWiki. All Rights Reserved.