Enum Class ImportColumn
java.lang.Object
java.lang.Enum<ImportColumn>
fr.paris.lutece.plugins.appointment.modules.importer.business.ImportColumn
- All Implemented Interfaces:
Serializable,Comparable<ImportColumn>,Constable
Standard columns of an import workbook.
A column is recognized by its header or by its alias. The header, the alias and, for the optional columns, the mandatory flag can be changed in appointment-importer.properties: see ImportColumns.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptiongetKey()booleanbooleanstatic ImportColumnReturns the enum constant of this class with the specified name.static ImportColumn[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
LAST_NAME
-
FIRST_NAME
-
EMAIL
-
PHONE_NUMBER
-
DATE
-
STARTING_TIME
-
ENDING_TIME
-
BIRTH_DATE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getKey
- Returns:
- the key of the column in the configuration
-
getDefaultHeader
- Returns:
- the header used when none is configured
-
getDefaultAlias
- Returns:
- the other header accepted when none is configured (the technical name of the import specification)
-
getAttributeKey
- Returns:
- the key of the value in the stored row, or null for the columns that define the slot
-
isRequired
public boolean isRequired()- Returns:
- true if an appointment cannot be created without this column, whatever the configuration
-
isMandatoryByDefault
public boolean isMandatoryByDefault()- Returns:
- true if the column is mandatory when the configuration says nothing
-