Package org.adempiere.pipo2
Class YamlPackSerializer
java.lang.Object
org.adempiere.pipo2.YamlPackSerializer
- All Implemented Interfaces:
IPackSerializer
IPackSerializer that writes a 2Pack as YAML.
- See Also:
-
JacksonPackSerializer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(String text) Write text content for the current element.voidendElement(String qName) Close the most recently opened element.voidstartElement(String qName, Attributes atts) Open an element (record or field).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.adempiere.pipo2.IPackSerializer
endDocument
-
Field Details
-
mapper
protected final com.fasterxml.jackson.databind.ObjectMapper mapper
-
-
Constructor Details
-
YamlPackSerializer
-
-
Method Details
-
startElement
Description copied from interface:IPackSerializerOpen an element (record or field).- Specified by:
startElementin interfaceIPackSerializer- Parameters:
qName- element nameatts- element attributes (reference hints, type metadata)- Throws:
Exception
-
characters
Description copied from interface:IPackSerializerWrite text content for the current element.- Specified by:
charactersin interfaceIPackSerializer- Parameters:
text- content, may be null (treated as empty)- Throws:
Exception
-
endElement
Description copied from interface:IPackSerializerClose the most recently opened element.- Specified by:
endElementin interfaceIPackSerializer- Parameters:
qName- element name- Throws:
Exception
-