Class SimpleName.Local

    • Constructor Detail

      • Local

        public Local​(SimpleNameSpace scope,
                     Name name)
              throws IllegalArgumentException
        Creates a new instance backed by the given JNDI name. This constructor does not clone the given JNDI name. While this implementation is robust to change in the wrapped object, it is a better practice to keep the JNDI name unmodified after SimpleName construction.
        Parameters:
        scope - the scope (name space) in which the given name is local.
        name - the JNDI name wrapped by this SimpleName (not cloned).
        Throws:
        IllegalArgumentException - if the given name does not have exactly 1 component.
    • Method Detail

      • getParsedNames

        public List<LocalName> getParsedNames()
        Since this object is itself a locale name, returns a singleton list containing only this.
        Specified by:
        getParsedNames in interface GenericName
        Specified by:
        getParsedNames in interface LocalName
        Overrides:
        getParsedNames in class SimpleName
        See Also:
        Name.getAll()
      • head

        public LocalName head()
        Returns this since this object is already a local name.
        Specified by:
        head in interface GenericName
        Specified by:
        head in interface LocalName
        Overrides:
        head in class SimpleName
        Returns:
        this.
        See Also:
        Name.get(int)
      • tip

        public LocalName tip()
        Returns this since this object is already a local name.
        Specified by:
        tip in interface GenericName
        Specified by:
        tip in interface LocalName
        Overrides:
        tip in class SimpleName
        Returns:
        this.
        See Also:
        Name.get(int)