Package com.iizix.prop
Class References.Result
java.lang.Object
com.iizix.prop.References.Result
- All Implemented Interfaces:
ILocaleKStringFormatter,ILocaleStringFormatter
- Enclosing class:
References
Class containing result found during reference collection.
- Author:
- Christopher Mindus
Field Summary
Fields inherited from interface com.iizix.text.ILocaleStringFormatter
EMPTYMethod Summary
Modifier and TypeMethodDescriptionFast English string with parameters.Object[]getFormatterParams(ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets the parameters used to format the String.getFormatterString(ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets the String used to format the locale string.IGProp<?> Gets the reference source property.IGProp<?> Gets the reference target property.Gets the return code.booleanChecks if the result of the operation was a success.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.iizix.text.ILocaleKStringFormatter
getFormatterKString, getMessageLocaleKString, getMessageLocaleKString, getMessageLocaleKString, getMessageLocaleKString, getMessageLocaleKString, getMessageLocaleKString, getMessageLocaleKString, getMessageLocaleKString, getMessageLocaleKString, getMessageLocalePlainKString, getMessageLocalePlainKString, getMessageLocalePlainKString, getMessageLocalePlainKString, getMessageLocalePlainKString, getMessageLocalePlainKString, getMessageLocalePlainKString, getMessageLocalePlainKString, getMessageLocalePlainKStringMethods inherited from interface com.iizix.text.ILocaleStringFormatter
getMessageLocaleString, getMessageLocaleString, getMessageLocaleString, getMessageLocaleString, getMessageLocaleString, getMessageLocaleString
Method Details
isSuccess
public boolean isSuccess()Checks if the result of the operation was a success.- Returns:
trueif thereturnCodeisReferences.ReturnCode.SUCCESS.
getReturnCode
Gets the return code.- Returns:
- The return code.
getReferenceSource
Gets the reference source property.- Returns:
- The source of the reference.
getReferenceTarget
Gets the reference target property.- Returns:
- The target reference.
getFormatterString
public String getFormatterString(ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets the String used to format the locale string.- Specified by:
getFormatterStringin interfaceILocaleStringFormatter- Parameters:
localeString- The locale string instance, ornullto look it up from current thread or system.provider- The information provider ornullfor none.localeInfo- The Locale information, ornullto look it up from the current thread if needed.- Returns:
- The locale string to format with potential parameters.
getFormatterParams
public Object[] getFormatterParams(ILocaleString localeString, IKStringInfoProvider provider, LocaleInfo localeInfo) Gets the parameters used to format the String.- Specified by:
getFormatterParamsin interfaceILocaleStringFormatter- Parameters:
localeString- The locale string instance, ornullto look it up from current thread or system.provider- The information provider ornullfor none.localeInfo- The Locale information, ornullto look it up from the current thread if needed.- Returns:
- An array of parameters used to format the String. The return value can be set to
nullin which case an empty array is used for the formatter.
getEnglishMessage
Fast English string with parameters.- Returns:
- The formatted string with its parameters.