|
Fish & Chips Club 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
Object Enum<CodeTable> hirondelle.fish.main.codes.CodeTable
public enum CodeTable
All code tables used in this application.
See package summary for important information.
Enum Constant Summary | |
---|---|
DISPOSITIONS
Disposition (general mood) of a Member. |
|
RATINGS
Restaurant ratings in range 1..10. |
|
RESTAURANTS
All restaurants known to the application. |
|
SUPPORTED_LOCALES
The Locales supported by this application. |
Method Summary | |
---|---|
static Code |
codeFor(Id aCodeId,
CodeTable aCodeTable)
Return a fully populated Code , given its Id and CodeTable . |
Id |
getTableName()
Return the name of the code table. |
Boolean |
hasExplicitOrderColumn()
Return true only if this code table has an explicit ordering. |
static CodeTable |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CodeTable[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CodeTable RESTAURANTS
public static final CodeTable SUPPORTED_LOCALES
public static final CodeTable RATINGS
public static final CodeTable DISPOSITIONS
Method Detail |
---|
public static CodeTable[] values()
for (CodeTable c : CodeTable.values()) System.out.println(c);
public static CodeTable valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic Id getTableName()
List<Code>
placed in application scope.
public Boolean hasExplicitOrderColumn()
public static Code codeFor(Id aCodeId, CodeTable aCodeTable)
Code
, given its Id
and CodeTable
.
Called from Model Object constructors that wish to translate a
simple Id
for a known code table into a fully populated Code
, complete
with user-presentable text. See CodeTableUtil
for more information.
|
Fish & Chips Club 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |