All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.gov.legislation.namespaces.legislation.SubjectInformation Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2015.08.07 at 06:17:52 PM CEST 
//


package uk.gov.legislation.namespaces.legislation;

import uk.co.tso.assets.namespace.error.ErrorType;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.ArrayList;
import java.util.List;


/**
 * 

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence maxOccurs="unbounded">
 *         <group ref="{http://www.tso.co.uk/assets/namespace/error}Errors" minOccurs="0"/>
 *         <element name="Subject">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element ref="{http://www.legislation.gov.uk/namespaces/legislation}Title" maxOccurs="unbounded"/>
 *                   <element ref="{http://www.legislation.gov.uk/namespaces/legislation}Subtitle" maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *                 <attGroup ref="{http://www.legislation.gov.uk/namespaces/legislation}CommonAttributes"/>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *       <attGroup ref="{http://www.legislation.gov.uk/namespaces/legislation}CommonAttributes"/>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "errorsAndSubjectsAndWarnings" }) @XmlRootElement(name = "SubjectInformation") public class SubjectInformation { @XmlElementRefs({ @XmlElementRef(name = "Error", namespace = "http://www.tso.co.uk/assets/namespace/error", type = JAXBElement.class), @XmlElementRef(name = "Warning", namespace = "http://www.tso.co.uk/assets/namespace/error", type = JAXBElement.class), @XmlElementRef(name = "Subject", namespace = "http://www.legislation.gov.uk/namespaces/legislation", type = JAXBElement.class) }) protected List> errorsAndSubjectsAndWarnings; @XmlAttribute(name = "id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String id; @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "language") protected String lang; @XmlAttribute(name = "space", namespace = "http://www.w3.org/XML/1998/namespace") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String space; @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace") @XmlSchemaType(name = "anyURI") protected String base; @XmlAttribute(name = "AltVersionRefs") @XmlIDREF @XmlSchemaType(name = "IDREFS") protected List altVersionRefs; /** * Gets the value of the errorsAndSubjectsAndWarnings 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 errorsAndSubjectsAndWarnings property. * *

* For example, to add a new item, do as follows: *

     *    getErrorsAndSubjectsAndWarnings().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link ErrorType }{@code >} * {@link JAXBElement }{@code <}{@link ErrorType }{@code >} * {@link JAXBElement }{@code <}{@link SubjectInformation.Subject }{@code >} * * */ public List> getErrorsAndSubjectsAndWarnings() { if (errorsAndSubjectsAndWarnings == null) { errorsAndSubjectsAndWarnings = new ArrayList<>(); } return this.errorsAndSubjectsAndWarnings; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the lang property. * * @return * possible object is * {@link String } * */ public String getLang() { return lang; } /** * Sets the value of the lang property. * * @param value * allowed object is * {@link String } * */ public void setLang(String value) { this.lang = value; } /** * Gets the value of the space property. * * @return * possible object is * {@link String } * */ public String getSpace() { return space; } /** * Sets the value of the space property. * * @param value * allowed object is * {@link String } * */ public void setSpace(String value) { this.space = value; } /** * Gets the value of the base property. * * @return * possible object is * {@link String } * */ public String getBase() { return base; } /** * Sets the value of the base property. * * @param value * allowed object is * {@link String } * */ public void setBase(String value) { this.base = value; } /** * Gets the value of the altVersionRefs 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 altVersionRefs property. * *

* For example, to add a new item, do as follows: *

     *    getAltVersionRefs().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getAltVersionRefs() { if (altVersionRefs == null) { altVersionRefs = new ArrayList<>(); } return this.altVersionRefs; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <sequence>
     *         <element ref="{http://www.legislation.gov.uk/namespaces/legislation}Title" maxOccurs="unbounded"/>
     *         <element ref="{http://www.legislation.gov.uk/namespaces/legislation}Subtitle" maxOccurs="unbounded" minOccurs="0"/>
     *       </sequence>
     *       <attGroup ref="{http://www.legislation.gov.uk/namespaces/legislation}CommonAttributes"/>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "titles", "subtitles" }) public static class Subject { @XmlElement(name = "Title", required = true) protected List titles; @XmlElement(name = "Subtitle") protected List subtitles; @XmlAttribute(name = "id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String id; @XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "language") protected String lang; @XmlAttribute(name = "space", namespace = "http://www.w3.org/XML/1998/namespace") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String space; @XmlAttribute(name = "base", namespace = "http://www.w3.org/XML/1998/namespace") @XmlSchemaType(name = "anyURI") protected String base; @XmlAttribute(name = "AltVersionRefs") @XmlIDREF @XmlSchemaType(name = "IDREFS") protected List altVersionRefs; /** * Gets the value of the titles 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 titles property. * *

* For example, to add a new item, do as follows: *

         *    getTitles().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link InlineFullStructure } * * */ public List getTitles() { if (titles == null) { titles = new ArrayList<>(); } return this.titles; } /** * Gets the value of the subtitles 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 subtitles property. * *

* For example, to add a new item, do as follows: *

         *    getSubtitles().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link InlineFullStructure } * * */ public List getSubtitles() { if (subtitles == null) { subtitles = new ArrayList<>(); } return this.subtitles; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the lang property. * * @return * possible object is * {@link String } * */ public String getLang() { return lang; } /** * Sets the value of the lang property. * * @param value * allowed object is * {@link String } * */ public void setLang(String value) { this.lang = value; } /** * Gets the value of the space property. * * @return * possible object is * {@link String } * */ public String getSpace() { return space; } /** * Sets the value of the space property. * * @param value * allowed object is * {@link String } * */ public void setSpace(String value) { this.space = value; } /** * Gets the value of the base property. * * @return * possible object is * {@link String } * */ public String getBase() { return base; } /** * Sets the value of the base property. * * @param value * allowed object is * {@link String } * */ public void setBase(String value) { this.base = value; } /** * Gets the value of the altVersionRefs 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 altVersionRefs property. * *

* For example, to add a new item, do as follows: *

         *    getAltVersionRefs().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getAltVersionRefs() { if (altVersionRefs == null) { altVersionRefs = new ArrayList<>(); } return this.altVersionRefs; } } }