@UsedOnlyByJPA @Nonnull @Deprecated public EChange setLastName (@Nullable final String sLastName) { return setLastName (sLastName, SystemHelper.getSystemLocale ()); }
@UsedOnlyByJPA @Nonnull @Deprecated public EChange setFirstName (@Nullable final String sFirstName) { return setFirstName (sFirstName, SystemHelper.getSystemLocale ()); }
@UsedOnlyByJPA @Nonnull @Deprecated public EChange setMiddleName (@Nullable final String sMiddleName) { return setMiddleName (sMiddleName, SystemHelper.getSystemLocale ()); }
@Nonnull @Deprecated @UsedOnlyByJPA public EChange setCountry (@Nullable final String sCountry) { return setCountry (sCountry, SystemHelper.getSystemLocale ()); }
@Nonnull @Deprecated @UsedOnlyByJPA public EChange setState (@Nullable final String sState) { return setState (sState, SystemHelper.getSystemLocale ()); }
@Nonnull @Deprecated @UsedOnlyByJPA public EChange setCity (@Nullable final String sCity) { return setCity (sCity, SystemHelper.getSystemLocale ()); }
@Nonnull @UsedOnlyByJPA @Deprecated public EChange setStreet (@Nullable final String sStreet) { return setStreet (sStreet, SystemHelper.getSystemLocale ()); }
@Nonnull @Deprecated @UsedOnlyByJPA public EChange setPostOfficeBox (@Nullable final String sPostOfficeBox) { return setPostOfficeBox (sPostOfficeBox, SystemHelper.getSystemLocale ()); }
/** * Create a collator that is based on the standard collator but sorts spaces * before dots, because spaces are more important word separators than dots. * Another example is the correct sorting of things like "1.1 a" vs. * "1.1.1 b". This is the default collator used for sorting by default! * * @param aLocale * The locale for which the collator is to be retrieved. May be * <code>null</code> to indicate the usage of the default locale. * @return The created {@link RuleBasedCollator} and never <code>null</code>. */ @Nonnull public static Collator getCollatorSpaceBeforeDot (@Nullable final Locale aLocale) { // Ensure to not pass null locale in final Locale aRealLocale = aLocale == null ? SystemHelper.getSystemLocale () : aLocale; // Always create a clone! return (Collator) s_aCache.getFromCache (aRealLocale).clone (); }
return SystemHelper.getSystemLocale ();
return Collator.getInstance (SystemHelper.getSystemLocale ()); return Collator.getInstance (SystemHelper.getSystemLocale ());
final String sUCFilename = sFilename.toUpperCase (SystemHelper.getSystemLocale ()); for (final String sIllegalPrefix : ILLEGAL_PREFIXES) if (sUCFilename.startsWith (sIllegalPrefix + "."))
final String sUCFilename = ret.toUpperCase (SystemHelper.getSystemLocale ()); for (final String sIllegalPrefix : ILLEGAL_PREFIXES) if (sUCFilename.startsWith (sIllegalPrefix + "."))
@Nonnull public Address convertToNative (@Nonnull final IMicroElement eAddress) { final Locale aLocale = SystemHelper.getSystemLocale (); final EAddressType eType = EAddressType.getFromIDOrNull (eAddress.getAttribute (ATTR_TYPE)); final String sCountry = eAddress.getAttribute (ATTR_COUNTRY); final String sState = eAddress.getAttribute (ATTR_STATE); final String sPostalCode = eAddress.getAttribute (ATTR_POSTALCODE); final String sCity = eAddress.getAttribute (ATTR_CITY); final String sStreet = eAddress.getAttribute (ATTR_STREET); final String sBuildingNumber = eAddress.getAttribute (ATTR_BUILDINGNUMBER); final String sPostOfficeBox = eAddress.getAttribute (ATTR_POBOX); return new Address (eType, sCountry, sState, sPostalCode, sCity, sStreet, sBuildingNumber, sPostOfficeBox, aLocale); } }
@Nonnull public ReadonlyAddress convertToNative (@Nonnull final IMicroElement eAddress) { final Locale aLocale = SystemHelper.getSystemLocale (); final EAddressType eType = EAddressType.getFromIDOrNull (eAddress.getAttribute (ATTR_TYPE)); final String sCountry = eAddress.getAttribute (ATTR_COUNTRY); final String sState = eAddress.getAttribute (ATTR_STATE); final String sPostalCode = eAddress.getAttribute (ATTR_POSTALCODE); final String sCity = eAddress.getAttribute (ATTR_CITY); final String sStreet = eAddress.getAttribute (ATTR_STREET); final String sBuildingNumber = eAddress.getAttribute (ATTR_BUILDINGNUMBER); final String sPostOfficeBox = eAddress.getAttribute (ATTR_POBOX); return new ReadonlyAddress (eType, sCountry, sState, sPostalCode, sCity, sStreet, sBuildingNumber, sPostOfficeBox, aLocale); } }
@Nonnull public PersonName convertToNative (@Nonnull final IMicroElement eAddress) { final Locale aLocale = SystemHelper.getSystemLocale (); final PersonName aName = new PersonName (); aName.setSalutation (ESalutation.getFromIDOrNull (eAddress.getAttribute (ATTR_SALUTATION))); aName.setPrefixTitle (eAddress.getAttribute (ATTR_PREFIXTITLE)); aName.setFirstName (eAddress.getAttribute (ATTR_FIRSTNAME), aLocale); aName.setMiddleName (eAddress.getAttribute (ATTR_MIDDLENAME), aLocale); aName.setLastName (eAddress.getAttribute (ATTR_LASTNAME), aLocale); aName.setSuffixTitle (eAddress.getAttribute (ATTR_SUFFIXTITLE)); return aName; } }
SystemHelper.getSystemCharset ().toString ()); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_LOCALE.getDisplayText (aDisplayLocale), SystemHelper.getSystemLocale ().toString ()); aTable.addBodyRow ().addCells (EText.MSG_SYSTEM_MEM_FREE.getDisplayText (aDisplayLocale), Long.toString (SystemHelper.getFreeMemory ()) +