org.apache.cxf.javascript
Class NamespacePrefixAccumulator
java.lang.Object
org.apache.cxf.javascript.NamespacePrefixAccumulator
public class NamespacePrefixAccumulator
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamespacePrefixAccumulator
public NamespacePrefixAccumulator(SchemaCollection schemaCollection)
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