@Override public Set<Match> unmarshal(MatchesType matchTypes){
  Set<Match> matches=new HashSet<Match>();
  matches.addAll(matchTypes.getRpsBlastMatches());
  matches.addAll(matchTypes.getHmmer2Matches());
  matches.addAll(matchTypes.getHmmer3Matches());
  matches.addAll(matchTypes.getSuperFamilyHmmer3Matches());
  matches.addAll(matchTypes.getFingerPrintsMatches());
  matches.addAll(matchTypes.getProDomMatches());
  matches.addAll(matchTypes.getPatternScanMatches());
  matches.addAll(matchTypes.getProfileScanMatches());
  matches.addAll(matchTypes.getPhobiusMatches());
  matches.addAll(matchTypes.getCoilsMatches());
  matches.addAll(matchTypes.getPantherMatches());
  matches.addAll(matchTypes.getSignalPMatches());
  matches.addAll(matchTypes.getTmhmmMatches());
  return matches;
}

@ Override public Set < Match > unmarshal ( MatchesType matchTypes ) { Set < Match > matches = new HashSet < Match > ( ) ; matches . addAll ( matchTypes . getRpsBlastMatches ( ) ) ; matches . addAll ( matchTypes . getHmmer2Matches ( ) ) ; matches . addAll ( matchTypes . getHmmer3Matches ( ) ) ; matches . addAll ( matchTypes . getSuperFamilyHmmer3Matches ( ) ) ; matches . addAll ( matchTypes . getFingerPrintsMatches ( ) ) ; matches . addAll ( matchTypes . getProDomMatches ( ) ) ; matches . addAll ( matchTypes . getPatternScanMatches ( ) ) ; matches . addAll ( matchTypes . getProfileScanMatches ( ) ) ; matches . addAll ( matchTypes . getPhobiusMatches ( ) ) ; matches . addAll ( matchTypes . getCoilsMatches ( ) ) ; matches . addAll ( matchTypes . getPantherMatches ( ) ) ; matches . addAll ( matchTypes . getSignalPMatches ( ) ) ; matches . addAll ( matchTypes . getTmhmmMatches ( ) ) ; return matches ; }
map xml type to java
