Package org.keycloak.saml.common.parsers
Class AnyDomParser
java.lang.Object
org.keycloak.saml.common.parsers.AbstractStaxParser<List<Element>,AnyDomParser.Dom>
 
org.keycloak.saml.common.parsers.AnyDomParser
- All Implemented Interfaces:
- StaxParser
Parses any DOM tree to a list of DOM representations.
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields inherited from class org.keycloak.saml.common.parsers.AbstractStaxParserexpectedStartElement, LOGGER
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected AnyDomParser.DomgetElementFromName(QName name) static AnyDomParsergetInstance(QName name) instantiateElement(XMLEventReader xmlEventReader, StartElement element) Instantiates the target Java class representing the current element.
 Precondition: Current event is theStartElement
 Postcondition: Current event is theStartElementor theEndElementcorresponding to theStartElementprotected booleanisUnknownElement(AnyDomParser.Dom token) protected voidprocessSubElement(XMLEventReader xmlEventReader, List<Element> target, AnyDomParser.Dom element, StartElement elementDetail) Processes the subelement of the element processed inAbstractStaxParser.instantiateElement(javax.xml.stream.XMLEventReader, javax.xml.stream.events.StartElement)method.
 Precondition: Current event: Last before theStartElementcorresponding to the processed subelement, i.e.Methods inherited from class org.keycloak.saml.common.parsers.AbstractStaxParserparse, validateStartElement
- 
Constructor Details- 
AnyDomParser
 
- 
- 
Method Details- 
getInstance
- 
instantiateElementprotected List<Element> instantiateElement(XMLEventReader xmlEventReader, StartElement element) throws ParsingException Description copied from class:AbstractStaxParserInstantiates the target Java class representing the current element.
 Precondition: Current event is theStartElement
 Postcondition: Current event is theStartElementor theEndElementcorresponding to theStartElement- Specified by:
- instantiateElementin class- AbstractStaxParser<List<Element>,- AnyDomParser.Dom> 
- element- The XML event that was just read from the- xmlEventReader
- Returns:
- Throws:
- ParsingException
 
- 
processSubElementprotected void processSubElement(XMLEventReader xmlEventReader, List<Element> target, AnyDomParser.Dom element, StartElement elementDetail) throws ParsingException Description copied from class:AbstractStaxParserProcesses the subelement of the element processed inAbstractStaxParser.instantiateElement(javax.xml.stream.XMLEventReader, javax.xml.stream.events.StartElement)method.
 Precondition: Current event: Last before theStartElementcorresponding to the processed subelement, i.e. event obtained byIterator.next()is theStartElementof the subelement being processed
 Postcondition: Event obtained byIterator.next()is either the sameStartElement(i.e. no change in position which causes this subelement to be skipped), the correspondingEndElement, or the event after the correspondingEndElement.Note that in case of recursive nesting the same element, the corresponding end element MUST be consumed in this method. - Specified by:
- processSubElementin class- AbstractStaxParser<List<Element>,- AnyDomParser.Dom> 
- 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
- Throws:
- ParsingException
 
- 
isUnknownElement- Overrides:
- isUnknownElementin class- AbstractStaxParser<List<Element>,- AnyDomParser.Dom> 
 
- 
getElementFromName- Specified by:
- getElementFromNamein class- AbstractStaxParser<List<Element>,- AnyDomParser.Dom> 
 
 
-