Enum EBuiltinFieldNameConventions
- java.lang.Object
 - 
- java.lang.Enum<EBuiltinFieldNameConventions>
 - 
- de.xima.fc.form.common.fieldname.EBuiltinFieldNameConventions
 
 
 
- 
- All Implemented Interfaces:
 IXItemFieldNameConventions,Serializable,Comparable<EBuiltinFieldNameConventions>
public enum EBuiltinFieldNameConventions extends Enum<EBuiltinFieldNameConventions> implements IXItemFieldNameConventions
TheIXItemFieldNameConventionsfor the builtin items (that have special conventions).- Since:
 - 8.1.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Enum Constant Summary
Enum Constants Enum Constant Description X_APPOINTMENTThe field name conventions forXAppointmentitems.X_SELECTThe field name conventions forXSelectitems.X_UPLOADThe field name conventions forXUploaditems. 
- 
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Set<String>findRelatedBaseNames(String baseName)Given the base name of a form item, returns the set of additional related names that might be submitted.abstract StringresolveRelatedBaseName(String relatedBaseName)Given the base name of a request value, finds the base name of the form item that produced this request value.static EBuiltinFieldNameConventionsvalueOf(String name)Returns the enum constant of this type with the specified name.static EBuiltinFieldNameConventions[]values()Returns an array containing the constants of this enum type, in the order they are declared. 
 - 
 
- 
- 
Enum Constant Detail
- 
X_APPOINTMENT
public static final EBuiltinFieldNameConventions X_APPOINTMENT
The field name conventions forXAppointmentitems.Multiple additional text fields with various suffixes such as
.typeuuidare_dateare created to submit additional or related data. 
- 
X_SELECT
public static final EBuiltinFieldNameConventions X_SELECT
The field name conventions forXSelectitems.When
XPropertyEnum.autocompleteis enabled, an additional text field with the suffix_autocompleteis created.When the element is displayed as
questions, multiple elements such assel1_quest_1,sel1_quest_2etc. are created. 
- 
X_UPLOAD
public static final EBuiltinFieldNameConventions X_UPLOAD
The field name conventions forXUploaditems.An additional text field with the suffix
.uuidcontains the UUID of the attachment that was created from the upload file.For
automatic uploads, an additional input field with the suffix.ajaxuuidis created. 
 - 
 
- 
Method Detail
- 
values
public static EBuiltinFieldNameConventions[] 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 (EBuiltinFieldNameConventions c : EBuiltinFieldNameConventions.values()) System.out.println(c);
- Returns:
 - an array containing the constants of this enum type, in the order they are declared
 
 
- 
valueOf
public static EBuiltinFieldNameConventions 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
 
- 
findRelatedBaseNames
public abstract Set<String> findRelatedBaseNames(String baseName)
Description copied from interface:IXItemFieldNameConventionsGiven the base name of a form item, returns the set of additional related names that might be submitted.For example, when the form contains an autocomplete element with the name
sel1, the form submission might include a value for the related namesel1_autocompletein addition to the value for the namesel1. This method should then return a set with the one valuesel1_autocompletewhen called with the base namesel1.This is the inverse operation of
resolveRelatedBaseName. If this method is given a stringXand returns a set of stringsY, thenresolveRelatedBaseNamemust returnXif given any of the stringsY.This method is never given a derived name for repeated form fields. Repeated form fields use the convention
tf1_dyn_fs1_0(item base name tf1, container base name fs1, repetition ID 0).- Specified by:
 findRelatedBaseNamesin interfaceIXItemFieldNameConventions- Parameters:
 baseName- The base name of an item.- Returns:
 - A set of related base names. 
nullor the empty set when there are no related base name. 
 
- 
resolveRelatedBaseName
public abstract String resolveRelatedBaseName(String relatedBaseName)
Description copied from interface:IXItemFieldNameConventionsGiven the base name of a request value, finds the base name of the form item that produced this request value.For example, when the form contains an autocomplete element with the name
sel1, the form submission might include a value for the related namesel1_autocompletein addition to the value for the namesel1. This method should then returnsel1when given the namesel1_autocomplete.This method is never given a derived name for repeated form fields. Repeated form fields use the convention
tf1_dyn_fs1_0(item base name tf1, container base name fs1, repetition ID 0).This is the inverse operation of
findRelatedBaseNames. IffindRelatedBaseNamesis given a stringXand returns a set of stringsY, then this method must return. Xif given any of the stringsY.- Specified by:
 resolveRelatedBaseNamein interfaceIXItemFieldNameConventions- Parameters:
 relatedBaseName- A related base name to resolve.- Returns:
 - The resolved base name. 
null, the empty string, or the argument itself when the name is unknown to this conventions instance. 
 
 - 
 
 -