Package org.apache.fulcrum.intake.model
Klasse UploadPartField
- Alle implementierten Schnittstellen:
Serializable
,org.apache.avalon.framework.logger.LogEnabled
- Version:
- $Id$
- Autor:
- John McNally, Henning P. Schmiedehausen, Quinton McCombs
- Siehe auch:
-
Feldübersicht
Von Klasse geerbte Felder org.apache.fulcrum.intake.model.Field
defaultFieldPackage, defaultValidatorPackage, defaultValue, emptyValue, log, mapToObject, parser
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected void
Sets the value of the field from data in the parser.protected String
A suitable validator.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.Von Klasse geerbte Methoden org.apache.fulcrum.intake.model.Field
dispose, enableLogging, getDefault, getDefaultValue, getDisplayName, getDisplaySize, getEmptyValue, getGroup, getHTMLString, getInitialValue, getKey, getLocale, getMapToObject, getMaxSize, getMessage, getName, getProperty, getSafeEmptyValue, getStringValue, getTestValue, getValidator, getValue, getValueIfAbsent, init, initGetterAndSetter, isMultiValued, isRequired, isSet, isValid, isValidated, removeFromRequest, setDisplayName, setMessage, setProperty, setRequired, setRequired, setSet, setValid, setValidated, toString
-
Konstruktordetails
-
UploadPartField
Constructor.- Parameter:
field
- xml field definition objectgroup
- xml group definition object- Löst aus:
IntakeException
- thrown by superclass
-
-
Methodendetails
-
setDefaultValue
It is not possible to set the default value for this field type. Calling this method with a non-null parameter will result in a IntakeRuntimeException- Angegeben von:
setDefaultValue
in KlasseField<Part>
- Parameter:
prop
- Parameter for the default values- Löst aus:
IntakeRuntimeException
- if the parameter is not null
-
setEmptyValue
It is not possible to set the empty value for this field type. Calling this method with a non-null parameter will result in a IntakeRuntimeException- Angegeben von:
setEmptyValue
in KlasseField<Part>
- Parameter:
prop
- Parameter for the empty values- Löst aus:
IntakeRuntimeException
- if the parameter is not null
-
getDefaultValidator
A suitable validator.- Setzt außer Kraft:
getDefaultValidator
in KlasseField<Part>
- Gibt zurück:
- A suitable validator
-
init
Method called when this field (the group it belongs to) is pulled from the pool. The request data is searched to determine if a value has been supplied for this field. if so, the value is validated.- Setzt außer Kraft:
init
in KlasseField<Part>
- Parameter:
vp
- aValueParser
value- Gibt zurück:
- a
Field
value - Löst aus:
IntakeException
- if an error occurs
-
validate
public boolean validate()Compares request data with constraints and sets the valid flag. -
doSetValue
protected void doSetValue()Sets the value of the field from data in the parser.- Angegeben von:
doSetValue
in KlasseField<Part>
-