pl.edu.agh.cast.converter
Class PrefixConverter

java.lang.Object
  extended by pl.edu.agh.cast.converter.PrefixConverter
All Implemented Interfaces:
IConverter

public class PrefixConverter
extends Object
implements IConverter

Sample converter - adds prefix to the id of every relation belonging to given data set.

Accepts one parameter - the prefix to add.

Author:
AGH CAST Team

Constructor Summary
PrefixConverter(String newPrefix)
          Parametrized constructor.
 
Method Summary
 void convert(DataSet set)
          Covert the data in the data set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrefixConverter

public PrefixConverter(String newPrefix)
Parametrized constructor.

Parameters:
newPrefix - The prefix to add.
Method Detail

convert

public void convert(DataSet set)
Covert the data in the data set.

Specified by:
convert in interface IConverter
Parameters:
set - The data set to convert.
See Also:
IConverter.convert(pl.edu.agh.cast.model.base.DataSet)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.