Class NamespacePrefixAccumulator


  • public class NamespacePrefixAccumulator
    extends Object
    • Constructor Detail

      • NamespacePrefixAccumulator

        public NamespacePrefixAccumulator​(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)