Interface NameResolver

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getJCRName​(Name name)
      Returns the qualified JCR name String for the given Name object.
      Name getQName​(java.lang.String name)
      Returns the Name for the given JCR name String.
    • Method Detail

      • getQName

        Name getQName​(java.lang.String name)
               throws IllegalNameException,
                      javax.jcr.NamespaceException
        Returns the Name for the given JCR name String.
        Parameters:
        name - A JCR name String.
        Returns:
        A Name object.
        Throws:
        IllegalNameException - if the JCR name format is invalid
        javax.jcr.NamespaceException - if the namespace prefix can not be resolved
      • getJCRName

        java.lang.String getJCRName​(Name name)
                             throws javax.jcr.NamespaceException
        Returns the qualified JCR name String for the given Name object.
        Parameters:
        name - A Name object.
        Returns:
        The qualified JCR name String consisting of prefix:localName or localName in case of the empty namespace.
        Throws:
        javax.jcr.NamespaceException - if the namespace URI can not be resolved