package org.oasis.wsrp.v2; 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.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for ServiceDescription complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="ServiceDescription"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="requiresRegistration" type="{http://www.w3.org/2001/XMLSchema}boolean"/> * <element name="offeredPortlets" type="{urn:oasis:names:tc:wsrp:v2:types}PortletDescription" maxOccurs="unbounded" minOccurs="0"/> * <element name="userCategoryDescriptions" type="{urn:oasis:names:tc:wsrp:v2:types}ItemDescription" maxOccurs="unbounded" minOccurs="0"/> * <element name="extensionDescriptions" type="{urn:oasis:names:tc:wsrp:v2:types}ExtensionDescription" maxOccurs="unbounded" minOccurs="0"/> * <element name="customWindowStateDescriptions" type="{urn:oasis:names:tc:wsrp:v2:types}ItemDescription" maxOccurs="unbounded" minOccurs="0"/> * <element name="customModeDescriptions" type="{urn:oasis:names:tc:wsrp:v2:types}ItemDescription" maxOccurs="unbounded" minOccurs="0"/> * <element name="requiresInitCookie" type="{urn:oasis:names:tc:wsrp:v2:types}CookieProtocol" minOccurs="0"/> * <element name="registrationPropertyDescription" type="{urn:oasis:names:tc:wsrp:v2:types}ModelDescription" minOccurs="0"/> * <element name="locales" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * <element name="resourceList" type="{urn:oasis:names:tc:wsrp:v2:types}ResourceList" minOccurs="0"/> * <element name="eventDescriptions" type="{urn:oasis:names:tc:wsrp:v2:types}EventDescription" maxOccurs="unbounded" minOccurs="0"/> * <element name="schemaType" type="{urn:oasis:names:tc:wsrp:v2:types}ModelTypes" minOccurs="0"/> * <element name="supportedOptions" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * <element name="exportDescription" type="{urn:oasis:names:tc:wsrp:v2:types}ExportDescription" minOccurs="0"/> * <element name="mayReturnRegistrationState" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * <element name="extensions" type="{urn:oasis:names:tc:wsrp:v2:types}Extension" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ServiceDescription", propOrder = { "requiresRegistration", "offeredPortlets", "userCategoryDescriptions", "extensionDescriptions", "customWindowStateDescriptions", "customModeDescriptions", "requiresInitCookie", "registrationPropertyDescription", "locales", "resourceList", "eventDescriptions", "schemaType", "supportedOptions", "exportDescription", "mayReturnRegistrationState", "extensions" }) public class ServiceDescription { protected boolean requiresRegistration; protected List<PortletDescription> offeredPortlets; protected List<ItemDescription> userCategoryDescriptions; protected List<ExtensionDescription> extensionDescriptions; protected List<ItemDescription> customWindowStateDescriptions; protected List<ItemDescription> customModeDescriptions; @XmlElement(defaultValue = "none") protected CookieProtocol requiresInitCookie; protected ModelDescription registrationPropertyDescription; protected List<String> locales; protected ResourceList resourceList; protected List<EventDescription> eventDescriptions; protected ModelTypes schemaType; protected List<String> supportedOptions; protected ExportDescription exportDescription; @XmlElement(defaultValue = "false") protected Boolean mayReturnRegistrationState; protected List<Extension> extensions; /** * Gets the value of the requiresRegistration property. * */ public boolean isRequiresRegistration() { return requiresRegistration; } /** * Sets the value of the requiresRegistration property. * */ public void setRequiresRegistration(boolean value) { this.requiresRegistration = value; } /** * Gets the value of the offeredPortlets 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 offeredPortlets property. * * <p> * For example, to add a new item, do as follows: * <pre> * getOfferedPortlets().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link PortletDescription } * * */ public List<PortletDescription> getOfferedPortlets() { if (offeredPortlets == null) { offeredPortlets = new ArrayList<PortletDescription>(); } return this.offeredPortlets; } /** * Gets the value of the userCategoryDescriptions 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 userCategoryDescriptions property. * * <p> * For example, to add a new item, do as follows: * <pre> * getUserCategoryDescriptions().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ItemDescription } * * */ public List<ItemDescription> getUserCategoryDescriptions() { if (userCategoryDescriptions == null) { userCategoryDescriptions = new ArrayList<ItemDescription>(); } return this.userCategoryDescriptions; } /** * Gets the value of the extensionDescriptions 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 extensionDescriptions property. * * <p> * For example, to add a new item, do as follows: * <pre> * getExtensionDescriptions().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ExtensionDescription } * * */ public List<ExtensionDescription> getExtensionDescriptions() { if (extensionDescriptions == null) { extensionDescriptions = new ArrayList<ExtensionDescription>(); } return this.extensionDescriptions; } /** * Gets the value of the customWindowStateDescriptions 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 customWindowStateDescriptions property. * * <p> * For example, to add a new item, do as follows: * <pre> * getCustomWindowStateDescriptions().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ItemDescription } * * */ public List<ItemDescription> getCustomWindowStateDescriptions() { if (customWindowStateDescriptions == null) { customWindowStateDescriptions = new ArrayList<ItemDescription>(); } return this.customWindowStateDescriptions; } /** * Gets the value of the customModeDescriptions 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 customModeDescriptions property. * * <p> * For example, to add a new item, do as follows: * <pre> * getCustomModeDescriptions().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link ItemDescription } * * */ public List<ItemDescription> getCustomModeDescriptions() { if (customModeDescriptions == null) { customModeDescriptions = new ArrayList<ItemDescription>(); } return this.customModeDescriptions; } /** * Gets the value of the requiresInitCookie property. * * @return * possible object is * {@link CookieProtocol } * */ public CookieProtocol getRequiresInitCookie() { return requiresInitCookie; } /** * Sets the value of the requiresInitCookie property. * * @param value * allowed object is * {@link CookieProtocol } * */ public void setRequiresInitCookie(CookieProtocol value) { this.requiresInitCookie = value; } /** * Gets the value of the registrationPropertyDescription property. * * @return * possible object is * {@link ModelDescription } * */ public ModelDescription getRegistrationPropertyDescription() { return registrationPropertyDescription; } /** * Sets the value of the registrationPropertyDescription property. * * @param value * allowed object is * {@link ModelDescription } * */ public void setRegistrationPropertyDescription(ModelDescription value) { this.registrationPropertyDescription = value; } /** * Gets the value of the locales 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 locales property. * * <p> * For example, to add a new item, do as follows: * <pre> * getLocales().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getLocales() { if (locales == null) { locales = new ArrayList<String>(); } return this.locales; } /** * Gets the value of the resourceList property. * * @return * possible object is * {@link ResourceList } * */ public ResourceList getResourceList() { return resourceList; } /** * Sets the value of the resourceList property. * * @param value * allowed object is * {@link ResourceList } * */ public void setResourceList(ResourceList value) { this.resourceList = value; } /** * Gets the value of the eventDescriptions 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 eventDescriptions property. * * <p> * For example, to add a new item, do as follows: * <pre> * getEventDescriptions().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link EventDescription } * * */ public List<EventDescription> getEventDescriptions() { if (eventDescriptions == null) { eventDescriptions = new ArrayList<EventDescription>(); } return this.eventDescriptions; } /** * Gets the value of the schemaType property. * * @return * possible object is * {@link ModelTypes } * */ public ModelTypes getSchemaType() { return schemaType; } /** * Sets the value of the schemaType property. * * @param value * allowed object is * {@link ModelTypes } * */ public void setSchemaType(ModelTypes value) { this.schemaType = value; } /** * Gets the value of the supportedOptions 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 supportedOptions property. * * <p> * For example, to add a new item, do as follows: * <pre> * getSupportedOptions().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getSupportedOptions() { if (supportedOptions == null) { supportedOptions = new ArrayList<String>(); } return this.supportedOptions; } /** * Gets the value of the exportDescription property. * * @return * possible object is * {@link ExportDescription } * */ public ExportDescription getExportDescription() { return exportDescription; } /** * Sets the value of the exportDescription property. * * @param value * allowed object is * {@link ExportDescription } * */ public void setExportDescription(ExportDescription value) { this.exportDescription = value; } /** * Gets the value of the mayReturnRegistrationState property. * * @return * possible object is * {@link Boolean } * */ public Boolean isMayReturnRegistrationState() { return mayReturnRegistrationState; } /** * Sets the value of the mayReturnRegistrationState property. * * @param value * allowed object is * {@link Boolean } * */ public void setMayReturnRegistrationState(Boolean value) { this.mayReturnRegistrationState = value; } /** * Gets the value of the extensions 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 extensions property. * * <p> * For example, to add a new item, do as follows: * <pre> * getExtensions().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Extension } * * */ public List<Extension> getExtensions() { if (extensions == null) { extensions = new ArrayList<Extension>(); } return this.extensions; } }