Apache CXF API

org.apache.cxf.javascript
Class BasicNameManager

java.lang.Object
  extended by org.apache.cxf.javascript.BasicNameManager
All Implemented Interfaces:
NameManager

public class BasicNameManager
extends Object
implements NameManager

Generate JavaScript names for QNames. This might belong on the CXF bus.


Method Summary
 String getJavascriptName(QName qname)
           
 String getJavascriptName(org.apache.ws.commons.schema.XmlSchemaComplexType schemaType)
          
static BasicNameManager newNameManager(ServiceInfo service)
          Factory that just takes a service.
static BasicNameManager newNameManager(ServiceInfo service, Endpoint endpoint)
           
protected  String transformURI(String uri)
          Take a URI and turn it into a JavaScript name prefix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newNameManager

public static BasicNameManager newNameManager(ServiceInfo service)
Factory that just takes a service. Used in tools and unit tests.

Parameters:
service -
Returns:

newNameManager

public static BasicNameManager newNameManager(ServiceInfo service,
                                              Endpoint endpoint)
Parameters:
service -
endpoint -
Returns:

transformURI

protected String transformURI(String uri)
Take a URI and turn it into a JavaScript name prefix.

Parameters:
uri - input URI.
Returns:
output prefix.

getJavascriptName

public String getJavascriptName(org.apache.ws.commons.schema.XmlSchemaComplexType schemaType)


getJavascriptName

public String getJavascriptName(QName qname)
Specified by:
getJavascriptName in interface NameManager

Apache CXF API

Apache CXF