All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.projecthusky.xua.deserialization.Deserializer Maven / Gradle / Ivy

There is a newer version: 2.5.2
Show newest version
/*
 * This code is made available under the terms of the Eclipse Public License v1.0 
 * in the github project https://github.com/project-husky/husky there you also 
 * find a list of the contributors and the license information.
 * 
 * This project has been developed further and modified by the joined working group Husky 
 * on the basis of the eHealth Connector opensource project from June 28, 2021, 
 * whereas medshare GmbH is the initial and main contributor/author of the eHealth Connector.
 *
 */
package org.projecthusky.xua.deserialization;

import org.projecthusky.xua.exceptions.DeserializeException;
import org.w3c.dom.Element;

/**
 * 
 * 
Typed interface describing the methods for deserializing elements.
*
Interface welches die Methoden für das Deserialisieren von Elemente beschreibt.
*
*
* */ public interface Deserializer { /** * * *
Method to deserialize from an xml String to the to T corresponding model.
*
Methode um von einem XML String zu einer dem T entsprechenden Modell zu deserialisieren.
*
*
* * @param aByteArray *
Method to deserialize the xml byte array
*
Methode um das XML Byte Array zu deserialisieren
*
*
* @return *
the type T deserialized from xml byte array
*
Der typ T deserialisiert vom XML Byte Array
*
*
* @throws DeserializeException *
will be thrown when an error occures on deserialization
*
wird geworfen wenn beim Deserialisieren ein Fehler auftritt
*
*
* */ T fromXmlByteArray(byte[] aByteArray) throws DeserializeException; /** * * *
Method to deserialize from an xml Element to the to T corresponding model.
*
Methode um von einem XML Element zu einer dem T entsprechenden Modell zu deserialisieren.
*
*
* * @param aXmlElement *
Method to deserialize the xml Element
*
Methode um das XML Element zu deserialisieren
*
*
* @return *
the type T deserialized from xml Element
*
Der Typ T deserialisiert vom XML Element
*
*
* @throws DeserializeException *
will be thrown when an error occures on deserialization
*
wird geworfen wenn beim Deserialisieren ein Fehler auftritt
*
*
* */ T fromXmlElement(Element aXmlElement) throws DeserializeException; /** * * *
Method to deserialize from an xml String to the to T corresponding model.
*
Methode um von einem XML String zu einer dem T entsprechenden Modell zu deserialisieren.
*
*
* * @param aXmlString *
Method to deserialize the xml String
*
Methode um das XML String zu deserialisieren
*
*
* @return *
the type T deserialized from xml String
*
Der Typ T deserialisiert vom XML String
*
*
* @throws DeserializeException *
will be thrown when an error occures on deserialization
*
wird geworfen wenn beim Deserialisieren ein Fehler auftritt
*
*
* */ T fromXmlString(String aXmlString) throws DeserializeException; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy