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 booleanprivate final PluginDescriptorStaxReader.ContentTransformer -
Constructor Summary
ConstructorsConstructorDescriptionPluginDescriptorStaxReader(PluginDescriptorStaxReader.ContentTransformer contentTransformer) -
Method Summary
Modifier and TypeMethodDescriptionprivate XmlNodebuildXmlNode(XMLStreamReader parser) 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.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 DependencyparseDependency(XMLStreamReader parser, boolean strict, Deque<Object> context) private MojoDescriptorparseMojoDescriptor(XMLStreamReader parser, boolean strict, Deque<Object> context) private ParameterparseParameter(XMLStreamReader parser, boolean strict, Deque<Object> context) private PluginDescriptorparsePluginDescriptor(XMLStreamReader parser, boolean strict, Deque<Object> context) private RequirementparseRequirement(XMLStreamReader parser, boolean strict, Deque<Object> context) private ResolutionparseResolution(XMLStreamReader parser, boolean strict, Deque<Object> context) read(InputStream in) read(InputStream in, boolean strict) Method read.read(XMLStreamReader parser, boolean strict) Method read.voidsetAddDefaultEntities(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 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.
-
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.
-