@Override public Set<Location> unmarshal(LocationsType locationsType){
  Set<Location> locations=new LinkedHashSet<Location>();
  locations.addAll(locationsType.getRpsBlastLocations());
  locations.addAll(locationsType.getHmmer2Locations());
  locations.addAll(locationsType.getHmmer3Locations());
  locations.addAll(locationsType.getSuperFamilyHmmer3Locations());
  locations.addAll(locationsType.getFingerPrintsLocations());
  locations.addAll(locationsType.getBlastProDomLocations());
  locations.addAll(locationsType.getPatternScanLocations());
  locations.addAll(locationsType.getProfileScanLocations());
  locations.addAll(locationsType.getPhobiusLocations());
  locations.addAll(locationsType.getCoilsLocations());
  locations.addAll(locationsType.getPantherLocations());
  locations.addAll(locationsType.getSignalPLocations());
  locations.addAll(locationsType.getTMHMMLocations());
  return locations;
}

@ Override public Set < Location > unmarshal ( LocationsType locationsType ) { Set < Location > locations = new LinkedHashSet < Location > ( ) ; locations . addAll ( locationsType . getRpsBlastLocations ( ) ) ; locations . addAll ( locationsType . getHmmer2Locations ( ) ) ; locations . addAll ( locationsType . getHmmer3Locations ( ) ) ; locations . addAll ( locationsType . getSuperFamilyHmmer3Locations ( ) ) ; locations . addAll ( locationsType . getFingerPrintsLocations ( ) ) ; locations . addAll ( locationsType . getBlastProDomLocations ( ) ) ; locations . addAll ( locationsType . getPatternScanLocations ( ) ) ; locations . addAll ( locationsType . getProfileScanLocations ( ) ) ; locations . addAll ( locationsType . getPhobiusLocations ( ) ) ; locations . addAll ( locationsType . getCoilsLocations ( ) ) ; locations . addAll ( locationsType . getPantherLocations ( ) ) ; locations . addAll ( locationsType . getSignalPLocations ( ) ) ; locations . addAll ( locationsType . getTMHMMLocations ( ) ) ; return locations ; }
map xml type to java
