Package groovy.xml

Class Namespace

  • public class Namespace
    extends Object
    A simple helper class which acts as a factory of QName instances.
    • Constructor Detail

      • Namespace

        public Namespace()
      • Namespace

        public Namespace​(String uri)
      • Namespace

        public Namespace​(String uri,
                         String prefix)
    • Method Detail

      • get

        public QName get​(String localName)
        Returns the QName for the given localName.
        localName - the local name within this
      • getPrefix

        public String getPrefix()
        Returns the prefix mapped to this namespace
        the prefix assigned to this namespace or null if no namespace is mapped.
      • getUri

        public String getUri()
        Returns the URI of this namespace
        the URI of this namespace