public class Properties2Xml extends Map2Xml<String,String,Properties2Xml.PropertyNode,Map<String,String>>
Modifier and Type | Class and Description |
---|---|
protected static class |
Properties2Xml.PropertyNode |
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 |
---|
Properties2Xml(ValidatorHandler validatorHandler,
List<org.apache.xerces.xs.XSModel> schemaInformation,
String rootElement) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAttributes(org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
Properties2Xml.PropertyNode node) |
Iterable<Properties2Xml.PropertyNode> |
getChildrenByName(Properties2Xml.PropertyNode node,
org.apache.xerces.xs.XSElementDeclaration childElementDeclaration) |
Properties2Xml.PropertyNode |
getRootNode(Map<String,String> container) |
String |
getText(org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
Properties2Xml.PropertyNode node) |
boolean |
hasChild(org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
Properties2Xml.PropertyNode node,
String childName) |
void |
startParse(Map<String,String> root)
Align the XML according to the schema.
|
static String |
translate(Map<String,String> data,
URL schemaURL,
String rootElement,
String targetNamespace) |
asSource, findNamespaceForName, getBestChildElementPath, getBestMatchingElementPath, getNamespacePrefix, getNodeNamespaceURI, getQName, getUnprocessedChildElementNames, 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 Properties2Xml(ValidatorHandler validatorHandler, List<org.apache.xerces.xs.XSModel> schemaInformation, String rootElement)
public void startParse(Map<String,String> root) throws SAXException
ToXml
startParse
in class ToXml<Map<String,String>,Properties2Xml.PropertyNode>
SAXException
public boolean hasChild(org.apache.xerces.xs.XSElementDeclaration elementDeclaration, Properties2Xml.PropertyNode node, String childName) throws SAXException
hasChild
in class ToXml<Map<String,String>,Properties2Xml.PropertyNode>
SAXException
public Map<String,String> getAttributes(org.apache.xerces.xs.XSElementDeclaration elementDeclaration, Properties2Xml.PropertyNode node) throws SAXException
getAttributes
in class Map2Xml<String,String,Properties2Xml.PropertyNode,Map<String,String>>
SAXException
public Iterable<Properties2Xml.PropertyNode> getChildrenByName(Properties2Xml.PropertyNode node, org.apache.xerces.xs.XSElementDeclaration childElementDeclaration) throws SAXException
getChildrenByName
in class ToXml<Map<String,String>,Properties2Xml.PropertyNode>
SAXException
public String getText(org.apache.xerces.xs.XSElementDeclaration elementDeclaration, Properties2Xml.PropertyNode node)
public Properties2Xml.PropertyNode getRootNode(Map<String,String> container)
getRootNode
in class Map2Xml<String,String,Properties2Xml.PropertyNode,Map<String,String>>
public static String translate(Map<String,String> data, URL schemaURL, String rootElement, String targetNamespace) throws SAXException, IOException
SAXException
IOException
Copyright © 2023 Frank!Framework. All rights reserved.