Class AbstractField
- java.lang.Object
-
- org.silverpeas.core.contribution.content.form.AbstractField
-
- All Implemented Interfaces:
Serializable
,Comparable<Field>
,Field
- Direct Known Subclasses:
DateField
,ExplorerField
,GroupField
,MultipleUserField
,PdcField
,PdcUserField
,PublicationsPickerField
,TextField
,UserField
public abstract class AbstractField extends Object implements Field
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.silverpeas.core.contribution.content.form.Field
FILE_PARAM_NAME_SUFFIX, TYPE_FILE
-
-
Constructor Summary
Constructors Constructor Description AbstractField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Gets the name of this field.int
getOccurrence()
Gets the occurrence position of this field in the case there is several identical fields in aDataRecord
.void
setName(String name)
Sets the name of this field.void
setOccurrence(int i)
Sets the specified occurrence position of this field in aDataRecord
when there is several similar fields.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.contribution.content.form.Field
acceptObjectValue, acceptStringValue, acceptValue, acceptValue, compareTo, getObjectValue, getStringValue, getTypeName, getValue, getValue, isNull, setNull, setObjectValue, setStringValue, setValue, setValue
-
-
-
-
Method Detail
-
getOccurrence
public int getOccurrence()
Description copied from interface:Field
Gets the occurrence position of this field in the case there is several identical fields in aDataRecord
. A field is identified by its name.- Specified by:
getOccurrence
in interfaceField
- Returns:
- the occurrence position of this field.
-
setOccurrence
public void setOccurrence(int i)
Description copied from interface:Field
Sets the specified occurrence position of this field in aDataRecord
when there is several similar fields. A field is identified by its name.- Specified by:
setOccurrence
in interfaceField
- Parameters:
i
- the occurrence position.
-
setName
public void setName(String name)
Description copied from interface:Field
Sets the name of this field. Its name is its identifier in aDataRecord
or in aRecordTemplate
.
-
-