Package org.apache.ivy.core.settings
Class XmlSettingsParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.ivy.core.settings.XmlSettingsParser
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Wraps anIvyVariableContainer
delegating most method calls to the wrapped instance, except for a set of variables which are only stored locally in the wrapper, and not propagated to the wrapped instance. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Configurator
private String
private String
private String
private String
private String
private String
private String
private boolean
private IvySettings
private URL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
anyConfiguratorStarted
(String qName) private void
cachesStarted
(String qName, Map<String, String> attributes) private void
classpathStarted
(Map<String, String> attributes) private void
credentialsStarted
(Map<String, String> attributes) private void
void
void
endElement
(String uri, String localName, String qName) private void
includeStarted
(Map<String, String> attributes) private void
inConfiguratorStarted
(String qName, Map<String, String> attributes) private void
macrodefStarted
(String qName, Map<String, String> attributes) private void
moduleStarted
(Map<String, String> attributes) void
private void
parse
(Configurator configurator, URL configuration) private void
propertiesStarted
(Map<String, String> attributes) private void
propertyStarted
(Map<String, String> attributes) private void
settingsStarted
(String qName, Map<String, String> attributes) void
startElement
(String uri, String localName, String qName, Attributes att) private void
statusesStarted
(String qName, Map<String, String> attributes) private void
typedefStarted
(Map<String, String> attributes) private URL
urlFromFileAttribute
(String filePath) Provide an URL referencing the given filepath.private void
versionMatchersStarted
(String qName, Map<String, String> attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
Field Details
-
configurator
-
configuratorTags
-
ivy
-
defaultResolver
-
defaultCM
-
defaultLatest
-
defaultCacheManager
-
defaultCircular
-
defaultLock
-
currentConfiguratorTag
-
settings
-
deprecatedMessagePrinted
private boolean deprecatedMessagePrinted
-
-
Constructor Details
-
XmlSettingsParser
-
-
Method Details
-
parse
- Throws:
ParseException
IOException
-
doParse
- Throws:
IOException
ParseException
-
parse
- Throws:
IOException
ParseException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes att) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
credentialsStarted
-
moduleStarted
-
macrodefStarted
-
anyConfiguratorStarted
-
statusesStarted
-
versionMatchersStarted
-
cachesStarted
-
settingsStarted
-
includeStarted
- Throws:
IOException
ParseException
-
urlFromFileAttribute
Provide an URL referencing the given filepath. If filePath is an absolute path, then the resulting URL point to a local file, otherwise, the filepath is evaluated relatively to the URL of the current settings file (can be local file or remote URL).- Throws:
IOException
-
propertiesStarted
- Throws:
IOException
-
propertyStarted
-
typedefStarted
-
classpathStarted
- Throws:
IOException
-
inConfiguratorStarted
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
-