Interface NameResolver

All Known Subinterfaces:
NamePathResolver
All Known Implementing Classes:
CachingNameResolver, DefaultNamePathResolver, ParsingNameResolver

public interface NameResolver
Resolver for JCR name Strings and Name objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the qualified JCR name String for the given Name object.
    Returns the Name for the given JCR name String.
  • Method Details

    • getQName

      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
      NamespaceException - if the namespace prefix can not be resolved
    • getJCRName

      String getJCRName(Name name) throws 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:
      NamespaceException - if the namespace URI can not be resolved