Interface ModuleDescriptorParser

    • Method Detail

      • parseDescriptor

        ModuleDescriptor parseDescriptor​(ParserSettings ivySettings,
                                         java.net.URL descriptorURL,
                                         boolean validate)
                                  throws java.text.ParseException,
                                         java.io.IOException
        Throws:
        java.text.ParseException
        java.io.IOException
      • parseDescriptor

        ModuleDescriptor parseDescriptor​(ParserSettings ivySettings,
                                         java.net.URL descriptorURL,
                                         Resource res,
                                         boolean validate)
                                  throws java.text.ParseException,
                                         java.io.IOException
        Throws:
        java.text.ParseException
        java.io.IOException
      • toIvyFile

        void toIvyFile​(java.io.InputStream is,
                       Resource res,
                       java.io.File destFile,
                       ModuleDescriptor md)
                throws java.text.ParseException,
                       java.io.IOException
        Convert a module descriptor to an ivy file. This method MUST close the given input stream when job is finished
        Parameters:
        is - input stream with opened on original module descriptor resource
        res - Resource
        destFile - File
        md - ModuleDescriptor
        Throws:
        java.text.ParseException - if something goes wrong
        java.io.IOException - if something goes wrong
      • accept

        boolean accept​(Resource res)
      • getType

        java.lang.String getType()
        Return the 'type' of module artifacts this parser is parsing
        Returns:
        the 'type' of module artifacts this parser is parsing
      • getMetadataArtifact

        Artifact getMetadataArtifact​(ModuleRevisionId mrid,
                                     Resource res)
        Returns the module metadata artifact corresponding to the given module revision id that this parser parses
        Parameters:
        res - the resource for which the module artifact should be returned
        mrid - the module revision id for which the module artifact should be returned
        Returns:
        the module artifact corresponding to the given mrid and resource