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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
parseDescriptorin interfaceModuleDescriptorParser- Throws:
ParseExceptionIOException
-
getType
Description copied from interface:ModuleDescriptorParserReturn the 'type' of module artifacts this parser is parsing- Specified by:
getTypein interfaceModuleDescriptorParser- Returns:
- the 'type' of module artifacts this parser is parsing
-
getMetadataArtifact
Description copied from interface:ModuleDescriptorParserReturns the module metadata artifact corresponding to the given module revision id that this parser parses- Specified by:
getMetadataArtifactin 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
-