Package org.apache.maven.model.v4
Class MavenStaxReader
java.lang.Object
org.apache.maven.model.v4.MavenStaxReader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private final MavenStaxReader.ContentTransformer
-
Constructor Summary
Constructors -
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 int
getIntegerValue
(String s, String attribute, XMLStreamReader parser, boolean strict, int defaultValue) Method getIntegerValue.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 Build
parseBuild
(XMLStreamReader parser, boolean strict, InputSource source) private BuildBase
parseBuildBase
(XMLStreamReader parser, boolean strict, InputSource source) private CiManagement
parseCiManagement
(XMLStreamReader parser, boolean strict, InputSource source) private ConfigurationContainer
parseConfigurationContainer
(XMLStreamReader parser, boolean strict, InputSource source) private Contributor
parseContributor
(XMLStreamReader parser, boolean strict, InputSource source) private Dependency
parseDependency
(XMLStreamReader parser, boolean strict, InputSource source) private DependencyManagement
parseDependencyManagement
(XMLStreamReader parser, boolean strict, InputSource source) private DeploymentRepository
parseDeploymentRepository
(XMLStreamReader parser, boolean strict, InputSource source) private Developer
parseDeveloper
(XMLStreamReader parser, boolean strict, InputSource source) private DistributionManagement
parseDistributionManagement
(XMLStreamReader parser, boolean strict, InputSource source) private Exclusion
parseExclusion
(XMLStreamReader parser, boolean strict, InputSource source) private Extension
parseExtension
(XMLStreamReader parser, boolean strict, InputSource source) private FileSet
parseFileSet
(XMLStreamReader parser, boolean strict, InputSource source) private IssueManagement
parseIssueManagement
(XMLStreamReader parser, boolean strict, InputSource source) private License
parseLicense
(XMLStreamReader parser, boolean strict, InputSource source) private MailingList
parseMailingList
(XMLStreamReader parser, boolean strict, InputSource source) private Model
parseModel
(XMLStreamReader parser, boolean strict, InputSource source) private ModelBase
parseModelBase
(XMLStreamReader parser, boolean strict, InputSource source) private Notifier
parseNotifier
(XMLStreamReader parser, boolean strict, InputSource source) private Organization
parseOrganization
(XMLStreamReader parser, boolean strict, InputSource source) private Parent
parseParent
(XMLStreamReader parser, boolean strict, InputSource source) private PatternSet
parsePatternSet
(XMLStreamReader parser, boolean strict, InputSource source) private Plugin
parsePlugin
(XMLStreamReader parser, boolean strict, InputSource source) private PluginConfiguration
parsePluginConfiguration
(XMLStreamReader parser, boolean strict, InputSource source) private PluginContainer
parsePluginContainer
(XMLStreamReader parser, boolean strict, InputSource source) private PluginExecution
parsePluginExecution
(XMLStreamReader parser, boolean strict, InputSource source) private PluginManagement
parsePluginManagement
(XMLStreamReader parser, boolean strict, InputSource source) private Prerequisites
parsePrerequisites
(XMLStreamReader parser, boolean strict, InputSource source) private Profile
parseProfile
(XMLStreamReader parser, boolean strict, InputSource source) private Relocation
parseRelocation
(XMLStreamReader parser, boolean strict, InputSource source) private Reporting
parseReporting
(XMLStreamReader parser, boolean strict, InputSource source) private ReportPlugin
parseReportPlugin
(XMLStreamReader parser, boolean strict, InputSource source) private ReportSet
parseReportSet
(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 Resource
parseResource
(XMLStreamReader parser, boolean strict, InputSource source) private Scm
parseScm
(XMLStreamReader parser, boolean strict, InputSource source) private Site
parseSite
(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
-
MavenStaxReader
public MavenStaxReader() -
MavenStaxReader
-
-
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:
- Model
- Throws:
XMLStreamException
- XMLStreamException if any.
-
read
- Throws:
XMLStreamException
-
read
Method read.- Parameters:
in
- a in object.strict
- a strict object.- Returns:
- Model
- Throws:
XMLStreamException
- XMLStreamException if any.
-
read
public Model read(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException Method read.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- Model
- Throws:
XMLStreamException
- XMLStreamException if any.
-
parseModel
private Model parseModel(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseModelBase
private ModelBase parseModelBase(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parsePluginContainer
private PluginContainer parsePluginContainer(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parsePluginConfiguration
private PluginConfiguration parsePluginConfiguration(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseBuildBase
private BuildBase parseBuildBase(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseBuild
private Build parseBuild(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseCiManagement
private CiManagement parseCiManagement(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseNotifier
private Notifier parseNotifier(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseContributor
private Contributor parseContributor(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseDependency
private Dependency parseDependency(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseDeveloper
private Developer parseDeveloper(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseExclusion
private Exclusion parseExclusion(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseIssueManagement
private IssueManagement parseIssueManagement(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseDistributionManagement
private DistributionManagement parseDistributionManagement(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseLicense
private License parseLicense(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseMailingList
private MailingList parseMailingList(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseOrganization
private Organization parseOrganization(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parsePatternSet
private PatternSet parsePatternSet(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseParent
private Parent parseParent(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseScm
private Scm parseScm(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseFileSet
private FileSet parseFileSet(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseResource
private Resource parseResource(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
-
parseDeploymentRepository
private DeploymentRepository parseDeploymentRepository(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseRepositoryPolicy
private RepositoryPolicy parseRepositoryPolicy(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseSite
private Site parseSite(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseConfigurationContainer
private ConfigurationContainer parseConfigurationContainer(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parsePlugin
private Plugin parsePlugin(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parsePluginExecution
private PluginExecution parsePluginExecution(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseDependencyManagement
private DependencyManagement parseDependencyManagement(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parsePluginManagement
private PluginManagement parsePluginManagement(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseReporting
private Reporting parseReporting(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
-
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
-
parseReportPlugin
private ReportPlugin parseReportPlugin(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseReportSet
private ReportSet parseReportSet(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parsePrerequisites
private Prerequisites parsePrerequisites(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseRelocation
private Relocation parseRelocation(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseExtension
private Extension parseExtension(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.
-
getIntegerValue
private int getIntegerValue(String s, String attribute, XMLStreamReader parser, boolean strict, int defaultValue) throws XMLStreamException Method getIntegerValue.- Parameters:
s
- a s object.attribute
- a attribute object.parser
- a parser object.strict
- a strict object.- Returns:
- int
- Throws:
XMLStreamException
- XMLStreamException if any.
-