public class RsaKeyValueParser extends AbstractStaxXmlDSigParser<RSAKeyValueType>
Modifier and Type | Field and Description |
---|---|
static RsaKeyValueParser |
INSTANCE |
LOOKUP
expectedStartElement, LOGGER
Modifier and Type | Method and Description |
---|---|
static RsaKeyValueParser |
getInstance() |
protected RSAKeyValueType |
instantiateElement(XMLEventReader xmlEventReader,
StartElement element)
Instantiates the target Java class representing the current element.
Precondition: Current event is the StartElement Postcondition: Current event is the StartElement or the EndElement corresponding to the StartElement |
protected void |
processSubElement(XMLEventReader xmlEventReader,
RSAKeyValueType target,
XmlDSigQNames element,
StartElement elementDetail)
Processes the subelement of the element processed in
AbstractStaxParser.instantiateElement(javax.xml.stream.XMLEventReader, javax.xml.stream.events.StartElement) method.Precondition: Current event: Last before the StartElement corresponding to the processed subelement, i.e. |
getElementFromName
isUnknownElement, parse, validateStartElement
public static final RsaKeyValueParser INSTANCE
public static RsaKeyValueParser getInstance()
protected RSAKeyValueType instantiateElement(XMLEventReader xmlEventReader, StartElement element) throws ParsingException
AbstractStaxParser
StartElement
StartElement
or the EndElement
corresponding to the StartElement
instantiateElement
in class AbstractStaxParser<RSAKeyValueType,XmlDSigQNames>
element
- The XML event that was just read from the xmlEventReader
ParsingException
protected void processSubElement(XMLEventReader xmlEventReader, RSAKeyValueType target, XmlDSigQNames element, StartElement elementDetail) throws ParsingException
AbstractStaxParser
AbstractStaxParser.instantiateElement(javax.xml.stream.XMLEventReader, javax.xml.stream.events.StartElement)
method.StartElement
corresponding to the processed subelement, i.e.
event obtained by Iterator.next()
is the StartElement
of the subelement being processedIterator.next()
is either
the same StartElement
(i.e. no change in position which causes this subelement to be skipped),
the corresponding EndElement
, or the event after the corresponding EndElement
.
Note that in case of recursive nesting the same element, the corresponding end element MUST be consumed in this method.
processSubElement
in class AbstractStaxParser<RSAKeyValueType,XmlDSigQNames>
target
- Target object (the one created by the AbstractStaxParser.instantiateElement(javax.xml.stream.XMLEventReader, javax.xml.stream.events.StartElement)
method.element
- The constant corresponding to the current start element.elementDetail
- The XML event that was just read from the xmlEventReader
ParsingException
Copyright © 2021 JBoss by Red Hat. All rights reserved.