]
Emmanuel Bernard updated BVAL-143:
----------------------------------
Fix Version/s: 1.0 final
Describe path with an object model
----------------------------------
Key: BVAL-143
URL:
http://opensource.atlassian.com/projects/hibernate/browse/BVAL-143
Project: Bean Validation
Issue Type: Improvement
Components: spec-general
Affects Versions: 1.0 proposed final draft
Reporter: Emmanuel Bernard
Priority: Minor
Fix For: 1.0 final
path are today strings with dot separating properties. But it break when Set or Iterable
are used.
We could replace that with
--- First strawman, must evolve --
class PathElement {
String getName();
PathElement getParentPath();
boolean isIterable();
boolean isIndexed();
Object getIndex();
//TODO int getIndex()?
// not happy about that as it is only useful for Constraintciolation
PathElement getChild();
}
PathElement would be used for Constraintvuilation, maybe CVContext etc
can this be refactored using inheritance + generics to have an IndexedPathElement only
when it matters (probably no unfortunately)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: