Package org.apache.fulcrum.intake.model
Klasse LongField
- Alle implementierten Schnittstellen:
Serializable
,org.apache.avalon.framework.logger.LogEnabled
Processor for long fields.
- Version:
- $Id$
- 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.protected Object
Provides access to emptyValue such that the value returned will be acceptable as an argument parameter to Method.invoke.void
setDefaultValue
(String prop) Sets the default value for an Long Fieldvoid
setEmptyValue
(String prop) Set the empty Value.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, getStringValue, getTestValue, getValidator, getValue, getValueIfAbsent, init, init, initGetterAndSetter, isMultiValued, isRequired, isSet, isValid, isValidated, removeFromRequest, setDisplayName, setMessage, setProperty, setRequired, setRequired, setSet, setValid, setValidated, toString, validate
-
Konstruktordetails
-
LongField
Constructor.- Parameter:
field
- xml field definition objectgroup
- xml group definition object- Löst aus:
IntakeException
- thrown by superclass
-
-
Methodendetails
-
setDefaultValue
Sets the default value for an Long Field- Angegeben von:
setDefaultValue
in KlasseField<Long>
- Parameter:
prop
- Parameter for the default values
-
setEmptyValue
Set the empty Value. This value is used if Intake maps a field to a parameter returned by the user and the corresponding field is either empty (empty string) or non-existant.- Angegeben von:
setEmptyValue
in KlasseField<Long>
- Parameter:
prop
- The value to use if the field is empty.
-
getSafeEmptyValue
Provides access to emptyValue such that the value returned will be acceptable as an argument parameter to Method.invoke. Subclasses that deal with primitive types should ensure that they return an appropriate value wrapped in the object wrapper class for the primitive type.- Setzt außer Kraft:
getSafeEmptyValue
in KlasseField<Long>
- Gibt zurück:
- the value to use when the field is empty or an Object that wraps the empty value for primitive types.
-
getDefaultValidator
A suitable validator.- Setzt außer Kraft:
getDefaultValidator
in KlasseField<Long>
- Gibt zurück:
- A suitable validator
-
doSetValue
protected void doSetValue()Sets the value of the field from data in the parser.- Angegeben von:
doSetValue
in KlasseField<Long>
-