List of usage examples for javax.xml.registry.infomodel InternationalString getLocalizedStrings
Collection getLocalizedStrings() throws JAXRException;
From source file:org.apache.ws.scout.util.ScoutJaxrUddiHelper.java
private static void addDescriptions(List<Description> descripions, InternationalString idesc) throws JAXRException { if (idesc != null) { for (Object o : idesc.getLocalizedStrings()) { LocalizedString locName = (LocalizedString) o; Description desc = objectFactory.createDescription(); descripions.add(desc);/*from w ww .ja v a 2 s.c om*/ desc.setValue(locName.getValue()); desc.setLang(locName.getLocale().getLanguage()); } } }
From source file:org.apache.ws.scout.util.ScoutJaxrUddiHelper.java
private static Name getFirstName(InternationalString iname) throws JAXRException { for (Object o : iname.getLocalizedStrings()) { LocalizedString locName = (LocalizedString) o; Name name = objectFactory.createName(); name.setValue(locName.getValue()); name.setLang(locName.getLocale().getLanguage()); return name; }// w ww . jav a 2 s.co m return null; }
From source file:org.apache.ws.scout.util.ScoutJaxrUddiHelper.java
private static void addNames(List<Name> names, InternationalString iname) throws JAXRException { for (Object o : iname.getLocalizedStrings()) { LocalizedString locName = (LocalizedString) o; Name name = objectFactory.createName(); name.setValue(locName.getValue()); name.setLang(locName.getLocale().getLanguage()); names.add(name);/*from w w w .j av a 2 s .co m*/ } }