Class PluginDescriptorStaxReader
java.lang.Object
org.apache.maven.plugin.descriptor.io.PluginDescriptorStaxReader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final PluginDescriptorStaxReader.ContentTransformer
-
Constructor Summary
ConstructorsConstructorDescriptionPluginDescriptorStaxReader
(PluginDescriptorStaxReader.ContentTransformer contentTransformer) -
Method Summary
Modifier and TypeMethodDescriptionprivate XmlNode
buildXmlNode
(XMLStreamReader parser) 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.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 Dependency
parseDependency
(XMLStreamReader parser, boolean strict, Deque<Object> context) private MojoDescriptor
parseMojoDescriptor
(XMLStreamReader parser, boolean strict, Deque<Object> context) private Parameter
parseParameter
(XMLStreamReader parser, boolean strict, Deque<Object> context) private PluginDescriptor
parsePluginDescriptor
(XMLStreamReader parser, boolean strict, Deque<Object> context) private Requirement
parseRequirement
(XMLStreamReader parser, boolean strict, Deque<Object> context) private Resolution
parseResolution
(XMLStreamReader parser, boolean strict, Deque<Object> context) read
(InputStream in) read
(InputStream in, boolean strict) Method read.read
(XMLStreamReader parser, boolean strict) Method read.void
setAddDefaultEntities
(boolean addDefaultEntities) Sets the state of the "add default entities" flag.
-
Field Details
-
DEFAULT_ENTITIES
-
addDefaultEntities
private boolean addDefaultEntities -
contentTransformer
-
-
Constructor Details
-
PluginDescriptorStaxReader
public PluginDescriptorStaxReader() -
PluginDescriptorStaxReader
-
-
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.
-
read
- Throws:
XMLStreamException
-
read
- Parameters:
reader
- a reader object.strict
- a strict object.- Returns:
- PluginDescriptor
- Throws:
XMLStreamException
- XMLStreamException if any.
-
read
- Throws:
XMLStreamException
-
read
Method read.- Parameters:
in
- a in object.strict
- a strict object.- Returns:
- PluginDescriptor
- Throws:
XMLStreamException
- XMLStreamException if any.
-
read
Method read.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- PluginDescriptor
- Throws:
XMLStreamException
- XMLStreamException if any.
-
parsePluginDescriptor
private PluginDescriptor parsePluginDescriptor(XMLStreamReader parser, boolean strict, Deque<Object> context) throws XMLStreamException - Throws:
XMLStreamException
-
parseMojoDescriptor
private MojoDescriptor parseMojoDescriptor(XMLStreamReader parser, boolean strict, Deque<Object> context) throws XMLStreamException - Throws:
XMLStreamException
-
parseParameter
private Parameter parseParameter(XMLStreamReader parser, boolean strict, Deque<Object> context) throws XMLStreamException - Throws:
XMLStreamException
-
parseRequirement
private Requirement parseRequirement(XMLStreamReader parser, boolean strict, Deque<Object> context) throws XMLStreamException - Throws:
XMLStreamException
-
parseDependency
private Dependency parseDependency(XMLStreamReader parser, boolean strict, Deque<Object> context) throws XMLStreamException - Throws:
XMLStreamException
-
parseResolution
private Resolution parseResolution(XMLStreamReader parser, boolean strict, Deque<Object> context) 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.
-