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

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

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

Defines the parameter type.

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

Constructor Summary
ParameterType()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getEnumConstants()
           
 java.lang.String getName()
           
 boolean isEnum()
           
 void setEnumConstants(java.util.Map<java.lang.String,java.lang.String> enumConstants)
          Sets the values that can be assigned to parameter of this type.
 void setName(java.lang.String name)
          Sets the parameter type name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterType

public ParameterType()
Method Detail

getName

public java.lang.String getName()
Returns:
the parameter type name

setName

public void setName(java.lang.String name)
Sets the parameter type name.

Parameters:
name - the new name for this parameter type

isEnum

public boolean isEnum()
Returns:
true if this type is an enumeration, i.e. its values are explicitly specified, false otherwise

getEnumConstants

public java.util.Map<java.lang.String,java.lang.String> getEnumConstants()
Returns:
the values that can be assigned to parameters of this type

setEnumConstants

public void setEnumConstants(java.util.Map<java.lang.String,java.lang.String> enumConstants)
Sets the values that can be assigned to parameter of this type.

Parameters:
enumConstants - the new allowed values


Copyright © 2004-2010 XWiki. All Rights Reserved.