public class

EnumToEnumTypeConverter

extends Object
implements TypeConverter
java.lang.Object
   ↳ org.mule.modules.vertex.util.EnumToEnumTypeConverter

Class Overview

Converter for a value of one enum to the same value of another enum. Both enums must have the same name.

Summary

Public Constructors
EnumToEnumTypeConverter()
Public Methods
boolean canConvert(Class<?> sourceType, Class<?> destinationType)
<A> A convert(Object value, Class<A> destinationType)
static EnumToEnumTypeConverter converter()
Answers a constant instance of EnumToEnumTypeConverter
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.zauberlabs.commons.mom.converter.TypeConverter

Public Constructors

public EnumToEnumTypeConverter ()

Public Methods

public boolean canConvert (Class<?> sourceType, Class<?> destinationType)

Parameters
sourceType
destinationType

public A convert (Object value, Class<A> destinationType)

Parameters
value
destinationType

public static EnumToEnumTypeConverter converter ()

Answers a constant instance of EnumToEnumTypeConverter

Returns