Bug 178121 - Need API to create a ConstraintStatus on non-target object
Summary: Need API to create a ConstraintStatus on non-target object
Status: VERIFIED FIXED
Alias: None
Product: EMF Services
Classification: Modeling
Component: Validation (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P2 enhancement
Target Milestone: ---   Edit
Assignee: David Cummings CLA
QA Contact:
URL:
Whiteboard:
Keywords: api, contributed
Depends on:
Blocks:
 
Reported: 2007-03-19 14:45 EDT by Christian Damus CLA
Modified: 2017-02-24 15:09 EST (History)
0 users

See Also:


Attachments
Proposed patch (10.31 KB, patch)
2007-03-20 11:55 EDT, David Cummings CLA
no flags Details | Diff
Proposed patch w/ JUnits (18.66 KB, patch)
2007-03-20 15:01 EDT, David Cummings CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Damus CLA 2007-03-19 14:45:44 EDT
ConstraintStatus provides static methods to create a failure status from a ValidationContext, but these methods assume the validation context's target is the target of the status.  Likewise, there needs to be a way to create a success status on a given object that is not the validation target.
Comment 1 David Cummings CLA 2007-03-20 11:55:37 EDT
Created attachment 61412 [details]
Proposed patch
Comment 2 David Cummings CLA 2007-03-20 15:01:22 EDT
Created attachment 61444 [details]
Proposed patch w/ JUnits

Added junits
Comment 3 Christian Damus CLA 2007-03-21 14:51:50 EDT
Committed the patch.
Comment 4 Nick Boldt CLA 2008-01-28 16:35:33 EST
Move to verified as per bug 206558.