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