001package org.kuali.ole.docstore.common.search; 002 003import java.util.ArrayList; 004import java.util.List; 005import javax.xml.bind.annotation.*; 006 007 008/** 009 * <p>Java class for searchResult complex type. 010 * 011 * <p>The following schema fragment specifies the expected content contained within this class. 012 * 013 * <pre> 014 * <complexType name="searchResult"> 015 * <complexContent> 016 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 017 * <sequence> 018 * <element name="searchResultFields" type="{}searchResultField" maxOccurs="unbounded" minOccurs="0"/> 019 * </sequence> 020 * </restriction> 021 * </complexContent> 022 * </complexType> 023 * </pre> 024 * 025 * 026 */ 027@XmlAccessorType(XmlAccessType.FIELD) 028@XmlType(name = "searchResult", propOrder = { 029 "searchResultFields" 030}) 031public class SearchResult { 032 033 @XmlElementWrapper(name = "searchResultFields") 034 @XmlElement(name = "searchResultField") 035 protected List<SearchResultField> searchResultFields; 036 037 /** 038 * Gets the value of the searchResultFields property. 039 * 040 * <p> 041 * This accessor method returns a reference to the live list, 042 * not a snapshot. Therefore any modification you make to the 043 * returned list will be present inside the JAXB object. 044 * This is why there is not a <CODE>set</CODE> method for the searchResultFields property. 045 * 046 * <p> 047 * For example, to add a new item, do as follows: 048 * <pre> 049 * getSearchResultFields().add(newItem); 050 * </pre> 051 * 052 * 053 * <p> 054 * Objects of the following type(s) are allowed in the list 055 * {@link SearchResultField } 056 * 057 * 058 */ 059 public List<SearchResultField> getSearchResultFields() { 060 if (searchResultFields == null) { 061 searchResultFields = new ArrayList<SearchResultField>(); 062 } 063 return this.searchResultFields; 064 } 065 066}