fr.jayasoft.ivy.parser
Class ModuleDescriptorParserRegistry
java.lang.Object
fr.jayasoft.ivy.parser.AbstractModuleDescriptorParser
fr.jayasoft.ivy.parser.ModuleDescriptorParserRegistry
- All Implemented Interfaces:
- ModuleDescriptorParser
- public class ModuleDescriptorParserRegistry
- extends AbstractModuleDescriptorParser
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static ModuleDescriptorParserRegistry getInstance()
addParser
public void addParser(ModuleDescriptorParser parser)
- Adds a the given parser to this registry.
- Parameters:
parser
- the parser to add
getParsers
public ModuleDescriptorParser[] getParsers()
getParser
public ModuleDescriptorParser getParser(Resource res)
parseDescriptor
public ModuleDescriptor parseDescriptor(Ivy ivy,
java.net.URL descriptorURL,
Resource res,
boolean validate)
throws java.text.ParseException,
java.io.IOException
- Throws:
java.text.ParseException
java.io.IOException
accept
public boolean accept(Resource res)
toIvyFile
public void toIvyFile(java.net.URL srcURL,
Resource res,
java.io.File destFile,
ModuleDescriptor md)
throws java.text.ParseException,
java.io.IOException
- Throws:
java.text.ParseException
java.io.IOException