Package org.apache.ivy.plugins.parser
Interface ModuleDescriptorParser
- All Known Implementing Classes:
AbstractModuleDescriptorParser
,ModuleDescriptorParserRegistry
,OSGiManifestParser
,PomModuleDescriptorParser
,XmlModuleDescriptorParser
public interface ModuleDescriptorParser
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getMetadataArtifact
(ModuleRevisionId mrid, Resource res) Returns the module metadata artifact corresponding to the given module revision id that this parser parsesgetType()
Return the 'type' of module artifacts this parser is parsingparseDescriptor
(ParserSettings ivySettings, URL descriptorURL, boolean validate) parseDescriptor
(ParserSettings ivySettings, URL descriptorURL, Resource res, boolean validate) void
toIvyFile
(InputStream is, Resource res, File destFile, ModuleDescriptor md) Convert a module descriptor to an ivy file.
-
Method Details
-
parseDescriptor
ModuleDescriptor parseDescriptor(ParserSettings ivySettings, URL descriptorURL, boolean validate) throws ParseException, IOException - Throws:
ParseException
IOException
-
parseDescriptor
ModuleDescriptor parseDescriptor(ParserSettings ivySettings, URL descriptorURL, Resource res, boolean validate) throws ParseException, IOException - Throws:
ParseException
IOException
-
toIvyFile
void toIvyFile(InputStream is, Resource res, File destFile, ModuleDescriptor md) throws ParseException, 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 resourceres
- ResourcedestFile
- Filemd
- ModuleDescriptor- Throws:
ParseException
- if something goes wrongIOException
- if something goes wrong
-
accept
-
getType
String getType()Return the 'type' of module artifacts this parser is parsing- Returns:
- the 'type' of module artifacts this parser is parsing
-
getMetadataArtifact
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 returnedmrid
- the module revision id for which the module artifact should be returned- Returns:
- the module artifact corresponding to the given mrid and resource
-