Package org.modelmapper.spi
Enum NameableType
- java.lang.Object
-
- java.lang.Enum<NameableType>
-
- org.modelmapper.spi.NameableType
-
- All Implemented Interfaces:
Serializable
,Comparable<NameableType>
public enum NameableType extends Enum<NameableType>
Nameable types.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NameableType
forPropertyType(PropertyType propertyType)
Returns a NameableType for the correspondingpropertyType
, elseCLASS
.static NameableType
valueOf(String name)
Returns the enum constant of this type with the specified name.static NameableType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLASS
public static final NameableType CLASS
A property that represents aClass
-
METHOD
public static final NameableType METHOD
A property that represents aMethod
-
FIELD
public static final NameableType FIELD
A property that represents aField
-
GENERIC
public static final NameableType GENERIC
A nameable type obtained from aValueReader
-
-
Method Detail
-
values
public static NameableType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NameableType c : NameableType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NameableType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
forPropertyType
public static NameableType forPropertyType(PropertyType propertyType)
Returns a NameableType for the correspondingpropertyType
, elseCLASS
.
-
-