fr.jayasoft.ivy.parser
Class ModuleDescriptorParserRegistry

java.lang.Object
  extended byfr.jayasoft.ivy.parser.AbstractModuleDescriptorParser
      extended byfr.jayasoft.ivy.parser.ModuleDescriptorParserRegistry
All Implemented Interfaces:
ModuleDescriptorParser

public class ModuleDescriptorParserRegistry
extends AbstractModuleDescriptorParser


Nested Class Summary
 
Nested classes inherited from class fr.jayasoft.ivy.parser.AbstractModuleDescriptorParser
AbstractModuleDescriptorParser.AbstractParser
 
Method Summary
 boolean accept(Resource res)
           
 void addParser(ModuleDescriptorParser parser)
          Adds a the given parser to this registry.
static ModuleDescriptorParserRegistry getInstance()
           
 ModuleDescriptorParser getParser(Resource res)
           
 ModuleDescriptorParser[] getParsers()
           
 ModuleDescriptor parseDescriptor(Ivy ivy, java.net.URL descriptorURL, Resource res, boolean validate)
           
 void toIvyFile(java.net.URL srcURL, Resource res, java.io.File destFile, ModuleDescriptor md)
           
 
Methods inherited from class fr.jayasoft.ivy.parser.AbstractModuleDescriptorParser
parseDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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