1 /*
2 * This file is a part of CAST project.
3 * (c) Copyright 2007, AGH University of Science & Technology
4 * https://caribou.iisg.agh.edu.pl/trac/cast
5 *
6 * Licensed under the Eclipse Public License, Version 1.0 (the "License").
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 * http://www.eclipse.org/legal/epl-v10.html
10 */
11 /*
12 * File: PrefixConverter.java
13 * Created: 2007-12-14
14 * Author: apohllo
15 * $Id: PrefixConverter.java 2232 2009-01-04 22:59:53Z apohllo $
16 */
17
18 package pl.edu.agh.cast.converter;
19
20 import pl.edu.agh.cast.model.base.DataSet;
21
22 /**
23 * <p>
24 * Sample converter - adds prefix to the id of every relation belonging to given data set.
25 *
26 * <p>
27 * Accepts one parameter - the prefix to add.
28 *
29 * @author AGH CAST Team
30 *
31 */
32 public class PrefixConverter implements IConverter {
33
34 private String prefix;
35
36 /**
37 * Parametrized constructor.
38 *
39 * @param newPrefix
40 * The prefix to add.
41 */
42 public PrefixConverter(String newPrefix) {
43 prefix = newPrefix;
44 }
45
46 /**
47 *
48 * {@inheritDoc}
49 * @see pl.edu.agh.cast.converter.IConverter#convert(pl.edu.agh.cast.model.base.DataSet)
50 */
51 public void convert(DataSet set) {
52 // TODO
53 }
54
55 }