Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331070 - [api] Need convenience methods in XmlValueBindingImpl
Summary: [api] Need convenience methods in XmlValueBindingImpl
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2010-11-24 17:42 EST by Konstantin Komissarchik CLA
Modified: 2021-11-19 09:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Komissarchik CLA 2010-11-24 17:42:47 EST
Looking at classes extending XmlValueBindingImpl, certain repeating code blocks have emerged. Adding protected convenience methods around these code blocks would simplify value binding implementations.

Pattern: element().adapt( XmlResource.class ).getXmlElement( createIfNecessary )
Proposed Method: XmlElement xml( boolean createIfNecessary )

Pattern: element().adapt( XmlResource.class )
Proposed Method: XmlResource resource()
Comment 1 Konstantin Komissarchik CLA 2010-11-24 17:45:19 EST
Implemented.
Comment 2 Ling Hao CLA 2011-01-05 17:41:57 EST
Verify convenience methods.