Package org.adempiere.pipo2
Class SAXPackSerializer
java.lang.Object
org.adempiere.pipo2.SAXPackSerializer
- All Implemented Interfaces:
IPackSerializer
IPackSerializer adapter over an existing SAX TransformerHandler.
Used for XML 2Pack export — zero behavior change from the original code path.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(String text) Write text content for the current element.voidFinalize the document.voidendElement(String qName) Close the most recently opened element.Expose the wrapped handler for callers that still need it (e.g.voidstartElement(String qName, Attributes atts) Open an element (record or field).
-
Constructor Details
-
SAXPackSerializer
-
-
Method Details
-
getHandler
Expose the wrapped handler for callers that still need it (e.g. PackOut docHandler). -
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
-
endElement
Description copied from interface:IPackSerializerClose the most recently opened element.- Specified by:
endElementin interfaceIPackSerializer- Parameters:
qName- element name- 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
-
endDocument
Description copied from interface:IPackSerializerFinalize the document. Called once after the root element is closed. The default no-op is sufficient for JSON/YAML serializers that flush onIPackSerializer.endElement(java.lang.String); XML implementations override to callTransformerHandler.endDocument().- Specified by:
endDocumentin interfaceIPackSerializer- Throws:
Exception
-