ie.deri.wsmx.mediation.flora
Class FloraRulesGenerator

java.lang.Object
  extended byie.deri.wsmx.mediation.flora.FloraRulesGenerator

public class FloraRulesGenerator
extends java.lang.Object

(c) Copyright 2004, DERI - Digital Enterprise Research Institute, Ireland

Author:
Adrian FloraRulesGenerator.java, Mar 28, 2004, 12:48:10 PM

Constructor Summary
FloraRulesGenerator(Mapper mediator)
           
 
Method Summary
 void buildString(ConceptTree tree, boolean isSource)
          Extract the information from a ConceptTree and generates a flora rule fragment out of it
 java.lang.StringBuffer getMappingRule(java.lang.String srcConcept, java.lang.String tgtConcept)
           
 java.lang.String getStatementForAttribute(AttributeDefinition attr)
           
 java.lang.String getStatementForConcept(java.lang.String concept)
           
 java.lang.String getStatementForConceptWithoutConceptName(java.lang.String concept)
           
 java.io.File saveMappingRule(java.lang.String srcConcept, java.lang.String tgtConcept)
          Calls the fragment rule buider and puts together all flora mapping rule fragmets in a file; asks the user to choose a destination file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloraRulesGenerator

public FloraRulesGenerator(Mapper mediator)
Method Detail

getStatementForAttribute

public java.lang.String getStatementForAttribute(AttributeDefinition attr)

getStatementForConcept

public java.lang.String getStatementForConcept(java.lang.String concept)

getStatementForConceptWithoutConceptName

public java.lang.String getStatementForConceptWithoutConceptName(java.lang.String concept)

buildString

public void buildString(ConceptTree tree,
                        boolean isSource)
Extract the information from a ConceptTree and generates a flora rule fragment out of it

Parameters:
tree - the tree that has to be read in order to produce the source or the target string
isSource - if it is true builds the source string otherwise the tatget string

saveMappingRule

public java.io.File saveMappingRule(java.lang.String srcConcept,
                                    java.lang.String tgtConcept)
Calls the fragment rule buider and puts together all flora mapping rule fragmets in a file; asks the user to choose a destination file

Parameters:
srcConcept - the entry point for the source ontology
tgtConcept - the entry point for the target ontology
Returns:
the File in which the mapping rule was saved

getMappingRule

public java.lang.StringBuffer getMappingRule(java.lang.String srcConcept,
                                             java.lang.String tgtConcept)