Class XDSMetaClassTransformer<E extends EbXMLRegistryObject,C extends XDSMetaClass>
java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.transform.ebxml.XDSMetaClassTransformer<E,C>
- Type Parameters:
E- the ebXML type.C- theXDSMetaClasstype.
- Direct Known Subclasses:
DocumentEntryTransformer,FolderTransformer,SubmissionSetTransformer
public abstract class XDSMetaClassTransformer<E extends EbXMLRegistryObject,C extends XDSMetaClass>
extends Object
Base class for transformers of
XDSMetaClass and ebXML representations.- Author:
- Jens Riemschneider
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedXDSMetaClassTransformer(String patientIdExternalId, String patientIdLocalizedString, String uniqueIdExternalId, String uniqueIdLocalizedString, String limitedMetadataAttributeName, EbXMLFactory factory) Constructs the transformer using various constants fromVocabulary. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAttributes(C metaData, E ebXML, EbXMLObjectLibrary objectLibrary) Called by the base class to add attributes to the ebXML instance.protected voidaddAttributesFromEbXML(C metaData, E ebXML) Called by the base class to add attributes to the meta data.protected voidaddClassifications(C metaData, E ebXML, EbXMLObjectLibrary objectLibrary) Called by the base class to add classifications to the ebXML instance.protected voidaddClassificationsFromEbXML(C metaData, E ebXML) Called by the base class to add classifications to the meta data.protected voidaddExternalIdentifiers(C metaData, E ebXML, EbXMLObjectLibrary objectLibrary) Called by the base class to add external identifiers to the ebXML instance.protected voidaddExternalIdentifiersFromEbXML(C metaData, E ebXML) Called by the base class to add external identifiers to the meta data.protected voidaddSlots(C metaData, E ebXML, EbXMLObjectLibrary objectLibrary) Called by the base class to add slots to the ebXML instance.protected voidaddSlotsFromEbXML(C metaData, E ebXML) Called by the base class to add slots to the meta data.protected abstract EcreateEbXMLInstance(String id, EbXMLObjectLibrary objectLibrary) Called by the base class to create a new instance of the ebXML type.protected abstract CCalled by the base class to create a new instance of theXDSMetaClass.Transforms an ebXML representation into itsXDSMetaClass.toEbXML(C metaData, EbXMLObjectLibrary objectLibrary) Transforms the givenXDSMetaClassinto its ebXML representation.
-
Constructor Details
-
XDSMetaClassTransformer
protected XDSMetaClassTransformer(String patientIdExternalId, String patientIdLocalizedString, String uniqueIdExternalId, String uniqueIdLocalizedString, String limitedMetadataAttributeName, EbXMLFactory factory) Constructs the transformer using various constants fromVocabulary.- Parameters:
patientIdExternalId- the external ID of the patient ID.patientIdLocalizedString- the localized string of the patient ID.uniqueIdExternalId- the external ID of the unique ID.uniqueIdLocalizedString- the localized string of the unique ID.limitedMetadataAttributeName- the classification defining the limitedMetadata.
-
-
Method Details
-
toEbXML
Transforms the givenXDSMetaClassinto its ebXML representation.- Parameters:
metaData- the meta data to transform. Can benull.objectLibrary- the object library.- Returns:
- the ebXML representation.
nullif the input wasnull.
-
fromEbXML
Transforms an ebXML representation into itsXDSMetaClass.- Parameters:
ebXML- the ebXML representation. Can benull.- Returns:
- the meta data.
nullif the input wasnull.
-
createEbXMLInstance
Called by the base class to create a new instance of the ebXML type.- Parameters:
id- the id of the object to create.objectLibrary- the object library.- Returns:
- a new instance of the ebXML type.
-
createMetaClassInstance
Called by the base class to create a new instance of theXDSMetaClass.- Returns:
- a new instance of the meta data type.
-
addAttributes
Called by the base class to add attributes to the ebXML instance.- Parameters:
metaData- the meta data instance containing the attributes.ebXML- the ebXML instance receiving the attributes.objectLibrary- the object library.
-
addAttributesFromEbXML
Called by the base class to add attributes to the meta data.- Parameters:
metaData- the meta data instance receiving the attributes.ebXML- the ebXML instance containing the attributes.
-
addSlots
Called by the base class to add slots to the ebXML instance.- Parameters:
metaData- the meta data instance containing the slots.ebXML- the ebXML instance receiving the slots.objectLibrary- the object library.
-
addSlotsFromEbXML
Called by the base class to add slots to the meta data.- Parameters:
metaData- the meta data instance receiving the slots.ebXML- the ebXML instance containing the slots.
-
addClassifications
Called by the base class to add classifications to the ebXML instance.- Parameters:
metaData- the meta data instance containing the classifications.ebXML- the ebXML instance receiving the classifications.objectLibrary- the object library.
-
addClassificationsFromEbXML
Called by the base class to add classifications to the meta data.- Parameters:
metaData- the meta data instance receiving the classifications.ebXML- the ebXML instance containing the classifications.
-
addExternalIdentifiers
Called by the base class to add external identifiers to the ebXML instance.- Parameters:
metaData- the meta data instance containing the external identifiers.ebXML- the ebXML instance receiving the external identifiers.objectLibrary- the object library.
-
addExternalIdentifiersFromEbXML
Called by the base class to add external identifiers to the meta data.- Parameters:
metaData- the meta data instance receiving the external identifiers.ebXML- the ebXML instance containing the external identifiers.
-