Package org.alfresco.util
Class ISO9075
- java.lang.Object
-
- org.alfresco.util.ISO9075
-
@AlfrescoPublicApi public class ISO9075 extends Object
Support for the ISO 9075 encoding of XML element names.- Author:
- Andy Hind
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
decode(String toDecode)
static String
encode(String toEncode)
Encode a string according to ISO 9075static String
encodeSQL(String toEncode)
Encodes a SQL identifier Allowed at the start: 'a'..'z' | 'A'..'Z' | '_' Allowed after: 'a'..'z' | 'A'..'Z' | '0'..'9' | '_' | ':' | '$'| '#'static String
getXPathName(QName qName)
static String
getXPathName(QName qName, NamespacePrefixResolver nspr)
static Object
lowerCaseEncodedSQL(String toLowerCaseEncoded)
static QName
parseXPathName(String str)
-
-
-
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, NamespacePrefixResolver nspr)
-
-