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
EMPTY
Method 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.boolean
Checks 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, wait
Methods 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, getMessageLocalePlainKString
Methods 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:
true
if thereturnCode
isReferences.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:
getFormatterString
in interfaceILocaleStringFormatter
- Parameters:
localeString
- The locale string instance, ornull
to look it up from current thread or system.provider
- The information provider ornull
for none.localeInfo
- The Locale information, ornull
to 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:
getFormatterParams
in interfaceILocaleStringFormatter
- Parameters:
localeString
- The locale string instance, ornull
to look it up from current thread or system.provider
- The information provider ornull
for none.localeInfo
- The Locale information, ornull
to 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
null
in which case an empty array is used for the formatter.
getEnglishMessage
Fast English string with parameters.- Returns:
- The formatted string with its parameters.