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 Object
implements ModuleDescriptorParser
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMetadataArtifact
(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) 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
-
Constructor Details
-
AbstractModuleDescriptorParser
public AbstractModuleDescriptorParser()
-
-
Method Details
-
parseDescriptor
public ModuleDescriptor parseDescriptor(ParserSettings ivySettings, URL descriptorURL, boolean validate) throws ParseException, IOException - Specified by:
parseDescriptor
in interfaceModuleDescriptorParser
- Throws:
ParseException
IOException
-
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
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
-