private List < String > getProvides ( IFixInfo iFixInfo , ParserBase . ExtractedFileInformation xmlInfo ) throws RepositoryArchiveInvalidEntryException { // check for null input if ( null == iFixInfo ) { throw new RepositoryArchiveInvalidEntryException ( "Null document provided" , xmlInfo . getSourceArchive ( ) , xmlInfo . getSelectedPathFromArchive ( ) ) ; } Resolves resolves = iFixInfo . getResolves ( ) ; if ( null == resolves ) { throw new RepositoryArchiveInvalidEntryException ( "Document does not contain a \"resolves\" node" , xmlInfo . getSourceArchive ( ) , xmlInfo . getSelectedPathFromArchive ( ) ) ; } // Get child nodes and look for APAR ids List < String > retList = new ArrayList < String > ( ) ; List < Problem > problems = resolves . getProblems ( ) ; if ( problems != null ) { for ( Problem problem : problems ) { String displayId = problem . getDisplayId ( ) ; if ( null == displayId ) { throw new RepositoryArchiveInvalidEntryException ( "Unexpected null getting APAR id" , xmlInfo . getSourceArchive ( ) , xmlInfo . getSelectedPathFromArchive ( ) ) ; } retList . add ( displayId ) ; } } return retList ; }
Get a list of the APARs fixed by this iFix