|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.form.AbstractField
public abstract class AbstractField
Field Summary |
---|
Fields inherited from interface com.silverpeas.form.Field |
---|
FILE_PARAM_NAME_SUFFIX, TYPE_FILE |
Constructor Summary | |
---|---|
AbstractField()
|
Method Summary | |
---|---|
abstract boolean |
acceptObjectValue(Object value)
Returns true if the value hasn't a wrong type and this field isn't read only. |
abstract boolean |
acceptStringValue(String value)
Returns true if the value isn't normalized and this field isn't read only. |
abstract boolean |
acceptValue(String value)
Returns true if the value isn't ill formed and this field isn't read only. |
abstract boolean |
acceptValue(String value,
String lang)
Returns true if the local value isn't ill formed and this field isn't read only. |
abstract int |
compareTo(Object o)
|
String |
getName()
|
abstract Object |
getObjectValue()
Returns the value of this field. |
int |
getOccurrence()
|
abstract String |
getStringValue()
Returns the normalized String value. |
abstract String |
getTypeName()
Returns the type name of this field. |
abstract String |
getValue()
Returns the normalized value of this field. |
abstract String |
getValue(String lang)
Returns the local string value of this field. |
abstract boolean |
isNull()
Returns true if this field is not set. |
void |
setName(String name)
|
abstract void |
setNull()
Set to null this field. |
abstract void |
setObjectValue(Object value)
Set this field value. |
void |
setOccurrence(int i)
|
abstract void |
setStringValue(String value)
Set this field value from a normalized String value. |
abstract void |
setValue(String value)
Set this field value from a normalized string value. |
abstract void |
setValue(String value,
String lang)
Set this field value from a local string value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractField()
Method Detail |
---|
public abstract int compareTo(Object o)
compareTo
in interface Comparable
public abstract String getTypeName()
Field
getTypeName
in interface Field
public abstract String getValue()
Field
getValue
in interface Field
public abstract void setValue(String value) throws FormException
Field
setValue
in interface Field
FormException
public abstract boolean acceptValue(String value)
Field
acceptValue
in interface Field
public abstract String getValue(String lang)
Field
getValue
in interface Field
public abstract void setValue(String value, String lang) throws FormException
Field
setValue
in interface Field
FormException
public abstract boolean acceptValue(String value, String lang)
Field
acceptValue
in interface Field
public abstract String getStringValue()
Field
getStringValue
in interface Field
public abstract void setStringValue(String value) throws FormException
Field
setStringValue
in interface Field
FormException
public abstract boolean acceptStringValue(String value)
Field
acceptStringValue
in interface Field
public abstract Object getObjectValue()
Field
getObjectValue
in interface Field
public abstract void setObjectValue(Object value) throws FormException
Field
setObjectValue
in interface Field
FormException
public abstract boolean acceptObjectValue(Object value)
Field
acceptObjectValue
in interface Field
public abstract boolean isNull()
Field
isNull
in interface Field
public abstract void setNull() throws FormException
Field
setNull
in interface Field
FormException
public int getOccurrence()
getOccurrence
in interface Field
public void setOccurrence(int i)
setOccurrence
in interface Field
public void setName(String name)
setName
in interface Field
public String getName()
getName
in interface Field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |