- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Charset c =
String charsetName;Charset.forName(charsetName)
Charset.defaultCharset()
ContentType contentType;contentType.getCharset()
- Smart code suggestions by Codota
}
public static void setDescription(RegistryObjectType ro, String value) { LocalizedStringType lst = rimFactory.createLocalizedStringType(); lst.setValue(value); InternationalStringType is = rimFactory.createInternationalStringType(); is.getLocalizedString().add(lst); ro.setDescription(is); } public static void setName(RegistryObjectType ro, String value) {
private void copyDescriptionType(Set<Description> descriptions, RegistryObjectType roType) { InternationalStringType is = factory.createInternationalStringType(); List<LocalizedStringType> values = is.getLocalizedString(); LocalizedStringType value; for (Description n : descriptions) { value = factory.createLocalizedStringType(); value.setCharset(n.getCharset()); value.setLang(n.getLang()); value.setValue(n.getValue()); values.add(value); } roType.setDescription(is); }