Class QualifiedName

Object
QName
QualifiedName
All Implemented Interfaces:
Serializable

public class QualifiedName extends QName
A QName subclass holding the fully qualified name as a field (important performance wise, ContentHandler writes out XML much faster if given the fully qualified name as opposed to namespace URI and local name)
Author:
Andrea Aime - GeoSolutions
See Also:
  • Constructor Details

    • QualifiedName

      public QualifiedName(String namespaceURI, String localPart)
    • QualifiedName

      public QualifiedName(String namespaceURI, String localPart, String prefix)
  • Method Details

    • getQualifiedName

      public String getQualifiedName()
    • derive

      public QualifiedName derive(String prefix)
      Derives a new QualifiedName with the given prefix, or returns itself if the prefix is the same alredy in use
    • derive

      public QualifiedName derive(String prefix, String uri)
    • build

      public static QualifiedName build(String targetNamespace, String name, String prefix)
      This method is used to replicate a "feature" of the standard encoder, when no prefix can be found, "null" will be used instead of having the code throw an exception