Class DomXmlDataFormat
java.lang.Object
org.camunda.bpm.client.variable.impl.format.xml.DomXmlDataFormat
- All Implemented Interfaces:
DataFormat
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DocumentBuilderFactorythe DocumentBuilderFactory used by the readerprotected static final DomXmlLoggerprotected Stringprotected TransformerFactorythe TransformerFactory instance used by the writer -
Constructor Summary
ConstructorsConstructorDescriptionDomXmlDataFormat(String name) DomXmlDataFormat(String name, DocumentBuilderFactory documentBuilderFactory) DomXmlDataFormat(String name, DocumentBuilderFactory documentBuilderFactory, TransformerFactory transformerFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if this data format can map the provided Java Object.protected jakarta.xml.bind.MarshallercreateMarshaller(Class<?>... types) protected jakarta.xml.bind.UnmarshallercreateUnmarshaller(Class<?>... types) static DocumentBuilderFactorystatic TransformerFactorygetCanonicalTypeName(Object value) Returns a data-format-specific canonical type name.protected jakarta.xml.bind.JAXBContextgetContext(Class<?>... types) protected DocumentBuildergetName()Returns the data format name.protected Transformerstatic Class<?>loadClass(String classname, DataFormat dataFormat) readAsElement(String value) <T> TReads the internal representation of a data format to a java object of the desired class.<T> TReads the internal representation of a data format to a java object of the desired class.protected ElementwriteAsElement(Object value) protected voidwriteResult(StreamResult streamResult, Object input) writeValue(Object value) Writes a java object to a data format's internal data representation.
-
Field Details
-
LOG
-
name
-
documentBuilderFactory
the DocumentBuilderFactory used by the reader -
transformerFactory
the TransformerFactory instance used by the writer
-
-
Constructor Details
-
DomXmlDataFormat
-
DomXmlDataFormat
-
DomXmlDataFormat
public DomXmlDataFormat(String name, DocumentBuilderFactory documentBuilderFactory, TransformerFactory transformerFactory)
-
-
Method Details
-
getName
Description copied from interface:DataFormatReturns the data format name.- Specified by:
getNamein interfaceDataFormat
-
getDocumentBuilderFactory
-
getTransformerFactory
-
canMap
Description copied from interface:DataFormatReturns true if this data format can map the provided Java Object.- Specified by:
canMapin interfaceDataFormat- Returns:
- true if this object can be mapped.
-
writeValue
Description copied from interface:DataFormatWrites a java object to a data format's internal data representation.- Specified by:
writeValuein interfaceDataFormat- Parameters:
value- object that is written into internal data representation- Returns:
- the data format's internal representation of that object
-
readValue
Description copied from interface:DataFormatReads the internal representation of a data format to a java object of the desired class.- Specified by:
readValuein interfaceDataFormat- Parameters:
value- the object to be readtypeIdentifier- the class to map the object to- Returns:
- a java object of the specified class that was populated with the input parameter
-
readValue
Description copied from interface:DataFormatReads the internal representation of a data format to a java object of the desired class.- Specified by:
readValuein interfaceDataFormat- Parameters:
value- the object to be readcls- a data-format-specific type identifier that describes the class to map to- Returns:
- a java object of the specified class that was populated with the input parameter
-
getCanonicalTypeName
Description copied from interface:DataFormatReturns a data-format-specific canonical type name.- Specified by:
getCanonicalTypeNamein interfaceDataFormat
-
writeResult
-
writeAsElement
-
getTransformer
-
readAsElement
-
getDocumentBuilder
-
getContext
-
createMarshaller
-
createUnmarshaller
-
defaultTransformerFactory
-
defaultDocumentBuilderFactory
-
loadClass
-