public class

NameMapper

extends Object
java.lang.Object
   ↳ com.sforce.ws.bind.NameMapper

Class Overview

This class maps between xml and java names.

Summary

Fields
public static final HashSet<String> keywords
Public Constructors
NameMapper()
Public Methods
static String getClassName(String name)
return the class name for the specified xml type.
static String getFieldName(String name)
static String getMethodName(String name)
return the method name for the specified field name.
static String getPackageName(String targetNamespace, String packagePrefix)
returns the java package name for the specified schema target namespace
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final HashSet<String> keywords

Public Constructors

public NameMapper ()

Public Methods

public static String getClassName (String name)

return the class name for the specified xml type.

Parameters
name Xml complex type
Returns
  • class name. First letter of the class name will be upper case.

public static String getFieldName (String name)

Parameters
name

public static String getMethodName (String name)

return the method name for the specified field name.

Parameters
name Field name
Returns
  • method name. First letter of the method name will be upper case.

public static String getPackageName (String targetNamespace, String packagePrefix)

returns the java package name for the specified schema target namespace

Parameters
targetNamespace Scheam target namespace
packagePrefix Package prefix
Returns
  • java package name