Class QName


  • public class QName
    extends java.lang.Object
    Since:
    09.11.2006
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String localName
      XML localname
      private java.lang.String prefix
      XML namespace prefix
    • Constructor Summary

      Constructors 
      Constructor Description
      QName​(java.lang.String qname)
      Splits a qname into prefix and localname.
      QName​(java.lang.String prefix, java.lang.String localName)
      Constructor that initializes the fields
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLocalName()  
      java.lang.String getPrefix()  
      boolean hasPrefix()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • prefix

        private java.lang.String prefix
        XML namespace prefix
      • localName

        private java.lang.String localName
        XML localname
    • Constructor Detail

      • QName

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

        public QName​(java.lang.String prefix,
                     java.lang.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 java.lang.String getLocalName()
        Returns:
        the localName
      • getPrefix

        public java.lang.String getPrefix()
        Returns:
        the prefix