org.apache.ivy.plugins.parser

Class ModuleDescriptorParserRegistry

public final class ModuleDescriptorParserRegistry extends AbstractModuleDescriptorParser

Method Summary
booleanaccept(Resource res)
voidaddParser(ModuleDescriptorParser parser)
Adds a the given parser to this registry.
static ModuleDescriptorParserRegistrygetInstance()
ModuleDescriptorParsergetParser(Resource res)
ModuleDescriptorParser[]getParsers()
ModuleDescriptorparseDescriptor(ParserSettings settings, URL descriptorURL, Resource res, boolean validate)
voidtoIvyFile(InputStream is, Resource res, File destFile, ModuleDescriptor md)

Method Detail

accept

public boolean accept(Resource res)

addParser

public void addParser(ModuleDescriptorParser parser)
Adds a the given parser to this registry.

Parameters: parser the parser to add

getInstance

public static ModuleDescriptorParserRegistry getInstance()

getParser

public ModuleDescriptorParser getParser(Resource res)

getParsers

public ModuleDescriptorParser[] getParsers()

parseDescriptor

public ModuleDescriptor parseDescriptor(ParserSettings settings, URL descriptorURL, Resource res, boolean validate)

toIvyFile

public void toIvyFile(InputStream is, Resource res, File destFile, ModuleDescriptor md)