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 booleanprivate final LifecycleStaxReader.ContentTransformer -
Constructor Summary
ConstructorsConstructorDescriptionLifecycleStaxReader(LifecycleStaxReader.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 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 ExecutionparseExecution(XMLStreamReader parser, boolean strict) private LifecycleparseLifecycle(XMLStreamReader parser, boolean strict) private LifecycleConfigurationparseLifecycleConfiguration(XMLStreamReader parser, boolean strict) private PhaseparsePhase(XMLStreamReader parser, boolean strict) 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
-
LifecycleStaxReader
public LifecycleStaxReader() -
LifecycleStaxReader
-
-
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:
- 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.
-