Class DomXmlDataFormat
java.lang.Object
org.camunda.spin.impl.xml.dom.format.DomXmlDataFormat
- All Implemented Interfaces:
DataFormat<SpinXmlElement>
- Author:
- Daniel Meyer
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
protected DocumentBuilderFactory
the DocumentBuilderFactory used by the readerprotected static final String
protected static final String
protected InputStream
protected JaxBContextProvider
the JaxBContextProvider instance used by this writer.protected static final String
protected static final String
protected static final String
protected static final String
protected static final DomXmlLogger
protected DomXmlDataFormatMapper
protected final String
protected boolean
protected DomXmlDataFormatReader
static final String
protected TransformerFactory
the TransformerFactory instance used by the writerprotected DomXmlDataFormatWriter
static final String
-
Constructor Summary
ConstructorDescriptionDomXmlDataFormat
(String name) DomXmlDataFormat
(String name, Map<String, Object> configurationProperties) DomXmlDataFormat
(String name, DocumentBuilderFactory documentBuilderFactory) DomXmlDataFormat
(String name, DocumentBuilderFactory documentBuilderFactory, TransformerFactory transformerFactory, JaxBContextProvider contextProvider) DomXmlDataFormat
(String name, DocumentBuilderFactory documentBuilderFactory, JaxBContextProvider contextProvider) DomXmlDataFormat
(String name, JaxBContextProvider contextProvider) -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentBuilderFactory
configurableDocumentBuilderFactory
(Map<String, Object> configurationProperties) createAttributeWrapper
(Attr attr) createElementWrapper
(Element element) createWrapperInstance
(Object parameter) static DocumentBuilderFactory
static JaxBContextProvider
static TransformerFactory
protected static void
protected static void
getName()
Class<? extends SpinXmlElement>
protected void
init()
boolean
protected static String
void
setDocumentBuilderFactory
(DocumentBuilderFactory documentBuilderFactory) void
setFormattingConfiguration
(InputStream formattingConfiguration) void
setJaxBContextProvider
(JaxBContextProvider jaxBContextProvider) void
setPrettyPrint
(boolean prettyPrint) void
setTransformerFactory
(TransformerFactory transformerFactory)
-
Field Details
-
LOG
-
EXTERNAL_GENERAL_ENTITIES
- See Also:
-
DISALLOW_DOCTYPE_DECL
- See Also:
-
LOAD_EXTERNAL_DTD
- See Also:
-
EXTERNAL_PARAMETER_ENTITIES
- See Also:
-
JAXP_ACCESS_EXTERNAL_SCHEMA
- See Also:
-
JAXP_ACCESS_EXTERNAL_SCHEMA_SYSTEM_PROPERTY
- See Also:
-
JAXP_ACCESS_EXTERNAL_SCHEMA_ALL
- See Also:
-
XXE_PROPERTY
- See Also:
-
SP_PROPERTY
- See Also:
-
documentBuilderFactory
the DocumentBuilderFactory used by the reader -
transformerFactory
the TransformerFactory instance used by the writer -
jaxBContextProvider
the JaxBContextProvider instance used by this writer. -
reader
-
writer
-
mapper
-
name
-
prettyPrint
protected boolean prettyPrint -
formattingConfiguration
-
-
Constructor Details
-
DomXmlDataFormat
-
DomXmlDataFormat
-
DomXmlDataFormat
-
DomXmlDataFormat
public DomXmlDataFormat(String name, DocumentBuilderFactory documentBuilderFactory, JaxBContextProvider contextProvider) -
DomXmlDataFormat
-
DomXmlDataFormat
public DomXmlDataFormat(String name, DocumentBuilderFactory documentBuilderFactory, TransformerFactory transformerFactory, JaxBContextProvider contextProvider)
-
-
Method Details
-
init
protected void init() -
getWrapperType
- Specified by:
getWrapperType
in interfaceDataFormat<SpinXmlElement>
-
createWrapperInstance
- Specified by:
createWrapperInstance
in interfaceDataFormat<SpinXmlElement>
-
getName
- Specified by:
getName
in interfaceDataFormat<SpinXmlElement>
-
createElementWrapper
-
createAttributeWrapper
-
getReader
- Specified by:
getReader
in interfaceDataFormat<SpinXmlElement>
-
getWriter
- Specified by:
getWriter
in interfaceDataFormat<SpinXmlElement>
-
getMapper
- Specified by:
getMapper
in interfaceDataFormat<SpinXmlElement>
- Returns:
- the DataFormatMapper used by this data format
-
getDocumentBuilderFactory
-
getTransformerFactory
-
getJaxBContextProvider
-
setDocumentBuilderFactory
-
setTransformerFactory
-
setJaxBContextProvider
-
isPrettyPrint
public boolean isPrettyPrint() -
setPrettyPrint
public void setPrettyPrint(boolean prettyPrint) -
getFormattingConfiguration
-
setFormattingConfiguration
-
defaultTransformerFactory
-
defaultDocumentBuilderFactory
-
configurableDocumentBuilderFactory
public static DocumentBuilderFactory configurableDocumentBuilderFactory(Map<String, Object> configurationProperties) -
defaultJaxBContextProvider
-
disableXxeProcessing
-
enableSecureProcessing
-
resolveAccessExternalSchemaProperty
-