public interface ExtensionXmlSerializer<T extends Extendable,E extends Extension<T>> extends ExtensionProvider<T,E>, Versionable
An ExtensionXmlSerializer can have several versions with one XSD schema per version: the XML serialization/deserialization of an extension is versionable.
Modifier and Type | Method and Description |
---|---|
default void |
checkExtensionVersionSupported(String extensionVersion)
Check that a given extension version exists.
|
default String |
getName() |
String |
getNamespacePrefix() |
String |
getNamespaceUri()
Return the namespace URI of the extension in the latest version of its serialization.
|
default String |
getNamespaceUri(String extensionVersion)
Return the namespace URI of the extension in a given version of its serialization.
|
default String |
getVersion()
Return the latest version of the serialization of the extension.
|
InputStream |
getXsdAsStream()
Return the XSD schema describing the extension to serialize in the latest version of its serialization.
|
default List<InputStream> |
getXsdAsStreamList()
Return the list of all XSD schemas describing the extension to serialize.
|
boolean |
hasSubElements() |
E |
read(T extendable,
XmlReaderContext context) |
void |
write(E extension,
XmlWriterContext context) |
getCategoryName, getExtensionClass, getExtensionName
boolean hasSubElements()
InputStream getXsdAsStream()
default List<InputStream> getXsdAsStreamList()
String getNamespaceUri()
default String getNamespaceUri(String extensionVersion)
String getNamespacePrefix()
void write(E extension, XmlWriterContext context) throws XMLStreamException
XMLStreamException
E read(T extendable, XmlReaderContext context) throws XMLStreamException
XMLStreamException
default String getName()
getName
in interface Versionable
default String getVersion()
getVersion
in interface Versionable
default void checkExtensionVersionSupported(String extensionVersion)
Copyright © 2020. All rights reserved.