org.semwebcentral.sweetrules.sweetcr.translators
Class SweetR2BTranslator

java.lang.Object
  extended byorg.semwebcentral.sweetrules.infrastructure.AbstractSweetTranslator
      extended byorg.semwebcentral.sweetrules.sweetcr.translators.SweetR2BTranslator
All Implemented Interfaces:
java.lang.Cloneable, ISweetTranslator

public class SweetR2BTranslator
extends AbstractSweetTranslator

Modification time-stamp: Aug 25, 2004, 1:50:39 PM Title : SweetR2BTranslator Description : Class representing the RuleML to BRML translation

Author:
Shashidhara K Ganjugunte, Dr. Benjamin Grosof, Dr. Said Tabet, Chitravanu Neogy

Field Summary
private  java.lang.String transformXSLFileURL
          The relative URL of the XSL file within the jar package
 
Fields inherited from class org.semwebcentral.sweetrules.infrastructure.AbstractSweetTranslator
logger, sourceKBDescriptor, targetKBDescriptor, translatorDescriptor
 
Constructor Summary
SweetR2BTranslator()
          Constructor for the RuleML to BRML translator
 
Method Summary
 java.lang.String translate()
          Perfroms translation from the specified source format to the target format
private  java.lang.String translateUsingXSLFiles()
          A very simple approach to translate, using the XSLT files directly.
 
Methods inherited from class org.semwebcentral.sweetrules.infrastructure.AbstractSweetTranslator
clone, getSourceData, getTranslatorDescriptor, loadAllNamespacesAndEntities, print, setSourceData, setSourceKBDescriptor, setTargetKBDescriptor, setTranslatorDescriptor, trace, writeToTargetKB
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transformXSLFileURL

private final java.lang.String transformXSLFileURL
The relative URL of the XSL file within the jar package

See Also:
Constant Field Values
Constructor Detail

SweetR2BTranslator

public SweetR2BTranslator()
Constructor for the RuleML to BRML translator

Method Detail

translate

public java.lang.String translate()
                           throws SweetTranslatorException
Perfroms translation from the specified source format to the target format

Returns:
The translated string in the target format
Throws:
TranslatorException - If translation cannot be performed then an exception is thrown
SweetTranslatorException

translateUsingXSLFiles

private java.lang.String translateUsingXSLFiles()
                                         throws SweetTranslatorException
A very simple approach to translate, using the XSLT files directly.

Returns:
The translated string
Throws:
SweetTranslatorException