uk.ac.bbk.dcs.automed.xml
Class XMLTransformer

java.lang.Object
  extended by uk.ac.bbk.dcs.automed.xml.XMLTransformer

public class XMLTransformer
extends java.lang.Object

Class that automatically integrates two fully conformed AutoMed XML DataSource Schemas.

Author:
Lucas Zamboulis

Constructor Summary
XMLTransformer(Schema source, org.w3c.dom.Document sourceSchemaUIDDoc, Schema target, org.w3c.dom.Document targetSchemaUIDDoc)
           
 
Method Summary
 org.w3c.dom.Document getFinalDoc()
           
 Schema getFinalSchema()
           
 java.lang.String getFinalSchemaName()
           
 void listTransformationPathway()
           
 void transform(boolean validateSource, boolean validateTarget, boolean materialisedIntegration)
          Creates the transformation pathway from the source to the target schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLTransformer

public XMLTransformer(Schema source,
                      org.w3c.dom.Document sourceSchemaUIDDoc,
                      Schema target,
                      org.w3c.dom.Document targetSchemaUIDDoc)
Parameters:
source - the source AutoMed XMLDSS
sourceDSDoc - the source DOM XMLDSS - WITH UIDs
target - the target AutoMed XMLDSS
targetDSDoc - the target DOM XMLDSS - WITH UIDs
Method Detail

transform

public void transform(boolean validateSource,
                      boolean validateTarget,
                      boolean materialisedIntegration)
Creates the transformation pathway from the source to the target schema. The whole process can be divided into four steps:

Parameters:
validateSource - if true, validate source DOM XMLDSS against any referenced DTD/XML Schema
validateTarget - if true, validate target DOM XMLDSS against any referenced DTD/XML Schema
materialisedIntegration - true if the algorithm is to create synthetic structure to resolve structural incompatibilities between the schemas that are to be integrated

getFinalDoc

public org.w3c.dom.Document getFinalDoc()
Returns:
the DOM representation of the transformed XMLDSS.

getFinalSchemaName

public java.lang.String getFinalSchemaName()
Returns:
the name of the transformed XMLDSS.

getFinalSchema

public Schema getFinalSchema()
Returns:
the transformed AutoMed XMLDSS schema.

listTransformationPathway

public void listTransformationPathway()