Class FacetQNameUtils


  • public abstract class FacetQNameUtils
    extends java.lang.Object
    This class provides some simple utility methods for dealing with QNames within the faceted search feature. The whole thing should be considered a hack to handle 'special cases'.

    These are not intended for general use, or else they'd be in the QName class.

    Since:
    5.0
    • Constructor Summary

      Constructors 
      Constructor Description
      FacetQNameUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.alfresco.service.namespace.QName createQName​(java.lang.String s, org.alfresco.service.namespace.NamespacePrefixResolver resolver)
      This method converts the supplied qname string into a QName object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FacetQNameUtils

        public FacetQNameUtils()
    • Method Detail

      • createQName

        public static org.alfresco.service.namespace.QName createQName​(java.lang.String s,
                                                                       org.alfresco.service.namespace.NamespacePrefixResolver resolver)
        This method converts the supplied qname string into a QName object. It accepts both short and long form qname strings.
        Parameters:
        s - a qname string, such as "cm:name" or "{http://www.alfresco.org/model/content/1.0}name"
        resolver - this is needed to convert any qname prefixes into their long form.
        Returns:
        the QName instance.
        Throws:
        java.lang.NullPointerException - if the provided string is null.
        java.lang.IllegalArgumentException - if the provided string could not be recognised as a valid QName.