Klasse UploadPartField

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

public class UploadPartField extends Field<Part>
Version:
$Id$
Autor:
John McNally, Henning P. Schmiedehausen, Quinton McCombs
Siehe auch:
  • Konstruktordetails

    • UploadPartField

      public UploadPartField(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)
      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 Klasse Field<Part>
      Parameter:
      prop - Parameter for the default values
      Löst aus:
      IntakeRuntimeException - if the parameter is not null
    • setEmptyValue

      public void setEmptyValue(String prop)
      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 Klasse Field<Part>
      Parameter:
      prop - Parameter for the empty values
      Löst aus:
      IntakeRuntimeException - if the parameter is not null
    • getDefaultValidator

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

      public Field<Part> init(org.apache.fulcrum.parser.ValueParser vp) throws IntakeException
      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 Klasse Field<Part>
      Parameter:
      vp - a ValueParser 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.
      Setzt außer Kraft:
      validate in Klasse Field<Part>
      Gibt zurück:
      the valid flag
    • doSetValue

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