Hello All-

I am doing source code generation from schema files and I am running into some 
unfriendly method names. The whole problem stems from the fact that the naming 
convention in the schema uses underscores '_' instead of dashes '-' to delimit 
words in the attribute and element names. For example the schema uses 

<xs:attribute name="topic_id" type="xs:string" />

instead of 

<xs:attribute name="topic-id" type="xs:string"/>.

When I change the schema to use "topic-id" I get a nice looking method name 
like getTopicId. Unfortunately, I will not be allowed to change the schema 
beyond my own sand box so I am getting method names like getTopic_id. 

I was wondering is it possible to the add/change the mapping delimiters to 
handle underscores the same as dashes?

Thanks
Kurt

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to