org.subsonic.restapi.SearchResult Maven / Gradle / Ivy
Show all versions of subsonic-client Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.2
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.08.24 at 07:14:02 PM CEST
//
package org.subsonic.restapi;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for SearchResult complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="SearchResult">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="match" type="{http://subsonic.org/restapi}Child" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="offset" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
* <attribute name="totalHits" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SearchResult", propOrder = {
"matches"
})
public class SearchResult {
@XmlElement(name = "match")
protected List matches;
@XmlAttribute(name = "offset", required = true)
protected int offset;
@XmlAttribute(name = "totalHits", required = true)
protected int totalHits;
/**
* Gets the value of the matches property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the matches property.
*
*
* For example, to add a new item, do as follows:
*
* getMatches().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Child }
*
*
*/
public List getMatches() {
if (matches == null) {
matches = new ArrayList();
}
return this.matches;
}
/**
* Gets the value of the offset property.
*
*/
public int getOffset() {
return offset;
}
/**
* Sets the value of the offset property.
*
*/
public void setOffset(int value) {
this.offset = value;
}
/**
* Gets the value of the totalHits property.
*
*/
public int getTotalHits() {
return totalHits;
}
/**
* Sets the value of the totalHits property.
*
*/
public void setTotalHits(int value) {
this.totalHits = value;
}
}