Returns the rfs name for the given locale, only used for multi-language export.<p>

@param rfsName the original rfs name
@param fileSeparator the file separator to use

@return the rfs name for the given locale
978233
public String getLocalizedRfsName(String rfsName, String fileSeparator) {

        String locRfsName = null;

        // this might be too simple
        locRfsName = CmsStringUtil.substitute(
            rfsName,
            fileSeparator + CmsLocaleManager.getDefaultLocale().toString() + fileSeparator,
            fileSeparator + getName() + fileSeparator);
        return locRfsName;
    }
329666
public static String getFormat(String fileName) {
        int lastDot = fileName.lastIndexOf('.');
        if (lastDot == -1)
            return null;
        return getLanguage(fileName.substring(lastDot));
    }
978056
protected String normalizeRfsPrefix(String rfsPrefix) {

        String result = insertContextStrings(rfsPrefix);
        if (!isValidURL(result)) {
            result = CmsFileUtil.normalizePath(result, '/');
        }
        if (CmsResource.isFolder(result)) {
            // ensure prefix does NOT end with a folder '/'
            result = result.substring(0, result.length() - 1);
        }
        return result;
    }
1050203
public static String getClassNameRepresentation(String name) {
        if (name == null || name.length() == 0) {
            return "";
        }

        StringBuilder buf = new StringBuilder();
        String[] tokens = name.split("[^\\w\\d]");
        for (String token1 : tokens) {
            String token = token1.trim();
            int length = token.length();
            if (length > 0) {
                buf.append(token.substring(0, 1).toUpperCase(Locale.ENGLISH));
                if (length > 1) {
                    buf.append(token.substring(1));
                }
            }
        }

        return buf.toString();
    }
1276840
public static String getLocalizedBundleName(String bundleName, String localeKey) {

		String newName = bundleName;
		int idxSeparator = bundleName.lastIndexOf('.');
		if (StringUtils.isNotEmpty(localeKey) && idxSeparator != -1) {
			newName = bundleName.substring(0, idxSeparator);
			newName += '_' + localeKey;
			newName += bundleName.substring(idxSeparator);
		}

		return newName;
	}
1274943
protected static final String getBookmarkName(String name, Locale locale) {

        StringBuffer result = new StringBuffer(64);
        result.append('/');
        result.append(locale.toString());
        result.append('/');
        result.append(name);
        return result.toString();
    }
135576
private function getStdSeparatedName()
    {
        if ($this->schema && $this->getBuildProperty('schemaAutoPrefix')) {
            return $this->schema . NameGenerator::STD_SEPARATOR_CHAR . $this->nonPrefixedName;
        } else {
            return $this->nonPrefixedName;
        }
    }
1196241
public CmsResourceTranslator getFolderTranslator() {

        String[] array = new String[0];
        if (m_folderTranslationEnabled) {
            array = new String[m_folderTranslations.size()];
            for (int i = 0; i < m_folderTranslations.size(); i++) {
                array[i] = m_folderTranslations.get(i);
            }
        }
        return new CmsResourceTranslator(array, false);
    }
808051
public String getTranslatedFieldName(String name) {
        if (xfa.isXfaPresent()) {
            String namex = xfa.findFieldName(name, this);
            if (namex != null)
                name = namex;
        }
        return name;
    }
1201702
public String getTitle(Locale locale)
   {
      String result = null;

      if (m_title != null)
      {
         result = m_title;
      }
      else
      {
         if (m_fieldType != null)
         {
            result = m_project.getCustomFields().getCustomField(m_fieldType).getAlias();
            if (result == null)
            {
               result = m_fieldType.getName(locale);
            }
         }
      }

      return (result);
   }
865737
public String getName() {
        if (null == this.name && null != this.byteArray) {
            try {
                this.name = new String(this.byteArray, HeaderStorage.ENGLISH_CHARSET);
            } catch (UnsupportedEncodingException uee) {
                // no FFDC required
                // Invalid key name
                throw new IllegalArgumentException("Unsupported non-English name: " + new String(this.byteArray));
            }
        }
        return this.name;
    }
447144
public String getName() {
        int separatorIndex = path.lastIndexOf(separator);
        return (separatorIndex < 0) ? path : path.substring(separatorIndex + 1, path.length());
    }
1111136
public String getDisplayName(final String locale) {
        if (this.uiInfo != null) {
            val displayName = getLocalizedValues(locale, this.uiInfo.getDisplayNames());
            return displayName != null ? displayName : super.getDisplayName();
        }
        return super.getDisplayName();
    }
306575
protected String toFilename(final Resource resource) throws UnsupportedOperationException {
        if (resource instanceof FileResource) {
            return ((FileResource) resource).getFile().getPath();
        }
        if (resource instanceof HadoopResource) {
            return ((HadoopResource) resource).getTemplatedPath();
        }
        if (resource instanceof HdfsResource) {
            return resource.getQualifiedPath();
        }
        if (resource instanceof UrlResource) {
            return resource.getQualifiedPath();
        }
        throw new UnsupportedOperationException("Unsupported resource type: " + resource);
    }
988941
public static LocaleWrapper findLocaleFromString(final CollectionWrapper<LocaleWrapper> locales, final String localeString) {
        if (localeString == null) return null;

        for (final LocaleWrapper locale : locales.getItems()) {
            if (localeString.equals(locale.getValue())) {
                return locale;
            }
        }

        return null;
    }
1036959
public String getArchiveFilename(boolean bPhysicalName)
    {
        String strFileSeparator = System.getProperty("file.separator");
        char chFileSeparator = '/';
        if ((strFileSeparator != null) && (strFileSeparator.length() == 1))
            chFileSeparator = strFileSeparator.charAt(0);
        String strArchiveFolder = null;
        if (this.getTable().getDatabase() != null)
        {
        	if ((this.getDatabaseType() & DBConstants.USER_DATA) != 0)
    			strArchiveFolder = this.getTable().getDatabase().getProperty(DBConstants.USER_ARCHIVE_FOLDER);
        	else
    			strArchiveFolder = this.getTable().getDatabase().getProperty(DBConstants.SHARED_ARCHIVE_FOLDER);
    		if (strArchiveFolder == null)
    			strArchiveFolder = this.getTable().getDatabase().getProperty(DBConstants.ARCHIVE_FOLDER);
        }
        if ((strArchiveFolder == null) || (strArchiveFolder.length() == 0))
            if (this.getRecordOwner() != null)
        {
            if ((this.getDatabaseType() & DBConstants.USER_DATA) != 0)
                strArchiveFolder = this.getRecordOwner().getProperty(DBConstants.USER_ARCHIVE_FOLDER);
            else
                strArchiveFolder = this.getRecordOwner().getProperty(DBConstants.SHARED_ARCHIVE_FOLDER);
            if (strArchiveFolder == null)
                strArchiveFolder = this.getRecordOwner().getProperty(DBConstants.ARCHIVE_FOLDER);
        }
        if ((strArchiveFolder == null) || (strArchiveFolder.length() == 0))
            strArchiveFolder = DBConstants.DEFAULT_ARCHIVE_FOLDER;
        String tableDomain = this.getClass().getName();
        if ((tableDomain.indexOf('.') != -1)
        	&& (tableDomain.substring(tableDomain.indexOf('.') + 1).indexOf('.') != -1))
        		tableDomain = tableDomain.substring(0, tableDomain.indexOf('.') + tableDomain.substring(tableDomain.indexOf('.') + 1).indexOf('.') + 2);	// Include trailing .
    		else
    			tableDomain = DBConstants.BLANK;
        strArchiveFolder = Utility.replace(strArchiveFolder, "{domain}", tableDomain.replace('.', chFileSeparator));
        String strPackage = this.getClass().getName();
        if (strPackage.endsWith(DatabaseInfo.DATABASE_INFO_FILE))
            strPackage = DatabaseInfo.DATABASE_INFO_FILE;
        String strDBName = this.getTable().getDatabase().getDatabaseName(bPhysicalName);
        if (bPhysicalName == false)
        {
            if ((this.getDatabaseType() & DBConstants.TABLE_DATA_TYPE_MASK) == DBConstants.USER_DATA)
                strDBName = strDBName + BaseDatabase.USER_SUFFIX;
            else if ((this.getDatabaseType() & DBConstants.TABLE_DATA_TYPE_MASK) == DBConstants.SHARED_DATA)
                strDBName = strDBName + BaseDatabase.SHARED_SUFFIX;            
        }
        String strFilename = Utility.addToPath(Utility.addToPath(strArchiveFolder, strDBName), strPackage.replace('.', chFileSeparator) + ".xml");
        return strFilename;
    }
1057921
public String getName(final Locale locale) {
        return messageResolver.getMessage(locale, String.format("locale.%s.name", hexId));
    }