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
- theXDSMetaClass
type.
- 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
ModifierConstructorDescriptionprotected
XDSMetaClassTransformer
(String patientIdExternalId, String patientIdLocalizedString, String uniqueIdExternalId, String uniqueIdLocalizedString, String limitedMetadataAttributeName, EbXMLFactory factory) Constructs the transformer using various constants fromVocabulary
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAttributes
(C metaData, E ebXML, EbXMLObjectLibrary objectLibrary) Called by the base class to add attributes to the ebXML instance.protected void
addAttributesFromEbXML
(C metaData, E ebXML) Called by the base class to add attributes to the meta data.protected void
addClassifications
(C metaData, E ebXML, EbXMLObjectLibrary objectLibrary) Called by the base class to add classifications to the ebXML instance.protected void
addClassificationsFromEbXML
(C metaData, E ebXML) Called by the base class to add classifications to the meta data.protected void
addExternalIdentifiers
(C metaData, E ebXML, EbXMLObjectLibrary objectLibrary) Called by the base class to add external identifiers to the ebXML instance.protected void
addExternalIdentifiersFromEbXML
(C metaData, E ebXML) Called by the base class to add external identifiers to the meta data.protected void
addSlots
(C metaData, E ebXML, EbXMLObjectLibrary objectLibrary) Called by the base class to add slots to the ebXML instance.protected void
addSlotsFromEbXML
(C metaData, E ebXML) Called by the base class to add slots to the meta data.protected abstract E
createEbXMLInstance
(String id, EbXMLObjectLibrary objectLibrary) Called by the base class to create a new instance of the ebXML type.protected abstract C
Called by the base class to create a new instance of theXDSMetaClass
.Transforms an ebXML representation into itsXDSMetaClass
.toEbXML
(C metaData, EbXMLObjectLibrary objectLibrary) Transforms the givenXDSMetaClass
into 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 givenXDSMetaClass
into its ebXML representation.- Parameters:
metaData
- the meta data to transform. Can benull
.objectLibrary
- the object library.- Returns:
- the ebXML representation.
null
if the input wasnull
.
-
fromEbXML
Transforms an ebXML representation into itsXDSMetaClass
.- Parameters:
ebXML
- the ebXML representation. Can benull
.- Returns:
- the meta data.
null
if 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.
-