Klasse XmlField

java.lang.Object
org.apache.fulcrum.intake.model.XmlField
Alle implementierten Schnittstellen:
Serializable, org.apache.avalon.framework.logger.LogEnabled

public class XmlField extends Object implements Serializable, org.apache.avalon.framework.logger.LogEnabled
A Class for holding data about a property used in an Application.
Version:
$Id$
Autor:
John McNally, Henning P. Schmiedehausen, Quinton McCombs, Thomas Vandahl
Siehe auch:
  • Konstruktordetails

    • XmlField

      public XmlField()
      Default Constructor
  • Methodendetails

    • enableLogging

      public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
      Enable Avalon Logging
      Angegeben von:
      enableLogging in Schnittstelle org.apache.avalon.framework.logger.LogEnabled
    • getLogger

      public org.apache.avalon.framework.logger.Logger getLogger()
      Return Avalon logger
      Gibt zurück:
      the logger
    • getRawName

      public String getRawName()
      Get the name of the property
      Gibt zurück:
      the raw name of the property
    • getName

      public String getName()
      Get the name of the property
      Gibt zurück:
      the name of the property with underscores removed
    • getDisplayName

      public String getDisplayName()
      Get the display name of the property
      Gibt zurück:
      the display name of the property
    • getDisplaySize

      public String getDisplaySize()
      Gets the display size of the field. This is useful for constructing the HTML input tag.
      Gibt zurück:
      the display size for the field
    • getKey

      public String getKey()
      Get the parameter key of the property
      Gibt zurück:
      the key of the property
    • getType

      public FieldType getType()
      Get the type of the property
      Gibt zurück:
      the type of the field
    • isMultiValued

      public boolean isMultiValued()
      Can this field have several values?
      Gibt zurück:
      true if the field can have multiple values
    • getMapToObject

      public String getMapToObject()
      Get the name of the object that takes this input
      Gibt zurück:
      the name of the mapped object
    • getMapToProperty

      public String getMapToProperty()
      Get the property method that takes this input
      Gibt zurück:
      the property this field is mapped to
    • getValidator

      public String getValidator()
      Get the className of the validator
      Gibt zurück:
      the validator class name
    • getDefaultValue

      public String getDefaultValue()
      Get the default Value.
      Gibt zurück:
      The default value for this field.
    • getEmptyValue

      public String getEmptyValue()
      Get the empty Value.
      Gibt zurück:
      The empty value for this field.
    • getGroup

      public Group getGroup()
      Get the parent XmlGroup of the field
      Gibt zurück:
      the group this field belongs to
    • getFieldClass

      public String getFieldClass()
      Get the value of fieldClass.
      Gibt zurück:
      value of fieldClass.
    • getRules

      public List<Rule> getRules()
      The collection of rules for this field.
      Gibt zurück:
      a List value
    • setRules

      public void setRules(List<Rule> rules)
      Set the collection of rules for this field
      Parameter:
      rules - the rules to set
    • getRuleMap

      public Map<String,Rule> getRuleMap()
      The collection of rules for this field keyed by parameter name.
      Gibt zurück:
      a Map value
    • afterUnmarshal

      public void afterUnmarshal(jakarta.xml.bind.Unmarshaller um, Object parent)
      JAXB callback to set the parent object
      Parameter:
      um - the Unmarshaller
      parent - the parent object (an XmlGroup)
    • toString

      public String toString()
      String representation of the column. This is an xml representation.
      Setzt außer Kraft:
      toString in Klasse Object
      Gibt zurück:
      the value of this field as an XML representation