protected void generateComplexTypeClass(Types types, Schema schema, File dir) throws IOException { for (ComplexType complexType : schema.getComplexTypes()) { if (!typeMapper.isWellKnownType( complexType.getSchema().getTargetNamespace(), complexType.getName())) { generateClassFromComplexType(types, schema, complexType, dir); } } }
public ComplexTypeGenerator( Types types, Schema schema, ComplexType complexType, File tempDir, TypeMapper typeMapper, boolean laxMinOccursMode) { super(types, schema, complexType.getName(), tempDir, typeMapper); this.complexType = complexType; this.laxMinOccursMode = laxMinOccursMode; }
public String xsiType() { if (complexType.getBase() == null) { return ""; } StringBuilder sb = new StringBuilder(); sb.append("__typeMapper.writeXsiType(__out, \""); sb.append(complexType.getSchema().getTargetNamespace()); sb.append("\", \""); sb.append(complexType.getName()); sb.append("\");"); return sb.toString(); }