public class XmlModuleDescriptorParser extends AbstractModuleDescriptorParser
| Modifier and Type | Class and Description |
|---|---|
static class |
XmlModuleDescriptorParser.Parser |
AbstractModuleDescriptorParser.AbstractParser| Modifier | Constructor and Description |
|---|---|
protected |
XmlModuleDescriptorParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Resource res) |
static XmlModuleDescriptorParser |
getInstance() |
protected XmlModuleDescriptorParser.Parser |
newParser(ParserSettings ivySettings)
Instantiates a Parser instance responsible for actual parsing of Ivy files.
|
ModuleDescriptor |
parseDescriptor(ParserSettings ivySettings,
java.net.URL xmlURL,
Resource res,
boolean validate) |
void |
toIvyFile(java.io.InputStream is,
Resource res,
java.io.File destFile,
ModuleDescriptor md)
Convert a module descriptor to an ivy file.
|
java.lang.String |
toString() |
getMetadataArtifact, getType, parseDescriptorpublic static XmlModuleDescriptorParser getInstance()
public ModuleDescriptor parseDescriptor(ParserSettings ivySettings, java.net.URL xmlURL, Resource res, boolean validate) throws java.text.ParseException, java.io.IOException
settings - xmlURL - the url pointing to the file to parseres - the real resource to parse, used for log onlyvalidate - java.text.ParseExceptionjava.io.IOExceptionprotected XmlModuleDescriptorParser.Parser newParser(ParserSettings ivySettings)
Override this method if you want to use a custom Parser.
ivySettings - the settings to use during parsingpublic boolean accept(Resource res)
public void toIvyFile(java.io.InputStream is,
Resource res,
java.io.File destFile,
ModuleDescriptor md)
throws java.io.IOException,
java.text.ParseException
ModuleDescriptorParseris - input stream with opened on original module descriptor resourcejava.io.IOExceptionjava.text.ParseExceptionpublic java.lang.String toString()
toString in class java.lang.Object