C
- Container of the root of the treeN
- The tree node typepublic abstract class Tree2Xml<C,N> extends ToXml<C,N>
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 |
---|
Tree2Xml(ValidatorHandler validatorHandler,
List<org.apache.xerces.xs.XSModel> schemaInformation) |
Modifier and Type | Method and Description |
---|---|
abstract Set<String> |
getAllNodeChildNames(org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
N node) |
Iterable<N> |
getChildrenByName(N node,
org.apache.xerces.xs.XSElementDeclaration childElementDeclaration) |
abstract Iterable<N> |
getNodeChildrenByName(N node,
org.apache.xerces.xs.XSElementDeclaration childElementDeclaration) |
abstract String |
getNodeText(org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
N node) |
protected String |
getOverride(org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
N node) |
protected N |
getSubstitutedChild(N node,
String childName)
Allows subclasses to provide a special way of substituting.
|
SubstitutionProvider<?> |
getSubstitutionProvider() |
String |
getText(org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
N node) |
protected Set<String> |
getUnprocessedChildElementNames(org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
N node,
Set<String> processedChildren) |
boolean |
hasChild(org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
N node,
String childName) |
void |
setOverrideValues(Map<String,Object> overrideValues) |
void |
setSubstitutionProvider(SubstitutionProvider<?> substitutions) |
asSource, findNamespaceForName, getAttributes, getBestChildElementPath, getBestMatchingElementPath, getNamespacePrefix, getNodeNamespaceURI, getQName, getRootNode, handleComplexTypedElement, handleElement, handleElementContents, handleError, handleError, handleRootNode, handleSimpleTypedElement, isNil, parse, processChildElement, sendString, startParse, 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 Tree2Xml(ValidatorHandler validatorHandler, List<org.apache.xerces.xs.XSModel> schemaInformation)
public abstract Set<String> getAllNodeChildNames(org.apache.xerces.xs.XSElementDeclaration elementDeclaration, N node) throws SAXException
SAXException
public abstract Iterable<N> getNodeChildrenByName(N node, org.apache.xerces.xs.XSElementDeclaration childElementDeclaration) throws SAXException
SAXException
public abstract String getNodeText(org.apache.xerces.xs.XSElementDeclaration elementDeclaration, N node)
public boolean hasChild(org.apache.xerces.xs.XSElementDeclaration elementDeclaration, N node, String childName) throws SAXException
hasChild
in class ToXml<C,N>
SAXException
protected N getSubstitutedChild(N node, String childName)
protected String getOverride(org.apache.xerces.xs.XSElementDeclaration elementDeclaration, N node)
public final Iterable<N> getChildrenByName(N node, org.apache.xerces.xs.XSElementDeclaration childElementDeclaration) throws SAXException
getChildrenByName
in class ToXml<C,N>
SAXException
public final String getText(org.apache.xerces.xs.XSElementDeclaration elementDeclaration, N node)
protected Set<String> getUnprocessedChildElementNames(org.apache.xerces.xs.XSElementDeclaration elementDeclaration, N node, Set<String> processedChildren) throws SAXException
getUnprocessedChildElementNames
in class ToXml<C,N>
SAXException
public SubstitutionProvider<?> getSubstitutionProvider()
public void setSubstitutionProvider(SubstitutionProvider<?> substitutions)
Copyright © 2023 Frank!Framework. All rights reserved.