Class LifecycleStaxReader
java.lang.Object
org.apache.maven.plugin.lifecycle.io.LifecycleStaxReader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final LifecycleStaxReader.ContentTransformer
-
Constructor Summary
ConstructorsConstructorDescriptionLifecycleStaxReader
(LifecycleStaxReader.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 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 Execution
parseExecution
(XMLStreamReader parser, boolean strict) private Lifecycle
parseLifecycle
(XMLStreamReader parser, boolean strict) private LifecycleConfiguration
parseLifecycleConfiguration
(XMLStreamReader parser, boolean strict) private Phase
parsePhase
(XMLStreamReader parser, boolean strict) 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
-
LifecycleStaxReader
public LifecycleStaxReader() -
LifecycleStaxReader
-
-
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:
- LifecycleConfiguration
- Throws:
XMLStreamException
- XMLStreamException if any.
-
read
- Throws:
XMLStreamException
-
read
Method read.- Parameters:
in
- a in object.strict
- a strict object.- Returns:
- LifecycleConfiguration
- Throws:
XMLStreamException
- XMLStreamException if any.
-
read
public LifecycleConfiguration read(XMLStreamReader parser, boolean strict) throws XMLStreamException Method read.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- LifecycleConfiguration
- Throws:
XMLStreamException
- XMLStreamException if any.
-
parseLifecycleConfiguration
private LifecycleConfiguration parseLifecycleConfiguration(XMLStreamReader parser, boolean strict) throws XMLStreamException - Throws:
XMLStreamException
-
parseLifecycle
- Throws:
XMLStreamException
-
parsePhase
- Throws:
XMLStreamException
-
parseExecution
- 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
-
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.
-