Uploaded image for project: 'Commons Validator'
  1. Commons Validator
  2. VALIDATOR-175

Field class Msg access mod

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Nightly Builds
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 29452

    Description

      Simply put, this enhancement request recommends that the Field class be
      modified to support the full functionality implied by the validator DTD.

      The validator DTDs indicate that each field element may have any number of
      child msg elements with optional attributes bundle and resource and required
      attributes key and name, but the current codebase doesn't expose that level of
      flexibility. The Field class in its current state does not provide any
      accessor methods for retrieving Msg objects that have been associated with a
      particular field. The current getMsg() implementation returns only a String--
      representing the message key--even though an addMsg(Msg) method is provided.

      The need to extract key, name, bundle, and resource y/n information for a
      particular message (or messages) belonging to a field is a very likely
      scenario. This functionality would be particularly useful in situations where
      the validator is used as a standalone validation framework by applications,
      since it allows for more flexibility when analyzing ValidatorResult
      instances.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rawertz@freerangedata.com Rich Wertz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: