From: Angelo D'A. <dam...@gm...> - 2013-04-22 15:33:52
|
Hi to all, I’m trying to use geotools api to implement my custom model that extends GML concepts. I follow instructions that are in this tutorial : http://docs.geotools.org/latest/userguide/library/xml/internal/tutorial.html <http://docs.geotools.org/latest/userguide/library/xml/internal/tutorial.html> For practice I created my custom XSD simple model that extends some GML concepts as you can see in next figure. <http://osgeo-org.1560.x6.nabble.com/file/n5048829/Immagine.jpg> In my model / -- ConveyanceType extends gml:AbstractFeatureType -- CommercialVehicle (an istance of CommercialVehicleType) is a gml:_Feature -- Train (an istance of TrainType) is a gml:_Feature/ When I launch *mvn jaxb2:generate* XJC tried to generate also GML model and I have a lot of conflicts name on elements . I would to exclude GML concepts from compilation of model and automatically generate custom binding taken from already defined binding class of Geotools such as: http://docs.geotools.org/latest/javadocs/org/geotools/gml3/bindings/AbstractFeatureTypeBinding.html <http://docs.geotools.org/latest/javadocs/org/geotools/gml3/bindings/AbstractFeatureTypeBinding.html> 1. There are some examples to learn how to configure this expected behaviour? 2. This could be a good practice to implement a custom model extends gml concept ? 3. What is the best practice to have a Model Driven Architecture between Jaxb and EMF strategies? PS. I see also this project http://www.ogcnetwork.net/jaxb4ogc <http://www.ogcnetwork.net/jaxb4ogc> , they define custom *binding.xjb* for creation of complete GML model but I would reuse already defined binding of GML, maybe configuring dependency on *gt-xsd-gml3*. Thanks in advance, Angelo -- View this message in context: http://osgeo-org.1560.x6.nabble.com/JAXB-code-generation-of-custom-model-that-extends-GML-types-tp5048829.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. |