R
- The class of object which the serializer can serialize (what it requires).P
- The class of object which will be provided by this serializer when it parses data.@ComponentRole public interface XMLSerializer<R,P extends R> extends Serializer<R,P>
Modifier and Type | Method and Description |
---|---|
P |
parse(org.dom4j.Element xmlElement)
Deserialize from an XML Element.
|
void |
serialize(R object,
org.xwiki.store.serialization.xml.internal.XMLWriter writeTo)
Serialize to an XMLWriter.
|
parse, serialize
P parse(org.dom4j.Element xmlElement) throws IOException
xmlElement
- the root element of a serialized object.IOException
- if something goes wrong.void serialize(R object, org.xwiki.store.serialization.xml.internal.XMLWriter writeTo) throws IOException
object
- the object to serialize.writeTo
- write output to this.IOException
- if something goes wrong.Copyright © 2004–2019 XWiki. All rights reserved.