E
- the ebXML type.C
- the XDSMetaClass
type.public abstract class XDSMetaClassTransformer<E extends EbXMLRegistryObject,C extends XDSMetaClass> extends Object
XDSMetaClass
and ebXML representations.Modifier | Constructor and Description |
---|---|
protected |
XDSMetaClassTransformer(String patientIdExternalId,
String patientIdLocalizedString,
String uniqueIdExternalId,
String uniqueIdLocalizedString)
Constructs the transformer using various constants from
Vocabulary . |
Modifier and Type | Method and Description |
---|---|
protected 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 |
createMetaClassInstance()
Called by the base class to create a new instance of the
XDSMetaClass . |
C |
fromEbXML(E ebXML)
Transforms an ebXML representation into its
XDSMetaClass . |
E |
toEbXML(C metaData,
EbXMLObjectLibrary objectLibrary)
Transforms the given
XDSMetaClass into its ebXML representation. |
protected XDSMetaClassTransformer(String patientIdExternalId, String patientIdLocalizedString, String uniqueIdExternalId, String uniqueIdLocalizedString)
Vocabulary
.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.public E toEbXML(C metaData, EbXMLObjectLibrary objectLibrary)
XDSMetaClass
into its ebXML representation.metaData
- the meta data to transform. Can be null
.objectLibrary
- the object library.null
if the input was null
.public C fromEbXML(E ebXML)
XDSMetaClass
.ebXML
- the ebXML representation. Can be null
.null
if the input was null
.protected abstract E createEbXMLInstance(String id, EbXMLObjectLibrary objectLibrary)
id
- the id of the object to create.objectLibrary
- the object library.protected abstract C createMetaClassInstance()
XDSMetaClass
.protected void addAttributes(C metaData, E ebXML, EbXMLObjectLibrary objectLibrary)
metaData
- the meta data instance containing the attributes.ebXML
- the ebXML instance receiving the attributes.objectLibrary
- the object library.protected void addAttributesFromEbXML(C metaData, E ebXML)
metaData
- the meta data instance receiving the attributes.ebXML
- the ebXML instance containing the attributes.protected void addSlots(C metaData, E ebXML, EbXMLObjectLibrary objectLibrary)
metaData
- the meta data instance containing the slots.ebXML
- the ebXML instance receiving the slots.objectLibrary
- the object library.protected void addSlotsFromEbXML(C metaData, E ebXML)
metaData
- the meta data instance receiving the slots.ebXML
- the ebXML instance containing the slots.protected void addClassifications(C metaData, E ebXML, EbXMLObjectLibrary objectLibrary)
metaData
- the meta data instance containing the classifications.ebXML
- the ebXML instance receiving the classifications.objectLibrary
- the object library.protected void addClassificationsFromEbXML(C metaData, E ebXML)
metaData
- the meta data instance receiving the classifications.ebXML
- the ebXML instance containing the classifications.protected void addExternalIdentifiers(C metaData, E ebXML, EbXMLObjectLibrary objectLibrary)
metaData
- the meta data instance containing the external identifiers.ebXML
- the ebXML instance receiving the external identifiers.objectLibrary
- the object library.protected void addExternalIdentifiersFromEbXML(C metaData, E ebXML)
metaData
- the meta data instance receiving the external identifiers.ebXML
- the ebXML instance containing the external identifiers.Copyright © 2018 Open eHealth Foundation. All rights reserved.