Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 0.9.5
-
Fix Version/s: 1.1.1
-
Component/s: XML code generator
-
Labels:None
-
Environment:Operating System: All
Platform: All
-
Bugzilla Id:1310
-
Number of attachments :
Description
All Element content gets mapped to a property 'content' in the
generated classes, i.e. you can access the element's PCDATA
text-content via set/getContent().
I'm looking for a configuration possibility to bind the PCDATA
text-content to something more meaningfull,
like set/getMyElementContent().
Arnaud Blandin replied to a similar request in the castor-dev mailinlist
with the following comment:
>Unfortunately it is not something currently possible with the binding file.
>The binding file only acts on elements that are identified by an XPath
location path.
>It might be included in future releases though.
Somehow I think that it should be possible to add a 'type expression' to the XPATH statement as expected by an elementBinding instance, along the lines of
/someElementcontent
to uniquely identify the fact that we are looking at the content of the element definition.