Package io.kojan.xml
Interface XMLDumper
public interface XMLDumper
A facility to serialize data in in XML format. Allows serialization of entities and writing of
any other data.
- Author:
- Mikolaj Izdebski
-
Method Summary
Modifier and TypeMethodDescriptionvoidWrites a sequence that ends previously started XML element.<Type,Bean>
voiddumpEntity(Entity<Type, Bean> entity, Type value) Serializes givenEntityinto XML form.voiddumpStartElement(String tag) Writes a sequence that starts an XML element with given tag.voidWrites XML text content.
-
Method Details
-
dumpStartElement
Writes a sequence that starts an XML element with given tag.- Parameters:
tag- element tag name- Throws:
XMLException- in case exception occurs during XML serialization
-
dumpEndElement
Writes a sequence that ends previously started XML element.- Throws:
XMLException- in case exception occurs during XML serialization
-
dumpText
Writes XML text content.- Parameters:
text- text content to write- Throws:
XMLException- in case exception occurs during XML serialization
-
dumpEntity
Serializes givenEntityinto XML form.- Type Parameters:
Type- data type of entityBean- type of bean associated with the entity- Parameters:
entity- the entity type to serializevalue- the object to serialize- Throws:
XMLException- in case exception occurs during XML serialization
-