public class NamespacePrefixAccumulator extends Object
Constructor and Description |
---|
NamespacePrefixAccumulator(SchemaCollection schemaCollection) |
Modifier and Type | Method and Description |
---|---|
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.
|
public NamespacePrefixAccumulator(SchemaCollection schemaCollection)
public String getAttributes()
public String xmlElementString(QName elementQName, boolean qualified)
elementQName
- the element.qualified
- whether to qualify.public String xmlAttributeString(org.apache.ws.commons.schema.XmlSchemaAttribute attribute, boolean qualified)
attribute
- qualified
- Apache CXF