Class<?> getJavaType(QName qName) throws ConnectionException { Class<?> c = typeCache.get(qName); if (c == null) { String type = nillableJavaMapping.get(qName); if (type == null) { type = xmlJavaMapping.get(qName); } if (type == null) { type = NameMapper.getPackageName(qName.getNamespaceURI(), packagePrefix) + "." + NameMapper.getClassName(qName.getLocalPart()); } c = load(type); typeCache.put(qName, c); } return c; }
public String fieldName(Element element) { return NameMapper.getFieldName(element.getName()); }
public String writeMethodName(Element element) { return "writeField" + NameMapper.getMethodName(element.getName()); }
public FactoryMetadataConstructor(Definitions definitions, TypeMapper typeMapper, String packagePrefix) { this.definitions = definitions; this.typeMapper = typeMapper; this.packagePrefix = packagePrefix; this.packageName = NameMapper.getPackageName(definitions.getTargetNamespace(), packagePrefix); }
/** * return the class name for the specified xml type. * * @param name xml complex type * @return class name. First letter of the class name will be upper case. */ public static String getClassName(String name) { return upperCaseFirstLetterName(name); }
if (targetNamespace.startsWith("urn:")) { packageName = new StringBuilder(targetNamespace.substring(4)); packageName = reverse(packageName); } else if (targetNamespace.startsWith("http://") || targetNamespace.startsWith("https://") ){ packageName = new StringBuilder(24).append("com.sforce.soap.");
public FactoryMetadataConstructor(Definitions definitions, TypeMapper typeMapper, String packagePrefix) { this.definitions = definitions; this.typeMapper = typeMapper; this.packagePrefix = packagePrefix; this.packageName = NameMapper.getPackageName(definitions.getTargetNamespace(), packagePrefix); }
/** * return the method name for the specified field name. * * @param name field name * @return method name. First letter of the method name will be upper case. */ public static String getMethodName(String name) { return upperCaseFirstLetterName(name); }
if (targetNamespace.startsWith("urn:")) { packageName = new StringBuilder(targetNamespace.substring(4)); packageName = reverse(packageName); } else if (targetNamespace.startsWith("http://") || targetNamespace.startsWith("https://") ){ packageName = new StringBuilder(24).append("com.sforce.soap.");
Class<?> getJavaType(QName qName) throws ConnectionException { Class<?> c = typeCache.get(qName); if (c == null) { String type = nillableJavaMapping.get(qName); if (type == null) { type = xmlJavaMapping.get(qName); } if (type == null) { type = NameMapper.getPackageName(qName.getNamespaceURI(), packagePrefix) + "." + NameMapper.getClassName(qName.getLocalPart()); } c = load(type); typeCache.put(qName, c); } return c; }
public String setMethod(Element element) { return "set" + NameMapper.getMethodName(element.getName()); }
protected String getPackageName(Definitions definitions) { if(definitions.getApiType() == SfdcApiType.Tooling && !hasSobjectNamespace(definitions)){ return NameMapper.getPackageName(definitions.getApiType().getNamespace(), packagePrefix); } return NameMapper.getPackageName(definitions.getApiType().getSobjectNamespace(), packagePrefix); }
/** * return the method name for the specified field name. * * @param name field name * @return method name. First letter of the method name will be upper case. */ public static String getMethodName(String name) { return upperCaseFirstLetterName(name); }
public String fieldName(Element element) { return NameMapper.getFieldName(element.getName()); }
public TypeMetadataConstructor(Types types, Schema schema, ComplexType complexType, File tempDir, TypeMapper typeMapper, boolean laxMinOccursMode) { this.packageName = NameMapper.getPackageName(schema.getTargetNamespace(), typeMapper.getPackagePrefix()); this.types = types; this.mapper = typeMapper; this.complexType = complexType; this.className = NameMapper.getClassName(complexType.getName()); this.laxMinOccursMode = laxMinOccursMode; }
public String setMethod(Element element) { return "set" + NameMapper.getMethodName(element.getName()); }
protected String getPackageName(Definitions definitions) { if(definitions.getApiType() == SfdcApiType.Tooling && !hasSobjectNamespace(definitions)){ return NameMapper.getPackageName(definitions.getApiType().getNamespace(), packagePrefix); } return NameMapper.getPackageName(definitions.getApiType().getSobjectNamespace(), packagePrefix); }
/** * return the class name for the specified xml type. * * @param name xml complex type * @return class name. First letter of the class name will be upper case. */ public static String getClassName(String name) { return upperCaseFirstLetterName(name); }
public TypeMetadataConstructor(Types types, Schema schema, ComplexType complexType, File tempDir, TypeMapper typeMapper, boolean laxMinOccursMode) { this.packageName = NameMapper.getPackageName(schema.getTargetNamespace(), typeMapper.getPackagePrefix()); this.types = types; this.mapper = typeMapper; this.complexType = complexType; this.className = NameMapper.getClassName(complexType.getName()); this.laxMinOccursMode = laxMinOccursMode; }
public String booleanGetMethod(Element element) { return "is" + NameMapper.getMethodName(element.getName()); }