Klasse DateStringField

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

public class DateStringField extends Field<Date>
Field for date inputs as free form text. The parsing of date strings is dependent on any rules that are defined, so this field will expect that any validator will be (or extend) DateStringValidator.
Version:
$Id$
Autor:
John McNally, Henning P. Schmiedehausen, Quinton McCombs
Siehe auch:
  • Konstruktordetails

    • DateStringField

      public DateStringField(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 DateString field
      Angegeben von:
      setDefaultValue in Klasse Field<Date>
      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<Date>
      Parameter:
      prop - The value to use if the field is empty.
    • getDefaultValidator

      protected String getDefaultValidator()
      A suitable validator.
      Setzt außer Kraft:
      getDefaultValidator in Klasse Field<Date>
      Gibt zurück:
      "DateStringValidator"
    • doSetValue

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

      public String toString()
      returns a String representation
      Setzt außer Kraft:
      toString in Klasse Field<Date>
      Gibt zurück:
      a String representation