Package org.apache.maven.settings.v4
Class SettingsStaxReader
java.lang.Object
org.apache.maven.settings.v4.SettingsStaxReader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private final SettingsStaxReader.ContentTransformer
-
Constructor Summary
ConstructorsConstructorDescriptionSettingsStaxReader
(SettingsStaxReader.ContentTransformer contentTransformer) -
Method Summary
Modifier and TypeMethodDescriptionprivate XmlNode
buildXmlNode
(XMLStreamReader parser, InputSource source) private String
checkDuplicate
(String tagName, XMLStreamReader parser, Set<String> parsed) private void
checkUnknownAttribute
(XMLStreamReader parser, String attribute, String tagName, boolean strict) Method checkUnknownAttribute.private void
checkUnknownElement
(XMLStreamReader parser, boolean strict) Method checkUnknownElement.boolean
Returns the state of the "add default entities" flag.boolean
Returns the state of the "add location information" flag.private boolean
getBooleanValue
(String s, String attribute, XMLStreamReader parser, boolean defaultValue) Method getBooleanValue.private String
Method getTrimmedValue.Returns theXMLInputFactory
used by this reader.private String
interpolatedTrimmed
(String value, String context) Method interpolatedTrimmed.private int
nextTag
(XMLStreamReader parser) Method nextTag.private String
nextText
(XMLStreamReader parser, boolean strict) private Activation
parseActivation
(XMLStreamReader parser, boolean strict, InputSource source) private ActivationFile
parseActivationFile
(XMLStreamReader parser, boolean strict, InputSource source) private ActivationOS
parseActivationOS
(XMLStreamReader parser, boolean strict, InputSource source) private ActivationProperty
parseActivationProperty
(XMLStreamReader parser, boolean strict, InputSource source) private IdentifiableBase
parseIdentifiableBase
(XMLStreamReader parser, boolean strict, InputSource source) private Mirror
parseMirror
(XMLStreamReader parser, boolean strict, InputSource source) private Profile
parseProfile
(XMLStreamReader parser, boolean strict, InputSource source) private Proxy
parseProxy
(XMLStreamReader parser, boolean strict, InputSource source) private Repository
parseRepository
(XMLStreamReader parser, boolean strict, InputSource source) private RepositoryBase
parseRepositoryBase
(XMLStreamReader parser, boolean strict, InputSource source) private RepositoryPolicy
parseRepositoryPolicy
(XMLStreamReader parser, boolean strict, InputSource source) private Server
parseServer
(XMLStreamReader parser, boolean strict, InputSource source) private Settings
parseSettings
(XMLStreamReader parser, boolean strict, InputSource source) private TrackableBase
parseTrackableBase
(XMLStreamReader parser, boolean strict, InputSource source) read
(InputStream in) read
(InputStream in, boolean strict, InputSource source) Method read.read
(Reader reader, boolean strict, InputSource source) read
(XMLStreamReader parser, boolean strict, InputSource source) Method read.void
setAddDefaultEntities
(boolean addDefaultEntities) Sets the state of the "add default entities" flag.void
setAddLocationInformation
(boolean addLocationInformation) Sets the state of the "add location information" flag.
-
Field Details
-
DEFAULT_ENTITIES
-
addDefaultEntities
private boolean addDefaultEntities -
addLocationInformation
private boolean addLocationInformation -
contentTransformer
-
-
Constructor Details
-
SettingsStaxReader
public SettingsStaxReader() -
SettingsStaxReader
-
-
Method Details
-
getXMLInputFactory
Returns theXMLInputFactory
used by this reader.- Returns:
- the
XMLInputFactory
used by this reader.
-
getAddDefaultEntities
public boolean getAddDefaultEntities()Returns the state of the "add default entities" flag.- Returns:
- boolean
-
setAddDefaultEntities
public void setAddDefaultEntities(boolean addDefaultEntities) Sets the state of the "add default entities" flag.- Parameters:
addDefaultEntities
- a addDefaultEntities object.
-
getAddLocationInformation
public boolean getAddLocationInformation()Returns the state of the "add location information" flag.- Returns:
- boolean
-
setAddLocationInformation
public void setAddLocationInformation(boolean addLocationInformation) Sets the state of the "add location information" flag.- Parameters:
addLocationInformation
- a addLocationInformation object.
-
read
- Throws:
XMLStreamException
-
read
- Parameters:
reader
- a reader object.strict
- a strict object.- Returns:
- Settings
- Throws:
XMLStreamException
- XMLStreamException if any.
-
read
- Throws:
XMLStreamException
-
read
Method read.- Parameters:
in
- a in object.strict
- a strict object.- Returns:
- Settings
- Throws:
XMLStreamException
- XMLStreamException if any.
-
read
public Settings read(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException Method read.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- Settings
- Throws:
XMLStreamException
- XMLStreamException if any.
-
parseTrackableBase
private TrackableBase parseTrackableBase(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseIdentifiableBase
private IdentifiableBase parseIdentifiableBase(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseSettings
private Settings parseSettings(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseProxy
private Proxy parseProxy(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseServer
private Server parseServer(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseMirror
private Mirror parseMirror(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseProfile
private Profile parseProfile(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseActivation
private Activation parseActivation(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseRepositoryBase
private RepositoryBase parseRepositoryBase(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseRepository
private Repository parseRepository(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseRepositoryPolicy
private RepositoryPolicy parseRepositoryPolicy(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseActivationProperty
private ActivationProperty parseActivationProperty(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseActivationOS
private ActivationOS parseActivationOS(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseActivationFile
private ActivationFile parseActivationFile(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
checkDuplicate
private String checkDuplicate(String tagName, XMLStreamReader parser, Set<String> parsed) throws XMLStreamException - Throws:
XMLStreamException
-
checkUnknownAttribute
private void checkUnknownAttribute(XMLStreamReader parser, String attribute, String tagName, boolean strict) throws XMLStreamException Method checkUnknownAttribute.- Parameters:
parser
- a parser object.attribute
- a attribute object.tagName
- a tagName object.strict
- a strict object.- Throws:
XMLStreamException
- XMLStreamException if any.IOException
- IOException if any.
-
checkUnknownElement
Method checkUnknownElement.- Parameters:
parser
- a parser object.strict
- a strict object.- Throws:
XMLStreamException
- XMLStreamException if any.IOException
- IOException if any.
-
getTrimmedValue
Method getTrimmedValue.- Parameters:
s
- a s object.- Returns:
- String
-
interpolatedTrimmed
Method interpolatedTrimmed.- Parameters:
value
- a value object.context
- a context object.- Returns:
- String
-
nextTag
Method nextTag.- Parameters:
parser
- a parser object.- Returns:
- int
- Throws:
IOException
- IOException if any.XMLStreamException
- XMLStreamException if any.
-
nextText
- Throws:
XMLStreamException
-
buildXmlNode
- Throws:
XMLStreamException
-
getBooleanValue
private boolean getBooleanValue(String s, String attribute, XMLStreamReader parser, boolean defaultValue) throws XMLStreamException Method getBooleanValue.- Parameters:
s
- a s object.attribute
- a attribute object.parser
- a parser object.defaultValue
- a defaultValue object.- Returns:
- boolean
- Throws:
XMLStreamException
- XMLStreamException if any.
-