public static class XmlModuleDescriptorParser.Parser extends AbstractModuleDescriptorParser.AbstractParser
Modifier and Type | Class and Description |
---|---|
static class |
XmlModuleDescriptorParser.Parser.State |
Modifier and Type | Field and Description |
---|---|
protected static java.util.List |
ALLOWED_VERSIONS |
Constructor and Description |
---|
XmlModuleDescriptorParser.Parser(ModuleDescriptorParser parser,
ParserSettings ivySettings) |
Modifier and Type | Method and Description |
---|---|
protected void |
addConfiguration(java.lang.String c) |
protected void |
addDependencyArtifacts(java.lang.String tag,
org.xml.sax.Attributes attributes) |
protected void |
addExcludeRule(java.lang.String tag,
org.xml.sax.Attributes attributes) |
protected void |
addIncludeRule(java.lang.String tag,
org.xml.sax.Attributes attributes) |
protected void |
artifactStarted(java.lang.String qName,
org.xml.sax.Attributes attributes) |
void |
characters(char[] ch,
int start,
int length) |
protected void |
checkConfigurations() |
protected void |
configurationStarted(org.xml.sax.Attributes attributes) |
protected void |
confStarted(org.xml.sax.Attributes attributes) |
protected void |
dependenciesStarted(org.xml.sax.Attributes attributes) |
protected void |
dependencyStarted(org.xml.sax.Attributes attributes) |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
protected void |
extendsStarted(org.xml.sax.Attributes attributes)
Handle extends elements.
|
protected MDArtifact |
getArtifact() |
protected java.lang.StringBuffer |
getBuffer() |
protected java.lang.String |
getConf() |
protected ConfigurationAware |
getConfAware() |
protected DefaultDependencyDescriptor |
getDd() |
protected PatternMatcher |
getDefaultMatcher() |
protected java.lang.String |
getDefaultParentLocation()
Default parent location to check (for dev ONLY)
|
protected java.io.InputStream |
getDescriptorInput() |
protected java.net.URL |
getDescriptorURL() |
protected java.lang.String |
getDescriptorVersion() |
protected PatternMatcher |
getPatternMatcher(java.lang.String m) |
protected java.lang.String[] |
getPublicationsDefaultConf() |
protected java.net.URL |
getSchemaURL() |
protected ParserSettings |
getSettings() |
protected int |
getState() |
protected void |
includeConfStarted(org.xml.sax.Attributes attributes) |
protected void |
infoStarted(org.xml.sax.Attributes attributes) |
protected boolean |
isArtifactsDeclared() |
protected boolean |
isOtherNamespace(java.lang.String qName) |
protected boolean |
isValidate() |
protected void |
ivyModuleStarted(org.xml.sax.Attributes attributes) |
protected void |
managerStarted(org.xml.sax.Attributes attributes,
java.lang.String managerAtt) |
protected void |
mediationOverrideStarted(org.xml.sax.Attributes attributes) |
protected void |
mergeAll(ModuleDescriptor parent)
Merge everything from a given parent
|
protected void |
mergeConfigurations(ModuleDescriptor parent)
Describes how to merge configurations elements
|
protected void |
mergeDependencies(DependencyDescriptor[] dependencies)
Describes how dependencies should be inherited
|
protected void |
mergeDescription(java.lang.String description)
Describes how to merge description
|
void |
mergeExcludes(ExcludeRule[] excludeRules)
Describes how to merge exclude rules
|
protected void |
mergeInfo(ModuleDescriptor parent)
Explain how to inherit metadatas related to info element
|
void |
mergeLicenses(License[] licenses)
Describes how to merge licenses
|
protected void |
mergeWithOtherModuleDescriptor(java.util.List extendTypes,
ModuleDescriptor parent)
Merge current module with a given module descriptor and specify what should be inherited
through extendTypes argument
|
void |
parse() |
protected ModuleDescriptor |
parseOtherIvyFile(ModuleRevisionId parentMrid)
Describe how to parse a
ModuleDescriptor by asking repositories |
protected void |
parseRule(java.lang.String tag,
org.xml.sax.Attributes attributes) |
protected void |
publicationsStarted(org.xml.sax.Attributes attributes) |
protected void |
replaceConfigurationWildcards() |
protected void |
setArtifact(MDArtifact artifact) |
protected void |
setArtifactsDeclared(boolean artifactsDeclared) |
protected void |
setBuffer(java.lang.StringBuffer buffer) |
protected void |
setConf(java.lang.String conf) |
protected void |
setConfAware(ConfigurationAware confAware) |
protected void |
setDd(DefaultDependencyDescriptor dd) |
protected void |
setDescriptorVersion(java.lang.String descriptorVersion) |
void |
setInput(java.io.InputStream descriptorInput) |
void |
setInput(java.net.URL descriptorURL) |
protected void |
setPublicationsDefaultConf(java.lang.String defaultConf) |
protected void |
setPublicationsDefaultConf(java.lang.String[] publicationsDefaultConf) |
protected void |
setState(int state) |
void |
setValidate(boolean validate) |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes) |
addError, checkErrors, error, fatalError, getDefaultConf, getDefaultConfMapping, getDefaultConfMappingDescriptor, getDefaultPubDate, getMd, getModuleDescriptor, getModuleDescriptorParser, getResource, parseDepsConfs, parseDepsConfs, parseDepsConfs, parseDepsConfs, parseDepsConfs, setDefaultConf, setDefaultConfMapping, setMd, setResource, warning
public XmlModuleDescriptorParser.Parser(ModuleDescriptorParser parser, ParserSettings ivySettings)
public void setInput(java.io.InputStream descriptorInput)
public void setInput(java.net.URL descriptorURL)
public void setValidate(boolean validate)
public void parse() throws java.text.ParseException, java.io.IOException
java.text.ParseException
java.io.IOException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
protected java.lang.String getDefaultParentLocation()
protected void extendsStarted(org.xml.sax.Attributes attributes) throws java.text.ParseException
attributes
- java.text.ParseException
protected void mergeWithOtherModuleDescriptor(java.util.List extendTypes, ModuleDescriptor parent) throws java.text.ParseException
extendTypes
- specify what should be inheritedparent
- a given parent module descriptorjava.text.ParseException
protected void mergeAll(ModuleDescriptor parent)
parent
- a given parent module desciptorprotected void mergeInfo(ModuleDescriptor parent)
parent
- a given parent module decriptorprotected void mergeConfigurations(ModuleDescriptor parent)
sourceMrid
- the source module revision idconfigurations
- array of configurations to be inheritedprotected void mergeDependencies(DependencyDescriptor[] dependencies)
dependencies
- array of dependencies to inheritprotected void mergeDescription(java.lang.String description)
description
- description going to be inheritedpublic void mergeLicenses(License[] licenses)
licenses
- licenses going to be inheritedpublic void mergeExcludes(ExcludeRule[] excludeRules)
excludeRules
- exclude rules going to be inheritedprotected ModuleDescriptor parseOtherIvyFile(ModuleRevisionId parentMrid) throws java.text.ParseException
ModuleDescriptor
by asking repositoriesparentMrid
- a given ModuleRevisionId
to findModuleDescriptor
if found. Return null if no ModuleDescriptor
was foundjava.text.ParseException
protected void publicationsStarted(org.xml.sax.Attributes attributes)
protected void setPublicationsDefaultConf(java.lang.String defaultConf)
protected boolean isOtherNamespace(java.lang.String qName)
protected void managerStarted(org.xml.sax.Attributes attributes, java.lang.String managerAtt)
protected void mediationOverrideStarted(org.xml.sax.Attributes attributes)
protected void includeConfStarted(org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, java.text.ParseException
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
java.text.ParseException
protected void confStarted(org.xml.sax.Attributes attributes)
protected void dependencyStarted(org.xml.sax.Attributes attributes)
protected void artifactStarted(java.lang.String qName, org.xml.sax.Attributes attributes) throws java.net.MalformedURLException
java.net.MalformedURLException
protected void dependenciesStarted(org.xml.sax.Attributes attributes)
protected void configurationStarted(org.xml.sax.Attributes attributes)
protected void infoStarted(org.xml.sax.Attributes attributes)
protected void ivyModuleStarted(org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void addDependencyArtifacts(java.lang.String tag, org.xml.sax.Attributes attributes) throws java.net.MalformedURLException
java.net.MalformedURLException
protected void addIncludeRule(java.lang.String tag, org.xml.sax.Attributes attributes) throws java.net.MalformedURLException
java.net.MalformedURLException
protected void addExcludeRule(java.lang.String tag, org.xml.sax.Attributes attributes) throws java.net.MalformedURLException
java.net.MalformedURLException
protected void parseRule(java.lang.String tag, org.xml.sax.Attributes attributes) throws java.net.MalformedURLException
java.net.MalformedURLException
protected void addConfiguration(java.lang.String c)
protected PatternMatcher getPatternMatcher(java.lang.String m)
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
protected void checkConfigurations()
protected void replaceConfigurationWildcards()
protected ParserSettings getSettings()
protected java.net.URL getDescriptorURL()
protected java.io.InputStream getDescriptorInput()
protected int getState()
protected void setState(int state)
protected PatternMatcher getDefaultMatcher()
protected DefaultDependencyDescriptor getDd()
protected void setDd(DefaultDependencyDescriptor dd)
protected ConfigurationAware getConfAware()
protected void setConfAware(ConfigurationAware confAware)
protected MDArtifact getArtifact()
protected void setArtifact(MDArtifact artifact)
protected java.lang.String getConf()
protected void setConf(java.lang.String conf)
protected boolean isArtifactsDeclared()
protected void setArtifactsDeclared(boolean artifactsDeclared)
protected java.lang.StringBuffer getBuffer()
protected void setBuffer(java.lang.StringBuffer buffer)
protected java.lang.String getDescriptorVersion()
protected void setDescriptorVersion(java.lang.String descriptorVersion)
protected java.lang.String[] getPublicationsDefaultConf()
protected void setPublicationsDefaultConf(java.lang.String[] publicationsDefaultConf)
protected boolean isValidate()
protected java.net.URL getSchemaURL()