Package org.apache.ivy.plugins.parser
Class AbstractModuleDescriptorParser.AbstractParser
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser.AbstractParser
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler
- Direct Known Subclasses:
XmlModuleDescriptorParser.Parser
- Enclosing class:
- AbstractModuleDescriptorParser
protected abstract static class AbstractModuleDescriptorParser.AbstractParser extends org.xml.sax.helpers.DefaultHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractParser(ModuleDescriptorParser parser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddError(java.lang.String msg)protected voidcheckErrors()voiderror(org.xml.sax.SAXParseException ex)voidfatalError(org.xml.sax.SAXParseException ex)protected java.lang.StringgetDefaultConf()protected java.lang.StringgetDefaultConfMapping()protected DependencyDescriptorgetDefaultConfMappingDescriptor()protected java.util.DategetDefaultPubDate()protected DefaultModuleDescriptorgetMd()ModuleDescriptorgetModuleDescriptor()ModuleDescriptorParsergetModuleDescriptorParser()protected ResourcegetResource()protected voidparseDepsConfs(java.lang.String[] conf, DefaultDependencyDescriptor dd, boolean useDefaultMappingToGuessRightOperand)protected voidparseDepsConfs(java.lang.String[] confs, DefaultDependencyDescriptor dd, boolean useDefaultMappingToGuessRightOperand, boolean evaluateConditions)protected voidparseDepsConfs(java.lang.String confs, DefaultDependencyDescriptor dd)protected voidparseDepsConfs(java.lang.String confs, DefaultDependencyDescriptor dd, boolean useDefaultMappingToGuessRightOperand)protected voidparseDepsConfs(java.lang.String confs, DefaultDependencyDescriptor dd, boolean useDefaultMappingToGuessRightOperand, boolean evaluateConditions)protected voidsetDefaultConf(java.lang.String defaultConf)protected voidsetDefaultConfMapping(java.lang.String defaultConf)protected voidsetMd(DefaultModuleDescriptor md)voidsetResource(Resource res)voidwarning(org.xml.sax.SAXParseException ex)
-
-
-
Constructor Detail
-
AbstractParser
protected AbstractParser(ModuleDescriptorParser parser)
-
-
Method Detail
-
getModuleDescriptorParser
public ModuleDescriptorParser getModuleDescriptorParser()
-
checkErrors
protected void checkErrors() throws java.text.ParseException- Throws:
java.text.ParseException
-
setResource
public void setResource(Resource res)
-
getResource
protected Resource getResource()
-
getDefaultConfMapping
protected java.lang.String getDefaultConfMapping()
-
setDefaultConfMapping
protected void setDefaultConfMapping(java.lang.String defaultConf)
-
parseDepsConfs
protected void parseDepsConfs(java.lang.String confs, DefaultDependencyDescriptor dd)
-
parseDepsConfs
protected void parseDepsConfs(java.lang.String confs, DefaultDependencyDescriptor dd, boolean useDefaultMappingToGuessRightOperand)
-
parseDepsConfs
protected void parseDepsConfs(java.lang.String confs, DefaultDependencyDescriptor dd, boolean useDefaultMappingToGuessRightOperand, boolean evaluateConditions)
-
parseDepsConfs
protected void parseDepsConfs(java.lang.String[] conf, DefaultDependencyDescriptor dd, boolean useDefaultMappingToGuessRightOperand)
-
parseDepsConfs
protected void parseDepsConfs(java.lang.String[] confs, DefaultDependencyDescriptor dd, boolean useDefaultMappingToGuessRightOperand, boolean evaluateConditions)
-
getDefaultConfMappingDescriptor
protected DependencyDescriptor getDefaultConfMappingDescriptor()
-
addError
protected void addError(java.lang.String msg)
-
warning
public void warning(org.xml.sax.SAXParseException ex)
- Specified by:
warningin interfaceorg.xml.sax.ErrorHandler- Overrides:
warningin classorg.xml.sax.helpers.DefaultHandler
-
error
public void error(org.xml.sax.SAXParseException ex)
- Specified by:
errorin interfaceorg.xml.sax.ErrorHandler- Overrides:
errorin classorg.xml.sax.helpers.DefaultHandler
-
fatalError
public void fatalError(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException- Specified by:
fatalErrorin interfaceorg.xml.sax.ErrorHandler- Overrides:
fatalErrorin classorg.xml.sax.helpers.DefaultHandler- Throws:
org.xml.sax.SAXException
-
getDefaultConf
protected java.lang.String getDefaultConf()
-
setDefaultConf
protected void setDefaultConf(java.lang.String defaultConf)
-
getModuleDescriptor
public ModuleDescriptor getModuleDescriptor() throws java.text.ParseException
- Throws:
java.text.ParseException
-
getDefaultPubDate
protected java.util.Date getDefaultPubDate()
-
setMd
protected void setMd(DefaultModuleDescriptor md)
-
getMd
protected DefaultModuleDescriptor getMd()
-
-