Package org.cyclos.model.system.fields
Enum LinkedEntityType
- java.lang.Object
-
- java.lang.Enum<LinkedEntityType>
-
- org.cyclos.model.system.fields.LinkedEntityType
-
- All Implemented Interfaces:
Serializable,Comparable<LinkedEntityType>,HasMessageKey
public enum LinkedEntityType extends Enum<LinkedEntityType> implements HasMessageKey
Represents the type of entity which can be linked by a custom field value
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADVERTISEMENTRECORDTRANSACTIONTRANSFERUSER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocationgetLocation()MessageKeygetMessageKey()static LinkedEntityTypevalueOf(String name)Returns the enum constant of this type with the specified name.static LinkedEntityType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USER
public static final LinkedEntityType USER
-
TRANSACTION
public static final LinkedEntityType TRANSACTION
-
TRANSFER
public static final LinkedEntityType TRANSFER
-
RECORD
public static final LinkedEntityType RECORD
-
ADVERTISEMENT
public static final LinkedEntityType ADVERTISEMENT
-
-
Method Detail
-
values
public static LinkedEntityType[] 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 (LinkedEntityType c : LinkedEntityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LinkedEntityType 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
-
getLocation
public Location getLocation()
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
-