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 booleanprivate booleanprivate final MavenStaxReader.ContentTransformer -
Constructor Summary
Constructors -
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 intgetIntegerValue(String s, String attribute, XMLStreamReader parser, boolean strict, int defaultValue) Method getIntegerValue.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 BuildparseBuild(XMLStreamReader parser, boolean strict, InputSource source) private BuildBaseparseBuildBase(XMLStreamReader parser, boolean strict, InputSource source) private CiManagementparseCiManagement(XMLStreamReader parser, boolean strict, InputSource source) private ConfigurationContainerparseConfigurationContainer(XMLStreamReader parser, boolean strict, InputSource source) private ContributorparseContributor(XMLStreamReader parser, boolean strict, InputSource source) private DependencyparseDependency(XMLStreamReader parser, boolean strict, InputSource source) private DependencyManagementparseDependencyManagement(XMLStreamReader parser, boolean strict, InputSource source) private DeploymentRepositoryparseDeploymentRepository(XMLStreamReader parser, boolean strict, InputSource source) private DeveloperparseDeveloper(XMLStreamReader parser, boolean strict, InputSource source) private DistributionManagementparseDistributionManagement(XMLStreamReader parser, boolean strict, InputSource source) private ExclusionparseExclusion(XMLStreamReader parser, boolean strict, InputSource source) private ExtensionparseExtension(XMLStreamReader parser, boolean strict, InputSource source) private FileSetparseFileSet(XMLStreamReader parser, boolean strict, InputSource source) private IssueManagementparseIssueManagement(XMLStreamReader parser, boolean strict, InputSource source) private LicenseparseLicense(XMLStreamReader parser, boolean strict, InputSource source) private MailingListparseMailingList(XMLStreamReader parser, boolean strict, InputSource source) private ModelparseModel(XMLStreamReader parser, boolean strict, InputSource source) private ModelBaseparseModelBase(XMLStreamReader parser, boolean strict, InputSource source) private NotifierparseNotifier(XMLStreamReader parser, boolean strict, InputSource source) private OrganizationparseOrganization(XMLStreamReader parser, boolean strict, InputSource source) private ParentparseParent(XMLStreamReader parser, boolean strict, InputSource source) private PatternSetparsePatternSet(XMLStreamReader parser, boolean strict, InputSource source) private PluginparsePlugin(XMLStreamReader parser, boolean strict, InputSource source) private PluginConfigurationparsePluginConfiguration(XMLStreamReader parser, boolean strict, InputSource source) private PluginContainerparsePluginContainer(XMLStreamReader parser, boolean strict, InputSource source) private PluginExecutionparsePluginExecution(XMLStreamReader parser, boolean strict, InputSource source) private PluginManagementparsePluginManagement(XMLStreamReader parser, boolean strict, InputSource source) private PrerequisitesparsePrerequisites(XMLStreamReader parser, boolean strict, InputSource source) private ProfileparseProfile(XMLStreamReader parser, boolean strict, InputSource source) private RelocationparseRelocation(XMLStreamReader parser, boolean strict, InputSource source) private ReportingparseReporting(XMLStreamReader parser, boolean strict, InputSource source) private ReportPluginparseReportPlugin(XMLStreamReader parser, boolean strict, InputSource source) private ReportSetparseReportSet(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 ResourceparseResource(XMLStreamReader parser, boolean strict, InputSource source) private ScmparseScm(XMLStreamReader parser, boolean strict, InputSource source) private SiteparseSite(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
-
MavenStaxReader
public MavenStaxReader() -
MavenStaxReader
-
-
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:
- 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.
-