public class XmlAligner extends XMLFilterImpl
Modifier and Type | Field and Description |
---|---|
static String |
FEATURE_NAMESPACE_PREFIXES |
static String |
FEATURE_NAMESPACES |
protected org.apache.logging.log4j.Logger |
log |
protected ValidatorHandler |
validatorHandler |
String |
XML_SCHEMA_INSTANCE_NAMESPACE |
String |
XML_SCHEMA_NIL_ATTRIBUTE |
Constructor and Description |
---|
XmlAligner(ValidatorHandler psviProvidingValidatorHandler) |
XmlAligner(ValidatorHandler validatorHandler,
List<org.apache.xerces.xs.XSModel> schemaInformation) |
Modifier and Type | Method and Description |
---|---|
protected void |
collectChildElements(org.apache.xerces.xs.XSParticle particle,
Set<String> elementNames) |
protected nl.nn.adapterframework.align.XmlAligner.ChildOccurrence |
determineIsParentOfSingleMultipleOccurringChildElement(org.apache.xerces.xs.XSParticle particle) |
void |
endElement(String uri,
String localName,
String qName) |
protected org.apache.xerces.xs.XSElementDeclaration |
findElementDeclarationForName(String namespace,
String name) |
protected Set<org.apache.xerces.xs.XSElementDeclaration> |
findElementDeclarationsForName(String namespace,
String name) |
protected Set<String> |
findMultipleOccurringChildElements(org.apache.xerces.xs.XSParticle particle) |
org.apache.xerces.xs.XSObjectList |
getAttributeUses() |
org.apache.xerces.xs.XSObjectList |
getAttributeUses(org.apache.xerces.xs.XSTypeDefinition typeDefinition) |
org.apache.xerces.impl.dv.XSSimpleType |
getElementType() |
protected static List<org.apache.xerces.xs.XSModel> |
getSchemaInformation(URL schemaURL) |
org.apache.xerces.xs.XSTypeDefinition |
getTypeDefinition(org.apache.xerces.xs.PSVIProvider psviProvider) |
protected static ValidatorHandler |
getValidatorHandler(URL schemaURL) |
void |
handleRecoverableError(String message,
boolean ignoreFlag) |
boolean |
isMultipleOccurringChildElement(String name) |
boolean |
isMultipleOccurringChildInParentElement(String name) |
boolean |
isNil(Attributes attributes) |
boolean |
isPresentInSet(Set<String> set,
String name) |
void |
newLine() |
void |
newLine(int offset) |
void |
setFeature(String feature,
boolean value) |
void |
startDocument() |
void |
startElement(String namespaceUri,
String localName,
String qName,
Attributes attributes) |
static boolean |
typeContainsWildcard(org.apache.xerces.xs.XSParticle particle) |
characters, endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setParent, setProperty, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
protected org.apache.logging.log4j.Logger log
public static final String FEATURE_NAMESPACES
public static final String FEATURE_NAMESPACE_PREFIXES
protected ValidatorHandler validatorHandler
public String XML_SCHEMA_INSTANCE_NAMESPACE
public String XML_SCHEMA_NIL_ATTRIBUTE
public XmlAligner(ValidatorHandler psviProvidingValidatorHandler)
public XmlAligner(ValidatorHandler validatorHandler, List<org.apache.xerces.xs.XSModel> schemaInformation)
public void newLine() throws SAXException
SAXException
public void newLine(int offset) throws SAXException
SAXException
public boolean isNil(Attributes attributes)
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class XMLFilterImpl
SAXException
public void startElement(String namespaceUri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class XMLFilterImpl
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class XMLFilterImpl
SAXException
public boolean isMultipleOccurringChildInParentElement(String name)
public boolean isMultipleOccurringChildElement(String name)
protected nl.nn.adapterframework.align.XmlAligner.ChildOccurrence determineIsParentOfSingleMultipleOccurringChildElement(org.apache.xerces.xs.XSParticle particle)
public static boolean typeContainsWildcard(org.apache.xerces.xs.XSParticle particle)
protected void collectChildElements(org.apache.xerces.xs.XSParticle particle, Set<String> elementNames)
protected Set<String> findMultipleOccurringChildElements(org.apache.xerces.xs.XSParticle particle)
public org.apache.xerces.xs.XSObjectList getAttributeUses()
public org.apache.xerces.xs.XSObjectList getAttributeUses(org.apache.xerces.xs.XSTypeDefinition typeDefinition)
public org.apache.xerces.xs.XSTypeDefinition getTypeDefinition(org.apache.xerces.xs.PSVIProvider psviProvider)
public org.apache.xerces.impl.dv.XSSimpleType getElementType()
public void setFeature(String feature, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
setFeature
in interface XMLReader
setFeature
in class XMLFilterImpl
SAXNotRecognizedException
SAXNotSupportedException
protected static ValidatorHandler getValidatorHandler(URL schemaURL) throws SAXException
SAXException
protected static List<org.apache.xerces.xs.XSModel> getSchemaInformation(URL schemaURL)
public void handleRecoverableError(String message, boolean ignoreFlag) throws SAXParseException
SAXParseException
protected org.apache.xerces.xs.XSElementDeclaration findElementDeclarationForName(String namespace, String name) throws SAXException
SAXException
Copyright © 2023 Frank!Framework. All rights reserved.