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 classWraps anIvyVariableContainerdelegating 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 Configuratorprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate booleanprivate IvySettingsprivate URL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidanyConfiguratorStarted(String qName) private voidcachesStarted(String qName, Map<String, String> attributes) private voidclasspathStarted(Map<String, String> attributes) private voidcredentialsStarted(Map<String, String> attributes) private voidvoidvoidendElement(String uri, String localName, String qName) private voidincludeStarted(Map<String, String> attributes) private voidinConfiguratorStarted(String qName, Map<String, String> attributes) private voidmacrodefStarted(String qName, Map<String, String> attributes) private voidmoduleStarted(Map<String, String> attributes) voidprivate voidparse(Configurator configurator, URL configuration) private voidpropertiesStarted(Map<String, String> attributes) private voidpropertyStarted(Map<String, String> attributes) private voidsettingsStarted(String qName, Map<String, String> attributes) voidstartElement(String uri, String localName, String qName, Attributes att) private voidstatusesStarted(String qName, Map<String, String> attributes) private voidtypedefStarted(Map<String, String> attributes) private URLurlFromFileAttribute(String filePath) Provide an URL referencing the given filepath.private voidversionMatchersStarted(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:
ParseExceptionIOException
-
doParse
- Throws:
IOExceptionParseException
-
parse
- Throws:
IOExceptionParseException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes att) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
credentialsStarted
-
moduleStarted
-
macrodefStarted
-
anyConfiguratorStarted
-
statusesStarted
-
versionMatchersStarted
-
cachesStarted
-
settingsStarted
-
includeStarted
- Throws:
IOExceptionParseException
-
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:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler- Throws:
SAXException
-