Interface ExtensionXmlSerializer<T extends Extendable,​E extends Extension<T>>

    • Method Detail

      • hasSubElements

        boolean hasSubElements()
      • getXsdAsStream

        InputStream getXsdAsStream()
        Return the XSD schema describing the extension to serialize in the latest version of its serialization.
      • getXsdAsStreamList

        default List<InputStream> getXsdAsStreamList()
        Return the list of all XSD schemas describing the extension to serialize.
        There is a distinct XSD schema for each version of its serialization.
      • getNamespaceUri

        String getNamespaceUri()
        Return the namespace URI of the extension in the latest version of its serialization.
      • getNamespaceUri

        default String getNamespaceUri​(String extensionVersion)
        Return the namespace URI of the extension in a given version of its serialization.
      • getNamespacePrefix

        String getNamespacePrefix()
      • getVersion

        default String getVersion()
        Return the latest version of the serialization of the extension.
        Specified by:
        getVersion in interface Versionable
      • checkExtensionVersionSupported

        default void checkExtensionVersionSupported​(String extensionVersion)
        Check that a given extension version exists.
      • isSerializable

        default boolean isSerializable​(E extension)
        Check if an extension can be serialized or not.
        Parameters:
        extension - the extension to check
        Returns:
        true if the extension can be serialized, false otherwise