001    package org.mycore.frontend.indexbrowser.lucene;
002    
003    import java.util.ArrayList;
004    import java.util.List;
005    
006    /**
007     * Holder class for an index browser entry.
008     * 
009     * @author Matthias Eichner
010     */
011    public class MCRIndexBrowserEntry {
012        private List<String> sortValues;
013        private List<String> outputValues;
014        private String objectId;
015    
016        public MCRIndexBrowserEntry() {
017            sortValues = new ArrayList<String>();
018            outputValues = new ArrayList<String>();
019        }
020        public void addSortValue(String sortValue) {
021            sortValues.add(sortValue);
022        }
023        public void addOutputValue(String value) {
024            outputValues.add(value);
025        }
026        public String getSortValue(int index) {
027            return sortValues.get(index);
028        }
029        public String getOutputValue(int index) {
030            return outputValues.get(index);
031        }
032        public void setObjectId(String objectId) {
033            this.objectId = objectId;
034        }
035        public List<String> getSortValues() {
036            return sortValues;
037        }
038        public List<String> getOutputValues() {
039            return outputValues;
040        }
041        public String getObjectId() {
042            return objectId;
043        }
044    }