org.xwiki.gwt.wysiwyg.client.plugin.macro
Class ParameterType
java.lang.Object
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$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterType
public ParameterType()
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-2012 XWiki. All Rights Reserved.