|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fulcrum.intake.model.Field
org.apache.fulcrum.intake.model.FileItemField
public class FileItemField
| Field Summary |
|---|
| Fields inherited from class org.apache.fulcrum.intake.model.Field |
|---|
alwaysRequired, defaultFieldPackage, defaultValidatorPackage, defaultValue, displayName, emptyValue, getter, group, ifRequiredMessage, initialized, isDebugEnabled, isMultiValued, key, log, mapToObject, message, name, onError, parser, required, retrievable, setFlag, setter, validated, validator, validFlag |
| Constructor Summary | |
|---|---|
FileItemField(XmlField field,
Group group)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
doSetValue()
Sets the value of the field from data in the parser. |
protected String |
getDefaultValidator()
A suitable validator. |
Field |
init(org.apache.fulcrum.parser.ValueParser vp)
Method called when this field (the group it belongs to) is pulled from the pool. |
void |
setDefaultValue(String prop)
It is not possible to set the default value for this field type. |
void |
setEmptyValue(String prop)
It is not possible to set the empty value for this field type. |
boolean |
validate()
Compares request data with constraints and sets the valid flag. |
| Methods inherited from class org.apache.fulcrum.intake.model.Field |
|---|
dispose, doSetValue, getDefault, getDefaultValue, getDisplayName, getDisplaySize, getEmptyValue, getGroup, getHTMLString, getInitialValue, getKey, getLocale, getMaxSize, getMessage, getName, getProperty, getSafeEmptyValue, getStringValue, getTestValue, getValidator, getValue, getValueIfAbsent, init, isMultiValued, isRequired, isSet, isValid, isValidated, removeFromRequest, setDisplayName, setMessage, setProperty, setRequired, setRequired, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileItemField(XmlField field,
Group group)
throws IntakeException
field - xml field definition objectgroup - xml group definition object
IntakeException - thrown by superclass| Method Detail |
|---|
public void setDefaultValue(String prop)
setDefaultValue in class Fieldprop - Parameter for the default values
TurbineRuntimeExceptionpublic void setEmptyValue(String prop)
setEmptyValue in class Fieldprop - Parameter for the empty values
TurbineRuntimeExceptionprotected String getDefaultValidator()
getDefaultValidator in class Field
public Field init(org.apache.fulcrum.parser.ValueParser vp)
throws IntakeException
init in class Fieldvp - a ValueParser value
Field value
IntakeException - if an error occurspublic boolean validate()
validate in class Fieldprotected void doSetValue()
doSetValue in class Field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||