Package org.apache.ivy.plugins.parser
Class AbstractModuleDescriptorParser
- java.lang.Object
-
- org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser
-
- All Implemented Interfaces:
ModuleDescriptorParser
- Direct Known Subclasses:
ModuleDescriptorParserRegistry
,XmlModuleDescriptorParser
public abstract class AbstractModuleDescriptorParser extends java.lang.Object implements ModuleDescriptorParser
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractModuleDescriptorParser.AbstractParser
-
Constructor Summary
Constructors Constructor Description AbstractModuleDescriptorParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ivy.plugins.parser.ModuleDescriptorParser
accept, parseDescriptor, toIvyFile
-
-
-
-
Method Detail
-
parseDescriptor
public ModuleDescriptor parseDescriptor(ParserSettings ivySettings, java.net.URL descriptorURL, boolean validate) throws java.text.ParseException, java.io.IOException
- Specified by:
parseDescriptor
in interfaceModuleDescriptorParser
- Throws:
java.text.ParseException
java.io.IOException
-
getType
public java.lang.String getType()
Description copied from interface:ModuleDescriptorParser
Return the 'type' of module artifacts this parser is parsing- Specified by:
getType
in interfaceModuleDescriptorParser
- Returns:
- the 'type' of module artifacts this parser is parsing
-
getMetadataArtifact
public Artifact getMetadataArtifact(ModuleRevisionId mrid, Resource res)
Description copied from interface:ModuleDescriptorParser
Returns the module metadata artifact corresponding to the given module revision id that this parser parses- Specified by:
getMetadataArtifact
in interfaceModuleDescriptorParser
- Parameters:
mrid
- the module revision id for which the module artifact should be returnedres
- the resource for which the module artifact should be returned- Returns:
- the module artifact corresponding to the given mrid and resource
-
-