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 booleanprivate booleanprivate final SettingsStaxReader.ContentTransformer -
Constructor Summary
ConstructorsConstructorDescriptionSettingsStaxReader(SettingsStaxReader.ContentTransformer contentTransformer) -
Method Summary
Modifier and TypeMethodDescriptionprivate XmlNodebuildXmlNode(XMLStreamReader parser, InputSource source) private StringcheckDuplicate(String tagName, XMLStreamReader parser, Set<String> parsed) private voidcheckUnknownAttribute(XMLStreamReader parser, String attribute, String tagName, boolean strict) Method checkUnknownAttribute.private voidcheckUnknownElement(XMLStreamReader parser, boolean strict) Method checkUnknownElement.booleanReturns the state of the "add default entities" flag.booleanReturns the state of the "add location information" flag.private booleangetBooleanValue(String s, String attribute, XMLStreamReader parser, boolean defaultValue) Method getBooleanValue.private StringMethod getTrimmedValue.Returns theXMLInputFactoryused by this reader.private StringinterpolatedTrimmed(String value, String context) Method interpolatedTrimmed.private intnextTag(XMLStreamReader parser) Method nextTag.private StringnextText(XMLStreamReader parser, boolean strict) private ActivationparseActivation(XMLStreamReader parser, boolean strict, InputSource source) private ActivationFileparseActivationFile(XMLStreamReader parser, boolean strict, InputSource source) private ActivationOSparseActivationOS(XMLStreamReader parser, boolean strict, InputSource source) private ActivationPropertyparseActivationProperty(XMLStreamReader parser, boolean strict, InputSource source) private IdentifiableBaseparseIdentifiableBase(XMLStreamReader parser, boolean strict, InputSource source) private MirrorparseMirror(XMLStreamReader parser, boolean strict, InputSource source) private ProfileparseProfile(XMLStreamReader parser, boolean strict, InputSource source) private ProxyparseProxy(XMLStreamReader parser, boolean strict, InputSource source) private RepositoryparseRepository(XMLStreamReader parser, boolean strict, InputSource source) private RepositoryBaseparseRepositoryBase(XMLStreamReader parser, boolean strict, InputSource source) private RepositoryPolicyparseRepositoryPolicy(XMLStreamReader parser, boolean strict, InputSource source) private ServerparseServer(XMLStreamReader parser, boolean strict, InputSource source) private SettingsparseSettings(XMLStreamReader parser, boolean strict, InputSource source) private TrackableBaseparseTrackableBase(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.voidsetAddDefaultEntities(boolean addDefaultEntities) Sets the state of the "add default entities" flag.voidsetAddLocationInformation(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 theXMLInputFactoryused by this reader.- Returns:
- the
XMLInputFactoryused 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.
-