03-23-2011 08:01 AM
03-24-2011 02:40 AM
03-25-2011 12:20 PM
03-29-2011 02:36 AM
${entity.getState().toString().equals("STATE")}
04-01-2011 06:55 AM
This will work, although doesn't look as clean as it should :${entity.getState().toString().equals("STATE")}
04-01-2011 08:39 AM
When referencing an enum constant with an expression, you use a String literal. For example, consider this Enum class:
public enum Suit {hearts, spades, diamonds, clubs}
To refer to the Suit constant, Suit.hearts with an expression, you use the String literal, "hearts". Depending on the context, the String literal is converted to the enum constant automatically. For example, in the following expression in which mySuit is an instance of Suit, "hearts" is first converted to a Suit.hearts before it is compared to the instance.
${mySuit == "hearts"}
${var == 'ORANGE'}
${var == MyEnum.ORANGE}
04-01-2011 09:13 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.