Class ISO9075


  • @AlfrescoPublicApi
    public class ISO9075
    extends Object
    Support for the ISO 9075 encoding of XML element names.
    Author:
    Andy Hind
    • Method Detail

      • encodeSQL

        public static String encodeSQL​(String toEncode)
        Encodes a SQL identifier Allowed at the start: 'a'..'z' | 'A'..'Z' | '_' Allowed after: 'a'..'z' | 'A'..'Z' | '0'..'9' | '_' | ':' | '$'| '#'
        Parameters:
        toEncode - String
        Returns:
        String
      • encode

        public static String encode​(String toEncode)
        Encode a string according to ISO 9075
        Parameters:
        toEncode - String
        Returns:
        String
      • getXPathName

        public static String getXPathName​(QName qName)
      • parseXPathName

        public static QName parseXPathName​(String str)
      • lowerCaseEncodedSQL

        public static Object lowerCaseEncodedSQL​(String toLowerCaseEncoded)
        Parameters:
        toLowerCaseEncoded - String
        Returns:
        Object