Class NodeBufferingParser
java.lang.Object
org.apache.maven.model.transform.pull.BufferingParser
org.apache.maven.model.transform.pull.NodeBufferingParser
- All Implemented Interfaces:
org.codehaus.plexus.util.xml.pull.XmlPullParser
- Direct Known Subclasses:
ModelVersionXMLFilter
,ReactorDependencyXMLFilter
,RelativePathXMLFilter
Buffer events while parsing a given element to allow some post-processing.
- Since:
- 4.0.0
- Author:
- Guillaume Nodet
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.maven.model.transform.pull.BufferingParser
BufferingParser.Attribute, BufferingParser.Event, BufferingParser.Namespace
-
Field Summary
Fields inherited from class org.apache.maven.model.transform.pull.BufferingParser
bypass, current, events, xmlPullParser
Fields inherited from interface org.codehaus.plexus.util.xml.pull.XmlPullParser
CDSECT, COMMENT, DOCDECL, END_DOCUMENT, END_TAG, ENTITY_REF, FEATURE_PROCESS_DOCDECL, FEATURE_PROCESS_NAMESPACES, FEATURE_REPORT_NAMESPACE_ATTRIBUTES, FEATURE_VALIDATION, IGNORABLE_WHITESPACE, NO_NAMESPACE, PROCESSING_INSTRUCTION, START_DOCUMENT, START_TAG, TEXT, TYPES
-
Constructor Summary
ConstructorDescriptionNodeBufferingParser
(org.codehaus.plexus.util.xml.pull.XmlPullParser xmlPullParser, String nodeName) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
accept()
boolean
bypass()
protected abstract void
process
(List<BufferingParser.Event> buffer) Methods inherited from class org.apache.maven.model.transform.pull.BufferingParser
bufferEvent, bypass, defineEntityReplacementText, getAttributeCount, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getColumnNumber, getDepth, getEventType, getFeature, getInputEncoding, getLineNumber, getName, getNamespace, getNamespace, getNamespaceCount, getNamespacePrefix, getNamespaceUri, getPositionDescription, getPrefix, getProperty, getText, getTextCharacters, isAttributeDefault, isEmptyElementTag, isWhitespace, next, nextTag, nextText, nextToken, nullSafeAppend, pushEvent, require, setFeature, setInput, setInput, setProperty
-
Constructor Details
-
NodeBufferingParser
public NodeBufferingParser(org.codehaus.plexus.util.xml.pull.XmlPullParser xmlPullParser, String nodeName)
-
-
Method Details
-
accept
protected boolean accept() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException, IOException- Overrides:
accept
in classBufferingParser
- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
IOException
-
bypass
public boolean bypass()- Overrides:
bypass
in classBufferingParser
-
process
-