return new ServiceIdentification( name, titles, abstracts, keywords, null, null, null, fees, accessConstraints );
return new ServiceIdentification( description.getName(), description.getTitles(), description.getAbstracts(), null, serviceType, serviceTypeVersions, profiles, fees, constraints );
: new ArrayList<String>(); return new ServiceIdentification( name, titles, abstracts, keywords, serviceType, serviceTypeVersions, new ArrayList<String>(), fees, constraints );
/** * @param si * @return null, if si is null */ public static ServiceIdentification convertFromJAXB( ServiceIdentificationType si ) { if ( si == null ) { return null; } List<Pair<List<LanguageString>, CodeType>> keywords = null; if ( si.getKeywords() != null ) { keywords = map( si.getKeywords(), KW_MAPPER ); } List<LanguageString> titles = map( si.getTitle(), LANG_MAPPER ); List<LanguageString> abstracts = map( si.getAbstract(), LANG_MAPPER ); String fees = si.getFees(); List<String> accessConstraints = si.getAccessConstraints(); return new ServiceIdentification( null, titles, abstracts, keywords, null, null, null, fees, accessConstraints ); }