Klasse BooleanField

java.lang.Object
org.apache.fulcrum.intake.model.Field<Boolean>
org.apache.fulcrum.intake.model.BooleanField
Alle implementierten Schnittstellen:
Serializable, org.apache.avalon.framework.logger.LogEnabled

public class BooleanField extends Field<Boolean>
Processor for boolean fields.
Version:
$Id$
Siehe auch:
  • Konstruktordetails

    • BooleanField

      public BooleanField(XmlField field, Group group) throws IntakeException
      Constructor.
      Parameter:
      field - xml field definition object
      group - xml group definition object
      Löst aus:
      IntakeException - thrown by superclass
  • Methodendetails

    • setDefaultValue

      public void setDefaultValue(String prop)
      Sets the default value for a Boolean field
      Angegeben von:
      setDefaultValue in Klasse Field<Boolean>
      Parameter:
      prop - Parameter for the default values
    • setEmptyValue

      public void setEmptyValue(String prop)
      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 Klasse Field<Boolean>
      Parameter:
      prop - The value to use if the field is empty.
    • getSafeEmptyValue

      protected Object 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 Klasse Field<Boolean>
      Gibt zurück:
      the value to use when the field is empty or an Object that wraps the empty value for primitive types.
    • getDefaultValidator

      protected String getDefaultValidator()
      A suitable validator.
      Setzt außer Kraft:
      getDefaultValidator in Klasse Field<Boolean>
      Gibt zurück:
      class name of the validator
    • doSetValue

      protected void doSetValue()
      Sets the value of the field from data in the parser.
      Angegeben von:
      doSetValue in Klasse Field<Boolean>
    • booleanValue

      public boolean booleanValue()
      Gets the boolean value of the field. A value of false will be returned if the value of the field is null.
      Gibt zurück:
      value of the field.