eed3si9n/scalaxb — Issue #142: create package based on namespace
Author: dportabella
Created: 2012-02-22 10:46:46+00:00
State: open

JAXB can create the name of the package based on the namespace,
for instance, for "http://example.com/a/b" will create the package "com.example.a.b"
It is possible to do this also with scalaxb by using the parameter "--package:=" for each namespace,
but it could be good to have the automatic option as in JAXB.

Also, scalaxb should throw an error when there is a collision, as in JAXB:
>> [ERROR] A class/interface with the same name "TimeTable" is already in use. Use a class customization to resolve this conflict.
That can happen because two types named "TimeTable" are defined (with two different namespaces), but we forgot to specify a different package for each one.
It can happen also if there is a type named "TimeTable" and another one named "Timetable" (note the lower case), and the filesystem does not support it.