public String initArray(Element element) { StringBuilder sb = new StringBuilder(); if (isArray(element.getMaxOccurs())) { sb.append(" = new "); sb.append(mapper.getJavaClassName(element.getType(), types, false)); sb.append("[0]"); } return sb.toString(); }
public String typeInfo(Element element) { String tns = element.getSchema().getTargetNamespace(); String name = element.getName(); String typeNs = element.getType().getNamespaceURI(); String type = element.getType().getLocalPart(); int minOcc = element.getMinOccurs(); int maxOcc = element.getMaxOccurs(); boolean formQualified = element.getSchema().isElementFormQualified(); return "\"" + tns + "\",\"" + name + "\",\"" + typeNs + "\",\"" + type + "\"," + minOcc + "," + maxOcc + "," + formQualified; }
public String javaType(Element element) { QName type = element.getType(); return localJavaType(type, element.getMaxOccurs(), element.isNillable()); }
public String elementDoc(Element element) { return element.getName() + " of type " + element.getType(); }