Package org.graffiti.plugin.parameter
Class EnumParameter
java.lang.Object
org.graffiti.plugin.parameter.AbstractSingleParameter
org.graffiti.plugin.parameter.EnumParameter
- All Implemented Interfaces:
Displayable
,Parameter
,SingleParameter
public class EnumParameter extends AbstractSingleParameter
-
Constructor Summary
Constructors Constructor Description EnumParameter(Enum<?> val, String name, String description)
-
Method Summary
Modifier and Type Method Description Enum<?>[]
getAllEnumValue()
this will return all possible enum values contained in the enum stored in this objectString
getDescription()
Returns the description of the parameter.Enum<?>
getEnumValue()
String
getName()
Returns the name of the parameter.Object
getValue()
Returns the encapsulated object.void
setValue(Object val)
Sets the encapsulated object.Methods inherited from class org.graffiti.plugin.parameter.AbstractSingleParameter
getIcon, getImage, isLeftAligned, setDescription, setLeftAligned, toString, toXMLString
-
Constructor Details
-
EnumParameter
-
-
Method Details
-
getDescription
Description copied from class:AbstractSingleParameter
Returns the description of the parameter.- Specified by:
getDescription
in interfaceDisplayable
- Overrides:
getDescription
in classAbstractSingleParameter
- Returns:
- the description of the parameter.
-
getName
Description copied from class:AbstractSingleParameter
Returns the name of the parameter.- Specified by:
getName
in interfaceDisplayable
- Overrides:
getName
in classAbstractSingleParameter
- Returns:
- the name of the parameter.
-
setValue
Description copied from interface:Displayable
Sets the encapsulated object.- Specified by:
setValue
in interfaceDisplayable
- Overrides:
setValue
in classAbstractSingleParameter
- Throws:
IllegalArgumentException
- thrown if val is not of the appropriate type.
-
getValue
Description copied from interface:Displayable
Returns the encapsulated object.- Specified by:
getValue
in interfaceDisplayable
- Overrides:
getValue
in classAbstractSingleParameter
- Returns:
- Object
-
getEnumValue
-
getAllEnumValue
this will return all possible enum values contained in the enum stored in this object- Returns:
-