Class QNameHelper


  • public class QNameHelper
    extends java.lang.Object
    Helper for QName objects.
    Author:
    Sara Aspery
    • Constructor Summary

      Constructors 
      Constructor Description
      QNameHelper​(org.alfresco.service.namespace.NamespaceService namespaceService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getQNamePrefixString​(org.alfresco.service.namespace.QName k)
      Returns the QName in the format prefix:local, but in the exceptional case where there is no registered prefix returns it in the form {uri}local.
      • Methods inherited from class java.lang.Object

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

      • QNameHelper

        public QNameHelper​(org.alfresco.service.namespace.NamespaceService namespaceService)
    • Method Detail

      • getQNamePrefixString

        public java.lang.String getQNamePrefixString​(org.alfresco.service.namespace.QName k)
        Returns the QName in the format prefix:local, but in the exceptional case where there is no registered prefix returns it in the form {uri}local.
        Parameters:
        k - QName
        Returns:
        a String representing the QName in the format prefix:local or {uri}local.