001/*
002 * Copyright 2008 Marc Wick, geonames.org
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 */
017package org.geonames;
018
019import java.util.ArrayList;
020import java.util.List;
021
022/**
023 * a toponym search result as returned by the geonames webservice.
024 * 
025 * @author marc@geonames
026 * 
027 */
028public class ToponymSearchResult {
029
030        List<Toponym> toponyms = new ArrayList<Toponym>();
031
032        int totalResultsCount;
033        
034        Style style;
035
036        /**
037         * @return Returns the toponyms.
038         */
039        public List<Toponym> getToponyms() {
040                return toponyms;
041        }
042
043        /**
044         * @param toponyms
045         *            The toponyms to set.
046         */
047        public void setToponyms(List<Toponym> toponyms) {
048                this.toponyms = toponyms;
049        }
050
051        /**
052         * @return Returns the totalResultsCount.
053         */
054        public int getTotalResultsCount() {
055                return totalResultsCount;
056        }
057
058        /**
059         * @param totalResultsCount
060         *            The totalResultsCount to set.
061         */
062        public void setTotalResultsCount(int totalResultsCount) {
063                this.totalResultsCount = totalResultsCount;
064        }
065
066        /**
067         * @return the style
068         */
069        public Style getStyle() {
070                return style;
071        }
072
073        /**
074         * @param style the style to set
075         */
076        public void setStyle(Style style) {
077                this.style = style;
078        }
079
080}