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 Object
implements com.google.gwt.user.client.rpc.IsSerializable

Defines the parameter type.

Version:
$Id: 1d6223e0e95e775b6f4083e2009dee5e7a2c50bc $

Constructor Summary
ParameterType()
           
 
Method Summary
 Map<String,String> getEnumConstants()
           
 String getName()
           
 boolean isEnum()
           
 void setEnumConstants(Map<String,String> enumConstants)
          Sets the values that can be assigned to parameter of this type.
 void setName(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 String getName()
Returns:
the parameter type name

setName

public void setName(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 Map<String,String> getEnumConstants()
Returns:
the values that can be assigned to parameters of this type

setEnumConstants

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

Parameters:
enumConstants - the new allowed values


Copyright © 2004–2015 XWiki. All rights reserved.