Interface NamespaceNameTree

    • Method Detail

      • fullName

        String fullName()
        Return the concatenation of:
        • absolute separator (if present)
        • namespaces with separators (if present)
        • name
      • unqualifiedName

        String unqualifiedName()
        Return the unqualified form of the namespaced name, means it will return just the String value of the name.

        Example:

          \Foo\Bar  => return "Bar"
          Foo\Bar   => return "Bar"
          Bar       => return "Bar"
         
      • qualifiedName

        String qualifiedName()
        Return the qualified form of the namespaced name, with the namespaces and separators if present, only the name otherwise.

        Example:

          \Foo\Bar  => return "Foo\Bar"
          Foo\Bar   => return "Foo\Bar"
          Bar       => return "Bar"
         
      • fullyQualifiedName

        String fullyQualifiedName()
        Return the fully qualified form of the namespaced name, with the namespaces and separators if present and the absolute separator if present.

        Example:

          \Foo\Bar  => return "\Foo\Bar"
          Foo\Bar   => return "Foo\Bar"
          Bar       => return "Bar"
         
      • isFullyQualified

        boolean isFullyQualified()
        Return true if the namespace name starts with a namespace separator.

        Example:

          \Foo\Bar
          \AnotherFoo
         
      • hasQualifiers

        boolean hasQualifiers()
        Return true if the namespace name has namespace separator.

        Example:

          Foo\Bar