/**
* Copyright (C) 2014 Cohesive Integrations, LLC (info@cohesiveintegrations.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.di2e.ecdr.commons.xml.osd;
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.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="ShortName">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <length value="8"/>
* </restriction>
* </simpleType>
* </element>
* <element name="Description">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <length value="1024"/>
* </restriction>
* </simpleType>
* </element>
* <element name="Url" type="{http://a9.com/-/spec/opensearch/1.1/}Url" maxOccurs="unbounded" minOccurs="0"/>
* <element name="Contact" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <pattern value="[^@]+@[^\.]+\..+"/>
* </restriction>
* </simpleType>
* </element>
* <element name="Tags" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <length value="256"/>
* </restriction>
* </simpleType>
* </element>
* <element name="LongName" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <length value="48"/>
* </restriction>
* </simpleType>
* </element>
* <element name="Query" type="{http://a9.com/-/spec/opensearch/1.1/}Query" maxOccurs="unbounded" minOccurs="0"/>
* <element name="Developer" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <length value="64"/>
* </restriction>
* </simpleType>
* </element>
* <element name="Attribution" minOccurs="0">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <length value="256"/>
* </restriction>
* </simpleType>
* </element>
* <element name="SyndicationRight" type="{http://a9.com/-/spec/opensearch/1.1/}SyndicationRight" minOccurs="0"/>
* <element name="AdultContent" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
* <element name="Language" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* <element name="InputEncoding" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* <element name="OutputEncoding" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
* <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"shortName",
"description",
"url",
"contact",
"tags",
"longName",
"query",
"developer",
"attribution",
"syndicationRight",
"adultContent",
"language",
"inputEncoding",
"outputEncoding",
"any"
})
@XmlRootElement(name = "OpenSearchDescription")
public class OpenSearchDescription {
@XmlElement(name = "ShortName", required = true)
private String shortName;
@XmlElement(name = "Description", required = true)
private String description;
@XmlElement(name = "Url")
private List<Url> url;
@XmlElement(name = "Contact")
private String contact;
@XmlElement(name = "Tags")
private String tags;
@XmlElement(name = "LongName")
private String longName;
@XmlElement(name = "Query")
private List<Query> query;
@XmlElement(name = "Developer")
private String developer;
@XmlElement(name = "Attribution")
private String attribution;
@XmlElement(name = "SyndicationRight")
private SyndicationRight syndicationRight;
@XmlElement(name = "AdultContent")
private Boolean adultContent;
@XmlElement(name = "Language")
private List<String> language;
@XmlElement(name = "InputEncoding")
private List<String> inputEncoding;
@XmlElement(name = "OutputEncoding")
private List<String> outputEncoding;
@XmlAnyElement(lax = true)
private List<Object> any;
/**
* Gets the value of the shortName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getShortName() {
return shortName;
}
/**
* Sets the value of the shortName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setShortName(String value) {
this.shortName = value;
}
/**
* Gets the value of the description property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDescription(String value) {
this.description = value;
}
/**
* Gets the value of the url property.
*
* <p>
* 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 <CODE>set</CODE> method for the url property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getUrl().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Url }
*
*
*/
public List<Url> getUrl() {
if (url == null) {
url = new ArrayList<Url>();
}
return this.url;
}
/**
* Gets the value of the contact property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getContact() {
return contact;
}
/**
* Sets the value of the contact property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setContact(String value) {
this.contact = value;
}
/**
* Gets the value of the tags property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTags() {
return tags;
}
/**
* Sets the value of the tags property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTags(String value) {
this.tags = value;
}
/**
* Gets the value of the longName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLongName() {
return longName;
}
/**
* Sets the value of the longName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLongName(String value) {
this.longName = value;
}
/**
* Gets the value of the query property.
*
* <p>
* 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 <CODE>set</CODE> method for the query property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getQuery().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Query }
*
*
*/
public List<Query> getQuery() {
if (query == null) {
query = new ArrayList<Query>();
}
return this.query;
}
/**
* Gets the value of the developer property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDeveloper() {
return developer;
}
/**
* Sets the value of the developer property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDeveloper(String value) {
this.developer = value;
}
/**
* Gets the value of the attribution property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAttribution() {
return attribution;
}
/**
* Sets the value of the attribution property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAttribution(String value) {
this.attribution = value;
}
/**
* Gets the value of the syndicationRight property.
*
* @return
* possible object is
* {@link SyndicationRight }
*
*/
public SyndicationRight getSyndicationRight() {
return syndicationRight;
}
/**
* Sets the value of the syndicationRight property.
*
* @param value
* allowed object is
* {@link SyndicationRight }
*
*/
public void setSyndicationRight(SyndicationRight value) {
this.syndicationRight = value;
}
/**
* Gets the value of the adultContent property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isAdultContent() {
return adultContent;
}
/**
* Sets the value of the adultContent property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setAdultContent(Boolean value) {
this.adultContent = value;
}
/**
* Gets the value of the language property.
*
* <p>
* 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 <CODE>set</CODE> method for the language property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getLanguage().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getLanguage() {
if (language == null) {
language = new ArrayList<String>();
}
return this.language;
}
/**
* Gets the value of the inputEncoding property.
*
* <p>
* 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 <CODE>set</CODE> method for the inputEncoding property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getInputEncoding().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getInputEncoding() {
if (inputEncoding == null) {
inputEncoding = new ArrayList<String>();
}
return this.inputEncoding;
}
/**
* Gets the value of the outputEncoding property.
*
* <p>
* 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 <CODE>set</CODE> method for the outputEncoding property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getOutputEncoding().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List<String> getOutputEncoding() {
if (outputEncoding == null) {
outputEncoding = new ArrayList<String>();
}
return this.outputEncoding;
}
/**
* Gets the value of the any property.
*
* <p>
* 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 <CODE>set</CODE> method for the any property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAny().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
*
*
*/
public List<Object> getAny() {
if (any == null) {
any = new ArrayList<Object>();
}
return this.any;
}
}