public class BidiUtils extends java.lang.Object implements FixedLoggers
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHAINED_SEQUENCE_COLON |
static java.lang.String |
CHAINED_SEQUENCE_COMMA |
static java.lang.String |
CHAINED_SEQUENCE_DASH |
static java.lang.String |
CHAINED_SEQUENCE_SLASH |
static java.lang.String |
CONTEXTUAL_DIRECTION |
static java.lang.String |
DNS |
static java.lang.String |
EMAIL |
static java.lang.String |
JAVAPATH |
static java.lang.String |
JNDI |
static java.lang.String |
LRE |
static java.lang.String |
LRM |
static java.lang.String |
LTR_DIRECTION |
static java.lang.String |
NONE |
static java.lang.String |
PATH |
static java.lang.String |
PDF |
static java.lang.String |
RLE |
static java.lang.String |
RLM |
static java.lang.String |
RTL_DIRECTION |
static java.lang.String |
SQL |
static java.lang.String |
URL |
static java.lang.String |
XML |
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
BidiUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
analyzeBidiTextDirection(java.lang.String str,
java.lang.String bidiDirection) |
static java.lang.String |
appendBidiString(java.lang.String src,
java.lang.String txt) |
static java.lang.String |
applyBidiAttributes(MboSetInfo msi,
java.lang.String attribute,
java.lang.String value,
MXSession s) |
static java.lang.String |
applyBidiAttributes(MboSetInfo msi,
java.lang.String attribute,
java.lang.String value,
java.lang.String langCode) |
static java.lang.String |
applyBidiAttributes(java.lang.String mboName,
java.lang.String attribute,
java.lang.String value,
MXSession s) |
static java.lang.String |
applyBidiAttributes(java.lang.String mboName,
java.lang.String attribute,
java.lang.String value,
java.lang.String langCode) |
static java.lang.String |
buildAndPush(MboSetInfo msi,
java.lang.String attribute,
java.lang.String value,
MXSession s) |
static java.lang.String |
buildAndPush(MboSetInfo msi,
java.lang.String attribute,
java.lang.String value,
java.lang.String langCode) |
static java.lang.String |
buildAndPush(java.lang.String value,
java.lang.String langCode) |
static java.lang.String |
buildAndPush(java.lang.String mboName,
java.lang.String attribute,
java.lang.String value,
MXSession s) |
static java.lang.String |
buildAndPush(java.lang.String mboName,
java.lang.String attribute,
java.lang.String value,
java.lang.String langCode) |
static java.lang.String |
buildTagAttribute(java.lang.String value,
java.lang.String attrTextdirection,
java.lang.String attrComplexexpression,
boolean includeHandlers) |
static java.lang.String |
buildTagAttribute(java.lang.String value,
java.lang.String attrTextdirection,
java.lang.String attrComplexexpression,
boolean includeHandlers,
java.lang.String langCode) |
static java.lang.String |
checkLastSegment(java.lang.String str) |
static java.lang.String |
concat(boolean mirrored,
java.lang.String... parts)
Convenience method for concatenating BIDI Strings.
|
static java.lang.String |
enforceBidiDirection(java.lang.String str,
java.lang.String bidiDirection) |
static java.lang.String |
fixTextDirection(java.util.Locale locale,
java.lang.String text,
java.lang.String direction) |
static java.lang.String |
getDelimeterPrefix(MXSession s) |
static java.lang.String |
getDelimeterPrefix(java.lang.String langCode) |
static java.lang.String |
getFinalMarkers(java.lang.String langCode) |
static java.lang.String |
getInstanceTextDirection() |
static java.lang.String |
getLayoutOrientation(java.lang.String langcode) |
static java.lang.String |
getMboComplexExpressionType(MboSetInfo msi,
java.lang.String attrName) |
static java.lang.String |
getMboComplexExpressionType(java.lang.String mboName,
java.lang.String attrName) |
static java.lang.String |
getMboTextDirection(MboSetInfo msi,
java.lang.String attrName,
boolean countInstanceDirection) |
static java.lang.String |
getMboTextDirection(java.lang.String mboName,
java.lang.String attrName,
boolean countInstanceDirection) |
static java.lang.String |
getStartingMarkers(java.lang.String langCode) |
static java.lang.String |
getTestLanguage() |
static java.lang.String |
getTextDirection(java.util.Locale locale,
java.lang.String text) |
static boolean |
hasDifferDirection(java.lang.String txt,
java.lang.String langCode) |
static boolean |
isArabicLanguage(java.lang.String langCode) |
static boolean |
isBidiAttributeSet(java.lang.String attr) |
static boolean |
isBidiEnabled() |
static boolean |
isBiDiString(java.lang.String str) |
static boolean |
isChain(java.lang.String prop) |
static boolean |
isCharBeforeBiDiChar(char[] buffer,
int i,
int previous) |
static boolean |
isGUIMirrored(MXSession s) |
static boolean |
isGUIMirrored(java.lang.String langCode) |
static boolean |
isGUIMirrored(UserInfo userInfo) |
static boolean |
isHebrewLanguage(java.lang.String langCode) |
static boolean |
isLTRExpression(java.lang.String prop) |
static boolean |
isTestAppMirrored() |
static java.lang.String |
join(boolean mirrored,
java.lang.String sepString,
java.lang.String... parts)
Joins multiple strings, applying a separactor string between them, if non null.
|
static java.lang.String |
keepBidiDirection(java.lang.String str,
java.lang.String wrapper) |
static java.lang.String |
logValue(java.lang.String str) |
static java.lang.String |
processChainedSequencePattern(java.lang.String buffer,
java.lang.String textDirection,
java.lang.String complexExpressionType,
java.lang.String langCode) |
static java.lang.String |
processComplexexpression(java.lang.String buffer,
java.lang.String complexExpressionType) |
static java.lang.String |
processComplexexpression(java.lang.String buffer,
java.lang.String complexExpressionType,
MXSession s) |
static java.lang.String |
processComplexexpression(java.lang.String buffer,
java.lang.String textDirection,
java.lang.String complexExpressionType,
MXSession s) |
static java.lang.String |
processComplexexpression(java.lang.String buffer,
java.lang.String textDirection,
java.lang.String complexExpressionType,
MXSession s,
boolean forInput) |
static java.lang.String |
processComplexexpression(java.lang.String buffer,
java.lang.String textDirection,
java.lang.String complexExpressionType,
java.lang.String langCode) |
static java.lang.String |
processComplexexpression(java.lang.String buffer,
java.lang.String textDirection,
java.lang.String complexExpressionType,
java.lang.String langCode,
boolean forInput) |
static java.lang.String |
pushBidiString(java.lang.String str,
MXSession s) |
static java.lang.String |
pushBidiString(java.lang.String str,
java.lang.String langCode) |
static java.lang.String |
pushBidiStringToDir(java.lang.String str,
java.lang.String direction) |
static java.lang.String |
removeMarkers(java.lang.String str) |
public static final java.lang.String LTR_DIRECTION
public static final java.lang.String RTL_DIRECTION
public static final java.lang.String CONTEXTUAL_DIRECTION
public static final java.lang.String NONE
public static final java.lang.String LRE
public static final java.lang.String RLE
public static final java.lang.String PDF
public static final java.lang.String LRM
public static final java.lang.String RLM
public static final java.lang.String PATH
public static final java.lang.String EMAIL
public static final java.lang.String URL
public static final java.lang.String JAVAPATH
public static final java.lang.String SQL
public static final java.lang.String XML
public static final java.lang.String DNS
public static final java.lang.String JNDI
public static final java.lang.String CHAINED_SEQUENCE_COLON
public static final java.lang.String CHAINED_SEQUENCE_SLASH
public static final java.lang.String CHAINED_SEQUENCE_COMMA
public static final java.lang.String CHAINED_SEQUENCE_DASH
public static boolean isBidiEnabled()
public static boolean isTestAppMirrored()
public static java.lang.String getTestLanguage()
public static java.lang.String getInstanceTextDirection()
public static java.lang.String buildTagAttribute(java.lang.String value, java.lang.String attrTextdirection, java.lang.String attrComplexexpression, boolean includeHandlers)
public static java.lang.String buildTagAttribute(java.lang.String value, java.lang.String attrTextdirection, java.lang.String attrComplexexpression, boolean includeHandlers, java.lang.String langCode)
public static java.lang.String getMboTextDirection(MboSetInfo msi, java.lang.String attrName, boolean countInstanceDirection)
public static java.lang.String getMboTextDirection(java.lang.String mboName, java.lang.String attrName, boolean countInstanceDirection)
public static java.lang.String getMboComplexExpressionType(java.lang.String mboName, java.lang.String attrName)
public static java.lang.String getMboComplexExpressionType(MboSetInfo msi, java.lang.String attrName)
public static boolean isBidiAttributeSet(java.lang.String attr)
public static boolean isBiDiString(java.lang.String str)
public static java.lang.String analyzeBidiTextDirection(java.lang.String str, java.lang.String bidiDirection)
public static java.lang.String enforceBidiDirection(java.lang.String str, java.lang.String bidiDirection)
public static java.lang.String checkLastSegment(java.lang.String str)
public static java.lang.String processComplexexpression(java.lang.String buffer, java.lang.String textDirection, java.lang.String complexExpressionType, MXSession s)
public static java.lang.String processComplexexpression(java.lang.String buffer, java.lang.String textDirection, java.lang.String complexExpressionType, MXSession s, boolean forInput)
public static java.lang.String processComplexexpression(java.lang.String buffer, java.lang.String textDirection, java.lang.String complexExpressionType, java.lang.String langCode)
public static java.lang.String processComplexexpression(java.lang.String buffer, java.lang.String textDirection, java.lang.String complexExpressionType, java.lang.String langCode, boolean forInput)
public static java.lang.String processComplexexpression(java.lang.String buffer, java.lang.String complexExpressionType)
public static java.lang.String processComplexexpression(java.lang.String buffer, java.lang.String complexExpressionType, MXSession s)
public static java.lang.String processChainedSequencePattern(java.lang.String buffer, java.lang.String textDirection, java.lang.String complexExpressionType, java.lang.String langCode)
public static java.lang.String removeMarkers(java.lang.String str)
public static boolean isCharBeforeBiDiChar(char[] buffer, int i, int previous)
public static boolean isGUIMirrored(UserInfo userInfo)
public static boolean isGUIMirrored(MXSession s)
public static boolean isGUIMirrored(java.lang.String langCode)
public static boolean isArabicLanguage(java.lang.String langCode)
public static boolean isHebrewLanguage(java.lang.String langCode)
public static java.lang.String getLayoutOrientation(java.lang.String langcode)
public static java.lang.String getDelimeterPrefix(MXSession s)
public static java.lang.String getDelimeterPrefix(java.lang.String langCode)
public static java.lang.String getStartingMarkers(java.lang.String langCode)
public static java.lang.String getFinalMarkers(java.lang.String langCode)
public static java.lang.String keepBidiDirection(java.lang.String str, java.lang.String wrapper)
public static java.lang.String applyBidiAttributes(java.lang.String mboName, java.lang.String attribute, java.lang.String value, MXSession s)
public static java.lang.String applyBidiAttributes(MboSetInfo msi, java.lang.String attribute, java.lang.String value, MXSession s)
public static java.lang.String applyBidiAttributes(java.lang.String mboName, java.lang.String attribute, java.lang.String value, java.lang.String langCode)
public static java.lang.String applyBidiAttributes(MboSetInfo msi, java.lang.String attribute, java.lang.String value, java.lang.String langCode)
public static boolean hasDifferDirection(java.lang.String txt, java.lang.String langCode)
public static java.lang.String appendBidiString(java.lang.String src, java.lang.String txt)
public static java.lang.String pushBidiStringToDir(java.lang.String str, java.lang.String direction)
public static java.lang.String pushBidiString(java.lang.String str, java.lang.String langCode)
public static java.lang.String pushBidiString(java.lang.String str, MXSession s)
public static java.lang.String buildAndPush(java.lang.String mboName, java.lang.String attribute, java.lang.String value, MXSession s)
public static java.lang.String buildAndPush(MboSetInfo msi, java.lang.String attribute, java.lang.String value, MXSession s)
public static java.lang.String buildAndPush(java.lang.String mboName, java.lang.String attribute, java.lang.String value, java.lang.String langCode)
public static java.lang.String buildAndPush(MboSetInfo msi, java.lang.String attribute, java.lang.String value, java.lang.String langCode)
public static java.lang.String buildAndPush(java.lang.String value, java.lang.String langCode)
public static boolean isChain(java.lang.String prop)
public static boolean isLTRExpression(java.lang.String prop)
public static java.lang.String logValue(java.lang.String str)
public static java.lang.String fixTextDirection(java.util.Locale locale, java.lang.String text, java.lang.String direction)
public static java.lang.String getTextDirection(java.util.Locale locale, java.lang.String text)
public static java.lang.String join(boolean mirrored, java.lang.String sepString, java.lang.String... parts)
C-B-Awhile the unicode string would look like{8235}{65}{8207}{45}{8207}{66}{8207}{45}{8207}{67}{8236}
if a null separator is passed in, then no separator will be used.
For example, if called as join(true, null, "A',"B","C") then the output would look likeCBAwhile the unicode string would look like{8235}{65}{8207}{66}{8207}{67}{8236}
If bidi is not enabled the normal string concatenation rules applies the resulting string will contain NO unicode control characters.
For example, if called as join(false, "-", "A',"B","C") then the output would look likeA-B-Cwhile the unicode string would look like{65}{66}{67}
Migrated from Scheduler Applet SKDBidiUtils
mirrored
- true if you want the string to contain RLE bidi control codessepString
- if non null, then each part will be joined using this separatorparts
- variable arg array of objects (usualy strings) that will be joinedpublic static java.lang.String concat(boolean mirrored, java.lang.String... parts)
parts
-