Get a localized short key value for the workplace.<p>

@param keyName name of the key
@return a localized short key value
18705
public String shortKey(String keyName) {

        String value = keyDefault(keyName + CmsMessages.KEY_SHORT_SUFFIX, (String)null);
        if (value == null) {
            // short key value not found, return "long" key value
            return key(keyName);
        }
        return value;
    }
1242652
@Override
    public String key(String keyName) {

        if (hasConfigValue(keyName)) {
            return getConfigValue(keyName);
        }
        return m_messages.key(keyName);
    }
371860
@NonNull
  public SelfT withKeyspace(@Nullable String keyspaceName) {
    return withKeyspace(keyspaceName == null ? null : CqlIdentifier.fromCql(keyspaceName));
  }
405220
public Short getShort(String name) {
        Object o = get(name);
        if (o instanceof Number) {
            return ((Number)o).shortValue();
        }

        if (o != null) {
            try {
                String string = o.toString();
                if (string != null) {
                    return Short.parseShort(string);
                }
            }
            catch (NumberFormatException e) {}
        }
        return null;
    }
1218611
@Pure
	public static String shortBasename(String filename) {
		if (filename == null) {
			return null;
		}
		if (isWindowsNativeFilename(filename)) {
			return shortBasename(normalizeWindowsNativeFilename(filename));
		}

		try {
			return shortBasename(new URL(filename));
		} catch (Exception exception) {
			// No log
		}
		final String normalizedFilename = fromFileStandardToURLStandard(filename);
		int idx;
		int end = normalizedFilename.length();
		do {
			end--;
			idx = normalizedFilename.lastIndexOf(URL_PATH_SEPARATOR_CHAR, end);
		}
		while (idx >= 0 && end >= 0 && idx >= end);
		final String basename;
		if (idx < 0) {
			if (end < normalizedFilename.length() - 1) {
				basename = normalizedFilename.substring(0, end + 1);
			} else {
				basename = normalizedFilename;
			}
		} else {
			basename = normalizedFilename.substring(idx + 1, end + 1);
		}
		idx = basename.indexOf(getFileExtensionCharacter());
		if (idx < 0) {
			return basename;
		}
		return basename.substring(0, idx);
	}
1102093
public short getShort(String key, short defaultValue) {
    if (containsKey(key)) {
      return Short.parseShort(get(key));
    } else {
      return defaultValue;
    }
  }
818786
private String getAndAddUniqueShortName(String name) {
        // Capitalize the first letter of the name.
        String initCappedName = name.substring(0, 1).toUpperCase() + name.substring(1, name.length());
        // Make the short name all the capital letters in the long name.
        Matcher matcher = capitals.matcher(initCappedName);
        StringBuilder sbShortName = new StringBuilder();
        while(matcher.find()) {
            sbShortName.append(matcher.group());
        }
        String shortName = sbShortName.toString().toLowerCase();

        if (!shortNames.add(shortName)) {
            int i;
            for (i=0; i<10; i++) {
                String tmpsn = shortName + i;
                if (shortNames.add(tmpsn)) {
                    shortName = tmpsn;
                    break;
                }
            }
            if (i == 10) {
                throw new RuntimeException("Multiple options have the same short name: -" + shortName  + " (--" + name + ")");
            }
        }
        return shortName;
    }
338056
public static String getExtension(String resourceName) {

        String result = null;
        if (!resourceName.endsWith("/")) {
            // folders don't have any extension
            resourceName = CmsResource.getName(resourceName);
            int index = resourceName.lastIndexOf(".") + 1;
            if ((index > 0) && (index < resourceName.length())) {
                result = resourceName.substring(index).toLowerCase();
            }
        }

        return result;
    }
251034
protected String getRootPropertyName(String propertyName) {
		int location = propertyName.indexOf(PROPERTY_KEY_PREFIX);
		return location == -1 ? propertyName : propertyName.substring(0, location);
	}
505361
public T getValueByString(String key) {
        for (T value : values) {
            if (keyFactory.generateKey(value).equals(key)) {
                return value;
            }
        }
        return null;
    }
527082
public String getPropertyValue(String propertyName) {

        if (m_ownProperties.containsKey(propertyName)) {
            return m_ownProperties.get(propertyName).getEffectiveValue();
        }
        return null;
    }
1253603
protected short getShortValue() {
		if (label.equals(AbcTokens.DIGIT)
				|| label.equals(AbcTokens.DIGITS)) {
			try {
				return Short.parseShort(value);
			} catch (NumberFormatException nfe) {
				return -1;
			}
		} else
			return -1;
	}
1272910
public String getValue(String key) {
        KeyValue kv = getKV(key);
        return kv == null ? null : kv.getValue();
    }
679193
public short getShort(String key) {
		addToDefaults(key, null);
		String value = getRequired(key);
		return Short.valueOf(value);
	}
905657
private Locale getWorkplaceLocale() {

        Locale result = OpenCms.getWorkplaceManager().getWorkplaceLocale(getCmsObject());
        if (result == null) {
            result = CmsLocaleManager.getDefaultLocale();
        }
        if (result == null) {
            result = Locale.getDefault();
        }
        return result;
    }
91143
public String keyValueList() {
		String separator = "";
		StringBuilder buffer = new StringBuilder();

		for (int i = 0; i < names.size(); i++) {
			buffer.append(separator + "?");
			separator = ", ";
		}

		return buffer.toString();
	}
174873
public short getShort(String key) {
    if (containsKey(key)) {
      return Short.parseShort(get(key));
    } else {
      throw new IllegalArgumentException("Missing key " + key + ".");
    }
  }