Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363617

Summary: [Validation] Validation and content assist for XmlType.factoryClass/factoryMethod
Product: [WebTools] Dali JPA Tools Reporter: Paul Fullbright <paul.fullbright>
Component: JAXBAssignee: Neil Hauge <neil.hauge>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: nan.n.li, neil.hauge
Version: unspecified   
Target Milestone: Future   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Paul Fullbright CLA 2011-11-11 15:04:17 EST
Add validation for:
- factory method exists on factory class (and perhaps that it returns an instance of this class)
- factory method has zero args

Add content assist for:
- factory method
Comment 1 Nan Li CLA 2013-04-12 15:57:57 EDT
A couple of more related validations:

-If factoryClass() is other than DEFAULT.class, then factoryMethod() must be specified (i.e. the default value ““ cannot be used.)

A validation error is giving saying "If a factory class is specified, a factory method must also be specified."	when factoryClass() is DEFAULT.class and factoryMethod() is "". Don't think we should give the validation error with this case based on the spec.

-If factoryClass() is DEFAULT.class and factoryMethod() is not ““, then factoryMethod() be a method in this class.

No validation error is given when the method given to factoryMethod() does not exist.