Class CoreExtensionsStaxReader
java.lang.Object
org.apache.maven.cling.internal.extension.io.CoreExtensionsStaxReader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private final CoreExtensionsStaxReader.ContentTransformer
-
Constructor Summary
ConstructorsConstructorDescriptionCoreExtensionsStaxReader
(CoreExtensionsStaxReader.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 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 CoreExtension
parseCoreExtension
(XMLStreamReader parser, boolean strict) private CoreExtensions
parseCoreExtensions
(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
-
CoreExtensionsStaxReader
public CoreExtensionsStaxReader() -
CoreExtensionsStaxReader
-
-
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:
- CoreExtensions
- Throws:
XMLStreamException
- XMLStreamException if any.
-
read
- Throws:
XMLStreamException
-
read
Method read.- Parameters:
in
- a in object.strict
- a strict object.- Returns:
- CoreExtensions
- Throws:
XMLStreamException
- XMLStreamException if any.
-
read
Method read.- Parameters:
parser
- a parser object.strict
- a strict object.- Returns:
- CoreExtensions
- Throws:
XMLStreamException
- XMLStreamException if any.
-
parseCoreExtensions
private CoreExtensions parseCoreExtensions(XMLStreamReader parser, boolean strict) throws XMLStreamException - Throws:
XMLStreamException
-
parseCoreExtension
private CoreExtension parseCoreExtension(XMLStreamReader parser, boolean strict) 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
-