source: gs3-extensions/atlas-src/trunk/src/org/greenstone/atlas/server/Word.java@ 23934

Last change on this file since 23934 was 23934, checked in by sjm84, 13 years ago

Extensive improvements to the ATLAS code

File size: 628 bytes
Line 
1package org.greenstone.atlas.server;
2
3import java.util.ArrayList;
4
5public class Word
6{
7 private int _classificationIndex = 0;
8 private ArrayList<String> _classifications = new ArrayList<String>();
9
10 private String _value = null;
11
12 public void setValue(String value)
13 {
14 _value = value;
15 }
16
17 public void addClassification(String classification)
18 {
19 _classifications.add(classification);
20 }
21
22 public String getValue()
23 {
24 return _value;
25 }
26
27 public String getNextClassification()
28 {
29 if(_classificationIndex >= _classifications.size())
30 {
31 return null;
32 }
33 return _classifications.get(_classificationIndex++);
34 }
35}
Note: See TracBrowser for help on using the repository browser.