de.svws_nrw.davapi.model.dav.SearchRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of svws-module-dav-api Show documentation
Show all versions of svws-module-dav-api Show documentation
Diese Bibliothek enthält die Java-Server-Definition der CalDAV und CardDAV-Schnittstelle für die Schulverwaltungssoftware in NRW
/*
* copyright(c) 2014 SAS Institute, Cary NC 27513 Created on Oct 23, 2014
*/
package de.svws_nrw.davapi.model.dav;
import jakarta.xml.bind.JAXBElement;
import jakarta.xml.bind.annotation.XmlAnyElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlTransient;
import jakarta.xml.bind.annotation.XmlType;
import javax.xml.namespace.QName;
/**
* Java class for anonymous complex type.
*
* The following schema fragment specifies the expected content contained within this class.
*
*
<element name="searchrequest">
<complexType>
<any processContents="skip" namespace="##other" minOccurs="1" maxOccurs="1" />
</complexType>
</element>
*
*/
@XmlType(name = "")
@XmlRootElement(name = "searchrequest")
public class SearchRequest
{
private String language;
private String query;
public SearchRequest()
{
this.language = "davbasic";
this.query = "";
}
public SearchRequest(String language, String query)
{
this.language = language;
this.query = query;
}
public final String getLanguage()
{
return language;
}
@XmlTransient
public void setLanguage(String language)
{
this.language = language;
}
public final String getQuery()
{
return query;
}
@XmlTransient
public void setQuery(String query)
{
this.query = query;
}
@XmlAnyElement
public JAXBElement getElement()
{
return new JAXBElement<>(new QName("DAV:", language), String.class, query);
}
}