Class QName


  • public class QName
    extends Object
    Since:
    09.11.2006
    • Constructor Detail

      • QName

        public QName​(String qname)
        Splits a qname into prefix and localname.
        Parameters:
        qname - a QName
      • QName

        public QName​(String prefix,
                     String localName)
        Constructor that initializes the fields
        Parameters:
        prefix - the prefix
        localName - the name
    • Method Detail

      • hasPrefix

        public boolean hasPrefix()
        Returns:
        Returns whether the QName has a prefix.
      • getLocalName

        public String getLocalName()
        Returns:
        the localName
      • getPrefix

        public String getPrefix()
        Returns:
        the prefix