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.