Révision 3231

tmp/org.txm.searchengine.core/src/org/txm/searchengine/core/Property.java (revision 3231)
1
// Copyright © 2010-2020 ENS de Lyon., University of Franche-Comté
2
// Copyright © 2007-2010 ENS de Lyon, CNRS, INRP, University of
3
// Lyon 2, University of Franche-Comté, University of Nice
4
// Sophia Antipolis, University of Paris 3.
5
// 
6
// The TXM platform is free software: you can redistribute it
7
// and/or modify it under the terms of the GNU General Public
8
// License as published by the Free Software Foundation,
9
// either version 2 of the License, or (at your option) any
10
// later version.
11
// 
12
// The TXM platform is distributed in the hope that it will be
13
// useful, but WITHOUT ANY WARRANTY; without even the implied
14
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15
// PURPOSE. See the GNU General Public License for more
16
// details.
17
// 
18
// You should have received a copy of the GNU General
19
// Public License along with the TXM platform. If not, see
20
// http://www.gnu.org/licenses.
21
// 
22
// 
23
// 
24
// $LastChangedDate: 2013-05-06 17:38:43 +0200 (lun., 06 mai 2013) $
25
// $LastChangedRevision: 2386 $
26
// $LastChangedBy: mdecorde $ 
27
//
28
package org.txm.searchengine.core;
29

  
30
// TODO: Auto-generated Javadoc
31
/**
32
 * The Class Property.
33
 */
34
public abstract class Property {
35
	
36
	protected String name;
37
	
38
	public Property(String name) {
39
		this.name = name;
40
	}
41
		
42
	/* (non-Javadoc)
43
	 * @see java.lang.Object#toString()
44
	 */
45
	@Override
46
	public String toString() {
47
		return name;
48
	}
49
	
50
	public String getName() {
51
		return name;
52
	}
53
	
54
	public abstract SearchEngine getSearchEngine();
55

  
56
	public abstract int[] cpos2Id(int[] positions) throws Exception;
57
	
58
	public abstract String[] id2Str(int[] positions) throws Exception;
59
}
0 60

  

Formats disponibles : Unified diff