Package org.apache.maven.toolchain.v4
Class MavenToolchainsStaxReader
java.lang.Object
org.apache.maven.toolchain.v4.MavenToolchainsStaxReader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate final MavenToolchainsStaxReader.ContentTransformer -
Constructor Summary
ConstructorsConstructorDescriptionMavenToolchainsStaxReader(MavenToolchainsStaxReader.ContentTransformer contentTransformer) -
Method Summary
Modifier and TypeMethodDescriptionprivate XmlNodebuildXmlNode(XMLStreamReader parser, InputSource source) 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.booleanReturns the state of the "add location information" flag.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 PersistedToolchainsparsePersistedToolchains(XMLStreamReader parser, boolean strict, InputSource source) private ToolchainModelparseToolchainModel(XMLStreamReader parser, boolean strict, InputSource source) private TrackableBaseparseTrackableBase(XMLStreamReader parser, boolean strict, InputSource source) read(InputStream in) read(InputStream in, boolean strict, InputSource source) Method read.read(Reader reader, boolean strict, InputSource source) read(XMLStreamReader parser, boolean strict, InputSource source) Method read.voidsetAddDefaultEntities(boolean addDefaultEntities) Sets the state of the "add default entities" flag.voidsetAddLocationInformation(boolean addLocationInformation) Sets the state of the "add location information" flag.
-
Field Details
-
DEFAULT_ENTITIES
-
addDefaultEntities
private boolean addDefaultEntities -
addLocationInformation
private boolean addLocationInformation -
contentTransformer
-
-
Constructor Details
-
MavenToolchainsStaxReader
public MavenToolchainsStaxReader() -
MavenToolchainsStaxReader
-
-
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.
-
getAddLocationInformation
public boolean getAddLocationInformation()Returns the state of the "add location information" flag.- Returns:
- boolean
-
setAddLocationInformation
public void setAddLocationInformation(boolean addLocationInformation) Sets the state of the "add location information" flag.- Parameters:
addLocationInformation- a addLocationInformation object.
-
read
- Throws:
XMLStreamException
-
read
public PersistedToolchains read(Reader reader, boolean strict, InputSource source) throws XMLStreamException - Parameters:
reader- a reader object.strict- a strict object.- Returns:
- PersistedToolchains
- Throws:
XMLStreamException- XMLStreamException if any.
-
read
- Throws:
XMLStreamException
-
read
public PersistedToolchains read(InputStream in, boolean strict, InputSource source) throws XMLStreamException Method read.- Parameters:
in- a in object.strict- a strict object.- Returns:
- PersistedToolchains
- Throws:
XMLStreamException- XMLStreamException if any.
-
read
public PersistedToolchains read(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException Method read.- Parameters:
parser- a parser object.strict- a strict object.- Returns:
- PersistedToolchains
- Throws:
XMLStreamException- XMLStreamException if any.
-
parseTrackableBase
private TrackableBase parseTrackableBase(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parsePersistedToolchains
private PersistedToolchains parsePersistedToolchains(XMLStreamReader parser, boolean strict, InputSource source) throws XMLStreamException - Throws:
XMLStreamException
-
parseToolchainModel
private ToolchainModel parseToolchainModel(XMLStreamReader parser, boolean strict, InputSource source) 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
-