Class PdcField
- java.lang.Object
-
- org.silverpeas.core.contribution.content.form.AbstractField
-
- org.silverpeas.core.pdc.form.fieldtype.PdcField
-
- All Implemented Interfaces:
Serializable
,Comparable
,Field
public class PdcField extends AbstractField
A PDC field describes the positions on axis of PDC of a publication.- Author:
- ahedin
- See Also:
PdcFieldDisplayer
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE
-
Fields inherited from interface org.silverpeas.core.contribution.content.form.Field
FILE_PARAM_NAME_SUFFIX, TYPE_FILE
-
-
Constructor Summary
Constructors Constructor Description PdcField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptObjectValue(Object value)
Returns true if the value hasn't a wrong type and this field isn't read only.boolean
acceptStringValue(String value)
Returns true if the value isn't normalized and this field isn't read only.boolean
acceptValue(String value)
Returns true if the value isn't ill formed and this field isn't read only.boolean
acceptValue(String value, String lang)
Returns true if the local value isn't ill formed and this field isn't read only.int
compareTo(Object o)
boolean
equals(Object o)
Object
getObjectValue()
Returns the value of this field.String
getStringValue()
Returns the normalized String value.String
getTypeName()
Returns the type name of this field.String
getValue()
Returns the normalized value of this field.String
getValue(String lang)
Returns the local string value of this field.int
hashCode()
boolean
isNull()
Returns true if this field is not set.boolean
isReadOnly()
void
setNull()
Set to null this field.void
setObjectValue(Object value)
Set this field value.void
setStringValue(String value)
Set this field value from a normalized String value.void
setValue(String value)
Set this field value from a normalized string value.void
setValue(String value, String lang)
Set this field value from a local string value.-
Methods inherited from class org.silverpeas.core.contribution.content.form.AbstractField
getName, getOccurrence, setName, setOccurrence
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTypeName
public String getTypeName()
Description copied from interface:Field
Returns the type name of this field.- Specified by:
getTypeName
in interfaceField
- Specified by:
getTypeName
in classAbstractField
-
acceptObjectValue
public boolean acceptObjectValue(Object value)
Description copied from interface:Field
Returns true if the value hasn't a wrong type and this field isn't read only.- Specified by:
acceptObjectValue
in interfaceField
- Specified by:
acceptObjectValue
in classAbstractField
-
acceptStringValue
public boolean acceptStringValue(String value)
Description copied from interface:Field
Returns true if the value isn't normalized and this field isn't read only.- Specified by:
acceptStringValue
in interfaceField
- Specified by:
acceptStringValue
in classAbstractField
-
acceptValue
public boolean acceptValue(String value)
Description copied from interface:Field
Returns true if the value isn't ill formed and this field isn't read only.- Specified by:
acceptValue
in interfaceField
- Specified by:
acceptValue
in classAbstractField
-
acceptValue
public boolean acceptValue(String value, String lang)
Description copied from interface:Field
Returns true if the local value isn't ill formed and this field isn't read only.- Specified by:
acceptValue
in interfaceField
- Specified by:
acceptValue
in classAbstractField
-
isReadOnly
public boolean isReadOnly()
-
getObjectValue
public Object getObjectValue()
Description copied from interface:Field
Returns the value of this field.- Specified by:
getObjectValue
in interfaceField
- Specified by:
getObjectValue
in classAbstractField
-
getStringValue
public String getStringValue()
Description copied from interface:Field
Returns the normalized String value.- Specified by:
getStringValue
in interfaceField
- Specified by:
getStringValue
in classAbstractField
-
getValue
public String getValue()
Description copied from interface:Field
Returns the normalized value of this field.- Specified by:
getValue
in interfaceField
- Specified by:
getValue
in classAbstractField
-
getValue
public String getValue(String lang)
Description copied from interface:Field
Returns the local string value of this field.- Specified by:
getValue
in interfaceField
- Specified by:
getValue
in classAbstractField
-
isNull
public boolean isNull()
Description copied from interface:Field
Returns true if this field is not set.- Specified by:
isNull
in interfaceField
- Specified by:
isNull
in classAbstractField
-
setNull
public void setNull() throws FormException
Description copied from interface:Field
Set to null this field.- Specified by:
setNull
in interfaceField
- Specified by:
setNull
in classAbstractField
- Throws:
FormException
- when the field is mandatory or when the field is read only.
-
setObjectValue
public void setObjectValue(Object value) throws FormException
Description copied from interface:Field
Set this field value.- Specified by:
setObjectValue
in interfaceField
- Specified by:
setObjectValue
in classAbstractField
- Throws:
FormException
- when the field is readOnly or when the value has a wrong type.
-
setStringValue
public void setStringValue(String value) throws FormException
Description copied from interface:Field
Set this field value from a normalized String value.- Specified by:
setStringValue
in interfaceField
- Specified by:
setStringValue
in classAbstractField
- Throws:
FormException
- when the field is readOnly or FormException when the value is not a normalized.
-
setValue
public void setValue(String value) throws FormException
Description copied from interface:Field
Set this field value from a normalized string value.- Specified by:
setValue
in interfaceField
- Specified by:
setValue
in classAbstractField
- Throws:
FormException
- when the field is readOnly or when the string value is ill formed.
-
setValue
public void setValue(String value, String lang) throws FormException
Description copied from interface:Field
Set this field value from a local string value.- Specified by:
setValue
in interfaceField
- Specified by:
setValue
in classAbstractField
- Throws:
FormException
- when the field is readOnly or when the string value is ill formed.
-
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interfaceComparable
- Specified by:
compareTo
in classAbstractField
-
-