public class DomTreeAligner extends Tree2Xml<Document,Node>
MSG_CANNOT_NOT_FIND_ELEMENT_DECLARATION, MSG_EXPECTED_ELEMENT, MSG_INVALID_CONTENT, XSI_PREFIX_MAPPING
FEATURE_NAMESPACE_PREFIXES, FEATURE_NAMESPACES, log, validatorHandler, XML_SCHEMA_INSTANCE_NAMESPACE, XML_SCHEMA_NIL_ATTRIBUTE
Constructor and Description |
---|
DomTreeAligner(ValidatorHandler validatorHandler,
List<org.apache.xerces.xs.XSModel> schemaInformation) |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAllNodeChildNames(org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
Node node) |
Map<String,String> |
getAttributes(org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
Node node) |
Iterable<Node> |
getNodeChildrenByName(Node node,
org.apache.xerces.xs.XSElementDeclaration childElementDeclaration) |
String |
getNodeName(Node node) |
String |
getNodeNamespaceURI(Node node)
return namespace of node, if known.
|
String |
getNodeText(org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
Node node) |
Node |
getRootNode(Document dom) |
boolean |
hasChild(org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
Node node,
String childName) |
boolean |
isNil(org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
Node node) |
void |
startParse(Document dom)
Align the XML according to the schema.
|
static String |
translate(Document xmlIn,
URL schemaURL,
boolean ignoreUndeclaredElements) |
getChildrenByName, getOverride, getSubstitutedChild, getSubstitutionProvider, getText, getUnprocessedChildElementNames, setOverrideValues, setSubstitutionProvider
asSource, findNamespaceForName, getBestChildElementPath, getBestMatchingElementPath, getNamespacePrefix, getQName, handleComplexTypedElement, handleElement, handleElementContents, handleError, handleError, handleRootNode, handleSimpleTypedElement, parse, processChildElement, sendString, translate, translate
collectChildElements, determineIsParentOfSingleMultipleOccurringChildElement, endElement, findElementDeclarationForName, findElementDeclarationsForName, findMultipleOccurringChildElements, getAttributeUses, getAttributeUses, getElementType, getSchemaInformation, getTypeDefinition, getValidatorHandler, handleRecoverableError, isMultipleOccurringChildElement, isMultipleOccurringChildInParentElement, isNil, isPresentInSet, newLine, newLine, setFeature, startDocument, startElement, typeContainsWildcard
characters, endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setParent, setProperty, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
public DomTreeAligner(ValidatorHandler validatorHandler, List<org.apache.xerces.xs.XSModel> schemaInformation)
public void startParse(Document dom) throws SAXException
ToXml
startParse
in class ToXml<Document,Node>
SAXException
public Node getRootNode(Document dom)
getRootNode
in class ToXml<Document,Node>
public String getNodeNamespaceURI(Node node)
ToXml
getNodeNamespaceURI
in class ToXml<Document,Node>
public String getNodeText(org.apache.xerces.xs.XSElementDeclaration elementDeclaration, Node node)
getNodeText
in class Tree2Xml<Document,Node>
public boolean hasChild(org.apache.xerces.xs.XSElementDeclaration elementDeclaration, Node node, String childName) throws SAXException
hasChild
in class Tree2Xml<Document,Node>
SAXException
public Set<String> getAllNodeChildNames(org.apache.xerces.xs.XSElementDeclaration elementDeclaration, Node node) throws SAXException
getAllNodeChildNames
in class Tree2Xml<Document,Node>
SAXException
public Iterable<Node> getNodeChildrenByName(Node node, org.apache.xerces.xs.XSElementDeclaration childElementDeclaration) throws SAXException
getNodeChildrenByName
in class Tree2Xml<Document,Node>
SAXException
public boolean isNil(org.apache.xerces.xs.XSElementDeclaration elementDeclaration, Node node)
public Map<String,String> getAttributes(org.apache.xerces.xs.XSElementDeclaration elementDeclaration, Node node) throws SAXException
getAttributes
in class ToXml<Document,Node>
SAXException
public static String translate(Document xmlIn, URL schemaURL, boolean ignoreUndeclaredElements) throws SAXException
SAXException
Copyright © 2023 Frank!Framework. All rights reserved.