org.apache.cxf.javascript
Class NamespacePrefixAccumulator

java.lang.Object
  extended by org.apache.cxf.javascript.NamespacePrefixAccumulator

public class NamespacePrefixAccumulator
extends Object


Constructor Summary
NamespacePrefixAccumulator(org.apache.cxf.common.xmlschema.SchemaCollection schemaCollection)
           
 
Method Summary
 void collect(String prefix, String uri)
           
 String getAttributes()
           
 String xmlAttributeString(org.apache.ws.commons.schema.XmlSchemaAttribute attribute, boolean qualified)
          Obtain a suitable name for use in Javascript for an attribute.
 String xmlElementString(QName name)
           
 String xmlElementString(QName elementQName, boolean qualified)
          This function obtains a name, perhaps namespace-qualified, for an element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamespacePrefixAccumulator

public NamespacePrefixAccumulator(org.apache.cxf.common.xmlschema.SchemaCollection schemaCollection)
Method Detail

collect

public void collect(String prefix,
                    String uri)

getAttributes

public String getAttributes()

xmlElementString

public String xmlElementString(QName elementQName,
                               boolean qualified)
This function obtains a name, perhaps namespace-qualified, for an element.

Parameters:
elementQName - the element.
qualified - whether to qualify.
Returns:

xmlAttributeString

public String xmlAttributeString(org.apache.ws.commons.schema.XmlSchemaAttribute attribute,
                                 boolean qualified)
Obtain a suitable name for use in Javascript for an attribute. This function is purely a tribute to the awful modularity of XmlSchema.

Parameters:
attribute -
qualified -
Returns:

xmlElementString

public String xmlElementString(QName name)


Apache CXF