/** * Constructor that fills in the values from the given raw model */ public JAXBModel( com.sun.tools.xjc.api.JAXBModel rawModel ) { this.rawJAXBModel = rawModel; if(rawModel instanceof S2JJAXBModel){ S2JJAXBModel model = (S2JJAXBModel)rawModel; List<JAXBMapping> ms = new ArrayList<JAXBMapping>(model.getMappings().size()); for( Mapping m : model.getMappings()) ms.add(new JAXBMapping(m)); setMappings(ms); } }
/** * Constructor that fills in the values from the given raw model */ public JAXBModel( com.sun.tools.xjc.api.JAXBModel rawModel ) { this.rawJAXBModel = rawModel; if(rawModel instanceof S2JJAXBModel){ S2JJAXBModel model = (S2JJAXBModel)rawModel; List<JAXBMapping> ms = new ArrayList<JAXBMapping>(model.getMappings().size()); for( Mapping m : model.getMappings()) ms.add(new JAXBMapping(m)); setMappings(ms); } }
/** * Constructor that fills in the values from the given raw model */ public JAXBModel( com.sun.tools.xjc.api.JAXBModel rawModel ) { this.rawJAXBModel = rawModel; if(rawModel instanceof S2JJAXBModel){ S2JJAXBModel model = (S2JJAXBModel)rawModel; List<JAXBMapping> ms = new ArrayList<JAXBMapping>(model.getMappings().size()); for( Mapping m : model.getMappings()) ms.add(new JAXBMapping(m)); setMappings(ms); } }
/** * Constructor that fills in the values from the given raw model */ public JAXBModel( com.sun.tools.xjc.api.JAXBModel rawModel ) { this.rawJAXBModel = rawModel; if(rawModel instanceof S2JJAXBModel){ S2JJAXBModel model = (S2JJAXBModel)rawModel; List<JAXBMapping> ms = new ArrayList<JAXBMapping>(model.getMappings().size()); for( Mapping m : model.getMappings()) ms.add(new JAXBMapping(m)); setMappings(ms); } }
codeModel.build(writer); Collection mappings = jaxbModel.getMappings();
codeModel.build(writer); for (Mapping mapping : jaxbModel.getMappings()) { QName qn = mapping.getElement(); String typeName = mapping.getType().getTypeClass().fullName();